/* ============================================================
   DigiVerse — Stylesheet
   Extracted from the original inline <style> block and
   reorganized into a standalone, cacheable asset.
   Visual design, colors, spacing and animations are unchanged
   from the original — only the file organization and a small
   set of additive accessibility / motion-safety rules are new.
   ============================================================ */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  transition: background-color .25s ease, border-color .25s ease, color .25s ease, box-shadow .25s ease, fill .25s ease, stroke .25s ease;
}

/* While the theme is actively switching, briefly widen every
   element's transition to cover background/border/color changes
   even on elements whose own rules only animate transform, width,
   etc. This is what makes the whole UI fade together instead of
   the body easing in while cards, borders and text snap instantly. */
html.theme-switching, html.theme-switching * {
  transition-property: background-color, border-color, color, box-shadow, fill, stroke !important;
  transition-duration: .25s !important;
  transition-timing-function: ease !important;
}

:root, [data-theme="dark"] {
  --bg: #090d16;
  --surface: #111827;
  --card: #111827;
  --border: #1f2937;
  --accent: #0a7e9e;
  --accent2: #6366f1;
  --accent3: #14b8c7;
  --green: #10b981;
  --red: #ef4444;
  --gold: #f5b942;
  --silver: #c7cbd4;
  --bronze: #d18a52;
  --text: #f3f4f6;
  --muted: #9ca3af;
  --radius: 12px;
  --grad-brand: linear-gradient(135deg, #1499bd 0%, #0a7e9e 52%, #6366f1 100%);
  --grad-brand-soft: linear-gradient(135deg, rgba(10, 126, 158, .16), rgba(99, 102, 241, .16));
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, .28);
  --shadow-md: 0 10px 30px -10px rgba(0, 0, 0, .4);
  --shadow-lg: 0 20px 40px -12px rgba(0, 0, 0, .6);
  --shadow-glow: 0 0 0 1px rgba(10, 126, 158, .18), 0 12px 28px -4px rgba(10, 126, 158, .22);
}

[data-theme="light"] {
  --bg: #f4f7fb;
  --surface: #ffffff;
  --card: #ffffff;
  --border: #e2e8f0;
  --accent: #0a7e9e;
  --accent2: #6366f1;
  --accent3: #0e7490;
  --green: #0d9668;
  --red: #dc2626;
  --gold: #c98a12;
  --silver: #8b8f99;
  --bronze: #a85f2c;
  --text: #1e293b;
  --muted: #64748b;
  --radius: 12px;
  --grad-brand: linear-gradient(135deg, #1499bd 0%, #0a7e9e 52%, #6366f1 100%);
  --grad-brand-soft: linear-gradient(135deg, rgba(10, 126, 158, .08), rgba(99, 102, 241, .08));
  --shadow-sm: 0 4px 20px -2px rgba(10, 126, 158, .05), 0 2px 8px -1px rgba(0, 0, 0, .03);
  --shadow-md: 0 12px 28px -4px rgba(10, 126, 158, .1), 0 4px 12px -2px rgba(0, 0, 0, .05);
  --shadow-lg: 0 20px 50px -10px rgba(10, 126, 158, .12), 0 8px 20px -4px rgba(0, 0, 0, .06);
  --shadow-glow: 0 0 0 1px rgba(10, 126, 158, .12), 0 12px 30px rgba(10, 126, 158, .14);
}

html, body {
  height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: "Outfit", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  scroll-behavior: smooth;
  transition: background .25s, color .25s;
  font-feature-settings: "cv11", "ss01", "salt";
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  letter-spacing: -0.02em;
}

body {
  background-image:
    linear-gradient(rgba(20, 184, 199, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20, 184, 199, .045) 1px, transparent 1px);
  background-size: 32px 32px, 32px 32px;
  background-position: -1px -1px, -1px -1px;
  background-attachment: fixed;
}

[data-theme="light"] body {
  background-image:
    linear-gradient(rgba(10, 126, 158, .03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(10, 126, 158, .03) 1px, transparent 1px);
  background-size: 32px 32px, 32px 32px;
  background-position: -1px -1px, -1px -1px;
}

::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 8px;
  border: 2px solid transparent;
  background-clip: padding-box;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent);
  background-clip: padding-box;
}

a {
  color: inherit;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(14px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes popIn {
  0% {
    opacity: 0;
    transform: scale(.85) translateY(10px);
  }

  70% {
    transform: scale(1.02) translateY(0);
  }

  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes pulseDot {
  0%, 100% {
    opacity: 1;
    box-shadow: 0 0 0 0 rgba(16, 185, 129, .5);
  }

  50% {
    opacity: .6;
    box-shadow: 0 0 0 6px rgba(16, 185, 129, 0);
  }
}

@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }

  100% {
    background-position: 200% 0;
  }
}

@keyframes floatMedal {
  0%, 100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-4px);
  }
}

@keyframes flashNew {
  0% {
    background: rgba(10, 126, 158, .22);
  }

  100% {
    background: transparent;
  }
}

@keyframes otpPop {
  0% {
    transform: scale(.7);
  }

  55% {
    transform: scale(1.12);
  }

  100% {
    transform: scale(1);
  }
}

@keyframes otpGlow {
  0%, 100% {
    box-shadow: 0 4px 14px rgba(10, 126, 158, .3);
  }

  50% {
    box-shadow: 0 0 0 8px rgba(99, 102, 241, .16), 0 4px 26px rgba(99, 102, 241, .38);
  }
}

@keyframes gradientShift {
  0%, 100% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }
}

.panel-enter {
  animation: fadeIn .35s ease;
}

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  background: var(--card);
  position: sticky;
  top: 0;
  z-index: 100;
  gap: 10px;
  box-shadow: var(--shadow-sm);
}

.header::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 2px;
  background: var(--grad-brand);
  opacity: .8;
}

.logo {
  font-family: "Outfit", sans-serif;
  font-weight: 800;
  font-size: 1.15rem;
  background: var(--grad-brand);
  background-size: 200% 200%;
  animation: gradientShift 6s ease infinite;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -.02em;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo-mark {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: var(--grad-brand);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: "Outfit", sans-serif;
  font-weight: 800;
  font-size: .85rem;
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(10, 126, 158, .4);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.theme-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: all .2s;
  flex-shrink: 0;
}

.theme-btn:hover {
  border-color: var(--accent);
  transform: rotate(20deg) scale(1.05);
}

.dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  min-width: 170px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  display: none;
  z-index: 200;
}

