:root {
  color-scheme: dark;
  --bg: #07111f;
  --bg-soft: #0b1628;
  --panel: rgba(10, 20, 36, 0.9);
  --panel-strong: rgba(9, 17, 30, 0.96);
  --panel-muted: rgba(16, 28, 48, 0.88);
  --line: rgba(150, 180, 220, 0.14);
  --line-strong: rgba(150, 180, 220, 0.22);
  --text: #f5f8ff;
  --muted: #97a8c4;
  --accent: #5aa8ff;
  --accent-2: #42d6a4;
  --accent-3: #8e7dff;
  --danger: #ff7f8c;
  --warning: #ffca72;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.34);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 18px;
  --radius-sm: 14px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(90, 168, 255, 0.22), transparent 32%),
    radial-gradient(circle at top right, rgba(66, 214, 164, 0.16), transparent 26%),
    linear-gradient(180deg, #091322 0%, #07111f 100%);
}
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,0.35), transparent 85%);
}

a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
button { border: 0; }
[hidden] { display: none !important; }

.site-shell {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 32px 0 40px;
  position: relative;
  z-index: 1;
}
.site-shell.wide { width: min(1480px, calc(100% - 32px)); }
.site-shell.small { width: min(760px, calc(100% - 32px)); }

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  padding: 28px;
  margin-bottom: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, rgba(12, 23, 40, 0.86), rgba(9, 18, 34, 0.94));
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
}
.site-header.compact { padding: 24px 26px; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  color: #b9d8ff;
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: 12px;
  font-weight: 700;
}
.eyebrow::before {
  content: '';
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 0 6px rgba(90, 168, 255, 0.08);
}
h1, h2, h3, h4 { margin: 0; }
h1 { font-size: clamp(30px, 4vw, 48px); line-height: 1.08; margin-bottom: 10px; }
h2 { font-size: clamp(24px, 3vw, 34px); line-height: 1.15; }
h3 { font-size: 22px; line-height: 1.2; }
h4 { font-size: 16px; line-height: 1.2; }
.lead, .muted, .helper { color: var(--muted); }
.lead { max-width: 860px; font-size: 16px; line-height: 1.7; }
.helper { font-size: 13px; }
.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}
.badge,
.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 10px 14px;
  border: 1px solid rgba(90, 168, 255, 0.22);
  border-radius: 999px;
  background: rgba(90, 168, 255, 0.12);
  color: #d8ebff;
  font-size: 14px;
  font-weight: 600;
}
.pill.ok { background: rgba(66,214,164,.14); border-color: rgba(66,214,164,.22); color: #d5fff1; }
.pill.warn { background: rgba(255,202,114,.14); border-color: rgba(255,202,114,.22); color: #ffe9bf; }
.pill.danger { background: rgba(255,127,140,.14); border-color: rgba(255,127,140,.22); color: #ffd5da; }

button,
.button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 14px;
  border: 1px solid rgba(90, 168, 255, 0.18);
  background: linear-gradient(135deg, rgba(31, 73, 129, 0.95), rgba(16, 48, 88, 0.95));
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: transform .18s ease, border-color .18s ease, background .18s ease, opacity .18s ease;
}
button:hover,
.button-link:hover {
  transform: translateY(-1px);
  border-color: rgba(90, 168, 255, 0.35);
}
button.secondary,
.button-link.secondary,
.tab,
.nav-button {
  background: rgba(13, 26, 44, 0.82);
  border-color: var(--line);
}
button.ghost,
.button-link.ghost {
  background: transparent;
  border-color: var(--line);
}
button.warn { background: linear-gradient(135deg, rgba(122, 78, 10, 0.9), rgba(91, 52, 9, 0.95)); border-color: rgba(255,202,114,.2); }
button.danger { background: linear-gradient(135deg, rgba(118, 30, 45, 0.95), rgba(87, 19, 32, 0.95)); border-color: rgba(255,127,140,.25); }
button:disabled { opacity: .6; cursor: not-allowed; transform: none; }

.flash {
  margin-bottom: 20px;
  padding: 15px 18px;
  border-radius: 18px;
  border: 1px solid var(--line-strong);
  background: rgba(12, 23, 40, 0.92);
  box-shadow: var(--shadow);
}
.flash.ok { border-color: rgba(66,214,164,.3); color: #d7fff2; }
.flash.error { border-color: rgba(255,127,140,.35); color: #ffd9de; }

.hero-grid,
.dashboard-grid,
.auth-layout,
.mini-grid,
.inline-fields,
.actions,
.section-head,
.tab-list,
.portal-grid,
.summary-grid,
.feature-grid,
.stat-grid,
.workspace-grid,
.info-grid,
.auth-panels,
.dual-grid,
.login-grid,
.card-grid,
.toolbar {
  display: grid;
  gap: 18px;
}
.hero-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.portal-grid { grid-template-columns: 1.15fr .85fr; }
.dashboard-grid.two-col,
.dual-grid { grid-template-columns: 1fr 1fr; }
.dashboard-grid.three-col,
.summary-grid,
.card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.stat-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.info-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.workspace-grid { grid-template-columns: 280px minmax(0, 1fr); align-items: start; }
.auth-layout { grid-template-columns: 320px minmax(0, 1fr); align-items: start; }
.auth-panels { grid-auto-rows: minmax(0, auto); }
.mini-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.mini-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.mini-grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.inline-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.inline-fields.smtp-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.section-head {
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}
.actions,
.toolbar {
  grid-auto-flow: column;
  justify-content: start;
  align-items: center;
}
.stack { display: flex; flex-direction: column; gap: 16px; }
.gap-lg { gap: 24px; }
.top-space { margin-top: 18px; }

.panel {
  position: relative;
  overflow: hidden;
  padding: 24px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(15, 26, 43, 0.94), rgba(10, 18, 31, 0.98));
  box-shadow: var(--shadow);
}
.panel::after {
  content: '';
  position: absolute;
  inset: auto -60px -80px auto;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(90,168,255,.12), transparent 62%);
  pointer-events: none;
}
.panel.accent {
  background: linear-gradient(180deg, rgba(20, 40, 68, 0.94), rgba(10, 18, 31, 0.98));
  border-color: rgba(90, 168, 255, 0.22);
}
.panel.hero-panel {
  padding: 30px;
  border-radius: 30px;
}
.surface {
  padding: 18px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.02);
}
.glow-card {
  background:
    linear-gradient(135deg, rgba(90,168,255,0.14), rgba(66,214,164,0.1)),
    rgba(11, 20, 35, 0.92);
}

.workspace-shell { width: min(1540px, calc(100% - 30px)); }
.workspace {
  display: grid;
  gap: 22px;
}
.workspace-aside {
  position: sticky;
  top: 18px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.brand-card {
  padding: 24px 22px;
  border-radius: 26px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(13, 25, 42, 0.96), rgba(10, 18, 31, 0.98));
  box-shadow: var(--shadow);
}
.brand-title { font-size: 30px; font-weight: 800; letter-spacing: -0.03em; margin-bottom: 8px; }
.brand-sub { color: var(--muted); line-height: 1.6; }
.nav-card {
  padding: 14px;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: rgba(10, 18, 31, 0.94);
  box-shadow: var(--shadow);
}
.nav-stack { display: flex; flex-direction: column; gap: 8px; }
.nav-button {
  width: 100%;
  justify-content: flex-start;
  min-height: 52px;
  padding: 0 16px;
  border-radius: 16px;
  color: var(--text);
}
.nav-button.active {
  background: linear-gradient(135deg, rgba(33, 73, 125, 0.92), rgba(18, 43, 79, 0.98));
  border-color: rgba(90, 168, 255, 0.32);
}
.workspace-main { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 24px 26px;
  border-radius: 26px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(12, 23, 40, 0.9), rgba(10, 18, 31, 0.96));
  box-shadow: var(--shadow);
}
.topbar-title { display: flex; flex-direction: column; gap: 8px; }
.topbar-title p { margin: 0; color: var(--muted); line-height: 1.7; }
.workspace-pane { display: none; gap: 20px; }
.workspace-pane.active { display: grid; }
.metric-card,
.mini-stat,
.list-card,
.customer-card,
.wallet-card,
.activity-card,
.mail-preview,
.portal-card,
.auth-note,
.empty-card {
  position: relative;
  overflow: hidden;
  padding: 18px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: rgba(8, 16, 29, 0.9);
}
.metric-card::before,
.portal-card::before,
.auth-note::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(90,168,255,.65), transparent);
}
.mini-stat span,
.metric-card span,
.list-card span,
.wallet-card span,
.portal-card span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .12em;
}
.mini-stat strong,
.metric-card strong,
.portal-card strong { font-size: 28px; line-height: 1.15; letter-spacing: -0.03em; }
.metric-card p,
.portal-card p,
.auth-note p,
.list-card p,
.customer-card p,
.wallet-card p,
.activity-card p { margin: 0; color: var(--muted); line-height: 1.7; }
.metric-card .metric-foot { margin-top: 12px; font-size: 13px; color: #d4e6ff; }
.muted-line { color: var(--muted); line-height: 1.6; }

label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}
input,
textarea,
select {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  outline: 0;
  background: rgba(5, 13, 24, 0.92);
  color: var(--text);
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
textarea { min-height: 130px; resize: vertical; }
input:focus,
textarea:focus,
select:focus {
  border-color: rgba(90,168,255,.36);
  box-shadow: 0 0 0 4px rgba(90,168,255,.12);
  background: rgba(6, 14, 26, 0.98);
}
.checkbox-line {
  flex-direction: row;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(8,16,29,.8);
  color: var(--text);
}
.checkbox-line input { width: auto; min-height: auto; padding: 0; }
.search-input { min-width: 280px; }

.portal-hero {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 22px;
  margin-bottom: 22px;
}
.portal-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
.portal-card strong { display: block; font-size: 18px; margin-bottom: 12px; }
.portal-list { margin: 16px 0 0; padding-left: 18px; color: var(--muted); line-height: 1.8; }

.auth-side,
.auth-main,
.login-side,
.login-main {
  min-width: 0;
}
.auth-side { position: sticky; top: 18px; }
.auth-note {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.tab-list,
.login-tab-list { display: flex; flex-direction: column; gap: 10px; }
.tab {
  width: 100%;
  justify-content: flex-start;
  min-height: 52px;
  padding: 0 16px;
  border-radius: 16px;
  color: var(--text);
}
.tab.active {
  background: linear-gradient(135deg, rgba(29, 67, 116, 0.95), rgba(18, 43, 79, 0.98));
  border-color: rgba(90,168,255,.32);
}
.auth-panel,
.workspace-section,
.section-card {
  min-width: 0;
}
.auth-panel h3,
.section-card h3 { margin-bottom: 8px; }
.auth-illustration,
.login-illustration {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.auth-stat {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.auth-stat .mini-stat strong { font-size: 22px; }

.customer-hero {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 18px;
}
.welcome-banner {
  padding: 28px;
  border-radius: 26px;
  border: 1px solid rgba(90,168,255,.22);
  background:
    radial-gradient(circle at top right, rgba(66,214,164,.18), transparent 26%),
    linear-gradient(180deg, rgba(20, 40, 68, 0.95), rgba(9, 18, 31, 0.98));
}
.welcome-banner p { margin: 10px 0 0; color: #d5e7ff; line-height: 1.75; }
.welcome-banner .portal-actions { margin-top: 22px; }
.customer-summary { display: grid; gap: 18px; }
.wallet-card { min-height: 100%; }
.kpi-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.activity-list,
.list-stack { display: flex; flex-direction: column; gap: 14px; }
.activity-card strong,
.customer-card strong,
.wallet-card strong { display: block; margin-bottom: 10px; font-size: 17px; }
.meta-row,
.meta-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.detail-grid .surface { padding: 14px; border-radius: 16px; }
.detail-grid strong { display: block; font-size: 18px; margin-bottom: 6px; }
.small-label { display: block; margin-bottom: 6px; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .12em; }

.customer-list-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}
.customer-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  border-radius: 24px;
}
.customer-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}
.customer-card-head h4 { font-size: 20px; margin-bottom: 6px; }
.customer-card .mini-grid { gap: 12px; }
.customer-card .mini-stat strong { font-size: 22px; }
.customer-edit-form .actions { margin-top: 4px; flex-wrap: wrap; }
.customer-edit-form button { min-height: 42px; }

.settings-grid { display: grid; gap: 18px; grid-template-columns: 1fr 1fr; }
.mail-layout { display: grid; gap: 18px; grid-template-columns: 1fr .92fr; }
.mail-preview { min-height: 100%; }
.mail-preview .surface { margin-top: 14px; }
.keyline { height: 1px; background: linear-gradient(90deg, rgba(90,168,255,.4), transparent); margin: 2px 0; }

.empty-card {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 120px;
  text-align: center;
  color: var(--muted);
}
.note-box {
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid rgba(66,214,164,.18);
  background: rgba(66,214,164,.08);
  color: #dffdf2;
}
.note-box strong { display: block; margin-bottom: 8px; }

.login-grid { grid-template-columns: 1.05fr .95fr; }
.login-hero {
  padding: 28px;
  border-radius: 28px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(14, 26, 44, 0.94), rgba(10, 18, 31, 0.98));
  box-shadow: var(--shadow);
}
.login-hero .note-box { margin-top: 18px; }

.footer-note {
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

@media (max-width: 1280px) {
  .workspace-grid { grid-template-columns: 1fr; }
  .workspace-aside { position: static; }
}
@media (max-width: 1080px) {
  .portal-hero,
  .hero-grid,
  .portal-grid,
  .dashboard-grid.two-col,
  .dashboard-grid.three-col,
  .customer-hero,
  .mail-layout,
  .settings-grid,
  .auth-layout,
  .login-grid,
  .stat-grid,
  .summary-grid,
  .card-grid,
  .mini-grid.four,
  .mini-grid.three,
  .inline-fields,
  .inline-fields.smtp-fields,
  .info-grid,
  .detail-grid,
  .kpi-grid {
    grid-template-columns: 1fr;
  }
  .site-header,
  .topbar,
  .customer-card-head,
  .section-head,
  .customer-list-header {
    flex-direction: column;
    align-items: stretch;
  }
  .section-head { display: flex; }
  .actions,
  .toolbar,
  .header-actions,
  .portal-actions {
    grid-auto-flow: row;
    justify-content: stretch;
  }
  .button-link,
  button,
  .tab,
  .nav-button,
  .badge { width: 100%; }
  .search-input { min-width: 0; width: 100%; }
}


/* ===== UI refresh ===== */
.hero-panel-rich,
.brand-card-rich,
.nav-card-rich,
.panel-soft,
.form-elevated,
.welcome-banner-rich,
.wallet-card-rich,
.portal-card.rich,
.card-spotlight,
.login-hero-rich {
  position: relative;
  overflow: hidden;
}

.hero-panel-rich::before,
.brand-card-rich::before,
.nav-card-rich::before,
.panel-soft::before,
.form-elevated::before,
.welcome-banner-rich::before,
.wallet-card-rich::before,
.portal-card.rich::before,
.card-spotlight::before,
.login-hero-rich::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(255,255,255,.08), transparent 35%, transparent 65%, rgba(255,255,255,.04));
}

