/* ========================================================
   KenkaPOS - Style System Liquid Glass Edition
   Theme: Organic Fluid Glassmorphism, Liquid Refraction & Wet Luster
   Fresh, Dynamic, High-End Realtime Monitoring for Es Kristal Kenka
   ======================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800;900&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=JetBrains+Mono:wght@500;700&display=swap');

:root {
  /* Liquid Brand Palette */
  --liquid-cyan: #00f2fe;
  --liquid-blue: #4facfe;
  --liquid-emerald: #10b981;
  --liquid-emerald-light: #34d399;
  --liquid-gold: #f59e0b;
  --liquid-purple: #8b5cf6;
  --liquid-pink: #ec4899;

  /* Liquid Glass Foundations */
  --liquid-glass-bg: rgba(14, 23, 48, 0.42);
  --liquid-glass-bg-hover: rgba(18, 30, 62, 0.58);
  --liquid-glass-border: rgba(255, 255, 255, 0.16);
  --liquid-glass-border-hover: rgba(0, 242, 254, 0.5);
  
  --liquid-blur: blur(28px) saturate(210%) contrast(105%);

  /* Typography */
  --text-heading: #f8fafc;
  --text-body: #cbd5e1;
  --text-muted: #94a3b8;
  --text-dim: #64748b;

  /* Depth & Wet Luster Shadows */
  --shadow-liquid-sm: 0 8px 24px -4px rgba(0, 0, 0, 0.4);
  --shadow-liquid-md: 0 20px 40px -12px rgba(0, 0, 0, 0.6), inset 0 1.5px 2px rgba(255, 255, 255, 0.3), inset 0 -1.5px 2px rgba(0, 0, 0, 0.4);
  --shadow-liquid-lg: 0 30px 60px -15px rgba(0, 0, 0, 0.75), inset 0 2px 3px rgba(255, 255, 255, 0.4), inset 0 -2px 3px rgba(0, 0, 0, 0.5);

  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 26px;
  --radius-xl: 36px;
  --liquid-transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

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

body {
  font-family: 'Outfit', 'Plus Jakarta Sans', sans-serif;
  background-color: #070c18;
  color: var(--text-body);
  min-height: 100vh;
  line-height: 1.55;
  overflow-x: hidden;
  position: relative;
}

/* ========================================================
   Floating Liquid Orbs Background (Refracted under Glass)
   ======================================================== */
.liquid-background {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
  filter: blur(85px);
  opacity: 0.85;
}

.liquid-orb {
  position: absolute;
  border-radius: 50%;
  mix-blend-mode: screen;
  will-change: transform;
}

/* Orb 1: Liquid Aqua Cyan */
.orb-1 {
  width: 520px;
  height: 520px;
  top: -100px;
  left: -80px;
  background: radial-gradient(circle, rgba(0, 242, 254, 0.85) 0%, rgba(79, 172, 254, 0.4) 60%, transparent 80%);
  animation: liquid-float-1 22s infinite ease-in-out alternate;
}

/* Orb 2: Liquid Emerald Fresh */
.orb-2 {
  width: 580px;
  height: 580px;
  bottom: -150px;
  right: -100px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.75) 0%, rgba(5, 150, 105, 0.35) 60%, transparent 80%);
  animation: liquid-float-2 26s infinite ease-in-out alternate;
}

/* Orb 3: Liquid Royal Violet */
.orb-3 {
  width: 440px;
  height: 440px;
  top: 30%;
  right: -60px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.7) 0%, rgba(99, 102, 241, 0.3) 60%, transparent 80%);
  animation: liquid-float-3 20s infinite ease-in-out alternate;
}

/* Orb 4: Liquid Golden Sun */
.orb-4 {
  width: 400px;
  height: 400px;
  bottom: 20%;
  left: 5%;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.65) 0%, rgba(217, 119, 6, 0.25) 60%, transparent 80%);
  animation: liquid-float-4 24s infinite ease-in-out alternate;
}

@keyframes liquid-float-1 {
  0% { transform: translate(0, 0) scale(1) rotate(0deg); }
  50% { transform: translate(120px, 140px) scale(1.15) rotate(90deg); }
  100% { transform: translate(40px, 80px) scale(0.95) rotate(180deg); }
}

