/* =====================================================================
   VOIP — clean dark UI
   ===================================================================== */

:root {
  --bg: #050a16;
  --bg-2: #0a1120;
  --panel: rgba(14, 22, 42, 0.72);
  --panel-solid: #0d152800;
  --stroke: rgba(120, 160, 255, 0.10);
  --stroke-strong: rgba(140, 175, 255, 0.20);
  --text: #e9eefb;
  --muted: #97a3c4;
  --faint: #5f6e92;

  --accent: #2f6bff;
  --accent-2: #36c5ff;
  --accent-glow: rgba(47, 107, 255, 0.45);
  --good: #3ddc97;
  --warn: #ffc13b;
  --bad: #ff5d6c;

  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  --font: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", "SF Mono", ui-monospace, "Cascadia Code", monospace;
}

* { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  min-height: 100vh;
}

/* Clean deep-blue night glow */
body::before,
body::after {
  content: "";
  position: fixed;
  inset: -25%;
  z-index: -4;
  background:
    radial-gradient(52% 46% at 50% 0%, rgba(47, 107, 255, 0.26), transparent 62%),
    radial-gradient(38% 40% at 85% 16%, rgba(54, 197, 255, 0.12), transparent 60%);
  filter: blur(34px);
  animation: drift 32s ease-in-out infinite alternate;
}
body::after { animation-duration: 44s; animation-direction: alternate-reverse; opacity: 0.5; transform-origin: 30% 15%; }
body {
  background-image:
    radial-gradient(circle at 50% -15%, #0e1c3e 0%, var(--bg) 55%),
    linear-gradient(180deg, #060d1c, #04070f);
}

@keyframes drift {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-3%, 2%) scale(1.06); }
}

/* particle network canvas (added by particles.js) */
.bg-canvas { position: fixed; inset: 0; z-index: -2; pointer-events: none; opacity: 0.45; }

/* very subtle blue grid overlay */
body > .grid-overlay {
  position: fixed; inset: 0; z-index: -3; pointer-events: none;
  background-image:
    linear-gradient(rgba(120, 160, 255, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120, 160, 255, 0.028) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(circle at 50% 22%, #000 0%, transparent 68%);
}

/* deep vignette for clean edges */
body > .vignette {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(125% 92% at 50% 22%, transparent 48%, rgba(2, 5, 12, 0.72) 100%);
}

a { color: inherit; text-decoration: none; }

/* ---------------- Layout ---------------- */
.container {
  width: min(1080px, 92vw);
  margin: 0 auto;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: 0.5px;
  font-size: 20px;
}
.brand .logo {
  width: 38px; height: 38px;
  border-radius: 11px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 8px 24px var(--accent-glow);
}
.brand .logo svg { width: 22px; height: 22px; }
.brand b { background: linear-gradient(90deg, #fff, #c9c6ff); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* brand text block (Sound List / VOIP CALLING) */
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-text .bt-main { font-weight: 900; font-size: 19px; letter-spacing: -0.3px; background: linear-gradient(90deg, #fff, #c9c6ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.brand-text .bt-sub { font-size: 9.5px; letter-spacing: 3px; font-weight: 700; color: var(--accent); margin-top: 2px; }

/* animated equalizer logo */
.logo-eq { overflow: hidden; }
.logo-eq svg { width: 24px; height: 24px; }
.logo-eq rect { transform-box: fill-box; transform-origin: center; animation: eq 1.05s ease-in-out infinite; fill: #fff; }
.logo-eq rect:nth-child(1) { animation-delay: -0.2s; }
.logo-eq rect:nth-child(2) { animation-delay: -0.5s; }
.logo-eq rect:nth-child(3) { animation-delay: 0s; }
.logo-eq rect:nth-child(4) { animation-delay: -0.35s; }
@keyframes eq { 0%, 100% { transform: scaleY(0.4); } 50% { transform: scaleY(1); } }

/* SVC frosted-glass wordmark (matches the brand logo) */
.svc-mark {
  font-weight: 900; letter-spacing: 1.5px; font-size: 20px; line-height: 1;
  color: rgba(233, 240, 255, 0.92);
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.32);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.18), 0 0 18px rgba(47, 107, 255, 0.5);
}
.svc-hero {
  font-weight: 900; letter-spacing: 5px;
  font-size: clamp(76px, 13vw, 176px); line-height: 0.88; margin: 10px 0 0;
  color: rgba(226, 236, 255, 0.82);
  -webkit-text-stroke: 2px rgba(255, 255, 255, 0.3);
  text-shadow:
    0 2px 0 rgba(255, 255, 255, 0.12),
    0 -1px 0 rgba(0, 0, 0, 0.25),
    0 0 50px rgba(47, 107, 255, 0.55),
    0 0 110px rgba(47, 107, 255, 0.32);
}
.svc-hero-sub {
  font-weight: 800; letter-spacing: 9px; color: var(--accent-2);
  font-size: clamp(12px, 1.6vw, 16px); margin: 6px 0 24px; text-transform: uppercase;
}

.nav { display: flex; gap: 8px; align-items: center; }
.nav-link {
  padding: 9px 14px; border-radius: 10px; color: var(--muted);
  font-weight: 600; font-size: 14px; transition: 0.2s;
}
.nav-link:hover { color: var(--text); background: rgba(255, 255, 255, 0.05); }

/* ---------------- Cards / panels ---------------- */
.card {
  background: var(--panel);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  box-shadow: var(--shadow);
}
.card.pad { padding: 26px; }

.glow-edge { position: relative; }
.glow-edge::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px;
  background: linear-gradient(135deg, var(--accent), transparent 40%, transparent 60%, var(--accent-2));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0.6; pointer-events: none;
}

/* ---------------- Buttons ---------------- */
.btn {
  appearance: none; border: none; cursor: pointer;
  font-family: inherit; font-weight: 700; font-size: 15px;
  padding: 13px 22px; border-radius: 12px;
  color: #fff; background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--stroke-strong);
  display: inline-flex; align-items: center; gap: 10px; justify-content: center;
  transition: transform 0.08s ease, box-shadow 0.2s ease, background 0.2s ease, filter 0.2s;
  position: relative; overflow: hidden;
}
.btn:hover { background: rgba(255, 255, 255, 0.1); }
.btn:active { transform: translateY(1px) scale(0.99); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn svg { width: 18px; height: 18px; }

.btn-primary {
  background: linear-gradient(135deg, var(--accent), #1e4fd6);
  border: none;
  box-shadow: 0 10px 30px var(--accent-glow);
}
.btn-primary:hover { filter: brightness(1.08); box-shadow: 0 14px 38px var(--accent-glow); }

.btn-discord { background: linear-gradient(135deg, #5865f2, #4752c4); border: none; box-shadow: 0 10px 30px rgba(88, 101, 242, 0.4); }
.btn-discord:hover { filter: brightness(1.08); }

.btn-ghost { background: transparent; }
.btn-danger { background: rgba(255, 93, 108, 0.14); border-color: rgba(255, 93, 108, 0.4); color: #ffb3bb; }
.btn-danger:hover { background: rgba(255, 93, 108, 0.22); }
.btn-block { width: 100%; }
.btn-sm { padding: 8px 14px; font-size: 13px; border-radius: 9px; }

/* shimmer on primary */
.btn-primary::after, .btn-discord::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, 0.25), transparent 70%);
  transform: translateX(-120%); transition: transform 0.6s;
}
.btn-primary:hover::after, .btn-discord:hover::after { transform: translateX(120%); }

/* ---------------- Inputs ---------------- */
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 13px; font-weight: 600; color: var(--muted); }
.input {
  width: 100%; padding: 14px 16px; border-radius: 12px;
  background: rgba(8, 9, 16, 0.6); border: 1px solid var(--stroke-strong);
  color: var(--text); font-family: inherit; font-size: 15px; outline: none;
  transition: 0.2s;
}
.input:focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(47, 107, 255, 0.18); }
.input::placeholder { color: var(--faint); }
.input.mono { font-family: var(--mono); letter-spacing: 1px; text-transform: uppercase; }

.row { display: flex; gap: 12px; flex-wrap: wrap; }
.row > * { flex: 1; min-width: 0; }

/* ---------------- Landing / hero ---------------- */
.hero {
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center;
  padding: 60px 0 40px;
}
.hero h1 {
  font-size: clamp(38px, 6vw, 64px); line-height: 1.02; margin: 0 0 18px;
  font-weight: 900; letter-spacing: -1.5px;
}
.hero h1 .grad {
  background: linear-gradient(100deg, var(--accent-2), var(--accent) 60%, #7fd7ff);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p.lead { font-size: 18px; color: var(--muted); margin: 0 0 28px; max-width: 50ch; line-height: 1.6; }
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px; border-radius: 999px; font-size: 13px; font-weight: 600;
  background: rgba(47, 107, 255, 0.12); border: 1px solid rgba(47, 107, 255, 0.3);
  color: #d7cfff; margin-bottom: 22px;
}
.pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--good); box-shadow: 0 0 10px var(--good); animation: pulse 1.8s infinite; }
@keyframes pulse { 50% { opacity: 0.4; } }

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 46px; }
.feature {
  padding: 20px; border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.03); border: 1px solid var(--stroke);
  transition: 0.25s;
}
.feature:hover { transform: translateY(-4px); border-color: var(--stroke-strong); background: rgba(255, 255, 255, 0.05); }
.feature .ic { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; margin-bottom: 12px; background: rgba(47, 107, 255, 0.14); color: var(--accent); }
.feature h3 { margin: 0 0 6px; font-size: 16px; }
.feature p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.5; }