.hero-panel-rich {
  align-items: center;
  min-height: 320px;
  background:
    radial-gradient(circle at 15% 15%, rgba(90,168,255,.22), transparent 24%),
    radial-gradient(circle at 85% 25%, rgba(142,125,255,.18), transparent 24%),
    linear-gradient(180deg, rgba(12, 23, 40, 0.92), rgba(7, 17, 31, 0.98));
}
.hero-copy { max-width: 860px; }
.hero-showcase {
  min-width: 280px;
  display: grid;
  justify-items: end;
  gap: 16px;
}
.showcase-card {
  width: min(360px, 100%);
  padding: 18px;
  border-radius: 28px;
  border: 1px solid rgba(255,255,255,.12);
  background: linear-gradient(180deg, rgba(255,255,255,.09), rgba(255,255,255,.04));
  backdrop-filter: blur(16px);
  box-shadow: 0 30px 80px rgba(0,0,0,.35);
}
.showcase-top { display:flex; gap:8px; margin-bottom:18px; }
.dot { width:10px; height:10px; border-radius:999px; background:rgba(255,255,255,.6); }
.showcase-body { display:grid; gap:12px; }
.showcase-line { height:12px; border-radius:999px; background:rgba(255,255,255,.13); }
.showcase-line.lg { width:78%; height:16px; }
.showcase-grid { display:grid; grid-template-columns:repeat(2,1fr); gap:12px; margin-top:8px; }
.showcase-grid > div { min-height:78px; border-radius:20px; background:rgba(255,255,255,.09); border:1px solid rgba(255,255,255,.07); }
.float-card { transform: rotate(2deg); }
.badge-float { align-self: end; }
.hero-mini-stats { display:grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap:14px; margin-top:22px; }
.glass {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
  backdrop-filter: blur(12px);
}
.portal-hero-rich { align-items: stretch; }
.portal-card.rich { min-height: 150px; }
.portal-card.rich span {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.08);
  margin-bottom: 14px;
}
.portal-list-rich li { padding-left: 28px; position: relative; }
.portal-list-rich li::before {
  content: '✦';
  position: absolute;
  left: 0;
  color: #9fd1ff;
}
.secondary-tone {
  background: linear-gradient(180deg, rgba(16, 24, 48, 0.9), rgba(10, 18, 36, 0.96));
}
.panel-soft {
  background: linear-gradient(180deg, rgba(14, 24, 42, 0.92), rgba(9, 18, 34, 0.96));
  border-color: rgba(170, 200, 255, 0.14);
}
.form-elevated {
  box-shadow: 0 18px 45px rgba(0,0,0,.24), inset 0 1px 0 rgba(255,255,255,.03);
}
.brand-card-rich {
  background:
    radial-gradient(circle at top right, rgba(66,214,164,.16), transparent 25%),
    linear-gradient(180deg, rgba(12, 23, 40, 0.9), rgba(9, 18, 34, 0.97));
}
.nav-card-rich {
  background: linear-gradient(180deg, rgba(12, 23, 40, 0.85), rgba(7, 16, 30, 0.96));
}
.auth-layout-rich { align-items: stretch; }
.auth-note-rich p { margin-bottom: 0; }
.customer-top-hero,
.admin-login-hero { margin-bottom: 28px; }
.customer-hero-rich {
  display:grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 22px;
  align-items: stretch;
}
.welcome-banner-rich,
.wallet-card-rich {
  border: 1px solid rgba(255,255,255,.1);
  box-shadow: 0 18px 44px rgba(0,0,0,.25);
}
.topbar-rich {
  padding: 28px;
  border-radius: 28px;
  border: 1px solid rgba(170,200,255,.12);
  background:
    radial-gradient(circle at top right, rgba(90,168,255,.14), transparent 22%),
    linear-gradient(180deg, rgba(12, 23, 40, 0.92), rgba(8, 18, 34, 0.97));
  box-shadow: var(--shadow);
}
.toolbar-rich { grid-template-columns: repeat(3, minmax(0,1fr)); }
.note-box-glow {
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03));
  border-color: rgba(255,255,255,.08);
}
.top-space-sm { margin-top: 14px; }