@keyframes liquid-float-2 {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-140px, -120px) scale(1.12); }
  100% { transform: translate(-60px, -50px) scale(0.92); }
}

@keyframes liquid-float-3 {
  0% { transform: translate(0, 0) scale(0.95); }
  50% { transform: translate(-100px, 110px) scale(1.18); }
  100% { transform: translate(50px, -70px) scale(1.02); }
}

@keyframes liquid-float-4 {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(130px, -90px) scale(1.1); }
  100% { transform: translate(-40px, 100px) scale(0.9); }
}

/* Main Application Container */
.app-wrapper {
  position: relative;
  z-index: 1;
  max-width: 1400px;
  margin: 0 auto;
  padding: 24px 20px 60px;
}

/* ========================================================
   Liquid Glass Navigation Bar
   ======================================================== */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 26px;
  background: var(--liquid-glass-bg);
  backdrop-filter: var(--liquid-blur);
  -webkit-backdrop-filter: var(--liquid-blur);
  border: 1px solid var(--liquid-glass-border);
  border-radius: var(--radius-xl);
  margin-bottom: 24px;
  box-shadow: var(--shadow-liquid-md);
  position: relative;
  overflow: hidden;
}

.navbar::before {
  content: '';
  position: absolute;
  top: 0;
  left: 30px;
  right: 30px;
  height: 1.5px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
  pointer-events: none;
}

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

.brand-icon {
  width: 54px;
  height: 54px;
  background: linear-gradient(135deg, rgba(0, 242, 254, 0.3), rgba(79, 172, 254, 0.45));
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  box-shadow: 
    0 10px 25px rgba(0, 242, 254, 0.35),
    inset 0 1.5px 2px rgba(255, 255, 255, 0.6);
  animation: liquid-ice-bounce 4s infinite ease-in-out;
}

@keyframes liquid-ice-bounce {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-5px) scale(1.05) rotate(2deg); }
}

.brand-info h1 {
  font-size: 1.6rem;
  font-weight: 900;
  letter-spacing: -0.5px;
  background: linear-gradient(135deg, #ffffff 10%, #70e1f5 60%, #ffd194 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.brand-info .tagline {
  font-size: 0.85rem;
  color: #94a3b8;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}

.header-status {
  display: flex;
  align-items: center;
  gap: 14px;
}

.live-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(16, 185, 129, 0.18);
  border: 1.5px solid rgba(52, 211, 153, 0.45);
  padding: 8px 18px;
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 800;
  color: #34d399;
  letter-spacing: 0.6px;
  backdrop-filter: blur(12px);
  box-shadow: 
    0 4px 15px rgba(16, 185, 129, 0.25),
    inset 0 1px 1px rgba(255, 255, 255, 0.3);
}

.live-dot {
  width: 9px;
  height: 9px;
  background: #34d399;
  border-radius: 50%;
  box-shadow: 0 0 12px #34d399;
  animation: pulse-liquid 1.6s infinite ease-in-out;
}

@keyframes pulse-liquid {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.35); opacity: 0.65; }
}

.clock-badge {
  font-family: 'JetBrains Mono', monospace;
  background: rgba(15, 23, 42, 0.55);
  border: 1.5px solid rgba(255, 255, 255, 0.15);
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 700;
  color: #f8fafc;
  backdrop-filter: blur(12px);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.2);
}

.header-actions {
  display: flex;
  gap: 10px;
}

.btn-icon {
  background: rgba(255, 255, 255, 0.08);
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  color: #f8fafc;
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.86rem;
  font-weight: 700;
  transition: var(--liquid-transition);
  backdrop-filter: blur(14px);
  box-shadow: 
    0 4px 15px rgba(0, 0, 0, 0.3),
    inset 0 1px 1px rgba(255, 255, 255, 0.25);
}

.btn-icon:hover {
  background: rgba(0, 242, 254, 0.2);
  border-color: rgba(0, 242, 254, 0.6);
  color: #00f2fe;
  transform: translateY(-3px) scale(1.03);
  box-shadow: 
    0 10px 25px rgba(0, 242, 254, 0.35),
    inset 0 1.5px 2px rgba(255, 255, 255, 0.4);
}

