@import url('https://fonts.googleapis.com/css2?family=Fira+Sans:wght@300;400;500;600;700&display=swap');
:root {
  --bg: #f5f7fb;
  --card: #ffffff;
  --text: #1c2430;
  --muted: #5b6676;
  --line: #dde3ec;
  --brand: #1f5eff;
  --brand-dark: #1747c4;
  --ok: #17803d;
  --warn: #b26a00;
  --bad: #c0352b;
  --radius: 12px;
  font-family: "Fira Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
}

* { box-sizing: border-box; }
body { margin: 0; }
a, button, [role="button"], .nav-item, .btn, .preset-chip, .action-btn, .icon-btn {
  cursor: pointer;
}
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 4px; }
button:focus:not(:focus-visible), a:focus:not(:focus-visible) { outline: none; }
button, .btn, .action-btn, .preset-chip { min-height: 40px; }

/* Premium animated page loader */
.page-loader {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  min-height: calc(100vh - 140px);
  padding: 2rem 1rem;
}
.login-loading-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.35);
}
.login-loading-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  min-width: 200px;
  padding: 1.75rem 2rem;
  border-radius: 16px;
  background: #fff;
  color: #1c2430;
  font-weight: 600;
  box-shadow: 0 24px 60px -20px rgba(15, 23, 42, 0.45);
}
.page-loader-glow {
  position: absolute;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(31,94,255,0.18) 0%, rgba(31,94,255,0) 70%);
  animation: pageLoaderGlow 2.4s ease-in-out infinite;
  pointer-events: none;
}
.page-loader-spinner {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, #1f5eff 0%, #6ea8ff 40%, rgba(31,94,255,0.15) 70%, #1f5eff 100%);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 6px), #000 calc(100% - 5px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 6px), #000 calc(100% - 5px));
  animation: pageLoaderSpin 1s linear infinite;
  position: relative;
  z-index: 1;
}
.page-loader-dots {
  display: flex;
  gap: 0.5rem;
  position: relative;
  z-index: 1;
}
.page-loader-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand);
  animation: pageLoaderDot 1.2s ease-in-out infinite;
}
.page-loader-dots span:nth-child(2) { animation-delay: 0.15s; background: #4f8bff; }
.page-loader-dots span:nth-child(3) { animation-delay: 0.3s; background: #8ab4ff; }
@keyframes pageLoaderSpin { to { transform: rotate(360deg); } }
@keyframes pageLoaderGlow {
  0%, 100% { transform: scale(0.9); opacity: 0.6; }
  50% { transform: scale(1.15); opacity: 1; }
}
@keyframes pageLoaderDot {
  0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; }
  40% { transform: scale(1.15); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .page-loader-spinner { animation: none; }
  .page-loader-glow { animation: none; }
  .page-loader-dots span { animation: none; opacity: 0.7; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
h1 { font-size: 1.5rem; margin: 0 0 1rem; }
h2 { font-size: 1.15rem; margin: 0 0 0.75rem; }
[hidden] { display: none !important; }

.topbar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 0.5rem 1rem; padding: 0.75rem 1rem; background: var(--card); border-bottom: 1px solid var(--line);
  position: -webkit-sticky; position: sticky; top: 0; z-index: 50;
}
.brand { font-weight: 700; color: var(--text); }
nav { display: flex; flex-wrap: wrap; gap: 0.25rem 0.75rem; }
nav a { padding: 0.3rem 0.5rem; border-radius: 6px; color: var(--muted); }
nav a.active, nav a:hover { color: var(--brand); background: #eef3ff; text-decoration: none; }

.banner {
  padding: 0.5rem 1rem; font-size: 0.9rem; text-align: center;
  background: #fff4d6; color: #6b4a00; border-bottom: 1px solid #f1d98f;
}
.banner.prod { background: #e8f7ee; color: #14532d; border-color: #b7e4c7; }

.container { width: 100%; max-width: none; margin: 0; padding: 1.25rem 1rem 3rem; box-sizing: border-box; }
.grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem;
.loading-state { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.75rem; padding: 3rem 1rem; min-height: 40vh; color: var(--muted); }
.spinner {
  display: inline-block;
  width: 36px; height: 36px;
  border: 3px solid #e2e8f0;
  border-top-color: #6366f1;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
  transition: box-shadow 150ms ease, transform 150ms ease;
}
.card:hover { box-shadow: 0 8px 24px rgba(15, 23, 42, 0.1); }
.card-link { color: inherit; display: block; }
.card-link:hover { text-decoration: none; border-color: var(--brand); }
.card .label { color: var(--muted); font-size: 0.85rem; }
.card .value { font-size: 1.35rem; font-weight: 650; margin-top: 0.2rem; word-break: break-word; }
.card .sub { color: var(--muted); font-size: 0.85rem; margin-top: 0.25rem; }
.stack > * + * { margin-top: 1rem; }

.auth { max-width: 400px; margin: 2rem auto; }
form { display: grid; gap: 0.75rem; }
label { display: grid; gap: 0.3rem; font-size: 0.9rem; color: var(--muted); }
input, select, textarea {
  font: inherit; padding: 0.55rem 0.7rem; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--text);
  width: 100%;
}
input:focus, select:focus, textarea:focus { outline: 2px solid #b8ccff; border-color: var(--brand); }
button, .btn {
  font: inherit; cursor: pointer; border: 0; border-radius: 8px; padding: 0.55rem 0.9rem;
  background: var(--brand); color: #fff; display: inline-block; text-align: center;
}
button:hover, .btn:hover { background: #0f3ab0; text-decoration: none; }
button:disabled { opacity: 0.55; cursor: not-allowed; }
button.secondary, .btn.secondary { background: #e9eef7; color: var(--text); }
button.secondary:hover, .btn.secondary:hover { background: #dbe3f0; }
button.danger { background: var(--bad); }
button.small { padding: 0.3rem 0.6rem; font-size: 0.85rem; }
.row { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }
.row > * { flex: 0 0 auto; }
.muted { color: var(--muted); }
.small { font-size: 0.85rem; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; word-break: break-all; }

.notice { padding: 0.75rem 0.9rem; border-radius: 8px; border: 1px solid; }
.notice.ok { background: #ecf9f0; border-color: #b7e4c7; color: #14532d; }
.notice.warn { background: #fff8e6; border-color: #f1d98f; color: #6b4a00; }
.notice.bad { background: #fdeeee; border-color: #f3b9b4; color: #7a1d16; }
.notice.info { background: #eef3ff; border-color: #c6d6ff; color: #1b3b8a; }

.badge {
  display: inline-block; padding: 0.15rem 0.5rem; border-radius: 999px; font-size: 0.78rem; font-weight: 600;
  background: #eef1f6; color: var(--muted);
}
.badge.ISSUED, .badge.ACTIVE, .badge.COMPLETE, .badge.active { background: #e3f6ea; color: var(--ok); }
.badge.PENDING { background: #fff3d6; color: var(--warn); }
.badge.UNCERTAIN, .badge.CANCELLED { background: #fff3d6; color: var(--warn); }
.badge.FAILED, .badge.DELETED, .badge.DECLINED, .badge.disabled { background: #fde5e3; color: var(--bad); }

.table-wrap { overflow: visible; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
th, td { text-align: left; padding: 0.6rem 0.7rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-weight: 600; background: #fafbfd; white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
td.num, th.num { text-align: right; white-space: nowrap; }

.product { display: flex; flex-direction: column; gap: 0.5rem; }
.product .price { font-size: 1.05rem; font-weight: 650; }

.reveal-box { border: 2px dashed #b8ccff; border-radius: var(--radius); padding: 1rem; background: #f7f9ff; }
.reveal-box .big { font-size: 1.25rem; letter-spacing: 0.06em; }

.tabs { display: flex; flex-wrap: wrap; gap: 0.25rem; margin-bottom: 1rem; }
.tabs button { background: #e9eef7; color: var(--text); }
.tabs button.active { background: var(--brand); color: #fff; }

.two { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 820px) {
  .two { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
  .topbar { padding: 0.6rem 0.75rem; }
  .container { padding: 1rem 0.75rem 2.5rem; }
  h1 { font-size: 1.3rem; }
  th, td { padding: 0.5rem; font-size: 0.85rem; }
}


.layout { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; }
.sidebar {
  background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
  border-right: 1px solid rgba(148, 163, 184, 0.12);
  padding: 1.25rem 0.85rem;
  position: sticky; top: 0; height: 100vh; overflow-y: auto;
  color: #e2e8f0;
}
.sidebar-brand {
  margin: 0 0 1.5rem;
  padding: 0 0.5rem;
  display: flex; align-items: center; gap: 0.6rem;
}
.sidebar-brand .brand { color: #fff; font-weight: 700; font-size: 1.05rem; letter-spacing: -0.01em; text-decoration: none; }
.sidebar-close { display: none; }
.sidebar-backdrop { display: none; }
.sidebar-close {
  margin-left: auto;
  width: 34px; height: 34px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: #e2e8f0;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.sidebar-brand .brand img { height: 28px; width: auto; }
.sidebar-nav { display: grid; gap: 1.1rem; }
.nav-group { display: grid; gap: 0.25rem; }
.nav-group-title {
  font-size: 0.7rem; text-transform: uppercase; color: #64748b;
  margin: 0 0 0.4rem 0.6rem; letter-spacing: 0.1em; font-weight: 700;
}
.nav-item {
  display: flex; align-items: center; gap: 0.6rem;
  padding: 0.6rem 0.75rem; border-radius: 10px;
  color: #cbd5e1; text-decoration: none; font-size: 0.92rem; font-weight: 500;
  transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}
.nav-item:hover { background: rgba(99, 102, 241, 0.15); color: #fff; text-decoration: none; transform: translateX(2px); }
.nav-item.active {
  background: linear-gradient(135deg, #6366f1, #2563eb);
  color: #fff; font-weight: 600;
  box-shadow: 0 6px 16px -6px rgba(79, 70, 229, 0.6);
}
.nav-item .nav-icon { font-size: 1.05rem; width: 1.2rem; text-align: center; }
.main { display: flex; flex-direction: column; min-width: 0; }
.topbar { display: flex; align-items: center; gap: 0.75rem; padding: 0.85rem 1.25rem; background: rgba(255,255,255,0.85); backdrop-filter: blur(8px); border-bottom: 1px solid #e6eaf3; position: -webkit-sticky; position: sticky; top: 0; z-index: 50; box-shadow: 0 1px 2px rgba(15,23,42,0.04); }
.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 0.5rem; }
.sidebar-toggle { display: none; }
.mobile-brand { display: none; }
.welcome-panel { padding: 1.5rem 1.75rem; border-radius: 16px; background: linear-gradient(135deg, #ffffff, #f8faff); border: 1px solid #e6eaf3; box-shadow: 0 1px 2px rgba(15,23,42,0.04), 0 14px 34px -22px rgba(15,23,42,0.18); }
.quick-access { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
.quick-card { display: flex; align-items: center; justify-content: center; gap: 0.55rem; padding: 0.7rem 1rem; border-radius: 14px; color: #fff; text-decoration: none; font-weight: 600; font-size: 0.92rem; box-shadow: 0 10px 24px -12px rgba(15,23,42,0.35); transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease; min-height: 50px; }
.quick-card:hover { text-decoration: none; filter: brightness(1.06); transform: translateY(-2px); box-shadow: 0 14px 30px -12px rgba(15,23,42,0.45); }
.quick-deposit { background: #ef4444; }
.quick-create { background: #2563eb; }
.quick-list { background: #06b6d4; }
.quick-tx { background: #7c3aed; }
.quick-icon { font-size: 1.2rem; }
.stat-card .value { font-size: 1.5rem; }
@media (max-width: 820px) {
  .layout { grid-template-columns: minmax(0, 1fr); }
  .sidebar { position: fixed; left: -260px; top: 0; width: 240px; z-index: 1000; transition: left 200ms ease; }
  body.sidebar-open .sidebar { left: 0; }
  .sidebar-toggle { display: inline-block; }
  .sidebar-close { display: inline-flex; }
  .mobile-brand { display: inline; }
  .sidebar-brand .brand { display: none; }
  .sidebar-backdrop {
    display: none;
    position: fixed; inset: 0;
    background: rgba(15, 23, 42, 0.45);
    z-index: 999;
  }
  body.sidebar-open .sidebar-backdrop { display: block; }
}

.quick-access-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.financial-statistics-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 1200px) { .financial-statistics-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 900px) { .quick-access-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .financial-statistics-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .quick-access-grid, .financial-statistics-grid { grid-template-columns: minmax(0, 1fr); } }

.ops-menu { position: relative; display: inline-block; }
.dropdown-menu { position: absolute; right: 0; top: 100%; margin-top: 4px; background: #fff; border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 8px 24px rgba(15,23,42,0.12); z-index: 50; min-width: 160px; padding: 0.25rem; }
.dropdown-menu.ops-dropdown-portal { position: fixed; right: auto; top: auto; margin-top: 0; z-index: 100000; }
.dropdown-menu.ops-dropdown-portal.dropup { /* flipped */ }
.dropdown-item { display: block; width: 100%; text-align: left; background: transparent; color: var(--text); padding: 0.45rem 0.75rem; border: 0; border-radius: 6px; cursor: pointer; }
.dropdown-item:hover { background: #eef3ff; }
.dropdown-item.danger { color: var(--bad); }
.dropdown-item.danger:hover { background: #fdeeee; }
/* Shared button.danger sets a solid red background; dropdown items must stay transparent. */
button.dropdown-item, button.dropdown-item.danger { background: transparent; box-shadow: none; }
button.dropdown-item:hover { background: #eef3ff; }
button.dropdown-item.danger:hover { background: #fdeeee; }

.icon-btn {
  width: 26px; height: 26px; padding: 0; border: 1px solid #e2e8f0; border-radius: 7px;
  background: linear-gradient(180deg, #ffffff, #f5f7fb); color: #64748b;
  cursor: pointer; font-size: 0.78rem; line-height: 1; display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06); transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.08s ease;
}
.icon-btn:hover { background: #dbeafe; color: #3730a3; border-color: #a5b4fc; }
.icon-btn:active { transform: translateY(1px); }
.icon-btn:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.25); }
.icon-btn:disabled { opacity: 0.45; cursor: wait; }
.icon-btn:hover { text-decoration: none; opacity: 0.8; }
.icon-btn:hover { background: #dbeafe; }
.icon-btn:focus-visible { outline: 2px solid #b8ccff; outline-offset: 1px; }
.icon-btn:disabled { opacity: 0.5; cursor: wait; }
.cvv-box { display: inline-flex; align-items: center; gap: 0.25rem; white-space: nowrap; }
.inline-input { width: 96px; padding: 0.2rem 0.4rem; font-size: 0.85rem; }
.toast { position: fixed; right: 1.25rem; bottom: 1.25rem; background: #14532d; color: #fff; padding: 0.55rem 0.9rem; border-radius: 8px; box-shadow: 0 8px 24px rgba(15,23,42,0.2); z-index: 100; font-size: 0.9rem; }
.card-row { cursor: pointer; }
.card-row:hover { background: #f8fafc; }

/* ---- Card details panel ---- */
.detail-columns { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 900px) { .detail-columns { grid-template-columns: minmax(320px, 0.9fr) 1.6fr; align-items: start; } }

.card-face {
  position: relative;
  background: linear-gradient(135deg, #c7d7fe 0%, #dbe6ff 45%, #e6ecff 100%);
  border: 1px solid #b9cbfb;
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
  display: grid;
  gap: 0.55rem;
  color: #16233d;
}
.face-top { display: flex; align-items: center; justify-content: space-between; }
.face-chip { width: 34px; height: 24px; border-radius: 4px; background: linear-gradient(180deg, #4b5f80, #2f3f5a); display: inline-block; }
.face-row { display: flex; align-items: center; gap: 0.35rem; font-size: 0.92rem; }
.card-copy-btn {
  position: absolute;
  right: 0.7rem;
  bottom: 0.7rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.7rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: #1f2937;
  background: rgba(255, 255, 255, 0.35);
  border: 1px solid rgba(31, 41, 55, 0.18);
  border-radius: 999px;
  cursor: pointer;
  backdrop-filter: blur(4px);
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}
.card-copy-btn:hover {
  background: rgba(255, 255, 255, 0.6);
  border-color: rgba(31, 41, 55, 0.35);
  transform: translateY(-1px);
}
.card-copy-btn:active { transform: translateY(0); }
.card-copy-btn .copy-icon { font-size: 0.95rem; line-height: 1; }
.face-label { color: #3d4d6b; }
.face-eye { background: transparent; border: 0; cursor: pointer; color: #1f2937; padding: 0 0.25rem; font-size: 1.15rem; line-height: 1; }
.face-eye:hover { background: rgba(31, 41, 55, 0.12); border-radius: 4px; }
.face-eye:focus-visible { outline: 2px solid #6d5dfc; outline-offset: 1px; }

.detail-info { display: grid; gap: 0.35rem 1.5rem; align-content: start; grid-template-columns: 1fr; }
@media (min-width: 1100px) { .detail-info { grid-template-columns: 1fr 1fr; } .detail-info .action-row { grid-column: 1 / -1; } }
.info-row { display: flex; gap: 0.5rem; flex-wrap: wrap; padding: 0.45rem 0; border-bottom: 1px solid var(--line); font-size: 0.92rem; }
.info-row:last-of-type { border-bottom: 0; }
.info-label { color: var(--muted); min-width: 150px; }
.detail-head { justify-content: space-between; }

.action-row { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.9rem; }
.action-btn { border: 1px solid transparent; border-radius: 8px; padding: 0.45rem 0.85rem; font-size: 0.9rem; cursor: pointer; display: inline-flex; align-items: center; gap: 0.35rem; }
.action-btn.primary { background: #eef2ff; color: #4f46e5; border-color: #c7d2fe; }
.action-btn.primary:hover { background: #e0e7ff; }
.action-btn.danger { background: #fef2f2; color: #dc2626; border-color: #fecaca; }
.action-btn.danger:hover { background: #fee2e2; }
.action-btn.freeze { background: #eff6ff; color: #2563eb; border-color: #bfdbfe; }
.action-btn.freeze:hover { background: #dbeafe; }
.action-btn.warn { background: #fff7ed; color: #c2410c; border-color: #fed7aa; }
.action-btn.warn:hover { background: #ffedd5; }
.badge.SUSPENDED { background: #fff7ed; color: #c2410c; }
button.danger-outline { background: #fff7ed; color: #c2410c; border: 1px solid #fed7aa; border-radius: 8px; padding: 0.45rem 0.85rem; font-size: 0.9rem; cursor: pointer; }
button.danger-outline:hover { background: #ffedd5; }

/* ---- Admin console (premium theme, scoped to .admin-layout) ---- */
.admin-layout {
  --a-bg: #f3f5fb;
  --a-surface: #ffffff;
  --a-line: #e6eaf3;
  --a-line-strong: #d5dce9;
  --a-text: #0f172a;
  --a-muted: #64748b;
  --a-accent: #4f46e5;
  --a-accent-2: #2563eb;
  --a-side: #0a1020;
  --a-side-2: #101a33;
  display: flex;
  min-height: 100vh;
  font-family: "Segoe UI Variable Text", "Segoe UI", Inter, system-ui, -apple-system, Roboto, sans-serif;
  background: var(--a-bg);
  color: var(--a-text);
  -webkit-font-smoothing: antialiased;
}

/* ---- Sidebar ---- */
.admin-sidebar {
  width: 248px;
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, var(--a-side) 0%, var(--a-side-2) 100%);
  border-right: 1px solid rgba(255, 255, 255, 0.05);
  color: #cbd5e1;
  z-index: 30;
}
.admin-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1.25rem 1.25rem 0.5rem;
}
.admin-brand-icon {
  width: 48px;
  height: 48px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #6366f1, #2563eb);
  color: #fff;
  font-weight: 800;
  font-size: 1rem;
  box-shadow: 0 8px 18px -6px rgba(79, 70, 229, 0.7);
}
.admin-brand-icon:has(img) {
  background: transparent;
  box-shadow: none;
  padding: 0;
  overflow: hidden;
}
.admin-brand-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 11px;
}
.brand img {
  height: 36px;
  width: auto;
  vertical-align: middle;
}
.admin-brand-text {
  font-size: 0.98rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.01em;
}
.admin-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 0.5rem 0.75rem 0.75rem;
  flex: 1;
}
.nav-group-label {
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #475569;
  padding: 1.1rem 0.75rem 0.4rem;
}
.nav-link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.5rem 0.7rem;
  border-radius: 10px;
  color: #94a3b8;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}
.nav-link:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #e2e8f0;
  text-decoration: none;
}
.nav-link.active {
  background: linear-gradient(90deg, rgba(79, 70, 229, 0.38), rgba(37, 99, 235, 0.14));
  color: #ffffff;
  box-shadow: inset 0 0 0 1px rgba(129, 140, 248, 0.25);
}
.nav-link.active::before {
  content: "";
  position: absolute;
  left: -0.75rem;
  top: 22%;
  bottom: 22%;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: #818cf8;
}
.nav-icon {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  font-size: 0.85rem;
  line-height: 1;
}
.nav-link.active .nav-icon {
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
}
.nav-footer {
  margin-top: auto;
  padding: 0.9rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
}
.nav-user-info {
  margin-bottom: 0.75rem;
  min-width: 0;
}
.nav-user-email {
  font-size: 0.82rem;
  color: #e2e8f0;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.nav-user-role {
  display: inline-block;
  margin-top: 0.25rem;
  padding: 0.12rem 0.5rem;
  border-radius: 999px;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(129, 140, 248, 0.18);
  color: #c7d2fe;
}
.nav-logout {
  width: 100%;
  padding: 0.5rem 0.75rem;
  border-radius: 9px;
  border: 1px solid rgba(248, 113, 113, 0.25);
  background: rgba(239, 68, 68, 0.1);
  color: #fca5a5;
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: none;
}
.nav-logout:hover {
  background: rgba(239, 68, 68, 0.2);
  filter: none;
}

/* ---- Main area ---- */
.admin-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  margin-left: 248px;
}
.admin-topbar {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 2rem;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--a-line);
}
.admin-title {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--a-text);
  letter-spacing: -0.015em;
}
.admin-topbar-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.admin-user {
  font-size: 0.85rem;
  color: var(--a-muted);
  margin-right: 0.25rem;
}
.admin-topbar .admin-btn {
  background: #ffffff;
  color: var(--a-text);
  border: 1px solid var(--a-line-strong);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
  padding: 0.5rem 0.9rem;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 10px;
}
.admin-topbar .admin-btn:hover {
  background: #f8fafc;
  filter: none;
}
.admin-toggle {
  display: none;
  width: 38px;
  height: 38px;
  padding: 0;
  border-radius: 10px;
  background: #ffffff;
  color: var(--a-text);
  border: 1px solid var(--a-line-strong);
  box-shadow: none;
  font-size: 1.1rem;
}
.admin-content {
  flex: 1;
  width: 100%;
  max-width: 1280px;
  padding: 2rem;
}

/* ---- Typography and sections ---- */
.admin-content .card-stack {
  gap: 1.25rem;
}
.admin-content .section-title {
  margin: 0;
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--a-text);
  letter-spacing: -0.02em;
}
.admin-content h3 {
  margin: 0 0 0.5rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--a-text);
}
.admin-content .mono {
  font-family: "Cascadia Code", ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.82rem;
}
.admin-content .muted {
  color: var(--a-muted);
}
.admin-content .small {
  font-size: 0.82rem;
}

/* ---- Stat cards ---- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1rem;
  margin-bottom: 1.75rem;
}
.stat-card {
  position: relative;
  overflow: hidden;
  background: var(--a-surface);
  border: 1px solid var(--a-line);
  border-radius: 16px;
  padding: 1.25rem 1.25rem 1.15rem;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 10px 28px -14px rgba(15, 23, 42, 0.14);
}
.stat-card::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: linear-gradient(90deg, #6366f1, #2563eb);
  opacity: 0.8;
}
.stat-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--a-muted);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 0.7rem;
}
.stat-value {
  font-size: 1.85rem;
  font-weight: 700;
  color: var(--a-text);
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin-bottom: 0.4rem;
  font-variant-numeric: tabular-nums;
}
.stat-subtitle {
  font-size: 0.8rem;
  color: var(--a-muted);
}

/* ---- Cards ---- */
.admin-content .card {
  background: var(--a-surface);
  border: 1px solid var(--a-line);
  border-radius: 16px;
  padding: 1.25rem 1.35rem;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 10px 28px -16px rgba(15, 23, 42, 0.12);
}
.admin-content .card.stack > * + * {
  margin-top: 0.85rem;
}
.kv {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid #eef2f7;
  font-size: 0.9rem;
  color: var(--a-text);
}
.kv:last-of-type {
  border-bottom: 0;
}
.kv strong {
  min-width: 170px;
  font-weight: 600;
  color: var(--a-muted);
}

/* ---- Tables ---- */
.admin-content .table-wrap {
  background: var(--a-surface);
  border: 1px solid var(--a-line);
  border-radius: 16px;
  overflow: auto;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 10px 28px -16px rgba(15, 23, 42, 0.12);
}
.admin-content table {
  font-size: 0.875rem;
}
.admin-content th {
  padding: 0.8rem 1rem;
  background: #f8fafc;
  color: var(--a-muted);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--a-line);
}
.admin-content td {
  padding: 0.8rem 1rem;
  color: #1e293b;
  border-bottom: 1px solid #eef2f7;
}
.admin-content tbody tr {
  transition: background 0.12s ease;
}
.admin-content tbody tr:hover {
  background: #f8faff;
}
.admin-content tr:last-child td {
  border-bottom: 0;
}
.admin-content td a {
  font-weight: 600;
}
.admin-content > .card-stack > p.muted,
.admin-content p.muted {
  padding: 1.5rem;
  text-align: center;
  background: var(--a-surface);
  border: 1px dashed var(--a-line-strong);
  border-radius: 14px;
}

/* ---- Badges ---- */
.admin-content .badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.22rem 0.6rem 0.22rem 0.5rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  background: #f1f5f9;
  color: #475569;
  white-space: nowrap;
}
.admin-content .badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.admin-content .badge.ISSUED,
.admin-content .badge.ACTIVE,
.admin-content .badge.COMPLETE,
.admin-content .badge.active,
.admin-content .badge.approved {
  background: #ecfdf5;
  color: #047857;
}
.admin-content .badge.PENDING,
.admin-content .badge.pending,
.admin-content .badge.UNCERTAIN,
.admin-content .badge.CANCELLED {
  background: #fffbeb;
  color: #b45309;
}
.admin-content .badge.FAILED,
.admin-content .badge.DELETED,
.admin-content .badge.DECLINED,
.admin-content .badge.disabled,
.admin-content .badge.rejected {
  background: #fef2f2;
  color: #b91c1c;
}

/* ---- Buttons ---- */
.admin-content button,
.admin-content .btn {
  padding: 0.6rem 1rem;
  border-radius: 10px;
  border: 0;
  background: linear-gradient(135deg, #4f46e5, #2563eb);
  color: #ffffff;
  font-size: 0.875rem;
  font-weight: 600;
  box-shadow: 0 6px 16px -8px rgba(79, 70, 229, 0.7);
  transition: transform 0.08s ease, box-shadow 0.15s ease, filter 0.15s ease;
}
.admin-content button:hover {
  filter: brightness(1.06);
  box-shadow: 0 10px 22px -10px rgba(79, 70, 229, 0.75);
}
.admin-content button:active {
  transform: translateY(1px);
}
.admin-content button.secondary {
  background: #ffffff;
  color: var(--a-text);
  border: 1px solid var(--a-line-strong);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
}
.admin-content button.secondary:hover {
  background: #f8fafc;
  filter: none;
}
.admin-content button.danger {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  box-shadow: 0 6px 16px -8px rgba(220, 38, 38, 0.7);
}
.admin-content .customer-actions {
  display: flex; flex-wrap: nowrap; gap: 0.35rem; align-items: center;
}
.admin-content .customer-actions button {
  min-height: 0; padding: 0.3rem 0.6rem; font-size: 0.78rem; line-height: 1.2;
  white-space: nowrap; border-radius: 7px;
}

/* ---- Card transaction table (10 columns) ---- */
.tx-wrap { overflow: auto; }
.tx {
  table-layout: fixed;
  width: 100%;
  font-size: 0.78rem;
  border-collapse: collapse;
}
.tx th, .tx td {
  padding: 0.45rem 0.4rem;
  vertical-align: middle;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tx th { font-size: 0.68rem; }
.tx .tx-merchant, .tx .tx-remark { white-space: normal; word-break: break-word; }
.tx .mono { font-size: 0.75rem; }
/* column widths (10 columns) */
.tx th:nth-child(1), .tx td:nth-child(1) { width: 13%; } /* Transaction ID */
.tx th:nth-child(2), .tx td:nth-child(2) { width: 13%; } /* Transaction Time */
.tx th:nth-child(3), .tx td:nth-child(3) { width: 8%; }  /* Transaction Amount */
.tx th:nth-child(4), .tx td:nth-child(4) { width: 7%; }  /* Currency */
.tx th:nth-child(5), .tx td:nth-child(5) { width: 9%; }  /* Settlement Amount */
.tx th:nth-child(6), .tx td:nth-child(6) { width: 9%; }  /* Settlement Currency */
.tx th:nth-child(7), .tx td:nth-child(7) { width: 8%; }  /* Type */
.tx th:nth-child(8), .tx td:nth-child(8) { width: 12%; } /* Merchant */
.tx th:nth-child(9), .tx td:nth-child(9) { width: 7%; }  /* Status */
.tx th:nth-child(10), .tx td:nth-child(10) { width: 14%; } /* Remark */
@media (max-width: 1280px) {
  .tx { font-size: 0.74rem; }
  .tx th, .tx td { padding: 0.4rem 0.3rem; }
}
@media (max-width: 900px) {
  .tx-wrap { overflow-x: auto; }
  .tx { min-width: 900px; }
}
.admin-toast {
  position: fixed; top: 1.25rem; right: 1.25rem; z-index: 10000;
  background: linear-gradient(135deg, #0f172a, #1e3a8a); color: #fff;
  padding: 0.85rem 1.1rem; border-radius: 12px; max-width: 360px;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.35);
  cursor: pointer; display: grid; gap: 0.25rem;
  animation: toastIn 0.25s ease-out;
}
.admin-toast strong { font-size: 0.9rem; font-weight: 700; }
.admin-toast span { font-size: 0.82rem; color: #cbd5e1; }
@keyframes toastIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 480px) {
  .admin-toast { left: 1rem; right: 1rem; max-width: none; top: 0.75rem; }
}

/* ---- Customers table: fit within content area, no horizontal scroll ---- */
.admin-content .customers-wrap {
  overflow: hidden;
  max-width: 100%;
}
.admin-content .customers {
  table-layout: fixed;
  width: 100%;
  font-size: 0.82rem;
}
.admin-content .customers th,
.admin-content .customers td {
  padding: 0.55rem 0.5rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  vertical-align: middle;
}
.admin-content .customers th { font-size: 0.66rem; }
.admin-content .customers .cell-email,
.admin-content .customers .cell-name {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
.admin-content .customers .mono { font-size: 0.78rem; }
.admin-content .customers .customer-actions {
  flex-wrap: wrap;
  gap: 0.25rem;
  justify-content: flex-end;
}
.admin-content .customers .customer-actions button {
  padding: 0.25rem 0.5rem;
  font-size: 0.72rem;
  border-radius: 6px;
  min-height: 0;
}
/* Column widths */
.admin-content .customers th:nth-child(1), .admin-content .customers td:nth-child(1) { width: 8%; }   /* Account ID */
.admin-content .customers th:nth-child(2), .admin-content .customers td:nth-child(2) { width: 14%; }  /* Email */
.admin-content .customers th:nth-child(3), .admin-content .customers td:nth-child(3) { width: 10%; }  /* Name */
.admin-content .customers th:nth-child(4), .admin-content .customers td:nth-child(4) { width: 13%; }  /* Contact */
.admin-content .customers th:nth-child(5), .admin-content .customers td:nth-child(5) { width: 6%; }   /* Role */
.admin-content .customers th:nth-child(6), .admin-content .customers td:nth-child(6) { width: 8%; }   /* Status */
.admin-content .customers th:nth-child(7), .admin-content .customers td:nth-child(7) { width: 8%; }   /* Email check */
.admin-content .customers th:nth-child(8), .admin-content .customers td:nth-child(8) { width: 8%; }   /* Wallet */
.admin-content .customers th:nth-child(9), .admin-content .customers td:nth-child(9) { width: 5%; }   /* Orders */
.admin-content .customers th:nth-child(10), .admin-content .customers td:nth-child(10) { width: 10%; } /* Created */
.admin-content .customers th:nth-child(11), .admin-content .customers td:nth-child(11) { width: 10%; } /* Actions */

@media (max-width: 1280px) {
  .admin-content .customers { font-size: 0.78rem; }
  .admin-content .customers th, .admin-content .customers td { padding: 0.45rem 0.4rem; }
}
@media (max-width: 1024px) {
  .admin-content .customers th:nth-child(3), .admin-content .customers td:nth-child(3) { display: none; } /* hide Name */
  .admin-content .customers th:nth-child(10), .admin-content .customers td:nth-child(10) { display: none; } /* hide Created */
}
@media (max-width: 768px) {
  .admin-content .customers-wrap { overflow: auto; }
  .admin-content .customers { table-layout: auto; min-width: 720px; }
}
.admin-content button.small {
  padding: 0.38rem 0.75rem;
  font-size: 0.8rem;
  border-radius: 8px;
}
.admin-content button:disabled {
  opacity: 0.5;
  box-shadow: none;
  cursor: not-allowed;
}

/* ---- Forms ---- */
.admin-content label {
  display: grid;
  gap: 0.4rem;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--a-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.admin-content label > span.small {
  text-transform: none;
  letter-spacing: 0;
  font-weight: 400;
}
.admin-content input,
.admin-content select {
  width: 100%;
  padding: 0.6rem 0.75rem;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  color: var(--a-text);
  background: #ffffff;
  border: 1px solid var(--a-line-strong);
  border-radius: 10px;
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.04);
}
.admin-content input:focus,
.admin-content select:focus {
  outline: none;
  border-color: #818cf8;
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.15);
}
.admin-content input[type="checkbox"] {
  width: auto;
  accent-color: var(--a-accent);
}
.admin-content .row {
  gap: 0.6rem;
}

/* ---- Notices ---- */
.admin-content .notice {
  padding: 0.8rem 1rem;
  border-radius: 12px;
  border-width: 1px;
  border-left-width: 4px;
  font-size: 0.9rem;
}

/* ---- Fees ---- */
.admin-content .fee-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.25rem;
}
.admin-content .fee-grid .card h3 {
  font-size: 1.05rem;
}

/* ---- Login ---- */
.admin-layout.signed-out .admin-sidebar,
.admin-layout.signed-out .admin-topbar {
  display: none;
}
.admin-layout.signed-out .admin-main {
  margin-left: 0;
}
.admin-layout.signed-out .admin-content {
  max-width: none;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  background:
    radial-gradient(900px 500px at 10% -10%, rgba(99, 102, 241, 0.25), transparent 60%),
    radial-gradient(800px 500px at 110% 110%, rgba(37, 99, 235, 0.22), transparent 60%),
    linear-gradient(180deg, #0a1020, #101a33);
}
/* Authentication pages: standalone full-screen layout, no dashboard chrome. */
body.auth-mode .layout { display: block; }
body.auth-mode .sidebar { display: none; }
body.auth-mode .topbar { display: none; }
body.auth-mode .auth-links { display: flex; gap: 0.5rem; }
body.auth-mode .sidebar-toggle { display: none; }
body.auth-mode .main { margin-left: 0; }
body.auth-mode #app { padding: 0; max-width: none; }
.auth-links { display: none; gap: 0.5rem; }
.auth-links a { text-decoration: none; }

.auth-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 0;
}
.auth-card-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  background:
    radial-gradient(900px 500px at 10% -10%, rgba(99, 102, 241, 0.35), transparent 60%),
    radial-gradient(800px 500px at 110% 110%, rgba(37, 99, 235, 0.3), transparent 60%),
    linear-gradient(180deg, #0a1020, #101a33);
}
.auth-card {
  width: 100%;
  max-width: 420px;
  padding: 2.5rem 2rem 2rem;
  background: #ffffff;
  border-radius: 24px;
  box-shadow: 0 50px 100px -30px rgba(0, 0, 0, 0.6);
  position: relative;
  overflow: hidden;
}
.auth-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, #6366f1, #2563eb, #6366f1);
}
.auth-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.25rem;
}
.auth-brand-mark {
  width: 40px; height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, #6366f1, #2563eb);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1.1rem;
  box-shadow: 0 8px 18px -6px rgba(79, 70, 229, 0.6);
  overflow: hidden;
}
.auth-brand-mark img { width: 100%; height: 100%; object-fit: contain; }
.auth-brand-name {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--a-text);
  letter-spacing: -0.01em;
}
.auth-card h1 {
  margin: 0.25rem 0 0.25rem;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--a-text);
  letter-spacing: -0.02em;
}
.auth-card .auth-sub {
  margin: 0 0 1.5rem;
  font-size: 0.92rem;
  color: var(--a-muted);
}
.auth-card form {
  display: grid;
  gap: 1rem;
}
.auth-card .field label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--a-text);
}
.auth-card input {
  padding: 0.7rem 0.85rem;
  border-radius: 10px;
  border: 1px solid #d9e0ea;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.auth-card input:focus {
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
  outline: none;
}
.auth-card button[type="submit"] {
  width: 100%;
  padding: 0.8rem 1rem;
  font-size: 0.98rem;
  font-weight: 600;
  background: linear-gradient(135deg, #6366f1, #2563eb);
  border-radius: 10px;
  margin-top: 0.25rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.auth-card button[type="submit"]:hover { transform: translateY(-1px); box-shadow: 0 8px 20px -6px rgba(79, 70, 229, 0.6); }
.auth-card button[type="submit"]:disabled { transform: none; box-shadow: none; }
.auth-card .auth-footer {
  margin-top: 1.25rem;
  text-align: center;
  font-size: 0.88rem;
  color: var(--a-muted);
}
.auth-card .auth-footer a { color: #6366f1; font-weight: 600; text-decoration: none; }
.auth-card .auth-footer a:hover { text-decoration: underline; }

/* ---- Premium 2FA challenge ---- */
.twofa-card { max-width: 440px; text-align: center; }
.twofa-shield {
  width: 56px; height: 56px; margin: 0 auto 0.75rem;
  border-radius: 16px;
  background: linear-gradient(135deg, #eef2ff, #dbeafe);
  color: #4f46e5;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.6rem;
  box-shadow: 0 8px 20px -8px rgba(79, 70, 229, 0.35);
}
.twofa-subtitle { margin: 0 0 1.25rem; color: var(--a-muted, #64748b); font-size: 0.92rem; }
.twofa-account {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.4rem 0.85rem; margin-bottom: 1.25rem;
  background: #f1f5f9; border: 1px solid #e2e8f0; border-radius: 999px;
  font-size: 0.85rem; color: #334155;
}
.twofa-account-label { color: #64748b; font-weight: 600; }
.twofa-account-email { font-weight: 700; color: #1e293b; word-break: break-all; }
.twofa-otp-section { margin: 0.15rem 0 0.75rem; }
.otp-wrap {
  display: flex; justify-content: center; gap: 0.4rem; flex-wrap: nowrap;
  max-width: 100%;
}
.otp-box {
  width: 44px; height: 52px; flex: 0 0 44px;
  border: 1.5px solid #d9e0ea; border-radius: 10px;
  background: #ffffff;
  text-align: center; font-size: 1.3rem; font-weight: 700; color: #0f172a;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  outline: none;
}
.otp-box:focus {
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.18);
  background: #f8faff;
}
.otp-box:disabled { opacity: 0.5; }
.recovery-wrap { margin: 0.25rem 0 1rem; }
.recovery-input {
  width: 100%; padding: 0.7rem 0.85rem; border-radius: 10px;
  border: 1px solid #d9e0ea; font-size: 0.95rem;
}
.recovery-input:focus { border-color: #6366f1; box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15); outline: none; }
.twofa-submit-wrap { position: relative; margin-top: 0.25rem; }
.twofa-submit {
  width: 100%; padding: 0.8rem 1rem; font-size: 0.98rem; font-weight: 600;
  background: linear-gradient(135deg, #6366f1, #2563eb);
  border-radius: 10px; border: 0; color: #fff; cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
}
.twofa-submit:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 8px 20px -6px rgba(79, 70, 229, 0.6); }
.twofa-submit:disabled { opacity: 0.6; cursor: not-allowed; transform: none; box-shadow: none; }
.twofa-submit.is-loading .twofa-spinner { display: inline-block; }
.twofa-spinner {
  display: none; width: 16px; height: 16px;
  border: 2px solid rgba(255,255,255,0.35); border-top-color: #fff;
  border-radius: 50%; animation: spin 0.7s linear infinite;
}
.twofa-toggle { margin-top: 1rem; }
.twofa-toggle-link {
  background: transparent; border: 0; color: #6366f1; font-weight: 600;
  font-size: 0.88rem; cursor: pointer; text-decoration: none;
}
.twofa-toggle-link:hover { text-decoration: underline; }
.twofa-back { margin-top: 1.25rem; font-size: 0.88rem; color: var(--a-muted, #64748b); }
.twofa-back a { color: #6366f1; font-weight: 600; text-decoration: none; }
.twofa-back a:hover { text-decoration: underline; }
.twofa-trust { margin-top: 0.75rem; font-size: 0.78rem; color: #94a3b8; }
@media (max-width: 480px) {
  .otp-box { width: 38px; height: 46px; flex: 0 0 38px; font-size: 1.15rem; }
  .otp-wrap { gap: 0.3rem; }
}
@media (max-width: 360px) {
  .otp-box { width: 34px; height: 42px; flex: 0 0 34px; font-size: 1.05rem; }
  .otp-wrap { gap: 0.25rem; }
}
/* Profile dropdown (user panel topbar) */
.profile-menu { position: relative; display: inline-block; }
.profile-avatar {
  width: 38px; height: 38px; border-radius: 50%; border: 0; cursor: pointer;
  background: linear-gradient(135deg, #e0e7ff, #c7d2fe); color: #4338ca;
  display: inline-flex; align-items: center; justify-content: center;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  box-shadow: 0 2px 6px rgba(99,102,241,0.25);
}
.profile-avatar:hover { background: linear-gradient(135deg, #c7d2fe, #a5b4fc); transform: translateY(-1px); box-shadow: 0 4px 10px rgba(99,102,241,0.35); }
.profile-avatar-icon { font-size: 1.25rem; line-height: 1; }
.profile-dropdown {
  position: absolute; top: calc(100% + 8px); right: 0;
  width: 320px; background: #fff; border: 1px solid #e6eaf3; border-radius: 14px;
  box-shadow: 0 20px 40px -12px rgba(15,23,42,0.25); z-index: 100;
  padding: 0; overflow: hidden;
  animation: profileDrop 0.18s ease-out;
}
@keyframes profileDrop { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: translateY(0); } }
.profile-dropdown[hidden] { display: none; }
.profile-dropdown-head { padding: 0.85rem 1rem 0.6rem; border-bottom: 1px solid #eef2f7; }
.profile-dropdown-title { font-weight: 700; font-size: 0.95rem; color: #0f172a; }
.profile-dropdown-body { padding: 0.75rem 1rem; display: grid; gap: 0.5rem; }
.profile-row { display: flex; justify-content: space-between; gap: 0.75rem; font-size: 0.85rem; }
.profile-label { color: var(--muted); font-weight: 600; }
.profile-value { color: var(--text); font-weight: 500; word-break: break-all; text-align: right; }
.profile-dropdown-foot { padding: 0.75rem 1rem 0.9rem; border-top: 1px solid #eef2f7; }
.profile-logout-btn {
  width: 100%; padding: 0.6rem 1rem; border-radius: 10px; border: 1.5px solid #6366f1;
  background: #fff; color: #6366f1; font-weight: 600; font-size: 0.92rem; cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.profile-logout-btn:hover { background: #6366f1; color: #fff; }
.limit-row {
  display: flex; align-items: center; flex-wrap: wrap; gap: 0.4rem;
  padding: 0.5rem 0.75rem;
  background: #f1f5f9; border: 1px solid #e2e8f0; border-radius: 8px;
  font-size: 0.9rem;
}
.limit-label { font-weight: 700; color: #1e293b; }
.limit-value { font-weight: 700; color: #2563eb; }
.limit-sep { color: transparent; }
.limit-apply { color: #2563eb; font-weight: 600; text-decoration: none; margin-left: auto; }
.order-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; flex-wrap: wrap; margin-bottom: 0.75rem; }
.order-panel-head h2 { margin: 0; }
.limit-apply:hover { text-decoration: underline; }
.radio-group { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.radio-opt { display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.4rem 0.75rem; border: 1px solid #d9e0ea; border-radius: 8px; cursor: pointer; font-size: 0.88rem; color: var(--a-text); transition: border-color 0.15s, background 0.15s; }
.radio-opt:has(input:checked) { border-color: #6366f1; background: rgba(99, 102, 241, 0.08); color: #6366f1; font-weight: 600; }
.radio-opt input { width: auto; margin: 0; }

@media (max-width: 768px) {
  .admin-sidebar {
    left: -248px;
    transition: left 0.25s ease;
  }
  .admin-sidebar.open {
    left: 0;
    box-shadow: 12px 0 40px rgba(0, 0, 0, 0.35);
  }
  .admin-main {
    margin-left: 0;
  }
  .admin-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .admin-topbar {
    padding: 0.75rem 1rem;
  }
  .admin-content {
    padding: 1rem;
  }
  .admin-user {
    display: none;
  }
}

/* ---- Modal ---- */
.modal-overlay { position: fixed; inset: 0; background: rgba(15, 23, 42, 0.45); display: flex; align-items: center; justify-content: center; padding: 1rem; z-index: 200; }
.modal { background: #fff; border-radius: var(--radius); box-shadow: 0 20px 50px rgba(15,23,42,0.28); padding: 1.25rem; width: min(520px, 100%); max-height: 90vh; overflow: auto; display: grid; gap: 0.75rem; }

/* Recharge dialog */
.recharge-modal { padding: 0; gap: 0; width: min(560px, calc(100% - 2rem)); overflow: hidden; border-radius: 10px; }
.recharge-head { display: flex; align-items: center; justify-content: space-between; padding: 0.95rem 1.25rem; background: #5b8dff; color: #fff; font-size: 1.05rem; font-weight: 600; }
.recharge-head button.recharge-close { background: transparent; box-shadow: none; color: #fff; padding: 0 0.25rem; font-size: 1rem; line-height: 1; }
.recharge-head button.recharge-close:hover { background: rgba(255,255,255,0.15); }
.recharge-body { display: grid; gap: 1.1rem; padding: 1.4rem 1.5rem 1rem; }
.recharge-body label { display: grid; gap: 0.45rem; color: var(--text); font-size: 0.92rem; font-weight: 600; }
.recharge-body input { height: 42px; padding: 0.5rem 0.8rem; background: #fff; border: 1px solid #d9e0ea; border-radius: 6px; color: var(--text); font-size: 0.95rem; font-weight: 400; }
.recharge-body input[readonly] { background: #f6f8fb; color: #8a94a6; }
.recharge-body input:focus { border-color: #5b8dff; outline: 2px solid #cfe0ff; }
.recharge-body .req { color: #e5484d; }
.recharge-body .field-error { color: #e5484d; font-size: 0.82rem; font-weight: 400; }
.recharge-body .field-error[hidden] { display: none; }
.recharge-foot { display: flex; justify-content: flex-end; gap: 0.6rem; padding: 0.9rem 1.5rem 1.3rem; }
.recharge-foot button { padding: 0.55rem 1.25rem; border-radius: 6px; font-size: 0.95rem; }
.recharge-foot button.cancel { background: #eef4ff; color: #4f7cff; }
.recharge-foot button.cancel:hover { background: #dfeaff; }
.recharge-foot button.confirm { background: #5b8dff; color: #fff; }
.recharge-foot button.confirm:hover { background: #4a7cf5; }
.recharge-foot button:disabled { opacity: 0.6; cursor: not-allowed; }
.refund-banner { padding: 0.6rem 0.8rem; border-radius: 6px; background: #fff7e6; color: #d97706; font-size: 0.9rem; font-weight: 400; }

/* Funding record dialog */
.funding-modal { padding: 0; gap: 0; width: min(880px, calc(100% - 2rem)); overflow: hidden; border-radius: 10px; }
.funding-body-wrap { display: grid; gap: 1rem; padding: 1.25rem 1.5rem 1.5rem; }
.funding-summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 0.9rem 1.25rem; }
.funding-stat .label { color: var(--muted); font-size: 0.85rem; font-weight: 600; margin-bottom: 0.2rem; }
.funding-filter label { display: inline-grid; gap: 0.3rem; font-size: 0.88rem; color: var(--muted); }
.funding-filter select { min-width: 180px; height: 38px; padding: 0.4rem 0.6rem; border: 1px solid #d9e0ea; border-radius: 6px; background: #fff; color: var(--text); }
.funding-body .table-wrap { max-height: 380px; overflow: auto; }

/* Confirmation dialogs (freeze, unfreeze, delete) */
.dialog-modal { padding: 0; gap: 0; width: min(520px, calc(100% - 2rem)); overflow: hidden; border-radius: 12px; }
.dialog-head { display: flex; align-items: flex-start; gap: 0.85rem; padding: 1.4rem 1.5rem 1rem; }
.dialog-icon { flex: 0 0 38px; width: 38px; height: 38px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 1.1rem; }
.dialog-icon.warn { background: #fff7e6; color: #d97706; }
.dialog-icon.ok { background: #ecfdf3; color: #15803d; }
.dialog-icon.danger { background: #fff1ee; color: #f0603f; }
.dialog-titles { flex: 1; min-width: 0; }
.dialog-title { font-size: 1.1rem; font-weight: 600; color: var(--text); }
.dialog-sub { margin-top: 0.2rem; font-size: 0.88rem; color: var(--muted); }
.dialog-modal button.dialog-x { background: transparent; box-shadow: none; color: var(--muted); padding: 0 0.25rem; font-size: 1rem; line-height: 1; }
.dialog-modal button.dialog-x:hover { color: var(--text); background: #f1f4f9; }
.dialog-body { padding: 0.25rem 1.5rem 1.1rem 4.9rem; }
.dialog-list { margin: 0; padding-left: 1.1rem; display: grid; gap: 0.5rem; color: var(--text); font-size: 0.92rem; line-height: 1.5; }
.dialog-body .field-error { color: #e5484d; font-size: 0.82rem; }
.dialog-foot { display: flex; justify-content: flex-end; gap: 0.6rem; padding: 0.95rem 1.5rem; border-top: 1px solid #eef1f6; }
.dialog-foot button { padding: 0.55rem 1.25rem; border-radius: 6px; font-size: 0.95rem; }
.dialog-foot button.dialog-cancel { background: #eef4ff; color: #4f7cff; }
.dialog-foot button.dialog-cancel:hover { background: #dfeaff; }
.dialog-foot button.dialog-confirm.warn,
.dialog-foot button.dialog-confirm.ok { background: #5b8dff; color: #fff; }
.dialog-foot button.dialog-confirm.warn:hover,
.dialog-foot button.dialog-confirm.ok:hover { background: #4a7cf5; }
.dialog-foot button.dialog-confirm.danger { background: #f97360; color: #fff; }
.dialog-foot button.dialog-confirm.danger:hover { background: #ea5f4c; }
.dialog-foot button:disabled { opacity: 0.6; cursor: not-allowed; }
@media (max-width: 560px) { .dialog-body { padding-left: 1.5rem; } }


/* ---- Create card page ---- */
.create-card-page { display: grid; gap: 1.1rem; }
.create-card-head h1 { margin: 0 0 0.25rem; font-size: 1.5rem; }
.create-card-head p { margin: 0; font-size: 0.92rem; }
.product-table-wrap { overflow-x: auto; border-radius: 12px; }
.product-table { min-width: 1200px; }

/* Mobile: turn the wide product table into stacked cards so no horizontal scroll is needed. */
@media (max-width: 720px) {
  .table-wrap.product-table-wrap { overflow: visible; }
  .product-table { min-width: 0 !important; width: 100% !important; max-width: 100% !important; display: block !important; }
  .product-table tr, .product-table td { max-width: 100% !important; overflow-wrap: anywhere; }
  .create-card-page, .product-lookup { display: grid; grid-template-columns: minmax(0, 1fr); min-width: 0; max-width: 100%; width: 100%; }
  .create-card-page > *, .product-lookup > * { min-width: 0; max-width: 100%; }
  .product-table-wrap { width: 100%; min-width: 0; }
  #app { min-width: 0; max-width: 100%; }
  .product-table td { min-width: 0; }
  .product-table td > * { min-width: 0; max-width: 100%; }
  .product-table td.details-cell { overflow-wrap: anywhere; }
  .product-table, .product-table thead, .product-table tbody, .product-table tr, .product-table th, .product-table td { display: block; width: 100%; }
  .product-table thead { display: none; }
  .product-table tr {
    background: #fff; border: 1px solid var(--line); border-radius: 12px;
    margin-bottom: 0.9rem; padding: 0.6rem 0.9rem; box-shadow: 0 2px 8px rgba(15,23,42,0.04);
  }
  .product-table td {
    display: flex; flex-direction: column; align-items: stretch; gap: 0.25rem;
    padding: 0.5rem 0; border: 0; border-bottom: 1px solid #f1f5f9; font-size: 0.88rem;
    min-width: 0; max-width: 100%;
  }
  .product-table td:last-child { border-bottom: 0; padding-top: 0.6rem; }
  .product-table td::before {
    content: attr(data-label);
    font-size: 0.75rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em;
    margin-bottom: 0.15rem;
  }
  .product-table td.details-cell { flex-direction: column; align-items: stretch; }
  .product-table td.details-cell::before { margin-bottom: 0.2rem; }
  .product-table td .activate-btn {
    display: block !important; width: 100% !important; max-width: 100% !important; min-width: 0 !important;
    box-sizing: border-box !important; white-space: normal !important;
    padding: 0.6rem 0.9rem !important; margin-top: 0.25rem;
  }
  .product-table td:last-child { overflow: hidden; }
  .product-table td .region,
  .product-table td .scenario-pill,
  .product-table td .network-chip,
  .product-table td .mono { white-space: normal; word-break: break-word; overflow-wrap: anywhere; }
  .product-table tr { box-sizing: border-box; width: 100%; max-width: 100%; }
  .product-table td { min-width: 0; }
}
.product-table th { font-size: 0.8rem; color: #475569; background: #f1f5fb; }
.product-table td { font-size: 0.9rem; vertical-align: middle; color: var(--text); padding: 0.4rem 0.55rem; }
.product-table th { padding: 0.45rem 0.55rem; }
.product-table td.strong, .product-table td.mono.strong { font-weight: 700; }
.product-table .mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.85rem; }
.network-chip { display: inline-flex; align-items: center; gap: 0.5rem; white-space: nowrap; }
.network-dots { position: relative; display: inline-block; width: 26px; height: 16px; }
.network-dots .dot { position: absolute; top: 0; width: 16px; height: 16px; border-radius: 50%; }
.network-dots .dot-2 { left: 10px; }
.network-dots.net-mastercard .dot { background: #eb001b; }
.network-dots.net-mastercard .dot-2 { background: #f79e1b; opacity: 0.95; }
.network-dots.net-visa .dot, .network-dots.net-visa .dot-2 { background: #1a1f71; }
.network-dots.net-other .dot { background: #64748b; }
.network-dots.net-other .dot-2 { background: #94a3b8; }
.region { white-space: nowrap; color: var(--text); }
.scenario-pill { display: inline-block; padding: 0.2rem 0.7rem; border-radius: 999px; background: #eef3ff; color: var(--brand); font-size: 0.82rem; white-space: nowrap; }
.details-cell { max-width: 320px; color: var(--muted); font-size: 0.85rem; line-height: 1.45; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.activate-btn { padding: 0.3rem 0.6rem; border-radius: 7px; font-size: 0.8rem; white-space: nowrap; text-decoration: none; line-height: 1.2; }

/* ---- Product order page ---- */
.order-page { display: grid; gap: 1.25rem; max-width: 1180px; }
.order-hero {
  position: relative; overflow: hidden; border-radius: 18px; padding: 1.5rem 1.75rem;
  background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 55%, #2563eb 100%);
  color: #fff; box-shadow: 0 24px 50px -28px rgba(30, 58, 138, 0.7);
}
.order-hero::after {
  content: ""; position: absolute; right: -60px; top: -60px; width: 240px; height: 240px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.18), transparent 70%); pointer-events: none;
}
.order-back { color: #bfdbfe; font-size: 0.85rem; font-weight: 600; text-decoration: none; }
.order-back:hover { color: #fff; text-decoration: none; }
.order-hero-main { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-top: 0.6rem; }
.order-hero h1 { margin: 0; font-size: 1.7rem; font-weight: 700; letter-spacing: -0.02em; color: #fff; }
.order-code { margin-top: 0.3rem; color: #bfdbfe; font-size: 0.85rem; }
.order-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.hero-chip {
  display: inline-flex; align-items: center; gap: 0.45rem; padding: 0.35rem 0.75rem; border-radius: 999px;
  background: rgba(255,255,255,0.14); border: 1px solid rgba(255,255,255,0.22); color: #fff; font-size: 0.82rem; font-weight: 600;
  backdrop-filter: blur(6px);
}
.hero-chip .network-chip { color: #fff; }

.order-grid { display: grid; gap: 1.25rem; grid-template-columns: 1.1fr 1fr; align-items: start; }
@media (max-width: 900px) { .order-grid { grid-template-columns: 1fr; } }
.order-card {
  background: #fff; border: 1px solid #e6eaf3; border-radius: 16px; padding: 1.5rem;
  box-shadow: 0 1px 2px rgba(15,23,42,0.04), 0 14px 34px -22px rgba(15,23,42,0.22);
}
.order-card h2 { font-size: 1.05rem; font-weight: 700; margin: 0 0 0.75rem; color: var(--text); }
.order-desc { color: var(--muted); font-size: 0.92rem; line-height: 1.55; margin: 0 0 1.1rem; }
.order-note { color: var(--muted); font-size: 0.8rem; margin: 1rem 0 0; }

.spec-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; }
.spec-item { padding: 0.8rem 0.9rem; border-radius: 12px; background: #f6f8fc; border: 1px solid #edf1f7; }
.spec-label { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.spec-value { margin-top: 0.3rem; font-size: 0.95rem; font-weight: 600; color: var(--text); }

.order-panel h2 { margin-bottom: 1rem; }
.order-form { display: grid; gap: 1.1rem; }
.order-field { display: grid; gap: 0.4rem; }
.order-label { font-size: 0.8rem; font-weight: 700; color: var(--text); }
.order-hint { font-size: 0.78rem; color: var(--muted); }
.amount-wrap { position: relative; }
.amount-wrap .amount-prefix {
  position: absolute; left: 0.9rem; top: 50%; transform: translateY(-50%); color: var(--muted); font-weight: 700; pointer-events: none;
}
.order-page input { height: 46px; border-radius: 11px; border: 1px solid #d5dce9; padding: 0.6rem 0.85rem; font-size: 0.95rem; }
.order-page input.amount-input { padding-left: 2rem; font-size: 1.15rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.order-page input:focus { border-color: #818cf8; box-shadow: 0 0 0 4px rgba(99,102,241,0.14); outline: none; }
.preset-row { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-top: 0.1rem; }
.preset-chip {
  background: #f1f5fb; color: var(--text); border: 1px solid #e0e7f2; border-radius: 999px; padding: 0.3rem 0.8rem; font-size: 0.8rem; font-weight: 600; box-shadow: none;
}
.preset-chip:hover { background: #e4ecfb; border-color: #c7d6f6; filter: none; }
.name-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem; align-items: start; }
@media (max-width: 560px) { .name-grid { grid-template-columns: 1fr; } }

.fee-breakdown {
  display: grid; gap: 0.5rem; padding: 1rem 1.1rem; border-radius: 14px;
  background: linear-gradient(180deg, #f8faff, #f3f6fd); border: 1px solid #e3eaf7;
}
.fee-title { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.2rem; }
.fee-row { display: flex; justify-content: space-between; gap: 1rem; font-size: 0.9rem; color: #334155; }
.fee-row .mono { font-family: inherit; font-variant-numeric: tabular-nums; font-weight: 600; color: var(--text); }
.fee-row.total { margin-top: 0.35rem; padding-top: 0.6rem; border-top: 1px dashed #cbd5e1; font-size: 1rem; font-weight: 700; color: var(--text); }
.fee-row.total .mono { font-size: 1.05rem; color: var(--brand); }

.order-submit {
  width: 100%; height: 50px; border-radius: 12px; border: 0; font-size: 1rem; font-weight: 700; color: #fff;
  background: linear-gradient(135deg, #4f46e5, #2563eb); box-shadow: 0 14px 28px -14px rgba(79,70,229,0.8);
}
.order-submit:hover { filter: brightness(1.05); }
.order-submit:disabled { opacity: 0.55; box-shadow: none; }
.order-panel .notice { margin-top: 0.25rem; }

/* ---- Deposit QR code ---- */
.deposit-qr { width: 180px; height: 180px; border: 1px solid var(--line); border-radius: 12px; padding: 6px; background: #fff; object-fit: contain; }
.qr-preview { min-height: 60px; display: flex; align-items: center; justify-content: center; }
.qr-preview img { max-width: 140px; max-height: 140px; border-radius: 8px; border: 1px solid var(--line); }
.qr-preview span { padding: 0.5rem; }

/* ---- Wallet page ---- */
.wallet-page { display: grid; gap: 1.25rem; max-width: 1180px; }
.wallet-hero {
  position: relative; overflow: hidden; border-radius: 20px; padding: 2rem 2.25rem;
  background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 50%, #4f46e5 100%);
  color: #fff; box-shadow: 0 30px 60px -34px rgba(30, 58, 138, 0.75);
}
.wallet-hero::after {
  content: ""; position: absolute; right: -80px; top: -80px; width: 280px; height: 280px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.16), transparent 70%); pointer-events: none;
}
.wallet-hero-label { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #bfdbfe; }
.wallet-hero-value { margin-top: 0.35rem; font-size: 2.6rem; font-weight: 800; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; color: #fff; }
.wallet-hero-sub { margin-top: 0.5rem; font-size: 0.9rem; color: #cbd5e1; }
.wallet-hero-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-top: 1.5rem; }
@media (max-width: 640px) { .wallet-hero-stats { grid-template-columns: 1fr; } }
.wallet-stat { padding: 0.85rem 1rem; border-radius: 14px; background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.16); backdrop-filter: blur(6px); }
.wallet-stat .label { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: #cbd5e1; }
.wallet-stat .value { margin-top: 0.3rem; font-size: 1.2rem; font-weight: 700; font-variant-numeric: tabular-nums; color: #fff; }
.wallet-stat .value.in { color: #a7f3d0; }
.wallet-stat .value.out { color: #fecaca; }
.wallet-ledger-card { padding: 1.35rem 1.5rem; }
.wallet-ledger-head { justify-content: space-between; align-items: center; margin-bottom: 0.75rem; }
.wallet-ledger-head h2 { margin: 0; }
.ledger-kind { font-weight: 600; color: var(--text); }
.ledger-kind.in::before { content: ''; }
.ledger-amount { font-weight: 700; font-variant-numeric: tabular-nums; }
.ledger-amount.in { color: #047857; }
.ledger-amount.out { color: #b91c1c; }

/* ---- Product lookup page ---- */
.product-lookup { display: grid; gap: 0.9rem; }
.product-lookup-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.85rem 1.15rem; border-radius: 12px;
  background: linear-gradient(180deg, #f8fafc, #eef2f8); border: 1px solid #e2e8f0;
  font-weight: 700; color: var(--text);
}
.product-lookup-count { font-size: 0.85rem; font-weight: 600; color: var(--muted); }

/* ---- Deposit address row ---- */
.deposit-address-row { align-items: center; gap: 0.5rem; }
.deposit-address-row .value { flex: 1; word-break: break-all; }

/* ---- Nav badge (pending deposits counter) ---- */
.nav-badge {
  margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px;
  border-radius: 999px; background: #ef4444; color: #fff;
  font-size: 0.7rem; font-weight: 700; display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.25);
}

/* ---- User deposit page ---- */
.deposit-page { display: grid; gap: 1.25rem; max-width: 980px; margin: 0 auto; }
.deposit-head { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.deposit-head h1 { margin: 0; font-size: 1.5rem; letter-spacing: -0.02em; }
.deposit-head p { margin: 0.2rem 0 0; font-size: 0.9rem; }
.deposit-back {
  display: inline-flex; align-items: center; padding: 0.45rem 0.8rem; border-radius: 10px;
  background: #fff; border: 1px solid var(--line); color: var(--text); font-size: 0.88rem; font-weight: 600;
  text-decoration: none; box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
}
.deposit-back:hover { background: #f5f8ff; text-decoration: none; }

.deposit-card {
  background: #fff; border: 1px solid #e6eaf3; border-radius: 18px; padding: 1.6rem 1.75rem;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 16px 36px -24px rgba(15, 23, 42, 0.22);
  display: grid; gap: 1.5rem;
}
.deposit-step { display: grid; gap: 0.9rem; }
.deposit-step-title {
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted);
}
.deposit-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
@media (max-width: 640px) { .deposit-grid { grid-template-columns: 1fr; } }
.deposit-grid label { display: grid; gap: 0.4rem; font-size: 0.82rem; font-weight: 600; color: var(--text); }
.deposit-grid .small { font-weight: 400; color: var(--muted); }
.deposit-select, .deposit-page input[type="number"], .deposit-page input[type="text"] {
  height: 46px; border-radius: 11px; border: 1px solid #d5dce9; padding: 0.6rem 0.85rem;
  font-size: 0.95rem; background: #fff; color: var(--text);
}
.deposit-page input:focus, .deposit-select:focus { outline: none; border-color: #818cf8; box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.14); }

.deposit-details { display: grid; }
.deposit-address-card {
  display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 1.5rem; align-items: center;
  padding: 1.25rem; border-radius: 16px;
  background: linear-gradient(180deg, #f8faff, #f2f6fd); border: 1px solid #e3eaf7;
}
@media (max-width: 640px) { .deposit-address-card { grid-template-columns: 1fr; justify-items: center; } }
.deposit-qr-img {
  width: 200px; height: 200px; object-fit: contain; border-radius: 14px; background: #fff; padding: 10px;
  border: 1px solid #e3eaf7; box-shadow: 0 10px 24px -16px rgba(15, 23, 42, 0.3);
}
.deposit-qr-placeholder {
  width: 200px; height: 200px; border-radius: 14px; border: 1px dashed #cbd5e1; display: flex;
  align-items: center; justify-content: center; color: var(--muted); font-size: 0.85rem; background: #fff;
}
.deposit-address-body { display: grid; gap: 0.7rem; min-width: 0; }
.deposit-label { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.deposit-address-line { display: flex; align-items: center; gap: 0.6rem; }
.deposit-address-text {
  flex: 1; min-width: 0; padding: 0.7rem 0.85rem; border-radius: 11px; background: #fff; border: 1px solid #dfe6f1;
  font-size: 0.85rem; word-break: break-all; color: var(--text);
}
.deposit-meta { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.deposit-chip {
  padding: 0.25rem 0.65rem; border-radius: 999px; background: #fff; border: 1px solid #dfe6f1;
  font-size: 0.78rem; font-weight: 600; color: #334155;
}

.deposit-rules { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.deposit-rule {
  padding: 0.7rem 0.95rem; border-radius: 12px; font-size: 0.88rem; line-height: 1.5; border: 1px solid;
}
.deposit-rule.warn { background: #fff8eb; border-color: #fde7b0; color: #8a5a00; }
.deposit-rule.info { background: #f1f6ff; border-color: #d3e1ff; color: #1e3a8a; }

.deposit-form { display: grid; gap: 1.25rem; }
.deposit-submit {
  height: 50px; border: 0; border-radius: 12px; font-size: 1rem; font-weight: 700; color: #fff;
  background: linear-gradient(135deg, #4f46e5, #2563eb); box-shadow: 0 14px 28px -14px rgba(79, 70, 229, 0.8); cursor: pointer;
}
.deposit-submit:hover { filter: brightness(1.05); }
.deposit-submit:disabled { opacity: 0.55; cursor: not-allowed; }

.deposit-history { gap: 1rem; padding: 1.35rem 1.5rem; }
.deposit-history-head { display: flex; align-items: center; justify-content: space-between; }
.deposit-history-head h2 { margin: 0; font-size: 1.05rem; }
.deposit-hash { font-size: 0.78rem; word-break: break-all; }
.deposit-empty { text-align: center; color: var(--muted); padding: 1.5rem; margin: 0; }
.deposit-page .table-wrap { border-radius: 14px; overflow-x: auto; }
/* ---- Landing page (signed-out home) ---- */
body.landing-mode .layout { display: none !important; }
body:not(.landing-mode) #landing { display: none !important; }

#landing.landing-host { display: block; }

.landing {
  font-family: "Fira Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: #1c2430;
  background: #f5f7fb;
  overflow-x: clip;
  padding-top: 72px;
}

/* Hero */
.landing-hero {
  position: relative;
  overflow: hidden;
  padding: 2.5rem 1.25rem 4rem;
  background: linear-gradient(135deg, #1a0033 0%, #4a0e6b 40%, #ec4899 100%);
  color: #fff;
}
.landing-hero-bg { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.landing-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.55;
  animation: landing-float 8s ease-in-out infinite;
}
.landing-blob-1 { width: 420px; height: 420px; background: #ec4899; top: -120px; left: -80px; }
.landing-blob-2 { width: 360px; height: 360px; background: #f97316; bottom: -100px; right: -60px; animation-delay: 2s; }
.landing-blob-3 { width: 280px; height: 280px; background: #a855f7; top: 40%; left: 45%; animation-delay: 4s; opacity: 0.35; }
@keyframes landing-float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(30px, -20px) scale(1.08); }
}

.landing-hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3rem;
  align-items: center;
}
.landing-hero-centered {
  grid-template-columns: 1fr;
  text-align: center;
  justify-items: center;
  gap: 2.5rem;
}
.landing-hero-centered .landing-hero-text { justify-items: center; }
.landing-hero-centered .landing-hero-actions { justify-content: center; }
.landing-hero-centered .landing-trust { justify-content: center; }
.landing-hero-centered .landing-subtitle { margin-left: auto; margin-right: auto; }
.landing-hero-card-centered { justify-content: center; }
@media (max-width: 900px) {
  .landing-hero-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .landing-hero { padding: 1.5rem 1.25rem 3rem; }
}

.landing-hero-text { display: grid; gap: 1.25rem; }
.landing-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #e0e7ff;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  backdrop-filter: blur(6px);
  width: fit-content;
}
.landing-title {
  margin: 0;
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: #fff;
}
.landing-subtitle {
  margin: 0;
  font-size: 1.1rem;
  line-height: 1.6;
  color: #cbd5e1;
  max-width: 520px;
}
.landing-hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 0.5rem; }
.landing-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.6rem;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.12s ease, box-shadow 0.2s ease, filter 0.2s ease;
  cursor: pointer;
}
.landing-btn:hover { text-decoration: none; }
.landing-btn-primary {
  background: linear-gradient(135deg, #ec4899, #f97316);
  color: #fff;
  box-shadow: 0 14px 32px -12px rgba(236, 72, 153, 0.7);
}
.landing-btn-primary:hover { filter: brightness(1.08); transform: translateY(-1px); box-shadow: 0 18px 36px -12px rgba(236, 72, 153, 0.8); }
.landing-btn-ghost {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(6px);
}
.landing-btn-ghost:hover { background: rgba(255, 255, 255, 0.16); }
.landing-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  margin-top: 0.75rem;
  font-size: 0.85rem;
  color: #94a3b8;
}
.landing-trust span::before {
  content: "\2713";
  display: inline-block;
  margin-right: 0.4rem;
  color: #34d399;
  font-weight: 700;
}

/* Hero card mockup */
.landing-hero-card { display: flex; justify-content: center; }
.landing-card {
  width: 100%;
  max-width: 360px;
  background: linear-gradient(135deg, #4a0e6b 0%, #a855f7 50%, #ec4899 100%);
  border-radius: 20px;
  padding: 1.5rem;
  color: #fff;
  box-shadow: 0 40px 80px -30px rgba(74, 14, 107, 0.7), inset 0 1px 0 rgba(255,255,255,0.15);
  transform: rotate(-3deg);
  transition: transform 0.4s ease;
  position: relative;
  overflow: hidden;
}
.landing-card::before {
  content: "";
  position: absolute;
  top: -60px; right: -60px;
  width: 180px; height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.18), transparent 70%);
}
.landing-card:hover { transform: rotate(0deg) translateY(-4px); }
.landing-card-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 2.5rem; }
.landing-card-logo { height: 28px; width: auto; object-fit: contain; filter: brightness(0) invert(1); }
.landing-card-logo-mark {
  width: 36px; height: 36px; border-radius: 10px;
  background: rgba(255,255,255,0.18);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1.1rem; color: #fff;
  backdrop-filter: blur(4px);
}
.landing-card-chip {
  width: 42px; height: 30px; border-radius: 6px;
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.2);
  position: relative;
}
.landing-card-chip::after {
  content: ""; position: absolute; inset: 6px 8px;
  border-left: 1px solid rgba(0,0,0,0.25);
  border-right: 1px solid rgba(0,0,0,0.25);
}
.landing-card-number {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  margin-bottom: 1.5rem;
  text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}
.landing-card-row { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 0.5rem; }
.landing-card-label { font-size: 0.62rem; text-transform: uppercase; letter-spacing: 0.08em; color: rgba(255,255,255,0.65); margin-bottom: 0.2rem; }
.landing-card-value { font-size: 0.85rem; font-weight: 600; }

/* Sections */
.landing-section {
  padding: 5rem 1.25rem;
  background: #fff;
}
.landing-section-alt {
  background: linear-gradient(180deg, #f5f7fb 0%, #eef2fa 100%);
}
.landing-section-head {
  max-width: 720px;
  margin: 0 auto 3rem;
  text-align: center;
  display: grid;
  gap: 0.75rem;
}
.landing-eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #4f46e5;
}
.landing-h2 {
  margin: 0;
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  color: #0f172a;
  line-height: 1.15;
}
.landing-section-sub {
  margin: 0;
  font-size: 1.05rem;
  color: #64748b;
  line-height: 1.6;
}

/* Features */
.landing-features {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.landing-feature {
  background: #fff;
  border: 1px solid #e6eaf3;
  border-radius: 18px;
  padding: 2rem 1.75rem;
  box-shadow: 0 1px 2px rgba(15,23,42,0.04), 0 14px 34px -22px rgba(15,23,42,0.18);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: grid;
  gap: 0.75rem;
  align-content: start;
}
.landing-feature:hover {
  transform: translateY(-4px);
  box-shadow: 0 2px 4px rgba(15,23,42,0.06), 0 20px 44px -20px rgba(15,23,42,0.22);
}
.landing-feature-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, #eef2ff, #e0e7ff);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
}
.landing-feature-title {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
  color: #0f172a;
}
.landing-feature-text {
  margin: 0;
  font-size: 0.92rem;
  color: #64748b;
  line-height: 1.6;
}

/* Steps */
.landing-steps {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  gap: 1.25rem;
}
.landing-step {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  padding: 1.5rem;
  background: #fff;
  border: 1px solid #e6eaf3;
  border-radius: 16px;
  box-shadow: 0 1px 2px rgba(15,23,42,0.04), 0 10px 28px -16px rgba(15,23,42,0.12);
}
.landing-step-num {
  flex: 0 0 44px;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #4f46e5, #2563eb);
  color: #fff;
  font-weight: 800;
  font-size: 1.1rem;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 18px -6px rgba(79, 70, 229, 0.6);
}
.landing-step-title {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: #0f172a;
}
.landing-step-text {
  margin: 0;
  font-size: 0.92rem;
  color: #64748b;
  line-height: 1.55;
}

.wd-amount { flex: 1; min-width: 140px; }

/* Support / Apple Pay banner */
.support-ad {
  display: flex; align-items: center; gap: 1rem; flex-wrap: wrap;
  padding: 1rem 1.25rem; border-radius: 16px; margin: 1rem 0;
  background: linear-gradient(135deg, #111827 0%, #312e81 55%, #db2777 100%);
  color: #fff; box-shadow: 0 18px 40px -22px rgba(219, 39, 119, 0.6);
}
.support-ad-icon { font-size: 1.6rem; line-height: 1; }
.support-ad-text { flex: 1; min-width: 200px; display: grid; gap: 0.15rem; }
.support-ad-text strong { font-size: 1rem; }
.support-ad-text span { font-size: 0.9rem; color: #e0e7ff; }
.support-ad-btn {
  padding: 0.6rem 1.1rem; border-radius: 999px; background: #fff; color: #1e1b4b;
  font-weight: 700; font-size: 0.9rem; text-decoration: none; white-space: nowrap;
}
.support-ad-btn:hover { text-decoration: none; filter: brightness(0.95); }
.landing-support-ad { max-width: 1100px; margin: 0 auto; padding: 0 1.25rem; }
.landing-support-ad .support-ad { margin: 1.5rem 0; }

/* Automation section */
.landing-automation { padding: 5rem 1.25rem; background: #fff; }
.landing-automation-grid {
  max-width: 1100px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem;
}
@media (max-width: 900px) { .landing-automation-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .landing-automation-grid { grid-template-columns: 1fr; } }
.landing-automation-item {
  display: flex; gap: 1rem; align-items: flex-start;
  padding: 1.25rem; border-radius: 16px;
  background: linear-gradient(135deg, #fdf2f8 0%, #fff7ed 100%);
  border: 1px solid #fce7f3; transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.landing-automation-item:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -18px rgba(236, 72, 153, 0.35); }
.landing-automation-icon { font-size: 1.75rem; line-height: 1; }
.landing-automation-title { margin: 0 0 0.25rem; font-size: 1.05rem; font-weight: 700; color: #1c2430; }
.landing-automation-text { margin: 0; font-size: 0.9rem; color: #475569; line-height: 1.5; }
.landing-automation-note {
  max-width: 720px; margin: 2rem auto 0; text-align: center;
  display: flex; align-items: center; justify-content: center; gap: 0.6rem;
  padding: 1rem 1.5rem; border-radius: 999px;
  background: linear-gradient(135deg, #ec4899, #f97316); color: #fff; font-weight: 600;
}
.landing-automation-check { font-size: 1.2rem; }

/* Scenario coverage (dark) */
.landing-scen { background: #0f172a; color: #e2e8f0; padding: 5rem 1.25rem; }
.landing-scen-inner {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 3rem; align-items: center;
}
@media (max-width: 900px) { .landing-scen-inner { grid-template-columns: 1fr; } }
.landing-scen-left { display: grid; gap: 1rem; }
.landing-scen-badge {
  justify-self: start; padding: 0.35rem 0.9rem; border-radius: 999px;
  background: rgba(99, 102, 241, 0.15); border: 1px solid rgba(129, 140, 248, 0.4);
  color: #c7d2fe; font-size: 0.8rem; font-weight: 600;
}
.landing-scen-eyebrow { color: #a5b4fc; font-size: 0.85rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.landing-scen-title { margin: 0 0 0.5rem; font-size: clamp(1.75rem, 3.5vw, 2.5rem); font-weight: 800; line-height: 1.15; color: #fff; }
.landing-scen-list { display: grid; gap: 0.9rem; }
.landing-scen-card {
  display: flex; gap: 1rem; align-items: flex-start;
  padding: 1.25rem; border-radius: 16px;
  background: #1e293b; border: 1px solid #334155;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.landing-scen-card:hover { border-color: #ec4899; transform: translateY(-2px); }
.landing-scen-icon {
  flex: 0 0 44px; width: 44px; height: 44px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center; font-size: 1.25rem;
  background: linear-gradient(135deg, #4f46e5, #9333ea);
}
.landing-scen-body { flex: 1; min-width: 0; }
.landing-scen-row { display: flex; justify-content: space-between; align-items: center; gap: 0.75rem; flex-wrap: wrap; }
.landing-scen-card-title { margin: 0; font-size: 1.05rem; font-weight: 700; color: #fff; }
.landing-scen-pill {
  padding: 0.2rem 0.7rem; border-radius: 999px; font-size: 0.75rem; font-weight: 600;
  background: #312e81; color: #c7d2fe; white-space: nowrap;
}
.landing-scen-card-text { margin: 0.4rem 0 0; font-size: 0.9rem; color: #94a3b8; line-height: 1.55; }
.landing-scen-right { position: relative; }
.landing-scen-panel {
  padding: 1.5rem; border-radius: 20px;
  background: #1e293b; border: 1px solid #334155;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.6);
}
.landing-scen-panel-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.75rem; color: #e2e8f0; font-weight: 600; }
.landing-scen-sample { font-size: 0.75rem; color: #94a3b8; padding: 0.2rem 0.6rem; border-radius: 999px; border: 1px solid #475569; }
.landing-scen-chart svg { display: block; height: auto; }
.landing-scen-summary {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 1rem; padding: 0.9rem 1rem; border-radius: 12px;
  background: #0f172a; border: 1px solid #334155; color: #cbd5e1; font-size: 0.9rem;
}
.landing-scen-summary-value { font-family: ui-monospace, Consolas, monospace; color: #f472b6; font-weight: 800; font-size: 1.15rem; }
.landing-scen-bar { margin-top: 0.9rem; height: 6px; border-radius: 999px; background: #334155; overflow: hidden; }
.landing-scen-bar span { display: block; height: 100%; width: 78%; border-radius: 999px; background: linear-gradient(90deg, #ec4899, #f97316); }

/* CTA banner */
.landing-cta {
  padding: 5rem 1.25rem;
  background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 50%, #4f46e5 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.landing-cta::before {
  content: "";
  position: absolute;
  top: -100px; right: -100px;
  width: 320px; height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(99,102,241,0.35), transparent 70%);
}
.landing-cta-inner {
  position: relative;
  z-index: 2;
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  display: grid;
  gap: 1rem;
}
.landing-cta-title {
  margin: 0;
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  color: #fff;
}
.landing-cta-text {
  margin: 0;
  font-size: 1.05rem;
  color: #cbd5e1;
  line-height: 1.6;
}

/* Footer */
.landing-footer {
  padding: 3rem 1.25rem 2rem;
  background: #0a1020;
  color: #94a3b8;
}
.landing-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 2rem;
  align-items: start;
}
@media (max-width: 720px) {
  .landing-footer-inner { grid-template-columns: 1fr; gap: 1.5rem; }
}
.landing-footer-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  color: #fff;
  font-size: 1rem;
}
.landing-footer-logo {
  height: 36px;
  width: auto;
  object-fit: contain;
  filter: brightness(0) invert(1);
}
.landing-footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.landing-footer-links a {
  color: #94a3b8;
  font-size: 0.9rem;
  text-decoration: none;
}
.landing-footer-links a:hover { color: #fff; text-decoration: none; }
.landing-footer-copy {
  grid-column: 1 / -1;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 0.82rem;
  color: #64748b;
  text-align: center;
}

@media (max-width: 560px) {
  .landing-trust { flex-direction: column; gap: 0.35rem; }
  .landing-card { transform: none; }
  .landing-card:hover { transform: translateY(-4px); }
}
/* ---- Landing: stats bar ---- */
.landing-stats {
  background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 100%);
  padding: 3rem 1.25rem;
  color: #fff;
}
.landing-stats-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1.5rem;
  text-align: center;
}
.landing-stat-value {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #fff;
  font-variant-numeric: tabular-nums;
}
.landing-stat-label {
  margin-top: 0.35rem;
  font-size: 0.85rem;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}

/* ---- Landing: trust/security grid ---- */
.landing-trust-grid {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
}
.landing-trust-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1.25rem 1.4rem;
  background: #fff;
  border: 1px solid #e6eaf3;
  border-radius: 14px;
  box-shadow: 0 1px 2px rgba(15,23,42,0.04), 0 10px 28px -16px rgba(15,23,42,0.12);
  font-size: 0.92rem;
  color: #334155;
  line-height: 1.5;
}
.landing-trust-check {
  flex: 0 0 26px;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
  display: flex; align-items: center; justify-content: center;
}

/* ---- Landing: testimonials ---- */
.landing-testimonials {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}
.landing-testimonial {
  background: #fff;
  border: 1px solid #e6eaf3;
  border-radius: 18px;
  padding: 2rem 1.75rem;
  box-shadow: 0 1px 2px rgba(15,23,42,0.04), 0 14px 34px -22px rgba(15,23,42,0.18);
  display: grid;
  gap: 1.25rem;
}
.landing-testimonial-text {
  margin: 0;
  font-size: 0.98rem;
  color: #334155;
  line-height: 1.6;
  font-style: italic;
}
.landing-testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.landing-testimonial-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #4f46e5, #2563eb);
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  display: flex; align-items: center; justify-content: center;
  flex: 0 0 40px;
}
.landing-testimonial-name {
  font-weight: 700;
  color: #0f172a;
  font-size: 0.92rem;
}
.landing-testimonial-role {
  font-size: 0.8rem;
  color: #64748b;
}

/* ---- Landing: FAQ ---- */
.landing-faq {
  max-width: 820px;
  margin: 0 auto;
  display: grid;
  gap: 0.75rem;
}
.landing-faq-item {
  background: #fff;
  border: 1px solid #e6eaf3;
  border-radius: 14px;
  padding: 0;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(15,23,42,0.04);
  transition: box-shadow 0.2s ease;
}
.landing-faq-item[open] {
  box-shadow: 0 2px 4px rgba(15,23,42,0.06), 0 10px 28px -16px rgba(15,23,42,0.14);
}
.landing-faq-q {
  cursor: pointer;
  padding: 1.1rem 1.4rem;
  font-weight: 700;
  color: #0f172a;
  font-size: 0.98rem;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.landing-faq-q::-webkit-details-marker { display: none; }
.landing-faq-q::after {
  content: "+";
  font-size: 1.4rem;
  font-weight: 400;
  color: #4f46e5;
  transition: transform 0.2s ease;
}
.landing-faq-item[open] .landing-faq-q::after { content: "\2212"; }
.landing-faq-a {
  margin: 0;
  padding: 0 1.4rem 1.25rem;
  color: #64748b;
  font-size: 0.92rem;
  line-height: 1.6;
}

@media (max-width: 560px) {
  .landing-stats-inner { grid-template-columns: repeat(2, 1fr); }
}

/* ---- Landing: article (long-form SEO content) ---- */
.landing-article {
  max-width: 820px;
  margin: 0 auto;
  display: grid;
  gap: 1.1rem;
}
.landing-article-p {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.75;
  color: #334155;
}
.landing-h3 {
  margin: 1.25rem 0 0.35rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: #0f172a;
}

/* ---- Landing: comparison table ---- */
.landing-table-wrap {
  max-width: 760px;
  margin: 0 auto;
  overflow-x: auto;
  border-radius: 14px;
  border: 1px solid #e6eaf3;
  box-shadow: 0 1px 2px rgba(15,23,42,0.04), 0 10px 28px -16px rgba(15,23,42,0.12);
}
.landing-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  background: #fff;
}
.landing-table th, .landing-table td {
  padding: 0.85rem 1.1rem;
  text-align: left;
  border-bottom: 1px solid #eef2f7;
}
.landing-table th {
  background: #f8fafc;
  color: #475569;
  font-weight: 700;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.landing-table td:first-child { font-weight: 600; color: #0f172a; }
.landing-table tbody tr:last-child td { border-bottom: 0; }
.landing-table tbody tr:hover { background: #f8faff; }

/* ---- Landing: networks ---- */
.landing-networks {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}
.landing-network {
  padding: 0.85rem 2rem;
  border-radius: 12px;
  background: #fff;
  border: 1px solid #e6eaf3;
  font-weight: 700;
  font-size: 1.05rem;
  color: #0f172a;
  box-shadow: 0 1px 2px rgba(15,23,42,0.04), 0 10px 28px -16px rgba(15,23,42,0.12);
}

/* ---- Landing: pricing ---- */
.landing-pricing {
  max-width: 640px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid #e6eaf3;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(15,23,42,0.04), 0 10px 28px -16px rgba(15,23,42,0.12);
}
.landing-pricing-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1.4rem;
  border-bottom: 1px solid #eef2f7;
  font-size: 0.92rem;
}
.landing-pricing-row:last-child { border-bottom: 0; }
.landing-pricing-label { color: #334155; }
.landing-pricing-value { font-weight: 700; color: #0f172a; }

@media (max-width: 560px) {
  .landing-table th, .landing-table td { padding: 0.65rem 0.8rem; font-size: 0.85rem; }
}

/* ---- Landing: footer (redesigned) ---- */
.landing-footer {
  padding: 4rem 1.25rem 2rem;
  background: linear-gradient(180deg, #0a1020 0%, #050814 100%);
  color: #94a3b8;
  position: relative;
  overflow: hidden;
}
.landing-footer::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(99,102,241,0.6), transparent);
}
.landing-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.2fr;
  gap: 2.5rem;
  align-items: start;
}
@media (max-width: 820px) {
  .landing-footer-inner { grid-template-columns: 1fr 1fr; gap: 2rem; }
}
@media (max-width: 560px) {
  .landing-footer-inner { grid-template-columns: 1fr; gap: 1.75rem; }
}
.landing-footer-brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-weight: 800;
  color: #fff;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}
.landing-footer-logo {
  height: 42px;
  width: auto;
  object-fit: contain;
  filter: brightness(0) invert(1);
}
.landing-footer-desc {
  margin-top: 0.85rem;
  font-size: 0.9rem;
  color: #64748b;
  line-height: 1.6;
  max-width: 320px;
}
.landing-footer-col-title {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #6366f1;
  margin-bottom: 1rem;
}
.landing-footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.landing-footer-links a, .landing-footer-links span {
  color: #94a3b8;
  font-size: 0.9rem;
  text-decoration: none;
  transition: color 0.15s ease, transform 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.landing-footer-links a:hover { color: #fff; text-decoration: none; transform: translateX(2px); }
.landing-footer-contact-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: #94a3b8;
  font-size: 0.9rem;
}
.landing-footer-contact-icon {
  width: 32px; height: 32px;
  border-radius: 10px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  flex: 0 0 28px;
}
.landing-footer-bottom {
  max-width: 1200px;
  margin: 3rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.82rem;
  color: #64748b;
}
.landing-footer-copy { color: #64748b; }
.landing-footer-social {
  display: flex;
  gap: 0.5rem;
}
.landing-footer-social a {
  width: 34px; height: 34px;
  border-radius: 9px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  color: #cbd5e1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}
.landing-footer-social a:hover {
  background: rgba(99,102,241,0.25);
  color: #fff;
  transform: translateY(-2px);
  text-decoration: none;
}

/* ---- Landing: header & nav ---- */
.landing-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid #e6eaf3;
}
.landing-header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.landing-header-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: #0f172a;
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}
.landing-header-brand:hover { text-decoration: none; }
.landing-header-logo {
  height: 56px;
  width: auto;
  object-fit: contain;
}
.landing-header-mark {
  width: 56px; height: 56px;
  border-radius: 9px;
  background: linear-gradient(135deg, #4f46e5, #2563eb);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800;
  font-size: 1.1rem;
}
.landing-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-left: auto;
}
.landing-nav a {
  padding: 0.45rem 0.85rem;
  border-radius: 8px;
  color: #475569;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}
.landing-nav a:hover {
  background: #eef2ff;
  color: #4f46e5;
  text-decoration: none;
}
.landing-header-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.landing-header-link {
  color: #475569;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  padding: 0.45rem 0.7rem;
}
.landing-header-link:hover { color: #4f46e5; text-decoration: none; }
.landing-btn-sm {
  padding: 0.5rem 1.1rem;
  font-size: 0.85rem;
}
.landing-menu-toggle {
  display: none;
  flex-shrink: 0;
  width: 40px; height: 40px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: linear-gradient(135deg, #6366f1, #2563eb);
  color: #ffffff;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 18px -10px rgba(99, 102, 241, 0.7);
}
.landing-menu-toggle:hover,
.landing-menu-toggle:focus,
.landing-menu-toggle:active { color: #ffffff; }
.landing-menu-toggle:hover { filter: brightness(1.08); }
.landing-mobile-menu {
  display: none;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.75rem 1.25rem 1rem;
  border-top: 1px solid #e6eaf3;
  background: #fff;
}
.landing-mobile-menu a {
  padding: 0.7rem 0.85rem;
  border-radius: 8px;
  color: #334155;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
}
.landing-mobile-menu a:hover { background: #eef2ff; color: #4f46e5; text-decoration: none; }
.landing-mobile-menu a.landing-btn-primary,
.landing-mobile-menu a.landing-btn-primary:hover,
.landing-mobile-menu a.landing-btn-primary:focus,
.landing-mobile-menu a.landing-btn-primary:active,
.landing-btn-primary,
.landing-btn-primary:hover,
.landing-btn-primary:focus,
.landing-btn-primary:active { color: #ffffff; }
.landing-mobile-menu a.landing-btn-primary { justify-content: center; margin-top: 0.5rem; background: linear-gradient(135deg, #ec4899, #f97316); }
.landing-mobile-menu a.landing-btn-primary:hover { background: linear-gradient(135deg, #ec4899, #f97316); filter: brightness(1.08); }

body.landing-menu-open .landing-mobile-menu { display: flex; }

@media (max-width: 820px) {
  .landing-nav { display: none; }
  .landing-header-actions { display: none; }
  .landing-menu-toggle { display: inline-flex; margin-left: auto; }
  .landing-header-inner { gap: 0.75rem; }
}
@media (max-width: 480px) {
  .landing-header-inner { padding: 0.7rem 1rem; }
}

/* ---- Floating Telegram support button (icon-only circle, alongside Tawk.to) ---- */
.tg-fab {
  position: fixed;
  right: 24px;
  bottom: 100px;
  z-index: 9999;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #229ED9;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 6px 18px -4px rgba(34, 158, 217, 0.55), 0 2px 6px rgba(15, 23, 42, 0.18);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}
.tg-fab:hover {
  text-decoration: none;
  transform: translateY(-2px) scale(1.04);
  background: #1b8fc7;
  box-shadow: 0 10px 24px -4px rgba(34, 158, 217, 0.6), 0 4px 10px rgba(15, 23, 42, 0.2);
}
.tg-fab:focus-visible { outline: 2px solid #229ED9; outline-offset: 3px; }
.tg-fab svg { display: block; }
@media (max-width: 480px) {
  .tg-fab { width: 56px; height: 56px; right: 16px; bottom: 90px; }
  .tg-fab svg { width: 26px; height: 26px; }
}

/* smooth scroll for anchor links */
.landing { scroll-behavior: smooth; }
.landing section { scroll-margin-top: 80px; }

.landing-footer-social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px; height: 32px;
  border-radius: 10px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  color: #cbd5e1;
  font-size: 0.72rem;
  font-weight: 800;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
  margin-right: 0.4rem;
  margin-bottom: 0.4rem;
}
.landing-footer-social-btn:hover {
  background: rgba(99,102,241,0.3);
  color: #fff;
  transform: translateY(-2px);
  text-decoration: none;
}
.landing-footer-contact-item .landing-footer-contact-icon {
  font-size: 0.85rem;
}
.landing-cta .landing-hero-actions {
  justify-content: center;
}
.landing-cta .landing-btn {
  min-width: 180px;
}

/* Two-factor authentication (TOTP) */
.twofactor-qr img { max-width: 180px; max-height: 180px; }
.secret-code {
  display: block; padding: 0.6rem 0.75rem; border: 1px dashed var(--line); border-radius: 8px;
  background: #f8fafc; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.95rem; letter-spacing: 0.08em; word-break: break-all;
}
.recovery-codes {
  margin: 0; padding-left: 1.1rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.recovery-codes li { margin: 0.15rem 0; }

/* Account Security cards (password + Google Authenticator 2FA) */
.security-card-head {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  flex-wrap: wrap;
}
.security-icon {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #e8efff;
  color: var(--brand);
}
.security-card-text { flex: 1 1 280px; min-width: 0; }
.security-card-text h2 { margin: 0 0 0.25rem; font-size: 1.05rem; }
.security-card-text p { margin: 0; }
.security-card-controls {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: auto;
}
.security-card-status:empty,
.security-card-action:empty,
.security-card-body:empty,
.security-card-msg:empty { display: none; }
.security-card-body { margin-top: 1rem; }
.security-card-msg { margin-top: 0.75rem; }
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
}
.status-pill.on { background: #e3f6ea; color: var(--ok); }
.status-pill.on::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}
.status-pill.off { background: #eef1f6; color: var(--muted); }
@media (max-width: 640px) {
  .security-card-controls { width: 100%; margin-left: 0; justify-content: flex-start; }
  .security-card-text { flex-basis: 100%; }
}


/* ============================================================
   Responsive hardening (mobile / tablet / desktop)
   ============================================================ */
html, body { overflow-x: clip; }
img, video, iframe, svg { max-width: 100%; }

/* Topbar compact on small screens */
@media (max-width: 640px) {
  .topbar { padding: 0.6rem 0.75rem; gap: 0.5rem; }
  .topbar-right, .auth-links { gap: 0.35rem; }
  .topbar-right a, .topbar-right button, .auth-links a, .auth-links button {
    padding: 0.4rem 0.6rem; font-size: 0.8rem;
  }
  .mobile-brand { font-size: 0.95rem; }
}

/* Sidebar drawer (already) - ensure overlay */
@media (max-width: 820px) {
  .sidebar { box-shadow: 12px 0 40px rgba(0,0,0,0.35); }
  body.sidebar-open::before {
    content: ''; position: fixed; inset: 0; background: rgba(15,23,42,0.45);
    z-index: 19; backdrop-filter: blur(2px);
  }
}

/* Dashboard welcome panel */
@media (max-width: 640px) {
  .welcome-panel { padding: 1rem 1.1rem; }
}

/* Quick action buttons: 2 per row on tablet, 1/2 on mobile */
@media (max-width: 900px) {
  .quick-access-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 480px) {
  .quick-access-grid { grid-template-columns: minmax(0, 1fr); }
  .quick-card { justify-content: flex-start; }
}

/* Financial stats */
@media (max-width: 1024px) {
  .financial-statistics-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 480px) {
  .financial-statistics-grid { grid-template-columns: minmax(0, 1fr); }
}

/* Tables: horizontal scroll */
.table-wrap, .table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table-wrap table { min-width: 600px; }
@media (max-width: 640px) {
  .table-wrap table { min-width: 520px; font-size: 0.82rem; }
}

/* Card details: stack columns */
@media (max-width: 900px) {
  .detail-columns { grid-template-columns: 1fr !important; }
  .card-face { max-width: 100%; }
  .card-copy-btn { position: static; margin-top: 0.75rem; align-self: flex-end; }
}
@media (max-width: 640px) {
  .detail-columns > * { width: 100%; }
  .face-row { font-size: 0.85rem; }
}

/* Order page */
@media (max-width: 900px) {
  .order-grid { grid-template-columns: 1fr; }
  .order-hero { padding: 1.25rem 1.4rem; }
  .order-hero h1 { font-size: 1.4rem; }
}
@media (max-width: 640px) {
  .name-grid { grid-template-columns: 1fr; }
  .limit-row { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
  .limit-apply { margin-left: 0; }
  .order-panel-head { flex-direction: column; align-items: flex-start; }
}

/* Modals */
@media (max-width: 560px) {
  .modal, .modal.recharge-modal { width: calc(100% - 1.5rem); max-width: none; }
  .recharge-body { padding: 1.1rem 1.1rem 0.8rem; }
  .recharge-foot { padding: 0.75rem 1.1rem 1rem; flex-wrap: wrap; }
  .recharge-foot button { flex: 1; }
  .dialog-body { padding: 0.25rem 1.1rem 1rem 1.1rem; }
}

/* Auth pages */
@media (max-width: 640px) {
  .auth-card { padding: 2rem 1.35rem 1.5rem; border-radius: 20px; }
  .auth-card h1 { font-size: 1.4rem; }
}

/* Landing header */
@media (max-width: 820px) {
  .landing-header-inner { padding: 0.7rem 1rem; gap: 0.75rem; }
  .landing-nav { display: none; }
}
@media (max-width: 480px) {
  .landing-header-logo { height: 44px; }
  .landing-header-mark { width: 44px; height: 44px; font-size: 1rem; }
}

/* Deposit page */
@media (max-width: 640px) {
  .deposit-address-card { grid-template-columns: 1fr; justify-items: center; }
  .deposit-grid { grid-template-columns: 1fr; }
}

/* General: prevent overflow */
.container { max-width: 100%; }
main { min-width: 0; }

/* ---- Customer details page (admin) ---- */
.cd-page { display: grid; gap: 1.25rem; }
.cd-card {
  background: #ffffff; border: 1px solid #e6eaf3; border-radius: 16px;
  padding: 1.25rem 1.5rem; box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  min-width: 0;
}
.cd-head { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; flex-wrap: wrap; }
.cd-back { font-size: 0.85rem; font-weight: 600; color: #4f46e5; text-decoration: none; }
.cd-back:hover { text-decoration: underline; }
.cd-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; flex-wrap: wrap; margin-top: 0.75rem; }
.cd-profile { min-width: 0; }
.cd-name { font-size: 1.1rem; font-weight: 700; color: #0f172a; }
.cd-email { font-size: 0.88rem; color: #64748b; margin-top: 0.15rem; word-break: break-all; }
.cd-badges { display: flex; flex-wrap: wrap; gap: 0.4rem; align-items: center; margin-top: 0.5rem; }
.cd-meta { font-size: 0.78rem; color: #64748b; }
.cd-top-right { display: flex; flex-direction: column; align-items: flex-end; gap: 0.5rem; }
.cd-id-pill {
  font-size: 0.78rem; font-weight: 600; color: #334155;
  background: #f1f5f9; border: 1px solid #e2e8f0; border-radius: 999px; padding: 0.3rem 0.7rem;
}
.cd-actions { display: flex; flex-wrap: wrap; gap: 0.4rem; justify-content: flex-end; }
.cd-divider { height: 1px; background: #eef2f7; margin: 1.25rem 0; }
.cd-h { margin: 0 0 0.85rem; font-size: 0.95rem; font-weight: 700; color: #0f172a; }
.cd-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.1rem 1.5rem; }
.cd-stat-label { font-size: 0.8rem; color: #64748b; }
.cd-stat-value { font-size: 1.2rem; font-weight: 700; color: #0f172a; margin-top: 0.2rem; font-variant-numeric: tabular-nums; word-break: break-word; }
@media (min-width: 1200px) { .cd-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.admin-content .cd-tabs { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.admin-content .cd-tab {
  background: #f1f5f9; color: #334155; border: 0; border-radius: 999px;
  padding: 0.4rem 0.85rem; font-size: 0.82rem; font-weight: 600; box-shadow: none; min-height: 0;
}
.admin-content .cd-tab:hover { background: #e2e8f0; filter: none; box-shadow: none; }
.admin-content .cd-tab.active { background: linear-gradient(135deg, #4f46e5, #2563eb); color: #ffffff; box-shadow: 0 6px 14px -8px rgba(79, 70, 229, 0.7); }
.cd-pane { margin-top: 1rem; min-width: 0; }
.cd-pane[hidden] { display: none !important; }
.cd-table-wrap { min-width: 0; }
.cd-more { display: flex; justify-content: center; margin-top: 0.75rem; }
.admin-content .cd-more-btn {
  width: 38px; height: 38px; padding: 0; border-radius: 50%;
  background: #ffffff; color: #334155; border: 1px solid #d5dce9; box-shadow: none; font-size: 1rem;
}
.admin-content .cd-more-btn:hover { background: #f8fafc; filter: none; box-shadow: none; }
@media (max-width: 640px) {
  .cd-card { padding: 1rem; border-radius: 14px; }
  .cd-top-right { align-items: flex-start; }
  .cd-actions { justify-content: flex-start; }
  .admin-content .cd-tabs { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 0.25rem; }
  .admin-content .cd-tab { flex: 0 0 auto; }
}
@media (max-width: 360px) {
  .cd-stats { grid-template-columns: minmax(0, 1fr); }
}

/* ---- Customers wallet total ---- */
.cust-wallet-total { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.5rem 0.9rem; margin: 0.25rem 0 0.75rem; padding: 0.75rem 1rem; background: #ffffff; border: 1px solid #e6eaf3; border-radius: 12px; }
.cust-wallet-total-label { font-size: 0.8rem; font-weight: 600; color: #64748b; text-transform: uppercase; letter-spacing: 0.04em; }
.cust-wallet-total-value { font-size: 1.15rem; font-weight: 700; color: #0f172a; font-variant-numeric: tabular-nums; }
.cust-wallet-total-count { font-size: 0.8rem; color: #64748b; }

/* ---- Admin visual polish (presentation only; scoped to the admin console) ---- */
.admin-layout {
  --a-radius: 14px;
  --a-radius-sm: 10px;
  --a-ring: 0 0 0 3px rgba(99, 102, 241, 0.18);
  --a-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 8px 24px -16px rgba(15, 23, 42, 0.14);
}
.admin-layout ::selection { background: rgba(79, 70, 229, 0.18); }
.admin-layout * { scrollbar-width: thin; scrollbar-color: #cbd5e1 transparent; }

/* Sidebar: calmer rhythm and clearer states */
.admin-sidebar { scrollbar-width: thin; scrollbar-color: rgba(148, 163, 184, 0.25) transparent; }
.admin-brand { padding: 1.35rem 1.25rem 0.75rem; border-bottom: 1px solid rgba(255, 255, 255, 0.05); margin-bottom: 0.25rem; }
.admin-brand-text { font-size: 0.95rem; letter-spacing: -0.01em; }
.admin-nav { padding: 0.35rem 0.75rem 1rem; gap: 1px; }
.nav-group-label { padding: 1rem 0.75rem 0.35rem; font-size: 0.64rem; color: #64748b; }
.nav-link { padding: 0.5rem 0.7rem; font-size: 0.86rem; line-height: 1.3; }
.nav-link:focus-visible { outline: none; box-shadow: inset 0 0 0 2px rgba(129, 140, 248, 0.7); }
.nav-link:hover .nav-icon { background: rgba(255, 255, 255, 0.1); color: #fff; }
.nav-icon { transition: background 0.15s ease, color 0.15s ease; }
.nav-footer { margin: 0.5rem 0.75rem 0.9rem; }

/* Top bar */
.admin-topbar { padding: 0.8rem 2rem; min-height: 64px; }
.admin-title { font-size: 1.05rem; font-weight: 650; }
.admin-user {
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  background: #f1f5f9;
  color: #334155;
  font-size: 0.8rem;
  max-width: 260px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.admin-topbar .admin-btn:focus-visible,
.admin-toggle:focus-visible { outline: none; box-shadow: var(--a-ring); }

/* Content rhythm */
.admin-content { padding: 1.75rem 2rem 2.5rem; }
.admin-content .section-title { font-size: 1.35rem; }
.admin-content .card,
.admin-content .table-wrap {
  border-radius: var(--a-radius);
  box-shadow: var(--a-shadow);
}
.admin-content .card h3,
.admin-content h3 { font-size: 0.92rem; letter-spacing: -0.005em; }

/* Tables: quieter headers, comfortable rows, numbers aligned */
.admin-content th { padding: 0.7rem 1rem; font-size: 0.68rem; }
.admin-content td { padding: 0.72rem 1rem; font-size: 0.86rem; vertical-align: middle; }
.admin-content tbody tr:hover { background: #f7f9ff; }
.admin-content td.num,
.admin-content .num { text-align: right; font-variant-numeric: tabular-nums; }

/* Badges: one size across pages */
.admin-content .badge { font-size: 0.7rem; padding: 0.2rem 0.6rem 0.2rem 0.5rem; }

/* Inputs and selects */
.admin-content input:not([type="checkbox"]):not([type="radio"]),
.admin-content select,
.admin-content textarea {
  min-height: 40px;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--a-line-strong);
  border-radius: var(--a-radius-sm);
  background: #ffffff;
  color: var(--a-text);
  font-size: 0.875rem;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.admin-content input::placeholder,
.admin-content textarea::placeholder { color: #94a3b8; }
.admin-content input:not([type="checkbox"]):not([type="radio"]):focus,
.admin-content select:focus,
.admin-content textarea:focus {
  outline: none;
  border-color: #818cf8;
  box-shadow: var(--a-ring);
}
.admin-content input:disabled,
.admin-content select:disabled,
.admin-content textarea:disabled { background: #f8fafc; color: #94a3b8; cursor: not-allowed; }

/* Buttons: consistent height and focus ring */
.admin-content button,
.admin-content .btn {
  min-height: 38px;
  border-radius: var(--a-radius-sm);
  letter-spacing: 0.005em;
}
.admin-content button:focus-visible { outline: none; box-shadow: var(--a-ring), 0 6px 16px -8px rgba(79, 70, 229, 0.7); }
.admin-content button:disabled { opacity: 0.55; cursor: not-allowed; filter: none; box-shadow: none; transform: none; }
.admin-content button.secondary:focus-visible { box-shadow: var(--a-ring); }

/* Empty and status messages */
.admin-content p.muted {
  border-radius: var(--a-radius);
  color: #64748b;
  font-size: 0.875rem;
}

/* Toasts */
.admin-toast {
  border-radius: var(--a-radius);
  box-shadow: 0 16px 40px -12px rgba(15, 23, 42, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Dialogs: applies only when the admin console is on the page */
body:has(.admin-layout) .modal-overlay {
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}
body:has(.admin-layout) .modal {
  border-radius: var(--a-radius);
  border: 1px solid var(--a-line);
  box-shadow: 0 24px 60px -18px rgba(15, 23, 42, 0.4);
  padding: 1.4rem 1.5rem;
  gap: 0.9rem;
}

/* Keyboard focus for links across the console */
.admin-layout a:focus-visible { outline: 2px solid #818cf8; outline-offset: 2px; border-radius: 4px; }

@media (prefers-reduced-motion: reduce) {
  .admin-layout *, .admin-layout *::before, .admin-layout *::after { transition: none !important; animation: none !important; }
}

@media (max-width: 768px) {
  .admin-content { padding: 1.1rem 1rem 2rem; }
  .admin-topbar { padding: 0.7rem 1rem; min-height: 58px; }
  .admin-user { display: none; }
}

/* ---- Admin dashboard (dark executive theme; applies only to the dashboard page) ---- */
/* Full width: the dashboard lifts the 1280px cap that .admin-content uses on other pages, and the
   admin main area takes the same dark canvas so no light strip shows on wide screens. */
.admin-main:has(.dash-page) { background: #0a0e17; min-height: 100vh; }
.admin-main:has(.dash-page) .admin-topbar {
  background: rgba(10, 14, 23, 0.92);
  border-bottom-color: rgba(255, 255, 255, 0.06);
}
.admin-main:has(.dash-page) .admin-title { color: #f8fafc; }
.admin-main:has(.dash-page) .admin-user { background: rgba(255, 255, 255, 0.06); color: #cbd5e1; }
.admin-main:has(.dash-page) .admin-topbar .admin-btn {
  background: rgba(255, 255, 255, 0.05);
  color: #e2e8f0;
  border-color: rgba(255, 255, 255, 0.1);
}
.admin-main:has(.dash-page) .admin-topbar .admin-btn:hover { background: rgba(255, 255, 255, 0.1); }
.admin-main:has(.dash-page) .admin-toggle { background: rgba(255, 255, 255, 0.05); color: #e2e8f0; border-color: rgba(255, 255, 255, 0.1); }

.admin-content:has(.dash-page) {
  max-width: none;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  padding: 1.5rem 2rem 2.5rem;
  background: #0a0e17;
}
@media (max-width: 768px) {
  .admin-content:has(.dash-page) { padding: 1rem 1rem 2rem; }
}

.admin-content .dash-page {
  --d-card: #131824;
  --d-line: rgba(255, 255, 255, 0.07);
  --d-text: #e2e8f0;
  --d-title: #f8fafc;
  --d-muted: #8b96a8;
  --d-dim: #5b6578;
  --d-cyan: #4cd7f6;
  --d-cyan-strong: #06b6d4;
  --d-green: #4edea3;
  --d-amber: #ffb95f;
  --d-violet: #a78bfa;
  --d-red: #f87171;
  display: grid;
  gap: 1.25rem;
  width: 100%;
  min-width: 0;
  color: var(--d-text);
}
.admin-content .dash-page .mono {
  font-family: "JetBrains Mono", "Cascadia Code", ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.8rem;
}
.admin-content .dash-page .muted { color: var(--d-muted); }

/* Header */
.admin-content .dash-page .dash-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.admin-content .dash-page .section-title { color: var(--d-title); font-size: 1.6rem; font-weight: 700; letter-spacing: -0.025em; margin: 0; }
.admin-content .dash-page .dash-lead { margin: 0.3rem 0 0; color: var(--d-muted); font-size: 0.875rem; }
.admin-content .dash-page .dash-lead.small { font-size: 0.8rem; }

/* Cards: one background, border and shadow for every panel */
.admin-content .dash-page .dash-card {
  background: var(--d-card);
  border: 1px solid var(--d-line);
  border-radius: 16px;
  padding: 1.25rem 1.35rem;
  box-shadow: 0 10px 30px -16px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.03);
  min-width: 0;
  box-sizing: border-box;
}
.admin-content .dash-page .dash-kicker {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--d-muted);
}
.admin-content .dash-page .dash-card-top { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; }
.admin-content .dash-page .dash-chip {
  font-family: "JetBrains Mono", ui-monospace, Consolas, monospace;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  color: var(--d-cyan);
  background: rgba(76, 215, 246, 0.1);
  border: 1px solid rgba(76, 215, 246, 0.25);
  white-space: nowrap;
}

/* Top row: sales chart (about 62% of the width) + KPI tiles (the rest), equal heights */
.admin-content .dash-page .dash-top {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr);
  gap: 1.25rem;
  align-items: stretch;
}
.admin-content .dash-page .dash-hero { display: flex; flex-direction: column; min-width: 0; overflow: hidden; }
.admin-content .dash-page .dash-hero-value {
  margin-top: 0.7rem;
  font-size: clamp(1.9rem, 2.6vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--d-title);
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}
.admin-content .dash-page .dash-tile-hint { margin: 0.35rem 0 0; font-size: 0.8rem; color: var(--d-muted); }
.admin-content .dash-page .dash-spark {
  display: block;
  width: 100%;
  height: clamp(170px, 20vw, 260px);
  margin-top: 1rem;
  flex: 1 1 auto;
  min-height: 170px;
  overflow: visible;
}
.admin-content .dash-page .dash-spark-line { fill: none; stroke: var(--d-cyan); stroke-width: 2.25; vector-effect: non-scaling-stroke; stroke-linejoin: round; stroke-linecap: round; }
.admin-content .dash-page .dash-spark-area { fill: rgba(76, 215, 246, 0.1); }
.admin-content .dash-page .dash-axis {
  display: flex;
  justify-content: space-between;
  padding: 0 0.25rem;
  margin-top: 0.5rem;
  font-family: "JetBrains Mono", ui-monospace, Consolas, monospace;
  font-size: 0.72rem;
  color: var(--d-dim);
}

.admin-content .dash-page .dash-side-tiles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  gap: 1rem;
  min-width: 0;
}
.admin-content .dash-page .dash-tile {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 0;
  padding: 1.15rem 1.2rem;
}
.admin-content .dash-page .dash-tile::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--tone);
  opacity: 0.8;
}
.admin-content .dash-page .dash-tile.tone-cyan { --tone: var(--d-cyan); }
.admin-content .dash-page .dash-tile.tone-green { --tone: var(--d-green); }
.admin-content .dash-page .dash-tile.tone-violet { --tone: var(--d-violet); }
.admin-content .dash-page .dash-tile.tone-amber { --tone: var(--d-amber); }
.admin-content .dash-page .dash-tile.tone-muted { --tone: var(--d-dim); }
.admin-content .dash-page .dash-tile-value {
  margin-top: 0.6rem;
  font-size: clamp(1.5rem, 2.2vw, 2rem);
  font-weight: 700;
  color: var(--d-title);
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}

/* Alert */
.admin-content .dash-page .dash-alert {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1rem 1.25rem;
  border-radius: 14px;
  background: rgba(255, 185, 95, 0.06);
  border: 1px solid rgba(255, 185, 95, 0.25);
  border-left: 3px solid var(--d-amber);
}
.admin-content .dash-page .dash-alert-icon {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 185, 95, 0.14);
  color: var(--d-amber);
  font-weight: 800;
}
.admin-content .dash-page .dash-alert-body { flex: 1 1 260px; min-width: 0; }
.admin-content .dash-page .dash-alert-body strong { color: var(--d-title); font-size: 0.92rem; }
.admin-content .dash-page .dash-alert-body p { margin: 0.2rem 0 0; font-size: 0.82rem; color: var(--d-muted); }
.admin-content .dash-page .dash-btn {
  padding: 0.5rem 1rem;
  border-radius: 10px;
  background: var(--d-amber);
  color: #1f1300;
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 0 16px rgba(255, 185, 95, 0.25);
}
.admin-content .dash-page .dash-btn:hover { filter: brightness(1.06); text-decoration: none; }

/* Lower row: recent orders (wide) + distribution panels */
.admin-content .dash-page .dash-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.25rem;
  align-items: start;
  min-width: 0;
}
.admin-content .dash-page .dash-side {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  min-width: 0;
}
@media (min-width: 1280px) {
  .admin-content .dash-page .dash-grid { grid-template-columns: minmax(0, 2fr) minmax(300px, 1fr); }
  .admin-content .dash-page .dash-side { grid-template-columns: minmax(0, 1fr); }
}
.admin-content .dash-page .dash-card-table { padding: 0; overflow: hidden; }
.admin-content .dash-page .dash-card-table .dash-panel-head { padding: 1.1rem 1.35rem; margin: 0; border-bottom: 1px solid var(--d-line); }
.admin-content .dash-page .dash-card-table .table-wrap { border: 0; box-shadow: none; border-radius: 0; background: transparent; overflow-x: auto; }
.admin-content .dash-page .dash-table-foot {
  padding: 0.85rem 1.35rem;
  border-top: 1px solid var(--d-line);
  font-family: "JetBrains Mono", ui-monospace, Consolas, monospace;
  font-size: 0.75rem;
  color: var(--d-dim);
  background: rgba(255, 255, 255, 0.015);
}
.admin-content .dash-page .dash-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; margin-bottom: 0.9rem; }
.admin-content .dash-page .dash-panel-head h3 { margin: 0; font-size: 0.98rem; font-weight: 700; color: var(--d-title); }
.admin-content .dash-page .dash-link { font-size: 0.82rem; font-weight: 600; color: var(--d-cyan); text-decoration: none; }
.admin-content .dash-page .dash-link:hover { text-decoration: underline; }

/* Dark table */
.admin-content .dash-page .table-wrap { background: transparent; }
.admin-content .dash-page table { color: var(--d-text); width: 100%; }
.admin-content .dash-page th {
  background: rgba(15, 23, 42, 0.6);
  color: var(--d-muted);
  font-size: 0.66rem;
  letter-spacing: 0.09em;
  padding: 0.8rem 1.1rem;
  border-bottom: 1px solid var(--d-line);
}
.admin-content .dash-page td {
  color: var(--d-text);
  padding: 0.85rem 1.1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.85rem;
}
.admin-content .dash-page tbody tr:hover { background: rgba(76, 215, 246, 0.035); }
.admin-content .dash-page td a { color: var(--d-cyan); font-weight: 600; }
.admin-content .dash-page td .mono { color: var(--d-cyan); }
.admin-content .dash-page .muted.small { font-size: 0.82rem; }

/* Dark status badges */
.admin-content .dash-page .badge {
  background: rgba(148, 163, 184, 0.1);
  color: #cbd5e1;
  border: 1px solid rgba(148, 163, 184, 0.2);
  font-size: 0.7rem;
}
.admin-content .dash-page .badge.ISSUED,
.admin-content .dash-page .badge.ACTIVE,
.admin-content .dash-page .badge.COMPLETE,
.admin-content .dash-page .badge.active,
.admin-content .dash-page .badge.approved {
  background: rgba(78, 222, 163, 0.1);
  color: var(--d-green);
  border-color: rgba(78, 222, 163, 0.28);
}
.admin-content .dash-page .badge.PENDING,
.admin-content .dash-page .badge.pending,
.admin-content .dash-page .badge.UNCERTAIN,
.admin-content .dash-page .badge.CANCELLED {
  background: rgba(255, 185, 95, 0.1);
  color: var(--d-amber);
  border-color: rgba(255, 185, 95, 0.28);
}
.admin-content .dash-page .badge.FAILED,
.admin-content .dash-page .badge.DELETED,
.admin-content .dash-page .badge.DECLINED,
.admin-content .dash-page .badge.disabled,
.admin-content .dash-page .badge.rejected {
  background: rgba(248, 113, 113, 0.1);
  color: var(--d-red);
  border-color: rgba(248, 113, 113, 0.28);
}
.admin-content .dash-page p.muted:not(.small) { border: 0; background: none; padding: 0; text-align: left; }

/* Distribution bars */
.admin-content .dash-page .dash-bars { display: grid; gap: 0.95rem; }
.admin-content .dash-page .dash-bar-head { display: flex; justify-content: space-between; gap: 0.5rem; margin-bottom: 0.45rem; font-size: 0.82rem; font-weight: 600; color: var(--d-text); }
.admin-content .dash-page .dash-bar-head .mono { color: var(--d-muted); font-size: 0.75rem; }
.admin-content .dash-page .dash-bar-track { height: 7px; border-radius: 999px; background: rgba(255, 255, 255, 0.06); overflow: hidden; }
.admin-content .dash-page .dash-bar-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--d-cyan-strong), var(--d-green));
  box-shadow: 0 0 12px rgba(76, 215, 246, 0.35);
  transition: width 0.4s ease;
}

/* Tablet: KPI tiles move below the chart and become a 4-up row */
@media (max-width: 1100px) {
  .admin-content .dash-page .dash-top { grid-template-columns: minmax(0, 1fr); }
  .admin-content .dash-page .dash-side-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: auto; }
  .admin-content .dash-page .dash-spark { height: clamp(170px, 28vw, 260px); }
}
@media (max-width: 900px) {
  .admin-content .dash-page .dash-side-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Mobile: single column everywhere */
@media (max-width: 560px) {
  .admin-content .dash-page { gap: 1rem; }
  .admin-content .dash-page .dash-side-tiles { grid-template-columns: minmax(0, 1fr); }
  .admin-content .dash-page .dash-side { grid-template-columns: minmax(0, 1fr); }
  .admin-content .dash-page .dash-card { padding: 1rem; }
  .admin-content .dash-page .dash-tile { flex-direction: row; align-items: center; justify-content: space-between; }
  .admin-content .dash-page .dash-tile-value { margin-top: 0; font-size: 1.5rem; }
  .admin-content .dash-page .dash-tile-hint { display: none; }
  .admin-content .dash-page .dash-spark { height: 170px; }
  .admin-content .dash-page th, .admin-content .dash-page td { padding: 0.7rem 0.75rem; }
  .admin-content .dash-page .dash-card-table .dash-panel-head { padding: 1rem; }
  .admin-content .dash-page .dash-table-foot { padding: 0.75rem 1rem; }
}

/* ---- Total sales volume chart (dashboard hero) ---- */
.admin-content .dash-page .dash-hero {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 1.3rem 1.4rem 1rem;
  border-radius: 16px;
  background: linear-gradient(180deg, #141a26 0%, #10151f 100%);
}
.admin-content .dash-page .dash-hero-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.9rem;
}
.admin-content .dash-page .dash-hero-heading { display: flex; flex-direction: column; gap: 0.5rem; min-width: 0; }
.admin-content .dash-page .dash-hero-heading .dash-kicker { letter-spacing: 0.1em; }
.admin-content .dash-page .dash-growth-row { display: flex; align-items: center; flex-wrap: wrap; gap: 0.5rem; min-height: 22px; }
.admin-content .dash-page .dash-growth {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.18rem 0.6rem;
  border-radius: 999px;
  font-family: "JetBrains Mono", ui-monospace, Consolas, monospace;
  font-size: 0.74rem;
  font-weight: 700;
  white-space: nowrap;
}
.admin-content .dash-page .dash-growth.up { background: rgba(78, 222, 163, 0.12); color: #4edea3; border: 1px solid rgba(78, 222, 163, 0.3); }
.admin-content .dash-page .dash-growth.down { background: rgba(248, 113, 113, 0.12); color: #f87171; border: 1px solid rgba(248, 113, 113, 0.3); }
.admin-content .dash-page .dash-growth.flat { background: rgba(148, 163, 184, 0.1); color: #94a3b8; border: 1px solid rgba(148, 163, 184, 0.2); font-weight: 600; }
.admin-content .dash-page .dash-vs { font-size: 0.75rem; color: #5b6578; }

/* Segmented period control */
.admin-content .dash-page .dash-seg {
  display: inline-flex;
  padding: 3px;
  gap: 2px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  flex-shrink: 0;
}
.admin-content .dash-page .dash-seg-btn {
  min-height: 0;
  padding: 0.4rem 0.8rem;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #8b96a8;
  font-size: 0.8rem;
  font-weight: 600;
  box-shadow: none;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}
.admin-content .dash-page .dash-seg-btn:hover { color: #e2e8f0; background: rgba(255, 255, 255, 0.04); filter: none; box-shadow: none; }
.admin-content .dash-page .dash-seg-btn.active,
.admin-content .dash-page .dash-seg-btn[aria-pressed="true"] {
  background: #4cd7f6;
  color: #05202a;
  box-shadow: 0 0 14px rgba(76, 215, 246, 0.35);
}
.admin-content .dash-page .dash-seg-btn:focus-visible { outline: 2px solid #4cd7f6; outline-offset: 2px; }

/* Amount */
.admin-content .dash-page .dash-hero-amount { margin-top: 0.9rem; min-height: 2.6rem; display: flex; align-items: baseline; }
.admin-content .dash-page .dash-hero-amount .dash-hero-value {
  font-size: clamp(1.9rem, 2.8vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #f8fafc;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}
.admin-content .dash-page .dash-skeleton {
  display: inline-block;
  width: 220px;
  max-width: 70%;
  height: 2.1rem;
  border-radius: 8px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.04));
  background-size: 200% 100%;
  animation: dashShimmer 1.4s ease-in-out infinite;
  color: transparent;
}
@keyframes dashShimmer { 0% { background-position: 100% 0; } 100% { background-position: -100% 0; } }
.admin-content .dash-page .dash-hero .dash-tile-hint { margin: 0.3rem 0 0; font-size: 0.78rem; color: #5b6578; }

/* Chart */
.admin-content .dash-page .dash-chart-box {
  position: relative;
  width: 100%;
  min-width: 0;
  min-height: 200px;
  margin-top: 0.75rem;
  overflow: hidden;
}
.admin-content .dash-page .dash-chart-svg { display: block; width: 100%; height: auto; overflow: visible; }
.admin-content .dash-page .dash-chart-grid { stroke: rgba(255, 255, 255, 0.06); stroke-width: 1; }
.admin-content .dash-page .dash-chart-line {
  fill: none;
  stroke: #4cd7f6;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 6px rgba(76, 215, 246, 0.35));
}
.admin-content .dash-page .dash-chart-area { transition: opacity 0.3s ease; }
.admin-content .dash-page .dash-chart-dot { fill: #4cd7f6; stroke: #0a0e17; stroke-width: 2; }
.admin-content .dash-page .dash-chart-halo { fill: rgba(76, 215, 246, 0.18); }
.admin-content .dash-page .dash-chart-hit { fill: transparent; cursor: crosshair; }
.admin-content .dash-page .dash-chart-axis {
  fill: #5b6578;
  font-family: "JetBrains Mono", ui-monospace, Consolas, monospace;
  font-size: 11px;
}
.admin-content .dash-page .dash-chart-axis.is-current { fill: #4cd7f6; font-weight: 700; }

.admin-content .dash-page .dash-chart-loading,
.admin-content .dash-page .dash-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
  border-radius: 12px;
  border: 1px dashed rgba(255, 255, 255, 0.08);
  color: #8b96a8;
  font-size: 0.875rem;
  text-align: center;
  padding: 1rem;
}
.admin-content .dash-page .dash-chart-loading {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
  background-size: 200% 100%;
  animation: dashShimmer 1.6s ease-in-out infinite;
}
.admin-content .dash-page .dash-error { color: #f87171; }
.admin-content .dash-page .dash-retry {
  margin: 0.6rem auto 0;
  display: block;
  padding: 0.45rem 0.9rem;
  min-height: 0;
  border-radius: 8px;
  border: 1px solid rgba(76, 215, 246, 0.35);
  background: rgba(76, 215, 246, 0.1);
  color: #4cd7f6;
  font-size: 0.8rem;
  font-weight: 600;
  box-shadow: none;
}
.admin-content .dash-page .dash-retry:hover { background: rgba(76, 215, 246, 0.18); filter: none; box-shadow: none; }

@media (max-width: 560px) {
  .admin-content .dash-page .dash-hero { padding: 1rem; }
  .admin-content .dash-page .dash-seg-btn { padding: 0.35rem 0.55rem; font-size: 0.74rem; }
  .admin-content .dash-page .dash-hero-top { flex-direction: column; align-items: stretch; }
  .admin-content .dash-page .dash-seg { width: 100%; justify-content: space-between; }
  .admin-content .dash-page .dash-seg-btn { flex: 1 1 0; text-align: center; }
  .admin-content .dash-page .dash-chart-loading, .admin-content .dash-page .dash-empty { min-height: 170px; }
}
@media (prefers-reduced-motion: reduce) {
  .admin-content .dash-page .dash-skeleton,
  .admin-content .dash-page .dash-chart-loading { animation: none; }
}

/* ---- Sales chart: hover pointer, tooltip, axis labels ---- */
.admin-content .dash-page .dash-chart-box { overflow: visible; }
.admin-content .dash-page .dash-chart-ytick {
  fill: #5b6578;
  font-family: "JetBrains Mono", ui-monospace, Consolas, monospace;
  font-size: 10.5px;
}
.admin-content .dash-page .dash-chart-guide {
  stroke: rgba(76, 215, 246, 0.5);
  stroke-width: 1;
  stroke-dasharray: 3 4;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease;
}
.admin-content .dash-page .dash-chart-focus-ring {
  fill: rgba(76, 215, 246, 0.16);
  stroke: rgba(76, 215, 246, 0.55);
  stroke-width: 1;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease;
}
.admin-content .dash-page .dash-chart-focus {
  fill: #4cd7f6;
  stroke: #0a0e17;
  stroke-width: 2;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease;
}
.admin-content .dash-page .dash-chart-guide.on,
.admin-content .dash-page .dash-chart-focus-ring.on,
.admin-content .dash-page .dash-chart-focus.on { opacity: 1; }
.admin-content .dash-page .dash-chart-overlay { fill: transparent; cursor: crosshair; touch-action: pan-y; }
.admin-content .dash-page .dash-chart-svg { cursor: default; border-radius: 10px; }
.admin-content .dash-page .dash-chart-svg:focus { outline: none; }
.admin-content .dash-page .dash-chart-svg:focus-visible { outline: 2px solid rgba(76, 215, 246, 0.6); outline-offset: 4px; }

.admin-content .dash-page .dash-chart-tip {
  position: absolute;
  left: 0;
  top: 0;
  transform: translate(14px, -50%);
  min-width: 150px;
  padding: 0.6rem 0.75rem;
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.96);
  border: 1px solid rgba(76, 215, 246, 0.28);
  box-shadow: 0 14px 30px -12px rgba(0, 0, 0, 0.75);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s ease;
  white-space: nowrap;
  z-index: 3;
}
.admin-content .dash-page .dash-chart-tip.on { opacity: 1; }
.admin-content .dash-page .dash-chart-tip.flip { transform: translate(calc(-100% - 14px), -50%); }
.admin-content .dash-page .dash-tip-date {
  font-size: 0.72rem;
  color: #8b96a8;
  font-family: "JetBrains Mono", ui-monospace, Consolas, monospace;
}
.admin-content .dash-page .dash-tip-value {
  margin-top: 0.2rem;
  font-size: 1rem;
  font-weight: 700;
  color: #f8fafc;
  font-variant-numeric: tabular-nums;
}
.admin-content .dash-page .dash-tip-meta { margin-top: 0.15rem; font-size: 0.74rem; font-weight: 600; color: #4cd7f6; }

@media (max-width: 560px) {
  .admin-content .dash-page .dash-chart-tip { min-width: 0; padding: 0.45rem 0.6rem; }
  .admin-content .dash-page .dash-tip-value { font-size: 0.9rem; }
}

/* ---- Total users tile ---- */
.admin-content .dash-page .dash-users { display: flex; flex-direction: column; justify-content: flex-start; gap: 0; }
.admin-content .dash-page .dash-users-top { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; flex-wrap: wrap; }
.admin-content .dash-page .dash-users .dash-tile-value { margin-top: 0.7rem; }
.admin-content .dash-page .dash-users .dash-tile-hint { margin-top: 0.2rem; }
.admin-content .dash-page .dash-users-meter { margin-top: 1rem; display: grid; gap: 0.45rem; }
.admin-content .dash-page .dash-meter-head { display: flex; justify-content: space-between; gap: 0.5rem; font-size: 0.78rem; color: #8b96a8; }
.admin-content .dash-page .dash-meter-head .mono { color: #cbd5e1; font-size: 0.74rem; }
.admin-content .dash-page .dash-users-foot {
  margin-top: auto;
  padding-top: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: #cbd5e1;
}
.admin-content .dash-page .dash-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4edea3;
  box-shadow: 0 0 10px rgba(78, 222, 163, 0.7);
}

/* ---- Customers page (dark, matches the dashboard) ---- */
.admin-main:has(.cust-page) { background: #0a0e17; min-height: 100vh; }
.admin-main:has(.cust-page) .admin-topbar { background: rgba(10, 14, 23, 0.92); border-bottom-color: rgba(255, 255, 255, 0.06); }
.admin-main:has(.cust-page) .admin-title { color: #f8fafc; }
.admin-main:has(.cust-page) .admin-user { background: rgba(255, 255, 255, 0.06); color: #cbd5e1; }
.admin-main:has(.cust-page) .admin-topbar .admin-btn { background: rgba(255, 255, 255, 0.05); color: #e2e8f0; border-color: rgba(255, 255, 255, 0.1); }
.admin-main:has(.cust-page) .admin-topbar .admin-btn:hover { background: rgba(255, 255, 255, 0.1); }
.admin-main:has(.cust-page) .admin-toggle { background: rgba(255, 255, 255, 0.05); color: #e2e8f0; border-color: rgba(255, 255, 255, 0.1); }

.admin-content:has(.cust-page) {
  max-width: none;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  padding: 1.5rem 2rem 2.5rem;
  background: #0a0e17;
}
@media (max-width: 768px) {
  .admin-content:has(.cust-page) { padding: 1rem; }
}

.admin-content .cust-page {
  --c-card: #111827;
  --c-line: rgba(55, 65, 81, 0.6);
  --c-text: #e2e8f0;
  --c-title: #f8fafc;
  --c-muted: #94a3b8;
  --c-dim: #64748b;
  display: grid;
  gap: 1.25rem;
  width: 100%;
  min-width: 0;
  color: var(--c-text);
}
.admin-content .cust-page .cust-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.admin-content .cust-page .cust-title-row { display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; }
.admin-content .cust-page .section-title { margin: 0; color: var(--c-title); font-size: 1.6rem; font-weight: 700; letter-spacing: -0.025em; }
.admin-content .cust-page .cust-sub { margin: 0.35rem 0 0; color: var(--c-muted); font-size: 0.875rem; }
.admin-content .cust-page .cust-count-chip {
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
  background: rgba(99, 102, 241, 0.15);
  border: 1px solid rgba(99, 102, 241, 0.35);
  color: #a5b4fc;
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
}
.admin-content .cust-page button.secondary {
  background: #111827;
  color: #e2e8f0;
  border: 1px solid #374151;
  box-shadow: none;
  min-height: 38px;
}
.admin-content .cust-page button.secondary:hover { background: #1e293b; border-color: #4b5563; filter: none; box-shadow: none; }

/* KPI cards */
.admin-content .cust-page .cust-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
@media (max-width: 1100px) { .admin-content .cust-page .cust-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .admin-content .cust-page .cust-kpis { grid-template-columns: minmax(0, 1fr); } }
.admin-content .cust-page .cust-kpi {
  background: var(--c-card);
  border: 1px solid var(--c-line);
  border-radius: 8px;
  padding: 1rem 1.1rem;
  min-width: 0;
  box-shadow: 0 8px 24px -16px rgba(0, 0, 0, 0.6);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.admin-content .cust-page .cust-kpi:hover { border-color: rgba(99, 102, 241, 0.35); }
.admin-content .cust-page .cust-kpi.tone-indigo { --tone: #818cf8; --tone-bg: rgba(99, 102, 241, 0.16); }
.admin-content .cust-page .cust-kpi.tone-green { --tone: #34d399; --tone-bg: rgba(16, 185, 129, 0.15); }
.admin-content .cust-page .cust-kpi.tone-blue { --tone: #60a5fa; --tone-bg: rgba(59, 130, 246, 0.15); }
.admin-content .cust-page .cust-kpi.tone-violet { --tone: #c084fc; --tone-bg: rgba(168, 85, 247, 0.15); }
.admin-content .cust-page .cust-kpi-top { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; }
.admin-content .cust-page .cust-kpi-label { font-size: 0.7rem; font-weight: 600; letter-spacing: 0.07em; text-transform: uppercase; color: var(--c-muted); }
.admin-content .cust-page .cust-kpi-icon {
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  border-radius: 7px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--tone-bg);
  color: var(--tone);
  font-weight: 700;
  font-size: 0.9rem;
}
.admin-content .cust-page .cust-kpi-value {
  margin-top: 0.6rem;
  display: flex;
  align-items: baseline;
  gap: 0.45rem;
  flex-wrap: wrap;
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--c-title);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}
.admin-content .cust-page .cust-kpi-unit { font-size: 0.85rem; font-weight: 600; color: var(--c-muted); letter-spacing: 0; }
.admin-content .cust-page .cust-kpi-foot { margin-top: 0.6rem; display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.admin-content .cust-page .cust-hint { font-size: 0.76rem; color: var(--c-dim); }
.admin-content .cust-page .cust-pill {
  padding: 0.15rem 0.5rem;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 600;
  border: 1px solid transparent;
  white-space: nowrap;
}
.admin-content .cust-page .cust-pill.ok { background: rgba(16, 185, 129, 0.12); color: #34d399; border-color: rgba(16, 185, 129, 0.3); }
.admin-content .cust-page .cust-pill.warn { background: rgba(245, 158, 11, 0.12); color: #fbbf24; border-color: rgba(245, 158, 11, 0.3); }
.admin-content .cust-page .cust-pill.violet { background: rgba(168, 85, 247, 0.12); color: #d8b4fe; border-color: rgba(168, 85, 247, 0.3); }

/* Toolbar */
.admin-content .cust-page .cust-toolbar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  padding: 1rem;
  background: var(--c-card);
  border: 1px solid var(--c-line);
  border-radius: 8px;
}
.admin-content .cust-page .cust-search { flex: 1 1 320px; min-width: 0; }
.admin-content .cust-page .cust-search input {
  width: 100%;
  min-height: 40px;
  padding: 0.5rem 0.8rem;
  background: #0b1220;
  border: 1px solid #374151;
  border-radius: 6px;
  color: var(--c-text);
  font-size: 0.875rem;
  box-shadow: none;
}
.admin-content .cust-page .cust-search input::placeholder { color: #64748b; }
.admin-content .cust-page .cust-search input:focus { outline: none; border-color: #6366f1; box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2); }
.admin-content .cust-page .cust-toolbar > button {
  background: #6366f1;
  color: #ffffff;
  border-radius: 6px;
  min-height: 40px;
  padding: 0.5rem 1.1rem;
  font-weight: 600;
  box-shadow: 0 0 12px rgba(99, 102, 241, 0.25);
}
.admin-content .cust-page .cust-toolbar > button:hover { background: #818cf8; box-shadow: 0 0 16px rgba(99, 102, 241, 0.4); filter: none; }

/* Wallet total (matching the search) */
.admin-content .cust-page .cust-wallet-total {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem 0.9rem;
  padding: 0.6rem 1rem;
  background: rgba(17, 24, 39, 0.6);
  border: 1px solid var(--c-line);
  border-radius: 8px;
  margin: 0;
}
.admin-content .cust-page .cust-wallet-total-label { font-size: 0.72rem; font-weight: 600; color: var(--c-muted); text-transform: uppercase; letter-spacing: 0.06em; }
.admin-content .cust-page .cust-wallet-total-value { font-size: 1rem; font-weight: 700; color: var(--c-title); font-variant-numeric: tabular-nums; }
.admin-content .cust-page .cust-wallet-total-count { font-size: 0.78rem; color: var(--c-dim); }

/* Table */
.admin-content .cust-page .table-wrap {
  background: var(--c-card);
  border: 1px solid var(--c-line);
  border-radius: 8px;
  box-shadow: 0 8px 24px -16px rgba(0, 0, 0, 0.6);
  overflow: hidden;
}
.admin-content .cust-page .customers th {
  background: #0f172a;
  color: var(--c-muted);
  font-size: 0.64rem;
  letter-spacing: 0.08em;
  padding: 0.75rem 0.6rem;
  border-bottom: 1px solid var(--c-line);
  white-space: nowrap;
}
.admin-content .cust-page .customers td {
  color: var(--c-text);
  padding: 0.7rem 0.6rem;
  border-bottom: 1px solid rgba(55, 65, 81, 0.35);
  font-size: 0.8rem;
  background: transparent;
}
.admin-content .cust-page .customers tbody tr:hover { background: rgba(30, 41, 59, 0.45); }
.admin-content .cust-page .customers tr:last-child td { border-bottom: 0; }
.admin-content .cust-page .customers .mono { color: #e2e8f0; font-size: 0.76rem; }
.admin-content .cust-page .cell-email, .admin-content .cust-page .cell-contact { color: #cbd5e1; }
.admin-content .cust-page .cell-role { color: var(--c-muted); }
.admin-content .cust-page .customers .cust-name-cell { display: flex; align-items: center; gap: 0.5rem; min-width: 0; }
.admin-content .cust-page .cust-avatar {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(99, 102, 241, 0.18);
  border: 1px solid rgba(129, 140, 248, 0.35);
  color: #c7d2fe;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.admin-content .cust-page .customer-link { color: #818cf8; font-weight: 600; text-decoration: none; }
.admin-content .cust-page .customer-link:hover { color: #a5b4fc; text-decoration: underline; }
.admin-content .cust-page .customers .customer-actions button { background: rgba(99, 102, 241, 0.14); color: #c7d2fe; border: 1px solid rgba(99, 102, 241, 0.35); box-shadow: none; }
.admin-content .cust-page .customers .customer-actions button:hover { background: rgba(99, 102, 241, 0.25); filter: none; box-shadow: none; }
.admin-content .cust-page .customers .customer-actions button.danger { background: rgba(239, 68, 68, 0.1); color: #fca5a5; border-color: rgba(239, 68, 68, 0.3); }

/* Badges (dark) */
.admin-content .cust-page .badge { background: rgba(148, 163, 184, 0.1); color: #cbd5e1; border: 1px solid rgba(148, 163, 184, 0.2); font-size: 0.68rem; }
.admin-content .cust-page .badge.active, .admin-content .cust-page .badge.verified { background: rgba(16, 185, 129, 0.1); color: #34d399; border-color: rgba(16, 185, 129, 0.3); }
.admin-content .cust-page .badge.PENDING, .admin-content .cust-page .badge.pending { background: rgba(245, 158, 11, 0.1); color: #fbbf24; border-color: rgba(245, 158, 11, 0.3); }
.admin-content .cust-page .badge.disabled, .admin-content .cust-page .badge.deleted { background: rgba(248, 113, 113, 0.1); color: #f87171; border-color: rgba(248, 113, 113, 0.3); }

.admin-content .cust-page .cust-table-foot {
  padding: 0.75rem 1rem;
  border-top: 1px solid var(--c-line);
  font-family: "JetBrains Mono", ui-monospace, Consolas, monospace;
  font-size: 0.74rem;
  color: var(--c-dim);
}
.admin-content .cust-page .muted { color: var(--c-muted); }
.admin-content .cust-page p.muted:not(.small) { border: 0; background: none; padding: 1rem; text-align: center; }

/* ---- Customer dashboard (premium light theme; scoped to .user-dash) ---- */
.user-dash {
  --ud-card: #ffffff;
  --ud-line: #e4e9f2;
  --ud-text: #111827;
  --ud-muted: #64748b;
  --ud-soft: #f5f7fb;
  --ud-indigo: #4f46e5;
  --ud-blue: #2563eb;
  --ud-green: #059669;
  --ud-red: #dc2626;
  --ud-amber: #d97706;
  --ud-violet: #7c3aed;
  display: grid;
  gap: 1.5rem;
  width: 100%;
  min-width: 0;
  color: var(--ud-text);
}
.user-dash h1, .user-dash h2 { margin: 0; letter-spacing: -0.02em; }
.user-dash h2 { font-size: 1.05rem; font-weight: 700; color: var(--ud-text); }

/* Hero */
.user-dash .ud-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1.5rem;
  align-items: center;
  padding: 1.6rem 1.75rem;
  border-radius: 18px;
  color: #ffffff;
  background:
    radial-gradient(circle at 92% 0%, rgba(96, 165, 250, 0.35), transparent 45%),
    linear-gradient(135deg, #111c3a 0%, #1e3a8a 60%, #2453c7 100%);
  box-shadow: 0 18px 40px -22px rgba(30, 58, 138, 0.8);
}
.user-dash .ud-eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #bfdbfe;
}
.user-dash .ud-hero h1 { margin-top: 0.45rem; font-size: clamp(1.35rem, 2.4vw, 1.75rem); font-weight: 700; color: #ffffff; }
.user-dash .ud-hero p { margin: 0.4rem 0 0; font-size: 0.92rem; color: #cbd5f5; }
.user-dash .ud-hero-balance {
  display: grid;
  gap: 0.35rem;
  justify-items: end;
  min-width: 200px;
  padding: 1rem 1.15rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.user-dash .ud-balance-label { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: #bfdbfe; }
.user-dash .ud-balance-value { font-size: 1.7rem; font-weight: 700; color: #ffffff; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.user-dash .ud-balance-btn {
  margin-top: 0.25rem;
  padding: 0.5rem 1rem;
  border-radius: 10px;
  background: #ffffff;
  color: #1e3a8a;
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.12s ease, box-shadow 0.15s ease;
}
.user-dash .ud-balance-btn:hover { transform: translateY(-1px); box-shadow: 0 8px 18px -10px rgba(255, 255, 255, 0.6); text-decoration: none; }

/* Quick actions */
.user-dash .ud-actions { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.user-dash .ud-action {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 1rem 1.1rem;
  border-radius: 14px;
  background: var(--ud-card);
  border: 1px solid var(--ud-line);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  color: var(--ud-text);
  text-decoration: none;
  min-width: 0;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.user-dash .ud-action:hover { transform: translateY(-2px); box-shadow: 0 14px 28px -18px rgba(15, 23, 42, 0.35); border-color: #c7d2fe; text-decoration: none; }
.user-dash .ud-action:focus-visible { outline: 2px solid #818cf8; outline-offset: 3px; }
.user-dash .ud-action-icon {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 700;
  background: var(--ud-tone-bg);
  color: var(--ud-tone);
}
.user-dash .ud-action.tone-deposit { --ud-tone: #059669; --ud-tone-bg: #ecfdf5; }
.user-dash .ud-action.tone-create { --ud-tone: #2563eb; --ud-tone-bg: #eff6ff; }
.user-dash .ud-action.tone-list { --ud-tone: #4f46e5; --ud-tone-bg: #eef2ff; }
.user-dash .ud-action.tone-tx { --ud-tone: #7c3aed; --ud-tone-bg: #f5f3ff; }
.user-dash .ud-action-text { display: grid; gap: 0.15rem; min-width: 0; }
.user-dash .ud-action-label { font-size: 0.92rem; font-weight: 700; color: var(--ud-text); }
.user-dash .ud-action-hint { font-size: 0.78rem; color: var(--ud-muted); }

/* Sections */
.user-dash .ud-section { display: grid; gap: 0.85rem; min-width: 0; }
.user-dash .ud-section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 0.75rem; flex-wrap: wrap; }
.user-dash .ud-section-note { font-size: 0.8rem; color: var(--ud-muted); }

/* Consumption metrics */
.user-dash .ud-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.9rem; }
.user-dash .ud-metric {
  position: relative;
  display: grid;
  gap: 0.45rem;
  padding: 1rem 1.1rem;
  border-radius: 14px;
  background: var(--ud-card);
  border: 1px solid var(--ud-line);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  overflow: hidden;
  min-width: 0;
}
.user-dash .ud-metric::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--ud-tone);
}
.user-dash .ud-metric.tone-indigo { --ud-tone: #4f46e5; }
.user-dash .ud-metric.tone-green { --ud-tone: #059669; }
.user-dash .ud-metric.tone-red { --ud-tone: #dc2626; }
.user-dash .ud-metric.tone-blue { --ud-tone: #2563eb; }
.user-dash .ud-metric.tone-violet { --ud-tone: #7c3aed; }
.user-dash .ud-metric.tone-amber { --ud-tone: #d97706; }
.user-dash .ud-metric-label { font-size: 0.78rem; font-weight: 600; color: var(--ud-muted); line-height: 1.35; }
.user-dash .ud-metric-value { font-size: 1.5rem; font-weight: 700; color: var(--ud-text); font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }

/* Financial statistics */
.user-dash .ud-finance { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0.9rem; }
.user-dash .ud-finance-card {
  display: grid;
  gap: 0.5rem;
  padding: 1rem 1.05rem;
  border-radius: 14px;
  background: var(--ud-card);
  border: 1px solid var(--ud-line);
  border-top: 3px solid var(--ud-tone);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  min-width: 0;
}
.user-dash .ud-finance-card.tone-blue { --ud-tone: #2563eb; }
.user-dash .ud-finance-card.tone-indigo { --ud-tone: #4f46e5; }
.user-dash .ud-finance-card.tone-green { --ud-tone: #059669; }
.user-dash .ud-finance-card.tone-amber { --ud-tone: #d97706; }
.user-dash .ud-finance-card.tone-violet { --ud-tone: #7c3aed; }
.user-dash .ud-finance-label { font-size: 0.76rem; font-weight: 600; color: var(--ud-muted); line-height: 1.3; }
.user-dash .ud-finance-value { font-size: 1.2rem; font-weight: 700; color: var(--ud-text); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }

/* Recent orders card */
.user-dash .ud-card {
  background: var(--ud-card);
  border: 1px solid var(--ud-line);
  border-radius: 14px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  overflow: hidden;
  min-width: 0;
}
.user-dash .ud-table .table-wrap { border: 0; box-shadow: none; border-radius: 0; }
.user-dash .ud-table th { background: #f8fafc; color: var(--ud-muted); font-size: 0.7rem; letter-spacing: 0.06em; text-transform: uppercase; }
.user-dash .ud-table td { font-size: 0.88rem; }
.user-dash .ud-table tbody tr:hover { background: #f8faff; }

@media (max-width: 1100px) {
  .user-dash .ud-finance { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .user-dash .ud-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .user-dash .ud-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .user-dash .ud-hero { grid-template-columns: minmax(0, 1fr); padding: 1.25rem; }
  .user-dash .ud-hero-balance { justify-items: start; min-width: 0; }
  .user-dash .ud-finance { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 480px) {
  .user-dash .ud-actions { grid-template-columns: minmax(0, 1fr); }
  .user-dash .ud-metrics, .user-dash .ud-finance { grid-template-columns: minmax(0, 1fr); }
  .user-dash .ud-metric-value { font-size: 1.3rem; }
}

/* ---- Colourful button system (presentation only) ---- */
button, .btn {
  background: linear-gradient(135deg, #1f5eff 0%, #6d28d9 100%);
  color: #ffffff;
  border: 0;
  border-radius: 10px;
  font-weight: 600;
  box-shadow: 0 6px 16px -8px rgba(31, 94, 255, 0.7);
  transition: transform 0.12s ease, box-shadow 0.2s ease, filter 0.2s ease, background 0.2s ease;
}
button:hover, .btn:hover {
  background: linear-gradient(135deg, #1747c4 0%, #5b21b6 100%);
  box-shadow: 0 10px 22px -10px rgba(31, 94, 255, 0.85);
  transform: translateY(-1px);
}
button:active, .btn:active { transform: translateY(0); }
button:disabled, .btn:disabled { opacity: 0.55; box-shadow: none; transform: none; }

button.secondary, .btn.secondary {
  background: linear-gradient(135deg, #ecfeff 0%, #e0e7ff 100%);
  color: #0e7490;
  border: 1px solid #a5f3fc;
  box-shadow: none;
}
button.secondary:hover, .btn.secondary:hover {
  background: linear-gradient(135deg, #cffafe 0%, #c7d2fe 100%);
  color: #155e75;
  border-color: #67e8f9;
  box-shadow: 0 6px 14px -8px rgba(14, 116, 144, 0.5);
  transform: translateY(-1px);
}

button.danger, .btn.danger {
  background: linear-gradient(135deg, #ef4444 0%, #be123c 100%);
  color: #ffffff;
  box-shadow: 0 6px 16px -8px rgba(239, 68, 68, 0.75);
}
button.danger:hover, .btn.danger:hover {
  background: linear-gradient(135deg, #dc2626 0%, #9f1239 100%);
  box-shadow: 0 10px 22px -10px rgba(239, 68, 68, 0.85);
}

button.danger-outline {
  background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
  color: #c2410c;
  border: 1px solid #fdba74;
  box-shadow: none;
}
button.danger-outline:hover { background: linear-gradient(135deg, #ffedd5 0%, #fed7aa 100%); color: #9a3412; box-shadow: 0 6px 14px -8px rgba(234, 88, 12, 0.5); }

/* Keep row-menu items and sidebar logout as they were */
button.dropdown-item, button.dropdown-item:hover, button.dropdown-item.danger {
  background: transparent;
  box-shadow: none;
  transform: none;
}
button.dropdown-item:hover { background: #f1f5f9; }
button.dropdown-item.danger:hover { background: #fef2f2; }
.nav-logout, .nav-logout:hover { transform: none; }

/* Admin light pages */
.admin-content button.secondary {
  background: linear-gradient(135deg, #ecfeff 0%, #e0e7ff 100%);
  color: #0e7490;
  border: 1px solid #a5f3fc;
}
.admin-content button.secondary:hover {
  background: linear-gradient(135deg, #cffafe 0%, #c7d2fe 100%);
  color: #155e75;
  border-color: #67e8f9;
  filter: none;
}
.admin-topbar .admin-btn {
  background: linear-gradient(135deg, #fff1f2 0%, #ffe4e6 100%);
  color: #be123c;
  border: 1px solid #fecdd3;
  box-shadow: none;
}
.admin-topbar .admin-btn:hover {
  background: linear-gradient(135deg, #ffe4e6 0%, #fecdd3 100%);
  color: #9f1239;
  filter: none;
}

/* Admin dark pages: secondary buttons get a cyan tint */
.admin-content .cust-page button.secondary,
.admin-content .dash-page button.secondary {
  background: rgba(76, 215, 246, 0.1);
  color: #7dd3fc;
  border: 1px solid rgba(76, 215, 246, 0.35);
}
.admin-content .cust-page button.secondary:hover,
.admin-content .dash-page button.secondary:hover {
  background: rgba(76, 215, 246, 0.2);
  color: #e0f7ff;
  border-color: rgba(76, 215, 246, 0.6);
}
.admin-content .cust-page .cust-toolbar > button {
  background: linear-gradient(135deg, #6366f1 0%, #06b6d4 100%);
  box-shadow: 0 0 14px rgba(99, 102, 241, 0.35);
}
.admin-content .cust-page .cust-toolbar > button:hover {
  background: linear-gradient(135deg, #818cf8 0%, #22d3ee 100%);
}
.admin-content .cust-page .customers .customer-actions button.danger {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.2), rgba(190, 18, 60, 0.2));
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.45);
}

/* ---- Card consumption table (customer dashboard) ---- */
.user-dash .ud-consumption {
  background: #ffffff;
  border: 1px solid var(--ud-line);
  border-radius: 14px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  overflow-x: auto;
  min-width: 0;
}
.user-dash .ud-consumption-table {
  width: 100%;
  min-width: 760px;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
}
.user-dash .ud-consumption-table th {
  padding: 0.85rem 0.75rem;
  background: #f8fafc;
  color: var(--ud-muted);
  font-size: 0.74rem;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
  border-bottom: 1px solid var(--ud-line);
  white-space: normal;
}
.user-dash .ud-consumption-table td {
  padding: 1.05rem 0.75rem;
  text-align: center;
  border-bottom: 0;
  vertical-align: middle;
}
.user-dash .ud-cons-cell { position: relative; }
.user-dash .ud-cons-value {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ud-text);
  font-variant-numeric: tabular-nums;
}
.user-dash .ud-cons-cell.is-alert { background: #fff5f5; }
.user-dash .ud-cons-cell.is-alert .ud-cons-value { color: #e11d48; }
.user-dash .ud-cons-cell.is-alert::after {
  content: "";
  position: absolute;
  left: 12%;
  right: 12%;
  bottom: 0;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: #f43f5e;
}
.user-dash .ud-cons-flag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  margin-left: 0.35rem;
  vertical-align: middle;
  border-radius: 50%;
  background: #f43f5e;
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 800;
  line-height: 1;
}

/* ---- Quick action buttons: gradient icon tiles and chevron ---- */
.user-dash .ud-action {
  position: relative;
  padding: 1rem 1.05rem;
  gap: 0.95rem;
  overflow: hidden;
  background: linear-gradient(180deg, #ffffff 0%, #fbfcff 100%);
}
.user-dash .ud-action::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--ud-g1), var(--ud-g2));
  opacity: 0;
  transition: opacity 0.2s ease;
}
.user-dash .ud-action:hover::after { opacity: 1; }
.user-dash .ud-action:hover { box-shadow: 0 16px 30px -18px var(--ud-glow); border-color: transparent; }
.user-dash .ud-action-icon {
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  border-radius: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: linear-gradient(135deg, var(--ud-g1), var(--ud-g2));
  box-shadow: 0 10px 20px -10px var(--ud-glow), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
.user-dash .ud-action-icon svg { display: block; }
.user-dash .ud-action-chev {
  margin-left: auto;
  display: inline-flex;
  color: #94a3b8;
  transition: transform 0.2s ease, color 0.2s ease;
}
.user-dash .ud-action:hover .ud-action-chev { transform: translateX(3px); color: var(--ud-g1); }
.user-dash .ud-action-label { font-size: 0.95rem; font-weight: 700; letter-spacing: -0.01em; }
.user-dash .ud-action.tone-deposit { --ud-g1: #10b981; --ud-g2: #047857; --ud-glow: rgba(16, 185, 129, 0.55); }
.user-dash .ud-action.tone-create { --ud-g1: #3b82f6; --ud-g2: #1d4ed8; --ud-glow: rgba(37, 99, 235, 0.55); }
.user-dash .ud-action.tone-list { --ud-g1: #6366f1; --ud-g2: #4338ca; --ud-glow: rgba(79, 70, 229, 0.55); }
.user-dash .ud-action.tone-tx { --ud-g1: #a855f7; --ud-g2: #7e22ce; --ud-glow: rgba(147, 51, 234, 0.55); }

/* ---- Quick action buttons: solid gradient buttons (reference layout) ---- */
.user-dash .ud-actions { gap: 1rem; }
.user-dash .ud-action {
  justify-content: center;
  gap: 0.6rem;
  min-height: 52px;
  padding: 0.85rem 1.25rem;
  border-radius: 12px;
  border: 0;
  color: #ffffff;
  background: linear-gradient(90deg, var(--ud-g1), var(--ud-g2));
  box-shadow: 0 6px 16px -10px var(--ud-glow);
  font-size: 0.92rem;
  font-weight: 700;
  text-align: center;
}
.user-dash .ud-action::after { display: none; }
.user-dash .ud-action:hover {
  background: linear-gradient(90deg, var(--ud-h1), var(--ud-h2));
  box-shadow: 0 10px 22px -10px var(--ud-glow);
  transform: translateY(-1px);
  border: 0;
  color: #ffffff;
}
.user-dash .ud-action:active { transform: translateY(0); }
.user-dash .ud-action-icon {
  width: auto;
  height: auto;
  flex: 0 0 auto;
  background: transparent;
  box-shadow: none;
  color: #ffffff;
  border-radius: 0;
}
.user-dash .ud-action-text { display: inline; min-width: 0; }
.user-dash .ud-action-label { font-size: 0.95rem; font-weight: 700; color: #ffffff; letter-spacing: 0; }
.user-dash .ud-action-hint { display: none; }
.user-dash .ud-action-chev { display: none; }
.user-dash .ud-action.tone-deposit { --ud-g1: #f43f5e; --ud-g2: #e11d48; --ud-h1: #e11d48; --ud-h2: #be123c; --ud-glow: rgba(244, 63, 94, 0.55); }
.user-dash .ud-action.tone-create { --ud-g1: #2563eb; --ud-g2: #4f46e5; --ud-h1: #1d4ed8; --ud-h2: #4338ca; --ud-glow: rgba(37, 99, 235, 0.55); }
.user-dash .ud-action.tone-list { --ud-g1: #14b8a6; --ud-g2: #0891b2; --ud-h1: #0d9488; --ud-h2: #0e7490; --ud-glow: rgba(20, 184, 166, 0.55); }
.user-dash .ud-action.tone-tx { --ud-g1: #7c3aed; --ud-g2: #9333ea; --ud-h1: #6d28d9; --ud-h2: #7e22ce; --ud-glow: rgba(124, 58, 237, 0.55); }
@media (max-width: 900px) {
  .user-dash .ud-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 480px) {
  .user-dash .ud-actions { grid-template-columns: minmax(0, 1fr); }
}

/* ---- Consumption rate colours: success green, failure green / orange / red ---- */
.user-dash .ud-cons-cell.tone-success .ud-cons-value,
.user-dash .ud-cons-cell.tone-ok .ud-cons-value { color: #059669; }
.user-dash .ud-cons-cell.tone-warn { background: #fffbeb; }
.user-dash .ud-cons-cell.tone-warn .ud-cons-value { color: #d97706; }
.user-dash .ud-cons-cell.tone-warn::after {
  content: "";
  position: absolute;
  left: 12%;
  right: 12%;
  bottom: 0;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: #f59e0b;
}
.user-dash .ud-cons-cell.tone-danger { background: #fff5f5; }
.user-dash .ud-cons-cell.tone-danger .ud-cons-value { color: #dc2626; }
.user-dash .ud-cons-cell.tone-danger::after {
  content: "";
  position: absolute;
  left: 12%;
  right: 12%;
  bottom: 0;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: #ef4444;
}
.user-dash .ud-cons-cell.tone-danger .ud-cons-flag { background: #dc2626; }

/* ---- Financial statistics: icon tiles ---- */
.user-dash .ud-finance-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 0.5rem; }
.user-dash .ud-finance-icon {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  border-radius: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--ud-ibg);
  color: var(--ud-ifg);
}
.user-dash .ud-finance-icon svg { display: block; }
.user-dash .ud-finance-card.tone-blue { --ud-ibg: #eff6ff; --ud-ifg: #2563eb; }
.user-dash .ud-finance-card.tone-indigo { --ud-ibg: #eef2ff; --ud-ifg: #4f46e5; }
.user-dash .ud-finance-card.tone-green { --ud-ibg: #ecfdf5; --ud-ifg: #059669; }
.user-dash .ud-finance-card.tone-amber { --ud-ibg: #fffbeb; --ud-ifg: #d97706; }
.user-dash .ud-finance-card.tone-violet { --ud-ibg: #f5f3ff; --ud-ifg: #7c3aed; }
