/* ---------------------------------------------------------------------------
   AIOMeeting - Video meetings in your browser
   Author: MD OMAR FARUK | www.faruk.bd | Copyright (c) 2026
   --------------------------------------------------------------------------- */
/* App Builder - the "Get the app" page (/app, class abp-*) and the admin pages (class abd-*) */

/* ============================================================ /app */
.abp { padding-top: 8px; padding-bottom: 40px; }
.abp-hero {
  position: relative; overflow: hidden; border-radius: 22px; margin: 8px 0 28px;
  background: linear-gradient(135deg, var(--st-hero-from, #0a1b47), var(--st-hero-to, #0b5cff));
  color: #fff; padding: clamp(20px, 4vw, 44px);
}
.abp-hero-in { display: grid; grid-template-columns: minmax(0, 1fr) 220px; gap: clamp(18px, 4vw, 44px); align-items: center; }
.abp-pill { display: inline-flex; align-items: center; gap: 6px; background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.22);
  border-radius: 999px; padding: 4px 12px; font-size: 12.5px; font-weight: 600; margin-bottom: 14px; }
.abp-id { display: flex; align-items: center; gap: 14px; margin-bottom: 10px; }
.abp-id img { width: 68px; height: 68px; border-radius: 18px; background: rgba(255,255,255,.12); box-shadow: 0 8px 26px rgba(0,0,0,.28); flex: 0 0 auto; }
.abp-hero h1 { margin: 0; color: #fff !important; font-size: clamp(24px, 3.4vw, 36px); line-height: 1.2; }
.abp-sub { margin: 2px 0 0; opacity: .8; font-size: 14px; }
.abp-lead { margin: 0 0 20px; opacity: .92; max-width: 48ch; line-height: 1.65; }
.abp-cta { display: flex; flex-wrap: wrap; gap: 10px; }
.abp-btn { display: inline-flex; align-items: center; gap: 7px; font: inherit; font-weight: 600; font-size: 14.5px; cursor: pointer; text-decoration: none;
  border: 1px solid transparent; border-radius: 12px; padding: 10px 18px; background: var(--st-accent, #0b5cff); color: #fff !important; }
.abp-btn small { opacity: .8; font-weight: 500; }
.abp-btn-main { background: #fff; color: #0f172a !important; }
.abp-btn-ghost { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.3); color: #fff !important; }
.abp-btn-sm { padding: 5px 12px; font-size: 13px; border-radius: 9px; }
.abp-btn[hidden], .abp-note[hidden], .abp-way[hidden] { display: none !important; }
.abp-note { margin: 12px 0 0; font-size: 13.5px; opacity: .9; }
.abp-qr { background: #fff; color: #0f172a; border-radius: 16px; padding: 12px; text-align: center; justify-self: end; width: 100%; max-width: 220px; box-sizing: border-box; }
.abp-qr svg { width: 100%; height: auto; display: block; }
.abp-qr small { display: block; margin-top: 6px; font-size: 12px; color: #475569; }

.abp-sec { margin: 0 0 30px; }
.abp-sec h2 { margin: 0 0 14px; font-size: 22px; }
.abp-ways { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; }
.abp-way { position: relative; background: var(--st-surface, #fff); border: 1px solid var(--st-line, #e2e8f0); border-radius: 16px; padding: 18px; }
.abp-way h3 { margin: 10px 0 6px; font-size: 17px; }
.abp-way p { margin: 0 0 12px; color: var(--st-text-2, #334155); font-size: 14.5px; line-height: 1.55; }
.abp-way .abp-btn { font-size: 14px; padding: 8px 14px; margin-right: 6px; margin-bottom: 4px; }
.abp-way-i { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--st-accent-soft, #e8f0ff); color: var(--st-accent, #0b5cff); }
.abp-way-tag { position: absolute; top: 14px; right: 14px; font-size: 11.5px; font-weight: 700; color: var(--st-green, #16a34a); background: var(--st-green-soft, #dcfce7); border-radius: 999px; padding: 2px 10px; }
.abp-steps { margin: 0; padding-left: 20px; color: var(--st-text-2, #334155); font-size: 14.5px; line-height: 1.7; }
.abp-url { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.abp-url code { background: var(--st-surface-2, #f1f5f9); border-radius: 8px; padding: 5px 10px; font-size: 13.5px; word-break: break-all; }
.abp-fine { font-size: 13px !important; color: var(--st-muted, #64748b) !important; }
.abp-perks { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; }
.abp-perk { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--st-line, #e2e8f0); border-radius: 14px; background: var(--st-surface, #fff); }
.abp-perk > span { color: var(--st-accent, #0b5cff); flex: 0 0 auto; margin-top: 2px; }
.abp-perk b { display: block; font-size: 15px; }
.abp-perk small { display: block; color: var(--st-muted, #64748b); font-size: 13.5px; line-height: 1.5; }
@media (max-width: 760px) {
  .abp-hero-in { grid-template-columns: 1fr; }
  .abp-qr { justify-self: start; max-width: 180px; }
}

/* ============================================================ admin pages */
.abd-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 16px; align-items: start; }
.abd-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.abd-two { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0 18px; }
.abd-builds { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.abd-builds .aio-card { margin-bottom: 0; display: flex; flex-direction: column; }
.abd-builds .aio-card-b { flex: 1; }
.abd-builds ul { margin: 8px 0 0; padding-left: 18px; font-size: 13px; color: var(--aio-muted, #6b7280); }
.abd-icons { display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-end; margin-top: 10px; }
.abd-icons figure { margin: 0; text-align: center; font-size: 12px; color: var(--aio-muted, #6b7280); }
.abd-icons img { display: block; width: 56px; height: 56px; border-radius: 12px; border: 1px solid var(--aio-line, #dfe3e8); background: #fff; margin-bottom: 3px; }
.abd-qrs { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; }
.abd-qr { text-align: center; font-size: 12.5px; }
.abd-qr svg { width: 100%; max-width: 150px; height: auto; border: 1px solid var(--aio-line, #dfe3e8); border-radius: 10px; }
.abd-qr b { display: block; margin-top: 6px; }
.abd-qr span { color: var(--aio-muted, #6b7280); word-break: break-all; }
.abd-phone { width: 210px; margin: 0 auto; border: 8px solid #1e293b; border-radius: 30px; background: #0b1220; overflow: hidden; color: #fff; font-size: 11px; }
.abd-phone-top { display: flex; justify-content: space-between; padding: 8px 12px 6px; font-weight: 700; }
.abd-phone-body { padding: 10px; display: grid; gap: 8px; min-height: 190px; }
.abd-phone-tile { border-radius: 10px; background: rgba(255,255,255,.08); padding: 14px 8px; text-align: center; font-weight: 600; }
.abd-phone-bar { display: flex; justify-content: center; gap: 8px; padding: 8px; background: rgba(255,255,255,.06); }
.abd-phone-bar i { width: 28px; height: 28px; border-radius: 50%; background: rgba(255,255,255,.14); }
.abd-phone-bar i.end { background: #ef4444; }
.abd-count { font-size: 12px; color: var(--aio-muted, #6b7280); margin-top: 3px; }
.abd-count.over { color: var(--aio-danger, #d9534f); font-weight: 600; }
.abd-listing { white-space: pre-wrap; font-family: inherit; font-size: 13.5px; background: var(--aio-bg, #f1f3f5); border-radius: 8px; padding: 10px 12px; max-height: 18rem; overflow: auto; }
.abd-steps { margin: 0; padding-left: 18px; font-size: 13.5px; line-height: 1.7; }
@media (max-width: 900px) { .abd-grid { grid-template-columns: 1fr; } }