.dropdown.open {
  display: block;
  animation: popIn .18s cubic-bezier(.16, 1, .3, 1);
}

.dropdown-item {
  padding: 12px 16px;
  font-size: .85rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  transition: background .15s;
}

.dropdown-item:hover {
  background: rgba(10, 126, 158, .08);
}

.dropdown-item.danger {
  color: var(--red);
}

.dropdown-item.danger:hover {
  background: rgba(239, 68, 68, .08);
}

.dropdown-divider {
  height: 1px;
  background: var(--border);
}

.hamburger-wrap {
  position: relative;
}

.bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 150;
  display: flex;
  align-items: stretch;
  justify-content: space-around;
  background: var(--card);
  border-top: 1px solid var(--border);
  padding: 6px 6px calc(6px + env(safe-area-inset-bottom));
  box-shadow: 0 -4px 16px rgba(0, 0, 0, .06);
}

.bn-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  background: none;
  border: none;
  padding: 8px 4px;
  cursor: pointer;
  color: var(--muted);
  font-family: "Outfit", sans-serif;
  font-size: .72rem;
  font-weight: 600;
  border-radius: 12px;
  transition: all .18s;
  position: relative;
}

.bn-item .bn-icon {
  font-size: 1.15rem;
  line-height: 1;
  transition: transform .2s;
}

.bn-item:hover {
  color: var(--text);
}

.bn-item:hover .bn-icon {
  transform: translateY(-2px);
}

.bn-item.active {
  color: var(--accent);
  background: rgba(10, 126, 158, .1);
}

.bn-item.active .bn-icon {
  transform: scale(1.1);
}

.app {
  min-height: 100vh;
}

.container {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 16px 90px;
}

#loginScreen {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 24px;
}

.login-shell {
  width: 100%;
  max-width: 960px;
  display: grid;
  grid-template-columns: 1fr;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  animation: fadeUp .5s cubic-bezier(.16, 1, .3, 1);
}

/* ── Brand panel: solid gradient, no blur/transparency tricks ── */
.login-brand {
  display: none;
  position: relative;
  background: linear-gradient(160deg, #0a1120 0%, #0d1b2e 45%, #0a2233 100%);
  padding: 40px 38px;
  overflow: hidden;
  flex-direction: column;
}
[data-theme="light"] .login-brand {
  background: linear-gradient(160deg, #0e2a38 0%, #103247 45%, #0a3a52 100%);
}
.login-brand-glow {
  position: absolute;
  top: -120px; right: -120px;
  width: 340px; height: 340px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(20,184,199,.35) 0%, transparent 70%);
  pointer-events: none;
}
.login-brand-top {
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
  z-index: 1;
}
.login-brand-mark {
  width: 32px; height: 32px;
  font-size: .95rem;
  border-radius: 9px;
}
.login-brand-word {
  font-weight: 800;
  font-size: 1.05rem;
  color: #f3f4f6;
  letter-spacing: -.02em;
}
.login-brand-headline {
  font-size: 2.15rem;
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.15;
  color: #fff;
  margin-top: 30px;
  position: relative;
  z-index: 1;
}
.login-brand-sub {
  color: rgba(255,255,255,.6);
  font-size: .88rem;
  line-height: 1.55;
  margin-top: 14px;
  max-width: 320px;
  position: relative;
  z-index: 1;
}

/* Live-ticker signature element: a scrolling column of number → OTP
   pairs, echoing the product's actual core feature (SMS inbox). */
.login-ticker {
  margin-top: 26px;
  height: 148px;
  border-radius: 12px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  overflow: hidden;
  position: relative;
  z-index: 1;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 18%, #000 82%, transparent);
          mask-image: linear-gradient(to bottom, transparent, #000 18%, #000 82%, transparent);
}
.login-ticker-track {
  animation: loginTickerScroll 14s linear infinite;
}
.lt-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 14px;
  font-family: "JetBrains Mono", monospace;
  font-size: .74rem;
}
.lt-num { color: rgba(255,255,255,.55); }
.lt-otp {
  color: #fff;
  font-weight: 700;
  background: rgba(20,184,199,.22);
  border: 1px solid rgba(20,184,199,.4);
  padding: 1px 8px;
  border-radius: 6px;
}
@keyframes loginTickerScroll {
  from { transform: translateY(0); }
  to   { transform: translateY(-50%); }
}

.login-feature-list {
  list-style: none;
  margin-top: 26px;
  display: flex;
  flex-direction: column;
  gap: 13px;
  position: relative;
  z-index: 1;
}
.login-feature-list li {
  display: flex;
  align-items: center;
  gap: 11px;
  color: rgba(255,255,255,.78);
  font-size: .82rem;
  font-weight: 500;
}
.lf-ico {
  width: 30px; height: 30px;
  flex-shrink: 0;
  border-radius: 9px;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .95rem;
}

/* ── Form card ── */
.login-card {
  width: 100%;
  background: var(--card);
  border: 1px solid var(--border);
  padding: 44px 36px;
  position: relative;
}

.login-card-eyebrow {
  font-family: "JetBrains Mono", monospace;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}

.login-title {
  font-size: 1.7rem;
  font-weight: 800;
  letter-spacing: -.03em;
  color: var(--text);
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.login-title-mark {
  width: 30px; height: 30px;
  font-size: .9rem;
  border-radius: 9px;
}

.login-sub {
  color: var(--muted);
  font-size: .88rem;
  margin-bottom: 32px;
}

.pass-wrap {
  position: relative;
}
.pass-wrap input {
  padding-right: 46px;
}
.pass-toggle {
  position: absolute;
  right: 6px; top: 50%;
  transform: translateY(-50%);
  width: 34px; height: 34px;
  border: none;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  border-radius: 8px;
  font-size: .95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color .2s, background .2s;
}
.pass-toggle:hover { color: var(--accent); background: rgba(10,126,158,.1); }

.login-foot-note {
  margin-top: 18px;
  font-size: .74rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 7px;
}
.login-foot-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(16,185,129,.18);
  flex-shrink: 0;
}

@media (min-width: 860px) {
  .login-shell { grid-template-columns: 1.05fr 1fr; }
  .login-brand { display: flex; }
}

.field {
  margin-bottom: 16px;
}

.field label {
  display: block;
  font-size: .78rem;
  color: var(--muted);
  margin-bottom: 6px;
  letter-spacing: .06em;
  text-transform: uppercase;
  font-weight: 600;
}

.field input {
  width: 100%;
  padding: 14px 16px;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 1rem;
  font-family: "Outfit", sans-serif;
  transition: border-color .2s, box-shadow .2s, transform .2s;
  outline: none;
}

.field input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(10, 126, 158, .16);
}

