@import url("https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=Inter:wght@400;500;600;700;800&family=Manrope:wght@400;500;600;700;800&family=Space+Grotesk:wght@500;600;700&display=swap");

:root {
  --bg: #eef3f1;
  --bg-deep: #e5ece9;
  --ink: #18252a;
  --muted: #708087;
  --muted-strong: #52636a;
  --line: #d8e2df;
  --card: #f9fbfa;
  --card-soft: #f1f6f4;
  --navy: #173946;
  --navy-2: #205365;
  --teal: #329c94;
  --teal-dark: #237770;
  --coral: #db705f;
  --amber: #d49c4d;
  --green: #278867;
  --red: #c95759;
  --shadow: 0 22px 60px rgba(26, 55, 60, .10);
  --shadow-small: 0 8px 25px rgba(26, 55, 60, .08);
  font-family: "Manrope", system-ui, sans-serif;
  color-scheme: light;
}

html[data-theme="dark"] {
  --bg: #132326;
  --bg-deep: #0f1d20;
  --ink: #ecf4f1;
  --muted: #9ab0b0;
  --muted-strong: #bbceca;
  --line: #294247;
  --card: #1a3034;
  --card-soft: #203b3f;
  --navy: #0d2027;
  --navy-2: #173943;
  --teal: #5dc0b4;
  --teal-dark: #8bd5ca;
  --coral: #ed8a75;
  --amber: #e4b566;
  --green: #63c49c;
  --red: #ee817b;
  --shadow: 0 22px 60px rgba(0, 0, 0, .22);
  --shadow-small: 0 8px 25px rgba(0, 0, 0, .18);
  color-scheme: dark;
}

