/* ============================================
   DIAMOND VAULT — Design System & Core Styles
   ============================================ */

/* ---------- CSS Custom Properties ---------- */
:root {
  /* Surface & Background */
  --surface: #0f1419;
  --surface-dim: #0f1419;
  --surface-bright: #353a3f;
  --surface-container-lowest: #0a0f14;
  --surface-container-low: #171c21;
  --surface-container: #1b2025;
  --surface-container-high: #252a30;
  --surface-container-highest: #30353b;
  --on-surface: #dee3ea;
  --on-surface-variant: #d0c5af;
  --background: #0f1419;
  --on-background: #dee3ea;

  /* Primary (Gold) */
  --primary: #f2ca50;
  --primary-container: #d4af37;
  --on-primary: #3c2f00;
  --on-primary-container: #554300;

  /* Secondary (Silver/Slate) */
  --secondary: #bfc7d6;
  --secondary-container: #424a56;
  --on-secondary: #29313c;

  /* Tertiary (Bright Gold) */
  --tertiary: #f2cc00;
  --tertiary-container: #d2b100;

  /* Error */
  --error: #ffb4ab;
  --error-container: #93000a;

  /* Outline */
  --outline: #99907c;
  --outline-variant: #4d4635;

  /* Status Colors */
  --emerald: #34d399;
  --emerald-dim: rgba(52, 211, 153, 0.15);
  --ruby: #f87171;
  --ruby-dim: rgba(248, 113, 113, 0.15);
  --sapphire: #60a5fa;
  --sapphire-dim: rgba(96, 165, 250, 0.15);

  /* Spacing */
  --unit: 8px;
  --gutter: 24px;
  --container-padding: 32px;
  --glass-margin: 16px;

  /* Radii */
  --radius-sm: 0.25rem;
  --radius: 0.5rem;
  --radius-md: 0.75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --radius-full: 9999px;

  /* Sidebar */
  --sidebar-width: 280px;
  --header-height: 72px;
}