[data-theme="light"] .field input {
  background: var(--bg);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 20px;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  font-family: "Outfit", sans-serif;
  font-size: .9rem;
  font-weight: 600;
  transition: all .22s cubic-bezier(.16, 1, .3, 1);
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--grad-brand);
  background-size: 200% 200%;
  color: #fff;
  width: 100%;
  font-size: 1rem;
  padding: 15px;
  box-shadow: var(--shadow-glow);
}

.btn-primary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 20%, rgba(255, 255, 255, .28) 42%, transparent 64%);
  background-size: 220% 100%;
  background-position: 130% 0;
  transition: background-position .55s ease;
  pointer-events: none;
}

.btn-primary:hover {
  transform: translateY(-2px);
  background-position: 100% 50%;
  box-shadow: 0 14px 38px rgba(10, 126, 158, .45);
}

.btn-primary:hover::after {
  background-position: -30% 0;
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-sm {
  padding: 8px 15px;
  font-size: .82rem;
  border-radius: 9px;
}

.btn-ghost {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--muted);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-1px);
}

.btn-ghost.active {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(10, 126, 158, .1);
}

.btn-copy {
  background: rgba(10, 126, 158, .12);
  border: 1px solid rgba(10, 126, 158, .25);
  color: var(--accent);
}

.btn-copy:hover {
  background: rgba(10, 126, 158, .22);
  transform: translateY(-1px);
}

.btn-copy.copied {
  background: rgba(16, 185, 129, .12);
  border-color: rgba(16, 185, 129, .3);
  color: var(--green);
}

.btn-purple {
  background: rgba(99, 102, 241, .14);
  border: 1px solid rgba(99, 102, 241, .3);
  color: var(--accent2);
}

.btn-purple:hover {
  background: rgba(99, 102, 241, .24);
  transform: translateY(-1px);
}

.btn-icon-sm {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  padding: 0;
  flex-shrink: 0;
}

.toast {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: var(--card);
  border: 1px solid var(--border);
  padding: 9px 18px;
  border-radius: 24px;
  font-size: .78rem;
  display: flex;
  align-items: center;
  gap: 6px;
  z-index: 999;
  transition: transform .3s cubic-bezier(.34, 1.56, .64, 1);
  pointer-events: none;
  box-shadow: 0 8px 26px rgba(0, 0, 0, .35);
  max-width: calc(100vw - 32px);
  width: max-content;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
}

.toast.success {
  border-color: rgba(16, 185, 129, .35);
  color: var(--green);
}

.toast.error {
  border-color: rgba(239, 68, 68, .35);
  color: var(--red);
}

.toast.info {
  border-color: rgba(10, 126, 158, .35);
  color: var(--accent);
}

.toast.mini {
  font-size: .7rem;
  padding: 6px 14px;
  opacity: .85;
}

.spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(128, 128, 128, .2);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin .7s linear infinite;
  display: inline-block;
}

#mainScreen {
  display: none;
}

.section-hdr {
  padding: 18px 0 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.section-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -.025em;
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-sub {
  font-size: .78rem;
  color: var(--muted);
  margin-top: 2px;
  font-weight: 500;
}

.badge {
  background: rgba(10, 126, 158, .13);
  color: var(--accent);
  border: 1px solid rgba(10, 126, 158, .22);
  padding: 2px 10px;
  border-radius: 20px;
  font-size: .74rem;
  font-weight: 700;
  font-family: "JetBrains Mono", monospace;
}

.badge.live {
  background: rgba(16, 185, 129, .12);
  color: var(--green);
  border-color: rgba(16, 185, 129, .25);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, .06);
}

.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  animation: pulseDot 1.6s ease-in-out infinite;
}

/* search bar */
.search-wrap {
  position: relative;
  margin-bottom: 12px;
}

.search-wrap .s-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  font-size: .9rem;
  pointer-events: none;
}

.search-input {
  width: 100%;
  padding: 12px 14px 12px 38px;
  background: var(--card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-family: "Outfit", sans-serif;
  font-size: .9rem;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}

.search-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(10, 126, 158, .13);
}

.search-clear {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: none;
  background: var(--border);
  color: var(--muted);
  cursor: pointer;
  font-size: .75rem;
  display: none;
  align-items: center;
  justify-content: center;
}

.search-clear.show {
  display: flex;
}

.chip-row {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.chip {
  padding: 7px 14px;
  border-radius: 20px;
  border: 1.5px solid var(--border);
  background: var(--card);
  color: var(--muted);
  font-size: .78rem;
  font-weight: 700;
  cursor: pointer;
  transition: all .18s;
  display: flex;
  align-items: center;
  gap: 6px;
  user-select: none;
}

.chip:hover {
  border-color: var(--accent);
  color: var(--text);
}

.chip.active {
  border-color: var(--accent);
  color: #fff;
  background: var(--grad-brand);
  box-shadow: 0 6px 18px rgba(10, 126, 158, .3);
}

.chip .chip-count {
  opacity: .75;
  font-family: "JetBrains Mono", monospace;
}

/* Leaderboard time filter — Today / 7 Days / 30 Days segmented toggle */
.lb-period-toggle {
  display: flex;
  align-items: center;
  gap: 2px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 3px;
}

.lb-period-btn {
  border: none;
  background: transparent;
  color: var(--muted);
  font-family: "Inter", sans-serif;
  font-size: .75rem;
  font-weight: 700;
  padding: 7px 12px;
  border-radius: 16px;
  cursor: pointer;
  transition: all .18s;
  white-space: nowrap;
}

.lb-period-btn:hover {
  color: var(--text);
}

.lb-period-btn.active {
  background: var(--grad-brand);
  color: #fff;
  box-shadow: 0 4px 12px rgba(10, 126, 158, .35);
}

.lb-refresh-btn {
  width: 34px;
  height: 34px;
  padding: 0;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

@media (max-width: 480px) {
  .lb-period-btn { padding: 6px 9px; font-size: .7rem; }
}

.ranges-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-bottom: 16px;
}

.range-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 15px 15px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: all .3s cubic-bezier(.16, 1, .3, 1);
  min-width: 0;
  box-shadow: var(--shadow-sm);
  opacity: 0;
  animation: slideIn .4s cubic-bezier(.16, 1, .3, 1) forwards;
}

