@import url("brand.css");

/* ── Theme tokens (light default) ── */
body {
  --dash-bg: #f1f5f9;
  --dash-surface: #ffffff;
  --dash-surface-alt: #f8fafc;
  --dash-border: #e2e8f0;
  --dash-text: #0f172a;
  --dash-text-muted: #64748b;
  --dash-stat-highlight-bg: linear-gradient(145deg, #eff6ff, #ffffff);
  --dash-stat-highlight-border: #93c5fd;
  --dash-icon-green: #dcfce7;
  --dash-icon-blue: #dbeafe;
  --dash-icon-orange: #ffedd5;
  --dash-icon-purple: #ede9fe;
  --dash-tag-bg: #ffedd5;
  --dash-tag-text: #c2410c;
  --dash-table-head: #f8fafc;
  --dash-table-hover: #fafbfc;
  --dash-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
  --dash-shadow-hover: 0 8px 24px rgba(15, 23, 42, 0.08);
}

body.dashboard-dark {
  --dash-bg: #0f172a;
  --dash-surface: #1e293b;
  --dash-surface-alt: #0f172a;
  --dash-border: #334155;
  --dash-text: #f1f5f9;
  --dash-text-muted: #94a3b8;
  --dash-stat-highlight-bg: linear-gradient(145deg, #1e3a5f, #1e293b);
  --dash-stat-highlight-border: #3b82f6;
  --dash-icon-green: rgba(34, 197, 94, 0.2);
  --dash-icon-blue: rgba(59, 130, 246, 0.25);
  --dash-icon-orange: rgba(249, 115, 22, 0.22);
  --dash-icon-purple: rgba(168, 85, 247, 0.22);
  --dash-tag-bg: rgba(249, 115, 22, 0.2);
  --dash-tag-text: #fdba74;
  --dash-table-head: #0f172a;
  --dash-table-hover: #253347;
  --dash-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
  --dash-shadow-hover: 0 8px 24px rgba(0, 0, 0, 0.35);
}

/* ── Base ── */
body {
  margin: 0;
  font-family: var(--gp-font);
  background: var(--dash-bg);
  color: var(--dash-text);
  -webkit-font-smoothing: antialiased;
}

.notice {
  color: var(--gp-warning);
  font-size: 13px;
  margin-top: 12px;
  padding: 10px 12px;
  background: #fff7ed;
  border-radius: 10px;
  border: 1px solid #fed7aa;
}

/* ══════════════════════════════════════
   LOGIN — split-screen professional
   ══════════════════════════════════════ */
.login-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: #fff;
}

.login-brand-panel {
  background:
    radial-gradient(circle at 20% 20%, rgba(14, 165, 233, 0.25), transparent 45%),
    radial-gradient(circle at 80% 80%, rgba(29, 78, 216, 0.3), transparent 50%),
    linear-gradient(160deg, #0f172a 0%, #1e3a8a 55%, #1d4ed8 100%);
  color: #fff;
  padding: 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 32px;
}

.login-brand-panel .brand-logo {
  align-items: flex-start;
}

.login-brand-panel .brand-text strong {
  color: #fff;
  font-size: 22px;
}

.login-brand-panel .brand-text span {
  color: #93c5fd;
  font-size: 11px;
}

.login-brand-panel h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 38px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  max-width: 400px;
}

.login-brand-panel .brand-lead {
  margin: 0;
  font-size: 16px;
  line-height: 1.65;
  color: #bfdbfe;
  max-width: 380px;
}

.login-features {
  display: grid;
  gap: 14px;
  max-width: 360px;
}

.login-feature {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: #e2e8f0;
}

.login-feature-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.12);
  display: grid;
  place-items: center;
  font-size: 16px;
  flex-shrink: 0;
}

.login-form-panel {
  display: grid;
  place-items: center;
  padding: 32px 24px;
  background: #f8fafc;
}

.login-card {
  width: 100%;
  max-width: 400px;
  background: #fff;
  border-radius: 20px;
  padding: 36px 32px;
  border: 1px solid var(--gp-border);
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.08);
}

.login-card .login-card-mark {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--gp-brand), var(--gp-accent));
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 20px;
  margin-bottom: 20px;
  box-shadow: 0 10px 24px rgba(29, 78, 216, 0.3);
}