/* ---------- Reset & Globals ---------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Montserrat', system-ui, sans-serif;
  background-color: var(--background);
  background-image:
    radial-gradient(ellipse at 20% 50%, rgba(212, 175, 55, 0.03) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(23, 28, 33, 0.8) 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, #12171d 0%, #0f1419 100%);
  color: var(--on-background);
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: 0.01em;
  font-weight: 400;
  overflow-x: hidden;
  min-height: 100vh;
}

::selection {
  background: var(--primary-container);
  color: var(--on-primary-container);
}

a { color: inherit; text-decoration: none; }

button {
  cursor: pointer;
  font-family: inherit;
  border: none;
  background: none;
  color: inherit;
}

input, select, textarea {
  font-family: inherit;
  color: inherit;
  outline: none;
}

img {
  max-width: 100%;
  display: block;
}

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: rgba(212, 175, 55, 0.25);
  border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(212, 175, 55, 0.45);
}

/* ---------- Typography Tokens ---------- */
.text-display-lg {
  font-size: 42px;
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.text-headline-md {
  font-size: 22px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.05em;
}

.text-headline-sm {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0.03em;
}

.text-body {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: 0.01em;
}

.text-body-sm {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
}

.text-label-caps {
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.text-label-sm {
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.text-currency {
  font-size: 20px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;
}

.text-currency-lg {
  font-size: 28px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;
}

/* ---------- Color Utilities ---------- */
.text-primary { color: var(--primary); }
.text-gold { color: var(--primary-container); }
.text-muted { color: #64748b; }
.text-slate { color: #94a3b8; }
.text-emerald { color: var(--emerald); }
.text-ruby { color: var(--ruby); }
.text-sapphire { color: var(--sapphire); }

/* ---------- Glassmorphism System ---------- */
.glass-panel {
  background: rgba(23, 28, 33, 0.55);
  backdrop-filter: blur(20px) saturate(1.1);
  -webkit-backdrop-filter: blur(20px) saturate(1.1);
  border: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  overflow: hidden;
}

.glass-panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.04) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

.glass-panel > * {
  position: relative;
  z-index: 1;
}

.glass-panel--elevated {
  background: rgba(23, 28, 33, 0.7);
  backdrop-filter: blur(30px) saturate(1.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.glass-panel--subtle {
  background: rgba(23, 28, 33, 0.35);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.gold-glow {
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.12),
              0 0 60px rgba(212, 175, 55, 0.05);
}

.gold-glow-strong {
  box-shadow: 0 0 25px rgba(212, 175, 55, 0.25),
              0 0 80px rgba(212, 175, 55, 0.08);
}

/* Gold shimmer top border */
.glass-gold-edge::after {
  content: "";
  position: absolute;
  top: 0;left: 0;right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.35), transparent);
  z-index: 2;
}

/* ============================================
   LAYOUT — Header, Sidebar, Main
   ============================================ */

/* ---------- Top Header Bar ---------- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--container-padding);
  background: rgba(10, 15, 20, 0.65);
  backdrop-filter: blur(24px) saturate(1.2);
  -webkit-backdrop-filter: blur(24px) saturate(1.2);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
}

.header__brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header__logo {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.15em;
  color: var(--primary);
  text-transform: uppercase;
}

.header__divider {
  width: 1px;
  height: 24px;
  background: rgba(255, 255, 255, 0.1);
}

.header__section-name {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--on-surface-variant);
  text-transform: uppercase;
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.header__icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  transition: all 0.25s ease;
}

.header__icon-btn:hover {
  color: var(--primary);
  background: rgba(255, 255, 255, 0.05);
}

.header__avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1.5px solid rgba(212, 175, 55, 0.3);
  overflow: hidden;
  background: var(--surface-container-high);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-weight: 700;
  font-size: 13px;
}

/* ---------- Sidebar ---------- */
.sidebar {
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  width: var(--sidebar-width);
  z-index: 90;
  display: flex;
  flex-direction: column;
  padding-top: calc(var(--header-height) + 24px);
  padding-bottom: 24px;
  background: rgba(10, 15, 20, 0.45);
  backdrop-filter: blur(30px) saturate(1.1);
  -webkit-backdrop-filter: blur(30px) saturate(1.1);
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 4px 0 30px rgba(0, 0, 0, 0.3);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar__header {
  padding: 0 28px;
  margin-bottom: 32px;
}

.sidebar__title {
  font-size: 13px;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: 0.02em;
}

.sidebar__subtitle {
  font-size: 10px;
  color: #475569;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-top: 4px;
}

.sidebar__nav {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 0 12px;
  overflow-y: auto;
}

.sidebar__link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #64748b;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.sidebar__link:hover {
  color: #cbd5e1;
  background: rgba(255, 255, 255, 0.04);
  transform: translateX(3px);
}

.sidebar__link--active {
  color: var(--primary);
  background: rgba(212, 175, 55, 0.08);
  border-right: 2px solid var(--primary);
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.1);
}

.sidebar__link--active:hover {
  color: var(--primary);
  transform: translateX(0);
}

.sidebar__link .material-symbols-outlined {
  font-size: 22px;
  font-variation-settings: 'FILL' 0, 'wght' 300, 'GRAD' 0, 'opsz' 24;
}

.sidebar__link--active .material-symbols-outlined {
  font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

.sidebar__footer {
  padding: 16px 12px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* ---------- Main Content ---------- */
.main {
  margin-left: var(--sidebar-width);
  padding-top: calc(var(--header-height) + 32px);
  padding-left: var(--container-padding);
  padding-right: var(--container-padding);
  padding-bottom: 48px;
  min-height: 100vh;
}

/* ---------- Page Sections ---------- */
.page-section {
  display: none;
  animation: fadeIn 0.4s ease;
}

.page-section--active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- Section Header ---------- */
.section-header {
  margin-bottom: 32px;
}

.section-header__overline {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--primary-container);
  margin-bottom: 6px;
}

.section-header__title {
  font-size: 38px;
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--on-surface);
}

.section-header__desc {
  color: #64748b;
  font-size: 15px;
  margin-top: 6px;
}

.section-header__row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 16px;
}

/* ============================================
   COMPONENTS
   ============================================ */

/* ---------- Stats Card ---------- */
.stats-grid {
  display: grid;
  gap: var(--gutter);
  margin-bottom: 32px;
}

.stats-grid--4 { grid-template-columns: repeat(4, 1fr); }
.stats-grid--3 { grid-template-columns: repeat(3, 1fr); }
.stats-grid--2 { grid-template-columns: repeat(2, 1fr); }

.stat-card {
  padding: 24px;
  border-radius: var(--radius-lg);
  transition: all 0.3s ease;
}

.stat-card:hover {
  border-color: rgba(212, 175, 55, 0.2);
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.08);
}

.stat-card__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
}