.range-card:hover {
  border-color: rgba(10, 126, 158, .55);
  background: rgba(10, 126, 158, .07);
  transform: translateY(-5px);
  box-shadow: var(--shadow-glow);
}

.range-card:active {
  transform: translateY(-1px);
}

.range-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--grad-brand);
  flex-shrink: 0;
  box-shadow: 0 0 8px rgba(10, 126, 158, .55);
}

.range-card-top {
  display: flex;
  align-items: center;
  gap: 8px;
}

.range-info {
  flex: 1;
  min-width: 0;
}

.range-name {
  font-weight: 700;
  font-size: .94rem;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Country alpha-2 badge (e.g. KH for Cambodia) */
.cc-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: "JetBrains Mono", monospace;
  font-size: .66rem;
  font-weight: 800;
  letter-spacing: .02em;
  color: #fff;
  background: var(--grad-brand);
  padding: 2px 6px;
  border-radius: 5px;
  margin-right: 6px;
  vertical-align: middle;
  box-shadow: 0 2px 8px rgba(10, 126, 158, .3);
}

.range-detail {
  font-size: .72rem;
  color: var(--muted);
  margin-top: 2px;
  font-weight: 500;
}

.range-count {
  font-size: .76rem;
  color: var(--muted);
  font-family: "JetBrains Mono", monospace;
  flex-shrink: 0;
  margin-left: auto;
  background: var(--surface);
  padding: 3px 9px;
  border-radius: 8px;
  border: 1px solid var(--border);
}

.range-arrow {
  color: var(--muted);
  font-size: 1.05rem;
  flex-shrink: 0;
  transition: transform .2s, color .2s;
}

.range-card:hover .range-arrow {
  color: var(--accent);
  transform: translateX(2px);
}

.fav-star {
  background: none;
  border: none;
  font-size: 1.15rem;
  cursor: pointer;
  color: var(--border);
  flex-shrink: 0;
  transition: transform .2s, color .2s;
  line-height: 1;
  padding: 2px;
}

.fav-star:hover {
  transform: scale(1.2);
}

.fav-star.active {
  color: var(--gold);
  text-shadow: 0 0 10px rgba(245, 185, 66, .5);
}

.fav-star.pop {
  animation: popIn .35s cubic-bezier(.34, 1.56, .64, 1);
}

#numbersPanel {
  display: none;
}

#inboxPanel {
  display: none;
}

#leaderboardPanel {
  display: none;
}

.panel-back {
  color: var(--accent);
  cursor: pointer;
  font-size: .88rem;
  display: flex;
  align-items: center;
  gap: 4px;
  background: none;
  border: none;
  font-family: "Outfit", sans-serif;
  padding: 0;
  font-weight: 600;
}

.panel-back:hover {
  text-decoration: underline;
}

