/* =====================================================================
   AdRewards — 3.47 design refinement layer (loaded LAST).
   Same brand colours (gold #e8b93c on near-black / light grey). What changes is discipline:
   · one calm elevation: borders carry structure, shadows only for things that float
   · one radius scale (8 / 12 / 16 / 20) instead of 11–28 px everywhere
   · buttons that do not jump or glow, a visible keyboard focus ring everywhere
   · motion shortened (no 22 px slide-ins, no tile wobble)
   · numbers never flip in Arabic (bidi isolation), tabular digits only where numbers are compared
   · the member area: grouped sidebar, no duplicate page titles, compact shortcuts on phones only
   ===================================================================== */
:root {
  --r-lg: 20px;
  --r: 16px;
  --r-sm: 12px;
  --r-xs: 8px;
  --shadow: 0 1px 2px rgba(16, 20, 28, .04), 0 1px 3px rgba(16, 20, 28, .04);
  --shadow-float: 0 4px 10px rgba(16, 20, 28, .05), 0 14px 32px rgba(16, 20, 28, .09);
  --focus: 0 0 0 3px rgba(232, 185, 60, .45);
}

/* ---------------------------------------------------------------- type */
body { text-rendering: optimizeLegibility; }
h1, h2, h3 { letter-spacing: -.018em; }
.page-head { margin: 6px 0 22px; }
.page-head h1 { font-size: 26px; font-weight: 700; letter-spacing: -.022em; }
.page-head p { font-size: 14.5px; max-width: 64ch; }
.card h3 { font-size: 17px; font-weight: 650; }
.eyebrow { font-size: 11.5px; letter-spacing: .1em; }
::selection { background: rgba(232, 185, 60, .32); }

/* numbers: keep their own direction inside Arabic sentences, digits line up where they are compared */
.tabular, .balance-big, .amount-pos, .amount-neg, .stat-tile b, .stat-cell b, .kpi b, .ph-bal, .balance-pill { unicode-bidi: isolate; font-variant-numeric: tabular-nums; }
.balance-row .sub, .card-dark .sub { unicode-bidi: plaintext; }

/* ---------------------------------------------------------------- focus (keyboard users) */
:where(a, button, input, select, textarea, [tabindex]):focus-visible { outline: none; box-shadow: var(--focus); }
.side-link:focus-visible, .bottom-nav a:focus-visible { box-shadow: inset 0 0 0 2px rgba(232, 185, 60, .7); }