.stat-card__icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.stat-card__icon--gold {
  background: rgba(212, 175, 55, 0.1);
  color: var(--primary);
  border: 1px solid rgba(212, 175, 55, 0.15);
}

.stat-card__icon--emerald {
  background: rgba(52, 211, 153, 0.1);
  color: var(--emerald);
  border: 1px solid rgba(52, 211, 153, 0.15);
}

.stat-card__icon--ruby {
  background: rgba(248, 113, 113, 0.1);
  color: var(--ruby);
  border: 1px solid rgba(248, 113, 113, 0.15);
}

.stat-card__trend {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 600;
  margin-top: 10px;
}

.stat-card__trend--up { color: var(--emerald); }
.stat-card__trend--down { color: var(--ruby); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: all 0.25s ease;
  white-space: nowrap;
}

.btn--primary {
  background: var(--primary-container);
  color: var(--on-primary);
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.15);
}

.btn--primary:hover {
  filter: brightness(1.1);
  box-shadow: 0 0 25px rgba(212, 175, 55, 0.25);
  transform: scale(1.02);
}

.btn--primary:active { transform: scale(0.98); }

.btn--ghost {
  background: transparent;
  color: var(--primary);
  border: 1px solid rgba(212, 175, 55, 0.3);
}

.btn--ghost:hover {
  background: rgba(212, 175, 55, 0.08);
  border-color: rgba(212, 175, 55, 0.5);
}

.btn--secondary {
  background: rgba(255, 255, 255, 0.05);
  color: #cbd5e1;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.btn--secondary:hover {
  background: rgba(255, 255, 255, 0.1);
}

.btn .material-symbols-outlined {
  font-size: 16px;
}

/* ---------- Input ---------- */
.input-glass {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 10px 16px;
  font-size: 14px;
  color: var(--on-surface);
  transition: all 0.25s ease;
  width: 100%;
}

.input-glass:focus {
  border-color: rgba(212, 175, 55, 0.5);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.input-glass::placeholder {
  color: #475569;
}

.search-input {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-full);
  padding: 0 18px;
  height: 42px;
  transition: all 0.25s ease;
}

.search-input:focus-within {
  border-color: rgba(212, 175, 55, 0.35);
  background: rgba(255, 255, 255, 0.06);
}

.search-input input {
  background: transparent;
  border: none;
  font-size: 13px;
  flex: 1;
  min-width: 0;
}

.search-input .material-symbols-outlined {
  color: #475569;
  font-size: 20px;
}

/* ---------- Status Chip ---------- */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.chip--emerald {
  background: var(--emerald-dim);
  color: var(--emerald);
  border: 1px solid rgba(52, 211, 153, 0.2);
}

.chip--ruby {
  background: var(--ruby-dim);
  color: var(--ruby);
  border: 1px solid rgba(248, 113, 113, 0.2);
}

.chip--gold {
  background: rgba(212, 175, 55, 0.1);
  color: var(--primary);
  border: 1px solid rgba(212, 175, 55, 0.2);
}

.chip--sapphire {
  background: var(--sapphire-dim);
  color: var(--sapphire);
  border: 1px solid rgba(96, 165, 250, 0.2);
}

.chip--slate {
  background: rgba(100, 116, 139, 0.1);
  color: #94a3b8;
  border: 1px solid rgba(100, 116, 139, 0.2);
}

.chip__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.chip__dot--pulse {
  animation: pulse 2s infinite;
}

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

/* ---------- Table ---------- */
.data-table {
  width: 100%;
  text-align: left;
  border-collapse: collapse;
}

.data-table thead tr {
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(0, 0, 0, 0.15);
}

.data-table th {
  padding: 16px 24px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #64748b;
}