.strip-bar {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.strip-label {
  font-size: .8rem;
  color: var(--muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.strip-hint {
  font-size: .75rem;
  color: var(--muted);
  margin-left: auto;
}

.actions-bar {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 16px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.num-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding-bottom: 24px;
}

.num-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 13px;
  padding: 13px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  animation: slideIn .3s cubic-bezier(.16, 1, .3, 1);
  transition: all .25s cubic-bezier(.16, 1, .3, 1);
  cursor: pointer;
}

.num-item:hover {
  border-color: rgba(10, 126, 158, .5);
  transform: translateY(-3px);
  box-shadow: var(--shadow-glow);
}

.num-item.last-copied {
  background: rgba(99, 102, 241, 0.10);
  border-color: var(--accent2);
}

.num-new-tag {
  font-size: .6rem;
  font-weight: 800;
  letter-spacing: .06em;
  color: var(--accent);
  background: rgba(10, 126, 158, .13);
  border: 1px solid rgba(10, 126, 158, .35);
  border-radius: 5px;
  padding: 1px 5px;
  flex-shrink: 0;
  transition: opacity .3s, transform .3s;
}

.num-new-tag-gone {
  opacity: 0;
  transform: scale(.7);
}

.num-index {
  font-family: "JetBrains Mono", monospace;
  font-size: .72rem;
  color: var(--muted);
  width: 30px;
  flex-shrink: 0;
  text-align: right;
}

.num-val {
  font-family: "JetBrains Mono", monospace;
  font-size: 1rem;
  flex: 1;
  letter-spacing: .03em;
  font-weight: 600;
}

.loading-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(10, 12, 16, .88);
  backdrop-filter: blur(6px);
  z-index: 400;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.loading-overlay.show {
  display: flex;
}

.loading-text {
  color: var(--muted);
  font-size: .92rem;
}

[data-theme="light"] .loading-overlay {
  background: rgba(240, 242, 245, .88);
}

.err-box {
  background: rgba(239, 68, 68, .08);
  border: 1px solid rgba(239, 68, 68, .25);
  border-radius: var(--radius);
  padding: 14px 16px;
  color: var(--red);
  font-size: .88rem;
  margin-top: 12px;
  display: none;
}

.contact-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #25d366;
  color: #fff;
  text-decoration: none;
  border: none;
}
.contact-btn:hover {
  background: #1ebd5a;
  transform: translateY(-1px);
}
.contact-icon-btn {
  color: #25d366;
}
.contact-icon-btn:hover {
  border-color: #25d366;
  color: #25d366;
}

.empty {
  text-align: center;
  padding: 52px 16px;
  color: var(--muted);
  animation: fadeIn .3s ease;
}

.empty-icon {
  font-size: 2.6rem;
  margin-bottom: 12px;
}

/* SMS Counter card */
.sms-counter {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin: 16px 0 12px;
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  transition: all .3s cubic-bezier(.16, 1, .3, 1);
  user-select: none;
  box-shadow: var(--shadow-sm);
}

.sms-counter:hover {
  border-color: rgba(10, 126, 158, .5);
  transform: translateY(-3px);
  box-shadow: var(--shadow-glow);
}

.sms-counter:active {
  transform: translateY(0);
}

.sms-counter-icon {
  width: 48px;
  height: 48px;
  border-radius: 13px;
  background: var(--grad-brand-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.sms-counter-info {
  flex: 1;
}

.sms-counter-label {
  font-size: .75rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .07em;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

.sms-counter-num {
  font-family: "JetBrains Mono", monospace;
  font-size: 1.7rem;
  font-weight: 800;
  line-height: 1.25;
  color: var(--accent);
}

.sms-counter-sub {
  font-size: .72rem;
  color: var(--muted);
  margin-top: 2px;
}

.sms-counter-refresh {
  color: var(--muted);
  font-size: 1.15rem;
  transition: transform .3s;
}

.sms-counter.spinning .sms-counter-refresh {
  animation: spin .7s linear infinite;
}

/* Inbox table/cards */
.inbox-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-bottom: 8px;
}

.inbox-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 13px;
  padding: 13px 15px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: all .25s cubic-bezier(.16, 1, .3, 1);
  animation: slideIn .3s cubic-bezier(.16, 1, .3, 1);
}

.inbox-item:hover {
  border-color: rgba(10, 126, 158, .5);
  transform: translateY(-3px);
  box-shadow: var(--shadow-glow);
}

.inbox-item.is-new {
  animation: flashNew 2.2s ease;
}

.inbox-item.is-new .inbox-otp {
  animation: otpPop .5s cubic-bezier(.34, 1.56, .64, 1), otpGlow 2.4s ease-in-out 1;
}

.inbox-otp {
  font-family: "JetBrains Mono", monospace;
  font-weight: 800;
  font-size: 1.05rem;
  color: #fff;
  background: var(--grad-brand);
  padding: 6px 12px;
  border-radius: 9px;
  flex-shrink: 0;
  letter-spacing: .03em;
  min-width: 88px;
  text-align: center;
  box-shadow: 0 4px 14px rgba(10, 126, 158, .3);
}

.inbox-otp.none {
  background: var(--surface);
  color: var(--muted);
  box-shadow: none;
  border: 1px dashed var(--border);
  font-weight: 600;
  font-size: .72rem;
}

.inbox-mid {
  flex: 1;
  min-width: 0;
}

.inbox-number {
  font-family: "JetBrains Mono", monospace;
  font-weight: 700;
  font-size: .9rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.inbox-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  flex-wrap: wrap;
}

.inbox-country {
  font-size: .7rem;
  color: var(--accent2);
  background: rgba(99, 102, 241, .12);
  border: 1px solid rgba(99, 102, 241, .25);
  padding: 2px 8px;
  border-radius: 7px;
  font-weight: 600;
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.inbox-time {
  font-family: "JetBrains Mono", monospace;
  font-size: .72rem;
  color: var(--muted);
  flex-shrink: 0;
}

.inbox-msg {
  font-size: .78rem;
  color: var(--text);
  line-height: 1.4;
  padding: 8px 2px 0;
  display: none;
}

.inbox-msg.open {
  display: block;
  animation: fadeIn .2s ease;
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 18px 0 8px;
}

.page-btn {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .85rem;
  transition: all .18s;
}

.page-btn:hover:not(:disabled) {
  border-color: var(--accent);
  color: var(--accent);
}

.page-btn:disabled {
  opacity: .35;
  cursor: not-allowed;
}

.page-info {
  font-size: .78rem;
  color: var(--muted);
  font-weight: 600;
  font-family: "JetBrains Mono", monospace;
  min-width: 82px;
  text-align: center;
}

/* Leaderboard */
.lb-podium {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 10px;
  margin: 34px 0 20px;
  padding: 0 4px;
  position: relative;
}

/* soft ambient glow behind the podium */
.lb-podium::before {
  content: "";
  position: absolute;
  top: -20px;
  left: 50%;
  width: 260px;
  height: 180px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(245, 185, 66, .16), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.lb-pod-wrap {
  position: relative;
  flex: 1;
  max-width: 150px;
}

.lb-pod-card {
  position: relative;
  width: 100%;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px 16px 10px 10px;
  padding: 16px 10px 14px;
  text-align: center;
  opacity: 0;
  overflow: hidden;
  animation: popIn .5s cubic-bezier(.34, 1.56, .64, 1) forwards;
  box-shadow: var(--shadow-md);
  transition: transform .25s cubic-bezier(.16, 1, .3, 1), box-shadow .25s ease;
  z-index: 1;
}

.lb-pod-card:hover {
  transform: translateY(-6px);
}

.lb-pod-card.gold {
  order: 2;
  padding-top: 26px;
  background: linear-gradient(165deg, rgba(245, 185, 66, .16), var(--card) 65%);
  border: 1.5px solid rgba(245, 185, 66, .55);
  box-shadow: 0 18px 44px rgba(245, 185, 66, .28);
  animation: popIn .5s cubic-bezier(.34, 1.56, .64, 1) forwards, goldGlowPulse 2.6s ease-in-out .6s infinite;
}

.lb-pod-card.gold:hover {
  transform: translateY(-8px) scale(1.02);
}

/* diagonal shimmer sweep across the gold card */
.lb-pod-card.gold::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 35%, rgba(255, 255, 255, .35) 50%, transparent 65%);
  background-size: 220% 100%;
  animation: shimmerSweep 3.2s linear infinite;
  pointer-events: none;
}

@keyframes goldGlowPulse {
  0%, 100% { box-shadow: 0 18px 44px rgba(245, 185, 66, .28); }
  50% { box-shadow: 0 22px 56px rgba(245, 185, 66, .48); }
}

@keyframes shimmerSweep {
  0% { background-position: 220% 0; }
  100% { background-position: -220% 0; }
}

.lb-pod-wrap.silver {
  order: 1;
}

.lb-pod-wrap.bronze {
  order: 3;
}

.lb-pod-wrap.gold {
  order: 2;
}

/* crown floating above the #1 card */
.lb-crown {
  position: absolute;
  top: -26px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 1.8rem;
  line-height: 1;
  filter: drop-shadow(0 6px 10px rgba(245, 185, 66, .55));
  animation: crownFloat 2.2s ease-in-out infinite;
  z-index: 2;
}

@keyframes crownFloat {
  0%, 100% { transform: translateX(-50%) translateY(0) rotate(-6deg); }
  50% { transform: translateX(-50%) translateY(-6px) rotate(6deg); }
}

.lb-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  margin: 0 auto 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1rem;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  box-shadow: 0 6px 16px rgba(0, 0, 0, .25);
  border: 2px solid rgba(255, 255, 255, .18);
  position: relative;
  z-index: 1;
}

.lb-pod-card.gold .lb-avatar {
  width: 54px;
  height: 54px;
  font-size: 1.15rem;
  background: linear-gradient(135deg, #f8cb6a, #f59e0b);
  box-shadow: 0 8px 22px rgba(245, 185, 66, .5);
  border-color: rgba(255, 236, 179, .5);
}

.lb-pod-card.silver .lb-avatar {
  background: linear-gradient(135deg, #cfd8e3, #94a3b8);
}

.lb-pod-card.bronze .lb-avatar {
  background: linear-gradient(135deg, #e2a374, #b5651d);
}

.lb-medal {
  font-size: 2.1rem;
  animation: floatMedal 2.4s ease-in-out infinite;
  display: inline-block;
  position: relative;
  z-index: 1;
}

.lb-pod-card.gold .lb-medal {
  font-size: 2.6rem;
}

.lb-pod-name {
  font-weight: 800;
  font-size: .85rem;
  margin-top: 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  position: relative;
  z-index: 1;
}

.lb-pod-count {
  font-family: "JetBrains Mono", monospace;
  font-weight: 800;
  font-size: 1.15rem;
  margin-top: 4px;
  background: var(--grad-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  position: relative;
  z-index: 1;
}

.lb-pod-card.gold .lb-pod-count {
  font-size: 1.3rem;
  background: linear-gradient(135deg, #f8cb6a, #f59e0b);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.lb-pod-sub {
  font-size: .65rem;
  color: var(--muted);
  margin-top: 2px;
  text-transform: uppercase;
  letter-spacing: .05em;
  font-weight: 700;
  position: relative;
  z-index: 1;
}

.lb-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-bottom: 16px;
}

.lb-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 15px;
  opacity: 0;
  animation: slideIn .4s cubic-bezier(.16, 1, .3, 1) forwards;
  transition: all .25s cubic-bezier(.16, 1, .3, 1);
}

.lb-card:hover {
  border-color: var(--accent);
  transform: translateX(4px);
  box-shadow: var(--shadow-sm);
}

.lb-avatar-sm {
  width: 36px;
  height: 36px;
  font-size: .82rem;
  margin: 0;
  flex-shrink: 0;
}

.lb-rank {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: .8rem;
  color: var(--muted);
  flex-shrink: 0;
  font-family: "JetBrains Mono", monospace;
}

.lb-info {
  flex: 1;
  min-width: 0;
}

.lb-name {
  font-weight: 700;
  font-size: .88rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lb-bar-track {
  height: 5px;
  background: var(--surface);
  border-radius: 4px;
  margin-top: 6px;
  overflow: hidden;
}

.lb-bar-fill {
  height: 100%;
  background: var(--grad-brand);
  border-radius: 4px;
  width: 0%;
  transition: width 1s cubic-bezier(.16, 1, .3, 1);
}

.lb-count {
  font-family: "JetBrains Mono", monospace;
  font-weight: 800;
  font-size: .98rem;
  color: var(--accent);
  flex-shrink: 0;
}

/* Rank-title badge chip shown under a username, e.g. "DOMINATOR" */
.lb-title-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: .62rem;
  font-weight: 800;
  letter-spacing: .04em;
  padding: 2px 8px;
  border-radius: 6px;
  margin-top: 4px;
  white-space: nowrap;
  position: relative;
  z-index: 1;
}
.lb-tb-gold     { background: rgba(245,185,66,.16);  color: #f5b942; border: 1px solid rgba(245,185,66,.35); }
.lb-tb-teal     { background: rgba(10,126,158,.16);  color: #22b8cf; border: 1px solid rgba(10,126,158,.35); }
.lb-tb-purple   { background: rgba(99,102,241,.16);  color: #8b8ff5; border: 1px solid rgba(99,102,241,.35); }
.lb-tb-orange   { background: rgba(245,140,66,.16);  color: #f5934a; border: 1px solid rgba(245,140,66,.35); }
.lb-tb-red      { background: rgba(239,68,68,.16);   color: #f16b6b; border: 1px solid rgba(239,68,68,.35); }
.lb-tb-blue     { background: rgba(59,130,246,.16);  color: #63a4f7; border: 1px solid rgba(59,130,246,.35); }

/* Streak + live tag shown in the ranks 4-10 list, under the SMS count */
.lb-streak {
  font-size: .68rem;
  font-weight: 800;
  color: #f5934a;
  margin-top: 2px;
}
.lb-live-dot {
  font-size: .58rem;
  font-weight: 700;
  color: #22c55e;
  letter-spacing: .04em;
  margin-top: 1px;
}

.lb-note {
  font-size: .72rem;
  color: var(--muted);
  text-align: center;
  padding: 0 8px 14px;
  line-height: 1.5;
}

/* Mini sticky SMS counter for numbers panel */
.sms-mini-bar {
  display: none;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  user-select: none;
  padding: 4px 10px;
  background: rgba(10, 126, 158, .18);
  border: 1.5px solid rgba(10, 126, 158, .55);
  border-radius: 20px;
  transition: border-color .2s;
  flex: 1 1 auto;
  min-width: 0;
  max-width: 220px;
}

.sms-mini-bar:hover {
  border-color: var(--accent);
}

.sms-mini-icon {
  font-size: 1rem;
  flex-shrink: 0;
}

.sms-mini-num {
  font-family: "JetBrains Mono", monospace;
  font-size: .95rem;
  font-weight: 700;
  color: var(--accent);
  margin-left: 4px;
  flex-shrink: 0;
}

.sms-mini-sub {
  font-size: .68rem;
  color: var(--muted);
  margin-left: auto;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}

.sms-mini-refresh {
  font-size: .85rem;
  color: var(--muted);
  transition: transform .3s;
  margin-left: 6px;
  flex-shrink: 0;
}

.sms-mini-bar.spinning .sms-mini-refresh {
  animation: spin .7s linear infinite;
}

@media (max-width: 480px) {
  .login-card {
    padding: 30px 22px;
  }

  .header {
    padding: 12px 14px;
    gap: 6px;
  }

  .logo {
    font-size: 1rem;
  }

  .sms-mini-sub {
    display: none;
  }

  .num-val {
    font-size: .95rem;
  }

  .btn-sm {
    padding: 7px 11px;
    font-size: .78rem;
  }

  .lb-pod-card {
    padding: 12px 6px 10px;
  }

  .lb-medal {
    font-size: 1.7rem;
  }

  .lb-pod-card.gold .lb-medal {
    font-size: 2.1rem;
  }

  .lb-crown {
    top: -22px;
    font-size: 1.5rem;
  }

  .lb-avatar {
    width: 36px;
    height: 36px;
    font-size: .85rem;
  }

  .lb-pod-card.gold .lb-avatar {
    width: 44px;
    height: 44px;
    font-size: 1rem;
  }
}

@media (min-width: 768px) {
  .container {
    max-width: 960px;
    padding: 0 24px;
  }

  .ranges-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .num-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .inbox-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .login-card {
    padding: 52px 46px;
  }

  .header {
    padding: 18px 24px;
  }

  .section-hdr {
    padding: 26px 0 14px;
  }

  .lb-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
}

@media (min-width: 1024px) {
  .container {
    max-width: 1180px;
  }

  .ranges-list {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 14px;
  }

  .num-list {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 9px;
  }

  .inbox-list {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px;
  }
}

/* ── Alloc Modal ── */
.alloc-modal-bg {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .65);
  backdrop-filter: blur(4px);
  z-index: 500;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.alloc-modal-bg.open {
  display: flex;
  animation: fadeIn .2s ease;
}

.alloc-modal {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  animation: fadeUp .3s cubic-bezier(.16, 1, .3, 1);
  position: relative;
}

.alloc-modal::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 3px;
  background: var(--grad-brand);
  border-radius: 18px 18px 0 0;
  z-index: 11;
}

.alloc-modal-hdr {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: var(--card);
  z-index: 10;
  border-radius: 18px 18px 0 0;
}

.alloc-modal-title {
  font-weight: 700;
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.alloc-close-btn {
  background: none;
  border: 1px solid var(--border);
  color: var(--muted);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all .2s;
}

.alloc-close-btn:hover {
  border-color: var(--red);
  color: var(--red);
}

.alloc-modal-body {
  padding: 16px 20px;
  flex: 1;
}

.alloc-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 14px;
  background: var(--surface);
  padding: 4px;
  border-radius: 11px;
  border: 1px solid var(--border);
}

.alloc-tab {
  flex: 1;
  padding: 9px 10px;
  text-align: center;
  border-radius: 8px;
  font-size: .8rem;
  font-weight: 700;
  color: var(--muted);
  cursor: pointer;
  transition: all .18s;
}

.alloc-tab.active {
  background: var(--grad-brand);
  color: #fff;
  box-shadow: 0 4px 14px rgba(10, 126, 158, .3);
}

.alloc-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 12px;
}

.alloc-card-title {
  font-size: .82rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.alloc-step {
  background: var(--accent);
  color: #000;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .65rem;
  font-weight: 700;
  flex-shrink: 0;
}

.alloc-client-info {
  background: rgba(10, 126, 158, .18);
  border: 1.5px solid rgba(10, 126, 158, .55);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: .85rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.alloc-verified-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  flex-shrink: 0;
}

.alloc-field {
  margin-bottom: 12px;
}

.alloc-field label {
  display: block;
  font-size: .75rem;
  color: var(--muted);
  margin-bottom: 6px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.alloc-input {
  width: 100%;
  padding: 10px 14px;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-family: "Outfit", sans-serif;
  font-size: .9rem;
  outline: none;
  transition: border-color .2s;
}

.alloc-input:focus {
  border-color: var(--accent);
}

.alloc-search-row {
  display: flex;
  gap: 8px;
}

.alloc-search-row .alloc-input {
  flex: 1;
}

.alloc-range-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 10px;
}

.alloc-range-item {
  padding: 10px 14px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all .2s;
  font-size: .85rem;
}

.alloc-range-item:hover {
  border-color: var(--accent);
  background: rgba(10, 126, 158, .04);
}

.alloc-range-item.ar-selected {
  border-color: var(--accent);
  background: rgba(10, 126, 158, .08);
}

.alloc-range-name {
  font-weight: 600;
}

.alloc-range-id {
  font-size: .72rem;
  color: var(--muted);
  margin-top: 2px;
  font-family: "JetBrains Mono", monospace;
}

.avail-ok {
  color: var(--green);
  font-size: .72rem;
  font-weight: 600;
}

.avail-no {
  color: var(--red);
  font-size: .72rem;
  font-weight: 600;
}

.avail-wait {
  color: var(--muted);
  font-size: .72rem;
}

.alloc-pt-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-top: 6px;
}

.alloc-pt-btn {
  padding: 7px 6px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 7px;
  font-size: .75rem;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  color: var(--muted);
  transition: all .15s;
  font-family: "Outfit", sans-serif;
}

.alloc-pt-btn:hover, .alloc-pt-btn.selected {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(10, 126, 158, .08);
}

.alloc-po-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 6px;
}

.alloc-po-btn {
  padding: 5px 12px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: .78rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--muted);
  transition: all .15s;
  font-family: "Outfit", sans-serif;
}

.alloc-po-btn:hover, .alloc-po-btn.selected {
  border-color: var(--accent2);
  color: var(--accent2);
  background: rgba(99, 102, 241, .1);
}

.alloc-custom-row {
  display: flex;
  gap: 6px;
  margin-top: 8px;
}

.alloc-result {
  margin-top: 10px;
  border-radius: 10px;
  padding: 12px 14px;
  font-size: .85rem;
  display: none;
}

.alloc-result.ok {
  background: rgba(16, 185, 129, .08);
  border: 1px solid rgba(16, 185, 129, .3);
  color: var(--green);
}

.alloc-result.err {
  background: rgba(239, 68, 68, .08);
  border: 1px solid rgba(239, 68, 68, .3);
  color: var(--red);
}

.alloc-limit-bar {
  font-size: .75rem;
  color: var(--muted);
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.alloc-limit-pip {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
}

.alloc-limit-pip.used {
  background: var(--accent2);
  border-color: var(--accent2);
}

.saved-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.saved-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
}

.saved-item-info {
  flex: 1;
  min-width: 0;
}

.saved-item-name {
  font-weight: 700;
  font-size: .85rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.saved-item-id {
  font-size: .7rem;
  color: var(--muted);
  font-family: "JetBrains Mono", monospace;
}

.saved-remove {
  background: rgba(239, 68, 68, .1);
  border: 1px solid rgba(239, 68, 68, .25);
  color: var(--red);
  width: 30px;
  height: 30px;
  border-radius: 8px;
  cursor: pointer;
  flex-shrink: 0;
  font-size: .9rem;
  transition: all .15s;
}

.saved-remove:hover {
  background: rgba(239, 68, 68, .2);
  transform: scale(1.05);
}

/* ============================================================
   Accessibility & motion-safety additions (new, additive only)
   ============================================================ */

/* Respect the user's OS-level "reduce motion" preference by
   neutralizing decorative animations/transitions. Functional
   state changes (display, opacity toggles) still work instantly. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* Consistent, visible keyboard-focus ring across all interactive
   elements. Uses :focus-visible so mouse/touch clicks stay clean
   and only keyboard/assistive-tech navigation shows the ring. */
a:focus-visible,
button:focus-visible,
input:focus-visible,
[tabindex]:focus-visible,
.bn-item:focus-visible,
.chip:focus-visible,
.dropdown-item:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 6px;
}

/* Screen-reader-only utility text (used for icon-only buttons) */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Skip-to-content link: hidden until focused, then jumps above
   the sticky header so keyboard users can bypass repeated nav */
.skip-link {
  position: absolute;
  left: 8px;
  top: -48px;
  background: var(--accent);
  color: #fff;
  padding: 10px 16px;
  border-radius: 8px;
  font-weight: 700;
  font-size: .85rem;
  z-index: 1000;
  transition: top .2s ease;
}
.skip-link:focus {
  top: 8px;
}

/* Ensure tap targets stay comfortably sized on touch devices */
@media (pointer: coarse) {
  .theme-btn, .btn-icon-sm, .alloc-close-btn, .saved-remove {
    min-width: 40px;
    min-height: 40px;
  }
}

/* ── Inbox stats bar ── */
.inbox-stats-bar{display:flex;gap:10px;margin:10px 0 14px;flex-wrap:wrap}
.ib-stat{display:flex;flex-direction:column;align-items:center;background:var(--card);border:1px solid var(--border);border-radius:12px;padding:10px 18px;flex:1;min-width:80px;transition:all .25s cubic-bezier(.16,1,.3,1);box-shadow:var(--shadow-sm)}
.ib-stat:hover{border-color:rgba(10, 126, 158,.5);transform:translateY(-3px);box-shadow:var(--shadow-glow)}
.ib-stat-num{font-family:"JetBrains Mono",monospace;font-size:1.35rem;font-weight:800;background:var(--grad-brand);-webkit-background-clip:text;-webkit-text-fill-color:transparent;line-height:1.2}
.ib-stat-lbl{font-size:.68rem;color:var(--muted);text-transform:uppercase;letter-spacing:.07em;font-weight:700;margin-top:3px}

/* ── Inbox age label ── */
.inbox-age{font-size:.65rem;color:var(--muted);font-family:"JetBrains Mono",monospace;opacity:.75;margin-left:auto}

/* ── Page jump ── */
.page-jump{display:flex;align-items:center;justify-content:center;gap:8px;padding:6px 0 14px}
.page-jump-input{background:var(--card);border:1.5px solid var(--border);border-radius:8px;color:var(--text);font-family:"JetBrains Mono",monospace;font-size:.82rem;padding:5px 8px;outline:none;text-align:center}
.page-jump-input:focus{border-color:var(--accent)}

/* ── Leaderboard hero note ── */
.lb-hero-note{font-size:.75rem;color:var(--muted);text-align:center;padding:0 8px 16px;font-weight:500;letter-spacing:.01em}

/* ── Leaderboard rank badge (4-10) ── */
.lb-rank-badge{width:34px;height:34px;border-radius:10px;background:linear-gradient(135deg,var(--surface),var(--card));border:1px solid var(--border);display:flex;align-items:center;justify-content:center;font-weight:800;font-size:.82rem;color:var(--muted);flex-shrink:0;font-family:"JetBrains Mono",monospace;box-shadow:0 2px 6px rgba(0,0,0,.12)}

/* ── Leaderboard count column ── */
.lb-count-col{display:flex;flex-direction:column;align-items:flex-end;flex-shrink:0;gap:1px}
.lb-count-lbl{font-size:.6rem;color:var(--muted);text-transform:uppercase;letter-spacing:.07em;font-weight:700}

/* ── Leaderboard card hover enhancements ── */
.lb-card:hover .lb-rank-badge{border-color:var(--accent);color:var(--accent);background:rgba(10, 126, 158,.08)}
.lb-card:hover .lb-count{color:var(--accent2)}