.workspace-aside .panel.accent,
.auth-side .panel.accent {
  background: linear-gradient(180deg, rgba(19, 42, 73, 0.92), rgba(9, 23, 42, 0.98));
}

.metric-card,
.stat-card,
.mini-stat,
.list-card,
.activity-card,
.customer-card,
.portal-card,
.wallet-hero-card {
  box-shadow: 0 12px 28px rgba(0,0,0,.16);
}

input,
textarea,
select {
  border: 1px solid rgba(175, 205, 255, 0.12);
  background: rgba(5, 12, 24, 0.5);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.03);
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: rgba(90,168,255,.38);
  box-shadow: 0 0 0 4px rgba(90,168,255,.10);
}

.nav-button.active,
.tab.active {
  border-color: rgba(90,168,255,.36);
  background: linear-gradient(135deg, rgba(33, 82, 145, 0.92), rgba(19, 48, 94, 0.95));
  box-shadow: 0 10px 26px rgba(17, 60, 115, .32);
}

.customer-card,
.list-card,
.activity-card,
.portal-card,
.metric-card,
.wallet-card,
.mini-stat {
  border-color: rgba(175,205,255,.10);
}

@media (max-width: 1080px) {
  .hero-mini-stats,
  .toolbar-rich,
  .customer-hero-rich {
    grid-template-columns: 1fr;
  }

  .hero-panel-rich,
  .site-header {
    align-items: flex-start;
  }

  .hero-showcase {
    width: 100%;
    justify-items: start;
  }
}