/* ========================================================
   Liquid Capsule Navigation Tabs
   ======================================================== */
.nav-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 24px;
  background: var(--liquid-glass-bg);
  padding: 8px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--liquid-glass-border);
  backdrop-filter: var(--liquid-blur);
  -webkit-backdrop-filter: var(--liquid-blur);
  width: fit-content;
  box-shadow: var(--shadow-liquid-sm);
  flex-wrap: wrap;
}

.tab-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 10px 24px;
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: var(--radius-lg);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: var(--liquid-transition);
}

.tab-btn.active {
  background: linear-gradient(135deg, rgba(0, 242, 254, 0.3), rgba(79, 172, 254, 0.45));
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  color: #ffffff;
  box-shadow: 
    0 10px 25px rgba(0, 242, 254, 0.3),
    inset 0 1.5px 2px rgba(255, 255, 255, 0.5);
  transform: scale(1.03);
}

.tab-btn:hover:not(.active) {
  color: var(--text-heading);
  background: rgba(255, 255, 255, 0.08);
}

/* Guidance Info Banner Liquid */
.info-banner {
  background: linear-gradient(135deg, rgba(0, 242, 254, 0.12) 0%, rgba(79, 172, 254, 0.05) 100%);
  border: 1.5px solid rgba(0, 242, 254, 0.3);
  border-radius: var(--radius-md);
  padding: 14px 22px;
  margin-bottom: 22px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.92rem;
  font-weight: 600;
  color: #7dd3fc;
  backdrop-filter: var(--liquid-blur);
  box-shadow: 
    0 10px 25px -5px rgba(0, 0, 0, 0.3),
    inset 0 1px 1.5px rgba(255, 255, 255, 0.25);
}

/* ========================================================
   ULTRA-LUXURIOUS LIQUID GLASS HERO STAT CARDS
   (Total Omzet, Total Kantong Terjual, Frekuensi, Rata-rata)
   ======================================================== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-bottom: 28px;
}

.stat-card {
  background: 
    linear-gradient(135deg, rgba(255, 255, 255, 0.11) 0%, rgba(255, 255, 255, 0.02) 50%, rgba(255, 255, 255, 0.06) 100%),
    rgba(13, 22, 46, 0.48);
  backdrop-filter: var(--liquid-blur);
  -webkit-backdrop-filter: var(--liquid-blur);
  border: 1.5px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-lg);
  padding: 24px;
  position: relative;
  overflow: hidden;
  transition: var(--liquid-transition);
  box-shadow: var(--shadow-liquid-md);
}

.stat-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -120%;
  width: 100%;
  height: 200%;
  background: linear-gradient(
    90deg, 
    transparent 0%, 
    rgba(255, 255, 255, 0.12) 50%, 
    transparent 100%
  );
  transform: rotate(25deg);
  pointer-events: none;
  transition: all 0.85s ease;
}

.stat-card:hover::before {
  left: 170%;
}

.stat-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 24px;
  right: 24px;
  height: 1.5px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.55), transparent);
  pointer-events: none;
}

.stat-card.clickable-card {
  cursor: pointer;
}

.stat-card.clickable-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: var(--shadow-liquid-lg);
}

/* --- KOTAK 1: TOTAL OMZET --- */
.stat-card.card-cyan {
  background: 
    radial-gradient(circle at 100% 0%, rgba(16, 185, 129, 0.22) 0%, transparent 60%),
    radial-gradient(circle at 0% 100%, rgba(0, 242, 254, 0.15) 0%, transparent 60%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.03) 100%),
    rgba(13, 24, 48, 0.52);
  border: 1.5px solid rgba(52, 211, 153, 0.35);
}
.stat-card.card-cyan:hover {
  border-color: rgba(52, 211, 153, 0.7);
  box-shadow: 
    0 30px 60px -15px rgba(0, 0, 0, 0.75),
    0 0 35px rgba(16, 185, 129, 0.35),
    inset 0 2px 3px rgba(255, 255, 255, 0.5);
}
.stat-card.card-cyan .stat-value {
  color: #38ef7d;
}

