/* SWAN LOOK — Universal Business Intelligence Design System (1:1 Mockup) */
:root {
  --bg-main: #0B0F10;
  --bg-card: #151B1D;
  --bg-surface: #1B2426;
  --bg-surface-hover: #222D30;

  --green: #00E676;
  --green-dark: #00C853;
  --green-soft: rgba(0, 230, 118, 0.14);
  --green-border: rgba(0, 230, 118, 0.30);

  --text-main: #FFFFFF;
  --text-secondary: #A7B0B2;
  --text-muted: #7C878A;

  --warning: #FFA726;
  --warning-soft: rgba(255, 167, 38, 0.14);
  --warning-border: rgba(255, 167, 38, 0.35);

  --critical: #FF5252;
  --critical-soft: rgba(255, 82, 82, 0.14);
  --critical-border: rgba(255, 82, 82, 0.35);

  --border: rgba(255, 255, 255, 0.07);
  --border-strong: rgba(255, 255, 255, 0.14);
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.42);

  --radius-lg: 18px;
  --radius-md: 13px;
  --radius-sm: 9px;

  --font-display: 'Outfit', 'Inter', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  min-height: 100%;
  background: var(--bg-main);
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 14.5px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* Subtle Emerald Wave & Grid */
.bg-canvas {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.015) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 85% 55% at 50% 0%, black 35%, transparent 100%);
}

.glow-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(130px);
  opacity: 0.13;
}

.glow-emerald {
  width: 620px;
  height: 360px;
  top: -140px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--green);
}

.app-shell {
  position: relative;
  z-index: 1;
  min-height: 100vh;
}

/* Typography */
h1, h2, h3, .num {
  font-family: var(--font-display);
  letter-spacing: -0.02em;
}

.num, .kpi-val, .hero-kpi-val {
  font-variant-numeric: tabular-nums;
}

.muted { color: var(--text-secondary); }
.text-dim { color: var(--text-muted); }
.text-green { color: var(--green); }
.text-warning { color: var(--warning); }
.text-critical { color: var(--critical); }

/* Brand Logo */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 19px;
  letter-spacing: 0.03em;
  color: var(--text-main);
}

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, #1B2426 0%, #0B0F10 100%);
  border: 1px solid var(--green-border);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

/* Surfaces & Cards */
.swan-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px;
  box-shadow: var(--shadow);
}

.swan-sub {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 13px 15px;
}

.hero-kpi-card {
  background: linear-gradient(145deg, #151B1D 0%, #101A17 100%);
  border: 1px solid var(--green-border);
  border-radius: var(--radius-lg);
  padding: 18px;
  box-shadow: 0 12px 32px rgba(0, 230, 118, 0.07);
}

.hero-kpi-val {
  font-size: 34px;
  font-weight: 800;
  line-height: 1.1;
  color: var(--text-main);
}

/* Pills & Badges */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 600;
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  color: var(--text-secondary);
  white-space: nowrap;
}

.pill-green {
  background: var(--green-soft);
  border-color: var(--green-border);
  color: var(--green);
}

.pill-warning {
  background: var(--warning-soft);
  border-color: var(--warning-border);
  color: var(--warning);
}

.pill-critical {
  background: var(--critical-soft);
  border-color: var(--critical-border);
  color: var(--critical);
}

.demo-badge {
  background: rgba(255, 167, 38, 0.14);
  border: 1px solid rgba(255, 167, 38, 0.35);
  color: var(--warning);
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 18px;
  border-radius: var(--radius-md);
  border: none;
  background: var(--green);
  color: #06130C;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: transform 0.12s ease, filter 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 4px 16px rgba(0, 230, 118, 0.25);
}