@media (max-width: 760px) {
  .showcase-card { width: 100%; }
  .hero-mini-stats { grid-template-columns: 1fr; }
}


/* Plugin-like admin sidebar */
.workspace-aside-plugin {
  position: sticky;
  top: 20px;
}
.plugin-sidebar-shell {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.plugin-sidebar-head {
  padding: 20px 18px;
  border-radius: 24px;
  border: 1px solid rgba(255,255,255,.06);
  background: linear-gradient(180deg, rgba(13, 25, 43, .96), rgba(8, 17, 30, .98));
  box-shadow: var(--shadow);
}
.plugin-sidebar-title {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 8px;
}
.plugin-sidebar-sub {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}
.plugin-nav-card {
  padding: 12px;
  border-radius: 24px;
  border: 1px solid rgba(255,255,255,.06);
  background: linear-gradient(180deg, rgba(10, 20, 36, .96), rgba(7, 15, 27, .98));
  box-shadow: var(--shadow);
}
.plugin-nav-group-title {
  padding: 10px 12px 14px;
  color: #8fa7c5;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.plugin-nav-stack {
  gap: 8px;
}
.plugin-nav-button {
  width: 100%;
  min-height: 50px;
  justify-content: flex-start;
  padding: 0 14px;
  border-radius: 16px;
  background: transparent;
  border: 1px solid transparent;
  color: #dbe7f7;
  box-shadow: none;
}
.plugin-nav-button:hover {
  background: rgba(255,255,255,.04);
  border-color: rgba(255,255,255,.06);
  transform: none;
}
.plugin-nav-button.active {
  background: linear-gradient(180deg, rgba(26, 41, 64, .98), rgba(16, 29, 47, .98));
  border-color: rgba(255,255,255,.07);
  color: #ffffff;
}
.plugin-nav-button.active .plugin-nav-label::before {
  background: linear-gradient(135deg, #7dd3fc, #60a5fa);
  box-shadow: 0 0 0 5px rgba(96,165,250,.12);
}
.plugin-nav-label {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 17px;
  font-weight: 700;
}
.plugin-nav-label::before {
  content: '';
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(151, 168, 196, .5);
  transition: background .2s ease, box-shadow .2s ease;
}
.plugin-sidebar-meta {
  padding: 18px;
}
.topbar-rich {
  border-radius: 28px;
}
.workspace-main .workspace-pane {
  animation: paneFade .2s ease;
}
@keyframes paneFade {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (max-width: 980px) {
  .workspace-aside-plugin {
    position: static;
  }
  .plugin-nav-stack {
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
  }
  .plugin-nav-button {
    min-height: 48px;
  }
}
@media (max-width: 640px) {
  .plugin-nav-stack {
    grid-template-columns: 1fr;
  }
  .plugin-nav-label {
    font-size: 15px;
  }
}

/* Customer portal registration + dashboard refresh */
.customer-page-hero {
  margin-bottom: 30px;
}
.customer-hero-actions {
  align-self: stretch;
}
.customer-hero-stats .mini-stat strong {
  font-size: 24px;
}
.customer-portal-shell {
  padding-bottom: 56px;
}
.customer-auth-shell {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}
.customer-auth-aside {
  position: sticky;
  top: 18px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.customer-auth-main {
  min-width: 0;
}
.customer-auth-brand,
.customer-auth-note,
.customer-auth-nav,
.customer-auth-panel,
.customer-profile-card,
.customer-dashboard-nav {
  box-shadow: 0 18px 44px rgba(0,0,0,.22);
}
.customer-auth-points {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.customer-auth-point {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(175,205,255,.12);
  background: rgba(255,255,255,.04);
}
.customer-auth-point strong {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(90,168,255,.24), rgba(66,214,164,.18));
  font-size: 15px;
}
.customer-auth-point span {
  color: #dbeafe;
  font-size: 14px;
  font-weight: 600;
}
.customer-tab-list .tab {
  min-height: 54px;
}
.compact-head {
  margin-bottom: 20px;
}
.customer-form-grid {
  gap: 18px;
}
.customer-password-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.customer-dashboard-shell {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}
.customer-dashboard-aside {
  position: sticky;
  top: 18px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.customer-dashboard-main {
  min-width: 0;
}
.customer-profile-card h3 {
  font-size: 28px;
  margin: 4px 0 10px;
}
.customer-dashboard-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 18px;
}
.customer-dashboard-nav .nav-button {
  min-height: 50px;
}
.customer-overview-panel .stat-grid {
  margin-top: 4px;
}
.customer-bottom-grid {
  align-items: start;
}
#customerWalletHero strong {
  display: block;
  margin: 10px 0 8px;
  font-size: 34px;
  line-height: 1.1;
}
#customerWalletHero p {
  margin: 0;
}
#customerWelcome .list-card strong {
  font-size: 18px;
}
@media (max-width: 1180px) {
  .customer-auth-shell,
  .customer-dashboard-shell {
    grid-template-columns: 1fr;
  }
  .customer-auth-aside,
  .customer-dashboard-aside {
    position: static;
  }
}
@media (max-width: 760px) {
  .customer-auth-points,
  .customer-password-grid {
    grid-template-columns: 1fr;
  }
}


/* compact customer auth */
.compact-customer-shell{max-width:980px}.compact-customer-header{padding:0 0 8px}.compact-customer-actions{justify-content:flex-end;gap:10px}.customer-auth-shell-compact{display:block;max-width:620px;margin:0 auto}.compact-auth-card{padding:18px 18px 20px;border-radius:24px}.compact-auth-switch{display:grid;grid-template-columns:1fr 1fr;gap:10px;background:#dfe5ef;border-radius:18px;padding:8px;margin-bottom:18px}.compact-auth-switch .tab{border:0;border-radius:14px;padding:14px 16px;font-weight:800;background:transparent;color:#102040}.compact-auth-switch .tab.active{background:linear-gradient(135deg,#0a1531,#13254e);color:#fff;box-shadow:0 10px 24px rgba(13,23,49,.18)}.compact-auth-head{margin-bottom:10px}.compact-auth-head .eyebrow{margin-bottom:10px}.compact-auth-head h3{font-size:18px;margin:0}.compact-form-grid{gap:12px}.compact-form-grid label{gap:8px;font-weight:700;color:#183153}.compact-form-grid input{min-height:48px;border-radius:14px;padding:12px 14px}.compact-form-grid button{min-height:48px;border-radius:14px;font-size:16px;font-weight:800}.compact-auth-footer{display:flex;justify-content:flex-end;margin-top:10px}.compact-auth-footer-inline{justify-content:space-between}.text-link{background:transparent;border:0;color:#3857ff;font-weight:700;cursor:pointer;padding:0}.text-link:hover{text-decoration:underline}@media (max-width:720px){.compact-auth-card{padding:14px}.compact-auth-switch .tab{padding:12px 10px;font-size:14px}}