/* login card on hero */
.login-card { padding: 34px; text-align: center; }
.login-card .orb {
  width: 92px; height: 92px; margin: 0 auto 18px; border-radius: 50%;
  display: grid; place-items: center;
  background: radial-gradient(circle at 35% 30%, var(--accent), #10245e);
  box-shadow: 0 0 40px var(--accent-glow), inset 0 0 30px rgba(0, 0, 0, 0.4);
  animation: float 4s ease-in-out infinite;
}
@keyframes float { 50% { transform: translateY(-8px); } }
.login-card h2 { margin: 0 0 6px; font-size: 24px; }
.login-card p { color: var(--muted); margin: 0 0 22px; font-size: 14.5px; }
.divider { height: 1px; background: var(--stroke); margin: 22px 0; }
.fineprint { font-size: 12px; color: var(--faint); margin-top: 16px; }

/* ---------------- Dashboard ---------------- */
.dash-grid { display: grid; grid-template-columns: 320px 1fr; gap: 22px; align-items: start; }

.profile-card { text-align: center; padding: 28px; }
.avatar { width: 96px; height: 96px; border-radius: 26px; object-fit: cover; border: 2px solid var(--stroke-strong); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4); }
.profile-card .name { font-size: 20px; font-weight: 800; margin: 14px 0 2px; }
.profile-card .handle { color: var(--faint); font-size: 13px; font-family: var(--mono); }