/* --- KOTAK 2: TOTAL KANTONG TERJUAL --- */
.stat-card.card-green {
  background: 
    radial-gradient(circle at 100% 0%, rgba(0, 242, 254, 0.24) 0%, transparent 60%),
    radial-gradient(circle at 0% 100%, rgba(56, 189, 248, 0.14) 0%, transparent 60%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.03) 100%),
    rgba(14, 25, 52, 0.52);
  border: 1.5px solid rgba(0, 242, 254, 0.35);
}
.stat-card.card-green:hover {
  border-color: rgba(0, 242, 254, 0.7);
  box-shadow: 
    0 30px 60px -15px rgba(0, 0, 0, 0.75),
    0 0 35px rgba(0, 242, 254, 0.35),
    inset 0 2px 3px rgba(255, 255, 255, 0.5);
}
.stat-card.card-green .stat-value {
  color: #6ee7b7;
}

/* --- KOTAK 3: FREKUENSI TRANSAKSI --- */
.stat-card.card-purple {
  background: 
    radial-gradient(circle at 100% 0%, rgba(168, 85, 247, 0.24) 0%, transparent 60%),
    radial-gradient(circle at 0% 100%, rgba(139, 92, 246, 0.14) 0%, transparent 60%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.03) 100%),
    rgba(18, 22, 50, 0.52);
  border: 1.5px solid rgba(192, 132, 252, 0.35);
}
.stat-card.card-purple:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: rgba(192, 132, 252, 0.7);
  box-shadow: 
    0 30px 60px -15px rgba(0, 0, 0, 0.75),
    0 0 35px rgba(168, 85, 247, 0.35),
    inset 0 2px 3px rgba(255, 255, 255, 0.5);
}
.stat-card.card-purple .stat-value {
  color: #e9d5ff;
}

/* --- KOTAK 4: RATA-RATA TRANSAKSI --- */
.stat-card.card-gold {
  background: 
    radial-gradient(circle at 100% 0%, rgba(251, 191, 36, 0.22) 0%, transparent 60%),
    radial-gradient(circle at 0% 100%, rgba(245, 158, 11, 0.14) 0%, transparent 60%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.03) 100%),
    rgba(24, 22, 45, 0.52);
  border: 1.5px solid rgba(251, 191, 36, 0.35);
}
.stat-card.card-gold:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: rgba(251, 191, 36, 0.7);
  box-shadow: 
    0 30px 60px -15px rgba(0, 0, 0, 0.75),
    0 0 35px rgba(251, 191, 36, 0.35),
    inset 0 2px 3px rgba(255, 255, 255, 0.5);
}
.stat-card.card-gold .stat-value {
  color: #fde68a;
}

.stat-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.stat-title {
  font-size: 0.86rem;
  font-weight: 800;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.stat-icon {
  width: 50px;
  height: 50px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  background: rgba(255, 255, 255, 0.08);
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(12px);
  box-shadow: 
    inset 0 1.5px 2px rgba(255, 255, 255, 0.35),
    0 6px 16px rgba(0, 0, 0, 0.35);
  transition: var(--liquid-transition);
}

.stat-card:hover .stat-icon {
  transform: scale(1.12) rotate(4deg);
}

.stat-value {
  font-size: 2.4rem;
  font-weight: 900;
  letter-spacing: -1px;
  margin-bottom: 4px;
  font-family: 'Outfit', sans-serif;
  text-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
}

.stat-desc {
  font-size: 0.84rem;
  color: #64748b;
  font-weight: 600;
  margin-top: 6px;
}

.stat-click-hint {
  margin-top: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  font-weight: 700;
  color: #7dd3fc;
  background: rgba(0, 242, 254, 0.1);
  border: 1.5px solid rgba(56, 189, 248, 0.3);
  padding: 8px 14px;
  border-radius: 12px;
  backdrop-filter: blur(10px);
  transition: all 0.25s ease;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.2);
}

.stat-card.clickable-card:hover .stat-click-hint {
  background: rgba(0, 242, 254, 0.22);
  border-color: rgba(56, 189, 248, 0.6);
  color: #ffffff;
  box-shadow: 0 0 18px rgba(0, 242, 254, 0.3);
}