.login-card h1 {
  margin: 0 0 6px;
  font-size: 26px;
  letter-spacing: -0.02em;
  color: #0f172a;
}

.login-card .sub {
  margin-bottom: 24px;
  color: #64748b;
}

.field-group {
  margin-bottom: 16px;
}

.field-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #475569;
  margin-bottom: 6px;
}

.login-card .field {
  background: #f8fafc;
  border-color: #e2e8f0;
  padding: 12px 14px;
}

.login-card .btn-primary {
  width: 100%;
  padding: 13px;
  margin-top: 8px;
  font-size: 15px;
}

.login-card .btn-secondary {
  width: 100%;
  margin-top: 8px;
}

.login-foot-note {
  margin-top: 20px;
  text-align: center;
  font-size: 13px;
  color: #94a3b8;
}

.login-foot-note a {
  font-weight: 600;
  text-decoration: none;
}

.login-foot-note a:hover {
  text-decoration: underline;
}

/* ══════════════════════════════════════
   APP LAYOUT
   ══════════════════════════════════════ */
.app {
  display: grid;
  grid-template-columns: 272px 1fr;
  min-height: 100vh;
}

/* ── Sidebar ── */
.sidebar {
  background: linear-gradient(180deg, #0f172a 0%, #111827 100%);
  color: #e2e8f0;
  padding: 20px 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  border-right: 1px solid #1e293b;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}

.sidebar-brand {
  padding: 8px 10px 16px;
  border-bottom: 1px solid #1e293b;
  margin-bottom: 4px;
}

.sidebar-brand .brand-text strong {
  color: #fff;
  font-size: 15px;
}

.sidebar-brand .brand-text span {
  color: #64748b;
  font-size: 9px;
  letter-spacing: 0.12em;
}

.user-card {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  gap: 10px;
  align-items: center;
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid #334155;
  border-radius: 14px;
  padding: 12px;
}

.avatar {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 16px;
  color: #fff;
}

.user-name {
  font-weight: 700;
  font-size: 14px;
  color: #f1f5f9;
}

.user-role {
  font-size: 11px;
  color: #94a3b8;
  margin-top: 2px;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  padding-top: 8px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  background: transparent;
  border: none;
  color: #94a3b8;
  padding: 11px 12px;
  border-radius: 10px;
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  transition: background 0.15s, color 0.15s;
}

.nav-icon {
  width: 20px;
  text-align: center;
  font-size: 15px;
  opacity: 0.85;
}

.nav-item:hover {
  background: rgba(30, 41, 59, 0.8);
  color: #e2e8f0;
}

.nav-item.active {
  background: rgba(37, 99, 235, 0.2);
  color: #fff;
  box-shadow: inset 3px 0 0 #3b82f6;
}

.nav-item.active .nav-icon {
  opacity: 1;
}

.sidebar-actions {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 12px;
  border-top: 1px solid #1e293b;
}

.copy-link-btn {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 12px 14px;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.35);
  transition: transform 0.15s;
}

.copy-link-btn:hover {
  transform: translateY(-1px);
}

.logout-side {
  background: transparent;
  border: 1px solid #334155;
  color: #94a3b8;
  border-radius: 10px;
  padding: 10px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  transition: border-color 0.15s, color 0.15s;
}

.logout-side:hover {
  border-color: #475569;
  color: #e2e8f0;
}

/* ── Main content ── */
.main {
  padding: 0;
  overflow-x: auto;
  background: var(--dash-bg);
  min-height: 100vh;
}

.main-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 16px 28px;
  background: var(--dash-surface);
  border-bottom: 1px solid var(--dash-border);
  position: sticky;
  top: 0;
  z-index: 5;
}

.topbar-office {
  font-size: 13px;
  color: var(--dash-text-muted);
}

.topbar-office strong {
  display: block;
  font-size: 16px;
  color: var(--dash-text);
  margin-top: 2px;
}

.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: #ecfdf5;
  color: #047857;
  font-size: 12px;
  font-weight: 700;
}

.live-pill::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  animation: pulse-dot 2s ease infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.main-content {
  padding: 24px 28px 40px;
}

.view.hidden { display: none !important; }

/* ── Page headers ── */
.page-header {
  margin-bottom: 22px;
}