.data-table td {
  padding: 18px 24px;
  font-size: 14px;
  vertical-align: middle;
}

.data-table tbody tr {
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  transition: all 0.2s ease;
}

.data-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.03);
}

.data-table tbody tr:last-child {
  border-bottom: none;
}

/* ---------- Pricing Cards (Dashboard) ---------- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--gutter);
  margin-bottom: 32px;
}

.pricing-card {
  padding: 24px;
  border-radius: var(--radius-lg);
  transition: all 0.35s ease;
  cursor: default;
}

.pricing-card:hover {
  border-color: rgba(212, 175, 55, 0.25);
}

.pricing-card__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
}

.pricing-card__label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #64748b;
}

.pricing-card__trend {
  display: flex;
  align-items: center;
  gap: 2px;
  font-size: 11px;
  font-weight: 700;
}

.pricing-card__value {
  font-size: 26px;
  font-weight: 600;
  color: var(--primary);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.pricing-card__subtitle {
  font-size: 10px;
  color: #475569;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-top: 10px;
}

/* ---------- Cash Flow Chart ---------- */
.chart-bar-container {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  height: 220px;
  padding: 0 8px;
}

.chart-bar {
  flex: 1;
  border-radius: 6px 6px 0 0;
  min-height: 8px;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  cursor: pointer;
}

.chart-bar:hover {
  filter: brightness(1.3);
}

.chart-bar__tooltip {
  position: absolute;
  top: -32px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--surface-container-high);
  color: var(--on-surface);
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.2s;
  pointer-events: none;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.chart-bar:hover .chart-bar__tooltip {
  opacity: 1;
}

.chart-labels {
  display: flex;
  justify-content: space-between;
  padding: 12px 8px 0;
}

.chart-labels span {
  flex: 1;
  text-align: center;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #475569;
}

/* ---------- Avatar / Initials ---------- */
.avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-weight: 700;
  flex-shrink: 0;
}

.avatar--sm { width: 36px; height: 36px; font-size: 12px; }
.avatar--md { width: 42px; height: 42px; font-size: 14px; }
.avatar--lg { width: 56px; height: 56px; font-size: 18px; }

.avatar--gold {
  background: rgba(212, 175, 55, 0.15);
  color: var(--primary);
  border: 1px solid rgba(212, 175, 55, 0.2);
}

/* ---------- Progress Bar ---------- */
.progress-bar {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.progress-bar__fill {
  height: 100%;
  border-radius: var(--radius-full);
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.progress-bar__fill--gold { background: var(--primary); }
.progress-bar__fill--emerald { background: var(--emerald); }

/* ---------- Modal ---------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 32px;
  animation: fadeIn 0.2s ease;
}

.modal-overlay--active {
  display: flex;
}

.modal {
  width: 100%;
  max-width: 560px;
  max-height: 85vh;
  overflow-y: auto;
  padding: 32px;
  border-radius: var(--radius-xl);
  animation: modalSlideIn 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes modalSlideIn {
  from { opacity: 0; transform: translateY(24px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.modal__title {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.modal__close {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  transition: all 0.2s;
}

.modal__close:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--ruby);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #94a3b8;
  margin-bottom: 8px;
}

.form-group select {
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 10px 16px;
  font-size: 14px;
  color: var(--on-surface);
  appearance: none;
  cursor: pointer;
}

.form-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

/* ---------- FAB ---------- */
.fab {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--primary-container);
  color: var(--on-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 80;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 25px rgba(212, 175, 55, 0.3),
              0 8px 20px rgba(0, 0, 0, 0.3);
}

.fab:hover {
  transform: scale(1.08);
  box-shadow: 0 0 35px rgba(212, 175, 55, 0.45),
              0 12px 28px rgba(0, 0, 0, 0.35);
}

.fab:active { transform: scale(0.95); }

.fab .material-symbols-outlined {
  font-size: 26px;
}

/* ============================================
   WhatsApp Section — Embedded Browser
   ============================================ */
.whatsapp-container {
  height: calc(100vh - var(--header-height) - 96px);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.whatsapp-frame-wrapper {
  flex: 1;
  border-radius: var(--radius-xl);
  overflow: hidden;
  position: relative;
}

.whatsapp-frame-wrapper iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.whatsapp-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 40px;
  text-align: center;
}

.whatsapp-fallback__icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(37, 211, 102, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  color: #25d366;
}

.whatsapp-status-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 24px;
  border-radius: var(--radius-lg);
}

/* ============================================
   Inventory Cards
   ============================================ */
.inventory-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: var(--gutter);
  margin-bottom: 32px;
}