.btn:hover { filter: brightness(1.06); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  color: var(--text-main);
  padding: 9px 14px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.btn-ghost:hover {
  background: var(--bg-surface-hover);
  border-color: rgba(255, 255, 255, 0.22);
}

.btn-danger-ghost {
  background: var(--critical-soft);
  border: 1px solid var(--critical-border);
  color: var(--critical);
}

.btn-sm { padding: 6px 11px; font-size: 12.5px; border-radius: var(--radius-sm); }

/* Inputs */
.input, .select, textarea.input {
  width: 100%;
  background: var(--bg-main);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  padding: 11px 13px;
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 14px;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.input:focus, .select:focus, textarea.input:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(0, 230, 118, 0.14);
}

.label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

/* Segmented Control & Filter Chips */
.segmented {
  display: flex;
  background: var(--bg-main);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  padding: 3px;
  gap: 3px;
  overflow-x: auto;
}

.seg-btn {
  flex: 1;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  padding: 7px 11px;
  border-radius: 9px;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.seg-btn.active {
  background: var(--green);
  color: #06130C;
  font-weight: 700;
}

.chip-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}

.chip-row::-webkit-scrollbar { display: none; }

.chip-btn {
  border: 1px solid var(--border-strong);
  background: var(--bg-card);
  color: var(--text-secondary);
  padding: 6px 13px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.chip-btn.active {
  background: var(--green-soft);
  border-color: var(--green);
  color: var(--green);
}

/* Welcome / Auth / Onboarding */
.auth-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 28px 18px 64px;
}

.auth-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 36px;
  align-items: center;
}

.check-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 20px 0;
}

.check-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  color: var(--text-main);
}

.check-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--green-soft);
  border: 1px solid var(--green-border);
  color: var(--green);
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 800;
  flex-shrink: 0;
}

.biz-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.biz-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 10px;
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  border: 1px solid var(--border);
  color: var(--text-main);
  cursor: pointer;
  transition: all 0.15s ease;
  text-align: center;
}

.biz-card:hover { border-color: var(--border-strong); background: var(--bg-surface-hover); }
.biz-card.selected {
  border-color: var(--green);
  background: var(--green-soft);
  box-shadow: 0 0 0 1px var(--green);
}

/* App Shell Layout (Desktop Sidebar + Mobile Bottom Nav) */
.app-layout {
  display: grid;
  grid-template-columns: 248px 1fr;
  min-height: 100vh;
}

.sidebar {
  background: #0D1214;
  border-right: 1px solid var(--border);
  padding: 20px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  position: sticky;
  top: 0;
  height: 100vh;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 11px;
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 13.5px;
  cursor: pointer;
  border: 1px solid transparent;
  background: transparent;
  width: 100%;
  text-align: left;
  transition: all 0.14s ease;
}

.nav-item:hover { background: var(--bg-surface); color: var(--text-main); }
.nav-item.active {
  background: var(--green-soft);
  border-color: var(--green-border);
  color: var(--green);
  font-weight: 700;
}

.main-area {
  padding: 18px 24px 96px;
  max-width: 1240px;
  width: 100%;
  margin: 0 auto;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}

/* Grids & KPI Tiles */
.kpi-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 14px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }

.kpi-tile {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px 14px;
}

.kpi-val {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
  margin-top: 4px;
  line-height: 1.15;
}

/* Progress Bars */
.bar-track {
  width: 100%;
  height: 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
  margin-top: 6px;
}

.bar-fill {
  height: 100%;
  border-radius: 999px;
  background: var(--green);
  transition: width 0.3s ease;
}

/* Alert & Task Cards */
.alert-item {
  border-radius: var(--radius-md);
  padding: 13px 15px;
  margin-bottom: 10px;
  border: 1px solid var(--border);
  background: var(--bg-surface);
}

.alert-item.warning {
  background: var(--warning-soft);
  border-color: var(--warning-border);
}

.alert-item.critical {
  background: var(--critical-soft);
  border-color: var(--critical-border);
}

.alert-item.success {
  background: var(--green-soft);
  border-color: var(--green-border);
}

/* Menu List Items (More, Reports, Profile) */
.menu-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 14px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-main);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  margin-bottom: 9px;
  text-align: left;
  transition: background 0.14s ease, border-color 0.14s ease;
}

.menu-row:hover {
  background: var(--bg-surface);
  border-color: var(--border-strong);
}