/* ========================================================
   Liquid Glass Breakdown Cards
   ======================================================== */
.variants-section {
  margin-bottom: 28px;
}

.section-header-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 8px;
}

.section-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-heading);
  display: flex;
  align-items: center;
  gap: 10px;
}

.variants-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.variant-card {
  background: var(--liquid-glass-bg);
  border: 1.5px solid var(--liquid-glass-border);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: var(--liquid-transition);
  cursor: pointer;
  backdrop-filter: var(--liquid-blur);
  -webkit-backdrop-filter: var(--liquid-blur);
  box-shadow: var(--shadow-liquid-sm);
  position: relative;
  overflow: hidden;
}

.variant-card:hover {
  transform: translateY(-5px) scale(1.025);
  border-color: rgba(0, 242, 254, 0.55);
  box-shadow: 
    0 20px 40px -10px rgba(0, 0, 0, 0.65),
    0 0 25px rgba(0, 242, 254, 0.25),
    inset 0 1.5px 2px rgba(255, 255, 255, 0.4);
}

.variant-badge {
  min-width: 60px;
  height: 60px;
  border-radius: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 1.05rem;
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(10px);
  box-shadow: inset 0 1.5px 2px rgba(255, 255, 255, 0.5);
}

.badge-2k {
  background: linear-gradient(135deg, rgba(2, 132, 199, 0.8), rgba(3, 105, 161, 0.9));
  box-shadow: 0 8px 20px rgba(56, 189, 248, 0.35);
}
.badge-3k {
  background: linear-gradient(135deg, rgba(13, 148, 136, 0.8), rgba(15, 118, 110, 0.9));
  box-shadow: 0 8px 20px rgba(45, 212, 191, 0.35);
}
.badge-5k {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.8), rgba(29, 78, 216, 0.9));
  box-shadow: 0 8px 20px rgba(96, 165, 250, 0.35);
}
.badge-10k {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.8), rgba(109, 40, 217, 0.9));
  box-shadow: 0 8px 20px rgba(167, 139, 250, 0.35);
}

.variant-info {
  flex: 1;
}

.variant-name {
  font-size: 1.02rem;
  font-weight: 800;
  color: var(--text-heading);
}

.variant-stats {
  display: flex;
  justify-content: space-between;
  margin-top: 4px;
  font-size: 0.88rem;
  font-weight: 600;
}

.variant-bags {
  color: var(--text-muted);
}

.variant-subtotal {
  font-weight: 800;
  color: #34d399;
  font-family: 'JetBrains Mono', monospace;
}

/* ========================================================
   Liquid Glass Charts
   ======================================================== */
.charts-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 20px;
  margin-bottom: 28px;
}

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

.chart-card {
  background: var(--liquid-glass-bg);
  border: 1.5px solid var(--liquid-glass-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  backdrop-filter: var(--liquid-blur);
  -webkit-backdrop-filter: var(--liquid-blur);
  box-shadow: var(--shadow-liquid-md);
  position: relative;
  overflow: hidden;
}

.chart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}

.chart-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-heading);
  display: flex;
  align-items: center;
  gap: 8px;
}

.chart-container {
  position: relative;
  width: 100%;
  height: 280px;
}

/* ========================================================
   Detail Drill-down Header & KPI
   ======================================================== */
.detail-page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 16px;
  background: var(--liquid-glass-bg);
  padding: 20px 26px;
  border-radius: var(--radius-lg);
  border: 1.5px solid var(--liquid-glass-border);
  backdrop-filter: var(--liquid-blur);
  box-shadow: var(--shadow-liquid-md);
}

.page-heading {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-heading);
}

.page-subheading {
  font-size: 0.88rem;
  color: var(--text-muted);
  font-weight: 500;
}

.detail-kpi-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}

.kpi-mini-card {
  background: var(--liquid-glass-bg);
  border: 1.5px solid var(--liquid-glass-border);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  backdrop-filter: var(--liquid-blur);
  box-shadow: var(--shadow-liquid-sm);
}

.kpi-label {
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 4px;
}