.page-header h1 {
  margin: 4px 0 6px;
  font-size: 26px;
  letter-spacing: -0.02em;
}

.breadcrumb {
  color: var(--dash-text-muted);
  font-size: 12px;
  margin: 0;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ── Hero banner ── */
.hero {
  background: linear-gradient(135deg, #1e40af 0%, #1d4ed8 50%, #2563eb 100%);
  color: #fff;
  border-radius: 18px;
  padding: 28px 28px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 22px;
  box-shadow: 0 16px 40px rgba(29, 78, 216, 0.25);
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  top: -40%;
  right: -10%;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  pointer-events: none;
}

.hero h1 {
  margin: 0 0 8px;
  font-size: 28px;
  letter-spacing: -0.02em;
  position: relative;
}

.hero p {
  margin: 0;
  opacity: 0.9;
  font-size: 15px;
  position: relative;
}

.hero-actions {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  position: relative;
}

.hero .btn-outline {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
  backdrop-filter: blur(4px);
}

.hero .btn-outline:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* ── Stat cards ── */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 20px;
}

.stat-card {
  background: var(--dash-surface);
  border: 1px solid var(--dash-border);
  border-radius: 16px;
  padding: 18px 18px 16px;
  box-shadow: var(--dash-shadow);
  transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s;
}

.stat-card:hover {
  box-shadow: var(--dash-shadow-hover);
  transform: translateY(-2px);
}

.stat-card.highlight {
  border-color: var(--dash-stat-highlight-border);
  background: var(--dash-stat-highlight-bg);
}

.stat-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 10px;
}

.stat-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 16px;
}

