/* ZHOX Payments — visual app-first, sem landing page */
:root {
  --bg: #06101d;
  --bg-deep: #040b14;
  --surface: rgba(13, 29, 49, .86);
  --surface-solid: #0d1d31;
  --surface-2: #122741;
  --surface-3: #193858;
  --line: rgba(164, 197, 228, .16);
  --line-strong: rgba(164, 197, 228, .28);
  --text: #f4f8ff;
  --text-2: #9db1c9;
  --text-3: #6e88a6;
  --accent: #62e8c2;
  --accent-2: #7890ff;
  --accent-fg: #041a16;
  --green: #62e8c2;
  --red: #ff8096;
  --amber: #f8c86b;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 18px 55px rgba(0, 0, 0, .28);
}

html, body { background: var(--bg-deep); }
body {
  background:
    radial-gradient(900px 500px at 100% -8%, rgba(69, 102, 255, .20), transparent 65%),
    radial-gradient(780px 460px at -12% 40%, rgba(44, 209, 168, .12), transparent 66%),
    linear-gradient(180deg, #071526 0%, #06101d 58%, #040b14 100%);
}
body::before {
  opacity: .22;
  background-image: linear-gradient(rgba(255,255,255,.022) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.022) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: linear-gradient(to bottom, #000 0%, transparent 76%);
}
body.shell-market { background: var(--bg-deep); }
body.shell-market::before { display: none; }

.brand { gap: 9px; letter-spacing: .12em; }
.brand svg { color: var(--accent); filter: drop-shadow(0 0 14px rgba(98,232,194,.30)); }
.brand span { color: var(--text); }
.brand em { color: var(--text-3); font-style: normal; font-size: 9px; letter-spacing: .18em; margin-left: -4px; align-self: flex-end; margin-bottom: 3px; }

.app-shell { grid-template-columns: 248px minmax(0, 1fr); min-height: 100dvh; }
.sidebar {
  position: sticky;
  top: 0;
  height: 100dvh;
  padding: 24px 14px;
  background: rgba(5, 15, 28, .78);
  border-right: 1px solid var(--line);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
}
.sidebar .brand { margin: 5px 12px 34px; }
.side-nav { gap: 5px; }
.side-nav a {
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: 14px;
  color: var(--text-2);
  transition: transform .18s ease, background .18s ease, border-color .18s ease, color .18s ease;
}
.side-nav a:hover { transform: translateX(2px); background: rgba(255,255,255,.045); border-color: var(--line); color: var(--text); }
.side-nav a.active { background: linear-gradient(100deg, rgba(98,232,194,.16), rgba(120,144,255,.08)); border-color: rgba(98,232,194,.22); color: var(--accent); box-shadow: inset 3px 0 var(--accent), 0 8px 20px rgba(0,0,0,.12); }
.side-nav a svg { color: currentColor; }
.app-content { min-width: 0; position: relative; }
.app-topline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  min-height: 58px;
  padding: 0 clamp(18px, 4vw, 48px);
  border-bottom: 1px solid rgba(164,197,228,.09);
  background: rgba(5,15,28,.32);
  color: var(--text-3);
  font-size: 11px;
}
.app-topline-left, .app-topline-right { display: flex; align-items: center; gap: 8px; min-width: 0; }
.app-topline-right strong { color: var(--text); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.status-dot { width: 8px; height: 8px; display: inline-block; flex: 0 0 auto; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(98,232,194,.11), 0 0 16px rgba(98,232,194,.55); }
.top-mobile { background: rgba(5,15,28,.88); border-bottom-color: var(--line); }
.mobile-user { display: inline-flex; align-items: center; gap: 7px; min-width: 0; margin-left: auto; margin-right: 8px; color: var(--text-2); font-size: 11px; }
.mobile-user span:last-child { max-width: 88px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.main { max-width: 1120px; padding: 34px clamp(18px, 4vw, 48px) 74px; }
.page-head { margin-bottom: 25px; align-items: center; }
.page-head h1 { font-size: clamp(1.65rem, 3vw, 2.25rem); letter-spacing: -.045em; }
.kicker { color: var(--accent); letter-spacing: .18em; }
.btn {
  min-height: 44px;
  padding: 0 16px;
  border-radius: 13px;
  border-color: var(--line);
  background: rgba(255,255,255,.035);
  font-weight: 700;
  transition: transform .18s ease, background .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.btn:hover { transform: translateY(-1px); background: rgba(255,255,255,.08); border-color: var(--line-strong); }
.btn-primary { background: linear-gradient(135deg, var(--accent), #43cdb3); color: var(--accent-fg); border-color: transparent; box-shadow: 0 9px 24px rgba(98,232,194,.18); }
.btn-primary:hover { background: linear-gradient(135deg, #7af1d1, #51d9bd); box-shadow: 0 12px 30px rgba(98,232,194,.28); }

.card, .stat, .panel {
  background: linear-gradient(145deg, rgba(17, 42, 70, .88), rgba(9, 24, 42, .92));
  border-color: var(--line);
  box-shadow: var(--shadow);
}
.card { border-radius: var(--radius); padding: 18px; }
.stat { border-radius: var(--radius); padding: 18px; }
.stat span { color: var(--text-3); }
.stat b { color: var(--text); }
input, select, textarea { background: rgba(4, 15, 28, .72); border-color: var(--line-strong); border-radius: 12px; }
input:focus, select:focus, textarea:focus { border-color: var(--accent); outline: 3px solid rgba(98,232,194,.12); }
.flash { border-radius: 13px; box-shadow: 0 8px 22px rgba(0,0,0,.12); }
pre, .pix-code { background: rgba(3, 12, 23, .78); border-color: var(--line); }
.table-wrap { border-color: var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
table { background: rgba(9,24,42,.62); }
th { color: var(--text-3); }
td { color: #dbe7f7; }
.badge { background: rgba(255,255,255,.035); }
.badge.ok { background: rgba(98,232,194,.09); }
.badge.warn { background: rgba(248,200,107,.09); }
.badge.err { background: rgba(255,128,150,.09); }

/* Home autenticada */
.dashboard-hero { position: relative; overflow: hidden; padding: clamp(20px, 4vw, 34px); border: 1px solid rgba(98,232,194,.22); border-radius: 24px; background: linear-gradient(135deg, rgba(24,70,82,.92), rgba(13,31,55,.96) 58%, rgba(28,39,85,.94)); box-shadow: 0 24px 70px rgba(0,0,0,.22); }
.dashboard-hero::after { content: ''; position: absolute; width: 260px; height: 260px; right: -100px; top: -140px; border-radius: 50%; background: radial-gradient(circle, rgba(120,144,255,.42), transparent 68%); pointer-events: none; }
.dashboard-hero-top { position: relative; z-index: 1; display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.dashboard-hero h1 { margin-top: 5px; font-size: clamp(1.65rem, 4vw, 2.5rem); letter-spacing: -.055em; }
.dashboard-hero-copy { color: var(--text-2); margin-top: 8px; font-size: 13px; }
.status-pill { display: inline-flex; align-items: center; gap: 7px; padding: 7px 10px; border: 1px solid rgba(98,232,194,.28); border-radius: 999px; color: var(--accent); background: rgba(98,232,194,.10); font-size: 10px; font-weight: 800; white-space: nowrap; }
.balance-panel { position: relative; z-index: 1; margin-top: 25px; padding: 18px; border-radius: 18px; background: rgba(4,14,27,.40); border: 1px solid rgba(255,255,255,.10); }
.balance-label { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: var(--text-2); font-size: 11px; }
.balance-label span { color: var(--accent); font-weight: 800; letter-spacing: .12em; }
.balance-value { margin: 7px 0 12px; color: var(--text); font-size: clamp(2rem, 6vw, 3.45rem); font-weight: 800; letter-spacing: -.07em; line-height: 1; font-variant-numeric: tabular-nums; }
.balance-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: var(--text-3); font-size: 11px; }
.balance-foot a { color: var(--accent); font-weight: 800; }
.quick-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 10px; margin: 15px 0 25px; }
.quick-card { display: flex; align-items: center; gap: 11px; min-width: 0; padding: 14px; border: 1px solid var(--line); border-radius: 16px; background: rgba(13,29,49,.76); transition: transform .18s ease, border-color .18s ease, background .18s ease; }
.quick-card:hover { transform: translateY(-2px); border-color: rgba(98,232,194,.36); background: rgba(23,57,83,.88); }
.quick-icon { display: grid; place-items: center; flex: 0 0 auto; width: 42px; height: 42px; border-radius: 13px; color: var(--accent); background: rgba(98,232,194,.11); border: 1px solid rgba(98,232,194,.18); }
.quick-icon svg { width: 20px !important; height: 20px !important; }
.quick-copy { min-width: 0; }
.quick-copy strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.quick-copy span { display: block; margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text-3); font-size: 10px; }
.section-label { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 11px; }
.section-label h2 { font-size: 16px; }
.section-label a { color: var(--accent); font-size: 11px; font-weight: 800; }
.overview-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 12px; margin-bottom: 22px; }
.mini-stats { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 10px; }
.mini-stat { padding: 14px; border: 1px solid var(--line); border-radius: 15px; background: rgba(13,29,49,.72); }
.mini-stat span { display: block; color: var(--text-3); font-size: 10px; }
.mini-stat strong { display: block; margin-top: 6px; color: var(--text); font-size: 15px; }
.activity-card { min-width: 0; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(13,29,49,.72); }
.activity-card .table-wrap { box-shadow: none; }

/* Auth sem landing */
body.shell-auth { background: radial-gradient(700px 430px at 50% -12%, rgba(98,232,194,.16), transparent 68%), linear-gradient(180deg, #071526 0%, #040b14 100%); }
.auth-shell { min-height: 100dvh; padding: 22px 14px; }
.auth-card { width: min(100%, 460px); padding: 30px clamp(20px, 5vw, 34px); border-radius: 24px; background: rgba(10,27,47,.90); border-color: rgba(164,197,228,.20); box-shadow: 0 26px 90px rgba(0,0,0,.40); backdrop-filter: blur(22px); }
.auth-card .brand { margin-bottom: 22px; }
.auth-card h1 { font-size: clamp(1.75rem, 7vw, 2.25rem); letter-spacing: -.055em; }
.auth-card .muted { line-height: 1.55; }
.auth-card form { margin-top: 20px; }
.auth-card .help { color: var(--text-3); }
.auth-card .help a { color: var(--accent); }
.auth-card label { color: var(--text-2); }
.auth-card .actions { margin-top: 20px; }

@media (max-width: 900px) {
  .app-shell { display: block; }
  .sidebar { display: none; }
  .app-topline { display: none; }
  .top-mobile { display: flex; align-items: center; justify-content: space-between; min-height: 62px; padding: 0 14px; background: rgba(5,15,28,.92); border-bottom: 1px solid var(--line); }
  .top-mobile .brand { min-width: 0; }
  .main { max-width: 100%; padding: 20px 14px calc(92px + env(safe-area-inset-bottom, 0px)); }
  .mobile-bar { display: grid !important; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 2px; position: fixed; z-index: 60; left: 0; right: 0; bottom: 0; height: calc(70px + env(safe-area-inset-bottom, 0px)); padding: 7px 5px env(safe-area-inset-bottom, 0px); background: rgba(5,15,28,.96); border-top: 1px solid var(--line); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); }
  .mobile-bar a { max-width: none; min-width: 0; color: var(--text-3); border-radius: 13px; font-size: 10px; }
  .mobile-bar a.active { color: var(--accent); background: rgba(98,232,194,.09); }
  .mobile-bar a svg { width: 21px !important; height: 21px !important; }
  .overview-grid { grid-template-columns: 1fr; }
  .quick-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 560px) {
  .page-head { align-items: stretch; }
  .page-head .actions { margin-top: 2px; }
  .page-head .actions .btn { flex: 1; }
  .dashboard-hero { padding: 20px 16px; border-radius: 20px; }
  .dashboard-hero-top { display: block; }
  .dashboard-hero-top .status-pill { margin-top: 14px; }
  .balance-value { font-size: clamp(2rem, 11vw, 2.8rem); }
  .balance-foot { align-items: flex-start; flex-direction: column; }
  .quick-grid { grid-template-columns: 1fr; }
  .mini-stats { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr !important; }
  .actions { flex-direction: column; }
  .actions .btn { width: 100%; }
  .auth-shell { padding: 14px; }
  .auth-card { padding: 26px 18px; border-radius: 20px; }
}
@media (min-width: 901px) {
  .top-mobile, .mobile-bar { display: none !important; }
}
@media (prefers-reduced-motion: no-preference) {
  .dashboard-hero, .card, .stat, .activity-card { animation: zho-fade-in .42s ease both; }
  @keyframes zho-fade-in { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* Crypto deposit flow */
.form-section-title { display: flex; align-items: center; gap: 10px; padding-bottom: 4px; }
.form-section-title strong, .form-section-title small { display: block; }
.form-section-title strong { font-size: 13px; }
.form-section-title small { margin-top: 2px; color: var(--text-3); font-size: 11px; }
.step-number { display: grid; place-items: center; width: 29px; height: 29px; flex: 0 0 auto; border-radius: 10px; color: var(--accent); background: rgba(98,232,194,.11); border: 1px solid rgba(98,232,194,.22); font-size: 10px; font-weight: 900; letter-spacing: .06em; }
.crypto-payment-card { overflow: hidden; }
.crypto-qr { width: min(230px, 72vw); padding: 12px; }
.crypto-pay-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
.crypto-pay-grid > div { min-width: 0; padding: 12px; border: 1px solid var(--line); border-radius: 13px; background: rgba(4,15,28,.42); }
.field-caption { display: block; color: var(--text-3); font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.crypto-pay-grid strong { display: block; margin-top: 5px; overflow: hidden; color: var(--text); font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.crypto-guide-card { background: linear-gradient(145deg, rgba(22,51,79,.88), rgba(12,28,49,.94)); }
.step-list { display: grid; gap: 14px; margin: 20px 0 16px; }
.step-list > div { display: flex; align-items: flex-start; gap: 10px; }
.step-list > div > span { display: grid; place-items: center; width: 25px; height: 25px; flex: 0 0 auto; border-radius: 50%; color: var(--accent-fg); background: var(--accent); font-size: 11px; font-weight: 900; }
.step-list p { min-width: 0; }
.step-list strong, .step-list small { display: block; }
.step-list strong { font-size: 13px; }
.step-list small { margin-top: 3px; color: var(--text-2); font-size: 12px; line-height: 1.4; }

/* Admin command center */
.admin-hero { position: relative; overflow: hidden; display: flex; justify-content: space-between; gap: 18px; padding: 24px; margin-bottom: 16px; border: 1px solid rgba(120,144,255,.26); border-radius: 22px; background: linear-gradient(135deg, rgba(34,50,111,.72), rgba(12,31,56,.96) 62%, rgba(19,65,72,.80)); }
.admin-hero::after { content: ''; position: absolute; width: 250px; height: 250px; right: -100px; top: -150px; border-radius: 50%; background: radial-gradient(circle, rgba(98,232,194,.26), transparent 68%); }
.admin-hero > div, .admin-hero > a { position: relative; z-index: 1; }
.admin-hero h1 { margin-top: 5px; font-size: clamp(1.7rem, 4vw, 2.5rem); letter-spacing: -.055em; }
.admin-hero p:not(.kicker) { margin-top: 8px; color: var(--text-2); font-size: 13px; }
.admin-command-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 10px; margin: 16px 0 24px; }
.admin-command { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 14px; border: 1px solid var(--line); border-radius: 15px; background: rgba(13,29,49,.72); transition: transform .18s ease, border-color .18s ease; }
.admin-command:hover { transform: translateY(-2px); border-color: rgba(98,232,194,.36); }
.admin-command-icon { display: grid; place-items: center; width: 38px; height: 38px; flex: 0 0 auto; border-radius: 12px; color: var(--accent); background: rgba(98,232,194,.10); }
.admin-command-icon svg { width: 18px !important; height: 18px !important; }
.admin-command strong, .admin-command small { display: block; }
.admin-command strong { font-size: 12px; }
.admin-command small { margin-top: 3px; color: var(--text-3); font-size: 10px; }
.admin-section-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 12px; margin-top: 22px; }
.provider-status { display: grid; gap: 10px; }
.provider-status > div { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 11px 12px; border: 1px solid var(--line); border-radius: 12px; background: rgba(4,15,28,.38); }
.provider-status span { color: var(--text-2); font-size: 12px; }
.settings-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
.settings-card-wide { grid-column: 1 / -1; }
.settings-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.settings-card-head h3 { margin: 0; }
.settings-card-head p { margin-top: 5px; color: var(--text-2); font-size: 12px; line-height: 1.45; }
.settings-mark { display: grid; place-items: center; width: 40px; height: 40px; flex: 0 0 auto; border-radius: 13px; color: var(--accent); background: rgba(98,232,194,.10); border: 1px solid rgba(98,232,194,.20); }
.settings-mark svg { width: 19px !important; height: 19px !important; }
.config-hint { padding: 11px 12px; margin-top: 12px; border-radius: 12px; border: 1px solid rgba(120,144,255,.22); background: rgba(120,144,255,.08); color: var(--text-2); font-size: 11px; line-height: 1.5; }
.config-hint strong { color: var(--text); }
@media (max-width: 900px) { .admin-command-grid { grid-template-columns: repeat(2, minmax(0,1fr)); } .admin-section-grid, .settings-grid { grid-template-columns: 1fr; } .settings-card-wide { grid-column: auto; } }
@media (max-width: 560px) { .admin-hero { display: block; padding: 20px 16px; } .admin-hero .btn { width: 100%; margin-top: 16px; } .admin-command-grid { grid-template-columns: 1fr; } .crypto-pay-grid { grid-template-columns: 1fr; } }

/* ZHOX — EasyPay-inspired product skin */
:root {
  --bg: #151b29;
  --bg-deep: #151b29;
  --surface: #1e2636;
  --surface-solid: #1e2636;
  --surface-2: #252f42;
  --surface-3: #2d3950;
  --line: #303b50;
  --line-strong: #3c4a62;
  --text: #f7f9ff;
  --text-2: #b5c0d2;
  --text-3: #8996aa;
  --accent: #5368ff;
  --accent-2: #7184ff;
  --accent-fg: #ffffff;
  --green: #29dc98;
  --red: #ff8e8e;
  --amber: #ffd06f;
  --radius: 16px;
  --radius-sm: 11px;
  --shadow: 0 10px 24px rgba(0,0,0,.16);
}

html, body { background: #151b29; }
body {
  color: var(--text);
  background: #151b29;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
body::before { display: none; }
body.shell-market { background: #151b29; }

.brand { gap: 8px; letter-spacing: .10em; }
.brand svg { width: 29px; height: 29px; color: #7184ff; filter: none; }
.brand span { color: #f7f9ff; }
.brand em { color: #8996aa; letter-spacing: .14em; }

/* Shared product surfaces */
.card, .stat, .panel, .activity-card,
.admin-panel, .admin-bottom-summary, .admin-user-card, .admin-empty,
.auth-card, .table-wrap {
  background: #1e2636;
  border-color: #303b50;
  box-shadow: 0 8px 20px rgba(0,0,0,.12);
}
.card, .stat, .activity-card, .admin-panel, .admin-bottom-summary { border-radius: 16px; }
.card { padding: 16px; }
.stat { padding: 15px; }
.stat b { color: #f7f9ff; }
.stat span, .muted, .help { color: #99a5b9; }

.btn {
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid #3b4860;
  border-radius: 10px;
  background: #252f42;
  color: #eaf0fa;
  box-shadow: none;
  font-size: 12px;
  font-weight: 700;
}
.btn:hover { transform: translateY(-1px); background: #2d3950; border-color: #52617a; }
.btn-primary, .primary { background: #5368ff; border-color: #5368ff; color: #fff; box-shadow: 0 8px 18px rgba(83,104,255,.22); }
.btn-primary:hover, .primary:hover { background: #6578ff; border-color: #6578ff; }
.btn-ghost { background: transparent; }

input, select, textarea {
  min-height: 43px;
  border: 1px solid #3a475d;
  border-radius: 10px;
  background: #171e2c;
  color: #f7f9ff;
  box-shadow: none;
}
input:focus, select:focus, textarea:focus { border-color: #7184ff; outline: 3px solid rgba(83,104,255,.15); }
pre, .pix-code, .code { background: #171e2c; border-color: #303b50; }
.flash, .notice { border-radius: 11px; }
.badge { border: 1px solid #3b4860; background: #252f42; color: #b5c0d2; }
.badge.ok { border-color: rgba(41,220,152,.32); background: rgba(41,220,152,.11); color: #29dc98; }
.badge.warn { border-color: rgba(255,208,111,.30); background: rgba(255,208,111,.10); color: #ffd06f; }
.badge.err { border-color: rgba(255,142,142,.28); background: rgba(255,142,142,.10); color: #ff9b9b; }

/* Desktop app shell and sidebar */
.app-shell { grid-template-columns: 236px minmax(0, 1fr); gap: 0; min-height: 100dvh; }
.sidebar {
  padding: 18px 12px;
  background: #1e2636;
  border-right: 1px solid #303b50;
  box-shadow: 8px 0 22px rgba(0,0,0,.08);
  backdrop-filter: none;
}
.sidebar .brand { margin: 4px 10px 30px; }
.side-nav { gap: 4px; }
.side-nav a {
  min-height: 44px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid transparent;
  color: #99a5b9;
  font-size: 12px;
}
.side-nav a svg { width: 20px; height: 20px; }
.side-nav a:hover { transform: none; background: #252f42; border-color: #303b50; color: #f7f9ff; }
.side-nav a.active { background: #2c3b61; border-color: #3f4f82; box-shadow: inset 3px 0 #7184ff; color: #f7f9ff; }
.side-nav a.active svg { color: #8f9cff; }
.app-content { background: #151b29; }
.app-topline { min-height: 52px; padding: 0 clamp(18px, 4vw, 42px); background: #1e2636; border-bottom: 1px solid #303b50; color: #8996aa; }
.status-dot { width: 7px; height: 7px; background: #29dc98; box-shadow: 0 0 0 3px rgba(41,220,152,.12), 0 0 9px rgba(41,220,152,.50); }
.top-mobile { min-height: 58px; background: #1e2636; border-bottom: 1px solid #303b50; }
.mobile-user { color: #99a5b9; }
.main { max-width: 1180px; padding: 26px clamp(16px, 4vw, 42px) 72px; }
.page-head { margin-bottom: 20px; }
.page-head h1 { color: #f7f9ff; font-size: clamp(1.55rem, 3vw, 2rem); }
.kicker { color: #7184ff; font-size: 9px; font-weight: 800; letter-spacing: .18em; }

/* EasyPay-style app home */
.dashboard-hero {
  padding: 22px;
  border: 1px solid #3b4b76;
  border-radius: 18px;
  background: linear-gradient(135deg, #293867 0%, #263651 53%, #244b4c 100%);
  box-shadow: 0 12px 28px rgba(0,0,0,.16);
}
.dashboard-hero::after { background: radial-gradient(circle, rgba(113,132,255,.32), transparent 68%); }
.dashboard-hero h1 { font-size: clamp(1.55rem, 4vw, 2.25rem); }
.dashboard-hero-copy { color: #b5c4dc; }
.status-pill { border-color: rgba(41,220,152,.34); color: #29dc98; background: rgba(41,220,152,.12); }
.balance-panel { margin-top: 20px; padding: 16px; border-radius: 15px; background: rgba(18,27,45,.52); border-color: rgba(255,255,255,.10); }
.balance-label { color: #b5c0d2; }
.balance-label span { color: #8f9cff; }
.balance-value { font-size: clamp(2rem, 6vw, 3.2rem); }
.balance-foot { color: #8996aa; }
.balance-foot a, .section-label a { color: #8f9cff; }
.quick-grid { gap: 9px; margin: 12px 0 22px; }
.quick-card { padding: 12px; border-color: #303b50; border-radius: 13px; background: #1e2636; }
.quick-card:hover { border-color: #5368ff; background: #252f42; }
.quick-icon { width: 38px; height: 38px; border-radius: 10px; color: #8f9cff; background: #2b3551; border-color: #3d4b74; }
.quick-copy strong { font-size: 11px; }
.quick-copy span { color: #8996aa; }
.section-label h2 { font-size: 15px; }
.overview-grid { gap: 10px; }
.mini-stat { padding: 12px; border-color: #303b50; background: #1e2636; border-radius: 13px; }
.mini-stat strong { font-size: 14px; }
.activity-card { padding: 15px; }
.table-wrap { border-radius: 14px; overflow: auto; }
table { background: #1e2636; }
th { color: #8996aa; }
td { color: #dbe2ef; }

/* Auth and public pages */
body.shell-auth { background: #151b29; }
.auth-shell { min-height: 100dvh; padding: 18px 14px; background: #151b29; }
.auth-card {
  width: min(100%, 430px);
  padding: 25px 21px 20px;
  border: 1px solid #303b50;
  border-radius: 17px;
  background: #1e2636;
  box-shadow: 0 12px 30px rgba(0,0,0,.17);
  backdrop-filter: none;
}
.auth-card .brand { margin-bottom: 20px; }
.auth-card h1 { font-size: clamp(1.65rem, 6vw, 2rem); }
.auth-card p { color: #99a5b9; }
.auth-card label { color: #b5c0d2; }
.auth-card .form input { background: #171e2c; }
.auth-card .help a { color: #8f9cff; }
.top { min-height: 52px; margin: 0 auto 8px; padding: 0 18px; max-width: 1180px; }
.nav-links { gap: 7px; }
.foot { color: #8996aa; border-top-color: #303b50; }

/* Admin in the same visual language */
.admin-hero { padding: 21px; border-radius: 18px; border-color: #3b4b76; background: linear-gradient(135deg, #293867 0%, #263651 53%, #244b4c 100%); box-shadow: 0 12px 28px rgba(0,0,0,.16); }
.admin-hero h1 { font-size: clamp(1.6rem, 4vw, 2.2rem); }
.admin-command-grid { gap: 9px; }
.admin-command { padding: 12px; border-color: #303b50; border-radius: 13px; background: #1e2636; }
.admin-command:hover { border-color: #5368ff; background: #252f42; }
.admin-command-icon { width: 35px; height: 35px; border-radius: 10px; color: #8f9cff; background: #2b3551; }
.admin-command small { color: #8996aa; }
.admin-section-grid { gap: 10px; }
.provider-status > div { padding: 10px 11px; border-color: #303b50; background: #252f42; }
.provider-status span { color: #b5c0d2; }
.settings-grid { gap: 10px; }
.settings-mark { width: 37px; height: 37px; border-radius: 10px; color: #8f9cff; background: #2b3551; border-color: #3d4b74; }
.settings-card-head p { color: #99a5b9; }
.config-hint { border-color: #3b4b76; background: rgba(83,104,255,.08); color: #b5c0d2; }

/* Documentation cards */
.docs-section { margin-bottom: 10px; }
.docs-section .settings-card-head { margin-bottom: 9px; }
.docs-section .code { border-radius: 11px; color: #dbe2ef; }

/* Mobile app navigation, matching EasyPay */
@media (max-width: 900px) {
  .main { padding: 18px 13px calc(88px + env(safe-area-inset-bottom, 0px)); }
  .top-mobile { padding: 0 13px; }
  .mobile-bar {
    height: calc(70px + env(safe-area-inset-bottom, 0px));
    padding: 7px 5px env(safe-area-inset-bottom, 0px);
    background: rgba(30,38,54,.98);
    border-top: 1px solid #303b50;
    box-shadow: 0 -8px 20px rgba(0,0,0,.18);
    backdrop-filter: none;
  }
  .mobile-bar a { color: #8996aa; border-radius: 11px; font-size: 9px; }
  .mobile-bar a.active { color: #8f9cff; background: #2b3551; }
  .mobile-bar a svg { width: 20px !important; height: 20px !important; }
  .dashboard-hero { padding: 19px 16px; border-radius: 17px; }
  .quick-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 560px) {
  .auth-shell { padding: 12px; }
  .auth-card { padding: 23px 17px 18px; border-radius: 16px; }
  .page-head { margin-bottom: 16px; }
  .page-head h1 { font-size: 1.55rem; }
  .quick-grid { grid-template-columns: 1fr 1fr; gap: 7px; }
  .quick-card { padding: 10px 9px; gap: 8px; }
  .quick-icon { width: 34px; height: 34px; }
  .quick-copy strong { font-size: 10px; }
  .quick-copy span { font-size: 9px; }
  .admin-command-grid { grid-template-columns: 1fr 1fr; }
  .admin-command { padding: 10px 9px; gap: 8px; }
  .admin-command-icon { width: 31px; height: 31px; }
  .admin-command strong { font-size: 10px; }
  .admin-command small { font-size: 9px; }
}