.kpi-val {
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--text-heading);
  font-family: 'Outfit', sans-serif;
}

/* ========================================================
   Liquid Glass Form Controls, Dropdowns & Date Pickers
   ======================================================== */

/* Container bar for history and filters */
.history-controls,
.filter-controls-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--liquid-glass-bg);
  border: 1.5px solid var(--liquid-glass-border);
  border-radius: var(--radius-lg);
  padding: 16px 24px;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 16px;
  backdrop-filter: var(--liquid-blur);
  -webkit-backdrop-filter: var(--liquid-blur);
  box-shadow: var(--shadow-liquid-sm);
  position: relative;
  overflow: hidden;
}

.history-controls::after,
.filter-controls-bar::after {
  content: '';
  position: absolute;
  top: 0;
  left: 20px;
  right: 20px;
  height: 1.5px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.45), transparent);
  pointer-events: none;
}

.filter-group {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.filter-group label,
.control-label {
  font-size: 0.9rem;
  font-weight: 700;
  color: #cbd5e1;
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: 0.3px;
}

/* Custom Dropdown Styling (.custom-select, select) */
.custom-select,
.input-select,
select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-color: rgba(15, 23, 42, 0.78);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2300f2fe' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: calc(100% - 14px) center;
  background-size: 15px;
  border: 1.5px solid rgba(0, 242, 254, 0.35);
  border-radius: 12px;
  color: #ffffff;
  font-size: 0.92rem;
  font-weight: 700;
  font-family: 'Outfit', sans-serif;
  padding: 10px 42px 10px 16px;
  outline: none;
  cursor: pointer;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 
    0 4px 15px rgba(0, 0, 0, 0.35),
    inset 0 1px 2px rgba(255, 255, 255, 0.15);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.custom-select:hover,
.input-select:hover,
select:hover {
  border-color: rgba(0, 242, 254, 0.75);
  background-color: rgba(22, 36, 68, 0.88);
  box-shadow: 
    0 6px 20px rgba(0, 0, 0, 0.45),
    0 0 20px rgba(0, 242, 254, 0.28),
    inset 0 1px 2px rgba(255, 255, 255, 0.25);
  transform: translateY(-1px);
}

.custom-select:focus,
.input-select:focus,
select:focus {
  border-color: #00f2fe;
  background-color: rgba(15, 23, 42, 0.96);
  box-shadow: 
    0 0 0 3px rgba(0, 242, 254, 0.25),
    0 8px 25px rgba(0, 242, 254, 0.4),
    inset 0 1px 2px rgba(255, 255, 255, 0.3);
}

/* Style options inside dropdown */
.custom-select option,
select option {
  background: #0b1329;
  color: #f8fafc;
  font-weight: 600;
  padding: 12px 16px;
  font-size: 0.92rem;
}

/* Specific styling for filter-box inside detail KPI grid */
.kpi-mini-card.filter-box {
  justify-content: center;
  background: 
    radial-gradient(circle at 100% 0%, rgba(0, 242, 254, 0.2) 0%, transparent 60%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.02) 100%),
    rgba(14, 25, 52, 0.58);
  border: 1.5px solid rgba(0, 242, 254, 0.45);
  transition: var(--liquid-transition);
}

.kpi-mini-card.filter-box:hover {
  border-color: rgba(0, 242, 254, 0.8);
  box-shadow: 
    0 18px 40px -10px rgba(0, 0, 0, 0.65),
    0 0 30px rgba(0, 242, 254, 0.3);
  transform: translateY(-2px);
}

.kpi-mini-card.filter-box .kpi-label {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #38bdf8;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.kpi-mini-card.filter-box select.custom-select {
  width: 100%;
  margin-top: 2px;
  background-color: rgba(10, 18, 38, 0.88);
  border: 1.5px solid rgba(56, 189, 248, 0.45);
  font-size: 0.92rem;
  font-weight: 700;
}

.kpi-mini-card.filter-box select.custom-select:hover {
  border-color: #00f2fe;
}