.inventory-card {
  border-radius: var(--radius-xl);
  transition: all 0.4s ease;
  overflow: hidden;
}

.inventory-card:hover {
  border-color: rgba(212, 175, 55, 0.25);
  box-shadow: 0 0 25px rgba(212, 175, 55, 0.1);
}

.inventory-card__image {
  height: 200px;
  overflow: hidden;
  position: relative;
}

.inventory-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}

.inventory-card:hover .inventory-card__image img {
  transform: scale(1.08);
}

.inventory-card__image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 20, 25, 0.9), transparent 60%);
}

.inventory-card__badge {
  position: absolute;
  top: 12px;
  right: 12px;
}

.inventory-card__sku {
  position: absolute;
  bottom: 12px;
  left: 16px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #94a3b8;
}

.inventory-card__name {
  position: absolute;
  bottom: 30px;
  left: 16px;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.inventory-card__body {
  padding: 20px;
}

.inventory-card__meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
}

.inventory-card__meta-item label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #64748b;
  display: block;
  margin-bottom: 4px;
}

.inventory-card__meta-item span {
  font-size: 14px;
  font-weight: 400;
}

.inventory-card__footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.inventory-card__actions {
  display: flex;
  gap: 8px;
}

.inventory-card__action-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: #64748b;
  transition: all 0.2s;
  font-size: 18px;
}

.inventory-card__action-btn:hover {
  background: rgba(212, 175, 55, 0.1);
  color: var(--primary);
  border-color: rgba(212, 175, 55, 0.2);
}

/* ============================================
   Kitty Manager
   ============================================ */
.kitty-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gutter);
  margin-top: 32px;
}

.kitty-detail-card {
  padding: var(--gutter);
  border-radius: var(--radius-xl);
}

.kitty-detail-card__title {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.03em;
  margin-bottom: 20px;
}

.kitty-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: var(--radius-md);
  margin-bottom: 10px;
  transition: all 0.2s;
}

.kitty-item:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.08);
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 1200px) {
  .stats-grid--4 { grid-template-columns: repeat(2, 1fr); }
  .kitty-detail-grid { grid-template-columns: 1fr; }
}

@media (max-width: 1024px) {
  .sidebar { transform: translateX(-100%); }
  .sidebar--open { transform: translateX(0); }
  .main { margin-left: 0; }
  .header { padding: 0 20px; }
  .main { padding-left: 20px; padding-right: 20px; }
}

@media (max-width: 768px) {
  .stats-grid--4 { grid-template-columns: 1fr; }
  .stats-grid--3 { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr 1fr; }
  .inventory-grid { grid-template-columns: 1fr; }
  .text-display-lg { font-size: 28px; }
  .section-header__title { font-size: 28px; }
}

/* ---------- Material Symbols Override ---------- */
.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 300, 'GRAD' 0, 'opsz' 24;
}

/* ---------- Notification Dot ---------- */
.notification-dot {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 8px;
  height: 8px;
  background: var(--primary);
  border-radius: 50%;
  border: 2px solid var(--surface);
}

/* ---------- Inline Edit ---------- */
.editable-price {
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 4px;
  transition: background 0.2s;
}

.editable-price:hover {
  background: rgba(212, 175, 55, 0.08);
}

/* ---------- Tabs ---------- */
.tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 24px;
}

.tab {
  padding: 10px 20px;
  border-radius: var(--radius-md);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #64748b;
  transition: all 0.25s;
}

.tab:hover {
  color: #cbd5e1;
  background: rgba(255, 255, 255, 0.04);
}

.tab--active {
  color: var(--on-primary);
  background: var(--primary-container);
}