@media (prefers-color-scheme: dark) {
  html[data-theme="system"] {
    --bg: #132326;
    --bg-deep: #0f1d20;
    --ink: #ecf4f1;
    --muted: #9ab0b0;
    --muted-strong: #bbceca;
    --line: #294247;
    --card: #1a3034;
    --card-soft: #203b3f;
    --navy: #0d2027;
    --navy-2: #173943;
    --teal: #5dc0b4;
    --teal-dark: #8bd5ca;
    --coral: #ed8a75;
    --amber: #e4b566;
    --green: #63c49c;
    --red: #ee817b;
    --shadow: 0 22px 60px rgba(0, 0, 0, .22);
    --shadow-small: 0 8px 25px rgba(0, 0, 0, .18);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-height: 100dvh; background: var(--bg); color: var(--ink); font-size: 14px; }
body::before {
  position: fixed; z-index: -1; inset: 0; pointer-events: none; content: "";
  opacity: .28; background-image: radial-gradient(rgba(32, 83, 101, .14) .6px, transparent .6px);
  background-size: 7px 7px;
}
a { color: inherit; text-decoration: none; }
button { border: 0; cursor: pointer; font: inherit; }
button:disabled { cursor: wait; opacity: .58; }
::selection { color: #f9fbfa; background: var(--teal-dark); }

.shell { display: flex; min-height: 100dvh; }
.sidebar {
  position: fixed; z-index: 20; display: flex; flex-direction: column; width: 258px; min-height: 100dvh;
  padding: 24px 15px 18px; background: var(--navy); color: #acc3c6; transition: width .22s ease, transform .22s ease;
}
.sidebar-scrim { display: none; }
.brand, .auth-brand { display: flex; align-items: center; gap: 10px; color: #f2f7f5; font-family: "Space Grotesk", sans-serif; font-size: 17px; font-weight: 700; letter-spacing: -.06em; }
.brand img, .auth-brand img { width: 35px; height: 35px; object-fit: cover; object-position: center; border-radius: 11px; border: 1px solid rgba(255,255,255,.22); }
.brand em, .auth-brand em { color: #e7b76a; font-style: normal; font-size: 9px; letter-spacing: .12em; margin: 0 2px; }
.profile-chip {
  position: relative; display: flex; align-items: center; gap: 10px; width: 100%; margin: 31px 0 8px; padding: 11px 10px;
  color: inherit; text-align: left; background: rgba(255,255,255,.055); border: 1px solid rgba(173,221,215,.17); border-radius: 13px;
}
.profile-chip:hover, .profile-chip:focus-visible { background: rgba(255,255,255,.10); outline: none; }
.avatar, .top-avatar { display: grid; place-items: center; width: 34px; height: 34px; flex: 0 0 auto; border-radius: 10px; background: var(--coral); color: #fff8f3; font-weight: 800; }
.profile-chip b { display: block; color: #f4faf8; font-size: 12px; }
.profile-chip small { display: block; color: #94afb1; font-size: 10px; margin-top: 3px; }
.chevron { margin-left: auto; color: #82b6b3; font-size: 14px; }
.profile-menu { display: none; margin: 0 0 14px; padding: 6px; background: var(--navy-2); border: 1px solid rgba(183,225,221,.18); border-radius: 12px; box-shadow: var(--shadow-small); }
.profile-menu.open { display: grid; gap: 2px; }
.profile-menu a { display: flex; gap: 10px; align-items: center; padding: 9px 10px; color: #c3d7d5; border-radius: 8px; font-size: 11px; font-weight: 700; }
.profile-menu a:hover { color: #f7fcfa; background: rgba(255,255,255,.09); }
.menu-glyph { width: 18px; color: #72c0b6; font-family: "DM Mono", monospace; font-size: 9px; }
nav { display: grid; gap: 3px; }
nav a, .sidebar-bottom a { display: flex; align-items: center; gap: 11px; padding: 11px 12px; color: #abc1c2; border-radius: 9px; font-size: 11px; font-weight: 800; transition: background .18s ease, color .18s ease, transform .18s ease; }
nav a:hover, nav a.active, .sidebar-bottom a:hover { color: #f5fbf9; background: rgba(65, 145, 148, .23); }
nav a.active { box-shadow: inset 3px 0 var(--teal); }
.nav-mark { display: grid; place-items: center; width: 21px; color: #81b9b5; font-family: "DM Mono", monospace; font-size: 9px; letter-spacing: -.08em; }
.live-dot { display: inline-block; width: 7px; height: 7px; margin-left: auto; background: #64c99d; border-radius: 50%; box-shadow: 0 0 0 3px rgba(100,201,157,.14); }
.sidebar-bottom { display: grid; gap: 3px; margin-top: auto; padding-top: 15px; border-top: 1px solid rgba(180,220,216,.14); }
.main { width: calc(100% - 258px); min-width: 0; margin-left: 258px; padding: 25px 43px 70px; transition: margin-left .22s ease, width .22s ease; }
.nav-collapsed .sidebar { width: 78px; }
.nav-collapsed .sidebar .brand span, .nav-collapsed .sidebar .profile-chip div:not(.avatar), .nav-collapsed .sidebar .chevron, .nav-collapsed .sidebar nav span, .nav-collapsed .sidebar .sidebar-bottom span { display: none; }
.nav-collapsed .sidebar .brand, .nav-collapsed .sidebar nav a, .nav-collapsed .sidebar .sidebar-bottom a { justify-content: center; }
.nav-collapsed .main { width: calc(100% - 78px); margin-left: 78px; }

.topbar { display: flex; align-items: center; gap: 15px; margin-bottom: 29px; }
.topbar > div:nth-child(2) { flex: 1; min-width: 0; }
.topbar h1 { margin: 5px 0 0; overflow: hidden; font-family: "Space Grotesk", sans-serif; font-size: clamp(23px, 3vw, 32px); line-height: 1.05; letter-spacing: -.065em; text-overflow: ellipsis; white-space: nowrap; }
.eyebrow, .auth-kicker { margin: 0; color: var(--muted); font-family: "DM Mono", monospace; font-size: 9px; letter-spacing: .14em; text-transform: uppercase; }
.top-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.top-avatar { border: 0; }
.menu-button { display: grid; place-items: center; width: 38px; height: 38px; padding: 0; background: #dcece9; border: 1px solid #c5ded9; border-radius: 10px; }
.menu-button span, .menu-button::before, .menu-button::after { display: block; width: 16px; height: 2px; content: ""; background: var(--teal-dark); border-radius: 4px; }
.menu-button span { margin: 3px 0; }
.status-pill, .soft-badge { display: inline-flex; align-items: center; gap: 7px; padding: 7px 10px; color: var(--muted-strong); background: var(--card-soft); border: 1px solid var(--line); border-radius: 999px; font-size: 9px; font-weight: 800; white-space: nowrap; }
.theme-toggle { display: inline-flex; padding: 3px; background: var(--card-soft); border: 1px solid var(--line); border-radius: 9px; }
.theme-toggle button { padding: 5px 7px; color: var(--muted); background: transparent; border-radius: 6px; font-family: "DM Mono", monospace; font-size: 8px; text-transform: uppercase; }
.theme-toggle button.active, .theme-toggle button:hover { color: var(--ink); background: var(--card); box-shadow: var(--shadow-small); }

.flash-stack { display: grid; gap: 8px; margin-bottom: 18px; }
.flash { padding: 12px 15px; border: 1px solid var(--line); border-radius: 10px; font-size: 11px; font-weight: 800; }
.flash.success { color: var(--green); background: rgba(39,136,103,.11); }
.flash.error { color: var(--red); background: rgba(201,87,89,.11); }
.notice { display: flex; align-items: flex-start; gap: 13px; padding: 16px 18px; margin-bottom: 21px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-small); }
.notice > span { display: grid; place-items: center; width: 25px; height: 25px; flex: 0 0 auto; color: var(--teal-dark); background: rgba(50,156,148,.13); border-radius: 8px; font-family: "DM Mono", monospace; font-size: 10px; font-weight: 700; }
.notice b { display: block; margin-bottom: 4px; font-size: 11px; }
.notice small { display: block; color: var(--muted); line-height: 1.6; }

.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 13px; margin-bottom: 21px; }
.stat-card, .panel-card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-small); }
.stat-card { position: relative; overflow: hidden; padding: 18px; }
.stat-card::after { position: absolute; right: -18px; bottom: -28px; width: 78px; height: 78px; content: ""; background: rgba(50,156,148,.08); border-radius: 50%; }
.stat-card > span { display: block; color: var(--muted); font-size: 10px; font-weight: 800; }
.stat-card strong { display: block; margin: 12px 0 5px; font-family: "Space Grotesk", sans-serif; font-size: 28px; letter-spacing: -.07em; }
.stat-card strong em { color: var(--muted); font-family: "Manrope", sans-serif; font-size: 10px; font-style: normal; letter-spacing: 0; }
.stat-card small { display: block; color: var(--muted); font-size: 10px; }
.stat-card small a, .text-link { color: var(--teal-dark); font-weight: 800; }
.accent-stat { color: #f6fbf8; background: linear-gradient(145deg, #173e4a, #266b71); border-color: #2f7476; }
.accent-stat::after { background: rgba(221,176,101,.12); }
.accent-stat span, .accent-stat small, .accent-stat strong em { color: #b8d9d2; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 17px; }
.three-col { display: grid; grid-template-columns: repeat(3, 1fr); gap: 17px; margin-bottom: 17px; }
.panel-card { padding: 21px; margin-bottom: 17px; }
.section-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 19px; }
.section-head h2, .panel-card h2 { margin: 5px 0 0; font-family: "Space Grotesk", sans-serif; font-size: 18px; letter-spacing: -.055em; }
.claim-form, .stack-form { display: grid; gap: 13px; }
.stack-form.compact { gap: 10px; }
label { display: grid; gap: 7px; color: var(--muted-strong); font-size: 10px; font-weight: 800; }
input, select, textarea { width: 100%; padding: 11px 12px; color: var(--ink); background: var(--card-soft); border: 1px solid var(--line); border-radius: 9px; outline: none; font: inherit; font-size: 12px; }
input::placeholder, textarea::placeholder { color: var(--muted); opacity: .7; }
input:focus, select:focus, textarea:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(50,156,148,.15); }
.primary { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 12px 16px; color: #f6fbf9; background: var(--teal-dark); border-radius: 9px; box-shadow: 0 8px 18px rgba(35,119,112,.18); font-size: 11px; font-weight: 800; transition: transform .18s ease, filter .18s ease; }
.primary:hover { filter: brightness(1.08); transform: translateY(-1px); }
.wide { width: 100%; }
.secondary { padding: 11px 15px; color: var(--teal-dark); background: rgba(50,156,148,.10); border: 1px solid rgba(50,156,148,.22); border-radius: 9px; font-size: 10px; font-weight: 800; }
.payout-preview { padding: 10px 12px; color: var(--muted); border: 1px dashed var(--line); border-radius: 9px; font-size: 10px; }
.claim-list { display: grid; gap: 4px; }
.claim-row { display: flex; align-items: center; gap: 11px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.claim-row:last-child { border-bottom: 0; }
.country-icon { display: grid; place-items: center; width: 35px; height: 35px; flex: 0 0 auto; color: var(--teal-dark); background: rgba(50,156,148,.12); border-radius: 10px; font-family: "DM Mono", monospace; font-size: 10px; font-weight: 700; }
.claim-row b { display: block; font-size: 11px; }
.claim-row small { display: block; margin-top: 3px; color: var(--muted); font-size: 9px; }
.number-heading { display: flex; align-items: center; gap: 10px; }
.service-logo {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  color: #fff;
  background: linear-gradient(145deg, #087cff, #8a45f4);
  border-radius: 10px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: -.06em;
  box-shadow: 0 5px 12px rgba(31, 105, 225, .18);
}
.service-logo.small { width: 24px; height: 24px; border-radius: 7px; font-size: 10px; }
.service-inline { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.claim-status-row { align-items: flex-start; }
.claim-state-line { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; margin-top: 7px; }
.claim-state { font-size: 10px; font-weight: 800; }
.claim-credit { color: var(--green); font-size: 9px; font-weight: 800; }
.claim-message { width: 100%; margin-top: 0 !important; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.claim-age { display: block; margin-top: 6px !important; color: var(--muted) !important; font-size: 9px; }
.otp-list { display: grid; gap: 5px; width: 100%; margin-top: 9px; padding: 9px 11px; background: rgba(21, 155, 123, .07); border: 1px solid rgba(21, 155, 123, .16); border-radius: 9px; }
.otp-list > div { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--green); font-family: "DM Mono", monospace; font-size: 10px; }
.otp-list > div span { color: var(--muted-strong); font-family: "Inter", sans-serif; font-size: 9px; font-weight: 700; white-space: nowrap; }
.claim-received { background: rgba(21, 155, 123, .045); }
.balance-badge b { color: var(--ink); font-family: "DM Mono", monospace; font-size: 10px; }
.claim-result-box { display: grid; gap: 6px; }
.claim-feedback-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.claim-feedback-head b { color: var(--ink); font-family: "DM Mono", monospace; font-size: 11px; }
.claim-result-box small { color: var(--muted-strong); }
.copy-status { color: var(--teal-dark) !important; font-weight: 800; }
.number-cell { min-width: 0; flex: 1; }
.number-cell .mono { color: var(--ink); }
.otp-line { display: flex; align-items: center; gap: 10px; margin-top: 7px; }
.otp-line code { color: var(--green); font-family: "DM Mono", monospace; font-size: 10px; font-weight: 700; }
.amount { margin-left: auto; color: var(--green); font-size: 10px; font-weight: 800; white-space: nowrap; }
.result-box { padding: 13px; color: var(--green); background: rgba(39,136,103,.11); border-radius: 10px; font-size: 10px; line-height: 1.6; }
.error-box { color: var(--red); background: rgba(201,87,89,.11); }
.hidden { display: none !important; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 10px; }
th { padding: 10px 9px; color: var(--muted); border-bottom: 1px solid var(--line); font-size: 9px; letter-spacing: .09em; text-align: left; text-transform: uppercase; white-space: nowrap; }
td { padding: 12px 9px; border-bottom: 1px solid var(--line); vertical-align: middle; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: rgba(50,156,148,.035); }
.mono { color: var(--muted-strong); font-family: "DM Mono", monospace; font-size: 9px; }
.table-sub { display: block; margin-top: 4px; color: var(--muted); font-size: 9px; }
.otp { color: var(--green); font-family: "DM Mono", monospace; font-weight: 700; }
.status-success, .status-active, .status-approved { color: var(--green); font-weight: 800; }
.status-pending { color: var(--amber); font-weight: 800; }
.status-inactive, .status-rejected { color: var(--amber); font-weight: 800; }
.status-banned { color: var(--red); font-weight: 800; }
.action-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.action-tile { display: grid; gap: 5px; padding: 14px; background: var(--card-soft); border: 1px solid var(--line); border-radius: 12px; transition: border-color .18s ease, transform .18s ease; }
.action-tile:hover { border-color: var(--teal); transform: translateY(-2px); }
.action-tile b { color: var(--teal-dark); font-family: "DM Mono", monospace; font-size: 12px; }
.action-tile span { font-size: 11px; font-weight: 800; }
.action-tile small { color: var(--muted); font-size: 9px; }
.activity-list { display: grid; gap: 2px; }
.activity-list > div { display: flex; gap: 11px; padding: 10px 0; }
.activity-list b { display: block; font-size: 10px; }
.activity-list small { display: block; margin-top: 3px; color: var(--muted); font-size: 9px; }
.activity-dot { width: 7px; height: 7px; margin-top: 4px; background: var(--coral); border-radius: 50%; }
.stock-snapshot { display: grid; gap: 3px; }
.stock-snapshot-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.stock-snapshot-row:last-child { border-bottom: 0; }
.stock-snapshot-row b, .stock-snapshot-row small { display: block; }
.stock-snapshot-row b { font-size: 10px; }
.stock-snapshot-row small { margin-top: 3px; color: var(--muted); font-size: 9px; }
.stock-snapshot-row strong { color: var(--teal-dark); font-family: "DM Mono", monospace; font-size: 15px; }
.stock-details summary { color: var(--teal-dark); cursor: pointer; font-size: 10px; font-weight: 800; }
.stock-number-list { display: grid; gap: 5px; min-width: 190px; max-height: 150px; margin-top: 9px; padding: 9px; background: var(--card-soft); border: 1px solid var(--line); border-radius: 8px; }
.stock-number-list .mono { color: var(--ink); }
.console-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 17px; }
.console-head .notice { flex: 1; }
.console-card { padding: 0; overflow: hidden; }
.console-card .table-wrap { max-height: calc(100dvh - 275px); }
.console-card table { min-width: 850px; }
.console-feed {
  display: grid;
  gap: 10px;
  max-height: calc(100dvh - 310px);
  overflow: auto;
  padding: 0 20px 20px;
}
.console-line {
  margin: 0;
  padding: 18px 20px;
  color: var(--ink);
  background: var(--card-soft);
  border: 1px solid var(--line);
  border-left: 3px solid var(--teal);
  border-radius: 10px;
  font-family: "DM Mono", monospace;
  font-size: 13px;
  line-height: 1.9;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.console-card { min-height: calc(100dvh - 240px); }
.console-card .console-feed { max-height: calc(100dvh - 290px); }
.catalog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 17px; }
.catalog-delete-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.catalog-item { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 12px; background: var(--card-soft); border: 1px solid var(--line); border-radius: 11px; }
.catalog-item > div { min-width: 0; flex: 1; }
.catalog-item b, .catalog-item small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.catalog-item b { font-size: 11px; }
.catalog-item small { margin-top: 3px; color: var(--muted); font-family: "DM Mono", monospace; font-size: 9px; }
.inline-actions { display: flex; flex-wrap: wrap; gap: 5px; }
.tiny { padding: 6px 8px; color: var(--muted-strong); background: var(--card-soft); border: 1px solid var(--line); border-radius: 7px; font-size: 9px; font-weight: 800; }
.tiny:hover { border-color: var(--teal); }
.tiny.success, .tiny.copied { color: var(--green); background: rgba(39,136,103,.11); }
.tiny.danger { color: var(--red); background: rgba(201,87,89,.10); }
.manager-actions-cell { min-width: 115px; vertical-align: top; }
.manager-row-actions { min-width: 92px; }
.manager-row-actions > summary { list-style: none; }
.manager-row-actions > summary::-webkit-details-marker { display: none; }
.manager-actions-trigger { display: inline-flex; align-items: center; justify-content: center; gap: 5px; min-height: 32px; padding: 5px 9px; color: var(--teal-dark); background: rgba(50,156,148,.10); border: 1px solid rgba(50,156,148,.22); border-radius: 8px; cursor: pointer; }
.manager-actions-trigger:hover, .manager-row-actions[open] > .manager-actions-trigger { background: rgba(50,156,148,.17); border-color: var(--teal); }
.manager-actions-trigger > span { font-size: 18px; font-weight: 900; line-height: 12px; }
.manager-actions-trigger > small { font-size: 9px; font-weight: 800; }
.manager-actions-trigger:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
.manager-actions-menu { display: grid; gap: 7px; width: min(245px, calc(100vw - 48px)); margin-top: 7px; padding: 10px; background: var(--card); border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow-small); }
.manager-actions-menu form { display: grid; gap: 7px; }
.manager-actions-menu form + form, .manager-user-edit { padding-top: 8px; border-top: 1px solid var(--line); }
.manager-actions-menu .tiny { width: 100%; min-height: 31px; }
.manager-actions-menu label { display: grid; gap: 5px; font-size: 9px; }
.manager-actions-menu input, .manager-actions-menu select { padding: 8px 9px; font-size: 11px; }
.manager-user-edit .locked-currency { color: var(--muted); font-size: 9px; }
.number-live-meta { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 7px; }
.number-live-badge { display: inline-flex; align-items: center; gap: 6px; padding: 7px 9px; color: var(--green); background: rgba(39,136,103,.09); border: 1px solid rgba(39,136,103,.18); border-radius: 999px; font-size: 9px; font-weight: 900; white-space: nowrap; }
.number-live-badge .live-dot { width: 6px; height: 6px; }
.payment-status-section { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); }
.payment-status-section .section-head { margin-bottom: 12px; }
.copy-one { margin-left: auto; }
.copy-all { margin-top: 13px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.list-line, .info-list > div { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 10px; }
.list-line small, .info-list span { color: var(--muted); }
.tag-cloud { display: flex; flex-wrap: wrap; gap: 7px; }
.tag-cloud span { padding: 7px 9px; color: var(--muted-strong); background: var(--card-soft); border: 1px solid var(--line); border-radius: 8px; font-size: 9px; font-weight: 800; }
.provider-hint { min-height: 15px; color: var(--teal-dark); font-size: 9px; line-height: 1.5; }
.provider-fields { padding: 11px; background: var(--card-soft); border: 1px solid var(--line); border-radius: 11px; }
.small-note { margin-top: 18px; font-size: 10px; line-height: 1.6; }
.empty { padding: 25px 10px; color: var(--muted); font-size: 10px; text-align: center; }
.search-row { display: flex; align-items: end; gap: 10px; margin-bottom: 15px; }
.search-row label { flex: 1; }
.search-meta { color: var(--muted); font-family: "DM Mono", monospace; font-size: 9px; }
.prefix-form-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.prefix-form-actions .primary, .prefix-form-actions .secondary { flex: 1; min-width: 145px; }
.prefix-lock { gap: 6px; }
.prefix-lock .text-link { font-size: 10px; }

.auth-wrap { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(340px, 480px); gap: clamp(35px, 8vw, 120px); align-items: center; width: min(1180px, 100%); min-height: 100dvh; margin: 0 auto; padding: 45px clamp(20px, 5vw, 70px) 55px; }
.auth-wrap:has(.landing-page) { display: block; width: min(1180px, 100%); padding-top: 30px; }
.landing-page { min-height: calc(100dvh - 85px); }
.landing-header { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-bottom: 70px; }
.landing-header .brand { display: inline-flex; align-items: center; gap: 10px; color: var(--navy); font-family: "Space Grotesk", sans-serif; font-size: 13px; font-weight: 700; letter-spacing: -.02em; }
.landing-header .brand img { width: 34px; height: 34px; object-fit: contain; }
.landing-actions { display: flex; align-items: center; gap: 10px; }
.landing-actions a { text-decoration: none; }
.landing-actions .secondary { padding: 11px 16px; color: var(--navy); background: transparent; border: 1px solid var(--line); border-radius: 9px; font-size: 10px; font-weight: 800; }
.landing-menu { padding: 8px; color: var(--muted-strong); background: transparent; border: 0; letter-spacing: 3px; }
.landing-hero { max-width: 760px; padding: 40px 0 74px; }
.landing-hero h1 { max-width: 760px; margin: 12px 0 20px; color: var(--navy); font-family: "Space Grotesk", sans-serif; font-size: clamp(48px, 8vw, 94px); line-height: .96; letter-spacing: -.08em; }
.landing-hero h1 span { color: var(--coral); }
.landing-hero > p:not(.eyebrow) { max-width: 480px; color: var(--muted-strong); font-size: 15px; line-height: 1.7; }
.landing-hero-actions { display: flex; align-items: center; gap: 18px; margin-top: 30px; }
.landing-hero-actions a { text-decoration: none; }
.landing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; max-width: 860px; border-top: 1px solid var(--line); padding-top: 20px; }
.landing-stat { display: grid; gap: 7px; padding: 15px 0; }
.landing-stat span { color: var(--muted); font-size: 9px; letter-spacing: .1em; text-transform: uppercase; }
.landing-stat strong { color: var(--navy); font-family: "Space Grotesk", sans-serif; font-size: 20px; letter-spacing: -.04em; }
.landing-stat small { max-width: 190px; color: var(--muted-strong); font-size: 10px; line-height: 1.5; }
html[data-theme="dark"] .landing-header .brand,
html[data-theme="dark"] .landing-hero h1,
html[data-theme="dark"] .landing-stat strong { color: var(--ink); }
.auth-wrap > .flash-stack { position: absolute; z-index: 5; top: 18px; right: 20px; left: 20px; margin: 0 auto; width: min(560px, calc(100% - 40px)); }
.auth-landing { max-width: 490px; }
.auth-landing .auth-brand { margin-bottom: 55px; color: var(--navy); }
html[data-theme="dark"] .auth-landing .auth-brand { color: var(--ink); }
.auth-landing h1 { max-width: 530px; margin: 0 0 18px; color: var(--navy); font-family: "Space Grotesk", sans-serif; font-size: clamp(42px, 6vw, 72px); line-height: .98; letter-spacing: -.085em; }
html[data-theme="dark"] .auth-landing h1 { color: var(--ink); }
.auth-landing h1 span { color: var(--coral); }
.auth-landing > p { max-width: 420px; margin: 0; color: var(--muted-strong); font-size: 14px; line-height: 1.7; }
.landing-points { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 42px; padding-top: 22px; border-top: 1px solid var(--line); }
.landing-points strong { display: block; color: var(--navy); font-family: "Space Grotesk", sans-serif; font-size: 22px; letter-spacing: -.07em; }
html[data-theme="dark"] .landing-points strong { color: var(--ink); }
.landing-points small { display: block; margin-top: 5px; color: var(--muted); font-size: 9px; line-height: 1.4; }
.auth-panel { min-width: 0; }
.auth-tools { display: flex; justify-content: end; margin-bottom: 12px; }
.auth-card { padding: 28px; background: var(--card); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); }
.auth-logo-panel { display: flex; justify-content: center; margin: -5px 0 17px; }
.auth-logo-panel img { width: 70px; height: 70px; object-fit: cover; object-position: center; border-radius: 18px; box-shadow: var(--shadow-small); }
.auth-card h1 { margin: 9px 0; font-family: "Space Grotesk", sans-serif; font-size: 30px; letter-spacing: -.07em; }
.muted { color: var(--muted); font-size: 11px; line-height: 1.65; }
.auth-card > .muted { margin: 0 0 24px; }
.auth-switch { margin-top: 21px; color: var(--muted); font-size: 10px; text-align: center; }
.auth-switch a { color: var(--teal-dark); font-weight: 800; }
.auth-support { display: flex; align-items: center; gap: 12px; padding: 16px 5px; color: var(--muted); }
.auth-support > span { display: grid; place-items: center; width: 23px; height: 23px; color: var(--teal-dark); border: 1px solid var(--line); border-radius: 50%; font-family: "DM Mono", monospace; font-size: 10px; }
.auth-support b, .auth-support small { display: block; }
.auth-support b { color: var(--ink); font-size: 10px; }
.auth-support small { margin-top: 3px; font-size: 9px; }
.auth-support a { margin-left: auto; color: var(--teal-dark); font-family: "DM Mono", monospace; font-size: 11px; }
.auth-footer { position: absolute; right: 0; bottom: 18px; left: 0; margin: 0; color: var(--muted); font-size: 9px; text-align: center; }
.button-link { text-align: center; }

@media (max-width: 1100px) {
  .auth-wrap { gap: 40px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .three-col { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .sidebar { z-index: 100; transform: translateX(-100%); box-shadow: var(--shadow); }
  .sidebar.open { transform: translateX(0); }
  .sidebar-scrim {
    position: fixed;
    z-index: 90;
    inset: 0;
    display: none;
    background: rgba(7, 21, 45, .42);
    backdrop-filter: blur(2px);
  }
  body.sidebar-open .sidebar-scrim { display: block; }
  .main, .nav-collapsed .main { width: 100%; margin-left: 0; padding: 18px 15px 48px; }
  .nav-collapsed .sidebar { width: 258px; }
  .nav-collapsed .sidebar .brand span, .nav-collapsed .sidebar .profile-chip div:not(.avatar), .nav-collapsed .sidebar .chevron, .nav-collapsed .sidebar nav span, .nav-collapsed .sidebar .sidebar-bottom span { display: block; }
  .nav-collapsed .sidebar .brand, .nav-collapsed .sidebar nav a, .nav-collapsed .sidebar .sidebar-bottom a { justify-content: flex-start; }
  .topbar { margin-bottom: 22px; }
  .topbar h1 { font-size: 24px; }
  .top-actions .status-pill, .top-actions .theme-toggle { display: none; }
  .two-col, .three-col { grid-template-columns: 1fr; }
  .stats-grid { gap: 9px; }
  .stat-card { padding: 15px; }
  .stat-card strong { font-size: 23px; }
  .panel-card { padding: 16px; }
  .action-grid { grid-template-columns: 1fr 1fr; }
  .console-head { display: block; }
  .console-head .status-pill { display: none; }
  .form-row { grid-template-columns: 1fr; }
  .search-row { display: block; }
  .search-row .search-meta { display: block; margin-top: 8px; }
  .auth-wrap { display: block; width: min(520px, 100%); padding: 24px 17px 60px; }
  .auth-wrap:has(.landing-page) { width: 100%; padding: 20px 17px 50px; }
  .landing-header { padding-bottom: 35px; }
  .landing-actions .secondary { display: none; }
  .landing-hero { padding: 28px 0 48px; }
  .landing-hero h1 { font-size: 52px; }
  .landing-hero-actions { align-items: flex-start; flex-direction: column; gap: 14px; }
  .landing-grid { grid-template-columns: 1fr; }
  .auth-wrap > .flash-stack { position: relative; top: auto; right: auto; left: auto; width: 100%; margin-bottom: 18px; }
  .auth-landing { max-width: none; padding: 0 3px 28px; }
  .auth-landing .auth-brand { margin-bottom: 35px; }
  .auth-landing h1 { font-size: 45px; }
  .auth-landing > p { font-size: 12px; }
  .landing-points { margin-top: 26px; }
  .auth-panel { max-width: 480px; margin: 0 auto; }
  .auth-footer { position: static; margin-top: 18px; }
}

/* WORK WITH AR visual system
   The auth screen is the source of truth for the product palette. These
   shared tokens and component treatments keep every manager and user view
   in the same visual family without changing their markup or behavior. */
:root {
  --bg: #eef7ff;
  --bg-deep: #e2f0ff;
  --ink: #10254a;
  --muted: #6d86a9;
  --muted-strong: #45658e;
  --line: #d8e7fb;
  --card: #ffffff;
  --card-soft: #f5f9ff;
  --navy: #0d2d5d;
  --navy-2: #124b89;
  --teal: #087cff;
  --teal-dark: #176dff;
  --coral: #8a45f4;
  --amber: #d28b2f;
  --green: #159b7b;
  --red: #d9566d;
  --shadow: 0 24px 64px rgba(40, 104, 177, .14);
  --shadow-small: 0 10px 28px rgba(42, 108, 182, .10);
  font-family: "Inter", "Manrope", system-ui, sans-serif;
}

html[data-theme="dark"] {
  --bg: #091b37;
  --bg-deep: #07152d;
  --ink: #eef6ff;
  --muted: #9bb4d6;
  --muted-strong: #c1d5ef;
  --line: #1d3b64;
  --card: #10284a;
  --card-soft: #15345d;
  --navy: #071a38;
  --navy-2: #0d2e5d;
  --teal: #5ba6ff;
  --teal-dark: #74b5ff;
  --coral: #b48cff;
  --amber: #e4b566;
  --green: #5bd0ae;
  --red: #ff8a9e;
  --shadow: 0 24px 64px rgba(0, 0, 0, .28);
  --shadow-small: 0 10px 28px rgba(0, 0, 0, .22);
}

@media (prefers-color-scheme: dark) {
  html[data-theme="system"] {
    --bg: #091b37;
    --bg-deep: #07152d;
    --ink: #eef6ff;
    --muted: #9bb4d6;
    --muted-strong: #c1d5ef;
    --line: #1d3b64;
    --card: #10284a;
    --card-soft: #15345d;
    --navy: #071a38;
    --navy-2: #0d2e5d;
    --teal: #5ba6ff;
    --teal-dark: #74b5ff;
    --coral: #b48cff;
    --amber: #e4b566;
    --green: #5bd0ae;
    --red: #ff8a9e;
    --shadow: 0 24px 64px rgba(0, 0, 0, .28);
    --shadow-small: 0 10px 28px rgba(0, 0, 0, .22);
  }
}

body {
  background:
    radial-gradient(circle at 0% 0%, rgba(85, 178, 255, .12), transparent 26rem),
    radial-gradient(circle at 100% 100%, rgba(137, 74, 255, .10), transparent 25rem),
    var(--bg);
}

body::before {
  opacity: .22;
  background-image: radial-gradient(rgba(31, 117, 211, .16) .6px, transparent .6px);
}

.sidebar {
  background:
    radial-gradient(circle at 100% 12%, rgba(97, 180, 255, .20), transparent 16rem),
    linear-gradient(180deg, #0c2d5c 0%, #0d3e77 58%, #102f61 100%);
  box-shadow: 14px 0 40px rgba(13, 58, 111, .12);
}

.brand em { color: #b28bff; }
.profile-chip { border-color: rgba(132, 194, 255, .20); }
.profile-chip:hover, .profile-chip:focus-visible { background: rgba(91, 166, 255, .14); }
.avatar, .top-avatar { background: linear-gradient(145deg, #168fff, #834dff); }
.profile-menu { background: #124b89; border-color: rgba(151, 211, 255, .22); }
.profile-menu a:hover { background: rgba(117, 189, 255, .15); }
.menu-glyph, .nav-mark { color: #83c5ff; }
nav a, .sidebar-bottom a { color: #b5cce9; }
nav a:hover, nav a.active, .sidebar-bottom a:hover {
  color: #ffffff;
  background: linear-gradient(90deg, rgba(74, 169, 255, .24), rgba(143, 77, 255, .14));
}
nav a.active { box-shadow: inset 3px 0 #5db4ff; }

.menu-button {
  background: #e1efff;
  border-color: #c9e0fa;
}
.menu-button span, .menu-button::before, .menu-button::after { background: #176dff; }
.status-pill, .soft-badge {
  background: var(--card-soft);
  border-color: var(--line);
}
.theme-toggle { background: var(--card-soft); border-color: var(--line); }
.theme-toggle button.active, .theme-toggle button:hover {
  color: var(--ink);
  background: var(--card);
}

.notice, .stat-card, .panel-card {
  border-color: var(--line);
  box-shadow: var(--shadow-small);
}
.notice > span, .country-icon {
  color: var(--teal-dark);
  background: rgba(8, 124, 255, .11);
}
.stat-card::after { background: rgba(8, 124, 255, .09); }
.accent-stat {
  background: linear-gradient(145deg, #1265c4 0%, #4c4de2 56%, #813cd0 100%);
  border-color: #4d77da;
}
.accent-stat::after { background: rgba(255, 255, 255, .12); }
.accent-stat span, .accent-stat small, .accent-stat strong em { color: #d7e9ff; }
.primary {
  background: linear-gradient(90deg, #079cff 0%, #176dff 54%, #9b38ff 100%);
  box-shadow: 0 9px 20px rgba(50, 112, 255, .20);
}
.primary:hover { filter: brightness(1.07); }
.secondary {
  color: var(--teal-dark);
  background: rgba(8, 124, 255, .09);
  border-color: rgba(8, 124, 255, .22);
}
.action-tile:hover, .tiny:hover { border-color: var(--teal); }
.action-tile b, .text-link, .stat-card small a { color: var(--teal-dark); }
.result-box { background: rgba(21, 155, 123, .11); }

/* Auth is deliberately full-bleed: the new light-blue design owns the
   entire viewport instead of being placed in the legacy two-column shell. */
.auth-wrap:has(.wwar-auth) {
  display: block;
  width: 100%;
  max-width: none;
  min-height: 100dvh;
  padding: 0;
  overflow-x: hidden;
}
.auth-wrap:has(.wwar-auth) > .flash-stack {
  z-index: 10;
  top: 18px;
}
.auth-wrap:has(.wwar-auth) .auth-footer { display: none; }
body:has(.wwar-auth) {
  background:
    radial-gradient(circle at 4% 2%, rgba(72, 164, 255, .16) 0 9%, transparent 9.5%),
    radial-gradient(circle at 98% 30%, rgba(39, 149, 255, .15) 0 11%, transparent 11.5%),
    #f6fbff;
}
body:has(.wwar-auth)::before { display: none; }

@media (max-width: 760px) {
  .sidebar { box-shadow: 10px 0 35px rgba(7, 45, 95, .24); }
  .main { background: transparent; }
  .panel-card { border-radius: 15px; }
}

/* Shared header controls */
.topbar { position: relative; z-index: 30; }
.topbar-title { flex: 1; min-width: 0; }
.topbar-brand {
  display: none;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-family: "Space Grotesk", sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -.04em;
  white-space: nowrap;
}
.topbar-brand img { width: 31px; height: 31px; object-fit: contain; border-radius: 9px; }
.topbar-brand em { color: var(--coral); font-style: normal; }
.header-control { position: relative; }
.header-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  color: var(--muted-strong);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
  transition: color .18s ease, border-color .18s ease, transform .18s ease;
}
.header-icon:hover, .header-icon:focus-visible {
  color: var(--teal-dark);
  border-color: var(--teal);
  outline: none;
  transform: translateY(-1px);
}
.language-button { font-size: 16px; }
.notification-button { position: relative; font-size: 16px; }
.notification-badge, .menu-count {
  display: grid;
  place-items: center;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  color: #fff;
  background: #ef4e80;
  border-radius: 99px;
  font-family: "DM Mono", monospace;
  font-size: 9px;
  font-weight: 700;
}
.notification-badge { position: absolute; top: -5px; right: -5px; }
.top-member {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 36px;
  padding: 2px 8px 2px 2px;
  color: var(--ink);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 11px;
}
.top-member:hover, .top-member:focus-visible { border-color: var(--teal); outline: none; }
.top-member .top-avatar { width: 31px; height: 31px; border-radius: 8px; font-size: 12px; }
.top-member-name { max-width: 105px; overflow: hidden; font-size: 10px; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.member-caret { color: var(--muted); font-size: 14px; line-height: 1; }
.control-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 80;
  display: none;
  min-width: 190px;
  padding: 8px;
  color: var(--ink);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 13px;
  box-shadow: var(--shadow);
}
.control-menu.open {
  display: grid !important;
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  gap: 3px;
}
.control-menu::before {
  position: absolute;
  top: -5px;
  right: 15px;
  width: 9px;
  height: 9px;
  content: "";
  background: var(--card);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  transform: rotate(45deg);
}
.control-menu > b {
  padding: 5px 9px 7px;
  color: var(--muted);
  font-family: "DM Mono", monospace;
  font-size: 9px;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.control-menu button, .control-menu a {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  padding: 9px 10px;
  color: var(--muted-strong);
  background: transparent;
  border-radius: 8px;
  font-size: 10px;
  font-weight: 800;
  text-align: left;
}
.control-menu button:hover, .control-menu button.active, .control-menu a:hover {
  color: var(--teal-dark);
  background: rgba(8, 124, 255, .08);
}
.control-menu p {
  margin: 0;
  padding: 8px 9px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
}
.control-menu .menu-glyph { width: 18px; color: var(--teal-dark); }
.control-menu .menu-count { margin-left: auto; }
.control-menu .menu-danger { color: var(--red); margin-top: 3px; border-top: 1px solid var(--line); border-radius: 0 0 8px 8px; }
.language-menu { min-width: 165px; }
.theme-menu { min-width: 130px; }
.theme-menu button { font-family: "DM Mono", monospace; font-size: 9px; text-transform: uppercase; }
.notification-menu { min-width: 230px; }
.account-menu { min-width: 220px; }
.claim-cooldown-note { min-height: 14px; color: var(--amber); font-size: 10px; font-weight: 800; }

.announcement-overlay {
  position: fixed;
  z-index: 200;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(7, 21, 45, .70);
  backdrop-filter: blur(7px);
}
.announcement-modal {
  width: min(680px, 100%);
  max-height: min(760px, calc(100dvh - 44px));
  overflow: auto;
  padding: 28px;
  color: var(--ink);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 28px 90px rgba(0, 0, 0, .32);
}
.announcement-kicker { color: var(--teal-dark); font-family: "DM Mono", monospace; font-size: 9px; font-weight: 800; letter-spacing: .16em; }
.announcement-modal h2 { margin: 7px 0 4px; font-family: "Space Grotesk", sans-serif; font-size: 27px; letter-spacing: -.06em; }
.announcement-intro { margin: 0 0 19px; color: var(--muted); font-size: 11px; }
.announcement-list { display: grid; gap: 12px; }
.announcement-item, .announcement-history-item { padding: 17px; background: var(--card-soft); border: 1px solid var(--line); border-radius: 13px; }
.announcement-item-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.announcement-item h3 { margin: 0; font-size: 14px; }
.announcement-item time, .announcement-history-item time { color: var(--muted); font-family: "DM Mono", monospace; font-size: 9px; white-space: nowrap; }
.announcement-item p, .announcement-history-item p { margin: 10px 0 15px; color: var(--muted-strong); font-size: 11px; line-height: 1.65; white-space: pre-wrap; }
.announcement-read { font-size: 10px; }
.announcement-history { display: grid; gap: 10px; }
.announcement-history-item { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.announcement-history-item p { margin-bottom: 0; }
.announcement-history-meta { display: flex; align-items: flex-end; flex-direction: column; gap: 7px; flex: 0 0 auto; }
.announcement-history-meta small { color: var(--muted); font-size: 9px; }

/* Dashboard layout inspired by the supplied mobile reference */
.dashboard-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin: -3px 0 20px;
}
.dashboard-hero h2 {
  margin: 5px 0 4px;
  color: var(--ink);
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(27px, 4vw, 40px);
  letter-spacing: -.07em;
}
.dashboard-hero p:not(.eyebrow) { margin: 0; color: var(--muted); font-size: 11px; }
.dashboard-stats { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.dashboard-stat {
  position: relative;
  min-height: 132px;
  overflow: hidden;
  padding: 21px 20px;
  color: #fff;
  border: 0;
  border-radius: 14px;
  box-shadow: 0 12px 26px rgba(41, 101, 190, .16);
}
.dashboard-stat::after {
  position: absolute;
  right: -24px;
  bottom: -34px;
  width: 105px;
  height: 105px;
  content: "";
  border: 16px solid rgba(255, 255, 255, .10);
  border-radius: 50%;
}
.dashboard-stat > span { position: relative; z-index: 1; display: block; font-size: 10px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.dashboard-stat strong { position: relative; z-index: 1; display: block; margin: 17px 0 7px; font-family: "Space Grotesk", sans-serif; font-size: 29px; letter-spacing: -.06em; }
.dashboard-stat strong em { font-family: "Manrope", sans-serif; font-size: 10px; font-style: normal; letter-spacing: 0; }
.dashboard-stat small { position: relative; z-index: 1; color: rgba(255,255,255,.80); font-size: 10px; }
.dashboard-period-note { margin: -8px 0 18px; color: var(--muted); font-size: 10px; line-height: 1.5; }
.stat-blue { background: linear-gradient(135deg, #087cff, #69a9f3); }
.stat-pink { background: linear-gradient(135deg, #ef4778, #f47b90); }
.stat-green { background: linear-gradient(135deg, #08a879, #44d2ab); }
.stat-purple { background: linear-gradient(135deg, #7446d8, #ac7bf2); }
.stat-orange { background: linear-gradient(135deg, #f36d28, #f3b05d); }
.volume-card { padding: 28px 30px 22px; }
.volume-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; }
.volume-head h2 { margin: 0 0 6px; font-family: "Space Grotesk", sans-serif; font-size: 20px; letter-spacing: -.06em; }
.volume-head p { margin: 0; color: var(--muted); font-size: 11px; }
.volume-summary { display: flex; flex-wrap: wrap; gap: 26px; margin: 26px 0 10px; }
.volume-summary > span { display: inline-flex; align-items: center; gap: 6px; color: var(--ink); font-size: 13px; }
.volume-summary b { font-family: "Space Grotesk", sans-serif; font-size: 17px; }
.volume-summary small { color: var(--muted); font-size: 10px; }
.chart-key { width: 9px; height: 9px; border-radius: 50%; }
.key-blue { background: #087cff; }
.key-pink { background: #ef4778; }
.bar-chart {
  display: flex;
  align-items: flex-end;
  gap: clamp(7px, 2vw, 18px);
  height: 190px;
  padding: 12px 8px 0;
  border-bottom: 1px solid var(--line);
  background: repeating-linear-gradient(to top, transparent 0 44px, rgba(111, 142, 182, .09) 45px 46px);
}
.bar-group { display: flex; align-items: center; flex: 1; flex-direction: column; min-width: 12px; height: 100%; justify-content: flex-end; }
.bar-columns { display: flex; align-items: flex-end; justify-content: center; gap: 3px; width: 100%; height: 165px; }
.chart-bar { display: block; width: clamp(4px, 1vw, 9px); min-height: 4px; border-radius: 4px 4px 0 0; }
.bar-sms { background: #087cff; }
.bar-earnings { background: #ef4778; }
.bar-group small { margin-top: 8px; color: var(--muted); font-family: "DM Mono", monospace; font-size: 8px; }
.chart-axis { display: flex; justify-content: space-between; margin-top: 9px; color: var(--muted); font-size: 9px; }
.dashboard-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 17px; }
.dashboard-action {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
  padding: 15px;
  color: #fff;
  border-radius: 13px;
  box-shadow: var(--shadow-small);
}
.dashboard-action > span:nth-child(2) { min-width: 0; flex: 1; }
.dashboard-action b, .dashboard-action small { display: block; }
.dashboard-action b { font-size: 11px; }
.dashboard-action small { margin-top: 4px; color: rgba(255,255,255,.78); font-size: 9px; }
.dashboard-action-icon { display: grid; place-items: center; width: 29px; height: 29px; flex: 0 0 auto; background: rgba(255,255,255,.18); border-radius: 9px; font-size: 18px; }
.dashboard-action-arrow { font-size: 17px; opacity: .8; }
.action-blue { background: linear-gradient(135deg, #087cff, #438de9); }
.action-purple { background: linear-gradient(135deg, #7047e8, #a271ed); }
.action-green { background: linear-gradient(135deg, #079c78, #35c69f); }
.action-orange { background: linear-gradient(135deg, #ef7a28, #e9b34f); }
.locked-field {
  display: grid;
  gap: 5px;
  padding: 11px 12px;
  color: var(--muted-strong);
  background: var(--card-soft);
  border: 1px dashed var(--line);
  border-radius: 9px;
  font-size: 10px;
  font-weight: 800;
}
.locked-field strong { color: var(--ink); font-family: "DM Mono", monospace; font-size: 12px; }
.locked-field small { color: var(--muted); font-size: 9px; font-weight: 500; }
.locked-currency {
  display: inline-flex;
  align-items: center;
  padding: 6px 8px;
  color: var(--muted);
  background: var(--card-soft);
  border: 1px dashed var(--line);
  border-radius: 7px;
  font-family: "DM Mono", monospace;
  font-size: 9px;
  white-space: nowrap;
}

.field-help {
  color: var(--muted);
  font-size: 9px;
  font-weight: 500;
}

.logo-preview {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  color: var(--muted);
  background: var(--card-soft);
  border: 1px dashed var(--line);
  border-radius: 10px;
  font-size: 9px;
}

.logo-preview img {
  width: 42px;
  height: 42px;
  object-fit: cover;
  border-radius: 11px;
  box-shadow: var(--shadow-small);
}

.manager-search {
  align-items: end;
  margin: -4px 0 14px;
}

.manager-search .primary,
.manager-search .secondary {
  min-height: 39px;
}

.leaderboard-card {
  max-width: 900px;
}

.leaderboard-list {
  display: grid;
  gap: 8px;
}

.leaderboard-row {
  display: grid;
  grid-template-columns: 38px 28px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 14px 15px;
  background: var(--card-soft);
  border: 1px solid var(--line);
  border-radius: 13px;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.leaderboard-row:hover {
  border-color: var(--teal);
  box-shadow: var(--shadow-small);
  transform: translateX(3px);
}

.leaderboard-top {
  background: linear-gradient(100deg, rgba(8, 124, 255, .11), rgba(138, 69, 244, .09));
}

.leaderboard-rank {
  color: var(--muted);
  font-family: "DM Mono", monospace;
  font-size: 11px;
  font-weight: 700;
}

.leaderboard-medal {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  color: var(--coral);
  background: rgba(138, 69, 244, .12);
  border-radius: 9px;
  font-size: 14px;
}

.leaderboard-user {
  min-width: 0;
}

.leaderboard-user b,
.leaderboard-user small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.leaderboard-user b {
  font-size: 12px;
}

.leaderboard-user small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 9px;
}

.leaderboard-earnings {
  color: var(--green);
  font-family: "Space Grotesk", sans-serif;
  font-size: 16px;
  white-space: nowrap;
}

.leaderboard-earnings em {
  color: var(--muted);
  font-family: "Manrope", sans-serif;
  font-size: 9px;
  font-style: normal;
}

nav a {
  position: relative;
  overflow: hidden;
}

nav a::after {
  position: absolute;
  right: 10px;
  bottom: 5px;
  left: 43px;
  height: 2px;
  content: "";
  background: linear-gradient(90deg, #087cff, #8a45f4, #ef4778);
  border-radius: 2px;
  opacity: 0;
  transform: translateX(-12px);
  transition: opacity .18s ease, transform .18s ease;
}

nav a:hover::after,
nav a.active::after {
  opacity: .9;
  transform: translateX(0);
}

nav a:nth-child(3) .nav-mark { color: #8a45f4; }
nav a:nth-child(4) .nav-mark { color: #ef4778; }
nav a:nth-child(5) .nav-mark { color: #f3a443; }
nav a:nth-child(6) .nav-mark { color: #10ad85; }
nav a:nth-child(7) .nav-mark { color: #2b8dff; }
nav a:nth-child(8) .nav-mark { color: #b14cff; }

@media (max-width: 1100px) {
  .dashboard-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .topbar { gap: 8px; margin-bottom: 22px; }
  .topbar-brand { display: flex; flex: 1; min-width: 0; }
  .topbar-brand span { overflow: hidden; text-overflow: ellipsis; }
  .topbar-title { display: none; }
  .top-actions { gap: 5px; }
  .header-icon { width: 34px; height: 34px; }
  .top-member { padding-right: 3px; }
  .top-member-name, .member-caret { display: none; }
  .top-member .top-avatar { width: 30px; height: 30px; }
  .top-actions .status-pill { display: none; }
  .control-menu { top: calc(100% + 8px); }
  .console-feed { max-height: none; padding: 0 0 4px; }
  .console-line { padding: 12px; font-size: 9px; }
  .console-card { min-height: auto; }
  .console-card .console-feed { max-height: none; }
  .catalog-grid, .catalog-delete-grid { grid-template-columns: 1fr; }
  .volume-card { padding: 21px 16px 18px; }
  .volume-head h2 { font-size: 18px; }
  .dashboard-hero { align-items: flex-start; flex-direction: column; margin-top: 0; }
  .dashboard-hero .status-pill { align-self: flex-start; }
  .dashboard-actions { grid-template-columns: 1fr; }
  .manager-search { display: block; }
  .manager-search .primary,
  .manager-search .secondary { margin-top: 8px; }
  .leaderboard-row { grid-template-columns: 30px 26px minmax(0, 1fr); }
  .leaderboard-earnings { grid-column: 3; }
}

@media (max-width: 560px) {
  .dashboard-stats { grid-template-columns: 1fr; }
  .dashboard-stat { min-height: 116px; }
  .bar-chart { gap: 6px; padding-left: 0; padding-right: 0; }
  .chart-bar { width: 5px; }
  .volume-summary { gap: 12px; }
  .announcement-overlay { padding: 12px; }
  .announcement-modal { padding: 19px; }
  .announcement-item-head, .announcement-history-item { display: block; }
  .announcement-item time, .announcement-history-item time { display: block; margin-top: 7px; }
  .announcement-history-meta { align-items: flex-start; margin-top: 12px; }
}

/* Number claiming and status filters */
.number-picker-card { padding: 25px; }
.number-mode-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 4px 0 21px;
  padding: 5px;
  background: var(--card-soft);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.number-mode-tab {
  padding: 12px 14px;
  color: var(--muted-strong);
  background: transparent;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 800;
}
.number-mode-tab:hover, .number-mode-tab.active {
  color: #fff;
  background: linear-gradient(90deg, #087cff, #7047e8);
  box-shadow: var(--shadow-small);
}
.number-mode-panel { display: grid; gap: 8px; }
.number-results-layout {
  display: grid;
  grid-template-columns: 185px minmax(0, 1fr);
  gap: 17px;
  align-items: start;
}
.claim-filter-sidebar { position: sticky; top: 18px; padding: 17px; }
.claim-filter-sidebar h2 { margin-bottom: 16px; font-size: 16px; }
.filter-buttons { display: flex; flex-wrap: wrap; gap: 7px; }
.filter-buttons-side { display: grid; }
.filter-button {
  padding: 8px 10px;
  color: var(--muted-strong);
  background: var(--card-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 9px;
  font-weight: 800;
}
.filter-button:hover, .filter-button.active {
  color: var(--teal-dark);
  background: rgba(8, 124, 255, .10);
  border-color: rgba(8, 124, 255, .32);
}
.filter-buttons-top { margin: -4px 0 14px; }
.claim-status-row.filtered-out, .console-line.filtered-out { display: none; }
.claimed-numbers-card { min-width: 0; }
.status-failed { color: var(--red); font-weight: 800; }
.claim-number { display: block; font-size: clamp(19px, 3vw, 30px) !important; letter-spacing: .03em; }

/* Console cards: service, country, OTP, message, and a readable timestamp. */
.console-section-head { padding: 20px 20px 0; margin-bottom: 16px; }
.console-filters { padding: 0 20px; }
.console-line {
  display: grid;
  gap: 6px;
  padding: 22px 24px;
  color: var(--ink);
  background: var(--card-soft);
  border: 1px solid var(--line);
  border-left: 4px solid var(--teal);
  border-radius: 14px;
  font-family: "Inter", sans-serif;
  line-height: 1.45;
  white-space: normal;
  overflow-wrap: anywhere;
}
.console-line[data-status="Success"] { border-left-color: var(--green); }
.console-line[data-status="Failed"] { border-left-color: var(--red); }
.console-service {
  color: var(--ink);
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(17px, 2vw, 23px);
  font-weight: 700;
  letter-spacing: -.045em;
}
.console-country { color: var(--muted-strong); font-size: 12px; font-weight: 700; }
.console-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  color: var(--muted);
  font-family: "DM Mono", monospace;
  font-size: 10px;
}
.console-prefix {
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .015em;
}
.console-otp {
  margin-top: 8px;
  color: var(--muted);
  font-family: "DM Mono", monospace;
  font-size: clamp(20px, 2.5vw, 25px);
  font-weight: 800;
  letter-spacing: .05em;
  line-height: 1;
}
.console-otp-success { color: var(--green); }
.console-message {
  padding-top: 11px;
  color: var(--muted-strong);
  border-top: 1px solid var(--line);
  font-size: 12px;
  line-height: 1.6;
}

@media (max-width: 760px) {
  .number-picker-card { padding: 17px; }
  .number-mode-tabs { grid-template-columns: 1fr; }
  .number-results-layout { grid-template-columns: 1fr; }
  .claim-filter-sidebar { position: static; }
  .filter-buttons-side { display: flex; }
  .filter-button { flex: 1 1 auto; }
  .console-section-head { padding: 16px 16px 0; }
  .console-filters { padding: 0 16px; }
  .console-line { padding: 17px 14px; }
}

/* An explicit Light choice must not inherit the device's dark preference. */
html[data-theme="light"] {
  color-scheme: light;
}

html[data-theme="light"] .sidebar {
  background: linear-gradient(180deg, #f7fbff 0%, #e8f2ff 100%);
  border-right: 1px solid #cfe0f5;
  box-shadow: 10px 0 35px rgba(31, 83, 145, .08);
  color: #45658e;
}
html[data-theme="light"] .brand,
html[data-theme="light"] .profile-chip b,
html[data-theme="light"] .profile-chip,
html[data-theme="light"] nav a,
html[data-theme="light"] .sidebar-bottom a {
  color: #10254a;
}
html[data-theme="light"] .brand em { color: #7047e8; }
html[data-theme="light"] .profile-chip {
  background: rgba(255, 255, 255, .68);
  border-color: #cfe0f5;
}
html[data-theme="light"] .profile-chip small,
html[data-theme="light"] .chevron,
html[data-theme="light"] nav a,
html[data-theme="light"] .sidebar-bottom a {
  color: #45658e;
}
html[data-theme="light"] nav a:hover,
html[data-theme="light"] nav a.active,
html[data-theme="light"] .sidebar-bottom a:hover {
  color: #10254a;
  background: linear-gradient(90deg, rgba(8, 124, 255, .13), rgba(143, 77, 255, .10));
}
html[data-theme="light"] .sidebar-bottom {
  border-top-color: #cfe0f5;
}
html[data-theme="light"] .menu-glyph,
html[data-theme="light"] .nav-mark {
  color: #176dff;
}

/* Final update: PST clock, premium menu icons, line-stable OTP feeds, and custom theme hooks. */
body { font-family: var(--panel-font, Inter), sans-serif; }
.pst-clock-card { display:flex; align-items:center; gap:18px; margin:16px 0 18px; padding:17px 21px; color:#fff; background:var(--brand-gradient, linear-gradient(135deg,#087cff,#7047e8)); border-radius:15px; box-shadow:0 12px 26px rgba(41,101,190,.16); }
.pst-clock-card .clock-label { font-size:10px; font-weight:800; letter-spacing:.08em; text-transform:uppercase; opacity:.82; }
.pst-clock-card strong { font-family:"DM Mono",monospace; font-size:clamp(21px,3vw,30px); letter-spacing:.05em; }
.pst-clock-card span:last-child { margin-left:auto; font-size:11px; opacity:.9; }
.format-toggle { display:flex; flex-wrap:wrap; gap:9px; padding:12px; border:1px solid var(--line); border-radius:10px; }
.format-toggle legend { padding:0 5px; color:var(--muted); font-size:10px; font-weight:800; }
.format-toggle label { display:flex; align-items:center; gap:5px; padding:8px 10px; color:var(--muted-strong); background:var(--card-soft); border-radius:8px; font-size:10px; font-weight:800; }
.format-toggle input { accent-color:var(--brand-primary,#087cff); }
.leaderboard-hero { margin-bottom:18px; }
.leaderboard-hero h2 { margin:4px 0; color:var(--ink); font-family:"Space Grotesk",sans-serif; font-size:clamp(30px,5vw,48px); letter-spacing:-.07em; }
.leaderboard-hero p:last-child { color:var(--muted); font-size:11px; }
.my-position-card { display:flex; align-items:baseline; gap:14px; width:max-content; margin-bottom:15px; padding:14px 18px; color:#fff; background:var(--brand-gradient,linear-gradient(135deg,#087cff,#7047e8)); border-radius:12px; }
.my-position-card span { font-size:11px; font-weight:800; text-transform:uppercase; }
.my-position-card strong { font-family:"Space Grotesk",sans-serif; font-size:24px; }
.my-position-card small { opacity:.84; font-size:10px; }
.leaderboard-table { display:grid; gap:7px; }
.leaderboard-table-head, .leaderboard-table-row { display:grid; grid-template-columns:minmax(0,1fr) 150px 90px; align-items:center; gap:15px; padding:14px 16px; }
.leaderboard-table-head { color:var(--muted); border-bottom:1px solid var(--line); font-size:10px; font-weight:800; letter-spacing:.08em; text-transform:uppercase; }
.leaderboard-table-row { background:var(--card-soft); border:1px solid var(--line); border-radius:11px; }
.leaderboard-table-row b { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.leaderboard-table-row strong { color:var(--brand-accent,#08a879); font-family:"Space Grotesk",sans-serif; font-size:18px; }
.leaderboard-table-row span { color:var(--muted-strong); font-family:"DM Mono",monospace; font-size:12px; font-weight:800; }
.backup-actions { display:grid; gap:18px; margin-top:20px; }
.backup-upload { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:end; gap:12px; }
.theme-form { display:grid; gap:14px; max-width:680px; margin-top:18px; }
.theme-form input[type=color] { width:65px; height:38px; padding:2px; }
.preset-row { display:flex; flex-wrap:wrap; gap:8px; }
.theme-preset { padding:9px 13px; border:1px solid var(--line); border-radius:9px; color:var(--muted-strong); background:var(--card-soft); font-size:10px; font-weight:800; }
.theme-preset:hover { border-color:var(--brand-primary,#087cff); }
@media (max-width:760px) { .pst-clock-card { align-items:flex-start; flex-direction:column; gap:5px; } .pst-clock-card span:last-child { margin-left:0; } .leaderboard-table-head, .leaderboard-table-row { grid-template-columns:minmax(0,1fr) 90px 55px; padding:12px 10px; } .backup-upload { grid-template-columns:1fr; } }

/* Finance: one consistent view of credited earnings and reserved withdrawals. */
.dashboard-finance {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 0 0 18px;
}
.dashboard-finance > div {
  padding: 17px 19px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-small);
}
.dashboard-finance span,
.dashboard-finance small {
  display: block;
  color: var(--muted);
  font-size: 10px;
}
.dashboard-finance span { font-weight: 800; text-transform: uppercase; letter-spacing: .05em; }
.dashboard-finance strong {
  display: block;
  margin: 10px 0 5px;
  color: var(--ink);
  font-family: "Space Grotesk", sans-serif;
  font-size: 23px;
  letter-spacing: -.06em;
}
.dashboard-finance strong em {
  color: var(--muted);
  font-family: "Manrope", sans-serif;
  font-size: 10px;
  font-style: normal;
  letter-spacing: 0;
}
.earning-toolbar { align-items: flex-end; }
.earning-controls { display: flex; align-items: end; gap: 9px; }
.earning-filter { display: flex; align-items: center; gap: 8px; }
.earning-filter label { display: inline; color: var(--muted); font-size: 10px; }
.earning-filter select { min-width: 135px; }
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 19px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.pagination a, .pagination-gap {
  display: inline-grid;
  place-items: center;
  min-width: 31px;
  height: 31px;
  padding: 0 8px;
  color: var(--muted-strong);
  background: var(--card-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 10px;
  font-weight: 800;
}
.pagination a:hover, .pagination a.active {
  color: #fff;
  background: var(--teal-dark);
  border-color: var(--teal-dark);
}
.pagination a.disabled { pointer-events: none; opacity: .45; }
.pagination-gap { color: var(--muted); background: transparent; border-color: transparent; }
.pagination-meta { margin: 10px 0 0; color: var(--muted); font-family: "DM Mono", monospace; font-size: 9px; text-align: center; }
@media (max-width: 760px) {
  .dashboard-finance { grid-template-columns: 1fr; gap: 9px; }
  .earning-toolbar { display: block; }
  .earning-controls { align-items: stretch; flex-direction: column; margin-top: 15px; }
  .earning-filter { justify-content: space-between; }
  .earning-filter select { flex: 1; }
  .earning-controls .secondary { text-align: center; }
}

.notification-item { display:grid; gap:3px; margin:8px 0; padding:9px 10px; border:1px solid var(--line); border-radius:10px; background:var(--card-soft); }
.notification-item strong { color:var(--ink); font-size:12px; }
.notification-item small { color:var(--muted-strong); line-height:1.35; }
.notification-item time { color:var(--muted); font-size:10px; }
.notification-mark-all { width:100%; margin:8px 0; }
.announcement-mark-all { width:max-content; margin:0 0 14px; }
.notification-mark-all:disabled { cursor:wait; opacity:.65; }
.leaderboard-period-tabs { display:flex; flex-wrap:wrap; gap:8px; margin:0 0 16px; }
.leaderboard-period-tabs a { text-decoration:none; }
.leaderboard-period-tabs a.active { color:#fff; background:var(--brand-primary,#087cff); border-color:var(--brand-primary,#087cff); }

/* AR OTP WORK premium navy glass system */
:root {
  --bg:#07162f; --bg-deep:#061127; --ink:#edf5ff; --muted:#91a9c8; --muted-strong:#b8cbe3;
  --line:rgba(126,176,225,.18); --card:rgba(14,36,73,.78); --card-soft:rgba(18,46,88,.62);
  --navy:#06132d; --navy-2:#0d2854; --teal:#5eb4ee; --teal-dark:#3d8fd0;
  --shadow:0 24px 60px rgba(0,0,0,.24); --shadow-small:0 12px 30px rgba(0,0,0,.18);
}
html, body { background:var(--bg); color:var(--ink); }
body { background:radial-gradient(ellipse at 8% 0%,rgba(43,108,181,.16),transparent 32rem),radial-gradient(ellipse at 100% 100%,rgba(89,64,156,.14),transparent 30rem),#07162f; }
body::before { opacity:.12; background-image:radial-gradient(rgba(117,179,239,.22) .55px,transparent .55px); background-size:11px 11px; }
.sidebar { background:linear-gradient(180deg,#061735,#0a2854 58%,#071a3d); border-right:1px solid rgba(125,183,237,.16); box-shadow:12px 0 42px rgba(0,0,0,.2); }
.brand, .auth-brand { color:#eef6ff; }
.profile-chip { background:rgba(75,139,208,.12); border-color:rgba(126,190,245,.2); }
.profile-chip:hover, .profile-chip:focus-visible { background:rgba(79,151,226,.2); }
.avatar, .top-avatar { background:linear-gradient(145deg,#287ec2,#6b5bb0); }
.profile-menu { background:#102e5c; border-color:rgba(134,192,244,.2); }
.menu-glyph, .nav-mark { color:#78b9ec; }
nav a, .sidebar-bottom a { color:#aec4df; }
nav a:hover, nav a.active, .sidebar-bottom a:hover { color:#f5f9ff; background:linear-gradient(90deg,rgba(68,148,216,.23),rgba(104,81,171,.16)); }
nav a.active { box-shadow:inset 3px 0 #67b7ed; }
.main { background:transparent; }
.topbar h1 { color:#f0f6ff; }
.menu-button { background:#143765; border-color:rgba(133,191,244,.24); }
.menu-button span, .menu-button::before, .menu-button::after { background:#83c8fa; }
.status-pill, .soft-badge { color:#bed1e9; background:rgba(25,57,103,.65); border-color:rgba(126,180,231,.18); }
.notice, .stat-card, .panel-card { background:linear-gradient(145deg,rgba(18,48,92,.82),rgba(10,29,62,.8)); border-color:rgba(126,180,231,.18); box-shadow:var(--shadow-small); }
.panel-card h2, .section-head h2 { color:#eff6ff; }
.stat-card > span, .stat-card small, .muted, .field-help { color:#91a9c8; }
.stat-card strong { color:#eef6ff; }
.accent-stat { background:linear-gradient(145deg,#174f8c,#465599 62%,#604b91); border-color:rgba(117,177,231,.35); }
input, select, textarea { color:#edf5ff; background:rgba(7,24,53,.7); border-color:rgba(126,180,231,.2); }
input::placeholder, textarea::placeholder { color:#7793b8; }
input:focus, select:focus, textarea:focus { border-color:#5daef0; box-shadow:0 0 0 3px rgba(74,155,223,.14); }
.primary { background:linear-gradient(100deg,#237fca,#4f77c9 58%,#7562b6); box-shadow:0 9px 20px rgba(38,112,186,.22); }
.secondary { color:#9fd0f5; background:rgba(50,130,199,.12); border-color:rgba(110,180,232,.25); }
.text-link, .action-tile b, .stat-card small a { color:#78c0f3; }
.action-tile { background:rgba(17,46,87,.7); border-color:rgba(126,180,231,.18); }
.action-tile:hover, .tiny:hover { border-color:#5aaeea; }
.console-line, .claim-row, .table-wrap { border-color:rgba(126,180,231,.16); }
.result-box { background:rgba(52,142,125,.14); }
.notification-item { background:rgba(9,28,61,.72); }
.landing-header .brand, .landing-hero h1, .landing-stat strong { color:#eef6ff; }
.landing-hero > p:not(.eyebrow), .landing-stat small { color:#a8bdd7; }
.landing-hero h1 span { color:#78bff2; }
.landing-actions .secondary { color:#b6d1ed; background:transparent; border-color:rgba(126,180,231,.25); }
@media (max-width:760px) { .panel-card { border-radius:18px; } }

/* Working global theme variants */
html[data-theme="light"] { color-scheme:light; --bg:#f5f9ff; --bg-deep:#eaf2fb; --ink:#122746; --muted:#6d84a5; --muted-strong:#405a7c; --line:#d6e4f3; --card:rgba(255,255,255,.94); --card-soft:#eef5fc; --navy:#102e58; --navy-2:#e7f1fc; --teal:#237ac1; --teal-dark:#1765a9; --shadow-small:0 12px 30px rgba(31,83,145,.10); }
html[data-theme="light"] body { background:radial-gradient(ellipse at 8% 0%,rgba(93,174,240,.13),transparent 30rem),#f5f9ff; color:var(--ink); }
html[data-theme="light"] body::before { opacity:.08; }
html[data-theme="light"] .sidebar { background:linear-gradient(180deg,#ffffff,#e7f1fc); border-right-color:#cbdced; box-shadow:10px 0 35px rgba(31,83,145,.08); }
html[data-theme="light"] .brand, html[data-theme="light"] .profile-chip b, html[data-theme="light"] .profile-chip, html[data-theme="light"] nav a, html[data-theme="light"] .sidebar-bottom a { color:#17365f; }
html[data-theme="light"] .profile-chip { background:rgba(255,255,255,.78); border-color:#cbdced; }
html[data-theme="light"] nav a:hover, html[data-theme="light"] nav a.active, html[data-theme="light"] .sidebar-bottom a:hover { color:#102b4f; background:linear-gradient(90deg,rgba(52,143,215,.13),rgba(110,88,187,.10)); }
html[data-theme="light"] .panel-card, html[data-theme="light"] .stat-card, html[data-theme="light"] .notice { background:rgba(255,255,255,.94); border-color:#d6e4f3; box-shadow:var(--shadow-small); }
html[data-theme="light"] .panel-card h2, html[data-theme="light"] .section-head h2, html[data-theme="light"] .topbar h1, html[data-theme="light"] .stat-card strong { color:#122746; }
html[data-theme="light"] input, html[data-theme="light"] select, html[data-theme="light"] textarea { color:#122746; background:#f7fbff; border-color:#cddded; }
html[data-theme="light"] .action-tile, html[data-theme="light"] .leaderboard-table-row { background:#f4f8fd; border-color:#d6e4f3; }
html[data-theme="light"] .status-pill, html[data-theme="light"] .soft-badge { color:#405a7c; background:#eef5fc; border-color:#d6e4f3; }
html[data-theme="light"] .top-member, html[data-theme="light"] .menu-button { color:#17365f; background:#fff; border-color:#cddded; }
html[data-theme="light"] .control-menu { color:#122746; background:#fff; border-color:#d0dfef; box-shadow:0 18px 45px rgba(31,83,145,.14); }
html[data-theme="light"] .control-menu button, html[data-theme="light"] .control-menu a { color:#405a7c; }
html[data-theme="light"] .control-menu button:hover, html[data-theme="light"] .control-menu button.active, html[data-theme="light"] .control-menu a:hover { color:#1765a9; background:#eef5fc; }
html[data-theme="light"] .wwar-auth { background:radial-gradient(ellipse at 10% 0%,rgba(102,183,237,.18),transparent 34%),linear-gradient(145deg,#f7fbff,#eaf3fc 55%,#f8fbff); color:#122746; }
html[data-theme="light"] .wwar-auth:before { opacity:.18; background:linear-gradient(145deg,#79c5ed,transparent); }
html[data-theme="light"] .wwar-auth:after { opacity:.13; background:linear-gradient(145deg,transparent,#9b8be4); }
html[data-theme="light"] .wwar-title, html[data-theme="light"] .wwar-title span, html[data-theme="light"] .wwar-welcome { color:#102b4f; }
html[data-theme="light"] .wwar-subtitle { color:#55769c; }
html[data-theme="light"] .wwar-card { background:rgba(255,255,255,.78); border-color:rgba(113,163,211,.35); box-shadow:0 25px 65px rgba(31,83,145,.14),inset 0 1px rgba(255,255,255,.9); }
html[data-theme="light"] .wwar-card label { color:#244a77; }
html[data-theme="light"] .wwar-card input, html[data-theme="light"] .wwar-card select { color:#17365f; background:rgba(255,255,255,.92); border-color:#cbdced; }
html[data-theme="light"] .wwar-card input::placeholder { color:#8ca3bf; }
html[data-theme="light"] .wwar-switch, html[data-theme="light"] .wwar-features { color:#5c789c; }
html[data-theme="light"] .wwar-contact-link { color:#244a77; background:rgba(255,255,255,.75); border-color:#c6d9eb; }
html[data-theme="light"] .wwar-auth-control > button { color:#315477; background:rgba(255,255,255,.78); border-color:#c6d9eb; }
html[data-theme="light"] .wwar-auth-control .control-menu { color:#17365f; background:#fff; border-color:#cbdced; }
html[data-theme="light"] .wwar-auth-control .control-menu button { color:#405a7c; }
html[data-theme="light"] .wwar-auth-control .control-menu button:hover, html[data-theme="light"] .wwar-auth-control .control-menu button.active { color:#1765a9; background:#eef5fc; }
@media (prefers-color-scheme:light) {
  html[data-theme="system"] { color-scheme:light; --bg:#f5f9ff; --bg-deep:#eaf2fb; --ink:#122746; --muted:#6d84a5; --muted-strong:#405a7c; --line:#d6e4f3; --card:rgba(255,255,255,.94); --card-soft:#eef5fc; --navy:#102e58; --navy-2:#e7f1fc; --teal:#237ac1; --teal-dark:#1765a9; --shadow-small:0 12px 30px rgba(31,83,145,.10); }
  html[data-theme="system"] body { background:#f5f9ff; color:#122746; }
  html[data-theme="system"] .wwar-auth { background:linear-gradient(145deg,#f7fbff,#eaf3fc 55%,#f8fbff); color:#122746; }
  html[data-theme="system"] .wwar-card { background:rgba(255,255,255,.78); }
  html[data-theme="system"] .wwar-card input, html[data-theme="system"] .wwar-card select { color:#17365f; background:rgba(255,255,255,.92); }
}

/* REST API developer surface and compact stock-bucket actions */
.developer-nav { gap: 10px !important; font-size: 13px !important; }
.developer-icon {
  display: inline-grid;
  place-items: center;
  min-width: 31px;
  height: 25px;
  padding: 0 4px;
  color: #9bd4fb;
  background: rgba(78, 154, 218, .18);
  border: 1px solid rgba(128, 198, 245, .28);
  border-radius: 7px;
  font-family: "DM Mono", monospace;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: -.12em;
}
.developer-nav.active .developer-icon, .developer-nav:hover .developer-icon { color: #fff; background: #347fc0; border-color: #73b9ee; }
.bucket-list { display: grid; gap: 8px; }
.bucket-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-width: 0;
  padding: 12px 13px;
  background: var(--card-soft);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.bucket-name { display: flex; align-items: center; gap: 10px; min-width: 0; }
.bucket-name b, .bucket-name small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bucket-name b { font-size: 12px; }
.bucket-name small { margin-top: 3px; color: var(--muted); font-size: 10px; }
.bucket-options { position: relative; flex: 0 0 auto; }
.bucket-options > summary { list-style: none; }
.bucket-options > summary::-webkit-details-marker { display: none; }
.bucket-options-trigger { display: inline-flex; align-items: center; gap: 6px; color: var(--teal-dark); background: rgba(50,156,148,.10); border-color: rgba(50,156,148,.22); }
.bucket-options-trigger .developer-icon { min-width: auto; width: 19px; height: 19px; padding: 0; color: currentColor; background: transparent; border: 0; font-size: 8px; }
.bucket-options-panel {
  position: absolute;
  z-index: 8;
  top: calc(100% + 7px);
  right: 0;
  display: grid;
  gap: 8px;
  width: min(330px, calc(100vw - 50px));
  padding: 12px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
}
.bucket-options-panel form { display: grid; gap: 8px; }
.bucket-edit-form { padding-bottom: 9px; border-bottom: 1px solid var(--line); }
.bucket-edit-form label { font-size: 9px; }
.bucket-edit-form input { padding: 8px 9px; font-size: 11px; }
.bucket-action { display: flex; align-items: center; width: 100%; padding: 9px 10px; color: var(--ink); background: transparent; border-radius: 8px; font-size: 10px; font-weight: 800; text-align: left; }
.bucket-action:hover { background: var(--card-soft); }
.bucket-action.danger { color: var(--red); }
.stock-details summary { cursor: pointer; color: var(--teal-dark); font-size: 10px; font-weight: 800; }

.api-hero { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 17px; padding: 25px 27px; color: #eef6ff; background: linear-gradient(125deg, #123e72, #31508f 57%, #60498f); border: 1px solid rgba(140, 202, 246, .28); border-radius: 17px; box-shadow: var(--shadow-small); }
.api-hero h2 { margin: 6px 0 7px; font-family: "Space Grotesk", sans-serif; font-size: clamp(21px, 3vw, 29px); letter-spacing: -.06em; }
.api-hero p:not(.eyebrow) { max-width: 620px; margin: 0; color: #c5dbf3; font-size: 12px; line-height: 1.65; }
.api-hero .eyebrow { color: #a7d4f6; }
.api-hero-mark { display: grid; place-items: center; width: 94px; height: 94px; flex: 0 0 auto; color: #bde5ff; background: rgba(255,255,255,.10); border: 1px solid rgba(191,226,250,.35); border-radius: 25px; font-family: "DM Mono", monospace; font-size: 23px; font-weight: 700; letter-spacing: -.16em; }
.api-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 17px; }
.api-token-reveal { border-color: rgba(70, 170, 125, .42); background: linear-gradient(145deg, rgba(25, 115, 101, .18), var(--card)); }
.api-token-reveal p { color: var(--muted-strong); line-height: 1.6; font-size: 11px; }
.api-token-value { display: flex; align-items: center; gap: 10px; padding: 12px; background: rgba(15, 30, 54, .65); border: 1px dashed rgba(128, 207, 180, .45); border-radius: 10px; }
.api-token-value code { min-width: 0; overflow: auto; color: #a9e6c9; font-family: "DM Mono", monospace; font-size: 11px; white-space: nowrap; }
.api-token-form { display: grid; gap: 10px; margin: 16px 0 18px; }
.api-token-list { display: grid; gap: 7px; }
.api-token-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 12px; background: var(--card-soft); border: 1px solid var(--line); border-radius: 10px; }
.api-token-row.revoked { opacity: .6; }
.api-token-row b, .api-token-row small { display: block; }
.api-token-row b { font-size: 11px; }
.api-token-row small { margin-top: 3px; color: var(--muted); font-size: 9px; }
.api-token-row small code { font-family: "DM Mono", monospace; }
.api-auth-note { display: grid; gap: 8px; margin: 17px 0; padding: 12px; background: var(--card-soft); border: 1px solid var(--line); border-radius: 10px; }
.api-auth-note b { font-size: 10px; }
.api-auth-note code { overflow: auto; color: var(--teal-dark); font-family: "DM Mono", monospace; font-size: 10px; white-space: nowrap; }
.api-download { display: inline-flex; width: 100%; justify-content: center; }
.api-docs-card { margin-top: 17px; }
.api-doc-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.api-doc { display: grid; gap: 10px; padding: 14px; background: var(--card-soft); border: 1px solid var(--line); border-radius: 11px; }
.api-doc > div { position: relative; padding-left: 45px; }
.api-doc h3 { margin: 0; font-family: "DM Mono", monospace; font-size: 12px; }
.api-doc p { margin: 5px 0 0; color: var(--muted); font-size: 10px; line-height: 1.55; }
.api-method { position: absolute; top: 0; left: 0; padding: 4px 5px; border-radius: 5px; font-family: "DM Mono", monospace; font-size: 8px; font-weight: 800; }
.api-method.get { color: #1f78b4; background: rgba(59, 160, 224, .14); }
.api-method.post { color: #17845f; background: rgba(56, 179, 126, .15); }
.api-curl { display: block; overflow: auto; padding: 9px 10px; color: var(--muted-strong); background: rgba(7, 20, 42, .72); border: 1px solid var(--line); border-radius: 7px; font-family: "DM Mono", monospace; font-size: 9px; line-height: 1.55; white-space: pre-wrap; word-break: break-word; }
.api-example-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.api-example { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: rgba(7, 20, 42, .54); }
.api-example summary { cursor: pointer; padding: 8px 10px; color: var(--muted-strong); font-size: 9px; font-weight: 800; letter-spacing: .02em; list-style: none; }
.api-example summary::-webkit-details-marker { display: none; }
.api-example summary::before { content: "＋"; display: inline-block; width: 15px; color: var(--teal); }
.api-example[open] summary::before { content: "−"; }
.api-example pre { max-height: 260px; margin: 0; overflow: auto; padding: 10px; border-top: 1px solid var(--line); }
.api-example code { display: block; color: #c9f2df; font-family: "DM Mono", monospace; font-size: 9px; line-height: 1.55; white-space: pre-wrap; word-break: break-word; }
.api-response-example { grid-column: 1 / -1; }
.api-response-example code { color: #cfe4ff; }
@media (max-width: 900px) { .api-grid, .api-doc-list { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .api-hero { align-items: flex-start; padding: 20px; } .api-hero-mark { width: 62px; height: 62px; border-radius: 17px; font-size: 16px; } .api-token-value { align-items: stretch; flex-direction: column; } .bucket-row { align-items: flex-start; } .api-example-grid { grid-template-columns: 1fr; } .api-response-example { grid-column: auto; } }

/* The light theme intentionally uses near-black text for readability. */
html[data-theme="light"] { --ink:#111418; --muted-strong:#252b31; }
html[data-theme="light"] body, html[data-theme="light"] .panel-card h2, html[data-theme="light"] .section-head h2, html[data-theme="light"] .topbar h1, html[data-theme="light"] .stat-card strong { color:#111418; }
html[data-theme="light"] .bucket-name b, html[data-theme="light"] .api-doc h3, html[data-theme="light"] .api-token-row b { color:#111418; }
@media (prefers-color-scheme:light) {
  html[data-theme="system"] { --ink:#111418; --muted-strong:#252b31; }
  html[data-theme="system"] body, html[data-theme="system"] .panel-card h2, html[data-theme="system"] .section-head h2, html[data-theme="system"] .topbar h1, html[data-theme="system"] .stat-card strong { color:#111418; }
}

@media (prefers-color-scheme:light) {
  html[data-theme="system"] body { background:radial-gradient(ellipse at 8% 0%,rgba(93,174,240,.13),transparent 30rem),#f5f9ff; color:#122746; }
  html[data-theme="system"] .sidebar { background:linear-gradient(180deg,#ffffff,#e7f1fc); border-right-color:#cbdced; }
  html[data-theme="system"] .brand, html[data-theme="system"] .profile-chip b, html[data-theme="system"] .profile-chip, html[data-theme="system"] nav a, html[data-theme="system"] .sidebar-bottom a { color:#17365f; }
  html[data-theme="system"] .profile-chip { background:rgba(255,255,255,.78); border-color:#cbdced; }
  html[data-theme="system"] .panel-card, html[data-theme="system"] .stat-card, html[data-theme="system"] .notice { background:rgba(255,255,255,.94); border-color:#d6e4f3; }
  html[data-theme="system"] .panel-card h2, html[data-theme="system"] .section-head h2, html[data-theme="system"] .topbar h1, html[data-theme="system"] .stat-card strong { color:#122746; }
  html[data-theme="system"] input, html[data-theme="system"] select, html[data-theme="system"] textarea { color:#122746; background:#f7fbff; border-color:#cddded; }
  html[data-theme="system"] .action-tile, html[data-theme="system"] .leaderboard-table-row { background:#f4f8fd; border-color:#d6e4f3; }
  html[data-theme="system"] .control-menu { color:#122746; background:#fff; border-color:#d0dfef; }
  html[data-theme="system"] .control-menu button, html[data-theme="system"] .control-menu a { color:#405a7c; }
}

/* Manager authenticator security */
.security-2fa-card { margin-top:18px; }
.security-2fa-card .status-pill { white-space:nowrap; }
.twofa-setup-box { display:grid; gap:10px; margin-top:16px; padding:16px; border:1px solid var(--line); border-radius:14px; background:var(--card-soft); }
.twofa-setup-box h3 { margin:0; color:var(--ink); font-size:14px; }
.twofa-setup-box p { margin:0; color:var(--muted); font-size:11px; line-height:1.55; }
.twofa-secret { display:block; padding:13px 15px; overflow:auto; color:var(--brand-primary,#237ac1); background:var(--card); border:1px dashed var(--brand-primary,#237ac1); border-radius:10px; font-family:"DM Mono",monospace; font-size:15px; letter-spacing:.12em; }
.twofa-uri { display:grid; gap:5px; }
.twofa-uri textarea { width:100%; resize:vertical; font-family:"DM Mono",monospace; font-size:9px; }
.security-disable-form { max-width:440px; margin-top:15px; }

.twofa-recovery-box { display:grid; gap:10px; margin:16px 0; padding:16px; border:1px solid rgba(234,180,72,.4); border-radius:14px; background:linear-gradient(145deg,rgba(234,180,72,.12),var(--card-soft)); }
.twofa-recovery-box h3 { margin:0; color:var(--ink); font-size:14px; }
.twofa-recovery-box p { margin:0; color:var(--muted); font-size:11px; line-height:1.55; }
.recovery-code-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:7px; }
.recovery-code-grid code { padding:9px 7px; color:var(--ink); background:var(--card); border:1px solid var(--line); border-radius:7px; text-align:center; font-family:"DM Mono",monospace; font-size:11px; letter-spacing:.04em; }
@media (max-width:500px) { .recovery-code-grid { grid-template-columns:1fr; } }

/* Refined account menu and support actions */
.account-menu { min-width:240px; padding:9px; border-radius:16px; }
.account-menu-label { padding:7px 10px 8px; color:var(--muted); font-family:"DM Mono",monospace; font-size:9px; letter-spacing:.12em; text-transform:uppercase; }
.account-menu a { min-height:42px; padding:8px 10px; border-radius:11px; }
.account-menu .menu-icon { display:grid; place-items:center; width:27px; height:27px; color:#69baf0; background:rgba(72,145,211,.14); border:1px solid rgba(101,180,235,.2); border-radius:9px; font-size:14px; }
.account-menu .menu-arrow { margin-left:auto; color:var(--muted); font-size:18px; line-height:1; }
.account-menu .menu-count { margin-left:auto; min-width:19px; padding:3px 6px; color:#fff; background:#4f91dc; border-radius:99px; text-align:center; font-size:9px; }
.account-menu .menu-count + .menu-arrow { margin-left:2px; }
.account-menu-divider { height:1px; margin:7px 3px; background:var(--line); }
.account-menu .menu-danger .menu-icon { color:#ee8790; background:rgba(220,76,91,.1); border-color:rgba(220,76,91,.2); }
.wwar-contact-link.whatsapp { color:#eafff4; background:linear-gradient(135deg,#168c58,#20b86f); border-color:rgba(92,220,156,.55); box-shadow:0 9px 22px rgba(20,153,92,.18); }
.wwar-contact-link.whatsapp:hover { color:#fff; background:linear-gradient(135deg,#117449,#19a960); }
.wwar-contact-link.telegram { color:#eff8ff; background:linear-gradient(135deg,#1676b9,#318ed8); border-color:rgba(109,190,247,.55); box-shadow:0 9px 22px rgba(30,124,192,.18); }
.wwar-contact-link.telegram:hover { color:#fff; background:linear-gradient(135deg,#125e98,#247cbe); }
.theme-control { z-index:100; }
.theme-control .theme-menu { z-index:120; min-width:150px; }

/* SMS history console and payment presentation */
.reports-head { margin-bottom:16px; }
.reports-console-card { min-height:calc(100dvh - 280px); }
.reports-feed { max-height:calc(100dvh - 345px); }
.report-line { display:grid; gap:11px; }
.report-line-top { display:flex; align-items:flex-start; justify-content:space-between; gap:12px; }
.report-status { display:inline-flex; align-items:center; padding:5px 8px; border:1px solid var(--line); border-radius:999px; font-family:"DM Mono",monospace; font-size:9px; font-weight:800; text-transform:uppercase; }
.report-status.status-success { color:#128252; background:rgba(20,170,111,.1); border-color:rgba(20,170,111,.25); }
.report-status.status-failed { color:#c44b59; background:rgba(220,76,91,.1); border-color:rgba(220,76,91,.25); }
.report-status.status-pending { color:#9a6c18; background:rgba(234,180,72,.11); border-color:rgba(234,180,72,.3); }
.report-otp-row { display:flex; align-items:center; justify-content:space-between; gap:18px; padding:11px 0; border-top:1px solid var(--line); border-bottom:1px solid var(--line); }
.report-label { display:block; margin-bottom:4px; color:var(--muted); font-family:"DM Mono",monospace; font-size:8px; letter-spacing:.1em; text-transform:uppercase; }
.report-otp-row .console-otp { display:block; }
.report-payment { min-width:150px; padding:8px 10px; background:rgba(20,170,111,.08); border:1px solid rgba(20,170,111,.2); border-radius:9px; text-align:right; }
.report-payment strong { display:block; color:#128252; font-size:13px; }
.report-payment small:last-child { display:block; margin-top:3px; color:var(--muted); font-size:8px; }
@media (max-width:600px) { .reports-head { display:block; } .reports-head .status-pill { display:inline-flex; margin-top:8px; } .report-otp-row { align-items:stretch; flex-direction:column; gap:10px; } .report-payment { min-width:0; text-align:left; } }

/* Screenshot-inspired navigation drawer and live Pakistan-time console clock. */
.sidebar {
  position: fixed;
  overflow: hidden;
}
.sidebar::after {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 3px;
  content: "";
  background: linear-gradient(180deg, #e54bdf, #6455f4 48%, #21b9ee);
  opacity: .72;
  pointer-events: none;
}
.sidebar nav {
  min-height: 0;
  gap: 5px;
  margin: 14px -3px 4px 0;
  padding: 0 3px 0 0;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(117, 176, 234, .38) transparent;
}
.sidebar nav a,
.sidebar-bottom a {
  min-height: 43px;
  gap: 11px;
  padding: 5px 9px;
  border-radius: 14px;
  font-size: 12px;
  font-weight: 800;
}
.sidebar nav a.active,
.sidebar nav a:hover,
.sidebar-bottom a:hover {
  color: #fff;
  background: linear-gradient(105deg, #8229e9 0%, #326cf2 54%, #18aee9 100%);
  box-shadow: 0 8px 20px rgba(43, 109, 229, .22);
}
.sidebar nav a.active { box-shadow: 0 8px 20px rgba(43, 109, 229, .24); }
.nav-icon {
  display: grid !important;
  place-items: center;
  width: 34px;
  height: 34px;
  min-width: 34px;
  flex: 0 0 34px;
  color: #fff !important;
  border: 1px solid rgba(255, 255, 255, .24);
  border-radius: 11px;
  box-shadow: inset 0 1px rgba(255, 255, 255, .24), 0 5px 12px rgba(16, 31, 86, .20);
  font-family: "Inter", sans-serif;
  font-size: 17px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0;
  transition: transform .18s ease, filter .18s ease;
}
.icon-home { background: linear-gradient(145deg, #a72cf0, #276df4); }
.icon-numbers { background: linear-gradient(145deg, #a339ec, #5d36dc); }
.icon-console { background: linear-gradient(145deg, #16c4ce, #2376ed); }
.icon-globe { background: linear-gradient(145deg, #16c69f, #087b9d); }
.icon-reports { background: linear-gradient(145deg, #f14bb6, #d62b83); }
.icon-earnings { background: linear-gradient(145deg, #378af7, #04b6d1); }
.icon-payment { background: linear-gradient(145deg, #cc38e8, #9838e9); }
.icon-leaderboard { background: linear-gradient(145deg, #ffbd50, #ef763e); }
.icon-operators { background: linear-gradient(145deg, #26c2c8, #3972ee); }
.icon-catalog { background: linear-gradient(145deg, #42d4bd, #1691b9); }
.icon-stock { background: linear-gradient(145deg, #3489f6, #35b9e9); }
.icon-users { background: linear-gradient(145deg, #a448ee, #5d65ec); }
.icon-settings { background: linear-gradient(145deg, #398af4, #1c67c9); }
.icon-design { background: linear-gradient(145deg, #e34ad1, #873df0); }
.icon-download, .icon-signout { background: linear-gradient(145deg, #299fda, #3969df); }
.sidebar nav a:hover .nav-icon { transform: translateY(-1px) scale(1.04); filter: saturate(1.12); }
.sidebar .live-dot { width: 8px; height: 8px; margin-left: auto; }
.sidebar-bottom { padding-top: 12px; }
.developer-nav {
  min-height: 58px !important;
  margin-top: 7px;
  padding: 9px 11px !important;
  border: 1px solid rgba(119, 176, 244, .5);
  border-radius: 17px !important;
  background: linear-gradient(100deg, rgba(112, 51, 225, .18), rgba(31, 139, 241, .14));
  color: #d9eaff !important;
  font-size: 13px !important;
}
.developer-nav .developer-icon {
  width: 36px;
  height: 36px;
  min-width: 36px;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(145deg, #b546ea, #356cf0);
}
.developer-nav.active,
.developer-nav:hover {
  color: #fff !important;
  border-color: #75b8ff;
  background: linear-gradient(100deg, #792be1, #168ee8);
}
.menu-button {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  border-radius: 12px;
}
.menu-button span,
.menu-button::before,
.menu-button::after {
  width: 4px;
  height: 4px;
  margin: 0;
  content: "";
  background: #fff;
  border-radius: 50%;
}
html[data-theme="light"] .menu-button span,
html[data-theme="light"] .menu-button::before,
html[data-theme="light"] .menu-button::after { background: #2879e5; }
.nav-collapsed .sidebar nav > a > span:not(.nav-icon):not(.developer-icon) { display: none; }
.nav-collapsed .sidebar nav > a > .developer-icon,
.nav-collapsed .sidebar .sidebar-bottom .nav-icon { display: grid !important; }
.nav-collapsed .sidebar nav .live-dot { display: none; }

.console-clock {
  align-items: center;
  gap: 15px;
  min-width: 0;
}
.console-clock .console-clock-live {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  color: #1679c7;
  background: linear-gradient(145deg, #e1f4ff, #d6e5ff);
  border: 1px solid rgba(60, 143, 214, .16);
  border-radius: 13px;
  font-family: "DM Mono", monospace;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .04em;
}
.console-clock-copy { flex: 1 1 180px; min-width: 150px; }
.console-clock-copy b { margin-bottom: 5px; font-size: 14px; }
.console-clock-copy small { font-size: 11px; }
.console-clock-time {
  display: grid;
  justify-items: end;
  gap: 3px;
  min-width: 174px;
  padding: 9px 13px;
  color: var(--ink);
  background: var(--card-soft);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.console-clock-time small {
  color: var(--muted);
  font-family: "DM Mono", monospace;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .08em;
}
.console-clock-time strong {
  color: var(--ink);
  font-family: "DM Mono", monospace;
  font-size: clamp(19px, 2.2vw, 25px);
  font-variant-numeric: tabular-nums;
  letter-spacing: .02em;
  line-height: 1.2;
  white-space: nowrap;
}
.console-clock-time time { color: var(--muted); font-size: 9px; }
.console-clock-only { display:flex; justify-content:center; align-items:center; min-height:44px; margin:0 0 14px; }
.console-clock-only strong { color:#16c784; font-family:"DM Mono",monospace; font-size:clamp(22px,3vw,32px); font-variant-numeric:tabular-nums; letter-spacing:.04em; line-height:1; text-shadow:0 0 14px rgba(22,199,132,.3); }
@media (max-width: 760px) {
  .sidebar { padding: 20px 14px 15px; }
  .sidebar nav { margin-top: 11px; }
  .console-clock { align-items: flex-start; flex-wrap: wrap; }
  .console-clock-copy { min-width: calc(100% - 64px); }
  .console-clock-time { justify-items: start; margin-left: 57px; }
}

/* Centralized PNG service icons */
.service-logo-image { display: inline-block; width: 32px; height: 32px; flex: 0 0 auto; object-fit: cover; border-radius: 10px; vertical-align: middle; }
.service-logo > .service-logo-image { display: block; width: 100%; height: 100%; border-radius: inherit; object-fit: cover; }
.service-logo-image.small { width: 24px; height: 24px; border-radius: 7px; }
.service-logo-image.tiny { width: 22px; height: 22px; border-radius: 7px; }
.console-service { display: flex; align-items: center; gap: 8px; }
.console-service .service-logo-image { width: 34px; height: 34px; border-radius: 9px; object-fit: cover; }
.catalog-item .service-logo-image { margin-right: 3px; }

/* Manager dashboard insights */
.manager-hero { border-color: color-mix(in srgb, var(--teal) 35%, var(--line)); }
.manager-insights { display: grid; grid-template-columns: minmax(0, 1.25fr) repeat(2, minmax(260px, 1fr)); gap: 13px; margin: 0 0 21px; }
.manager-insight-card { position: relative; overflow: hidden; min-width: 0; padding: 20px; background: var(--card); border: 1px solid var(--line); border-radius: 17px; box-shadow: var(--shadow-small); }
.manager-insight-card::after { position: absolute; right: -34px; bottom: -42px; width: 120px; height: 120px; content: ""; background: color-mix(in srgb, var(--teal) 11%, transparent); border-radius: 50%; pointer-events: none; }
.manager-sms-card { background: linear-gradient(145deg, color-mix(in srgb, var(--teal) 10%, var(--card)), var(--card)); }
.manager-approved-card { background: linear-gradient(145deg, color-mix(in srgb, var(--green) 10%, var(--card)), var(--card)); }
.manager-balance-card { background: linear-gradient(145deg, color-mix(in srgb, var(--coral) 9%, var(--card)), var(--card)); }
.manager-insight-heading { position: relative; z-index: 1; display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.manager-insight-heading h2 { margin: 3px 0 0; color: var(--ink); font-family: "Space Grotesk", sans-serif; font-size: 19px; letter-spacing: -.04em; }
.insight-icon { display: grid; flex: 0 0 auto; place-items: center; width: 34px; height: 34px; color: var(--teal-dark); background: color-mix(in srgb, var(--teal) 13%, transparent); border: 1px solid color-mix(in srgb, var(--teal) 24%, var(--line)); border-radius: 11px; font-size: 17px; font-weight: 900; }
.insight-icon.success { color: var(--green); background: color-mix(in srgb, var(--green) 14%, transparent); border-color: color-mix(in srgb, var(--green) 25%, var(--line)); }
.insight-icon.wallet { color: var(--coral); background: color-mix(in srgb, var(--coral) 13%, transparent); border-color: color-mix(in srgb, var(--coral) 25%, var(--line)); }
.period-metrics { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 22px; }
.period-metrics > div, .currency-metric { padding: 11px 10px; background: color-mix(in srgb, var(--card-soft) 68%, transparent); border: 1px solid color-mix(in srgb, var(--line) 82%, transparent); border-radius: 11px; }
.period-metrics span, .currency-metric span { display: block; color: var(--muted); font-size: 9px; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; }
.period-metrics strong { display: block; margin-top: 7px; color: var(--ink); font-family: "Space Grotesk", sans-serif; font-size: 25px; letter-spacing: -.06em; }
.period-metrics small, .currency-metric small { display: block; margin-top: 3px; color: var(--muted); font-size: 9px; }
.insight-caption { position: relative; z-index: 1; min-height: 29px; margin: 12px 0 14px; color: var(--muted); font-size: 10px; line-height: 1.45; }
.currency-metrics { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.currency-metric strong { display: block; margin-top: 6px; color: var(--ink); font-family: "Space Grotesk", sans-serif; font-size: clamp(19px, 2vw, 26px); letter-spacing: -.06em; overflow-wrap: anywhere; }
@media (max-width: 1250px) { .manager-insights { grid-template-columns: 1fr 1fr; } .manager-sms-card { grid-column: 1 / -1; } }
@media (max-width: 760px) { .manager-insights { grid-template-columns: 1fr; gap: 10px; } .manager-sms-card { grid-column: auto; } .manager-insight-card { padding: 16px; } .period-metrics { gap: 6px; } .period-metrics > div { padding: 9px 7px; } .period-metrics strong { font-size: 21px; } }

/* Six balanced user-dashboard metrics */
.dashboard-stats { grid-template-columns: repeat(6, minmax(0, 1fr)); }
@media (max-width: 1250px) { .dashboard-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) { .dashboard-stats { grid-template-columns: 1fr; } }

/* WORK WITH AR — shared emerald security theme for user and manager workspaces. */
:root {
  --bg: #eef8f1;
  --bg-deep: #e3f2e8;
  --ink: #10251a;
  --muted: #557564;
  --muted-strong: #315c40;
  --line: #c9dfcf;
  --card: #ffffff;
  --card-soft: #f3faf5;
  --navy: #0b2415;
  --navy-2: #123d23;
  --teal: #20bd6b;
  --teal-dark: #087b43;
  --coral: #1fae64;
  --amber: #a97419;
  --green: #0d9b58;
  --red: #b73f50;
  --shadow: 0 24px 64px rgba(32, 104, 57, .14);
  --shadow-small: 0 10px 28px rgba(32, 104, 57, .10);
}
html[data-theme="dark"] {
  --bg: #061009;
  --bg-deep: #08170d;
  --ink: #effff3;
  --muted: #9abda5;
  --muted-strong: #c3e4cb;
  --line: #234b30;
  --card: #0d1b11;
  --card-soft: #11271a;
  --navy: #061009;
  --navy-2: #0d2c18;
  --teal: #4bea91;
  --teal-dark: #78f3a8;
  --coral: #69ed9b;
  --amber: #e3b968;
  --green: #5be89a;
  --red: #ff8290;
  --shadow: 0 24px 64px rgba(0,0,0,.34);
  --shadow-small: 0 10px 28px rgba(0,0,0,.26);
}
@media (prefers-color-scheme: dark) {
  html[data-theme="system"] {
    --bg: #061009; --bg-deep: #08170d; --ink: #effff3; --muted: #9abda5;
    --muted-strong: #c3e4cb; --line: #234b30; --card: #0d1b11; --card-soft: #11271a;
    --navy: #061009; --navy-2: #0d2c18; --teal: #4bea91; --teal-dark: #78f3a8;
    --coral: #69ed9b; --amber: #e3b968; --green: #5be89a; --red: #ff8290;
    --shadow: 0 24px 64px rgba(0,0,0,.34); --shadow-small: 0 10px 28px rgba(0,0,0,.26);
  }
}
body {
  color: var(--ink);
  background: radial-gradient(circle at 0% 0%, rgba(54,214,123,.12), transparent 26rem), radial-gradient(circle at 100% 100%, rgba(26,151,82,.10), transparent 25rem), var(--bg);
}
body::before { background-image: radial-gradient(rgba(25,145,76,.15) .6px, transparent .6px); }
.sidebar { background: radial-gradient(circle at 100% 12%, rgba(61,224,128,.16), transparent 16rem), linear-gradient(180deg,#07140b 0%,#0b2514 58%,#07170c 100%); box-shadow:14px 0 40px rgba(5,32,16,.18); }
.brand em { color:#72f2a0; }
.profile-chip { border-color:rgba(117,238,158,.22); }
.profile-chip:hover,.profile-chip:focus-visible { background:rgba(57,214,119,.14); }
.avatar,.top-avatar { background:linear-gradient(145deg,#16b969,#8dfbb1); color:#082012; }
.profile-menu { background:#123d23; border-color:rgba(135,246,169,.25); }
.profile-menu a:hover { background:rgba(92,225,139,.15); }
.menu-glyph,.nav-mark { color:#70efa0; }
nav a,.sidebar-bottom a { color:#b7d8c0; }
nav a:hover,nav a.active,.sidebar-bottom a:hover { color:#f3fff6; background:linear-gradient(90deg,rgba(49,204,111,.24),rgba(44,130,72,.16)); }
nav a.active { box-shadow:inset 3px 0 #55e995; }
.menu-button { background:#e8f6ec; border-color:#c5dfcb; }
.menu-button span,.menu-button::before,.menu-button::after { background:#087b43; }
.notice,.stat-card,.panel-card { border-color:var(--line); box-shadow:var(--shadow-small); }
.notice > span,.country-icon { color:var(--teal-dark); background:rgba(32,189,107,.12); }
.stat-card::after { background:rgba(32,189,107,.10); }
.primary { background:linear-gradient(100deg,#1cbd69,#5dea96 55%,#b0ffc2); color:#06150a; box-shadow:0 9px 20px rgba(30,194,105,.20); }
.primary:hover { filter:brightness(1.06); }
.secondary { color:var(--teal-dark); background:rgba(32,189,107,.10); border-color:rgba(32,189,107,.25); }
.action-tile:hover,.tiny:hover { border-color:var(--teal); }
.action-tile b,.text-link,.stat-card small a { color:var(--teal-dark); }
.result-box { background:rgba(21,155,89,.11); }
.topbar-brand em { color:var(--coral); }
.header-icon { color:var(--muted-strong); background:var(--card); border-color:var(--line); }
.header-icon:hover,.header-icon:focus-visible { color:var(--teal-dark); border-color:var(--teal); }

/* Explicit light-mode readability: no pale text on light surfaces. */
html[data-theme="light"] body { color:#10251a; background:radial-gradient(circle at 0% 0%,rgba(54,214,123,.12),transparent 26rem),#eef8f1; }
html[data-theme="light"] .main,html[data-theme="light"] .topbar,html[data-theme="light"] .panel-card,html[data-theme="light"] .notice,html[data-theme="light"] .stat-card { color:#10251a; }
html[data-theme="light"] .sidebar { background:linear-gradient(180deg,#f7fcf8,#e8f5eb); box-shadow:10px 0 32px rgba(32,104,57,.12); }
html[data-theme="light"] .brand,html[data-theme="light"] .brand span,html[data-theme="light"] .sidebar h1 { color:#10251a; }
html[data-theme="light"] nav a,html[data-theme="light"] .sidebar-bottom a { color:#214c31; }
html[data-theme="light"] nav a:hover,html[data-theme="light"] nav a.active,html[data-theme="light"] .sidebar-bottom a:hover { color:#0b351b; background:rgba(32,189,107,.12); }
html[data-theme="light"] nav a.active { box-shadow:inset 3px 0 #159b58; }
html[data-theme="light"] .menu-glyph,html[data-theme="light"] .nav-mark { color:#087b43; }
html[data-theme="light"] .profile-menu { background:#fff; border-color:#bdd9c5; }
html[data-theme="light"] .profile-menu a { color:#214c31; }
html[data-theme="light"] .profile-menu a:hover { background:#eaf8ee; }
html[data-theme="light"] .topbar-brand,html[data-theme="light"] .topbar-title h1,html[data-theme="light"] .topbar-title p { color:#10251a; }
html[data-theme="light"] .section-head h2,html[data-theme="light"] .panel-card h2,html[data-theme="light"] .stat-card strong,html[data-theme="light"] .manager-insight-card h2 { color:#10251a; }
html[data-theme="light"] .muted,html[data-theme="light"] .field-help,html[data-theme="light"] .eyebrow,html[data-theme="light"] small { color:#557564; }
html[data-theme="light"] label { color:#214c31; }
html[data-theme="light"] input,html[data-theme="light"] select,html[data-theme="light"] textarea { color:#10251a; background:#fbfffc; border-color:#bdd9c5; }
html[data-theme="light"] input::placeholder,html[data-theme="light"] textarea::placeholder { color:#789383; }
html[data-theme="light"] .soft-badge,html[data-theme="light"] .status-pill,html[data-theme="light"] .theme-toggle { color:#285b3b; background:#f3faf5; border-color:#c9dfcf; }
html[data-theme="light"] .header-icon { color:#214c31; background:#fff; border-color:#bdd9c5; }
html[data-theme="light"] .notice,html[data-theme="light"] .stat-card,html[data-theme="light"] .panel-card,.html[data-theme="light"] .action-tile { background:#fff; }
html[data-theme="light"] .action-tile b,html[data-theme="light"] .text-link,html[data-theme="light"] .stat-card small a { color:#087b43; }
html[data-theme="light"] .table-wrap th,html[data-theme="light"] table th { color:#214c31; background:#edf8f0; }
html[data-theme="light"] .table-wrap td,html[data-theme="light"] table td { color:#10251a; border-color:#d6e8da; }
html[data-theme="light"] .primary { color:#06150a; }


/* Final light-mode readability for home and user dashboard blocks. */
html[data-theme="light"] .dashboard-hero h2,
html[data-theme="light"] .dashboard-hero p,
html[data-theme="light"] .dashboard-period-note,
html[data-theme="light"] .volume-head h2,
html[data-theme="light"] .volume-head p,
html[data-theme="light"] .volume-summary,
html[data-theme="light"] .volume-summary b,
html[data-theme="light"] .volume-summary small,
html[data-theme="light"] .dashboard-stat,
html[data-theme="light"] .dashboard-stat span,
html[data-theme="light"] .dashboard-stat strong,
html[data-theme="light"] .dashboard-stat small,
html[data-theme="light"] .dashboard-finance,
html[data-theme="light"] .dashboard-finance span,
html[data-theme="light"] .dashboard-finance strong,
html[data-theme="light"] .dashboard-finance small,
html[data-theme="light"] .dashboard-action,
html[data-theme="light"] .dashboard-action b,
html[data-theme="light"] .dashboard-action small,
html[data-theme="light"] .dashboard-action-arrow { color:#10251a; }
html[data-theme="light"] .dashboard-stat,
html[data-theme="light"] .dashboard-finance > div,
html[data-theme="light"] .dashboard-action { background:#ffffff; border-color:#c9dfcf; }
html[data-theme="light"] .dashboard-stat small,
html[data-theme="light"] .dashboard-finance small,
html[data-theme="light"] .dashboard-period-note,
html[data-theme="light"] .volume-head p { color:#315c40; }
html[data-theme="light"] .dashboard-stat strong,
html[data-theme="light"] .dashboard-finance strong { color:#0b351b; }
html[data-theme="light"] .dashboard-stat strong em,
html[data-theme="light"] .dashboard-finance strong em { color:#315c40; }
html[data-theme="light"] .dashboard-action-icon { color:#0b351b; background:#e8f7ed; }
html[data-theme="light"] .landing-page,
html[data-theme="light"] .landing-page .brand,
html[data-theme="light"] .landing-page .landing-hero h1,
html[data-theme="light"] .landing-page .landing-hero > p:not(.eyebrow),
html[data-theme="light"] .landing-page .landing-stat,
html[data-theme="light"] .landing-page .landing-stat span,
html[data-theme="light"] .landing-page .landing-stat strong,
html[data-theme="light"] .landing-page .landing-stat small { color:#10251a; }
html[data-theme="light"] .landing-page .landing-hero h1 span,
html[data-theme="light"] .landing-page .text-link { color:#087b43; }
html[data-theme="light"] .landing-page .landing-stat { background:#ffffff; border-color:#c9dfcf; }
html[data-theme="light"] .landing-page .landing-stat small,
html[data-theme="light"] .landing-page .landing-hero > p:not(.eyebrow) { color:#315c40; }

/* Manager Template Management: live global theme application. */
body { font-family: var(--panel-font, "Inter"), system-ui, sans-serif; }
.primary, .wwar-submit { background: var(--brand-primary, #087cff); }
.secondary, .text-link, .nav-mark, .menu-glyph, .leaderboard-table-row strong { color: var(--brand-accent, #08a879); }
.pst-clock-card, .my-position-card { background: var(--brand-gradient, linear-gradient(135deg, #087cff, #7047e8)); }
.menu-button span, .menu-button::before, .menu-button::after { background: var(--brand-primary, #087cff); }
nav a:hover, nav a.active, .sidebar-bottom a:hover { background: color-mix(in srgb, var(--brand-primary, #087cff) 18%, transparent); }
nav a.active { box-shadow: inset 3px 0 var(--brand-accent, #08a879); }
input:focus, select:focus, textarea:focus { border-color: var(--brand-primary, #087cff); }
.theme-preset:hover { border-color: var(--brand-primary, #087cff); }
html, body, button, input, select, textarea { font-family: var(--panel-font, "Inter"), system-ui, sans-serif; }