.stat-icon.green { background: var(--dash-icon-green); color: #16a34a; }
.stat-icon.blue { background: var(--dash-icon-blue); color: #2563eb; }
.stat-icon.orange { background: var(--dash-icon-orange); color: #ea580c; }
.stat-icon.purple { background: var(--dash-icon-purple); color: #7c3aed; }

body.dashboard-dark .stat-icon.green { color: #4ade80; }
body.dashboard-dark .stat-icon.blue { color: #60a5fa; }
body.dashboard-dark .stat-icon.orange { color: #fb923c; }
body.dashboard-dark .stat-icon.purple { color: #c084fc; }

.stat-label {
  color: var(--dash-text-muted);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}

.stat-value {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--dash-text);
  min-height: 34px;
}

.stat-value.is-loading {
  display: flex;
  align-items: center;
}

.stat-skeleton {
  display: block;
  width: 88px;
  height: 28px;
  border-radius: 8px;
  background: var(--dash-border);
  opacity: 0.55;
}

.stat-sub {
  color: var(--dash-text-muted);
  font-size: 12px;
  margin-top: 6px;
}

/* ── Panels & tables ── */
.panel {
  background: var(--dash-surface);
  border: 1px solid var(--dash-border);
  border-radius: 16px;
  padding: 20px;
  box-shadow: var(--dash-shadow);
}

.panel-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.panel h2 {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
}

.panel h3 {
  margin: 0 0 12px;
  font-size: 16px;
  font-weight: 700;
}

.panel .sub { color: var(--dash-text-muted); }

.panel-head input,
#searchInput {
  padding: 9px 14px;
  border: 1px solid var(--dash-border);
  border-radius: 10px;
  min-width: 200px;
  font: inherit;
  background: var(--dash-surface-alt);
  color: var(--dash-text);
}

.panel-head input:focus,
#searchInput:focus {
  outline: none;
  border-color: #93c5fd;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
}

.table-wrap { overflow-x: auto; }

table { width: 100%; border-collapse: collapse; }

th, td {
  text-align: left;
  padding: 13px 12px;
  border-bottom: 1px solid #f1f5f9;
  font-size: 14px;
}

th {
  color: var(--dash-text-muted);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 700;
  background: var(--dash-table-head);
}

tbody tr:hover td {
  background: var(--dash-table-hover);
}

tbody tr:last-child td {
  border-bottom: none;
}

/* ── Monthly ── */
.monthly-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.monthly-head h1 {
  margin: 4px 0 0;
  font-size: 26px;
  letter-spacing: -0.02em;
}

.btn-export {
  background: linear-gradient(135deg, #16a34a, #15803d);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 10px 18px;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(22, 163, 74, 0.3);
}

.filter-bar {
  display: flex;
  gap: 14px;
  align-items: end;
  flex-wrap: wrap;
  background: var(--dash-surface);
  border: 1px solid var(--dash-border);
  border-radius: 14px;
  padding: 16px 18px;
  margin-bottom: 20px;
  box-shadow: var(--dash-shadow);
}

.filter-bar label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--dash-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.filter-bar select {
  padding: 9px 12px;
  border: 1px solid var(--dash-border);
  border-radius: 10px;
  min-width: 130px;
  font: inherit;
  background: var(--dash-surface-alt);
  color: var(--dash-text);
}

.btn-filter { width: auto; padding: 10px 20px; }

.monthly-stats {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  margin-bottom: 20px;
}

.m-stat {
  background: var(--dash-surface);
  border: 1px solid var(--dash-border);
  border-radius: 14px;
  padding: 16px;
  border-top: 3px solid #cbd5e1;
  box-shadow: var(--dash-shadow);
}

.m-stat.green { border-top-color: #22c55e; }
.m-stat.orange { border-top-color: #f97316; }
.m-stat.blue { border-top-color: #3b82f6; }
.m-stat.yellow { border-top-color: #eab308; }
.m-stat.purple { border-top-color: #a855f7; }

.m-stat-label { color: var(--dash-text-muted); font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 8px; }
.m-stat-value { font-size: 24px; font-weight: 800; letter-spacing: -0.02em; color: var(--dash-text); }
.m-stat-sub { color: var(--dash-text-muted); font-size: 12px; margin-top: 4px; }

.charts-row {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 16px;
  margin-bottom: 20px;
}

.chart-panel h3 { margin: 0 0 14px; font-size: 15px; font-weight: 700; }
.chart-box { min-height: 220px; }

.donut-wrap { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 10px; }
.donut { width: 140px; height: 140px; border-radius: 50%; }
.donut.cashapp-only {
  background: conic-gradient(#22c55e 0 100%);
  mask: radial-gradient(circle at center, transparent 52%, #000 53%);
  -webkit-mask: radial-gradient(circle at center, transparent 52%, #000 53%);
}
.donut-legend { font-size: 14px; color: #334155; font-weight: 600; }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; }
.dot.cashapp { background: #22c55e; }

.method-breakdown { margin-top: 8px; }
.method-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 16px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid #f1f5f9;
}
.method-row:last-child { border-bottom: none; }
.method-meta { color: var(--gp-muted); font-size: 13px; }
.method-bar {
  grid-column: 1 / -1;
  height: 8px;
  background: #e2e8f0;
  border-radius: 999px;
  overflow: hidden;
}
.method-bar span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #22c55e, #16a34a);
  border-radius: 999px;
}

.gross-text { color: #16a34a; font-weight: 700; }
.net-text { color: #ea580c; font-weight: 700; }
.txn-link { color: #2563eb; font-weight: 700; }

/* ── Checkout ── */
.checkout-head h1 { margin: 4px 0 6px; font-size: 26px; letter-spacing: -0.02em; }
.checkout-head { margin-bottom: 22px; }

.checkout-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 18px;
  align-items: start;
}

.checkout-left { display: flex; flex-direction: column; gap: 18px; }
.checkout-card h3 { margin: 0 0 12px; font-size: 16px; font-weight: 700; }

.link-row { display: flex; gap: 10px; margin-bottom: 14px; }

.link-row input {
  flex: 1;
  padding: 12px 14px;
  border: 1px solid var(--dash-border);
  border-radius: 10px;
  font: inherit;
  background: var(--dash-surface-alt);
  color: var(--dash-text);
}

.btn-copy-inline { width: auto; white-space: nowrap; padding: 12px 18px; }
.checkout-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.instruction-box {
  background: var(--dash-surface-alt);
  border: 1px solid var(--dash-border);
  border-radius: 12px;
  padding: 16px;
  white-space: pre-wrap;
  font-size: 14px;
  line-height: 1.65;
  color: var(--dash-text);
  margin-bottom: 14px;
}

.checkout-qr-card { text-align: center; }
.qr-frame {
  background: var(--dash-surface);
  border: 1px solid var(--dash-border);
  border-radius: 14px;
  padding: 20px;
  display: inline-block;
  margin: 10px 0;
  box-shadow: var(--dash-shadow);
}
.qr-frame img { width: 220px; height: 220px; display: block; }
.qr-title { font-weight: 700; margin: 10px 0 4px; font-size: 15px; }

/* ── Settings ── */
.settings-head h1 { margin: 4px 0 6px; font-size: 26px; letter-spacing: -0.02em; }
.settings-head { margin-bottom: 22px; }

.settings-grid-top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 18px;
}

.settings-card h3 { margin: 0; font-size: 16px; font-weight: 700; }
.settings-card-head {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--dash-border);
}
.settings-card-head.blue .settings-icon { background: #dbeafe; color: #2563eb; }
.settings-card-head.red .settings-icon { background: #fee2e2; color: #dc2626; }
.settings-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 18px;
}

.settings-input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--dash-border);
  border-radius: 10px;
  font: inherit;
  background: var(--dash-surface-alt);
  color: var(--dash-text);
}

.theme-picker {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 4px;
}

.theme-option {
  border: 2px solid var(--dash-border);
  background: var(--dash-surface);
  border-radius: 12px;
  padding: 16px;
  cursor: pointer;
  text-align: center;
  transition: border-color 0.15s, background 0.15s;
  color: var(--dash-text);
}
.theme-option span { display: block; font-size: 24px; margin-bottom: 6px; }
.theme-option.active { border-color: #2563eb; background: var(--dash-icon-blue); }

.settings-save { width: 100%; margin-top: 16px; }

.btn-danger {
  background: linear-gradient(135deg, #dc2626, #b91c1c);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 12px 14px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.account-info-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.info-tile {
  background: var(--dash-surface-alt);
  border: 1px solid var(--dash-border);
  border-radius: 12px;
  padding: 16px;
}
.info-label {
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--dash-text-muted);
  margin-bottom: 8px;
  font-weight: 700;
  text-transform: uppercase;
}
.info-value { font-size: 18px; font-weight: 800; color: var(--dash-text); }
.info-sub { font-size: 12px; color: var(--dash-text-muted); margin-top: 4px; }

/* ── Empty state ── */
.empty-state {
  text-align: center;
  padding: 40px 20px;
  color: var(--dash-text-muted);
}

.empty-state-icon {
  font-size: 36px;
  margin-bottom: 12px;
  opacity: 0.5;
}

body.dashboard-dark .btn-outline {
  background: var(--dash-surface);
  border-color: var(--dash-border);
  color: var(--dash-text);
}

body.dashboard-dark .live-pill {
  background: rgba(34, 197, 94, 0.15);
  color: #4ade80;
}

body.dashboard-dark .settings-card-head { border-color: var(--dash-border); }
body.dashboard-dark td { color: var(--dash-text); }
body.dashboard-dark .donut-legend { color: var(--dash-text-muted); }
body.dashboard-dark .method-meta { color: var(--dash-text-muted); }
body.dashboard-dark .gross-text { color: #4ade80; }
body.dashboard-dark .net-text { color: #fb923c; }
body.dashboard-dark .txn-link { color: #60a5fa; }

/* ── Responsive ── */
@media (max-width: 1100px) {
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .monthly-stats { grid-template-columns: repeat(2, 1fr); }
  .account-info-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .login-shell { grid-template-columns: 1fr; }
  .login-brand-panel { display: none; }
  .app { grid-template-columns: 1fr; }
  .sidebar {
    position: relative;
    height: auto;
    sticky: unset;
  }
  .sidebar-nav {
    flex-direction: row;
    flex-wrap: wrap;
  }
  .nav-item { flex: 1; min-width: 140px; justify-content: center; }
  .nav-item.active { box-shadow: inset 0 -3px 0 #3b82f6; }
  .sidebar-actions { flex-direction: row; }
  .copy-link-btn, .logout-side { flex: 1; }
  .charts-row { grid-template-columns: 1fr; }
  .checkout-grid { grid-template-columns: 1fr; }
  .settings-grid-top { grid-template-columns: 1fr; }
  .main-content { padding: 16px; }
  .main-topbar { padding: 12px 16px; }
}

@media (max-width: 520px) {
  .stat-grid { grid-template-columns: 1fr; }
  .monthly-stats { grid-template-columns: 1fr; }
  .hero h1 { font-size: 22px; }
}