/* Date Input Styling */
.date-input,
.input-date,
input[type="date"] {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  color-scheme: dark;
  background-color: rgba(15, 23, 42, 0.78);
  border: 1.5px solid rgba(0, 242, 254, 0.35);
  border-radius: 12px;
  color: #ffffff;
  font-size: 0.94rem;
  font-weight: 700;
  font-family: 'JetBrains Mono', 'Outfit', sans-serif;
  padding: 10px 18px;
  outline: none;
  cursor: pointer;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 
    0 4px 15px rgba(0, 0, 0, 0.35),
    inset 0 1px 2px rgba(255, 255, 255, 0.15);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.date-input:hover,
.input-date:hover,
input[type="date"]:hover {
  border-color: rgba(0, 242, 254, 0.75);
  background-color: rgba(22, 36, 68, 0.88);
  box-shadow: 
    0 6px 20px rgba(0, 0, 0, 0.45),
    0 0 20px rgba(0, 242, 254, 0.28);
  transform: translateY(-1px);
}

.date-input:focus,
.input-date:focus,
input[type="date"]:focus {
  border-color: #00f2fe;
  background-color: rgba(15, 23, 42, 0.96);
  box-shadow: 
    0 0 0 3px rgba(0, 242, 254, 0.25),
    0 8px 25px rgba(0, 242, 254, 0.4);
}

/* Custom Calendar Icon in Chrome/Safari/Edge */
input[type="date"]::-webkit-calendar-picker-indicator {
  cursor: pointer;
  filter: invert(0.85) sepia(1) saturate(5) hue-rotate(150deg);
  opacity: 0.95;
  margin-left: 10px;
  padding: 2px;
  transition: all 0.2s ease;
}

input[type="date"]::-webkit-calendar-picker-indicator:hover {
  filter: invert(1) drop-shadow(0 0 8px #00f2fe);
  transform: scale(1.2);
}

/* Search input styling */
.search-input {
  appearance: none;
  -webkit-appearance: none;
  background-color: rgba(15, 23, 42, 0.78);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2338bdf8' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'%3E%3C/circle%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'%3E%3C/line%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 14px center;
  background-size: 16px;
  border: 1.5px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  color: #f8fafc;
  font-size: 0.92rem;
  font-weight: 500;
  font-family: 'Outfit', sans-serif;
  padding: 10px 18px 10px 42px;
  outline: none;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 
    0 4px 15px rgba(0, 0, 0, 0.3),
    inset 0 1px 2px rgba(255, 255, 255, 0.1);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.search-input::placeholder {
  color: #64748b;
  font-weight: 400;
}

.search-input:hover {
  border-color: rgba(56, 189, 248, 0.5);
  background-color: rgba(22, 36, 68, 0.88);
}

.search-input:focus {
  border-color: #38bdf8;
  background-color: rgba(15, 23, 42, 0.96);
  box-shadow: 
    0 0 0 3px rgba(56, 189, 248, 0.25),
    0 8px 25px rgba(56, 189, 248, 0.35);
}

/* ========================================================
   Liquid Glass Tables & Records
   ======================================================== */
.table-card {
  background: var(--liquid-glass-bg);
  border: 1.5px solid var(--liquid-glass-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-liquid-md);
  margin-bottom: 28px;
  backdrop-filter: var(--liquid-blur);
  -webkit-backdrop-filter: var(--liquid-blur);
}

.table-responsive {
  width: 100%;
  overflow-x: auto;
}

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

.data-table th {
  background: rgba(12, 19, 39, 0.75);
  color: #94a3b8;
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  padding: 16px 22px;
  border-bottom: 1px solid var(--liquid-glass-border);
}

.data-table td {
  padding: 16px 22px;
  font-size: 0.92rem;
  color: var(--text-body);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.data-table tbody tr:hover {
  background: rgba(0, 242, 254, 0.06);
}

.time-badge {
  font-family: 'JetBrains Mono', monospace;
  background: rgba(0, 242, 254, 0.14);
  color: #00f2fe;
  border: 1px solid rgba(0, 242, 254, 0.4);
  padding: 5px 12px;
  border-radius: 8px;
  font-size: 0.86rem;
  font-weight: 700;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.2);
}

.tag-badge {
  padding: 5px 12px;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  display: inline-block;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.2);
}

.tag-2k { background: rgba(56, 189, 248, 0.2); color: #38bdf8; border: 1px solid rgba(56, 189, 248, 0.4); }
.tag-3k { background: rgba(45, 212, 191, 0.2); color: #2dd4bf; border: 1px solid rgba(45, 212, 191, 0.4); }
.tag-5k { background: rgba(96, 165, 250, 0.2); color: #60a5fa; border: 1px solid rgba(96, 165, 250, 0.4); }
.tag-10k { background: rgba(167, 139, 250, 0.2); color: #a78bfa; border: 1px solid rgba(167, 139, 250, 0.4); }

/* Liquid Glass Buttons */
.btn-primary {
  background: linear-gradient(135deg, rgba(0, 242, 254, 0.8), rgba(79, 172, 254, 0.9));
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  color: #070c18;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-weight: 800;
  font-size: 0.92rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--liquid-transition);
  box-shadow: 
    0 8px 25px rgba(0, 242, 254, 0.35),
    inset 0 1.5px 2px rgba(255, 255, 255, 0.5);
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 
    0 12px 30px rgba(0, 242, 254, 0.5),
    inset 0 2px 3px rgba(255, 255, 255, 0.6);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  border: 1.5px solid rgba(255, 255, 255, 0.22);
  color: #f8fafc;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.92rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--liquid-transition);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.18);
  transform: translateY(-3px);
}

.btn-success {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.85), rgba(5, 150, 105, 0.95));
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  color: #ffffff;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-weight: 800;
  font-size: 0.92rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--liquid-transition);
  box-shadow: 
    0 8px 25px rgba(16, 185, 129, 0.35),
    inset 0 1.5px 2px rgba(255, 255, 255, 0.5);
}

.btn-success:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 
    0 12px 30px rgba(16, 185, 129, 0.5),
    inset 0 2px 3px rgba(255, 255, 255, 0.6);
}

.btn-table-action {
  background: rgba(0, 242, 254, 0.12);
  border: 1px solid rgba(0, 242, 254, 0.35);
  color: #7dd3fc;
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-table-action:hover {
  background: rgba(0, 242, 254, 0.25);
  border-color: #00f2fe;
  color: #ffffff;
  transform: translateY(-2px);
}

/* Revenue Subtabs Liquid */
.revenue-tabs-bar {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
}

.subtab-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1.5px solid rgba(255, 255, 255, 0.15);
  color: var(--text-muted);
  padding: 8px 20px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--liquid-transition);
  backdrop-filter: blur(10px);
}