/* ---------------------------------------------------------------- buttons */
.btn { border-radius: var(--r-sm); font-weight: 600; letter-spacing: -.005em; transition: background .18s, color .18s, box-shadow .18s, border-color .18s, transform .12s; }
.btn:hover { transform: none; }
.btn:active { transform: scale(.98); }
.btn-sm { border-radius: 10px; }
.btn-lg { border-radius: 14px; }
.btn-gold { box-shadow: 0 1px 0 rgba(255, 255, 255, .35) inset, 0 1px 2px rgba(122, 90, 6, .25); }
.btn-gold:hover { background: #eec653; box-shadow: 0 1px 0 rgba(255, 255, 255, .35) inset, 0 4px 12px rgba(232, 185, 60, .30); }
.btn-dark:hover { box-shadow: none; }
.btn-ghost:hover { background: #fff; border-color: #c9ced8; }
.icon-btn { border-radius: 10px; }

/* ---------------------------------------------------------------- surfaces */
.card { border-radius: var(--r-lg); box-shadow: var(--shadow); }
.card-tight { border-radius: var(--r); }
.card-dark { border-radius: var(--r-lg); box-shadow: 0 10px 30px rgba(31, 35, 44, .18); }
.stat-tile { border-radius: var(--r); }
.badge { font-weight: 600; letter-spacing: 0; }
.pill { font-weight: 600; }

/* ---------------------------------------------------------------- forms */
.input, .select, .textarea { border-radius: var(--r-sm); background: #fff; }
.input:hover, .select:hover, .textarea:hover { border-color: #c9ced8; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--gold); box-shadow: var(--focus); }
.input.mono::placeholder { font-family: var(--font); letter-spacing: 0; }
.segmented { border-radius: var(--r-sm); }

/* ---------------------------------------------------------------- motion: shorter and quieter */
.reveal { transform: translateY(10px); transition-duration: .5s; }
.stagger > * { animation-duration: .38s; }
.quick-tile:hover i { transform: none; }
.way:hover, .offer-card:hover, .quick-tile:hover { transform: translateY(-2px); }

/* ---------------------------------------------------------------- public site */
.store-soon { opacity: 1 !important; background: transparent !important; color: var(--ink) !important; border: 1px dashed #b9bfca; box-shadow: none !important; }
.cta-band .store-soon, .section-dark .store-soon { color: #fff !important; border-color: rgba(255, 255, 255, .35); }
.store-soon small { opacity: .65; }
.store-soon svg { filter: saturate(.85); }
.footer .logo { display: inline-flex; align-items: center; color: var(--ink); }
.faq-item { border-radius: var(--r); }
.method-logo { border-radius: var(--r-sm); }
.coin-mark { font-size: 20px; font-weight: 800; line-height: 1; font-style: normal; }

/* ---------------------------------------------------------------- member area */
/* sidebar: grouped */
.sidebar .side-sep { margin: 18px 12px 6px; font-size: 10.5px; letter-spacing: .12em; font-weight: 600; color: rgba(255, 255, 255, .34); }
.sidebar .side-nav > .side-sep:first-child { margin-top: 4px; }
.side-link { padding: 9px 12px; border-radius: 10px; font-size: 14.5px; }
.side-link svg { width: 19px; height: 19px; }
.side-link.active::before { width: 3px; }

/* the page title is already in the page itself on wide screens: no second copy in the top bar */
@media (min-width: 901px) {
  .main:has(.page-head) .topbar-title { visibility: hidden; }
  .home-grid .quick {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
  }
  .home-grid .quick-tile {
    padding: 14px 12px;
    border-radius: 16px;
  }
}
.topbar-title { font-size: 20px; letter-spacing: -.02em; }

/* dashboard shortcuts (phones): one tidy row of icons, no sub-lines */
@media (max-width: 900px) {
  .quick { display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; margin-inline: -16px; padding: 2px 16px; }
  .quick::-webkit-scrollbar { display: none; }
  .quick > * { flex: 0 0 84px; scroll-snap-align: start; }
  .quick-tile { padding: 12px 4px 10px; border-radius: 14px; gap: 7px; box-shadow: none; }
  .quick-tile i { width: 40px; height: 40px; border-radius: 12px; }
  .quick-tile svg { width: 20px; height: 20px; }
  .quick-tile strong { font-size: 12px; font-weight: 600; line-height: 1.2; }
  .quick-tile small { display: none; }
  .quick-tile .dot { top: 8px; inset-inline-end: 8px; }
  .bottom-nav { box-shadow: 0 -6px 20px rgba(16, 20, 28, .05); }
}

/* lists & activity */
.list-row { padding: 12px 0; }
.list-ico { border-radius: 10px; }
.weekbars { height: 150px; }
.weekbars .wb-bar { border-radius: 6px; }
.stat-tiles .stat-tile { box-shadow: none; }

/* payout method buttons: compact, clear selected state */
.method { border-radius: var(--r); transition: border-color .15s, box-shadow .15s, background .15s; }
.method.selected { border-color: var(--gold); box-shadow: var(--focus); background: #fffdf6; }

/* toasts and modals: one elevation */
.toast { border-radius: var(--r-sm); box-shadow: var(--shadow-float); }
.modal { border-radius: var(--r-lg); box-shadow: 0 24px 60px rgba(16, 20, 28, .22); }

/* ---------------------------------------------------------------- admin panel (under .admin-ui only) */
/* tabular digits only where numbers are, not on every letter (Rubik's tabular brackets looked spaced: « ( 7 days ) ») */
.admin-ui { font-feature-settings: normal; }
.admin-ui .tabular, .admin-ui .table td, .admin-ui .kpi b, .admin-ui .num { font-feature-settings: "tnum" 1; }
.admin-ui .table th.num, .admin-ui .table td.num { text-align: end; }
.admin-ui .side-sep { color: rgba(255, 255, 255, .42); }
.u-cell { display: flex; align-items: center; gap: 10px; min-width: 0; }
.u-av { width: 32px; height: 32px; flex: none; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 700; background: #eef0f4; color: #3c4452; border: 1px solid #e3e6ec; }
.u-av-ban { background: var(--red-soft); color: var(--red); border-color: #f6caca; }
.u-av-rev { background: var(--orange-soft); color: var(--orange); border-color: #f6d9b6; }

/* print: legal pages and receipts print cleanly */
@media print {
  .nav, .sidebar, .topbar, .bottom-nav, .footer, .toaster { display: none !important; }
  .card, .card-dark { box-shadow: none !important; border: 1px solid #ddd; }
  .reveal { opacity: 1 !important; transform: none !important; }
}

/* dashboard: two balanced columns on a computer; one column on tablets/phones keeps the old order (missions after the flash code) */
@media (max-width: 1080px) {
  .home-grid > .stack { display: contents; }
  .home-grid > .stack:last-child > * { order: 3; }
  .home-grid .__homemis { order: 4; }
  .home-grid > .stack:last-child > :last-child { order: 5; }
  .home-grid .weekbars { height: 120px; }
}
/* admin status chips read as words, not codes */
.admin-ui .table .badge { text-transform: capitalize; }

/* =====================================================================
   3.49 — Executive SaaS Admin Panel & Web Dashboard Upgrade
   Transforms the flat .admin-ui into a rich, modern executive console
   (Stripe / Linear / Vercel inspired design system)
   ===================================================================== */
.admin-ui {
  --p-bg: #f3f5fa;
  --p-card: #ffffff;
  --p-sunken: #f8fafd;
  --p-line: #e2e8f0;
  --p-line-2: #cbd5e1;
  --p-row: #f1f5f9;
  --p-ink: #0f172a;
  --p-ink-2: #334155;
  --p-muted: #64748b;
  --p-gold: #e8b93c;
  --p-shadow: 0 1px 3px rgba(15, 23, 42, .04), 0 6px 20px rgba(15, 23, 42, .035);
  --p-shadow-up: 0 6px 14px rgba(15, 23, 42, .06), 0 18px 40px rgba(15, 23, 42, .09);
  --a-radius: 16px;
  --a-radius-sm: 10px;
  --a-pad: 22px;
  --a-gap: 18px;
}

.admin-ui.shell {
  grid-template-columns: 262px minmax(0, 1fr);
}
@media (max-width: 900px) {
  .admin-ui.shell {
    grid-template-columns: minmax(0, 1fr);
  }
}

.admin-ui .main {
  background: radial-gradient(1200px 420px at 50% -140px, rgba(232, 185, 60, .09), rgba(59, 130, 246, .04) 45%, transparent 75%),
              var(--p-bg);
}

/* ---------------- Executive Obsidian Sidebar ---------------- */
.admin-ui .sidebar {
  width: 262px;
  padding: 20px 14px 16px;
  background: radial-gradient(circle at 15% 0%, rgba(232, 185, 60, .11), transparent 40%),
              linear-gradient(180deg, #0b0e14 0%, #111622 100%);
  border-inline-end: 1px solid rgba(255, 255, 255, .07);
  box-shadow: 4px 0 28px rgba(10, 14, 22, .14);
}
[dir="rtl"] .admin-ui .sidebar {
  box-shadow: -4px 0 28px rgba(10, 14, 22, .14);
}
.admin-ui .sidebar .logo {
  padding: 4px 10px 16px;
  font-size: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, .06);
  margin-bottom: 10px;
}
.admin-ui .sidebar input.side-search {
  height: 38px;
  margin: 4px 0 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, .055);
  border: 1px solid rgba(255, 255, 255, .1);
  color: #f8fafc;
  font-size: 13px;
  padding: 0 12px;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, .2);
}
.admin-ui .sidebar input.side-search:focus {
  background: rgba(255, 255, 255, .09);
  border-color: rgba(232, 185, 60, .65);
  box-shadow: 0 0 0 3px rgba(232, 185, 60, .18);
}
.admin-ui .side-sep-btn {
  margin: 14px 0 3px;
  padding: 6px 10px;
  font-size: 11px;
  letter-spacing: .12em;
  color: rgba(255, 255, 255, .42);
  font-weight: 700;
}
html[dir="rtl"] .admin-ui .side-sep-btn {
  font-size: 12px;
  letter-spacing: 0;
}
.admin-ui .side-link {
  padding: 9.5px 12px;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 500;
  color: rgba(255, 255, 255, .68);
  transition: background .18s ease, color .18s ease, transform .15s ease;
}
.admin-ui .side-link:hover {
  background: rgba(255, 255, 255, .07);
  color: #fff;
}
.admin-ui .side-link.active {
  background: linear-gradient(90deg, rgba(232, 185, 60, .22) 0%, rgba(232, 185, 60, .05) 100%);
  color: #fde088;
  font-weight: 600;
  box-shadow: inset 0 0 0 1px rgba(232, 185, 60, .24);
}
.admin-ui .side-link.active svg {
  color: #f6c94c;
  opacity: 1;
  filter: drop-shadow(0 0 6px rgba(232, 185, 60, .45));
}
.admin-ui .side-link.active::before {
  width: 3.5px;
  top: 7px;
  bottom: 7px;
  border-radius: 4px;
  background: linear-gradient(180deg, #fce08b, #e8b93c);
  box-shadow: 0 0 10px rgba(232, 185, 60, .65);
}
.admin-ui .side-link .count {
  background: linear-gradient(135deg, #f8d46c, #e8b93c);
  color: #161204;
  font-weight: 800;
  box-shadow: 0 2px 6px rgba(232, 185, 60, .35);
}
.admin-ui .side-foot {
  margin-top: 12px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, .08);
}

/* ---------------- Top Command Bar & Breadcrumb ---------------- */
@media (min-width: 901px) {
  .admin-ui .topbar {
    position: sticky;
    top: 0;
    z-index: 35;
    min-height: 60px;
    padding: 10px 30px;
    background: rgba(255, 255, 255, .82);
    backdrop-filter: saturate(1.8) blur(16px);
    -webkit-backdrop-filter: saturate(1.8) blur(16px);
    border-bottom: 1px solid rgba(226, 232, 240, .9);
    box-shadow: 0 1px 2px rgba(15, 23, 42, .03);
  }
  .admin-ui .page-head {
    position: static;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-bottom: 1px solid var(--p-line);
    margin: 18px 0 20px;
    padding: 0 0 16px;
  }
}
.admin-ui .admin-crumb {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}
.admin-ui .admin-crumb-root {
  color: var(--p-muted);
  font-weight: 500;
}
.admin-ui .admin-crumb-sep {
  color: var(--p-line-2);
  font-weight: 400;
}
.admin-ui .admin-crumb-cur {
  color: var(--p-ink);
  font-weight: 700;
  font-size: 14.5px;
}
.admin-ui .admin-cmd-btn {
  height: 34px;
  padding: 0 10px 0 12px;
  border-radius: 9px;
  border: 1px solid var(--p-line);
  background: var(--p-sunken);
  color: var(--p-muted);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease, color .15s ease, box-shadow .15s ease;
}
.admin-ui .admin-cmd-btn:hover {
  background: #fff;
  border-color: var(--p-line-2);
  color: var(--p-ink);
  box-shadow: 0 2px 5px rgba(15, 23, 42, .04);
}
.admin-ui .admin-cmd-btn svg {
  width: 15px;
  height: 15px;
  opacity: .75;
}
.admin-ui .admin-cmd-btn kbd {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  font-weight: 600;
  background: #fff;
  color: var(--p-ink-2);
  border: 1px solid var(--p-line);
  border-radius: 5px;
  padding: 1px 6px;
  box-shadow: 0 1px 0 rgba(15, 23, 42, .05);
}
.admin-ui .topbar .badge-dark {
  height: 34px;
  padding: 0 13px 0 11px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--p-line);
  color: var(--p-ink);
  font-weight: 600;
  font-size: 13px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .03);
}

/* ---------------- Page Headings & Subtitles ---------------- */
.admin-ui .content {
  max-width: 1320px;
  padding: 4px 30px 84px;
}
@media (max-width: 900px) {
  .admin-ui .content {
    padding: 4px 16px 110px;
  }
}
.admin-ui .page-head h1 {
  font-size: 26px;
  font-weight: 750;
  letter-spacing: -.022em;
  color: var(--p-ink);
}
.admin-ui .page-head .page-sub {
  font-size: 13.5px;
  color: var(--p-muted);
  margin-top: 5px;
  max-width: 70ch;
  line-height: 1.55;
}
.admin-ui .ov-h {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 16px 0 -4px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--p-ink-2);
}
.admin-ui .ov-h::before {
  content: "";
  width: 4px;
  height: 15px;
  border-radius: 4px;
  background: linear-gradient(180deg, #f5c84c, #d99b16);
}

/* ---------------- Overview Status Banner & Alerts ---------------- */
.admin-ui .ov-status {
  border-radius: var(--a-radius);
  padding: 15px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 16px;
}
.admin-ui .ov-status b {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 15.5px;
  font-weight: 700;
}
.admin-ui .ov-status b::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex: none;
}
.admin-ui .ov-status-ok {
  background: linear-gradient(135deg, #ecfdf5 0%, #f0fdf4 100%);
  border: 1px solid #a7f3d0;
  color: #065f46;
  box-shadow: 0 2px 10px rgba(16, 185, 129, .07);
}
.admin-ui .ov-status-ok b::before {
  background: #10b981;
  box-shadow: 0 0 0 4px rgba(16, 185, 129, .2);
}
.admin-ui .ov-status-warn {
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
  border: 1px solid #fde68a;
  color: #92400e;
  box-shadow: 0 2px 10px rgba(245, 158, 11, .09);
}
.admin-ui .ov-status-warn b::before {
  background: #f59e0b;
  box-shadow: 0 0 0 4px rgba(245, 158, 11, .22);
}
.admin-ui .ov-list {
  background: #fff;
  border-radius: var(--a-radius);
  border: 1px solid var(--p-line);
  box-shadow: var(--p-shadow);
  padding: 6px 10px;
}
.admin-ui .ov-alert {
  padding: 11px 12px;
  border-radius: 10px;
  font-weight: 500;
  transition: background .15s ease, transform .15s ease;
}
.admin-ui .ov-alert:hover {
  background: var(--p-sunken);
}

/* ---------------- Elevated Cards & 14-Day Trend Sub-cards ---------------- */
.admin-ui .card {
  background: var(--p-card);
  border: 1px solid var(--p-line);
  border-radius: var(--a-radius);
  padding: var(--a-pad);
  box-shadow: var(--p-shadow);
}
.admin-ui .card h3 {
  font-size: 16.5px;
  font-weight: 700;
  color: var(--p-ink);
}
.admin-ui .ov-trend-card {
  background: linear-gradient(180deg, #f9fbfd 0%, #f2f5fa 100%);
  border: 1px solid var(--p-line);
  border-radius: 14px;
  padding: 14px 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.admin-ui .ov-trend-card:hover {
  border-color: var(--p-line-2);
  box-shadow: 0 4px 12px rgba(15, 23, 42, .05);
}
.admin-ui .ov-trend-card b {
  font-size: 16px;
  font-weight: 700;
  color: var(--p-ink);
}
.admin-ui .ov-bars {
  height: 60px;
  gap: 5px;
  margin-top: 2px;
}
.admin-ui .ov-bars i {
  border-radius: 5px 5px 2px 2px;
  transition: opacity .15s ease, transform .15s ease;
}
.admin-ui .ov-bars i:hover {
  opacity: 1;
  transform: scaleY(1.06);
}

/* ---------------- Executive KPI Stat Tiles ---------------- */
.admin-ui .kpi {
  background: linear-gradient(180deg, #ffffff 0%, #fcfdff 100%);
  border: 1px solid var(--p-line);
  border-radius: var(--a-radius);
  padding: 18px 20px 16px;
  box-shadow: var(--p-shadow);
  transition: transform .22s cubic-bezier(.2, .8, .2, 1), box-shadow .22s ease, border-color .22s ease;
}
.admin-ui .kpi::before {
  content: "";
  position: absolute;
  top: 0;
  inset-inline: 0;
  height: 3.5px;
  background: linear-gradient(90deg, #e8b93c, rgba(232, 185, 60, .2));
  opacity: .85;
  transition: opacity .2s ease;
}
.admin-ui .kpi:nth-child(2)::before { background: linear-gradient(90deg, #3b82f6, rgba(59, 130, 246, .2)); }
.admin-ui .kpi:nth-child(3)::before { background: linear-gradient(90deg, #10b981, rgba(16, 185, 129, .2)); }
.admin-ui .kpi:nth-child(4)::before { background: linear-gradient(90deg, #8b5cf6, rgba(139, 92, 246, .2)); }
.admin-ui .kpi:nth-child(5)::before { background: linear-gradient(90deg, #06b6d4, rgba(6, 182, 212, .2)); }
.admin-ui .kpi:nth-child(6)::before { background: linear-gradient(90deg, #f59e0b, rgba(245, 158, 11, .2)); }
.admin-ui .kpi:hover {
  transform: translateY(-3px);
  box-shadow: var(--p-shadow-up);
  border-color: #cbd5e1;
}
.admin-ui .kpi:hover::before {
  opacity: 1;
}
.admin-ui .kpi .eyebrow {
  font-size: 12px;
  font-weight: 600;
  color: var(--p-muted);
}
.admin-ui .kpi b {
  font-size: 28px;
  font-weight: 750;
  letter-spacing: -.025em;
  margin-top: 6px;
  color: var(--p-ink);
}
.admin-ui .kpi small {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  line-height: 1.45;
  color: var(--p-muted);
}
.admin-ui .kpi.dark {
  background: radial-gradient(circle at 90% 10%, rgba(232, 185, 60, .28), transparent 55%),
              linear-gradient(135deg, #0f131d 0%, #1c2233 100%);
  border: 1px solid rgba(232, 185, 60, .32);
  box-shadow: 0 12px 30px rgba(15, 23, 42, .2);
}
.admin-ui .kpi.dark::before {
  background: linear-gradient(90deg, #fde088, #e8b93c);
  opacity: 1;
}
.admin-ui .kpi.dark b {
  color: #f8d46c;
}
.admin-ui .kpi.dark small {
  color: rgba(255, 255, 255, .68);
}
.admin-ui .ov-up,
.admin-ui .ov-down {
  display: inline-flex;
  align-items: center;
  padding: 1px 7px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
}
.admin-ui .ov-up {
  background: #dcfce7;
  color: #15803d;
}
.admin-ui .ov-down {
  background: #fee2e2;
  color: #b91c1c;
}

/* ---------------- Live Video Tiles & Quick Action Pills ---------------- */
.admin-ui .rv-tile {
  border-radius: 14px;
  padding: 14px 16px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, .03);
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.admin-ui .rv-tile:hover {
  border-color: var(--p-line-2);
  box-shadow: var(--p-shadow);
  transform: translateY(-2px);
}
.admin-ui .ov-qa-item {
  border-radius: 14px;
  padding: 14px 16px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, .03);
  font-weight: 600;
  color: var(--p-ink);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.admin-ui .ov-qa-item svg {
  color: var(--p-muted);
  transition: transform .18s ease, color .18s ease;
}
.admin-ui .ov-qa-item:hover {
  transform: translateY(-2px);
  border-color: var(--p-gold);
  box-shadow: 0 8px 20px rgba(232, 185, 60, .15);
  background: #fffdf7;
}
.admin-ui .ov-qa-item:hover svg {
  color: #b48208;
  transform: translateX(3px);
}
[dir="rtl"] .admin-ui .ov-qa-item:hover svg {
  transform: scaleX(-1) translateX(3px);
}
.admin-ui .tool-card {
  border-radius: var(--a-radius);
  box-shadow: var(--p-shadow);
}
.admin-ui .tool-card.tool-on {
  border-color: #22c55e;
  box-shadow: 0 0 0 1px rgba(34, 197, 94, .18), var(--p-shadow);
}

/* ---------------- Modern Data Tables & User Inspector Drawer ---------------- */
.admin-ui .table-wrap {
  border-radius: var(--a-radius);
  box-shadow: var(--p-shadow);
  border: 1px solid var(--p-line);
}
.admin-ui .table th {
  background: #f8fafc;
  color: #475569;
  font-size: 11.5px;
  font-weight: 700;
  padding: 13px 16px;
  border-bottom: 1px solid var(--p-line);
}
.admin-ui .table td {
  padding: 12.5px 16px;
  border-bottom: 1px solid var(--p-row);
}
.admin-ui .table tbody tr {
  transition: background-color .12s ease;
}
.admin-ui .table tbody tr:hover td {
  background-color: #f4f8ff;
}
.admin-ui .u-av {
  width: 36px;
  height: 36px;
  font-size: 14px;
  background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
  color: #1e293b;
  border: 1px solid #cbd5e1;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .05);
}
.admin-ui .drawer {
  background: var(--p-bg);
  box-shadow: -20px 0 60px rgba(15, 23, 42, .22);
}
.admin-ui .drawer-head {
  background: rgba(255, 255, 255, .88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--p-line);
}

/* ---------------- Rich Buttons, Segmented Controls & Badges ---------------- */
.admin-ui .segmented {
  background: #e6ebf2;
  padding: 3.5px;
  border-radius: 11px;
  border: 1px solid rgba(15, 23, 42, .04);
}
.admin-ui .segmented button {
  border-radius: 8px;
  padding: 7px 14px;
  font-size: 13px;
  font-weight: 600;
  color: #475569;
}
.admin-ui .segmented button.active {
  background: #fff;
  color: var(--p-ink);
  box-shadow: 0 1px 3px rgba(15, 23, 42, .1), 0 1px 2px rgba(15, 23, 42, .06);
}
.admin-ui .btn-gold {
  background: linear-gradient(180deg, #f5cc56 0%, #e5b330 100%);
  color: #1f1702;
  border: 1px solid #d4a322;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .45) inset, 0 2px 6px rgba(232, 185, 60, .25);
}
.admin-ui .btn-gold:hover {
  background: linear-gradient(180deg, #f8d368 0%, #eac745 100%);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .5) inset, 0 4px 14px rgba(232, 185, 60, .38);
}
.admin-ui .badge {
  padding: 3.5px 10px;
  font-weight: 650;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .05);
}
.admin-ui .ac-item {
  border-inline-start: 4px solid var(--p-gold);
}
.admin-ui .tools-savebar {
  background: rgba(255, 251, 235, .92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid #f59e0b;
  border-radius: 14px;
  box-shadow: 0 10px 26px rgba(232, 185, 60, .2);
}

/* =====================================================================
   3.49 — User Web App, Public Landing & Short-Link Gate SaaS Polish
   ===================================================================== */
.shell:not(.admin-ui) .sidebar {
  background: linear-gradient(180deg, #0b0e14 0%, #111622 100%);
  border-inline-end: 1px solid rgba(255, 255, 255, .07);
}
.shell:not(.admin-ui) .side-link.active {
  background: linear-gradient(90deg, rgba(232, 185, 60, .18) 0%, rgba(232, 185, 60, .05) 100%);
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(232, 185, 60, .28);
}
.shell:not(.admin-ui) .topbar {
  background: rgba(246, 247, 249, .86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.card-dark {
  background:
    radial-gradient(120% 120% at 100% 0%, rgba(232, 185, 60, .18) 0%, rgba(232, 185, 60, 0) 55%),
    linear-gradient(145deg, #171b24 0%, #0f131a 100%);
  border: 1px solid rgba(255, 255, 255, .08);
  box-shadow: 0 14px 34px rgba(15, 19, 26, .22);
}
.offer-card {
  border-radius: 18px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 2px 6px rgba(15, 23, 42, .04);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.offer-card:hover {
  transform: translateY(-3px);
  border-color: var(--gold);
  box-shadow: 0 12px 26px rgba(15, 23, 42, .08), 0 0 0 1px rgba(232, 185, 60, .25);
}
.promo-row {
  border-radius: 14px;
  transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}
.promo-row:hover {
  border-color: #cbd5e1;
  box-shadow: 0 4px 12px rgba(15, 23, 42, .05);
}

/* Short-Link Gate (/s/:code) — high-trust, high-conversion step card */
.sl-page {
  background:
    radial-gradient(900px 420px at 50% -10%, rgba(232, 185, 60, .15), transparent 65%),
    linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
}
.sl-card {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 18px 42px rgba(15, 23, 42, .08), 0 2px 6px rgba(15, 23, 42, .04);
}
.sl-card::before {
  content: "";
  position: absolute;
  top: 0;
  inset-inline: 0;
  height: 4px;
  background: linear-gradient(90deg, #e8b93c, #f59e0b, #22c55e);
}
@keyframes slPulseGlow {
  0%, 100% { box-shadow: 0 1px 0 rgba(255, 255, 255, .4) inset, 0 4px 14px rgba(232, 185, 60, .32), 0 0 0 0 rgba(232, 185, 60, .45); }
  50% { box-shadow: 0 1px 0 rgba(255, 255, 255, .4) inset, 0 6px 20px rgba(232, 185, 60, .48), 0 0 0 6px rgba(232, 185, 60, 0); }
}
.sl-card .btn-gold:not(:disabled) {
  animation: slPulseGlow 2s infinite;
  font-weight: 700;
}
.ad-slot {
  border-radius: 14px;
  overflow: hidden;
}


/* =====================================================================
   3.50 â€” Premium User Experience & FinTech Gamified UI Overhaul
   Transforms user dashboard, landing page, and member portals into a
   high-converting, modern, luxury dark/gold and frosted glass aesthetic.
   ===================================================================== */

/* --- Enhanced Root Tokens & Gradients --- */
:root {
  --lux-gold: #f3c44a;
  --lux-gold-glow: rgba(243, 196, 74, 0.35);
  --lux-dark-surface: #121620;
  --lux-glass-bg: rgba(255, 255, 255, 0.88);
  --lux-glass-border: rgba(226, 232, 240, 0.8);
  --lux-shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.05);
  --lux-shadow-md: 0 10px 28px rgba(15, 23, 42, 0.07);
  --lux-shadow-lg: 0 20px 48px rgba(15, 23, 42, 0.12);
}

/* --- Topbar Frosted Glass & Luxury Header --- */
.topbar {
  background: rgba(255, 255, 255, 0.85) !important;
  backdrop-filter: blur(14px) saturate(180%);
  -webkit-backdrop-filter: blur(14px) saturate(180%);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8) !important;
  transition: all 0.25s ease;
}
.topbar.scrolled {
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.06);
}

/* --- User Balance Pill (FinTech Glowing Pill) --- */
.balance-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #121620 0%, #1e2533 100%) !important;
  color: #fff !important;
  padding: 6px 14px 6px 10px;
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: -0.01em;
  border: 1px solid rgba(243, 196, 74, 0.35);
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.15), 0 0 0 1px rgba(255, 255, 255, 0.05) inset;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.balance-pill:hover {
  transform: translateY(-1px) scale(1.02);
  border-color: var(--lux-gold);
  box-shadow: 0 4px 18px var(--lux-gold-glow), 0 0 0 1px rgba(243, 196, 74, 0.2) inset;
}
.balance-pill i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  background: linear-gradient(135deg, #f59e0b, #e8b93c);
  color: #121620;
  border-radius: 50%;
  font-size: 13px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

/* --- FinTech Digital Card (Dashboard Balance Section) --- */
.card-dark.watch-card,
.card-dark.balance-card,
.balance-row {
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at 100% 0%, rgba(243, 196, 74, 0.15), transparent 45%),
              linear-gradient(145deg, #0e121a 0%, #171d2b 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 16px 40px rgba(10, 14, 22, 0.22), 0 1px 0 rgba(255, 255, 255, 0.1) inset !important;
  border-radius: 20px;
}
.balance-big {
  font-size: 38px;
  font-weight: 800;
  letter-spacing: -0.03em;
  background: linear-gradient(180deg, #ffffff 40%, #e2e8f0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

/* --- Modern Interactive Quick Tiles --- */
.quick-tile {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}
.quick-tile::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(243, 196, 74, 0.12), transparent 70%);
  opacity: 0;
  transition: opacity 0.22s ease;
}
.quick-tile:hover {
  transform: translateY(-3px);
  border-color: #cbd5e1;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}
.quick-tile:hover::before {
  opacity: 1;
}
.quick-tile i {
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
  transition: transform 0.2s ease;
}
.quick-tile:hover i {
  transform: scale(1.08);
}

/* --- Offerwall & Partner Cards --- */
.offer-card {
  position: relative;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 18px 16px;
  transition: all 0.24s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: var(--lux-shadow-sm);
}
.offer-card:hover {
  transform: translateY(-4px);
  border-color: rgba(243, 196, 74, 0.65);
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.09), 0 0 0 1px rgba(243, 196, 74, 0.3);
}
.offer-card .badge-gold {
  background: linear-gradient(135deg, #f59e0b, #e8b93c);
  color: #121620;
  font-weight: 700;
  box-shadow: 0 2px 6px rgba(245, 158, 11, 0.3);
}

/* --- Shimmer Gold Buttons --- */
.btn-gold {
  background: linear-gradient(135deg, #f3c44a 0%, #e8b93c 100%) !important;
  color: #111622 !important;
  font-weight: 700 !important;
  border: none !important;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(232, 185, 60, 0.32), 0 1px 0 rgba(255, 255, 255, 0.4) inset !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}
.btn-gold:hover {
  background: linear-gradient(135deg, #f8d266 0%, #edc24b 100%) !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(232, 185, 60, 0.45), 0 1px 0 rgba(255, 255, 255, 0.5) inset !important;
}
.btn-gold:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(232, 185, 60, 0.25) !important;
}

/* --- Mobile Bottom Nav Bar (Floating Frosted Pill Look) --- */
@media (max-width: 900px) {
  .bottom-nav {
    background: rgba(255, 255, 255, 0.92) !important;
    backdrop-filter: blur(18px) saturate(180%);
    -webkit-backdrop-filter: blur(18px) saturate(180%);
    border-top: 1px solid rgba(226, 232, 240, 0.9) !important;
    box-shadow: 0 -4px 24px rgba(15, 23, 42, 0.08) !important;
    padding-bottom: max(6px, env(safe-area-inset-bottom));
  }
  .bottom-nav a {
    transition: all 0.16s ease;
  }
  .bottom-nav a.active {
    color: #b45309 !important;
    transform: translateY(-2px);
  }
  .bottom-nav a.active svg {
    filter: drop-shadow(0 2px 6px rgba(245, 158, 11, 0.35));
  }
}

/* --- Live Pulse & Trust Indicators --- */
@keyframes pulseIndicator {
  0% { transform: scale(0.95); opacity: 0.8; box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.6); }
  70% { transform: scale(1); opacity: 1; box-shadow: 0 0 0 6px rgba(34, 197, 94, 0); }
  100% { transform: scale(0.95); opacity: 0.8; box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}
.live-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  animation: pulseIndicator 2s infinite ease-in-out;
  margin-inline-end: 6px;
}