/* Connector Status Card */
.connector-banner {
  background: linear-gradient(135deg, rgba(0, 230, 118, 0.18), rgba(0, 200, 83, 0.06));
  border: 1px solid var(--green-border);
  border-radius: var(--radius-lg);
  padding: 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.connector-banner.offline {
  background: linear-gradient(135deg, rgba(255, 167, 38, 0.15), rgba(255, 82, 82, 0.06));
  border-color: var(--warning-border);
}

/* Tables */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
th, td { text-align: left; padding: 10px 9px; border-bottom: 1px solid var(--border); vertical-align: middle; }
th { color: var(--text-muted); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; }

/* Toggle Switch */
.switch { position: relative; display: inline-block; width: 46px; height: 25px; flex-shrink: 0; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider { position: absolute; cursor: pointer; inset: 0; background: rgba(255,255,255,0.16); border-radius: 999px; transition: 0.2s; }
.slider::before { content: ""; position: absolute; height: 19px; width: 19px; left: 3px; bottom: 3px; background: #fff; border-radius: 50%; transition: 0.2s; }
input:checked + .slider { background: var(--green); }
input:checked + .slider::before { transform: translateX(21px); }

/* Mobile Bottom Navigation (5 items — 1:1 Mockup) */
.mobile-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 40;
  background: linear-gradient(180deg, rgba(12, 18, 19, 0.97) 0%, #070A0B 100%);
  backdrop-filter: blur(18px);
  border-top: 1px solid rgba(0, 230, 118, 0.20);
  box-shadow: 0 -6px 24px rgba(0, 0, 0, 0.65);
  padding: 8px 6px calc(9px + env(safe-area-inset-bottom));
  justify-content: space-around;
}

.mobile-nav button {
  position: relative;
  background: none;
  border: none;
  color: #B8C2C4;
  font-size: 11px;
  font-weight: 600;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 4px 10px 7px;
  border-radius: 10px;
  cursor: pointer;
  transition: color 0.15s ease, transform 0.12s ease;
}

.mobile-nav button .nav-svg {
  position: relative;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
}

.mobile-nav button.active {
  color: #00E676;
  font-weight: 700;
  text-shadow: 0 0 10px rgba(0, 230, 118, 0.55);
}

.mobile-nav button.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 34px;
  height: 3px;
  border-radius: 999px;
  background: #00E676;
  box-shadow: 0 0 10px #00E676;
}

.nav-task-badge {
  position: absolute;
  top: -5px;
  right: -7px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: #FF3B30;
  color: #FFFFFF;
  font-size: 10px;
  font-weight: 800;
  display: grid;
  place-items: center;
  box-shadow: 0 0 8px rgba(255, 59, 48, 0.7);
}

.mobile-nav button.active .nav-svg {
  filter: drop-shadow(0 0 7px rgba(0, 230, 118, 0.78));
}

.nav-item .nav-svg {
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.nav-item.active .nav-svg {
  filter: drop-shadow(0 0 6px rgba(0, 230, 118, 0.7));
}

/* Modals & Toasts */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(5, 8, 9, 0.80);
  backdrop-filter: blur(8px);
  display: grid;
  place-items: center;
  z-index: 60;
  padding: 16px;
}

.modal-box {
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.7);
}

.toast-root {
  position: fixed;
  right: 16px;
  bottom: 84px;
  z-index: 80;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toast {
  background: var(--bg-surface);
  border: 1px solid var(--green-border);
  color: var(--text-main);
  padding: 11px 15px;
  border-radius: var(--radius-md);
  font-size: 13.5px;
  box-shadow: var(--shadow);
}

.notif-btn { position: relative; }
.notif-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--critical);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  display: grid;
  place-items: center;
}

.glow-num {
  text-shadow: 0 0 18px rgba(255, 255, 255, 0.35), 0 0 6px rgba(0, 230, 118, 0.18);
}

.glow-green-text {
  color: #00E676;
  text-shadow: 0 0 12px rgba(0, 230, 118, 0.55);
}