/* ---------- WhatsApp green accent ---------- */
.wa-green { color: #25d366; }
.wa-bg { background: rgba(37, 211, 102, 0.1); }

/* ---------- Shopify accent ---------- */
.shopify-green { color: #96bf48; }

/* ---------- Cash flow section ---------- */
.cashflow-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: var(--gutter);
}

@media (max-width: 1200px) {
  .cashflow-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- Activity Item ---------- */
.activity-item {
  display: flex;
  gap: 14px;
  padding: 12px 0;
}

.activity-item + .activity-item {
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.activity-item__avatar {
  position: relative;
  flex-shrink: 0;
}

.activity-status-dot {
  position: absolute;
  bottom: -1px;
  right: -1px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid var(--surface-container);
}

/* ---------- Cashflow Summary Cards ---------- */
.cashflow-summary-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 24px;
}

/* ---------- Mobile Menu Toggle ---------- */
.mobile-menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  color: #94a3b8;
}

@media (max-width: 1024px) {
  .mobile-menu-toggle { display: flex; }
}

/* ---------- Kitty Gift Item ---------- */
.gift-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 0;
}

.gift-item + .gift-item {
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.gift-item__thumb {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--tertiary);
  flex-shrink: 0;
}

/* ---------- Empty State ---------- */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 40px;
  text-align: center;
  gap: 16px;
}

.empty-state__icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(212, 175, 55, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
}

/* ---------- Shopify Link Section ---------- */
.shopify-connect {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  border-radius: var(--radius-lg);
  margin-bottom: 24px;
}

.shopify-connect__icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(150, 191, 72, 0.1);
  border: 1px solid rgba(150, 191, 72, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---------- Filters Row ---------- */
.filters-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  border-radius: var(--radius-lg);
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.filter-select {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md);
}

.filter-select label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #64748b;
  white-space: nowrap;
}

.filter-select select {
  background: transparent;
  border: none;
  font-size: 13px;
  color: var(--primary);
  cursor: pointer;
  padding: 0;
}

/* ---------- Table User Cell ---------- */
.table-user {
  display: flex;
  align-items: center;
  gap: 12px;
}

.table-user__info {
  display: flex;
  flex-direction: column;
}

.table-user__name {
  font-weight: 600;
  font-size: 14px;
}

.table-user__id {
  font-size: 11px;
  color: #64748b;
}

/* ---------- Gift Cell ---------- */
.gift-cell {
  display: flex;
  align-items: center;
  gap: 8px;
}

.gift-cell .material-symbols-outlined {
  color: var(--tertiary);
  font-size: 18px;
}

/* ---------- Action Dots ---------- */
.action-dots {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  transition: all 0.2s;
}

.action-dots:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--primary);
}

/* ---------- Loading Shimmer ---------- */
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.shimmer {
  background: linear-gradient(90deg, 
    rgba(255,255,255,0.03) 25%, 
    rgba(255,255,255,0.06) 50%, 
    rgba(255,255,255,0.03) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s ease-in-out infinite;
}

/* ---------- WhatsApp Loading Spinner ---------- */
.wa-loading-spinner {
  width: 48px;
  height: 48px;
  border: 3px solid rgba(37, 211, 102, 0.15);
  border-top-color: #25d366;
  border-radius: 50%;
  animation: waSpin 0.8s linear infinite;
}

@keyframes waSpin {
  to { transform: rotate(360deg); }
}

/* ---------- Live Price Pulse ---------- */
.price-live-dot {
  width: 8px;
  height: 8px;
  background: var(--emerald);
  border-radius: 50%;
  display: inline-block;
  animation: pricePulse 2s ease-in-out infinite;
  margin-right: 6px;
}

@keyframes pricePulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(52,211,153,0.5); }
  50% { opacity: 0.6; box-shadow: 0 0 8px 4px rgba(52,211,153,0.15); }
}

/* ---------- Price Source Label ---------- */
.price-source-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  background: rgba(52,211,153,0.08);
  border: 1px solid rgba(52,211,153,0.15);
  border-radius: var(--radius-full);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--emerald);
}

/* ---------- WhatsApp Frame Height Fix ---------- */
.whatsapp-container {
  height: calc(100vh - var(--header-height) - 140px);
  min-height: 500px;
}

.whatsapp-frame-wrapper {
  height: 100%;
}
