/* ═══════════════════════════════════════════════════════════════════════════
   AYLECALLS — design system
   Dark, professional VoIP panel with the AYLECALLS pink as the brand accent.
   Used by the customer app (sidebar shell), the landing page and auth pages.
   ═══════════════════════════════════════════════════════════════════════════ */
:root {
  --bg: #0d0911;
  --bg-2: #120c18;
  --surface: #17101e;
  --surface-2: #1e1527;
  --surface-3: #261b31;
  --line: rgba(255, 255, 255, .07);
  --line-2: rgba(255, 255, 255, .12);
  --text: #f7eefb;
  --text-2: #c9bcd3;
  --muted: #8f8299;
  --brand: #ff4fa3;
  --brand-2: #d946ef;
  --brand-grad: linear-gradient(135deg, #ff4fa3 0%, #d946ef 100%);
  --brand-soft: rgba(255, 79, 163, .12);
  --ok: #22c55e;   --ok-soft: rgba(34, 197, 94, .12);
  --warn: #f59e0b; --warn-soft: rgba(245, 158, 11, .12);
  --bad: #ef4444;  --bad-soft: rgba(239, 68, 68, .12);
  --info: #38bdf8; --info-soft: rgba(56, 189, 248, .12);
  --violet: #8b5cf6;
  --r-lg: 20px; --r: 14px; --r-sm: 10px;
  --shadow: 0 1px 0 rgba(255,255,255,.04) inset, 0 12px 32px rgba(0,0,0,.35);
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --brandfont: "Fredoka", "Plus Jakarta Sans", sans-serif;
  --sidebar: 248px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body.ac {
  margin: 0; min-height: 100vh; font-family: var(--font); font-size: 14px; line-height: 1.5;
  color: var(--text); background: var(--bg);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
body.ac a { color: inherit; text-decoration: none; }
body.ac button { font: inherit; color: inherit; }
.mono { font-family: var(--mono); font-feature-settings: "tnum"; letter-spacing: -.01em; }
.muted { color: var(--muted); }
.text-2 { color: var(--text-2); }
.hide, [hidden] { display: none !important; }
::selection { background: rgba(255, 79, 163, .4); color: #fff; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: #2c2036; border-radius: 10px; border: 2px solid var(--bg); }

/* ── Brand ─────────────────────────────────────────────────────────────── */
.brand { display: flex; align-items: center; gap: 11px; }
.brand-icon { width: 38px; height: 38px; border-radius: 11px; object-fit: cover;
  box-shadow: 0 0 0 1px rgba(255,255,255,.12), 0 6px 18px rgba(255,79,163,.35); }
.brand-name { font-family: var(--brandfont); font-weight: 700; font-size: 19px; letter-spacing: .4px;
  background: linear-gradient(180deg, #fff 0%, #ffd1e8 55%, #ff8fca 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent; }
.brand-sub { display: block; font-size: 11px; color: var(--muted); font-weight: 600; margin-top: -2px; }

/* ── Buttons ───────────────────────────────────────────────────────────── */
.btn-a { display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; padding: 0 16px; border-radius: 12px; border: 1px solid transparent;
  font-weight: 700; font-size: 13.5px; cursor: pointer; white-space: nowrap;
  transition: transform .12s ease, filter .15s ease, background .15s ease, border-color .15s ease; }
.btn-a:active { transform: translateY(1px); }
.btn-a:disabled { opacity: .55; cursor: not-allowed; }
.btn-a svg { width: 17px; height: 17px; flex: 0 0 auto; }
.btn-primary-a { background: var(--brand-grad); color: #fff; box-shadow: 0 8px 22px rgba(255,79,163,.32); }
.btn-primary-a:hover { filter: brightness(1.08); }
.btn-ghost-a { background: var(--surface-2); border-color: var(--line-2); color: var(--text); }
.btn-ghost-a:hover { background: var(--surface-3); }
.btn-ok-a { background: var(--ok); color: #fff; }
.btn-bad-a { background: var(--bad); color: #fff; }
.btn-sm-a { height: 32px; padding: 0 12px; font-size: 12.5px; border-radius: 10px; }
.btn-lg-a { height: 50px; padding: 0 22px; font-size: 15px; border-radius: 14px; }
.btn-block { width: 100%; }
.icon-btn { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 10px;
  background: var(--surface-2); border: 1px solid var(--line); color: var(--text-2); cursor: pointer; }
.icon-btn:hover { color: #fff; background: var(--surface-3); }
.icon-btn svg { width: 16px; height: 16px; }

/* ── Forms ─────────────────────────────────────────────────────────────── */
.field { display: block; margin-bottom: 14px; }
.field > span { display: block; font-size: 12px; font-weight: 700; color: var(--text-2); margin-bottom: 6px; }
.input { width: 100%; height: 44px; padding: 0 14px; border-radius: 12px; font: inherit; font-size: 14px;
  color: var(--text); background: var(--bg-2); border: 1px solid var(--line-2); outline: none;
  transition: border-color .15s ease, box-shadow .15s ease; }
.input::placeholder { color: #6e6378; }
.input:focus { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(255,79,163,.15); }
textarea.input { height: auto; padding: 12px 14px; resize: vertical; min-height: 110px; }
select.input { appearance: none; padding-right: 36px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%23c9bcd3' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; }
.input-group-a { display: flex; gap: 8px; }
.input-group-a .input { flex: 1 1 auto; }

/* ── Badges / pills ────────────────────────────────────────────────────── */
.pill { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: 999px;
  font-size: 11.5px; font-weight: 700; white-space: nowrap; }
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill.no-dot::before { display: none; }
.pill-ok { color: #4ade80; background: var(--ok-soft); }
.pill-warn { color: #fbbf24; background: var(--warn-soft); }
.pill-bad { color: #f87171; background: var(--bad-soft); }
.pill-info { color: #7dd3fc; background: var(--info-soft); }
.pill-brand { color: #ff8fca; background: var(--brand-soft); }
.pill-mute { color: var(--muted); background: rgba(255,255,255,.06); }

/* ── App shell: sidebar + main ─────────────────────────────────────────── */
.shell { display: grid; grid-template-columns: var(--sidebar) minmax(0, 1fr); min-height: 100vh; }
.side { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column;
  background: var(--bg-2); border-right: 1px solid var(--line); padding: 18px 14px; overflow-y: auto; }
.side .brand { padding: 4px 8px 18px; }
.nav-sec { margin-top: 14px; }
.nav-sec-t { padding: 0 10px 6px; font-size: 10.5px; font-weight: 800; letter-spacing: 1.2px; text-transform: uppercase; color: #6c6076; }
.nav-a { display: flex; align-items: center; gap: 11px; height: 40px; padding: 0 12px; border-radius: 11px;
  color: var(--text-2); font-weight: 600; font-size: 13.5px; position: relative; transition: background .15s ease, color .15s ease; }
.nav-a svg { width: 18px; height: 18px; flex: 0 0 auto; opacity: .85; }
.nav-a:hover { background: rgba(255,255,255,.04); color: #fff; }
.nav-a.active { color: #fff; background: linear-gradient(90deg, rgba(255,79,163,.18), rgba(217,70,239,.06)); }
.nav-a.active::before { content: ""; position: absolute; left: -14px; top: 9px; bottom: 9px; width: 3px; border-radius: 0 3px 3px 0; background: var(--brand-grad); }
.nav-a.active svg { color: #ff8fca; opacity: 1; }
.nav-a .nav-badge { margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px;
  display: grid; place-items: center; font-size: 11px; font-weight: 800; color: #fff; background: var(--brand); }
.side-foot { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); display: flex; align-items: center; gap: 10px; }
.side-foot .who { min-width: 0; flex: 1 1 auto; }
.side-foot .who b { display: block; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-foot .who small { display: block; font-size: 11.5px; color: var(--muted); font-family: var(--mono); }
.avatar { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; flex: 0 0 auto;
  font-weight: 800; color: #fff; background: var(--brand-grad); }

.main { min-width: 0; display: flex; flex-direction: column; }
.topbar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 14px; height: 68px;
  padding: 0 28px; background: rgba(13, 9, 17, .82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line); }
.topbar h1 { margin: 0; font-size: 20px; font-weight: 800; letter-spacing: -.01em; }
.topbar .crumb { font-size: 12px; color: var(--muted); font-weight: 600; }
.topbar .right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.bal-chip { display: inline-flex; align-items: center; gap: 10px; height: 40px; padding: 0 6px 0 14px; border-radius: 12px;
  background: var(--surface); border: 1px solid var(--line-2); font-weight: 800; }
.bal-chip .plus { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 9px; background: var(--brand-grad); color: #fff; }
.reg-dot { display: inline-flex; align-items: center; gap: 7px; height: 40px; padding: 0 12px; border-radius: 12px;
  background: var(--surface); border: 1px solid var(--line-2); font-size: 12.5px; font-weight: 700; color: var(--text-2); }
.reg-dot i { width: 8px; height: 8px; border-radius: 50%; background: #6b6075; }
.reg-dot.on i { background: var(--ok); box-shadow: 0 0 0 4px rgba(34,197,94,.18); }
.reg-dot.on { color: #bbf7d0; }
.menu-toggle { display: none; }
.content { padding: 26px 28px 40px; max-width: 1320px; width: 100%; }

/* ── Cards / grid ──────────────────────────────────────────────────────── */
.card-a { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px; box-shadow: var(--shadow); }
.card-h { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.card-h h2 { margin: 0; font-size: 15.5px; font-weight: 800; }
.card-h p { margin: 2px 0 0; font-size: 12.5px; color: var(--muted); }
.card-h .end { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.tile-ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; color: #fff; flex: 0 0 auto; }
.tile-ic svg { width: 20px; height: 20px; }
.ic-brand { background: var(--brand-grad); box-shadow: 0 8px 18px rgba(255,79,163,.3); }
.ic-blue { background: linear-gradient(135deg, #3b82f6, #6366f1); box-shadow: 0 8px 18px rgba(59,130,246,.3); }
.ic-cyan { background: linear-gradient(135deg, #06b6d4, #3b82f6); box-shadow: 0 8px 18px rgba(6,182,212,.3); }
.ic-orange { background: linear-gradient(135deg, #f59e0b, #f97316); box-shadow: 0 8px 18px rgba(245,158,11,.3); }
.ic-green { background: linear-gradient(135deg, #22c55e, #10b981); box-shadow: 0 8px 18px rgba(34,197,94,.3); }
.ic-red { background: linear-gradient(135deg, #ef4444, #f43f5e); box-shadow: 0 8px 18px rgba(239,68,68,.3); }
.ic-violet { background: linear-gradient(135deg, #8b5cf6, #d946ef); box-shadow: 0 8px 18px rgba(139,92,246,.3); }

.grid { display: grid; gap: 16px; }
.g-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.span-2 { grid-column: span 2; }

.stat { display: flex; align-items: flex-start; gap: 14px; padding: 18px; }
.stat .lbl { font-size: 12.5px; font-weight: 700; color: var(--text-2); }
.stat .val { font-family: var(--mono); font-size: 24px; font-weight: 700; margin-top: 2px; letter-spacing: -.02em; }
.stat .sub { font-size: 11.5px; color: var(--muted); margin-top: 1px; }

/* Hero balance card (like the reference "Welcome back" card) */
.hero-card { position: relative; overflow: hidden; border-radius: var(--r-lg); padding: 22px;
  background: radial-gradient(500px 220px at 100% 0%, rgba(255,255,255,.18), transparent 60%), var(--brand-grad);
  color: #fff; box-shadow: 0 18px 40px rgba(255,79,163,.28); }
.hero-card::after { content: ""; position: absolute; right: -60px; bottom: -80px; width: 220px; height: 220px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.22), transparent 70%); }
.hero-card .hi { font-size: 13px; opacity: .85; font-weight: 600; }
.hero-card .who { font-family: var(--mono); font-size: 17px; font-weight: 700; margin-top: 2px; }
.hero-card .bl { font-size: 11px; font-weight: 800; letter-spacing: 1.2px; opacity: .8; margin-top: 18px; }
.hero-card .big { font-family: var(--mono); font-size: 40px; font-weight: 800; letter-spacing: -.03em; line-height: 1.1; }
.hero-card .row { position: relative; z-index: 1; display: flex; align-items: center; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.hero-card .btn-a { background: #fff; color: #b0127a; box-shadow: none; }
.hero-card .tag { position: absolute; top: 18px; right: 18px; z-index: 1; font-size: 10.5px; font-weight: 800; letter-spacing: 1px;
  padding: 4px 9px; border-radius: 8px; background: rgba(255,255,255,.2); }

/* ── Tables ────────────────────────────────────────────────────────────── */
.tbl-wrap { overflow-x: auto; margin: 0 -20px -20px; }
.tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.tbl th { text-align: left; font-size: 11px; font-weight: 800; letter-spacing: .8px; text-transform: uppercase; color: var(--muted);
  padding: 10px 20px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl td { padding: 13px 20px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl tbody tr:last-child td { border-bottom: 0; }
.tbl tbody tr:hover td { background: rgba(255,255,255,.02); }
.tbl .r { text-align: right; }
.num-cell { display: inline-flex; align-items: center; gap: 9px; font-family: var(--mono); font-weight: 600; }
.flag { width: 20px; height: 15px; border-radius: 3px; object-fit: cover; box-shadow: 0 0 0 1px rgba(255,255,255,.1); background: #2a1f33; }

/* Segmented tabs */
.seg { display: inline-flex; gap: 4px; padding: 4px; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--line); }
.seg button { border: 0; background: transparent; height: 32px; padding: 0 14px; border-radius: 9px; font-weight: 700; font-size: 12.5px;
  color: var(--text-2); cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.seg button.on { background: var(--surface-3); color: #fff; box-shadow: 0 1px 0 rgba(255,255,255,.06) inset; }
.seg .ct { font-family: var(--mono); font-size: 11px; color: var(--muted); }

.empty-a { text-align: center; padding: 34px 16px; color: var(--muted); }
.empty-a .ei { width: 52px; height: 52px; margin: 0 auto 12px; border-radius: 16px; display: grid; place-items: center; background: var(--surface-2); color: var(--text-2); }
.empty-a .ei svg { width: 24px; height: 24px; }
.empty-a b { display: block; color: var(--text); font-size: 15px; margin-bottom: 4px; }
.skel { display: inline-block; height: 1em; width: 6ch; border-radius: 6px; background: linear-gradient(90deg, #1e1527, #2a1f33, #1e1527); background-size: 200% 100%; animation: skel 1.2s linear infinite; }
@keyframes skel { to { background-position: -200% 0; } }

/* ── Key/value rows (SIP details, account panel) ───────────────────────── */
.kv-a { display: grid; gap: 10px; }
.kv-row { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 13px; background: var(--bg-2); border: 1px solid var(--line); }
.kv-row .k { font-size: 10.5px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); }
.kv-row .v { font-family: var(--mono); font-size: 14.5px; font-weight: 600; color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kv-row .grow { min-width: 0; flex: 1 1 auto; }

/* ── 7-day activity bars ───────────────────────────────────────────────── */
.bars { display: grid; grid-template-columns: repeat(7, 1fr); gap: 10px; align-items: end; height: 150px; padding-top: 10px; }
.bar { display: flex; flex-direction: column; align-items: center; gap: 8px; height: 100%; justify-content: flex-end; }
.bar i { display: block; width: 100%; max-width: 44px; min-height: 6px; border-radius: 8px 8px 4px 4px;
  background: linear-gradient(180deg, rgba(255,79,163,.35), rgba(217,70,239,.15)); transition: height .5s cubic-bezier(.22,1,.36,1); position: relative; }
.bar.today i { background: var(--brand-grad); box-shadow: 0 6px 16px rgba(255,79,163,.35); }
.bar span { font-size: 11.5px; font-weight: 700; color: var(--muted); }
.bar.today span { color: #fff; }
.bar i[data-tip]:hover::after { content: attr(data-tip); position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%);
  white-space: nowrap; font-size: 11px; font-weight: 700; padding: 4px 8px; border-radius: 7px; background: #000; color: #fff; }
.mini-stats { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); text-align: center; }
.mini-stats small { display: block; font-size: 10.5px; font-weight: 800; letter-spacing: 1px; color: var(--muted); }
.mini-stats b { font-family: var(--mono); font-size: 17px; }

/* ── Web phone ─────────────────────────────────────────────────────────── */
.phone-wrap { display: grid; grid-template-columns: 420px minmax(0, 1fr); gap: 16px; align-items: start; }
.phone { padding: 22px; }
.phone-top { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.phone-top .cid { margin-left: auto; text-align: right; }
.phone-top .cid small { display: block; font-size: 10.5px; font-weight: 800; letter-spacing: 1px; color: var(--muted); }
.phone-top .cid b { font-family: var(--mono); font-size: 13.5px; }
.dial-display { position: relative; margin-bottom: 8px; }
.dial-display input { width: 100%; height: 64px; padding: 0 52px 0 18px; border-radius: 16px; font-family: var(--mono); font-size: 26px; font-weight: 700;
  letter-spacing: .02em; color: #fff; background: var(--bg-2); border: 1px solid var(--line-2); outline: none; }
.dial-display input:focus { border-color: var(--brand); }
.dial-display .del { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); }
.dial-meta { display: flex; align-items: center; gap: 8px; min-height: 26px; font-size: 12.5px; color: var(--text-2); margin-bottom: 14px; }
.dial-meta .rate { margin-left: auto; font-family: var(--mono); font-weight: 700; color: #ff8fca; }
.keypad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.key { height: 62px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface-2); cursor: pointer;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; transition: background .12s ease, transform .08s ease; user-select: none; }
.key:hover { background: var(--surface-3); }
.key:active, .key.press { transform: scale(.96); background: #2f2239; }
.key b { font-size: 22px; font-weight: 700; line-height: 1; }
.key small { font-size: 9.5px; font-weight: 800; letter-spacing: 1.5px; color: var(--muted); height: 11px; }
.call-row { display: grid; grid-template-columns: 1fr 72px 1fr; align-items: center; gap: 10px; margin-top: 16px; }
.call-btn { width: 72px; height: 72px; border-radius: 50%; border: 0; cursor: pointer; display: grid; place-items: center; color: #fff;
  background: linear-gradient(135deg, #22c55e, #10b981); box-shadow: 0 12px 28px rgba(34,197,94,.4); transition: transform .12s ease, filter .15s ease; }
.call-btn:hover { filter: brightness(1.08); }
.call-btn:active { transform: scale(.95); }
.call-btn.hang { background: linear-gradient(135deg, #ef4444, #f43f5e); box-shadow: 0 12px 28px rgba(239,68,68,.4); }
.call-btn svg { width: 30px; height: 30px; }
.call-btn:disabled { filter: grayscale(.8) brightness(.7); cursor: not-allowed; }

/* In-call screen */
.incall { text-align: center; padding: 8px 0 4px; }
.incall .st { font-size: 12px; font-weight: 800; letter-spacing: 1.4px; text-transform: uppercase; color: #4ade80; }
.incall .st.ring { color: #fbbf24; }
.incall .to { font-family: var(--mono); font-size: 26px; font-weight: 700; margin: 6px 0 2px; }
.incall .dest { font-size: 13px; color: var(--text-2); }
.incall .timer { font-family: var(--mono); font-size: 44px; font-weight: 800; letter-spacing: -.02em; margin: 14px 0 2px; }
.incall .cost { font-family: var(--mono); font-size: 13px; color: #ff8fca; font-weight: 700; }
.wave { display: flex; gap: 4px; justify-content: center; align-items: center; height: 26px; margin: 12px 0 6px; }
.wave i { width: 4px; border-radius: 4px; background: var(--brand-grad); height: 6px; animation: wave 1s ease-in-out infinite; }
.wave i:nth-child(2) { animation-delay: .1s; } .wave i:nth-child(3) { animation-delay: .2s; } .wave i:nth-child(4) { animation-delay: .3s; } .wave i:nth-child(5) { animation-delay: .4s; }
.wave.idle i { animation: none; opacity: .3; }
@keyframes wave { 50% { height: 24px; } }
.ctl-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 16px; }
.ctl { height: 64px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface-2); cursor: pointer;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; font-size: 11.5px; font-weight: 700; color: var(--text-2); }
.ctl svg { width: 20px; height: 20px; }
.ctl:hover { background: var(--surface-3); color: #fff; }
.ctl.on { background: var(--brand-soft); border-color: rgba(255,79,163,.45); color: #ff8fca; }
.dtmf-log { min-height: 22px; font-family: var(--mono); font-size: 15px; letter-spacing: 3px; color: #ff8fca; margin-top: 8px; }

/* Recent dial list beside the phone */
.recent-a { display: grid; gap: 6px; }
.recent-item { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 13px; cursor: pointer; border: 1px solid transparent; }
.recent-item:hover { background: var(--bg-2); border-color: var(--line); }
.recent-item .ri-ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; flex: 0 0 auto; }
.recent-item .ri-ic svg { width: 16px; height: 16px; }
.recent-item .ri-ic.ok { background: var(--ok-soft); color: #4ade80; }
.recent-item .ri-ic.bad { background: var(--bad-soft); color: #f87171; }
.recent-item .ri-main { min-width: 0; flex: 1 1 auto; }
.recent-item .ri-main b { display: block; font-family: var(--mono); font-size: 14px; }
.recent-item .ri-main small { color: var(--muted); font-size: 12px; }
.recent-item .ri-end { text-align: right; font-family: var(--mono); font-size: 12.5px; color: var(--text-2); }

/* ── Toast ─────────────────────────────────────────────────────────────── */
.toast-wrap { position: fixed; right: 20px; bottom: 20px; z-index: 2000; display: grid; gap: 8px; }
.toast-a { min-width: 260px; max-width: 380px; padding: 12px 14px; border-radius: 13px; font-weight: 600; font-size: 13.5px;
  background: #22182c; border: 1px solid var(--line-2); box-shadow: 0 16px 40px rgba(0,0,0,.45); animation: tin .25s ease; }
.toast-a.ok { border-color: rgba(34,197,94,.45); } .toast-a.bad { border-color: rgba(239,68,68,.5); }
@keyframes tin { from { opacity: 0; transform: translateY(8px); } }

/* ── Modal ─────────────────────────────────────────────────────────────── */
.modal-a { position: fixed; inset: 0; z-index: 1500; display: grid; place-items: center; padding: 16px; background: rgba(6,3,9,.7); backdrop-filter: blur(4px); }
.modal-a .box { width: 100%; max-width: 440px; padding: 22px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line-2); box-shadow: 0 24px 60px rgba(0,0,0,.5); }
.modal-a h3 { margin: 0 0 6px; font-size: 17px; }
.modal-a p { margin: 0 0 16px; color: var(--text-2); }
.modal-a .acts { display: flex; gap: 10px; justify-content: flex-end; }

/* ── Responsive ────────────────────────────────────────────────────────── */
@media (max-width: 1180px) {
  .g-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .phone-wrap { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 900px) {
  .shell { grid-template-columns: 1fr; }
  .side { position: fixed; left: 0; top: 0; z-index: 1000; width: 270px; transform: translateX(-102%); transition: transform .25s ease; box-shadow: 20px 0 50px rgba(0,0,0,.5); }
  body.nav-open .side { transform: none; }
  body.nav-open::after { content: ""; position: fixed; inset: 0; z-index: 999; background: rgba(0,0,0,.5); }
  .menu-toggle { display: inline-grid; }
  .topbar { padding: 0 16px; height: 62px; }
  .content { padding: 18px 16px 34px; }
  .g-2, .g-3 { grid-template-columns: minmax(0, 1fr); }
  .span-2 { grid-column: auto; }
  .reg-dot span { display: none; }
}
@media (max-width: 520px) {
  .g-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat { padding: 14px; gap: 10px; }
  .stat .val { font-size: 20px; }
  .tile-ic { width: 34px; height: 34px; border-radius: 10px; }
  .hero-card .big { font-size: 34px; }
  .key { height: 58px; }
  .topbar h1 { font-size: 17px; }
  .bal-chip { padding-left: 10px; }
}

/* Dashboard layout */
.dash-top { grid-template-columns: 1.35fr 1fr 1fr; margin-bottom: 16px; }
.dash-main { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); }
@media (max-width: 1180px) { .dash-main { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 900px) {
  .dash-top { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dash-top .hero-card { grid-column: 1 / -1; grid-row: auto !important; }
}

/* ═══ Public site (landing, rates, FAQ, auth) ═══════════════════════════ */
body.ac.site { background:
  radial-gradient(900px 500px at 85% -10%, rgba(217,70,239,.16), transparent 60%),
  radial-gradient(700px 500px at -10% 10%, rgba(255,79,163,.14), transparent 60%), var(--bg); }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 22px; }
.site-nav { position: sticky; top: 0; z-index: 50; background: rgba(13,9,17,.72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.site-nav .wrap { display: flex; align-items: center; gap: 22px; height: 70px; }
.site-links { display: flex; gap: 4px; margin-left: 12px; }
.site-links a { padding: 8px 12px; border-radius: 10px; font-weight: 600; color: var(--text-2); font-size: 14px; }
.site-links a:hover, .site-links a.on { color: #fff; background: rgba(255,255,255,.05); }
.site-cta { margin-left: auto; display: flex; gap: 10px; align-items: center; }
.site-burger { display: none; margin-left: auto; }

.hero-s { display: grid; grid-template-columns: 1.05fr 1fr; gap: 44px; align-items: center; padding-top: 64px; padding-bottom: 46px; }
.live-badge { display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 14px; border-radius: 999px; font-size: 12.5px; font-weight: 700;
  color: #bbf7d0; background: rgba(34,197,94,.1); border: 1px solid rgba(34,197,94,.3); }
.live-badge i { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px rgba(34,197,94,.2); animation: pulseA 1.8s ease-in-out infinite; }
@keyframes pulseA { 50% { box-shadow: 0 0 0 8px rgba(34,197,94,0); } }
.hero-s h1 { font-size: clamp(34px, 5vw, 56px); line-height: 1.05; letter-spacing: -.03em; font-weight: 800; margin: 18px 0 16px; }
.hero-s h1 .g { background: var(--brand-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-s .lead { font-size: 17px; color: var(--text-2); max-width: 520px; margin: 0 0 26px; }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.trust { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 22px; color: var(--text-2); font-size: 13px; font-weight: 600; }
.trust span { display: inline-flex; align-items: center; gap: 7px; }
.trust svg { width: 16px; height: 16px; color: var(--ok); }
.hero-visual { position: relative; }
.hero-visual .frame { border-radius: 24px; overflow: hidden; border: 1px solid var(--line-2); box-shadow: 0 30px 80px rgba(0,0,0,.5), 0 0 0 6px rgba(255,79,163,.06); }
.hero-visual .frame img { display: block; width: 100%; height: auto; }
.float-call { position: absolute; left: -26px; bottom: -26px; width: 230px; padding: 14px 16px; border-radius: 18px;
  background: rgba(23,16,30,.92); backdrop-filter: blur(10px); border: 1px solid var(--line-2); box-shadow: 0 20px 50px rgba(0,0,0,.5); }
.float-call .st { font-size: 10.5px; font-weight: 800; letter-spacing: 1.2px; color: #4ade80; }
.float-call .n { font-family: var(--mono); font-weight: 700; font-size: 15px; margin: 4px 0; }
.float-call .t { font-family: var(--mono); font-size: 24px; font-weight: 800; }
.float-cid { position: absolute; right: -18px; top: 22px; padding: 10px 14px; border-radius: 14px; background: rgba(23,16,30,.92);
  border: 1px solid var(--line-2); box-shadow: 0 16px 40px rgba(0,0,0,.45); font-size: 12px; }
.float-cid b { display: block; font-family: var(--mono); font-size: 14px; }

.stats-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; border-radius: 20px; overflow: hidden; background: var(--line); border: 1px solid var(--line); }
.stats-strip > div { background: var(--surface); padding: 22px; text-align: center; }
.stats-strip b { display: block; font-family: var(--mono); font-size: 28px; font-weight: 800; letter-spacing: -.02em; }
.stats-strip small { color: var(--muted); font-weight: 600; }

.sec { padding-top: 70px; padding-bottom: 10px; }
.sec-h { text-align: center; max-width: 640px; margin: 0 auto 34px; }
.eyebrow { display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: 1.6px; text-transform: uppercase; color: #ff8fca; margin-bottom: 10px; }
.sec-h h2 { font-size: clamp(26px, 3.4vw, 38px); letter-spacing: -.02em; margin: 0 0 10px; font-weight: 800; }
.sec-h p { color: var(--text-2); font-size: 16px; margin: 0; }
.feat { padding: 22px; transition: transform .2s ease, border-color .2s ease; }
.feat:hover { transform: translateY(-3px); border-color: rgba(255,79,163,.35); }
.feat h3 { font-size: 16px; margin: 14px 0 6px; }
.feat p { margin: 0; color: var(--text-2); font-size: 14px; }
.step-n { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; font-family: var(--mono); font-weight: 800; background: var(--brand-grad); }

.ratecheck { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 12px; }
.rc-out { display: flex; flex-direction: column; justify-content: center; padding: 12px 18px; border-radius: 14px; background: var(--brand-soft); border: 1px solid rgba(255,79,163,.3); }
.rc-out b { font-family: var(--mono); font-size: 26px; }
.rc-out small { color: var(--text-2); }
.dest-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; margin-top: 16px; }
.dest-a { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 14px; background: var(--bg-2); border: 1px solid var(--line); cursor: pointer; text-align: left; }
.dest-a:hover { border-color: rgba(255,79,163,.4); }
.dest-a .nm { flex: 1 1 auto; min-width: 0; font-weight: 700; font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dest-a .pr { font-family: var(--mono); font-weight: 800; color: #ff8fca; }

.cta-band { margin: 70px 0 0; padding: 44px 30px; border-radius: 26px; text-align: center; position: relative; overflow: hidden;
  background: radial-gradient(600px 240px at 50% 0%, rgba(255,255,255,.18), transparent 70%), var(--brand-grad); }
.cta-band h2 { font-size: clamp(24px, 3vw, 34px); margin: 0 0 8px; font-weight: 800; }
.cta-band p { margin: 0 0 22px; opacity: .9; font-size: 16px; }
.cta-band .btn-a { background: #fff; color: #b0127a; box-shadow: none; }

.site-foot { margin-top: 70px; border-top: 1px solid var(--line); padding: 40px 0 26px; }
.site-foot .cols { display: grid; grid-template-columns: 1.7fr repeat(4, 1fr); gap: 26px; }
@media (max-width: 900px) { .site-foot .cols { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .site-foot .cols { grid-template-columns: 1fr; } }
.site-foot h6 { margin: 4px 0 12px; font-size: 11.5px; font-weight: 800; letter-spacing: 1.4px; text-transform: uppercase; color: #ff8fca; }
.site-foot a, .site-foot .li { display: block; padding: 4px 0; color: var(--text-2); font-size: 14px; }
.site-foot a:hover { color: #fff; }
.site-foot .bottom { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: 30px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12.5px; }

/* Page title band for rates / FAQ / terms */
.page-band { padding-top: 46px; padding-bottom: 24px; }
.page-band h1 { font-size: clamp(28px, 4vw, 42px); font-weight: 800; letter-spacing: -.02em; margin: 6px 0 8px; }
.page-band p { color: var(--text-2); margin: 0; font-size: 16px; }
.prose { color: var(--text-2); line-height: 1.75; }
.prose h5 { color: #fff; font-size: 16px; margin: 22px 0 8px; }
.prose ul { padding-left: 20px; }
.prose .brand { display: inline; color: #ff8fca; font-weight: 800; }
.faq-a { border-bottom: 1px solid var(--line); }
.faq-a summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 12px; padding: 18px 4px; font-weight: 700; font-size: 15.5px; }
.faq-a summary::-webkit-details-marker { display: none; }
.faq-a summary::after { content: "+"; margin-left: auto; font-size: 22px; color: #ff8fca; transition: transform .2s ease; }
.faq-a[open] summary::after { transform: rotate(45deg); }
.faq-a .ans { padding: 0 4px 18px; color: var(--text-2); line-height: 1.7; }
.faq-a .ans p { margin: 0; }

/* Auth */
.auth-wrap { min-height: calc(100vh - 70px); display: grid; place-items: center; padding: 40px 16px; }
.auth-card { width: 100%; max-width: 420px; padding: 30px; }
.auth-card .head { text-align: center; margin-bottom: 22px; }
.auth-card .head img { width: 64px; height: 64px; border-radius: 18px; box-shadow: 0 12px 30px rgba(255,79,163,.4); }
.auth-card h1 { font-size: 24px; margin: 14px 0 4px; font-weight: 800; }
.auth-card .head p { color: var(--text-2); margin: 0; }
.auth-err { padding: 11px 14px; border-radius: 12px; background: var(--bad-soft); border: 1px solid rgba(239,68,68,.4); color: #fecaca; font-size: 13.5px; margin-bottom: 14px; }
.auth-alt { text-align: center; color: var(--text-2); margin: 16px 0 0; font-size: 14px; }
.auth-alt a { color: #ff8fca; font-weight: 700; }

@media (max-width: 980px) {
  .hero-s { grid-template-columns: 1fr; padding-top: 40px; }
  .hero-visual { margin: 10px 18px 30px; }
  .stats-strip { grid-template-columns: repeat(2, 1fr); }
  .site-foot .cols { grid-template-columns: 1fr 1fr; }
  .ratecheck { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .site-links, .site-cta .hide-sm { display: none; }
  .site-links.open { display: flex; flex-direction: column; position: absolute; top: 70px; left: 0; right: 0; padding: 12px 22px 18px; background: var(--bg-2); border-bottom: 1px solid var(--line); margin: 0; }
  .site-burger { display: inline-grid; margin-left: 0; }
  .float-call { left: -8px; bottom: -22px; width: 190px; }
  .float-cid { right: -8px; }
}
/* Floating hero widgets must never cause sideways scroll */
body.ac.site { overflow-x: hidden; }

/* ═══════════════════════════════════════════════════════════════════════════
   AYLE identity: crown wordmark, candy-pink palette, glass cards, hearts
   ═══════════════════════════════════════════════════════════════════════════ */
:root {
  --ayle-pink: #ff4fa3; --ayle-rose: #ff7ac0; --ayle-blush: #ffd1e8; --ayle-berry: #c2187a; --ayle-lilac: #c084fc;
  --glass: linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.02));
}
/* Faint heart pattern + pink aurora behind the whole app */
body.ac:not(.site) {
  background:
    radial-gradient(800px 420px at 100% -5%, rgba(255,79,163,.13), transparent 60%),
    radial-gradient(700px 500px at 0% 105%, rgba(192,132,252,.10), transparent 60%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cpath d='M30 38c-3-5-11-4-11 3 0 5 7 9 11 12 4-3 11-7 11-12 0-7-8-8-11-3z' fill='%23ff4fa3' fill-opacity='.035'/%3E%3Cpath d='M92 92c-2-3.5-7.5-3-7.5 2 0 3.5 5 6.5 7.5 8.5 2.5-2 7.5-5 7.5-8.5 0-5-5.5-5.5-7.5-2z' fill='%23c084fc' fill-opacity='.035'/%3E%3C/svg%3E"),
    var(--bg);
  background-attachment: fixed;
}

/* Headings in the rounded AYLE brand face; numbers stay monospace */
body.ac h1, body.ac h2, body.ac h3, .card-h h2, .topbar h1, .sec-h h2, .hero-s h1, .feat h3, .auth-card h1, .cta-band h2 {
  font-family: var(--brandfont); font-weight: 600; letter-spacing: 0;
}
.topbar h1 { font-size: 22px; }
.hero-s h1 { font-weight: 700; letter-spacing: -.01em; }

/* Crown over the wordmark, like the AYLECALLS banner */
.brand-name { position: relative; display: inline-block; padding-top: 6px; }
.brand-name::before {
  content: ""; position: absolute; left: 1px; top: -5px; width: 15px; height: 11px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 22'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%23fff'/%3E%3Cstop offset='1' stop-color='%23ff7ac0'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M2 20 0 6l8 6 7-11 7 11 8-6-2 14z' fill='url(%23g)'/%3E%3Ccircle cx='0.5' cy='5.5' r='2' fill='%23ffd1e8'/%3E%3Ccircle cx='15' cy='2' r='2' fill='%23ffd1e8'/%3E%3Ccircle cx='29.5' cy='5.5' r='2' fill='%23ffd1e8'/%3E%3C/svg%3E") no-repeat center / contain;
  transform: rotate(-14deg); filter: drop-shadow(0 0 4px rgba(255,79,163,.7));
}
.brand-icon { border-radius: 13px; box-shadow: 0 0 0 2px rgba(255,209,232,.35), 0 8px 22px rgba(255,79,163,.45); }

/* Candy palette for icon tiles (all in the AYLE pink/violet family) */
.tile-ic { position: relative; overflow: hidden; border-radius: 13px; }
.tile-ic::after { content: ""; position: absolute; left: 10%; right: 10%; top: 6%; height: 42%; border-radius: 50%;
  background: linear-gradient(180deg, rgba(255,255,255,.45), rgba(255,255,255,0)); pointer-events: none; }
.ic-brand  { background: linear-gradient(135deg, #ff6fb5, #e0157f); box-shadow: 0 8px 20px rgba(255,79,163,.38); }
.ic-blue   { background: linear-gradient(135deg, #c084fc, #8b5cf6); box-shadow: 0 8px 20px rgba(167,139,250,.35); }
.ic-cyan   { background: linear-gradient(135deg, #f0abfc, #d946ef); box-shadow: 0 8px 20px rgba(217,70,239,.35); }
.ic-orange { background: linear-gradient(135deg, #fda4af, #fb7185); box-shadow: 0 8px 20px rgba(251,113,133,.35); }
.ic-violet { background: linear-gradient(135deg, #a78bfa, #7c3aed); box-shadow: 0 8px 20px rgba(124,58,237,.35); }
.ic-green  { background: linear-gradient(135deg, #f9a8d4, #ec4899); box-shadow: 0 8px 20px rgba(236,72,153,.35); }
.ic-red    { background: linear-gradient(135deg, #fb7185, #be123c); box-shadow: 0 8px 20px rgba(225,29,72,.35); }

/* Glass cards with a light rim, pink glow on hover */
.card-a { background: var(--glass), var(--surface); border-color: rgba(255,209,232,.08); position: relative; }
.card-a::before { content: ""; position: absolute; left: 14%; right: 14%; top: -1px; height: 1px; pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(255,209,232,.35), transparent); }
a.card-a, .feat { transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
a.card-a:hover, .feat:hover { border-color: rgba(255,79,163,.35); box-shadow: var(--shadow), 0 0 0 1px rgba(255,79,163,.12), 0 18px 40px rgba(255,79,163,.12); }

/* Glossy candy buttons */
.btn-primary-a { background: linear-gradient(180deg, rgba(255,255,255,.22), rgba(255,255,255,0) 55%), linear-gradient(135deg, #ff5cab, #d6249f); }
.btn-ghost-a { background: var(--glass), var(--surface-2); }

/* Sidebar: glossy pink pill for the active page, heart instead of a bar */
.nav-a.active { background: linear-gradient(90deg, rgba(255,79,163,.24), rgba(192,132,252,.10)); box-shadow: inset 0 0 0 1px rgba(255,79,163,.25); }
.nav-a.active::before { left: auto; right: 12px; top: 50%; bottom: auto; width: 10px; height: 9px; border-radius: 0; transform: translateY(-50%);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 22'%3E%3Cpath d='M12 21S1 14 1 7a5.5 5.5 0 0 1 11-1 5.5 5.5 0 0 1 11 1c0 7-11 14-11 14z' fill='%23ff7ac0'/%3E%3C/svg%3E") no-repeat center / contain; }
.side { background: linear-gradient(180deg, rgba(255,79,163,.05), transparent 30%), var(--bg-2); }

/* Balance card: AYLE girl on the right, hearts and sparkles */
.hero-card { background:
    radial-gradient(420px 200px at 0% 0%, rgba(255,255,255,.2), transparent 60%),
    linear-gradient(135deg, #ff5cab 0%, #d6249f 55%, #9333ea 120%); min-height: 230px; }
.hero-card .girl { position: absolute; right: -6px; bottom: 0; height: 104%; width: auto; z-index: 0; pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 35%); mask-image: linear-gradient(90deg, transparent, #000 35%); opacity: .95; }
.hero-card > *:not(.girl) { position: relative; z-index: 1; }
.hero-card .tag { position: absolute; z-index: 2; }
.hero-card .sparkle { position: absolute; z-index: 1; color: #fff; opacity: .8; animation: twinkle 2.4s ease-in-out infinite; pointer-events: none; }
@keyframes twinkle { 50% { opacity: .2; transform: scale(.7); } }
.hero-card::after { display: none; }

/* Activity chart: candy bubbles */
.bar i { border-radius: 999px; background: linear-gradient(180deg, rgba(255,122,192,.55), rgba(192,132,252,.22)); }
.bar.today i { background: linear-gradient(180deg, #ffb3d9, #ff4fa3 60%, #d6249f); box-shadow: 0 0 0 3px rgba(255,79,163,.18), 0 10px 22px rgba(255,79,163,.45); }
.bar.today i::before { content: "♥"; position: absolute; top: -18px; left: 50%; transform: translateX(-50%); font-size: 11px; color: #ff7ac0; }

/* Candy keypad */
.key { background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.015)), var(--surface-2); border-color: rgba(255,209,232,.08); }
.key:hover { border-color: rgba(255,79,163,.35); box-shadow: 0 0 18px rgba(255,79,163,.15); }
.key.press, .key:active { background: linear-gradient(135deg, rgba(255,79,163,.35), rgba(214,36,159,.25)); }
.dial-display input { background: linear-gradient(180deg, rgba(255,79,163,.06), transparent), var(--bg-2); }
.call-btn { background: linear-gradient(180deg, rgba(255,255,255,.25), rgba(255,255,255,0) 50%), linear-gradient(135deg, #34d399, #059669); }
.call-btn.hang { background: linear-gradient(180deg, rgba(255,255,255,.25), rgba(255,255,255,0) 50%), linear-gradient(135deg, #fb7185, #be123c); }

/* Pills keep their meaning but get the softer AYLE shapes */
.pill-brand::before { content: "♥"; width: auto; height: auto; background: none; font-size: 10px; }
.pill-brand.no-dot::before { display: none; }

/* Landing touches */
.hero-s h1 .g { background: linear-gradient(135deg, #ff7ac0, #ff4fa3 40%, #c084fc); -webkit-background-clip: text; background-clip: text; }
.stats-strip b { background: linear-gradient(180deg, #fff, #ffb3d9); -webkit-background-clip: text; background-clip: text; color: transparent; }
.cta-band { background: radial-gradient(600px 240px at 50% 0%, rgba(255,255,255,.2), transparent 70%), linear-gradient(135deg, #ff5cab, #d6249f 55%, #9333ea); }
.eyebrow::before { content: "♥ "; }

/* ═══ 3D layer: call globe, live call labels, banner, tilt ══════════════ */
.banner-top { padding-top: 26px; }
.banner-link { display: block; border-radius: 24px; overflow: hidden; border: 1px solid var(--line-2);
  box-shadow: 0 30px 80px rgba(0,0,0,.45), 0 0 0 6px rgba(255,79,163,.06); }
.banner-link img { display: block; width: 100%; height: auto; }

.globe-wrap { position: relative; width: 100%; max-width: 580px; aspect-ratio: 1 / 1; margin: 0 auto; }
.globe-wrap canvas { display: block; width: 100%; height: 100%; cursor: grab; touch-action: pan-y; }
.globe-wrap canvas:active { cursor: grabbing; }
.globe-wrap::before { content: ""; position: absolute; inset: 12%; border-radius: 50%; z-index: -1;
  background: radial-gradient(circle, rgba(255,79,163,.22), transparent 65%); filter: blur(30px); }
.globe-labels { position: absolute; inset: 0; pointer-events: none; }
.g-label { position: absolute; left: 0; top: 0; display: flex; align-items: center; gap: 8px; padding: 6px 10px 6px 7px; border-radius: 12px;
  background: rgba(23,16,30,.88); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border: 1px solid rgba(255,122,192,.35);
  box-shadow: 0 10px 26px rgba(0,0,0,.45), 0 0 14px rgba(255,79,163,.18); font-size: 11.5px; white-space: nowrap; opacity: 0;
  transition: opacity .35s ease; will-change: transform; }
.g-label img { width: 20px; height: 15px; border-radius: 3px; object-fit: cover; }
.g-label b { display: block; font-size: 12px; line-height: 1.15; }
.g-label small { font-family: var(--mono); font-size: 10.5px; color: #4ade80; }
.g-label em { font-style: normal; font-family: var(--mono); font-size: 11px; font-weight: 700; color: #ff8fca; padding-left: 6px; border-left: 1px solid var(--line-2); }
.g-label em:empty { display: none; }
.globe-wrap .float-call { left: 0; bottom: 6%; }
.globe-wrap .float-cid { right: 0; top: 8%; }
.globe-hint { position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); font-size: 11.5px; color: var(--muted); font-weight: 600; white-space: nowrap; }
.globe-fallback { width: 100%; height: 100%; object-fit: contain; }

/* 3D tilt with moving glare */
[data-tilt] { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .25s ease, box-shadow .25s ease; will-change: transform; }
[data-tilt]::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 2; opacity: 0; transition: opacity .25s ease;
  background: radial-gradient(circle at var(--gx, 50%) var(--gy, 50%), rgba(255,255,255,.14), transparent 55%); }
[data-tilt]:hover::after { opacity: 1; }
.banner-link[data-tilt] { position: relative; }
@media (max-width: 760px) {
  .banner-top { padding-top: 14px; }
  .banner-link { border-radius: 16px; }
  .globe-wrap .float-call { bottom: 2%; }
}
.globe-labels { z-index: 3; }
.globe-wrap .float-cid, .globe-wrap .float-call { z-index: 2; }

/* ═══════════════════════════════════════════════════════════════════════════
   v3 — distinctive type, flat colour (no gradients), calmer surfaces
   Unbounded = display, Onest = text, Martian Mono = numbers.
   ═══════════════════════════════════════════════════════════════════════════ */
:root {
  --font: "Onest", system-ui, -apple-system, "Segoe UI", sans-serif;
  --brandfont: "Unbounded", "Onest", sans-serif;
  --mono: "Martian Mono", ui-monospace, Menlo, monospace;
  --brand: #ff4fa3; --brand-hover: #ff6bb2; --brand-press: #e83a8e;
  --brand-grad: var(--brand);
  --berry: #b0156a; --plum: #6d28d9; --lilac: #a78bfa; --rose: #fb7185; --orchid: #c026d3;
  --bg: #0e0a12; --bg-2: #130e18; --surface: #18121e; --surface-2: #201828; --surface-3: #2a2033;
  --glass: var(--surface);
}
body.ac, body.ac:not(.site), body.ac.site { background: var(--bg); }
body.ac:not(.site) {
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cpath d='M30 38c-3-5-11-4-11 3 0 5 7 9 11 12 4-3 11-7 11-12 0-7-8-8-11-3z' fill='%23ff4fa3' fill-opacity='.03'/%3E%3C/svg%3E"), var(--bg);
}
body.ac { font-size: 14.5px; }
.mono { font-variant-numeric: tabular-nums; letter-spacing: -.02em; }

/* Type */
body.ac h1, body.ac h2, body.ac h3, .card-h h2, .topbar h1, .sec-h h2, .hero-s h1, .feat h3, .auth-card h1, .cta-band h2 {
  font-family: var(--brandfont); font-weight: 600; letter-spacing: -.01em;
}
.topbar h1 { font-size: 19px; }
.card-h h2 { font-size: 14.5px; }
.hero-s h1 { font-size: clamp(30px, 4.4vw, 50px); line-height: 1.08; letter-spacing: -.02em; font-weight: 700; }
.hero-s h1 .g { background: none; -webkit-background-clip: initial; background-clip: initial; color: var(--brand); }
.sec-h h2 { font-size: clamp(22px, 3vw, 32px); }
.feat h3 { font-size: 15px; }
.brand-name { font-family: var(--brandfont); font-weight: 700; font-size: 16px; letter-spacing: .02em;
  background: none; -webkit-background-clip: initial; background-clip: initial; color: #ffe1ef; }
.stat .val { font-size: 21px; font-weight: 600; }
.hero-card .big { font-size: 34px; font-weight: 600; }
.hero-card .who { font-size: 14px; }
.stats-strip b { background: none; -webkit-background-clip: initial; background-clip: initial; color: #fff; font-size: 24px; font-weight: 600; }
.dial-display input { font-size: 21px; font-weight: 500; background: var(--bg-2); }
.incall .timer { font-size: 36px; font-weight: 600; }
.incall .to { font-size: 20px; }
.key b { font-family: var(--brandfont); font-weight: 500; font-size: 21px; }
.mini-stats b { font-size: 14.5px; }
.rc-out b { font-size: 22px; }

/* Flat surfaces */
.card-a { background: var(--surface); border-color: var(--line); }
.card-a::before { display: none; }
.side { background: var(--bg-2); }
.topbar { background: rgba(14,10,18,.9); }

/* Buttons: solid */
.btn-primary-a { background: var(--brand); box-shadow: none; color: #fff; }
.btn-primary-a:hover { background: var(--brand-hover); filter: none; }
.btn-primary-a:active { background: var(--brand-press); }
.btn-ghost-a { background: var(--surface-2); }
.call-btn { background: #16a34a; box-shadow: 0 8px 22px rgba(22,163,74,.3); }
.call-btn.hang { background: #dc2626; box-shadow: 0 8px 22px rgba(220,38,38,.3); }
.avatar, .bal-chip .plus, .step-n { background: var(--brand); }

/* Icon tiles: solid colours, no gloss */
.tile-ic { box-shadow: none !important; }
.tile-ic::after { display: none; }
.ic-brand { background: var(--brand); }
.ic-blue { background: var(--plum); }
.ic-cyan { background: var(--orchid); }
.ic-orange { background: var(--rose); }
.ic-violet { background: #7c3aed; }
.ic-green { background: #db2777; }
.ic-red { background: #e11d48; }

/* Sidebar / chart / keypad */
.nav-a.active { background: rgba(255,79,163,.13); box-shadow: none; }
.bar i { background: rgba(255,122,192,.28); }
.bar.today i { background: var(--brand); box-shadow: none; }
.key { background: var(--surface-2); }
.key:hover { box-shadow: none; border-color: rgba(255,79,163,.4); }
.key.press, .key:active { background: rgba(255,79,163,.25); }

/* Balance card: solid berry with the AYLE girl */
.hero-card { background: var(--berry); box-shadow: none; }
.hero-card .btn-a { color: var(--berry); }

/* Landing */
.cta-band { background: var(--brand); }
.cta-band .btn-a { color: var(--berry); }
.rc-out { background: var(--surface-2); border-color: var(--line-2); }
.live-badge i { animation: none; }

/* ── Web phone v2: incoming banner, call lines, tips ───────────────────── */
.incoming { position: sticky; top: 80px; z-index: 40; display: flex; align-items: center; gap: 14px; margin-bottom: 16px;
  padding: 14px 16px; border-radius: var(--r-lg); background: var(--surface-2); border: 1px solid rgba(34,197,94,.45);
  box-shadow: 0 16px 40px rgba(0,0,0,.45); animation: tin .25s ease; }
.inc-pulse { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: #16a34a; color: #fff; flex: 0 0 auto;
  animation: incRing 1.2s ease-in-out infinite; }
.inc-pulse svg { width: 22px; height: 22px; }
@keyframes incRing { 50% { box-shadow: 0 0 0 10px rgba(22,163,74,.18); transform: rotate(-8deg); } }
.inc-who { flex: 1 1 auto; min-width: 0; }
.inc-who small { display: block; font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: #86efac; }
.inc-who b { display: block; font-family: var(--mono); font-size: 17px; font-weight: 600; }
.lines { display: grid; gap: 8px; }
.line { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 12px; padding: 12px 14px;
  border-radius: 14px; background: var(--bg-2); border: 1px solid var(--line); cursor: pointer; transition: border-color .15s ease, opacity .15s ease; }
.line.focus { border-color: rgba(255,79,163,.55); background: rgba(255,79,163,.07); }
.line.held { opacity: .7; }
.ln-main { display: flex; align-items: center; gap: 10px; min-width: 0; }
.ln-main b { display: block; font-family: var(--mono); font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ln-main .pill { margin-top: 3px; }
.ln-heart { display: inline-grid; place-items: center; color: var(--brand); font-size: 12px; }
.ln-meta { text-align: right; display: flex; flex-direction: column; gap: 2px; }
.ln-t { font-size: 15px; font-weight: 600; }
.ln-c { font-size: 11.5px; color: #ff8fca; }
.ln-acts { display: flex; gap: 6px; }
.ln-acts .icon-btn.on { background: rgba(255,79,163,.2); color: #ff8fca; border-color: rgba(255,79,163,.45); }
.ln-acts .icon-btn.end { background: #dc2626; color: #fff; border-color: transparent; }
.ln-dtmf { grid-column: 1 / -1; font-size: 13px; letter-spacing: 3px; color: #ff8fca; }
.ctl.ctl-end { background: #dc2626; color: #fff; border-color: transparent; }
.keypad.dtmf { margin-top: 12px; }
.tip-cheaper { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin: -6px 0 14px;
  padding: 10px 12px; border-radius: 12px; background: rgba(255,79,163,.08); border: 1px solid rgba(255,79,163,.3); font-size: 13px; }
.call-hint { font-size: 11.5px; color: var(--muted); text-align: left; }
@media (max-width: 520px) {
  .line { grid-template-columns: minmax(0, 1fr) auto; }
  .ln-acts { grid-column: 1 / -1; justify-content: flex-end; }
  .incoming { top: 70px; flex-wrap: wrap; }
}

/* ── SIP settings v2: overview, finder, route cards ───────────────────── */
.ov { padding: 14px 16px; }
.ov small { display: block; font-size: 10.5px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.ov b { font-size: 14px; font-weight: 600; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.finder { padding: 14px; border-radius: 14px; background: var(--bg-2); border: 1px solid var(--line); margin-bottom: 16px; }
.finder-list { display: grid; gap: 6px; margin-top: 12px; }
.fl-row { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto auto; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); }
.fl-row.cur { border-color: rgba(255,79,163,.45); }
.fl-rank { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; font-size: 12px; font-weight: 700; background: var(--surface-3); color: var(--text-2); }
.fl-row:first-child .fl-rank { background: var(--brand); color: #fff; }
.fl-main { min-width: 0; }
.fl-main b { display: block; font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fl-main small { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 12px; }
.fl-price { font-size: 15px; } .fl-price i, .rc-stats i { font-style: normal; font-size: 11px; color: var(--muted); font-weight: 500; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.chip { height: 34px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface-2); color: var(--text-2); font-weight: 600; font-size: 13px; cursor: pointer; }
.chip span { font-family: var(--mono); font-size: 11px; color: var(--muted); margin-left: 4px; }
.chip.on { background: var(--brand); border-color: var(--brand); color: #fff; }
.chip.on span { color: rgba(255,255,255,.8); }
.route-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.route-card { display: flex; flex-direction: column; gap: 10px; padding: 16px; border-radius: 16px; background: var(--bg-2); border: 1px solid var(--line); transition: border-color .15s ease, transform .15s ease; }
.route-card:hover { border-color: rgba(255,79,163,.35); transform: translateY(-2px); }
.route-card.current { border-color: var(--brand); background: rgba(255,79,163,.06); }
.rc-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.rc-top h3 { margin: 0; font-size: 13.5px; line-height: 1.3; }
.cov { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-2); font-weight: 500; }
.rc-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 10px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.rc-stats small { display: block; font-size: 10px; font-weight: 700; letter-spacing: .8px; text-transform: uppercase; color: var(--muted); }
.rc-stats b { font-size: 13.5px; font-weight: 600; }
.rc-hl { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-size: 12.5px; color: var(--text-2); }
.rc-hl li { display: flex; justify-content: space-between; gap: 8px; }
.rc-hl b { color: #ff8fca; font-weight: 600; }
.route-card .btn-a { margin-top: auto; }
.steps-ol { margin: 0; padding-left: 20px; line-height: 1.95; color: var(--text-2); }
@media (max-width: 900px) { .overview { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .fl-row { grid-template-columns: 26px minmax(0, 1fr) auto; } .fl-row > :last-child { grid-column: 2 / -1; justify-self: start; } }

/* ── Landing v3: price checker, split sections ────────────────────────── */
.price-box { padding: 22px; }
.price-box > .input { height: 58px; font-size: 19px; }
.rc-results { margin-top: 12px; min-height: 40px; }
.rc-best { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; align-items: center; padding: 16px 18px;
  border-radius: 14px; background: rgba(255,79,163,.08); border: 1px solid rgba(255,79,163,.35); }
.rc-dest { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 15px; }
.rc-best > b { font-size: 26px; font-weight: 600; color: #fff; }
.rc-best > b i { font-style: normal; font-size: 13px; color: var(--muted); }
.rc-best > small { grid-column: 1 / -1; color: #ff9ccf; font-weight: 600; }
.rc-others { margin-top: 8px; padding: 10px 14px; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--line); display: grid; gap: 6px; }
.rc-others > small { font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); }
.rc-others > div { display: flex; justify-content: space-between; gap: 12px; font-size: 13.5px; color: var(--text-2); }
.from-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin: 24px 0 2px; }
.from-head h3 { margin: 0; font-size: 15px; }
.from-head span { font-size: 12.5px; }
.dest-a .pr small { font-family: var(--font); font-size: 10.5px; color: var(--muted); font-weight: 600; margin-right: 2px; }
.split { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); gap: 44px; align-items: center; }
.split.rev { grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr); }
.split-img { border-radius: 24px; overflow: hidden; border: 1px solid var(--line-2); background: var(--surface); }
.split-img img { display: block; width: 100%; height: auto; }
.split-h { font-size: clamp(22px, 2.8vw, 32px); margin: 6px 0 12px; line-height: 1.15; }
.split-p { font-size: 16px; line-height: 1.6; margin: 0 0 18px; }
.ticks { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 10px; }
.ticks li { display: flex; align-items: center; gap: 10px; font-weight: 500; }
.ticks svg { width: 18px; height: 18px; color: var(--brand); flex: 0 0 auto; }
.howto { margin: 0 0 22px; padding-left: 20px; display: grid; gap: 8px; color: var(--text-2); }
.howto b { color: #fff; }
@media (max-width: 900px) {
  .split, .split.rev { grid-template-columns: 1fr; gap: 24px; }
  .split.rev .split-img { order: -1; }
  .split-img { max-width: 640px; margin: 0 auto; }
}
/* Popular destinations: full country name on top, price underneath */
.dest-grid { grid-template-columns: repeat(auto-fill, minmax(165px, 1fr)); }
.dest-a { flex-wrap: wrap; row-gap: 4px; }
.dest-a .nm { flex: 1 1 calc(100% - 32px); }
.dest-a .pr { flex-basis: 100%; padding-left: 30px; font-size: 14px; }

/* ── Split account pages: Caller ID, Routes, SIP credentials, Settings ── */
.cid-top { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: stretch; }
.cid-hero { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: center; gap: 10px;
  padding: 28px; border-radius: 22px; background: var(--brand); color: #fff; min-height: 230px; }
.cid-hero::after { content: ""; position: absolute; right: -40px; bottom: -60px; width: 260px; height: 240px; opacity: .13; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 21.2 3.2 12.4a5.5 5.5 0 0 1 7.8-7.8l1 1.1 1-1.1a5.5 5.5 0 0 1 7.8 7.8z' fill='%23fff'/%3E%3C/svg%3E") center / contain no-repeat; }
.cid-label { font-family: var(--brandfont); font-size: 11px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; opacity: .85; }
.cid-big { display: flex; align-items: center; gap: 14px; font-size: clamp(26px, 3.6vw, 40px); font-weight: 600; line-height: 1.15; flex-wrap: wrap; overflow-wrap: anywhere; }
.cid-big .flag { width: 40px; height: 30px; border-radius: 6px; box-shadow: 0 0 0 2px rgba(255,255,255,.35); }
.cid-big .skel { background: rgba(255,255,255,.25); height: 36px; }
.cid-sub { font-size: 13.5px; opacity: .9; max-width: 46ch; }
.cid-acts { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 6px; position: relative; z-index: 1; }
.cid-acts .btn-a { background: rgba(255,255,255,.16); color: #fff; border: 1px solid rgba(255,255,255,.35); }
.cid-acts .btn-a:hover { background: rgba(255,255,255,.26); }
.cid-acts .cid-call { background: #fff; color: var(--berry); border-color: #fff; }
.cid-acts .cid-call:hover { background: #ffe3f1; }
.cid-input { position: relative; }
.cid-input .input { height: 56px; font-size: 19px; padding-left: 56px; }
.ci-flag { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); display: flex; pointer-events: none; }
.ci-flag .flag { width: 26px; height: 19px; }
.cid-hint { font-size: 12.5px; color: var(--muted); margin: 8px 2px 14px; min-height: 18px; }
.cid-hint.ok { color: #4ade80; } .cid-hint.bad { color: #fb7185; }
.cid-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.cid-chips .chip { display: inline-flex; align-items: center; gap: 8px; }
.cid-chips .chip span { font-size: 12.5px; color: var(--text); margin: 0; }
.cid-chips .chip:hover { border-color: rgba(255,79,163,.5); }
.info-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; color: var(--text-2); font-size: 13.5px; line-height: 1.5; }
.info-list li { position: relative; padding-left: 20px; }
.info-list li::before { content: ""; position: absolute; left: 2px; top: 7px; width: 8px; height: 8px; border-radius: 3px; background: var(--brand); transform: rotate(45deg); }
.info-list b { color: #fff; }
.switch-row { display: flex; align-items: center; gap: 10px; cursor: pointer; margin-bottom: 12px; font-weight: 600; }
.switch-row input { width: 18px; height: 18px; accent-color: var(--brand); }
.input-group-a .ig-pre { display: grid; place-items: center; width: 44px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line-2); font-family: var(--mono); color: var(--text-2); }
.sip-links { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.g-3.overview { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 900px) { .cid-top { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 620px) { .g-3.overview { grid-template-columns: minmax(0, 1fr); } .cid-hero { padding: 22px; min-height: 0; } .cid-big { font-size: 23px; gap: 10px; } .cid-big .flag { width: 30px; height: 22px; } }
@media (max-width: 620px) {
  .topbar .crumb { display: none; }
  .topbar h1 { font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .card-h:has(#appSeg) { flex-wrap: wrap; }
  #appSeg { order: 3; width: 100%; margin-left: 0; }
  #appSeg button { flex: 1 1 0; }
}
/* Staff "sign in as customer" banner */
.imp-bar { display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; padding: 8px 16px;
  background: #fbbf24; color: #1a1205; font-size: 13px; font-weight: 600; text-align: center; }
.imp-bar a { padding: 3px 10px; border-radius: 999px; background: #1a1205; color: #fbbf24 !important; }

/* ── Web phone v3: call screen, incoming screen, touch-first dialer ────── */
.phone { position: relative; overflow: hidden; }
.phone-top .cid { display: block; padding: 4px 8px; margin: -4px -8px; border-radius: 10px; }
.phone-top .cid:hover { background: rgba(255,255,255,.04); }
.phone-top .cid b::after { content: " ›"; color: var(--muted); }
.dial-display input { padding-right: 96px; text-overflow: ellipsis; }
.dial-display .paste { position: absolute; right: 56px; top: 50%; transform: translateY(-50%); }
.dial-display input::placeholder { font-size: 17px; font-family: var(--font); color: var(--muted); font-weight: 500; letter-spacing: 0; }
.key { touch-action: manipulation; -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent; }
.call-row { grid-template-columns: 1fr 76px 1fr; }
.call-side { display: flex; align-items: center; }
.call-side:first-child { justify-content: flex-end; padding-right: 10px; }
.call-side:last-child { justify-content: flex-start; padding-left: 10px; }
.call-btn { width: 76px; height: 76px; touch-action: manipulation; }

/* Back-to-call bar */
.cs-bar { display: flex; align-items: center; gap: 10px; width: 100%; margin: -6px 0 14px; padding: 10px 14px; border: 0; border-radius: 14px;
  background: #16a34a; color: #fff; font: inherit; font-size: 13.5px; cursor: pointer; text-align: left; }
.cs-bar i { width: 9px; height: 9px; border-radius: 50%; background: #fff; flex: 0 0 auto; animation: blink 1.2s infinite; }
.cs-bar span { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--mono); }
.cs-bar b { flex: 0 0 auto; font-weight: 700; }
@keyframes blink { 50% { opacity: .3; } }

/* Call screen (covers the dialer card) */
.cs { position: absolute; inset: 0; z-index: 5; display: flex; flex-direction: column; padding: 18px 20px 22px; background: var(--surface);
  animation: csIn .2s ease; }
@keyframes csIn { from { opacity: 0; transform: translateY(12px); } }
.cs-top { display: flex; align-items: center; gap: 10px; }
.cs-count { margin-left: auto; font-size: 12.5px; color: var(--muted); font-weight: 600; }
.cs-switch { display: flex; gap: 6px; overflow-x: auto; margin: 12px -4px 0; padding: 0 4px; scrollbar-width: none; }
.cs-switch::-webkit-scrollbar { display: none; }
.cs-chip { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 7px; height: 40px; padding: 0 12px; border-radius: 12px; cursor: pointer;
  background: var(--bg-2); border: 1px solid var(--line-2); color: var(--text-2); font: inherit; font-size: 12.5px; }
.cs-chip.on { border-color: var(--brand); color: #fff; background: rgba(255,79,163,.1); }
.cs-chip i { font-style: normal; font-size: 11px; color: var(--muted); }
.cs-who { flex: 1 1 auto; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 6px; min-height: 0; padding: 10px 0; }
.cs-av { position: relative; width: 104px; height: 104px; border-radius: 50%; display: grid; place-items: center; background: var(--bg-2);
  border: 3px solid rgba(255,79,163,.5); margin-bottom: 8px; overflow: visible; }
.cs-av img { width: 72px; height: 54px; object-fit: cover; border-radius: 8px; }
.cs-av .cs-heart { font-size: 40px; color: var(--brand); line-height: 1; }
.cs-av.ring::after { content: ""; position: absolute; inset: -3px; border-radius: 50%; border: 3px solid var(--brand); animation: csRing 1.4s ease-out infinite; }
@keyframes csRing { from { transform: scale(1); opacity: .9; } to { transform: scale(1.45); opacity: 0; } }
.cs-av.held { opacity: .55; }
.cs-num { font-family: var(--mono); font-size: 25px; font-weight: 600; color: #fff; letter-spacing: -.02em; overflow-wrap: anywhere; }
.cs-dest { color: var(--text-2); font-size: 14px; }
.cs-time { margin-top: 8px; font-size: 19px; color: #fff; }
.cs-cost { font-size: 12.5px; color: #ff8fca; min-height: 16px; }
.cs-pad { margin-bottom: 12px; }
.cs-pad .keypad.dtmf { margin-top: 6px; gap: 8px; }
.cs-pad .key { height: 50px; }
.cs-dtmf { text-align: center; font-size: 20px; letter-spacing: 4px; color: #ff8fca; min-height: 26px; }
.cs-ctl { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px 10px; margin-bottom: 18px; }
.cs-b { display: flex; flex-direction: column; align-items: center; gap: 7px; padding: 0; border: 0; background: none; color: var(--text-2);
  font: inherit; font-size: 12px; font-weight: 600; cursor: pointer; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.cs-b em { font-style: normal; }
.cs-b span { width: 62px; height: 62px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2);
  border: 1px solid var(--line-2); color: #fff; transition: background .15s ease, transform .1s ease; }
.cs-b span svg { width: 24px; height: 24px; }
.cs-b:active span { transform: scale(.94); }
.cs-b.on span { background: #fff; color: #1a0f1f; border-color: #fff; }
.cs-b:disabled { opacity: .35; cursor: not-allowed; }
.cs-end { display: flex; justify-content: center; }
.cs-end .call-btn { width: 72px; height: 72px; }
.cs.pad-open .cs-who { flex: 0 0 auto; padding: 0; }

/* Incoming call */
.inc-acts { display: flex; gap: 10px; flex: 0 0 auto; }
.inc-btn { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 16px; border-radius: 12px; border: 0; color: #fff;
  font: inherit; font-weight: 700; cursor: pointer; touch-action: manipulation; }
.inc-btn svg { width: 20px; height: 20px; }
.inc-btn.accept { background: #16a34a; } .inc-btn.decline { background: #dc2626; }

/* Recent: one-tap call */
.recent-item .ri-call { width: 40px; height: 40px; border-radius: 50%; border: 0; display: grid; place-items: center; flex: 0 0 auto; cursor: pointer;
  background: rgba(22,163,74,.15); color: #4ade80; }
.recent-item .ri-call svg { width: 18px; height: 18px; }
.recent-item .ri-call:hover { background: #16a34a; color: #fff; }

/* Phones: the call screen and incoming call take the whole screen */
@media (max-width: 900px) {
  .phone-wrap { gap: 14px; }
  #callsCard { display: none !important; }
  .cs { position: fixed; z-index: 950; padding: calc(14px + env(safe-area-inset-top)) 20px calc(26px + env(safe-area-inset-bottom)); background: var(--bg); }
  body.in-call { overflow: hidden; }
  .cs-num { font-size: 28px; }
  .cs-av { width: 120px; height: 120px; }
  .cs-b span { width: 68px; height: 68px; }
  .cs-end .call-btn { width: 76px; height: 76px; }
  .incoming:not(.hide) { position: fixed; inset: 0; z-index: 960; margin: 0; border-radius: 0; border: 0; flex-direction: column; justify-content: center;
    gap: 22px; background: var(--bg); padding: 40px 24px calc(48px + env(safe-area-inset-bottom)); text-align: center; }
  .incoming .inc-pulse { width: 110px; height: 110px; }
  .incoming .inc-pulse svg { width: 46px; height: 46px; }
  .incoming .inc-who { flex: 0 0 auto; }
  .incoming .inc-who b { font-size: 28px; margin-top: 6px; }
  .incoming .inc-acts { width: 100%; max-width: 360px; justify-content: space-around; margin-top: auto; }
  .incoming .inc-btn { flex-direction: column; height: auto; padding: 0; background: none !important; gap: 8px; font-weight: 600; }
  .incoming .inc-btn svg { width: 76px; height: 76px; padding: 22px; border-radius: 50%; box-sizing: border-box; }
  .incoming .inc-btn.accept svg { background: #16a34a; } .incoming .inc-btn.decline svg { background: #dc2626; }
}
@media (max-width: 520px) {
  .phone { padding: 16px; }
  .phone-top { margin-bottom: 12px; }
  .dial-display input { height: 58px; font-size: 22px; }
  .dial-meta { margin-bottom: 10px; font-size: 12px; }
  .keypad { gap: 8px; }
  .key { height: 56px; border-radius: 14px; }
  .call-row { margin-top: 12px; }
  .cs-ctl { gap: 16px 6px; }
}
@media (max-height: 700px) and (max-width: 900px) {
  .cs-av { width: 88px; height: 88px; } .cs-av img { width: 58px; height: 44px; }
  .cs-b span { width: 58px; height: 58px; }
  .cs-ctl { gap: 10px 6px; margin-bottom: 12px; }
}

/* ── Top up v2 ──────────────────────────────────────────────────────── */
.tu-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.tu-main, .tu-side { display: grid; gap: 16px; min-width: 0; }
.tu-hero { position: relative; overflow: hidden; display: flex; align-items: stretch; min-height: 200px; border-radius: 22px; background: var(--brand); }
.tu-hero-txt { position: relative; z-index: 1; padding: 24px 26px; display: flex; flex-direction: column; justify-content: center; gap: 6px; max-width: 62%; color: #fff; }
.tu-hero-txt > small { font-family: var(--brandfont); font-size: 11px; letter-spacing: 2px; text-transform: uppercase; opacity: .85; }
.tu-bal { font-size: clamp(34px, 5vw, 48px); font-weight: 600; line-height: 1.05; }
.tu-bal .skel { background: rgba(255,255,255,.25); height: 40px; }
.tu-talk { font-size: 13.5px; opacity: .95; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.tu-talk .flag { box-shadow: 0 0 0 1px rgba(255,255,255,.4); }
.tu-hero-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 6px; font-size: 12.5px; }
.tu-hero-meta .pill { background: rgba(255,255,255,.18); color: #fff; }
.tu-hero-meta .muted { color: rgba(255,255,255,.8); }
.tu-art { position: absolute; right: 0; top: 0; height: 100%; width: 52%; object-fit: cover; object-position: 30% 30%;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 35%); mask-image: linear-gradient(90deg, transparent, #000 35%); }
.amt-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.amt { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 16px 8px 14px; border-radius: 16px; cursor: pointer;
  background: var(--bg-2); border: 1.5px solid var(--line-2); color: var(--text); font: inherit; transition: border-color .15s ease, transform .1s ease; touch-action: manipulation; }
.amt b { font-size: 22px; font-weight: 600; color: #fff; }
.amt small { font-size: 11.5px; color: var(--muted); }
.amt em { position: absolute; top: -9px; left: 50%; transform: translateX(-50%); padding: 2px 9px; border-radius: 999px; background: var(--brand);
  color: #fff; font-style: normal; font-size: 10px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; white-space: nowrap; }
.amt:hover { border-color: rgba(255,79,163,.45); }
.amt:active { transform: scale(.97); }
.amt.on { border-color: var(--brand); background: rgba(255,79,163,.1); }
.amt.on small { color: #ff8fca; }
.amt-custom { display: flex; align-items: center; gap: 8px; margin-top: 12px; }
.amt-custom .icon-btn { width: 46px; height: 46px; font-size: 22px; font-weight: 600; flex: 0 0 auto; }
.amt-input { flex: 1 1 auto; display: flex; align-items: center; height: 46px; padding: 0 14px; border-radius: 14px; background: var(--bg-2); border: 1px solid var(--line-2); }
.amt-input:focus-within { border-color: var(--brand); }
.amt-input span { color: var(--muted); font-family: var(--mono); margin-right: 6px; }
.amt-input input { flex: 1 1 auto; min-width: 0; border: 0; outline: 0; background: none; color: #fff; font-size: 17px; }
.coins { display: flex; flex-wrap: wrap; gap: 6px; }
.coin { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 10px 0 6px; border-radius: 999px; background: var(--bg-2);
  border: 1px solid var(--line); font-size: 11.5px; font-weight: 700; color: var(--text-2); }
.coin img { width: 20px; height: 20px; }
.coin.more { padding: 0 10px; color: var(--muted); }
.tu-sum { margin: 18px 0 14px; padding: 12px 14px; border-radius: 14px; background: var(--bg-2); border: 1px solid var(--line); display: grid; gap: 6px; }
.tu-sum div { display: flex; justify-content: space-between; gap: 10px; font-size: 13.5px; }
.tu-sum span { color: var(--text-2); }
.tu-sum b.ok { color: #4ade80; }
.tu-safe { text-align: center; font-size: 12px; margin: 12px 0 0; }
.tu-timer { font-size: 12.5px; color: var(--muted); }
.tu-steps { list-style: none; margin: 4px 0 18px; padding: 0; display: grid; gap: 0; }
.tu-steps li { position: relative; display: flex; gap: 14px; padding: 0 0 18px; color: var(--muted); }
.tu-steps li:last-child { padding-bottom: 0; }
.tu-steps li::before { content: ""; position: absolute; left: 13px; top: 28px; bottom: 0; width: 2px; background: var(--line-2); }
.tu-steps li:last-child::before { display: none; }
.tu-steps i { position: relative; z-index: 1; width: 28px; height: 28px; border-radius: 50%; flex: 0 0 auto; display: grid; place-items: center;
  background: var(--surface-3); border: 2px solid var(--line-2); font-style: normal; font-size: 13px; }
.tu-steps b { display: block; font-size: 14px; color: var(--text-2); }
.tu-steps small { font-size: 12.5px; }
.tu-steps li.done i { background: #16a34a; border-color: #16a34a; color: #fff; }
.tu-steps li.done i::after { content: "✓"; }
.tu-steps li.done::before { background: #16a34a; }
.tu-steps li.done b { color: #fff; }
.tu-steps li.now i { border-color: var(--brand); background: rgba(255,79,163,.15); }
.tu-steps li.now i::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--brand); animation: blink 1.2s infinite; }
.tu-steps li.now b { color: #fff; }
.tu-inv-acts { display: grid; gap: 10px; }
.form-row-a { display: flex; gap: 8px; flex-wrap: wrap; }
.form-row-a > * { flex: 1 1 140px; }
.tu-done { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 0 4px; text-align: center; }
.tu-check { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: #16a34a; color: #fff; font-size: 30px; font-weight: 700;
  animation: pop .35s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes pop { from { transform: scale(.4); opacity: 0; } }
.tu-done b { font-family: var(--mono); font-size: 30px; color: #4ade80; font-weight: 600; }
.tu-done span { color: var(--text-2); margin-bottom: 10px; }
.tu-done .form-row-a { width: 100%; }
.talk { display: grid; gap: 0; }
.talk-row { display: flex; align-items: center; gap: 10px; padding: 10px 2px; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.talk-row:last-child { border-bottom: 0; }
.talk-row .grow { flex: 1 1 auto; min-width: 0; }
.talk-row b { min-width: 72px; text-align: right; color: #fff; }
.recent-item .ri-ic.warn { background: var(--warn-soft); color: #fbbf24; }
.recent-item .ri-ic { font-weight: 700; font-size: 14px; }
.tu-side .faq-a summary { padding: 13px 2px; font-size: 14px; }
.tu-side .faq-a .ans { font-size: 13.5px; }
.tu-bar { display: none; }
@media (max-width: 1000px) { .tu-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 900px) {
  .tu-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: flex; align-items: center; gap: 12px;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: rgba(14,10,18,.96); border-top: 1px solid var(--line-2); }
  .tu-bar.gone { display: none; }
  .tu-bar div { flex: 1 1 auto; }
  .tu-bar small { display: block; font-size: 11px; color: var(--muted); }
  .tu-bar b { font-size: 20px; color: #fff; }
  .tu-bar .btn-a { flex: 0 0 auto; min-width: 140px; }
  body:has(.tu-bar:not(.gone)) .content { padding-bottom: 96px; }
  .tu-pay { display: none; }
}
@media (max-width: 520px) {
  .tu-hero { min-height: 170px; }
  .tu-hero-txt { padding: 20px; max-width: 70%; }
  .tu-art { width: 60%; }
  .amt-grid { gap: 8px; }
  .amt { padding: 14px 4px 12px; }
  .amt b { font-size: 19px; }
}

/* ── Support v2 ─────────────────────────────────────────────────────── */
.sp-hero { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; padding: 24px 26px; margin-bottom: 16px;
  border-radius: 22px; background: var(--surface); border: 1px solid var(--line); }
.sp-hero h2 { margin: 0 0 6px; font-size: 24px; }
.sp-hero p { margin: 0; color: var(--text-2); max-width: 54ch; }
.sp-contact { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.sp-contact svg { width: 17px; height: 17px; }
.sp-status { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 16px; background: var(--bg-2); border: 1px solid var(--line); }
.sp-status i { width: 10px; height: 10px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 0 4px rgba(74,222,128,.15); }
.sp-status b { display: block; font-size: 13.5px; } .sp-status small { color: var(--muted); font-size: 12px; }
.sp-help { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; align-items: start; }
.sp-q { border-radius: 18px; background: var(--surface); border: 1px solid var(--line); transition: border-color .15s ease; }
.sp-q[open] { border-color: rgba(255,79,163,.45); }
.sp-q summary { list-style: none; display: flex; align-items: center; gap: 12px; padding: 16px; cursor: pointer; }
.sp-q summary::-webkit-details-marker { display: none; }
.sp-q summary .tile-ic { font-size: 17px; }
.sp-q summary b { font-size: 14px; line-height: 1.3; }
.sp-q ul { margin: 0; padding: 0 16px 10px 34px; display: grid; gap: 6px; color: var(--text-2); font-size: 13.5px; line-height: 1.5; }
.sp-q ul a { color: #ff8fca; }
.sp-q .btn-a { margin: 4px 16px 16px; }
.sp-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 16px; align-items: start; }
.sp-cats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 14px; }
.sp-cats button { height: 44px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--bg-2); color: var(--text-2); font: inherit;
  font-size: 13px; font-weight: 600; cursor: pointer; touch-action: manipulation; }
.sp-cats button.on { border-color: var(--brand); background: rgba(255,79,163,.12); color: #fff; }
.sp-count { display: block; text-align: right; font-size: 11px; color: var(--muted); margin-top: 4px; }
.sp-drop { display: flex; align-items: center; gap: 10px; padding: 14px; border-radius: 14px; border: 1.5px dashed var(--line-2); cursor: pointer;
  color: var(--text-2); font-size: 13.5px; font-weight: 600; margin-bottom: 10px; }
.sp-drop svg { width: 20px; height: 20px; flex: 0 0 auto; }
.sp-drop.over { border-color: var(--brand); background: rgba(255,79,163,.06); }
.sp-thumbs { display: flex; gap: 8px; flex-wrap: wrap; }
.sp-thumbs:not(:empty) { margin-bottom: 12px; }
.sp-th { position: relative; }
.sp-th img { width: 60px; height: 60px; object-fit: cover; border-radius: 12px; border: 1px solid var(--line-2); display: block; }
.sp-th button { position: absolute; top: -6px; right: -6px; width: 22px; height: 22px; border-radius: 50%; border: 0; background: #dc2626; color: #fff; font-size: 11px; cursor: pointer; }
.sp-tabs { margin-bottom: 12px; }
.sp-tabs span { font-family: var(--mono); font-size: 11px; color: var(--muted); margin-left: 3px; }
.sp-item { width: 100%; text-align: left; background: transparent; font: inherit; color: inherit; }
.sp-item .ri-main b { font-family: var(--font); }
.sp-item.unread { background: rgba(74,222,128,.06); border-color: rgba(74,222,128,.25); }
.sp-tag { display: inline-block; padding: 0 7px; margin-right: 6px; border-radius: 6px; background: var(--surface-3); color: var(--text-2); font-size: 11px; font-weight: 600; }
.sp-th-head { display: flex; align-items: center; gap: 10px; padding-bottom: 14px; margin-bottom: 4px; border-bottom: 1px solid var(--line); }
.sp-th-head .grow { flex: 1 1 auto; min-width: 0; }
.sp-th-head b { display: block; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sp-th-head small { color: var(--muted); font-size: 12px; }
.sp-msgs { display: flex; flex-direction: column; gap: 12px; max-height: 58vh; overflow-y: auto; padding: 14px 2px; overscroll-behavior: contain; }
.sp-msg { display: flex; gap: 8px; align-items: flex-end; max-width: 88%; }
.sp-msg.me { align-self: flex-end; flex-direction: row-reverse; }
.sp-av { width: 30px; height: 30px; border-radius: 10px; flex: 0 0 auto; }
.sp-bub { padding: 10px 13px; border-radius: 16px; background: var(--surface-2); border: 1px solid var(--line); min-width: 0; }
.sp-msg.me .sp-bub { background: rgba(255,79,163,.18); border-color: rgba(255,79,163,.3); border-bottom-right-radius: 5px; }
.sp-msg.them .sp-bub { border-bottom-left-radius: 5px; }
.sp-who { display: block; font-size: 11px; font-weight: 700; color: #ff8fca; margin-bottom: 3px; }
.sp-txt { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 14px; line-height: 1.5; }
.sp-imgs { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.sp-imgs img { width: 120px; height: 90px; object-fit: cover; border-radius: 10px; display: block; }
.sp-bub time { display: block; margin-top: 5px; font-size: 10.5px; color: var(--muted); text-align: right; }
.sp-compose { display: flex; align-items: flex-end; gap: 8px; padding-top: 12px; border-top: 1px solid var(--line); }
.sp-compose .grow { flex: 1 1 auto; min-width: 0; }
.sp-compose textarea { min-height: 44px; max-height: 160px; resize: none; padding: 11px 14px; line-height: 1.4; }
.sp-compose .icon-btn { width: 44px; height: 44px; flex: 0 0 auto; cursor: pointer; }
.sp-compose .btn-a { width: 48px; height: 44px; padding: 0; flex: 0 0 auto; }
.sp-compose svg { width: 19px; height: 19px; }
@media (max-width: 1100px) { .sp-help { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px) {
  .sp-grid { grid-template-columns: minmax(0, 1fr); }
  .sp-box { order: -1; }
  .sp-msgs { max-height: 62vh; }
}
@media (max-width: 520px) {
  .sp-hero { padding: 20px; }
  .sp-hero h2 { font-size: 20px; }
  .sp-status { width: 100%; }
  .sp-help { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .sp-cats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sp-msg { max-width: 94%; }
}
/* In-call keypad open: compact header and controls so hang-up stays on screen */
.cs { overflow-y: auto; }
.cs.pad-open .cs-av, .cs.pad-open .cs-dest, .cs.pad-open .cs-cost { display: none; }
.cs.pad-open .cs-who { flex-direction: row; justify-content: center; gap: 12px; padding: 8px 0 4px; }
.cs.pad-open .cs-num { font-size: 20px; }
.cs.pad-open .cs-time { margin: 0; font-size: 16px; color: var(--text-2); }
.cs.pad-open .cs-ctl { gap: 8px 6px; margin-bottom: 12px; }
.cs.pad-open .cs-b { flex-direction: row; justify-content: center; gap: 0; font-size: 0; }
.cs.pad-open .cs-b span { width: 48px; height: 48px; }
.cs.pad-open .cs-b span svg { width: 20px; height: 20px; }
.cs.pad-open .cs-ctl { grid-template-columns: repeat(6, 1fr); }
.cs.pad-open .cs-end .call-btn { width: 64px; height: 64px; }
.cs-av { flex: 0 0 auto; }

/* ── Rates v2 ───────────────────────────────────────────────────────── */
.rt { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.rt > * { min-width: 0; }
.rt-check { border-radius: 22px; background: var(--brand); padding: 26px; color: #fff; }
.rt-check h2 { margin: 0 0 6px; font-size: clamp(22px, 3vw, 30px); color: #fff; }
.rt-check p { margin: 0 0 16px; opacity: .9; }
.rt-num { display: flex; align-items: center; gap: 10px; height: 60px; padding: 0 12px 0 16px; border-radius: 16px; background: var(--bg-2); border: 1px solid var(--line-2); }
.rt-check .rt-num { background: #fff; border-color: #fff; }
.rt-num input { flex: 1 1 auto; min-width: 0; border: 0; outline: 0; background: none; color: #fff; font-size: 20px; }
.rt-check .rt-num input { color: #1a0f1f; }
.rt-check .rt-num input::placeholder { color: #9b8aa3; }
.rt-check .rt-num .icon-btn { background: #f3e8ef; color: #1a0f1f; border-color: transparent; }
.rt-flag { display: grid; place-items: center; flex: 0 0 auto; }
.rt-flag .flag { width: 28px; height: 20px; }
.rt-results:not(:empty) { margin-top: 14px; display: grid; gap: 10px; }
.rt-best { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; padding: 16px 18px; border-radius: 16px; background: rgba(0,0,0,.22); }
.rt-best small { display: block; font-weight: 600; opacity: .9; }
.rt-best > div > b { display: block; font-size: 34px; font-weight: 600; line-height: 1.1; }
.rt-best > div > b i { font-style: normal; font-size: 15px; opacity: .8; }
.rt-best span { font-size: 13px; opacity: .92; }
.rt-best .btn-a { background: #fff; color: var(--berry); box-shadow: none; }
.rt-best .pill { background: #fff; color: #15803d; }
.rt-others { display: grid; gap: 2px; padding: 8px 12px; border-radius: 14px; background: rgba(0,0,0,.16); }
.rt-others > div { display: flex; align-items: center; gap: 10px; padding: 6px 0; font-size: 13.5px; border-bottom: 1px solid rgba(255,255,255,.12); }
.rt-others > div:last-child { border-bottom: 0; }
.rt-others .grow { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rt-others em { font-style: normal; font-size: 11px; padding: 1px 6px; border-radius: 6px; background: rgba(255,255,255,.22); margin-left: 4px; }
.rt-others .muted { color: rgba(255,255,255,.7); font-size: 12px; }
.rt-others .btn-a { background: rgba(255,255,255,.2); color: #fff; border-color: transparent; height: 28px; }
.rt-rank { width: 22px; height: 22px; border-radius: 7px; display: grid; place-items: center; background: rgba(255,255,255,.2); font-size: 11px; font-weight: 700; flex: 0 0 auto; }
.rt-none { padding: 14px 16px; border-radius: 14px; background: rgba(0,0,0,.2); }
.rt-call { color: #fff; font-weight: 700; font-size: 13.5px; }
.rt-pop { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px; }
.rt-dest { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "f n" "p p" "s s"; gap: 4px 10px; align-items: center; padding: 12px 14px;
  border-radius: 14px; background: var(--bg-2); border: 1px solid var(--line); text-align: left; cursor: pointer; color: inherit; font: inherit; }
.rt-dest:hover { border-color: rgba(255,79,163,.45); }
.rt-dest .flag { grid-area: f; } .rt-dest .nm { grid-area: n; font-weight: 600; font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rt-dest b { grid-area: p; font-size: 18px; color: #ff8fca; } .rt-dest small { grid-area: s; color: var(--muted); font-size: 11.5px; }
.rt-routes { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 12px; margin: 0 -2px 4px; scrollbar-width: thin; }
.rt-route { position: relative; flex: 0 0 auto; display: flex; flex-direction: column; align-items: flex-start; gap: 3px; min-width: 190px; max-width: 240px; padding: 12px 14px;
  border-radius: 14px; background: var(--bg-2); border: 1.5px solid var(--line-2); color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.rt-route b { font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.rt-route small { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 12px; }
.rt-route em { position: absolute; top: -8px; right: 10px; padding: 1px 8px; border-radius: 999px; background: var(--brand); color: #fff; font-style: normal; font-size: 10px; font-weight: 700; }
.rt-route.on { border-color: var(--brand); background: rgba(255,79,163,.1); }
.rt-tools { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.rt-tools .input { flex: 1 1 260px; }
.rt-tbl td.r, .rt-tbl th.r { text-align: right; }
.rt-price { font-weight: 700; color: #fff; }
.rt-more { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 14px; font-size: 12.5px; }
.rt-blocks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.rt-blocks div { padding: 14px; border-radius: 14px; background: var(--bg-2); border: 1px solid var(--line); }
.rt-blocks b { display: block; font-size: 20px; color: #ff8fca; margin-bottom: 4px; }
.rt-blocks span { font-size: 13px; color: var(--text-2); }
@media (max-width: 720px) {
  .rt-check { padding: 20px; }
  .rt-blocks { grid-template-columns: minmax(0, 1fr); }
  .rt-pop { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rt-tbl thead { display: none; }
  .rt-tbl, .rt-tbl tbody, .rt-tbl tr, .rt-tbl td { display: block; width: 100%; }
  .rt-tbl tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 10px; padding: 12px 20px; border-bottom: 1px solid var(--line); }
  .rt-tbl td { border: 0 !important; padding: 0 !important; text-align: left !important; }
  .rt-tbl td:nth-child(1) { grid-column: 1; } .rt-tbl td:nth-child(3) { grid-column: 2; grid-row: 1; text-align: right !important; }
  .rt-tbl td:nth-child(2), .rt-tbl td:nth-child(4), .rt-tbl td:nth-child(5) { font-size: 12px; display: inline; }
  .rt-tbl td:nth-child(2) { grid-column: 1; } .rt-tbl td:nth-child(4) { grid-column: 2; text-align: right !important; }
  .rt-tbl td:nth-child(5) { display: none; }
}

/* ── SIP credentials v2 ─────────────────────────────────────────────── */
.sc-status { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding: 20px 22px; margin-bottom: 16px; border-radius: 20px;
  background: var(--surface); border: 1px solid var(--line); }
.sc-dot { position: relative; width: 16px; height: 16px; border-radius: 50%; background: var(--muted); flex: 0 0 auto; }
.sc-dot.ok { background: #4ade80; box-shadow: 0 0 0 6px rgba(74,222,128,.15); }
.sc-dot.bad { background: #f87171; box-shadow: 0 0 0 6px rgba(248,113,113,.15); }
.sc-dot.off { background: #fbbf24; box-shadow: 0 0 0 6px rgba(251,191,36,.12); }
.sc-st { flex: 1 1 260px; min-width: 0; }
.sc-st b { display: block; font-size: 17px; color: #fff; }
.sc-st small { color: var(--text-2); font-size: 13px; }
.sc-st-acts { display: flex; gap: 8px; flex-wrap: wrap; }
.sc-st-acts svg, .form-row-a svg { width: 16px; height: 16px; }
.sc-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: start; margin-bottom: 16px; }
.sc-creds { display: grid; gap: 8px; }
.sc-row { display: grid; grid-template-columns: 130px minmax(0, 1fr) auto auto; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 13px;
  background: var(--bg-2); border: 1px solid var(--line); }
.sc-row span { font-size: 11px; font-weight: 800; letter-spacing: .8px; text-transform: uppercase; color: var(--muted); }
.sc-row b { font-size: 15px; color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sc-row .icon-btn { width: 34px; height: 34px; }
.sc-row b + .icon-btn:last-child { grid-column: 4; }
.sc-rotate { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.sc-rotate b { display: block; font-size: 13.5px; } .sc-rotate small { color: var(--muted); font-size: 12px; }
.sc-apps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 14px; }
.sc-apps button { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 10px 12px; border-radius: 12px; cursor: pointer;
  background: var(--bg-2); border: 1.5px solid var(--line-2); color: var(--text); font: inherit; text-align: left; }
.sc-apps button b { font-size: 13.5px; } .sc-apps button small { font-size: 11px; color: var(--muted); }
.sc-apps button.on { border-color: var(--brand); background: rgba(255,79,163,.1); }
.sc-steps { margin: 0; padding-left: 22px; display: grid; gap: 8px; color: var(--text-2); line-height: 1.55; font-size: 14px; }
.sc-steps b { color: #fff; }
.sc-pre { margin: 8px 0; padding: 12px 14px; border-radius: 12px; background: #0a070d; border: 1px solid var(--line-2); color: #f5d0e6;
  font-family: var(--mono); font-size: 11.5px; line-height: 1.55; white-space: pre; overflow-x: auto; max-height: 260px; }
.sc-guide-foot { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 14px; font-size: 12.5px; }
.sc-set { display: grid; }
.sc-set div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 2px; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.sc-set div:last-child { border-bottom: 0; }
.sc-set span { color: var(--text-2); } .sc-set b { text-align: right; color: #fff; }
.sc-faq summary { font-size: 14px; padding: 13px 2px; }
.sc-faq .ans { font-size: 13.5px; }
@media (max-width: 1000px) { .sc-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 520px) {
  .sc-row { grid-template-columns: minmax(0, 1fr) auto auto; }
  .sc-row span { grid-column: 1 / -1; }
  .sc-apps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sc-status { padding: 16px; }
}

/* ── Routes v2 ──────────────────────────────────────────────────────── */
.ro-cur { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 14px 22px; padding: 22px 24px; margin-bottom: 16px;
  border-radius: 22px; background: var(--brand); color: #fff; }
.ro-cur-main small { font-family: var(--brandfont); font-size: 11px; letter-spacing: 2px; text-transform: uppercase; opacity: .85; }
.ro-cur-main h2 { margin: 4px 0 8px; font-size: clamp(20px, 2.6vw, 28px); color: #fff; }
.ro-cur-main h2 .skel { background: rgba(255,255,255,.25); }
.ro-cur-meta { display: flex; flex-wrap: wrap; gap: 6px; font-size: 12.5px; }
.ro-cur-meta span { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: rgba(255,255,255,.18); }
.ro-cur-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; align-self: center; }
.ro-cur-stats > div { padding: 12px; border-radius: 14px; background: rgba(0,0,0,.18); min-width: 0; }
.ro-cur-stats small { display: block; font-size: 10.5px; font-weight: 700; letter-spacing: .8px; text-transform: uppercase; opacity: .85; margin-bottom: 4px; }
.ro-cur-stats b { font-size: 18px; } .ro-cur-stats b i { font-style: normal; font-size: 11px; opacity: .8; }
.ro-cur .ro-q { background: rgba(255,255,255,.2); }
.ro-cur .ro-q em { color: #fff; }
.ro-cur-hl { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.ro-cur-hl span { display: inline-flex; align-items: center; gap: 7px; padding: 5px 10px; border-radius: 10px; background: rgba(0,0,0,.18); font-size: 12.5px; }
.ro-cur-hl em { font-style: normal; } .ro-cur-hl b { font-size: 12.5px; }
.ro-cur-hl a { margin-left: auto; font-weight: 700; font-size: 13px; color: #fff; }
.ro-find .rt-num { margin-bottom: 4px; }
.ro-chips { margin-bottom: 14px; }
.ro-chips .chip { display: inline-flex; align-items: center; gap: 6px; }
.ro-q { position: relative; display: flex; align-items: center; height: 22px; border-radius: 999px; background: var(--surface-3); overflow: hidden; font-size: 11.5px; font-weight: 700; }
.ro-q i { position: absolute; left: 0; top: 0; bottom: 0; background: #16a34a; }
.ro-q.ok i { background: #d97706; } .ro-q.bad i { background: #dc2626; }
.ro-q em { position: relative; font-style: normal; padding: 0 10px; color: #fff; }
.ro-q.new { padding: 0 10px; color: var(--muted); width: max-content; }
.ro-cur .ro-q.new { color: rgba(255,255,255,.85); }
.rc-acts { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px; margin-top: auto; }
.route-card .rc-acts .btn-a { margin-top: 0; }
@media (max-width: 900px) { .ro-cur { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 520px) {
  .ro-cur { padding: 18px; }
  .ro-cur-stats b { font-size: 15px; }
  .ro-cur-hl a { margin-left: 0; }
  #sort { width: 100%; } #sort button { flex: 1 1 0; }
}
@media (max-width: 520px) {
  .sc-row { grid-template-columns: minmax(0, 1fr) auto auto; row-gap: 4px; }
  .sc-row b + .icon-btn:last-child { grid-column: auto; }
  .sc-row b { grid-column: 1; }
}

/* ── Dashboard v3 ───────────────────────────────────────────────────── */
.db-alert { display: flex; align-items: center; gap: 10px 14px; flex-wrap: wrap; padding: 12px 16px; margin-bottom: 12px; border-radius: 14px;
  background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--brand); font-size: 13.5px; }
.db-alert b { color: #fff; } .db-alert span { color: var(--text-2); flex: 1 1 200px; }
.db-alert.warn { border-left-color: #f59e0b; } .db-alert.bad { border-left-color: #ef4444; } .db-alert.info { border-left-color: #22c55e; }
.db-top { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 16px; margin-bottom: 16px; }
.db-hero { position: relative; overflow: hidden; min-height: 280px; border-radius: 22px; background: var(--brand); color: #fff; display: flex; }
.db-hero-txt { position: relative; z-index: 1; padding: 24px 26px; display: flex; flex-direction: column; gap: 4px; max-width: 60%; }
.db-hero-txt > small { font-size: 13.5px; opacity: .9; font-weight: 600; }
.db-hero h2 { margin: 0 0 12px; font-size: clamp(20px, 2.4vw, 26px); color: #fff; overflow-wrap: anywhere; }
.db-bal-l { font-family: var(--brandfont); font-size: 11px; letter-spacing: 2px; text-transform: uppercase; opacity: .85; }
.db-bal { font-size: clamp(36px, 5vw, 52px); font-weight: 600; line-height: 1.05; }
.db-bal .skel { background: rgba(255,255,255,.25); height: 42px; }
.db-talk { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 13.5px; opacity: .95; }
.db-pills { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.db-pill { display: inline-flex; align-items: center; gap: 7px; padding: 4px 11px; border-radius: 999px; background: rgba(255,255,255,.18); font-size: 12.5px; font-weight: 600; }
.db-pill i { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.7); }
.db-pill.ok i { background: #4ade80; box-shadow: 0 0 0 3px rgba(74,222,128,.3); }
.db-pill.bad { background: #7f1d1d; }
.db-hero-acts { display: flex; gap: 8px; flex-wrap: wrap; margin-top: auto; padding-top: 16px; }
.db-hero-acts .btn-a svg { width: 17px; height: 17px; }
.db-btn-w { background: #fff; color: var(--berry); }
.db-btn-t { background: rgba(255,255,255,.18); color: #fff; border: 1px solid rgba(255,255,255,.35); }
.db-art { position: absolute; right: 0; top: 0; height: 100%; width: 55%; object-fit: cover; object-position: 65% 30%;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 40%); mask-image: linear-gradient(90deg, transparent, #000 40%); }
.db-dial { display: flex; flex-direction: column; }
.db-dial form { display: grid; gap: 10px; }
.db-dial .rt-num { height: 56px; }
.db-dial-info { font-size: 13px; color: var(--text-2); min-height: 20px; }
.db-dial .btn-ok-a svg { width: 18px; height: 18px; }
.db-recent-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.db-recent-chips button { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 10px; border-radius: 999px; cursor: pointer;
  background: var(--bg-2); border: 1px solid var(--line-2); color: var(--text-2); font-family: var(--mono); font-size: 12px; }
.db-recent-chips button:hover { border-color: rgba(255,79,163,.45); color: #fff; }
.db-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.db-kpi { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "i l" "i v" "i s"; gap: 0 12px; align-items: center;
  padding: 16px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); min-width: 0; }
.db-kpi .tile-ic { grid-area: i; }
.db-kpi small { grid-area: l; font-size: 11px; font-weight: 700; letter-spacing: .8px; text-transform: uppercase; color: var(--muted); }
.db-kpi b { grid-area: v; font-size: 22px; font-weight: 600; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.db-kpi .sub { grid-area: s; font-size: 12px; color: var(--muted); }
.db-main { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.db-col { display: grid; gap: 16px; min-width: 0; }
.db-chart { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; height: 200px; }
.db-bar { display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 0; }
.db-bar em { font-style: normal; font-family: var(--mono); font-size: 11px; color: var(--text-2); min-height: 14px; }
.db-bar > div { flex: 1 1 auto; width: 100%; max-width: 46px; display: flex; align-items: flex-end; border-radius: 10px; background: var(--bg-2); overflow: hidden; }
.db-bar i { width: 100%; border-radius: 10px; background: rgba(255,79,163,.45); transition: height .3s ease; }
.db-bar.today i { background: var(--brand); }
.db-bar span { font-size: 11.5px; color: var(--muted); font-weight: 600; }
.db-bar.today span { color: #ff8fca; }
.db-prog { height: 8px; border-radius: 999px; background: var(--bg-2); overflow: hidden; margin-bottom: 12px; }
.db-prog i { display: block; height: 100%; background: var(--brand); border-radius: 999px; transition: width .4s ease; }
.db-steps { display: grid; gap: 4px; }
.db-step { display: flex; align-items: center; gap: 10px; padding: 8px 2px; font-size: 13.5px; }
.db-step i { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; flex: 0 0 auto; border: 2px solid var(--line-2); font-style: normal; font-size: 12px; font-weight: 700; }
.db-step span { flex: 1 1 auto; }
.db-step.ok i { background: #16a34a; border-color: #16a34a; color: #fff; }
.db-step.ok span { color: var(--muted); text-decoration: line-through; }
.db-line { display: grid; gap: 6px; }
.db-li { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "l e" "v e"; gap: 2px 10px; align-items: center; padding: 10px 12px;
  border-radius: 13px; background: var(--bg-2); border: 1px solid var(--line); color: inherit; font: inherit; text-align: left; cursor: pointer; }
.db-li:hover { border-color: rgba(255,79,163,.4); }
.db-li span { grid-area: l; font-size: 10.5px; font-weight: 800; letter-spacing: .8px; text-transform: uppercase; color: var(--muted); }
.db-li b { grid-area: v; font-size: 14.5px; color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.db-li em { grid-area: e; font-style: normal; font-size: 12px; font-weight: 700; color: #ff8fca; }
.db-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.db-tile { display: flex; flex-direction: column; gap: 4px; padding: 16px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); min-width: 0; }
.db-tile:hover { border-color: rgba(255,79,163,.4); }
.db-tile .tile-ic { margin-bottom: 6px; }
.db-tile b { font-size: 14px; color: #fff; } .db-tile small { font-size: 12px; color: var(--muted); }
.recent-item .ri-call { text-decoration: none; }
@media (max-width: 1100px) { .db-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 1000px) { .db-top, .db-main { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 520px) {
  .db-hero { min-height: 250px; }
  .db-hero-txt { padding: 20px; max-width: 72%; }
  .db-art { width: 62%; }
  .db-kpis { gap: 10px; }
  .db-kpi { grid-template-columns: minmax(0, 1fr); grid-template-areas: "i" "l" "v" "s"; padding: 14px; gap: 2px; }
  .db-kpi .tile-ic { margin-bottom: 6px; }
  .db-kpi b { font-size: 19px; }
  .db-chart { height: 170px; gap: 5px; }
  .db-bar em { font-size: 9.5px; }
  #metric { width: 100%; } #metric button { flex: 1 1 0; }
}

/* ── Telegram page ──────────────────────────────────────────────────── */
.tg-hero { position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 20px;
  padding: 26px; margin-bottom: 16px; border-radius: 22px; background: #229ed9; color: #fff; }
.tg-hero h2 { margin: 12px 0 8px; font-size: clamp(22px, 3vw, 30px); color: #fff; }
.tg-hero p { margin: 0 0 18px; opacity: .95; max-width: 46ch; line-height: 1.5; }
.tg-badge { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px; border-radius: 999px; background: rgba(0,0,0,.18); font-size: 12.5px; font-weight: 700; }
.tg-badge i { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.7); }
.tg-badge.on i { background: #4ade80; box-shadow: 0 0 0 3px rgba(74,222,128,.35); }
.tg-acts { display: flex; gap: 8px; flex-wrap: wrap; }
.tg-main { background: #fff; color: #1b6fa1; }
.tg-main svg { width: 19px; height: 19px; }
.tg-ghost { background: rgba(255,255,255,.16); color: #fff; border: 1px solid rgba(255,255,255,.4); }
.tg-unlink { margin-top: 12px; padding: 0; border: 0; background: none; color: rgba(255,255,255,.85); font: inherit; font-size: 12.5px; text-decoration: underline; cursor: pointer; }
.tg-art { width: 100%; height: auto; border-radius: 16px; box-shadow: 0 20px 50px rgba(0,0,0,.3); }
.tg-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 16px; align-items: start; margin-bottom: 16px; }
.tg-side { display: grid; gap: 16px; min-width: 0; }
.tg-feats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.tg-feats div { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "i b" "i s"; gap: 2px 12px; align-items: center; padding: 12px; border-radius: 14px;
  background: var(--bg-2); border: 1px solid var(--line); }
.tg-feats span { grid-area: i; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: rgba(34,158,217,.15); font-size: 19px; }
.tg-feats b { grid-area: b; font-size: 13.5px; color: #fff; } .tg-feats small { grid-area: s; font-size: 12px; color: var(--muted); }
.tg-notes div, .tg-cmds div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 2px; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.tg-notes div:last-child, .tg-cmds div:last-child { border-bottom: 0; }
.tg-notes span, .tg-cmds span { color: var(--text-2); }
.tg-cmds code { font-family: var(--mono); font-size: 12.5px; color: #7dd3fc; }
.tg-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; counter-reset: s; }
.tg-steps li { counter-increment: s; padding: 14px; border-radius: 14px; background: var(--bg-2); border: 1px solid var(--line); }
.tg-steps li::before { content: counter(s); display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: #229ed9; color: #fff; font-weight: 700; font-size: 13px; margin-bottom: 8px; }
.tg-steps b { display: block; font-size: 14px; color: #fff; } .tg-steps span { font-size: 12.5px; color: var(--text-2); }
@media (max-width: 1000px) { .tg-hero, .tg-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 620px) {
  .tg-hero { padding: 20px; }
  .tg-feats, .tg-steps { grid-template-columns: minmax(0, 1fr); }
  .tg-acts .btn-a { flex: 1 1 100%; }
}
body.ac .db-hero .btn-a.db-btn-w { background: #fff; color: var(--berry); }
body.ac .tg-hero .btn-a.tg-main { background: #fff; color: #1b6fa1; }
body.ac .db-hero .btn-a.db-btn-t, body.ac .tg-hero .btn-a.tg-ghost { color: #fff; }
.rt-flag .flag:empty { background: rgba(255,255,255,.08); box-shadow: inset 0 0 0 1px var(--line-2); }
.db-top > *, .db-main > * { min-width: 0; }
.db-dial form { grid-template-columns: minmax(0, 1fr); }
.db-dial .rt-num input { width: 100%; }
.db-chart-h { flex-wrap: wrap; }

/* ── Web phone v4: AYLE branding + call screen in the page flow ──────── */
.ph-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.ph-brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.ph-brand img { width: 34px; height: 34px; border-radius: 10px; box-shadow: 0 0 0 2px var(--brand); flex: 0 0 auto; }
.ph-brand b { display: block; font-family: var(--brandfont); font-size: 14px; letter-spacing: .04em; color: #fff; line-height: 1.1; }
.ph-brand small { display: block; font-size: 11px; color: #ff8fca; font-weight: 600; }
.ph-cid { display: flex; align-items: center; gap: 10px; padding: 10px 12px; margin-bottom: 14px; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--line); }
.ph-cid:hover { border-color: rgba(255,79,163,.45); }
.ph-cid span { font-size: 10.5px; font-weight: 800; letter-spacing: .8px; text-transform: uppercase; color: var(--muted); flex: 0 0 auto; }
.ph-cid b { font-size: 14px; color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.ph-cid em { margin-left: auto; font-style: normal; font-size: 12px; font-weight: 700; color: #ff8fca; flex: 0 0 auto; }

/* Desktop: the call screen replaces the dialer inside the card, so the card grows */
.phone.in-call > :not(.cs) { display: none !important; }
.cs { position: relative; inset: auto; z-index: auto; min-height: 600px; padding: 0; background: transparent; }
.cs-top { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; }
.cs-top .icon-btn { justify-self: start; }
.cs-count { margin-left: 0; justify-self: end; }
.cs-brand { display: flex; align-items: center; gap: 8px; }
.cs-brand img { width: 24px; height: 24px; border-radius: 8px; box-shadow: 0 0 0 1.5px var(--brand); }
.cs-brand b { font-family: var(--brandfont); font-size: 12.5px; letter-spacing: .08em; color: #fff; }
.cs-who { flex: 1 0 auto; }
.cs-who .pill { margin: 2px 0 6px; }
.cs-logo { width: 74px; height: 74px; border-radius: 24px; object-fit: cover; }
.cs-av { background: var(--bg-2); }
@media (max-width: 900px) {
  .cs { position: fixed; inset: 0; z-index: 950; min-height: 0;
    padding: calc(14px + env(safe-area-inset-top)) 20px calc(26px + env(safe-area-inset-bottom));
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cpath d='M30 38c-3-5-11-4-11 3 0 5 7 9 11 12 4-3 11-7 11-12 0-7-8-8-11-3z' fill='%23ff4fa3' fill-opacity='.05'/%3E%3C/svg%3E"), var(--bg); }
  .cs-logo { width: 84px; height: 84px; }
}
/* Landing: "now public" badge */
.hero-badges { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.hero-new { display: inline-flex; align-items: center; height: 30px; padding: 0 12px; border-radius: 999px; background: var(--brand); color: #fff;
  font-size: 12.5px; font-weight: 700; letter-spacing: .02em; }
.hero-badges .live-badge { margin: 0; }
/* Call avatar: the picture (logo or flag) fills the whole circle */
.cs-av { padding: 4px; }
.cs-av img, .cs-av img.cs-logo { display: block; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; box-shadow: none; }
.cs-av img:not(.cs-logo) { object-position: center; }
@media (max-height: 700px) and (max-width: 900px) { .cs-av img { width: 100%; height: 100%; } }

/* ── In-call sheets (add to call, audio) ────────────────────────────── */
.cs-sheet { position: absolute; inset: 0; z-index: 6; display: flex; flex-direction: column; gap: 12px; padding: 4px 2px 8px; overflow-y: auto;
  background: var(--surface); animation: csIn .18s ease; }
.cs-sheet-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.cs-sheet-h b { font-family: var(--brandfont); font-size: 16px; color: #fff; }
.cs-merge { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: rgba(255,79,163,.08);
  border: 1px solid rgba(255,79,163,.3); font-size: 13px; cursor: pointer; }
.cs-merge input { width: 18px; height: 18px; accent-color: var(--brand); flex: 0 0 auto; }
.cs-addnum { display: flex; gap: 8px; }
.cs-addnum .input { flex: 1 1 auto; min-width: 0; height: 48px; font-size: 16px; }
.cs-addnum .btn-a { flex: 0 0 auto; height: 48px; }
.cs-addnum .btn-a svg { width: 16px; height: 16px; }
.cs-people { display: grid; gap: 6px; }
.cs-person, .ct-row { display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: 13px; background: var(--bg-2); border: 1px solid var(--line); min-width: 0; }
.ct-av { position: relative; width: 40px; height: 40px; border-radius: 13px; display: grid; place-items: center; flex: 0 0 auto;
  background: rgba(255,79,163,.15); color: #ff8fca; font-family: var(--brandfont); font-weight: 600; font-size: 15px; overflow: visible; }
.ct-av .flag { width: 24px; height: 17px; }
.ct-av img.av-img { width: 100%; height: 100%; border-radius: 13px; object-fit: cover; }
.ct-av.on::after { content: ""; position: absolute; right: -2px; bottom: -2px; width: 12px; height: 12px; border-radius: 50%; background: #22c55e; border: 2px solid var(--bg-2); }
.ct-main { flex: 1 1 auto; min-width: 0; }
.ct-main b { display: block; font-size: 14px; color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ct-main small { display: block; font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ct-main .ok { color: #4ade80; }
.ct-call { width: 40px; height: 40px; border-radius: 50%; border: 0; display: grid; place-items: center; flex: 0 0 auto; cursor: pointer;
  background: rgba(22,163,74,.15); color: #4ade80; }
.ct-call svg { width: 18px; height: 18px; }
.ct-call:hover { background: #16a34a; color: #fff; }
.cs-sheet-link { text-align: center; font-size: 13px; font-weight: 700; color: #ff8fca; margin-top: auto; padding-top: 8px; }
.cs-meter { height: 10px; border-radius: 999px; background: var(--bg-2); border: 1px solid var(--line); overflow: hidden; }
.cs-meter i { display: block; height: 100%; width: 0; background: #22c55e; transition: width .08s linear; }
.cs-meter-t { font-size: 12px; }
.cs-range { width: 100%; accent-color: var(--brand); }
@media (max-width: 900px) { .cs-sheet { padding: calc(14px + env(safe-area-inset-top)) 20px calc(20px + env(safe-area-inset-bottom)); background: var(--bg); position: fixed; z-index: 955; } }

/* ── Contacts page ──────────────────────────────────────────────────── */
.ct-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 16px; margin-bottom: 16px; }
.ct-me { padding: 22px 24px; border-radius: 22px; background: var(--brand); color: #fff; }
.ct-me small { font-family: var(--brandfont); font-size: 11px; letter-spacing: 2px; text-transform: uppercase; opacity: .85; }
.ct-me > b { display: block; font-size: clamp(30px, 4vw, 40px); font-weight: 600; margin: 6px 0; }
.ct-me > b .skel { background: rgba(255,255,255,.25); }
.ct-me p { margin: 0 0 14px; opacity: .92; font-size: 13.5px; }
.ct-me-acts { display: flex; gap: 8px; flex-wrap: wrap; }
.ct-me-acts svg { width: 16px; height: 16px; }
body.ac .ct-me .btn-a.ct-w { background: #fff; color: var(--berry); }
body.ac .ct-me .btn-a.ct-t { background: rgba(255,255,255,.18); color: #fff; border: 1px solid rgba(255,255,255,.35); }
.ct-add { display: flex; gap: 8px; }
.ct-add .input { flex: 1 1 auto; min-width: 0; }
.ct-add2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr) auto; gap: 8px; margin-bottom: 10px; }
.ct-search { margin-bottom: 10px; }
.ct-req { margin-bottom: 16px; border-color: rgba(245,158,11,.4); }
.ct-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.ct-list { display: grid; gap: 6px; }
.ct-row .icon-btn { width: 34px; height: 34px; flex: 0 0 auto; }
@media (max-width: 900px) { .ct-top, .ct-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 520px) {
  .ct-add { flex-direction: column; }
  .ct-add2 { grid-template-columns: minmax(0, 1fr); }
  .ct-row { flex-wrap: wrap; }
}
/* Telegram profile pictures */
img.avatar.av-photo { object-fit: cover; padding: 0; }
.db-who { display: flex; align-items: center; gap: 12px; }
.db-who h2 { margin-bottom: 12px; }
.db-av { width: 54px; height: 54px; border-radius: 18px; object-fit: cover; box-shadow: 0 0 0 3px rgba(255,255,255,.5); flex: 0 0 auto; margin-bottom: 12px; }
.tg-who { display: flex; align-items: center; gap: 12px; }
.tg-av { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 3px rgba(255,255,255,.6); }


/* ── Cross-promo band (sister site) ─────────────────────────────────── */
.cross { display: flex; align-items: center; gap: 18px; margin: 26px 0; padding: 20px 24px; border-radius: 22px;
  background: linear-gradient(120deg, rgba(255,79,163,.14), rgba(192,132,252,.1)); border: 1px solid rgba(255,79,163,.3); }
.cross-ic { width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center; flex: 0 0 auto; font-size: 26px;
  background: rgba(255,79,163,.16); border: 1px solid rgba(255,79,163,.3); }
.cross-txt { flex: 1 1 auto; min-width: 0; }
.cross-txt small { display: block; font-family: var(--brandfont); font-size: 10.5px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; color: #ff8fca; }
.cross-txt b { display: block; font-size: 17px; color: #fff; margin: 3px 0; }
.cross-txt span { font-size: 13.5px; color: var(--text-2); }
.cross-btn { flex: 0 0 auto; }

@media (max-width: 640px) {
  .cross { flex-direction: column; align-items: flex-start; text-align: left; gap: 12px; padding: 18px; }
  .cross-btn { width: 100%; }
}
body.ac .cross .cross-btn { background: var(--brand); color: #fff; font-weight: 700; box-shadow: 0 8px 22px rgba(255,79,163,.32); }
body.ac .cross .cross-btn:hover { background: var(--brand-hover); color: #fff; }