/* 1:1 SWAN LOOK Mobile Topbar, 2x2 KPI Grid, Donut & Signals */
.swan-top-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
  padding: 2px 0;
}

.swan-icon-btn {
  position: relative;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: none;
  background: transparent;
  color: #E2E8F0;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.swan-icon-btn:hover { background: rgba(255, 255, 255, 0.06); }

.kpi-2x2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 12px;
}

.kpi-mini-card {
  display: flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(160deg, rgba(16, 28, 24, 0.95) 0%, rgba(10, 15, 14, 0.98) 100%);
  border: 1px solid rgba(0, 230, 118, 0.28);
  border-radius: 14px;
  padding: 11px 12px;
  box-shadow: 0 0 14px rgba(0, 230, 118, 0.09);
}

.kpi-mini-icon {
  color: #00E676;
  filter: drop-shadow(0 0 7px rgba(0, 230, 118, 0.55));
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.signal-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: rgba(10, 16, 15, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 10px 12px;
  margin-top: 8px;
  cursor: pointer;
  width: 100%;
  text-align: left;
  color: #FFFFFF;
}

.signal-row:hover { border-color: rgba(0, 230, 118, 0.35); }

.pill-crit-solid {
  background: rgba(239, 68, 68, 0.24);
  border: 1px solid rgba(239, 68, 68, 0.65);
  color: #FCA5A5;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.pill-pos-solid {
  background: rgba(0, 230, 118, 0.18);
  border: 1px solid rgba(0, 230, 118, 0.55);
  color: #4ADE80;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.pill-warn-solid {
  background: rgba(245, 158, 11, 0.16);
  border: 1px solid rgba(245, 158, 11, 0.55);
  color: #FBBF24;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 700;
  white-space: nowrap;
}

@media (max-width: 440px) {
  .kpi-mini-card { padding: 9px 9px; gap: 7px; }
}

/* 1:1 Top 3 KPI Row + Liquid Neon 7-Day Bar Chart */
.home-top-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 14px;
}

.home-kpi-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(160deg, rgba(16, 28, 24, 0.96) 0%, rgba(10, 15, 14, 0.98) 100%);
  border: 1px solid rgba(0, 230, 118, 0.32);
  border-radius: 16px;
  padding: 14px 16px;
  box-shadow: 0 0 18px rgba(0, 230, 118, 0.10), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.home-kpi-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: #00E676;
  filter: drop-shadow(0 0 8px rgba(0, 230, 118, 0.65));
  flex-shrink: 0;
}

.home-kpi-delta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(0, 230, 118, 0.12);
  border: 1px solid rgba(0, 230, 118, 0.42);
  color: #00E676;
  font-size: 12px;
  font-weight: 700;
  text-shadow: 0 0 8px rgba(0, 230, 118, 0.45);
}

.chart-panel-1to1 {
  background: linear-gradient(180deg, rgba(15, 25, 22, 0.96) 0%, rgba(9, 14, 13, 0.99) 100%);
  border: 1px solid rgba(0, 230, 118, 0.34);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 0 26px rgba(0, 230, 118, 0.12), inset 0 1px 0 rgba(0, 230, 118, 0.18);
}

.goal-callout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  max-width: 440px;
  margin: 0 auto 14px;
  padding: 10px 16px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(16, 36, 28, 0.92), rgba(11, 22, 18, 0.95));
  border: 1px solid rgba(0, 230, 118, 0.42);
  box-shadow: 0 0 18px rgba(0, 230, 118, 0.16);
}

.liquid-bar-wrap {
  position: relative;
  width: 100%;
  max-width: 74px;
  border-radius: 10px 10px 4px 4px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(0, 230, 118, 0.88) 0%, rgba(0, 200, 83, 0.72) 55%, rgba(0, 150, 64, 0.85) 100%);
  border: 1.5px solid #5CFF9D;
  box-shadow:
    0 0 24px rgba(0, 230, 118, 0.65),
    0 0 44px rgba(0, 230, 118, 0.25),
    inset 0 0 16px rgba(255, 255, 255, 0.28);
}