.balance {
  margin-top: 22px; padding: 22px; border-radius: var(--radius-sm); text-align: center;
  background: linear-gradient(135deg, rgba(47, 107, 255, 0.16), rgba(33, 212, 253, 0.08));
  border: 1px solid rgba(47, 107, 255, 0.3);
}
.balance .num { font-size: 52px; font-weight: 900; line-height: 1; letter-spacing: -2px; background: linear-gradient(120deg, #fff, #c9c6ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.balance .lbl { color: var(--muted); font-size: 13px; margin-top: 6px; text-transform: uppercase; letter-spacing: 1.5px; }

.section-title { font-size: 14px; text-transform: uppercase; letter-spacing: 1.5px; color: var(--faint); font-weight: 700; margin: 0 0 14px; }

.redeem-box { display: flex; gap: 12px; }
.redeem-box .input { flex: 1; }

.history-list { display: flex; flex-direction: column; gap: 10px; max-height: 340px; overflow: auto; }
.history-item {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px;
  border-radius: var(--radius-sm); background: rgba(255, 255, 255, 0.03); border: 1px solid var(--stroke);
}
.history-item .badge { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; flex: none; }
.badge.green { background: rgba(61, 220, 151, 0.16); color: var(--good); }
.badge.violet { background: rgba(47, 107, 255, 0.16); color: var(--accent); }
.history-item .meta { flex: 1; min-width: 0; }
.history-item .meta .t { font-weight: 600; font-size: 14px; }
.history-item .meta .s { color: var(--faint); font-size: 12px; font-family: var(--mono); }
.history-item .amt { font-weight: 800; }
.amt.plus { color: var(--good); }
.amt.minus { color: var(--bad); }

.empty { text-align: center; color: var(--faint); padding: 30px; font-size: 14px; }

/* ---------------- Admin ---------------- */
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 22px; }
.stat { padding: 18px; border-radius: var(--radius-sm); background: rgba(255, 255, 255, 0.03); border: 1px solid var(--stroke); }
.stat .v { font-size: 30px; font-weight: 900; letter-spacing: -1px; }
.stat .k { color: var(--muted); font-size: 12.5px; text-transform: uppercase; letter-spacing: 1px; margin-top: 2px; }

.tabs { display: flex; gap: 6px; margin-bottom: 18px; background: rgba(255, 255, 255, 0.03); padding: 5px; border-radius: 12px; border: 1px solid var(--stroke); width: fit-content; }
.tab { padding: 9px 18px; border-radius: 9px; font-weight: 700; font-size: 14px; color: var(--muted); cursor: pointer; transition: 0.2s; border: none; background: transparent; font-family: inherit; }
.tab.active { background: linear-gradient(135deg, var(--accent), #1e4fd6); color: #fff; box-shadow: 0 6px 18px var(--accent-glow); }

.table-wrap { overflow: auto; border-radius: var(--radius-sm); border: 1px solid var(--stroke); }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
thead th { text-align: left; padding: 13px 16px; color: var(--faint); font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: 1px; background: rgba(255, 255, 255, 0.02); border-bottom: 1px solid var(--stroke); }
tbody td { padding: 13px 16px; border-bottom: 1px solid var(--stroke); vertical-align: middle; }
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover { background: rgba(255, 255, 255, 0.025); }
.code { font-family: var(--mono); letter-spacing: 0.5px; background: rgba(47, 107, 255, 0.1); padding: 4px 9px; border-radius: 7px; border: 1px solid rgba(47, 107, 255, 0.2); cursor: pointer; user-select: all; font-size: 13px; }
.code:hover { background: rgba(47, 107, 255, 0.2); }

.tag { padding: 4px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; }
.tag.open { background: rgba(61, 220, 151, 0.14); color: var(--good); }
.tag.used { background: rgba(154, 160, 180, 0.14); color: var(--muted); }
.tag.revoked { background: rgba(255, 93, 108, 0.14); color: var(--bad); }

.user-cell { display: flex; align-items: center; gap: 10px; }
.user-cell img { width: 30px; height: 30px; border-radius: 8px; }

.generated-keys { margin-top: 18px; display: none; }
.generated-keys.show { display: block; }
.key-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.key-chip { font-family: var(--mono); font-size: 13px; padding: 8px 12px; border-radius: 9px; background: rgba(61, 220, 151, 0.1); border: 1px solid rgba(61, 220, 151, 0.3); cursor: pointer; }
.key-chip:hover { background: rgba(61, 220, 151, 0.2); }

/* gate (admin login) */
.gate { min-height: 80vh; display: grid; place-items: center; }
.gate .card { width: min(420px, 92vw); padding: 34px; text-align: center; }
.gate .lock { width: 70px; height: 70px; margin: 0 auto 16px; border-radius: 20px; display: grid; place-items: center; background: rgba(47, 107, 255, 0.14); color: var(--accent); }

/* ---------------- Toasts ---------------- */
.toast-host { position: fixed; bottom: 22px; right: 22px; display: flex; flex-direction: column; gap: 10px; z-index: 9999; }
.toast {
  padding: 14px 18px; border-radius: 12px; font-weight: 600; font-size: 14px; max-width: 340px;
  background: var(--panel-solid); background: rgba(20, 22, 33, 0.92); border: 1px solid var(--stroke-strong);
  box-shadow: var(--shadow); backdrop-filter: blur(12px);
  transform: translateX(120%); opacity: 0; transition: 0.3s cubic-bezier(0.2, 0.9, 0.3, 1);
  border-left: 3px solid var(--accent);
}
.toast.show { transform: translateX(0); opacity: 1; }
.toast-success { border-left-color: var(--good); }
.toast-error { border-left-color: var(--bad); }

/* ---------------- Sound toggle ---------------- */
.sound-toggle {
  position: fixed; bottom: 22px; left: 22px; z-index: 9999;
  display: flex; align-items: center; gap: 9px;
  padding: 10px 16px; border-radius: 999px; cursor: pointer;
  background: rgba(20, 22, 33, 0.8); border: 1px solid var(--stroke-strong);
  color: var(--text); font-family: inherit; font-weight: 600; font-size: 13px;
  backdrop-filter: blur(12px); transition: 0.2s;
}
.sound-toggle:hover { background: rgba(30, 33, 48, 0.9); }
.sound-toggle.muted { color: var(--faint); }
.sound-toggle .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--faint); transition: 0.2s; }
.sound-toggle .dot.on { background: var(--good); box-shadow: 0 0 10px var(--good); }

/* ---------------- Misc ---------------- */
.center-screen { min-height: 70vh; display: grid; place-items: center; }
.spinner { width: 34px; height: 34px; border-radius: 50%; border: 3px solid rgba(255, 255, 255, 0.15); border-top-color: var(--accent); animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.fade-in { animation: fadeIn 0.5s ease both; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } }

footer { text-align: center; padding: 40px 0; color: var(--faint); font-size: 13px; }

/* ================= Phone / Dialpad / Phonebook ================= */
.dash { display: flex; flex-direction: column; gap: 22px; }

/* profile strip */
.profile-strip { display: flex; align-items: center; gap: 16px; padding: 16px 20px; flex-wrap: wrap; }
.avatar-sm { width: 52px; height: 52px; border-radius: 14px; object-fit: cover; border: 2px solid var(--stroke-strong); }
.profile-strip .who { min-width: 120px; }
.profile-strip .who .name { font-weight: 800; font-size: 17px; }
.profile-strip .who .handle { color: var(--faint); font-size: 12px; font-family: var(--mono); }
.bal-pill {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 8px 18px; border-radius: 14px; min-width: 78px;
  background: linear-gradient(135deg, rgba(47, 107, 255, 0.2), rgba(33, 212, 253, 0.1));
  border: 1px solid rgba(47, 107, 255, 0.3);
}
.bal-pill .n { font-size: 26px; font-weight: 900; line-height: 1; }
.bal-pill .l { font-size: 10px; text-transform: uppercase; letter-spacing: 1.5px; color: var(--muted); margin-top: 2px; }
.redeem-mini { display: flex; gap: 10px; margin-left: auto; flex: 1; min-width: 260px; }
.redeem-mini .input { flex: 1; }

.phone-grid { display: grid; grid-template-columns: 380px 1fr; gap: 22px; align-items: start; }

/* phone card */
.phone { padding: 22px; }
.phone-display {
  display: flex; align-items: center; gap: 8px; margin-bottom: 20px;
  background: rgba(8, 9, 16, 0.6); border: 1px solid var(--stroke-strong);
  border-radius: 14px; padding: 6px 6px 6px 18px;
}
.dial-input {
  flex: 1; background: transparent; border: none; outline: none; color: var(--text);
  font-family: var(--mono); font-size: 28px; font-weight: 600; letter-spacing: 2px;
  padding: 12px 0; width: 100%; min-width: 0;
}
.dial-input::placeholder { color: var(--faint); font-weight: 400; letter-spacing: 0; }
.dial-back {
  flex: none; width: 46px; height: 46px; border-radius: 12px; cursor: pointer;
  background: rgba(255, 255, 255, 0.05); border: 1px solid var(--stroke);
  color: var(--muted); display: grid; place-items: center; transition: 0.15s;
}
.dial-back:hover { background: rgba(255, 93, 108, 0.16); color: var(--bad); }

.dialpad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 20px; }
.dial-key {
  aspect-ratio: 1.35 / 1; border-radius: 16px; cursor: pointer;
  background: rgba(255, 255, 255, 0.04); border: 1px solid var(--stroke);
  color: var(--text); display: flex; flex-direction: column; align-items: center; justify-content: center;
  font-family: inherit; gap: 1px; transition: transform 0.06s, background 0.15s, box-shadow 0.15s;
  position: relative; overflow: hidden;
}
.dial-key:hover { background: rgba(47, 107, 255, 0.16); border-color: rgba(47, 107, 255, 0.4); }
.dial-key:active { transform: scale(0.94); background: rgba(47, 107, 255, 0.3); box-shadow: 0 0 24px var(--accent-glow); }
.dial-key .d { font-size: 26px; font-weight: 700; line-height: 1; }
.dial-key .sub { font-size: 10px; letter-spacing: 2px; color: var(--faint); font-weight: 700; min-height: 12px; }