.subtab-btn.active {
  background: linear-gradient(135deg, rgba(0, 242, 254, 0.25), rgba(79, 172, 254, 0.35));
  border-color: rgba(0, 242, 254, 0.6);
  color: #00f2fe;
  box-shadow: 
    0 6px 20px rgba(0, 242, 254, 0.25),
    inset 0 1px 1px rgba(255, 255, 255, 0.3);
}

/* Toast Notification Liquid */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 12px;
  pointer-events: none;
}

.toast {
  background: rgba(14, 23, 48, 0.85);
  border: 1.5px solid rgba(0, 242, 254, 0.6);
  border-radius: var(--radius-md);
  padding: 16px 24px;
  color: var(--text-heading);
  box-shadow: 
    0 20px 40px rgba(0, 0, 0, 0.7),
    0 0 30px rgba(0, 242, 254, 0.35),
    inset 0 1.5px 2px rgba(255, 255, 255, 0.4);
  backdrop-filter: var(--liquid-blur);
  pointer-events: auto;
  animation: slideInRight 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 320px;
  max-width: 420px;
}

@keyframes slideInRight {
  from { transform: translateX(110%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

.toast-content h4 {
  font-size: 1rem;
  font-weight: 800;
  color: #00f2fe;
  margin-bottom: 2px;
}

.toast-content p {
  font-size: 0.85rem;
  color: var(--text-body);
}

/* Footer */
.footer {
  margin-top: 40px;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-dim);
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* Empty State */
.empty-state {
  padding: 48px 20px;
  text-align: center;
  color: var(--text-muted);
}
.empty-icon {
  font-size: 44px;
  margin-bottom: 12px;
  opacity: 0.8;
}