.liquid-bar-wave {
  position: absolute;
  top: -1px;
  left: 0;
  width: 100%;
  height: 18px;
  pointer-events: none;
}

.liquid-bubble {
  position: absolute;
  bottom: -10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
  box-shadow: 0 0 6px rgba(255, 255, 255, 0.8);
  animation: swanBubbleRise 3.2s infinite ease-in;
}

@keyframes swanBubbleRise {
  0% { transform: translateY(0) scale(0.8); opacity: 0; }
  20% { opacity: 0.85; }
  85% { opacity: 0.65; }
  100% { transform: translateY(-120px) scale(1.1); opacity: 0; }
}

.today-val-pill {
  padding: 5px 12px;
  border-radius: 10px;
  background: rgba(11, 22, 18, 0.94);
  border: 1.5px solid #00E676;
  color: #FFFFFF;
  font-weight: 800;
  font-size: 13.5px;
  white-space: nowrap;
  box-shadow: 0 0 16px rgba(0, 230, 118, 0.45);
  margin-bottom: 8px;
}

.chart-footer-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid rgba(0, 230, 118, 0.20);
  background: rgba(8, 13, 12, 0.85);
}

.chart-footer-cell {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 16px;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.chart-footer-cell:last-child { border-right: none; }

@media (max-width: 720px) {
  .home-top-3 { grid-template-columns: 1fr; gap: 8px; }
  .home-kpi-card { padding: 11px 13px; }
  .chart-footer-3 { grid-template-columns: 1fr; }
  .chart-footer-cell { border-right: none; border-bottom: 1px solid rgba(255, 255, 255, 0.07); padding: 10px 14px; }
  .chart-footer-cell:last-child { border-bottom: none; }
}

/* Neon Glowing Stat Rectangles (1:1 Analytics Mockup) */
.neon-stat-box {
  background: linear-gradient(160deg, rgba(16, 28, 23, 0.95) 0%, rgba(11, 16, 15, 0.98) 100%);
  border: 1px solid rgba(0, 230, 118, 0.55);
  border-radius: 14px;
  padding: 13px 14px;
  box-shadow:
    0 0 16px rgba(0, 230, 118, 0.22),
    inset 0 0 14px rgba(0, 230, 118, 0.08);
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.neon-stat-box:hover {
  border-color: #00E676;
  box-shadow:
    0 0 22px rgba(0, 230, 118, 0.36),
    inset 0 0 18px rgba(0, 230, 118, 0.14);
}

.analytics-select-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: #131A1B;
  border: 1px solid rgba(0, 230, 118, 0.28);
  border-radius: 12px;
  padding: 10px 14px;
  color: var(--text-main);
  font-size: 13.5px;
  font-weight: 600;
  box-shadow: 0 0 12px rgba(0, 230, 118, 0.08);
}

.analytics-3-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
}

@media (max-width: 480px) {
  .analytics-3-row { gap: 7px; }
  .neon-stat-box { padding: 10px 9px; }
}

/* Helpers */
.flex-row { display: flex; align-items: center; gap: 10px; }
.flex-between { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.mt-8 { margin-top: 8px; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mb-8 { margin-bottom: 8px; }
.mb-12 { margin-bottom: 12px; }
.mb-16 { margin-bottom: 16px; }

/* Responsive */
@media (max-width: 960px) {
  .auth-grid, .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .auth-grid > .swan-card { order: -1; }
  .app-layout { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .mobile-nav { display: flex; }
  .main-area { padding: 14px 14px 92px; }
  .swan-card { padding: 15px; }
  .hero-kpi-val { font-size: 29px; }
}

@media (max-width: 480px) {
  .kpi-3 { grid-template-columns: repeat(3, 1fr); gap: 7px; }
  .kpi-tile { padding: 10px 9px; }
  .kpi-val { font-size: 16px; }
  .toast-root { left: 12px; right: 12px; bottom: 82px; }
}