.call-btn {
  width: 100%; background: linear-gradient(135deg, var(--good), #2bb87f); border: none;
  color: #04140d; font-weight: 800; font-size: 16px; padding: 16px;
  box-shadow: 0 12px 30px rgba(61, 220, 151, 0.35);
}
.call-btn:hover { filter: brightness(1.06); }
.call-btn svg { width: 20px; height: 20px; }

/* phonebook */
.phonebook { padding: 22px; }
.pb-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.free-tag { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; color: var(--good); background: rgba(61, 220, 151, 0.12); border: 1px solid rgba(61, 220, 151, 0.3); padding: 4px 10px; border-radius: 999px; }
.pb-group-label { font-size: 12px; text-transform: uppercase; letter-spacing: 1.5px; color: var(--faint); font-weight: 700; margin: 16px 0 8px; }
.pb-list { display: flex; flex-direction: column; gap: 10px; }
.pb-card {
  display: flex; align-items: center; gap: 14px; padding: 12px 14px; cursor: pointer;
  border-radius: 14px; background: rgba(255, 255, 255, 0.03); border: 1px solid var(--stroke);
  transition: 0.18s;
}
.pb-card:hover { transform: translateX(3px); border-color: var(--stroke-strong); background: rgba(255, 255, 255, 0.05); }
.pb-ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; flex: none; }
.pb-ic svg { width: 24px; height: 24px; }
.pb-meta { flex: 1; min-width: 0; }
.pb-name { font-weight: 700; font-size: 15px; }
.pb-sub { color: var(--faint); font-size: 12.5px; }
.pb-num { font-family: var(--mono); font-weight: 700; font-size: 18px; letter-spacing: 1px; }
.pb-go {
  flex: none; width: 42px; height: 42px; border-radius: 12px; cursor: pointer;
  background: rgba(61, 220, 151, 0.14); border: 1px solid rgba(61, 220, 151, 0.3);
  color: var(--good); display: grid; place-items: center; transition: 0.15s;
}
.pb-go:hover { background: var(--good); color: #04140d; }
.pb-go svg { width: 18px; height: 18px; }

/* per-category accent colors for icon tiles */
.c-red .pb-ic { background: rgba(255, 93, 108, 0.16); color: var(--bad); }
.c-blue .pb-ic { background: rgba(33, 212, 253, 0.16); color: var(--accent-2); }
.c-green .pb-ic { background: rgba(61, 220, 151, 0.16); color: var(--good); }
.c-violet .pb-ic { background: rgba(47, 107, 255, 0.18); color: var(--accent); }
.c-amber .pb-ic { background: rgba(255, 193, 59, 0.16); color: var(--warn); }
.c-slate .pb-ic { background: rgba(154, 160, 180, 0.16); color: var(--muted); }

.pb-note { margin: 16px 0 0; font-size: 12.5px; color: var(--muted); line-height: 1.5; padding: 12px 14px; background: rgba(255, 193, 59, 0.07); border: 1px solid rgba(255, 193, 59, 0.22); border-radius: 12px; }
.pb-note b { color: var(--warn); }
.warn-text { color: var(--warn); }

/* city police list with search */
.free-tag.warn { color: var(--warn); background: rgba(255, 193, 59, 0.12); border-color: rgba(255, 193, 59, 0.3); }
.pb-search { margin-bottom: 12px; padding: 12px 14px; font-size: 14px; }
.pb-cities { display: flex; flex-direction: column; gap: 8px; max-height: 420px; overflow-y: auto; padding-right: 4px; }
.pb-cities::-webkit-scrollbar { width: 8px; }
.pb-cities::-webkit-scrollbar-thumb { background: rgba(120, 160, 255, 0.18); border-radius: 8px; }
.pb-cities::-webkit-scrollbar-thumb:hover { background: rgba(120, 160, 255, 0.3); }
.city-row {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px; cursor: pointer; min-height: 58px;
  border-radius: 12px; background: rgba(255, 255, 255, 0.03); border: 1px solid var(--stroke);
  transition: background 0.16s, border-color 0.16s; position: relative; overflow: hidden;
}
.city-row:hover { border-color: rgba(47, 107, 255, 0.4); background: rgba(47, 107, 255, 0.08); }
.city-ic { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; flex: none; background: rgba(47, 107, 255, 0.16); color: var(--accent); }
.city-ic svg { width: 19px; height: 19px; }
.city-meta { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; justify-content: center; gap: 3px; }
.city-name { font-weight: 700; font-size: 15px; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.city-sub { color: var(--faint); font-size: 12px; line-height: 1.15; }
.city-num { font-family: var(--mono); font-weight: 600; font-size: 13.5px; letter-spacing: 0.5px; color: var(--muted); white-space: nowrap; flex: none; }
.city-row .pb-go { width: 38px; height: 38px; flex: none; }
.city-row .pb-go svg { width: 16px; height: 16px; }

/* group-call button + "or" separator */
.or-sep { display: flex; align-items: center; gap: 12px; margin: 16px 0; color: var(--faint); font-size: 12px; }
.or-sep::before, .or-sep::after { content: ""; flex: 1; height: 1px; background: var(--stroke); }
.btn-group-call {
  width: 100%; background: linear-gradient(135deg, var(--accent), #1e4fd6); border: none; color: #fff;
  font-weight: 800; font-size: 15px; padding: 15px; box-shadow: 0 12px 30px var(--accent-glow);
}
.btn-group-call:hover { filter: brightness(1.08); }
.btn-group-call svg { width: 20px; height: 20px; }

/* history re-call button + blue badge */
.badge.blue { background: rgba(47, 107, 255, 0.18); color: var(--accent); }
.recall-btn {
  display: inline-flex; align-items: center; gap: 6px; flex: none; cursor: pointer;
  padding: 7px 12px; border-radius: 9px; font-family: inherit; font-weight: 700; font-size: 12.5px;
  background: rgba(47, 107, 255, 0.14); border: 1px solid rgba(47, 107, 255, 0.32); color: #cfe0ff;
  transition: 0.15s; margin-right: 10px; position: relative; overflow: hidden;
}
.recall-btn:hover { background: rgba(47, 107, 255, 0.26); }
.recall-btn svg { width: 14px; height: 14px; }

/* ===================== Group call room (call.html) ===================== */
.call-page { display: grid; place-items: start center; padding: 30px 0 60px; }
.call-card { width: min(440px, 94vw); text-align: center; }
.call-card-wide { width: min(720px, 94vw); }
.call-orb { margin: 0 auto 18px; }
.muted-text { color: var(--muted); }
.call-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.live-badge { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 800; letter-spacing: 1px; color: var(--bad); background: rgba(255, 93, 108, 0.12); border: 1px solid rgba(255, 93, 108, 0.3); padding: 6px 12px; border-radius: 999px; }
.live-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--bad); box-shadow: 0 0 10px var(--bad); animation: pulse 1.6s infinite; }
.connstate { color: var(--warn); font-size: 13px; min-height: 18px; text-align: center; margin-bottom: 8px; }

.vtiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 14px; margin: 8px 0 6px; }
.vtile {
  display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 22px 12px;
  border-radius: 16px; background: rgba(255, 255, 255, 0.03); border: 1px solid var(--stroke);
  transition: box-shadow 0.18s, border-color 0.18s; position: relative;
}
.vtile.speaking { border-color: var(--good); box-shadow: 0 0 0 2px rgba(61, 220, 151, 0.4), 0 0 26px rgba(61, 220, 151, 0.3); }
.vtile.is-muted { opacity: 0.85; }
.vavatar {
  width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center;
  font-weight: 800; font-size: 22px; color: #fff;
  background: radial-gradient(circle at 35% 30%, var(--accent), #10245e);
  box-shadow: 0 8px 24px var(--accent-glow);
}
.vtile.speaking .vavatar { animation: talk 0.8s ease-in-out infinite; }
@keyframes talk { 50% { transform: scale(1.06); } }
.vname { font-weight: 700; font-size: 14px; text-align: center; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vmic { color: var(--muted); }
.vtile.is-muted .vmic { color: var(--bad); }

.invite-bar { display: flex; gap: 10px; }
.invite-bar .input { flex: 1; min-width: 0; font-size: 13px; }

.call-controls { display: flex; align-items: center; justify-content: center; gap: 22px; margin-top: 26px; }
.ended-ic { width: 70px; height: 70px; margin: 0 auto 16px; border-radius: 20px; display: grid; place-items: center; background: rgba(255, 93, 108, 0.14); color: var(--bad); }

.badge.red { background: rgba(255, 93, 108, 0.16); color: var(--bad); }
.amt:not(.plus):not(.minus) { color: var(--good); font-size: 13px; }

/* ===================== Call screen overlay ===================== */
.call-screen {
  position: fixed; inset: 0; z-index: 10000; display: grid; place-items: center;
  background: rgba(6, 7, 12, 0.72); backdrop-filter: blur(10px);
  opacity: 0; transition: opacity 0.3s;
}
.call-screen.show { opacity: 1; }
.call-inner {
  width: min(420px, 92vw); padding: 44px 30px 26px; border-radius: 28px; text-align: center;
  background: radial-gradient(120% 80% at 50% 0%, rgba(47, 107, 255, 0.28), transparent 60%), rgba(18, 20, 30, 0.96);
  border: 1px solid var(--stroke-strong); box-shadow: var(--shadow);
  transform: scale(0.94); transition: transform 0.3s cubic-bezier(0.2, 0.9, 0.3, 1);
}
.call-screen.show .call-inner { transform: scale(1); }
.call-inner.emergency { background: radial-gradient(120% 80% at 50% 0%, rgba(255, 93, 108, 0.3), transparent 60%), rgba(24, 16, 18, 0.96); }
.call-pulse {
  width: 100px; height: 100px; margin: 0 auto 22px; border-radius: 50%;
  display: grid; place-items: center; color: #fff;
  background: radial-gradient(circle at 35% 30%, var(--accent), #10245e);
  box-shadow: 0 0 0 0 var(--accent-glow); animation: ring 1.8s ease-out infinite;
}
.call-inner.emergency .call-pulse { background: radial-gradient(circle at 35% 30%, #ff6b78, #b3202f); box-shadow: 0 0 0 0 rgba(255, 93, 108, 0.5); animation: ringRed 1.8s ease-out infinite; }
.call-pulse svg { width: 44px; height: 44px; }
@keyframes ring { 0% { box-shadow: 0 0 0 0 var(--accent-glow); } 70% { box-shadow: 0 0 0 26px rgba(47, 107, 255, 0); } 100% { box-shadow: 0 0 0 0 rgba(47, 107, 255, 0); } }
@keyframes ringRed { 0% { box-shadow: 0 0 0 0 rgba(255, 93, 108, 0.5); } 70% { box-shadow: 0 0 0 26px rgba(255, 93, 108, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 93, 108, 0); } }
.call-name { font-size: 26px; font-weight: 800; }
.call-number { font-family: var(--mono); color: var(--muted); font-size: 15px; letter-spacing: 1px; margin-top: 2px; }
.call-status { color: var(--accent-2); font-size: 14px; margin-top: 14px; font-weight: 600; }
.call-status.live { color: var(--good); }
.call-timer { font-family: var(--mono); font-size: 22px; font-weight: 700; margin-top: 6px; }
.call-actions { display: flex; align-items: center; justify-content: center; gap: 20px; margin: 30px 0 22px; }
.round-btn {
  width: 58px; height: 58px; border-radius: 50%; cursor: pointer; display: grid; place-items: center;
  background: rgba(255, 255, 255, 0.08); border: 1px solid var(--stroke-strong); color: var(--text);
  transition: 0.15s;
}
.round-btn:hover { background: rgba(255, 255, 255, 0.14); }
.round-btn.active { background: var(--warn); color: #1a1300; }
.round-btn.end { width: 70px; height: 70px; background: var(--bad); border: none; color: #fff; box-shadow: 0 10px 30px rgba(255, 93, 108, 0.4); }
.round-btn.end:hover { filter: brightness(1.08); }
.call-disclaimer { font-size: 12px; color: var(--muted); line-height: 1.5; padding-top: 16px; border-top: 1px solid var(--stroke); }
.call-disclaimer.warn { color: #ffb3bb; }
.call-disclaimer b { color: #fff; }

/* ================= Ripple + Reveal + motion polish ================= */
.btn, .dial-key, .pb-card, .round-btn, .tab, .key-chip, .nav-link, .feature, .step, .sound-toggle {
  position: relative; overflow: hidden;
}
.ripple {
  position: absolute; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.45), rgba(255, 255, 255, 0) 70%);
  transform: scale(0); animation: rippleAnim 0.65s cubic-bezier(0.2, 0.7, 0.3, 1) forwards; opacity: 0.7;
}
@keyframes rippleAnim { to { transform: scale(2.6); opacity: 0; } }

/* scroll reveal */
[data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity 0.7s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1); will-change: opacity, transform; }
[data-reveal].revealed { opacity: 1; transform: none; }

/* smoother global hovers */
.btn { transition: transform 0.12s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.25s, background 0.25s, filter 0.25s; }
.btn-primary:hover, .btn-discord:hover, .call-btn:hover { transform: translateY(-2px); }
.card { transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.3s, box-shadow 0.3s; }
.nav-link, .feature, .pb-card, .dial-key, .stat, .history-item { transition: all 0.22s cubic-bezier(0.2, 0.8, 0.2, 1); }

/* ================= "How to get your key" steps ================= */
.section { padding: 64px 0 20px; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 40px; }
.section-head .eyebrow { color: var(--accent); font-weight: 800; letter-spacing: 2px; text-transform: uppercase; font-size: 12px; }
.section-head h2 { font-size: clamp(28px, 4.5vw, 44px); margin: 10px 0 12px; font-weight: 900; letter-spacing: -1px; }
.section-head h2 .grad { background: linear-gradient(100deg, var(--accent-2), var(--accent) 60%, #7fd7ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.section-head p { color: var(--muted); font-size: 17px; line-height: 1.6; margin: 0; }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.step {
  padding: 26px 22px; border-radius: var(--radius);
  background: var(--panel); border: 1px solid var(--stroke);
  backdrop-filter: blur(14px); cursor: default;
}
.step:hover { transform: translateY(-6px); border-color: rgba(47, 107, 255, 0.4); box-shadow: 0 18px 50px rgba(0, 0, 0, 0.4); }
.step .num {
  width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center;
  font-weight: 900; font-size: 18px; margin-bottom: 16px; color: #fff;
  background: linear-gradient(135deg, var(--accent), #1e4fd6); box-shadow: 0 8px 22px var(--accent-glow);
}
.step h3 { margin: 0 0 8px; font-size: 18px; }
.step p { margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.6; }
.step .ic-corner { position: absolute; top: 20px; right: 20px; color: var(--faint); opacity: 0.5; }
.step .ic-corner svg { width: 22px; height: 22px; }

.buy-cta {
  margin-top: 34px; padding: 34px; text-align: center; border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(47, 107, 255, 0.16), rgba(33, 212, 253, 0.08));
  border: 1px solid rgba(47, 107, 255, 0.3);
}
.buy-cta h3 { margin: 0 0 8px; font-size: 24px; }
.buy-cta p { color: var(--muted); margin: 0 0 22px; }
.buy-cta .btn { font-size: 16px; padding: 15px 30px; }

/* ================= Responsive ================= */
@media (max-width: 980px) {
  .phone-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 28px; }
  .feature-grid { grid-template-columns: 1fr; }
  .dash-grid { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .nav .nav-link.hide-sm { display: none; }
  .profile-strip { justify-content: center; text-align: center; }
  .redeem-mini { margin-left: 0; flex-direction: column; }
}
@media (max-width: 560px) {
  .steps { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: 1fr; }
  .brand-text .bt-sub { display: none; }
}

/* ================= Money balance + rate + history ================= */
.bal-pill { min-width: 104px; }
.bal-pill .n { font-size: 21px; white-space: nowrap; }
.rate-hint { font-size: 12px; color: var(--muted); text-align: center; margin-top: 10px; }
.rate-hint b { color: var(--text); }
.rate-hint.free { color: var(--good); }
.rate-hint.free b { color: var(--good); }
.amt.free { color: var(--good); font-weight: 800; font-size: 13px; }

/* in-call keypad (toggled by the keypad button) + live cost line */
.call-cost { font-size: 13px; color: var(--muted); margin-top: 6px; }
.call-cost b { color: var(--accent-2); }
.call-keypad {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 18px 0 4px;
  animation: fadeIn 0.25s ease both;
}
.call-keypad .dial-key { aspect-ratio: 1.6 / 1; border-radius: 12px; }
.call-keypad .dial-key .d { font-size: 20px; }

/* ===================== Dialpad modal (shared) ===================== */
.dialpad-modal {
  position: fixed; inset: 0; z-index: 10001; display: grid; place-items: center;
  background: rgba(5, 8, 16, 0.7); backdrop-filter: blur(8px);
  opacity: 0; transition: opacity 0.25s;
}
.dialpad-modal.show { opacity: 1; }
.dialpad-sheet {
  width: min(380px, 94vw); padding: 22px; transform: scale(0.95) translateY(10px);
  transition: transform 0.25s cubic-bezier(0.2, 0.9, 0.3, 1);
}
.dialpad-modal.show .dialpad-sheet { transform: none; }
.dialpad-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.dialpad-top h3 { margin: 0; font-size: 18px; }
.dialpad-x { width: 36px; height: 36px; border-radius: 10px; cursor: pointer; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--stroke); color: var(--muted); display: grid; place-items: center; }
.dialpad-x:hover { background: rgba(255, 93, 108, 0.16); color: var(--bad); }
.dialpad-disp { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; background: rgba(8, 9, 16, 0.6); border: 1px solid var(--stroke-strong); border-radius: 12px; padding: 6px 6px 6px 16px; }
.dialpad-input { flex: 1; min-width: 0; background: transparent; border: none; outline: none; color: var(--text); font-family: var(--mono); font-size: 22px; letter-spacing: 1px; padding: 10px 0; }
.dialpad-input::placeholder { color: var(--faint); font-family: var(--font); letter-spacing: 0; font-size: 15px; }
.dialpad-quick { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 12px; max-height: 86px; overflow-y: auto; }
.quick-chip { font-size: 12.5px; font-weight: 600; padding: 6px 11px; border-radius: 999px; cursor: pointer; background: rgba(47, 107, 255, 0.12); border: 1px solid rgba(47, 107, 255, 0.3); color: #cfe0ff; }
.quick-chip:hover { background: rgba(47, 107, 255, 0.24); }
.dialpad-keys { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 16px; }
.dialpad-keys .dial-key { aspect-ratio: 1.5 / 1; border-radius: 14px; }
.dialpad-call { width: 100%; }

/* ============== In-call number dialer chip (group room) ============== */
.side-call {
  display: flex; align-items: center; gap: 12px; margin: 6px 0 2px; padding: 12px 14px;
  border-radius: 14px; background: rgba(47, 107, 255, 0.1); border: 1px solid rgba(47, 107, 255, 0.32);
  animation: fadeIn 0.25s ease both;
}
.sc-ic { width: 40px; height: 40px; flex: none; border-radius: 11px; display: grid; place-items: center; background: rgba(47, 107, 255, 0.18); color: var(--accent); }
.sc-meta { flex: 1; min-width: 0; }
.sc-name { font-weight: 700; font-size: 15px; font-family: var(--mono); }
.sc-sub { color: var(--muted); font-size: 12.5px; font-family: var(--mono); }
.sc-end { flex: none; width: 44px; height: 44px; border-radius: 50%; cursor: pointer; border: none; color: #fff; background: var(--bad); display: grid; place-items: center; box-shadow: 0 8px 20px rgba(255, 93, 108, 0.4); }
.sc-end:hover { filter: brightness(1.08); }

/* ===================== Top-up (LTC) modal ===================== */
.topup-btn { flex: none; }
.topup-modal {
  position: fixed; inset: 0; z-index: 10001; display: grid; place-items: center;
  background: rgba(5, 8, 16, 0.72); backdrop-filter: blur(8px); opacity: 0; transition: opacity 0.25s; overflow-y: auto; padding: 20px;
}
.topup-modal.show { opacity: 1; }
.topup-sheet { width: min(400px, 94vw); padding: 24px; transform: scale(0.95) translateY(10px); transition: transform 0.25s cubic-bezier(0.2, 0.9, 0.3, 1); }
.topup-modal.show .topup-sheet { transform: none; }
.topup-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.topup-chips .quick-chip { flex: 1; min-width: 64px; text-align: center; font-size: 14px; padding: 10px; }
.topup-qr { display: grid; place-items: center; padding: 12px; background: #fff; border-radius: 14px; width: max-content; margin: 0 auto 14px; }
.topup-field { display: flex; flex-direction: column; gap: 3px; padding: 11px 14px; border-radius: 12px; background: rgba(8, 9, 16, 0.5); border: 1px solid var(--stroke); margin-bottom: 10px; cursor: pointer; }
.topup-field:hover { border-color: var(--stroke-strong); }
.tf-label { font-size: 11px; text-transform: uppercase; letter-spacing: 1px; color: var(--faint); }
.tf-val { font-weight: 700; word-break: break-all; }
.tf-val.mono { font-family: var(--mono); font-size: 13px; font-weight: 600; }
.topup-status { display: flex; align-items: center; gap: 10px; justify-content: center; padding: 14px; border-radius: 12px; background: rgba(47, 107, 255, 0.1); border: 1px solid rgba(47, 107, 255, 0.3); font-weight: 600; font-size: 14px; margin-top: 4px; }
.spinner-sm { width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.2); border-top-color: var(--accent); animation: spin 0.8s linear infinite; flex: none; }

/* ===================== Sale ticker ===================== */
.sale-ticker {
  position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%) translateY(140%); z-index: 9998;
  display: flex; align-items: center; gap: 9px; max-width: 90vw;
  padding: 10px 18px; border-radius: 999px; font-size: 13px; font-weight: 600; white-space: nowrap;
  background: rgba(16, 22, 40, 0.88); border: 1px solid var(--stroke-strong); color: var(--text);
  box-shadow: var(--shadow); backdrop-filter: blur(12px); opacity: 0; transition: transform 0.45s cubic-bezier(0.2, 0.9, 0.3, 1), opacity 0.45s;
}
.sale-ticker.show { transform: translateX(-50%) translateY(0); opacity: 1; }
.sale-ticker .st-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--good); box-shadow: 0 0 10px var(--good); flex: none; animation: pulse 1.6s infinite; }
.sale-ticker .st-text { overflow: hidden; text-overflow: ellipsis; }
.sale-ticker b { color: var(--good); }

/* ===================== Onboarding ===================== */
.onboard-modal { position: fixed; inset: 0; z-index: 10002; display: grid; place-items: center; background: rgba(5, 8, 16, 0.78); backdrop-filter: blur(10px); opacity: 0; transition: opacity 0.3s; padding: 20px; }
.onboard-modal.show { opacity: 1; }
.onboard-card { width: min(420px, 94vw); padding: 34px 30px; text-align: center; transform: scale(0.94); transition: transform 0.3s cubic-bezier(0.2, 0.9, 0.3, 1); }
.onboard-modal.show .onboard-card { transform: none; }
.onboard-ic { font-size: 48px; margin-bottom: 12px; }
.onboard-card h2 { margin: 0 0 10px; font-size: 24px; }
.onboard-card p { color: var(--muted); line-height: 1.6; margin: 0 0 22px; font-size: 15px; }
.onboard-card p b { color: var(--text); }
.onboard-dots { display: flex; gap: 7px; justify-content: center; margin-bottom: 22px; }
.onboard-dots span { width: 8px; height: 8px; border-radius: 50%; background: var(--stroke-strong); transition: 0.2s; }
.onboard-dots span.on { background: var(--accent); width: 22px; border-radius: 999px; }
.onboard-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; }

/* ===================== Admin: live call monitor ===================== */
.call-row { display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: 14px; background: rgba(255, 255, 255, 0.03); border: 1px solid var(--stroke); margin-bottom: 10px; }
.call-row:last-child { margin-bottom: 0; }
.cr-ic { width: 36px; display: grid; place-items: center; flex: none; }
.cr-ic .dot.live { width: 12px; height: 12px; border-radius: 50%; background: var(--good); box-shadow: 0 0 12px var(--good); animation: pulse 1.5s infinite; }
.cr-meta { flex: 1; min-width: 0; }
.cr-host { font-size: 14.5px; }
.cr-peers { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.peer-chip { font-size: 12px; padding: 3px 10px; border-radius: 999px; background: rgba(47, 107, 255, 0.14); border: 1px solid rgba(47, 107, 255, 0.3); color: #cfe0ff; }

@media (max-width: 560px) { .sale-ticker { display: none; } }

/* ===================== Language toggle (top right) ===================== */
button.nav-link { background: none; border: none; cursor: pointer; font-family: inherit; }
.lang-toggle { display: inline-flex; align-items: center; gap: 2px; padding: 3px; border-radius: 10px; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--stroke); margin-left: 6px; }
.lang-toggle button { border: none; background: none; cursor: pointer; font-family: inherit; font-weight: 700; font-size: 12px; color: var(--faint); padding: 5px 9px; border-radius: 7px; transition: 0.15s; line-height: 1; }
.lang-toggle button.on { background: linear-gradient(135deg, var(--accent), #1e4fd6); color: #fff; }
.lang-toggle button:not(.on):hover { color: var(--text); }
.lang-toggle.fixed { position: fixed; top: 14px; right: 16px; z-index: 9999; background: rgba(16, 22, 40, 0.85); backdrop-filter: blur(8px); }

/* ===================== Transactions view ===================== */
.tx-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.tx-list { display: flex; flex-direction: column; gap: 12px; }
.tx-row { padding: 16px; border-radius: var(--radius-sm); background: var(--panel); border: 1px solid var(--stroke); backdrop-filter: blur(12px); }
.tx-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.tx-amt { font-weight: 800; font-size: 18px; }
.tx-ltc { font-family: var(--mono); font-size: 12px; color: var(--muted); font-weight: 600; margin-left: 6px; }
.tx-status { font-size: 12px; font-weight: 700; padding: 5px 11px; border-radius: 999px; white-space: nowrap; }
.s-wait { background: rgba(154, 160, 180, 0.14); color: var(--muted); }
.s-confirming { background: rgba(255, 193, 59, 0.14); color: var(--warn); }
.s-ok { background: rgba(47, 107, 255, 0.16); color: var(--accent); }
.s-done { background: rgba(61, 220, 151, 0.16); color: var(--good); }
.s-warn { background: rgba(255, 193, 59, 0.14); color: var(--warn); }
.s-fail { background: rgba(255, 93, 108, 0.16); color: var(--bad); }
.tx-conf { margin-bottom: 10px; }
.conf-bar { height: 7px; border-radius: 999px; background: rgba(255, 255, 255, 0.07); overflow: hidden; margin-bottom: 5px; }
.conf-bar span { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--accent), var(--good)); transition: width 0.5s; }
.conf-label { font-size: 12px; color: var(--muted); }
.conf-label b { color: var(--text); }
.tx-txid { font-size: 12.5px; color: var(--muted); margin-bottom: 6px; word-break: break-all; }
.tx-txid a { color: var(--accent-2); }
.tx-txid a.mono { font-family: var(--mono); }
.tx-time { font-size: 12px; color: var(--faint); }
