:root {
  --bg: #03080d;
  --bg-2: #05101a;
  --surface: rgba(7, 20, 33, 0.55);
  --surface-2: rgba(12, 32, 51, 0.65);
  --surface-3: rgba(20, 48, 77, 0.8);
  --border: rgba(133, 194, 226, 0.15);
  --border-strong: rgba(68, 177, 236, 0.35);
  --text: #f0f7fc;
  --muted: #8ea7ba;
  --primary: #00f3ff;
  --primary-2: #0088cc;
  --accent: #f5c453;
  --accent-2: #ab791a;
  --good: #3df27b;
  --warning: #f7bb3e;
  --danger: #ff5252;
  --info: #00f3ff;
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
  --glow: 0 0 24px rgba(0, 243, 255, 0.12);
  --radius: 18px;
  --sidebar-width: 280px;
  --topbar-height: 76px;
  
  /* Fallback Semantic Colors for Cards (100% theme compatibility) */
  --blue: #3b82f6;
  --green: #10b981;
  --amber: #f59e0b;
  --red: #ef4444;
  --purple: #8b5cf6;
  --cyan: #06b6d4;
  --pink: #ff75b5;
}

/* 1. Zen Minimalist (Warm Light) */
body.theme-zen_minimalist {
  --bg: #f4f6f0; --bg-2: #e8ebe1; --surface: rgba(255, 255, 255, 0.92); --surface-2: rgba(240, 243, 235, 0.95);
  --surface-3: rgba(225, 230, 218, 0.95); --border: rgba(16, 185, 129, 0.2); --border-strong: rgba(16, 185, 129, 0.45);
  --text: #1f2937; --muted: #4b5563; --primary: #059669; --primary-2: #047857; --accent: #10b981; --accent-2: #065f46;
  --shadow: 0 10px 30px rgba(31, 41, 55, 0.06); --glow: 0 0 20px rgba(16, 185, 129, 0.12);
}

/* 2. Executive Graphite (Matte Dark) */
body.theme-executive_graphite {
  --bg: #0b0f19; --bg-2: #111827; --surface: rgba(31, 41, 55, 0.65); --surface-2: rgba(55, 65, 81, 0.7);
  --surface-3: rgba(75, 85, 99, 0.85); --border: rgba(245, 196, 83, 0.2); --border-strong: rgba(245, 196, 83, 0.45);
  --text: #f9fafb; --muted: #9ca3af; --primary: #f5c453; --primary-2: #d97706; --accent: #fbbf24; --accent-2: #b45309;
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.6); --glow: 0 0 24px rgba(245, 196, 83, 0.18);
}

/* 3. Apple Frosted (Light Aurora) */
body.theme-apple_frosted {
  --bg: #f0f4f8; --bg-2: #f8fafc; --surface: rgba(255, 255, 255, 0.88); --surface-2: rgba(241, 245, 249, 0.92);
  --surface-3: rgba(226, 232, 240, 0.95); --border: rgba(37, 99, 235, 0.15); --border-strong: rgba(37, 99, 235, 0.35);
  --text: #0f172a; --muted: #475569; --primary: #2563eb; --primary-2: #1d4ed8; --accent: #3b82f6; --accent-2: #1e40af;
  --shadow: 0 15px 35px rgba(15, 23, 42, 0.08); --glow: 0 0 20px rgba(37, 99, 235, 0.12);
}

/* 4. Royal Obsidian (Dark Violet) */
body.theme-royal_obsidian {
  --bg: #030712; --bg-2: #0b0f19; --surface: rgba(17, 24, 39, 0.7); --surface-2: rgba(31, 41, 55, 0.8);
  --surface-3: rgba(55, 65, 81, 0.9); --border: rgba(99, 102, 241, 0.25); --border-strong: rgba(99, 102, 241, 0.5);
  --text: #f9fafb; --muted: #a5b4fc; --primary: #6366f1; --primary-2: #4f46e5; --accent: #818cf8; --accent-2: #3730a3;
  --shadow: 0 25px 60px rgba(0, 0, 0, 0.75); --glow: 0 0 25px rgba(99, 102, 241, 0.22);
}

/* 5. Nordic Breeze (Light Slate) */
body.theme-nordic_breeze {
  --bg: #f8fafc; --bg-2: #f1f5f9; --surface: rgba(255, 255, 255, 0.9); --surface-2: rgba(241, 245, 249, 0.95);
  --surface-3: rgba(226, 232, 240, 0.95); --border: rgba(2, 132, 199, 0.15); --border-strong: rgba(2, 132, 199, 0.4);
  --text: #1e293b; --muted: #475569; --primary: #0284c7; --primary-2: #0369a1; --accent: #38bdf8; --accent-2: #075985;
  --shadow: 0 10px 30px rgba(30, 41, 59, 0.06); --glow: 0 0 20px rgba(2, 132, 199, 0.12);
}

/* 6. Classic Ivory (Warm Light) */
body.theme-classic_ivory {
  --bg: #fdfbf7; --bg-2: #f7f2ea; --surface: rgba(255, 255, 255, 0.92); --surface-2: rgba(245, 239, 230, 0.95);
  --surface-3: rgba(235, 227, 215, 0.95); --border: rgba(180, 83, 9, 0.15); --border-strong: rgba(180, 83, 9, 0.4);
  --text: #292524; --muted: #57534e; --primary: #b45309; --primary-2: #92400e; --accent: #d97706; --accent-2: #78350f;
  --shadow: 0 10px 30px rgba(41, 37, 36, 0.05); --glow: 0 0 20px rgba(180, 83, 9, 0.12);
}

/* 7. Oceanic Depth (Dark Teal) */
body.theme-oceanic_depth {
  --bg: #02141d; --bg-2: #042433; --surface: rgba(6, 44, 61, 0.65); --surface-2: rgba(10, 60, 82, 0.75);
  --surface-3: rgba(16, 80, 108, 0.85); --border: rgba(6, 182, 212, 0.22); --border-strong: rgba(6, 182, 212, 0.45);
  --text: #ecfeff; --muted: #67e8f9; --primary: #06b6d4; --primary-2: #0891b2; --accent: #22d3ee; --accent-2: #155e75;
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.65); --glow: 0 0 24px rgba(6, 182, 212, 0.2);
}

/* 8. Lavender Mist (Soft Light) */
body.theme-lavender_mist {
  --bg: #f5f3ff; --bg-2: #ede9fe; --surface: rgba(255, 255, 255, 0.9); --surface-2: rgba(237, 233, 254, 0.95);
  --surface-3: rgba(221, 214, 254, 0.95); --border: rgba(124, 58, 237, 0.15); --border-strong: rgba(124, 58, 237, 0.4);
  --text: #1e1b4b; --muted: #4c1d95; --primary: #7c3aed; --primary-2: #6d28d9; --accent: #8b5cf6; --accent-2: #5b21b6;
  --shadow: 0 10px 30px rgba(30, 27, 75, 0.05); --glow: 0 0 20px rgba(124, 58, 237, 0.12);
}

/* 9. Midnight Forest (Dark Emerald) */
body.theme-midnight_forest {
  --bg: #02140d; --bg-2: #052417; --surface: rgba(6, 46, 30, 0.65); --surface-2: rgba(11, 66, 44, 0.75);
  --surface-3: rgba(18, 92, 62, 0.85); --border: rgba(52, 211, 153, 0.2); --border-strong: rgba(52, 211, 153, 0.45);
  --text: #ecfdf5; --muted: #6ee7b7; --primary: #34d399; --primary-2: #059669; --accent: #6ee7b7; --accent-2: #047857;
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.65); --glow: 0 0 24px rgba(52, 211, 153, 0.18);
}

/* 10. Terracotta Warmth (Light Clay) */
body.theme-terracotta_warmth {
  --bg: #faf7f5; --bg-2: #f0ebe6; --surface: rgba(255, 255, 255, 0.92); --surface-2: rgba(240, 235, 230, 0.95);
  --surface-3: rgba(225, 218, 210, 0.95); --border: rgba(194, 65, 12, 0.15); --border-strong: rgba(194, 65, 12, 0.4);
  --text: #27272a; --muted: #52525b; --primary: #c2410c; --primary-2: #9a3412; --accent: #ea580c; --accent-2: #7c2d12;
  --shadow: 0 10px 30px rgba(39, 39, 42, 0.05); --glow: 0 0 20px rgba(194, 65, 12, 0.12);
}

/* 11. Midnight Cobalt (Pitch Black) */
body.theme-midnight_cobalt {
  --bg: #000000; --bg-2: #0a0a0a; --surface: rgba(18, 18, 18, 0.8); --surface-2: rgba(30, 30, 30, 0.85);
  --surface-3: rgba(45, 45, 45, 0.9); --border: rgba(37, 99, 235, 0.3); --border-strong: rgba(37, 99, 235, 0.6);
  --text: #ffffff; --muted: #93c5fd; --primary: #2563eb; --primary-2: #1d4ed8; --accent: #3b82f6; --accent-2: #1e40af;
  --shadow: 0 25px 60px rgba(0, 0, 0, 0.9); --glow: 0 0 25px rgba(37, 99, 235, 0.3);
}

/* 12. Dark Blue (Aqua Deep Legacy) */
body.theme-dark-blue {
  --bg: #03080d; --bg-2: #05101a; --surface: rgba(7, 20, 33, 0.55); --surface-2: rgba(12, 32, 51, 0.65);
  --surface-3: rgba(20, 48, 77, 0.8); --border: rgba(133, 194, 226, 0.15); --border-strong: rgba(68, 177, 236, 0.35);
  --text: #f0f7fc; --muted: #8ea7ba; --primary: #00f3ff; --primary-2: #0088cc; --accent: #f5c453; --accent-2: #ab791a;
  --glow: 0 0 24px rgba(0, 243, 255, 0.12);
}

/* 13. Dark Gold (Aurum Sleek Legacy) */
body.theme-dark-gold {
  --bg: #050814; --bg-2: #0a0e26; --surface: rgba(13, 20, 48, 0.35); --surface-2: rgba(18, 27, 61, 0.5);
  --surface-3: rgba(24, 35, 77, 0.75); --border: rgba(245, 196, 83, 0.15); --border-strong: rgba(245, 196, 83, 0.4);
  --text: #fff3c4; --muted: #d4af37; --primary: #f5c453; --primary-2: #ab791a; --accent: #fff3c4; --accent-2: #ab791a;
  --glow: 0 0 24px rgba(245, 196, 83, 0.15);
}


* { box-sizing: border-box; }
html { min-height: 100%; scroll-behavior: smooth; }
body {
  margin: 0; min-height: 100vh; color: var(--text); background:
    radial-gradient(circle at 10% 10%, color-mix(in srgb, var(--primary) 15%, transparent), transparent 35%),
    radial-gradient(circle at 90% 90%, color-mix(in srgb, var(--accent) 10%, transparent), transparent 35%),
    linear-gradient(150deg, var(--bg-2), var(--bg));
  font: 14px/1.5 Inter, ui-sans-serif, system-ui, -apple-system, sans-serif;
  overflow-x: hidden;
}
body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; opacity: 0.12; z-index: -1;
  background-image: linear-gradient(rgba(133, 194, 226, 0.08) 1px, transparent 1px), linear-gradient(90deg, rgba(133, 194, 226, 0.08) 1px, transparent 1px);
  background-size: 36px 36px; mask-image: linear-gradient(to bottom, black, transparent 80%);
}

a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button, .button { cursor: pointer; }
img { max-width: 100%; }
svg.icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.0; stroke-linecap: round; stroke-linejoin: round; }

.app-shell { min-height: 100vh; display: grid; grid-template-columns: var(--sidebar-width) minmax(0, 1fr); }

.sidebar {
  position: fixed; inset: 0 auto 0 0; width: var(--sidebar-width); z-index: 50; overflow-y: auto;
  background: var(--sidebar-gradient, rgba(5, 12, 20, 0.45));
  border-right: 1px solid var(--border); box-shadow: 10px 0 40px rgba(0, 0, 0, 0.35); backdrop-filter: blur(25px);
}
.brand { padding: 22px 24px; display: flex; gap: 14px; align-items: center; border-bottom: 1px solid var(--border); position: relative; overflow: hidden; perspective: 1000px; }
.brand::after { content: ""; position: absolute; width: 100px; height: 1.5px; bottom: 0; left: -100px; background: linear-gradient(90deg, transparent, var(--primary), transparent); animation: brandSweep 4s linear infinite; }
@keyframes brandSweep { to { left: 100%; } }
.brand-logo { width: 50px; height: 50px; filter: drop-shadow(0 0 12px color-mix(in srgb, var(--primary) 40%, transparent)); animation: logoAnim 9s ease-in-out infinite; transform-style: preserve-3d; }
@keyframes logoAnim {
  0% { transform: translateY(0) rotate(0deg); }
  20% { transform: translateY(-4px) rotate(1deg); }
  40% { transform: translateY(0) rotate(0deg); }
  60% { transform: translateY(-4px) rotate(1deg); }
  75% { transform: translateY(0) rotateY(180deg); }
  85% { transform: translateY(0) rotateY(360deg); }
  100% { transform: translateY(0) rotate(0deg); }
}
.brand-title { font-size: 21px; font-weight: 900; letter-spacing: 1px; color: var(--primary); line-height: 1.05; font-family: 'Orbitron', sans-serif !important; animation: electricFlow 4s ease-in-out infinite; }
.brand-subtitle { display: block; color: var(--muted); font-size: 10px; letter-spacing: 0.5px; margin-top: 4px; line-height: 1.2; }
.brand-powered { display: block; color: var(--accent); font-size: 9px; margin-top: 4px; font-weight: 700; letter-spacing: 0.5px; }

.nav { padding: 16px 14px; }
.nav-section { color: var(--muted); text-transform: uppercase; letter-spacing: 1.5px; font-size: 9px; font-weight: 800; padding: 18px 12px 6px; opacity: 0.7; }
.nav-item { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 10px 14px; border-radius: 12px; color: var(--muted); margin: 3px 0; transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1); position: relative; }
.nav-item:hover { color: var(--text); background: color-mix(in srgb, var(--primary) 8%, var(--surface-soft)); transform: translateX(4px); }
.nav-item.active {
  color: #fff !important;
  background: linear-gradient(135deg, var(--primary), var(--primary-2)) !important;
  border-left: 4px solid var(--accent, var(--primary)) !important;
  box-shadow: var(--glow) !important;
}
.theme-light-clean .nav-item.active { color: var(--text); }
.nav-item .nav-badge { margin-left: auto; min-width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; background: color-mix(in srgb, var(--danger) 20%, transparent); color: var(--danger); font-size: 10px; font-weight: 800; }

.main-shell { grid-column: 2; min-width: 0; }
.topbar {
  height: var(--topbar-height); position: sticky; top: 0; z-index: 40; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 0 24px; background: var(--surface-soft, rgba(5, 12, 20, 0.35)); border-bottom: 1px solid var(--border); backdrop-filter: blur(25px); box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
}
.topbar-left { display: flex; align-items: center; gap: 12px; min-width: 0; }
.menu-toggle { display: none; width: 42px; height: 42px; border: 1px solid var(--border); background: var(--surface); color: var(--text); border-radius: 12px; place-items: center; transition: 0.2s; }
.menu-toggle:hover { background: var(--surface-2); border-color: var(--border-strong); }
.topbar-page { font-weight: 850; letter-spacing: 0.5px; font-size: 16px; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar-right { display: flex; align-items: center; gap: 10px; }

.live-box, .user-box, .logout-btn { border: 1px solid var(--border); background: var(--surface); border-radius: 12px; min-height: 44px; box-shadow: inset 0 1px 0 rgba(255,255,255,0.03); backdrop-filter: blur(10px); }
.live-box { display: flex; align-items: center; gap: 10px; padding: 7px 14px; }
.live-box .big { font-size: 13px; font-weight: 850; line-height: 1.1; }
.live-box .small { font-size: 8px; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; }
.clock-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--good); box-shadow: 0 0 12px var(--good); animation: pulse 1.6s infinite; }
@keyframes pulse { 50% { transform: scale(1.4); opacity: 0.5; } }
.user-box { display: flex; align-items: center; gap: 12px; padding: 5px 14px 5px 6px; }
.user-box.username-only { padding: 5px 16px; justify-content: center; }
.user-box.username-only .user-name { font-size: 13px; font-weight: 700; color: var(--text); letter-spacing: 0.5px; text-transform: uppercase; }
.avatar { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at 35% 25%, #fff, var(--primary) 25%, var(--bg) 80%); border: 2.5px solid var(--accent); box-shadow: 0 0 14px color-mix(in srgb, var(--accent) 30%, transparent); color: #07111b; font-weight: 900; font-size: 11px; }
.user-meta { min-width: 90px; text-align: right; }
.user-role { font-size: 10px; color: var(--text); font-weight: 700; }
.user-name { font-size: 9px; color: var(--muted); }
@media (max-width: 850px) {
  .user-box.username-only { display: none; }
}
.logout-btn { width: 44px; color: var(--text); display: grid; place-items: center; transition: all 0.25s ease; }
.logout-btn:hover { color: var(--danger); border-color: var(--danger); transform: translateY(-2px); box-shadow: 0 0 15px rgba(255,82,82,0.15); }

.content { padding: 24px; max-width: 1900px; margin: 0 auto; }
.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: 22px; }
.page-heading h1 { font-size: 26px; margin: 0; letter-spacing: 0.2px; font-weight: 900; }
.page-heading p { color: var(--muted); margin: 4px 0 0; }
.heading-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.panel, .stat-card, .pond-card, .form-card {
  border: 1px solid var(--border); background: var(--surface);
  border-radius: var(--radius); box-shadow: var(--shadow); backdrop-filter: blur(16px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.panel { padding: 22px; }
.panel-header { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-bottom: 18px; }
.panel-title { font-size: 16px; font-weight: 900; letter-spacing: 0.5px; }
.panel-subtitle { color: var(--muted); font-size: 11px; margin-top: 2px; }

.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 20px; }
.stat-card { min-height: 120px; padding: 18px; position: relative; overflow: hidden; display: flex; flex-direction: column; }
.stat-card:hover { transform: translateY(-5px); border-color: var(--border-strong); box-shadow: var(--shadow), var(--glow); }
.stat-card::after { content: ""; position: absolute; right: -28px; bottom: -44px; width: 100px; height: 100px; border-radius: 50%; background: color-mix(in srgb, var(--card-color, var(--primary)) 12%, transparent); filter: blur(6px); }
.stat-label { color: var(--muted); font-size: 11px; font-weight: 700; position: relative; z-index: 1; }
.stat-value { font-size: 24px; font-weight: 900; margin-top: 10px; color: var(--card-color, var(--primary)); position: relative; z-index: 1; white-space: nowrap; text-shadow: 0 0 10px color-mix(in srgb, var(--card-color, var(--primary)) 20%, transparent); }
.trend-badge { display: inline-flex; align-items: center; font-size: 9px; font-weight: 800; padding: 2px 8px; border-radius: 999px; width: fit-content; margin-top: 6px; position: relative; z-index: 1; border: 1px solid rgba(255,255,255,0.08); background: rgba(255,255,255,0.03); }
.trend-badge.positive { color: var(--good); background: rgba(61, 242, 123, 0.08); border-color: rgba(61, 242, 123, 0.2); }
.trend-badge.negative { color: var(--danger); background: rgba(255, 82, 82, 0.08); border-color: rgba(255, 82, 82, 0.2); }
.stat-note { font-size: 9.5px; color: var(--muted); margin-top: 6px; position: relative; z-index: 1; opacity: 0.85; }
.stat-icon { position: absolute; right: 16px; top: 16px; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; color: var(--card-color, var(--primary)); background: color-mix(in srgb, var(--card-color, var(--primary)) 13%, transparent); border: 1px solid color-mix(in srgb, var(--card-color, var(--primary)) 20%, transparent); }
.stat-blue { --card-color: #00f3ff; } .stat-green { --card-color: var(--good); } .stat-gold { --card-color: var(--accent); } .stat-red { --card-color: var(--danger); } .stat-orange { --card-color: var(--warning); }

.pond-grid { display: grid; grid-template-columns: repeat(5, minmax(190px, 1fr)); gap: 14px; }
.pond-card { overflow: hidden; position: relative; }
.pond-card:hover { transform: translateY(-6px); border-color: var(--border-strong); box-shadow: var(--shadow), var(--glow); }
.pond-card-link { display: block; }
.pond-top { padding: 16px 16px 10px; position: relative; z-index: 2; }
.pond-name { font-size: 13px; font-weight: 900; text-transform: uppercase; letter-spacing: 0.5px; }
.pond-fish { font-size: 10px; color: var(--muted); margin-top: 2px; }
.pond-visual { height: 100px; position: relative; overflow: hidden; background:
  radial-gradient(ellipse at center 70%, color-mix(in srgb, var(--primary) 22%, transparent), transparent 45%),
  linear-gradient(180deg, rgba(7, 14, 20, 0.05), rgba(0, 0, 0, 0.65));
}
.pond-ring { position: absolute; width: 160px; height: 64px; border-radius: 50%; left: 50%; top: 16px; transform: translateX(-50%) rotateX(56deg); border: 8px solid #4e5e66; background: radial-gradient(ellipse at center, #0b5876 0%, #073045 52%, #07151e 74%); box-shadow: 0 15px 18px rgba(0,0,0,0.65), inset 0 0 24px rgba(78,201,245,0.28); }
.pond-ring::before, .pond-ring::after { content: ""; position: absolute; border-radius: 50%; border: 1px solid rgba(87,213,255,0.4); animation: ripple 3s ease-out infinite; inset: 9px 22px; }
.pond-ring::after { animation-delay: 1.35s; }
@keyframes ripple { 0% { transform: scale(0.4); opacity: 0.8; } 100% { transform: scale(1.25); opacity: 0; } }
/* High-Fidelity 3D-effect CSS Fish (100% Real Fish Visual) */
.fish-dot {
  position: absolute;
  left: 50%;
  top: 46px;
  width: 22px;
  height: 9px;
  background: var(--accent);
  border-radius: 80% 30% 30% 80%;
  filter: drop-shadow(0 0 6px color-mix(in srgb, var(--accent) 55%, transparent));
  animation: swim 6s ease-in-out infinite;
}

/* Pectoral Fin */
.fish-dot::before {
  content: "";
  position: absolute;
  left: 6px;
  top: -2px;
  width: 5px;
  height: 3px;
  background: color-mix(in srgb, var(--accent) 80%, black);
  border-radius: 50% 50% 0 0;
  transform: rotate(-25deg);
  animation: finFlap 2.5s ease-in-out infinite;
}

/* Forked Tail Fin */
.fish-dot::after {
  content: "";
  position: absolute;
  right: -9px;
  top: -2px;
  width: 10px;
  height: 13px;
  background: var(--accent);
  clip-path: polygon(0 40%, 100% 0, 70% 50%, 100% 100%, 0 60%);
  -webkit-clip-path: polygon(0 40%, 100% 0, 70% 50%, 100% 100%, 0 60%);
  transform-origin: left center;
  animation: tailWiggle 0.8s ease-in-out infinite;
}

@keyframes finFlap {
  0%, 100% { transform: rotate(-25deg) scaleY(1); }
  50% { transform: rotate(-45deg) scaleY(0.7); }
}

@keyframes tailWiggle {
  0%, 100% { transform: rotate(15deg); }
  50% { transform: rotate(-15deg); }
}

@keyframes swim {
  0%   { transform: translateX(-53px) scaleX(1)  rotate(3deg);  top: 46px; }
  28%  { transform: translateX(10px)  scaleX(1)  rotate(-3deg); top: 44px; }
  40%  { transform: translateX(30px)  scaleX(1)  rotate(-8deg); top: 30px; }
  50%  { transform: translateX(30px)  scaleX(-1) rotate(8deg);  top: 46px; }
  78%  { transform: translateX(-40px) scaleX(-1) rotate(-3deg); top: 44px; }
  92%  { transform: translateX(-53px) scaleX(-1) rotate(3deg);  top: 46px; }
  100% { transform: translateX(-53px) scaleX(1)  rotate(3deg);  top: 46px; }
}
.pond-metrics { display: grid; grid-template-columns: repeat(2, 1fr); padding: 12px 16px 16px; border-top: 1px solid var(--border); gap: 10px; }
.metric-label { color: var(--muted); font-size: 9.5px; font-weight: 700; }
.metric-value { font-size: 13px; font-weight: 850; margin-top: 2px; }

.good { color: var(--good); } .warning { color: var(--warning); } .danger { color: var(--danger); } .info { color: var(--info); } .muted { color: var(--muted); }
.status-pill { display: inline-flex; align-items: center; gap: 6px; border: 1px solid currentColor; border-radius: 999px; padding: 4px 10px; font-size: 9.5px; font-weight: 800; background: color-mix(in srgb, currentColor 8%, transparent); }
.status-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; box-shadow: 0 0 8px currentColor; }

.dashboard-lower { display: grid; grid-template-columns: 1.65fr 1fr; gap: 14px; margin-top: 14px; }
.chart-box { height: 250px; position: relative; }
.chart-box canvas { width: 100%; height: 100%; display: block; }
.alert-list { display: flex; flex-direction: column; gap: 8px; max-height: 270px; overflow-y: auto; padding-right: 4px; }
.alert-row { display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px; border: 1px solid color-mix(in srgb, currentColor 20%, var(--border)); border-radius: 10px; background: color-mix(in srgb, currentColor 6%, transparent); font-size: 11px; transition: 0.2s; }
.alert-row:hover { background: color-mix(in srgb, currentColor 10%, transparent); transform: translateY(-1px); }
.alert-row .alert-main { flex: 1; line-height: 1.4; }
.alert-time { color: var(--muted); font-size: 8.5px; white-space: nowrap; }

.donut-wrap { display: flex; align-items: center; gap: 18px; min-height: 200px; }
.donut { width: 130px; height: 130px; border-radius: 50%; background: conic-gradient(var(--primary) 0 var(--p1, 45%), #f78b53 var(--p1, 45%) var(--p2, 65%), #57d77d var(--p2, 65%) var(--p3, 78%), #8f6bdd var(--p3, 78%) 100%); position: relative; flex: 0 0 auto; box-shadow: 0 0 24px rgba(0, 0, 0, 0.25); }
.donut::after { content: ""; position: absolute; inset: 26px; border-radius: 50%; background: var(--surface-3); border: 1px solid var(--border); backdrop-filter: blur(5px); }
.legend { display: grid; gap: 8px; font-size: 11px; width: 100%; }
.legend-row { display: flex; align-items: center; gap: 8px; }
.legend-color { width: 9px; height: 9px; border-radius: 3px; background: var(--legend-color); }
.legend-value { margin-left: auto; font-weight: 800; }

.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 10px 16px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface-2); color: var(--text); font-weight: 750; transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1); box-shadow: inset 0 1px 0 rgba(255,255,255,0.03); }
.button:hover { transform: translateY(-2px); border-color: var(--border-strong); box-shadow: var(--glow); }
.button-primary { background: linear-gradient(135deg, var(--primary), var(--primary-2)); border-color: color-mix(in srgb, var(--primary) 70%, white); color: #02080d; font-weight: 850; text-shadow: 0 0 8px rgba(255,255,255,0.25); }
.button-primary:hover { color: #fff; box-shadow: 0 0 20px color-mix(in srgb, var(--primary) 35%, transparent); }
.button-gold { background: linear-gradient(135deg, var(--accent), var(--accent-2)); border-color: color-mix(in srgb, var(--accent) 70%, white); color: #0f172a; font-weight: 850; }
.button-danger { background: color-mix(in srgb, var(--danger) 15%, var(--surface)); color: var(--danger); border-color: color-mix(in srgb, var(--danger) 40%, transparent); }
.button-danger:hover { background: var(--danger); color: #fff; box-shadow: 0 0 20px color-mix(in srgb, var(--danger) 35%, transparent); }
.button-small { min-height: 34px; padding: 6px 12px; font-size: 10.5px; border-radius: 8px; }

.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.form-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.form-grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.form-grid.five { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.form-group { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.form-group.full { grid-column: 1 / -1; }
label { font-size: 11px; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; }
input, select, textarea {
  width: 100%; color: var(--text); background: var(--surface-soft, rgba(5, 10, 18, 0.45)); border: 1px solid var(--border); border-radius: 10px; padding: 11px 13px; outline: none; transition: all 0.2s;
}
input:focus, select:focus, textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 15%, transparent), var(--glow); }
textarea { min-height: 96px; resize: vertical; }
select option { background: var(--bg-2); color: var(--text); }
.form-help { font-size: 9.5px; color: var(--muted); opacity: 0.8; }
.inline-check { display: flex; align-items: center; gap: 9px; color: var(--text); }
.inline-check input { width: auto; height: 16px; width: 16px; margin: 0; cursor: pointer; }
.form-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; flex-wrap: wrap; }
.form-section { padding: 18px 0 6px; border-top: 1px solid var(--border); margin-top: 18px; }
.form-section:first-child { border-top: 0; margin-top: 0; padding-top: 0; }
.form-section-title { font-size: 13px; font-weight: 900; margin-bottom: 14px; color: var(--accent); }

.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); overflow-x: auto; margin-bottom: 18px; }
.tab-button { border: 0; color: var(--muted); background: transparent; padding: 12px 16px; position: relative; white-space: nowrap; font-weight: 700; transition: color 0.2s; }
.tab-button:hover { color: var(--text); }
.tab-button.active { color: var(--primary); }
.tab-button.active::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: -1px; height: 2.5px; background: var(--primary); box-shadow: 0 0 10px var(--primary); border-radius: 99px; }
.tab-panel { display: none; animation: fadeIn 0.25s ease-out; }
.tab-panel.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.detail-grid { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 14px; }
.detail-sidebar { display: flex; flex-direction: column; gap: 14px; }
.info-list { display: grid; gap: 10px; }
.info-row { display: flex; justify-content: space-between; gap: 16px; font-size: 11px; border-bottom: 1px dashed color-mix(in srgb, var(--border) 50%, transparent); padding-bottom: 8px; }
.info-row span:first-child { color: var(--muted); }
.info-row span:last-child { font-weight: 800; text-align: right; }
.summary-mini-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.summary-mini { padding: 12px; border: 1px solid var(--border); border-radius: 12px; background: rgba(255, 255, 255, 0.02); backdrop-filter: blur(5px); }
.summary-mini .k { font-size: 9px; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; }
.summary-mini .v { margin-top: 6px; font-size: 14px; font-weight: 900; }
.recommendation { border-left: 4px solid var(--primary); background: color-mix(in srgb, var(--primary) 6%, transparent); padding: 14px; border-radius: 12px; margin-bottom: 12px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.01); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); border-right: 1px solid var(--border); }
.recommendation.warning { border-left-color: var(--warning); background: color-mix(in srgb, var(--warning) 6%, transparent); }
.recommendation.danger { border-left-color: var(--danger); background: color-mix(in srgb, var(--danger) 6%, transparent); }
.recommendation-title { font-size: 12px; font-weight: 900; margin-bottom: 6px; text-transform: uppercase; letter-spacing: 0.5px; }
.recommendation p { margin: 0; color: var(--muted); font-size: 10.5px; line-height: 1.4; }

.table-wrap { overflow: auto; border: 1px solid var(--border); border-radius: 12px; background: var(--surface-soft, rgba(5, 10, 18, 0.25)); backdrop-filter: blur(10px); }
table { border-collapse: collapse; width: 100%; min-width: 720px; font-size: 11.5px; font-family: 'Plus Jakarta Sans', sans-serif; }
th, td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--border); vertical-align: top; }
th { position: sticky; top: 0; z-index: 2; background: var(--surface-3); color: var(--muted); text-transform: uppercase; letter-spacing: 0.8px; font-size: 9px; font-weight: 800; border-bottom: 1.5px solid var(--border-strong); }
tr:hover td { background: rgba(255, 255, 255, 0.02); }
tr:last-child td { border-bottom: 0; }

.empty-state { padding: 56px 24px; text-align: center; border: 1.5px dashed var(--border-strong); border-radius: 16px; background: var(--surface); }
.empty-icon { width: 78px; height: 78px; margin: 0 auto 16px; display: grid; place-items: center; border-radius: 50%; background: color-mix(in srgb, var(--primary) 12%, transparent); color: var(--primary); box-shadow: var(--glow); }
.empty-state h3 { margin: 0 0 6px; font-size: 16px; font-weight: 900; }
.empty-state p { color: var(--muted); max-width: 520px; margin: 0 auto 18px; line-height: 1.4; }

.flash { display: flex; gap: 12px; align-items: center; padding: 14px 16px; border: 1px solid currentColor; border-radius: 12px; margin-bottom: 18px; background: color-mix(in srgb, currentColor 8%, var(--surface)); animation: flashIn 0.35s cubic-bezier(0.18, 0.89, 0.32, 1.28); }
@keyframes flashIn { from { opacity: 0; transform: translateY(-12px); } }
.flash-success { color: var(--good); } .flash-warning { color: var(--warning); } .flash-danger { color: var(--danger); }
.flash-close { margin-left: auto; border: 0; background: transparent; color: inherit; font-size: 20px; font-weight: 700; line-height: 1; cursor: pointer; }

.modal { position: fixed; inset: 0; z-index: 100; display: none; align-items: center; justify-content: center; padding: 20px; background: rgba(0, 0, 0, 0.8); backdrop-filter: blur(12px); }
.modal.open { display: flex; }
.modal-card { width: min(780px, 100%); max-height: 92vh; overflow-y: auto; border: 1px solid var(--border-strong); background: var(--bg-2); border-radius: 20px; box-shadow: 0 40px 120px rgba(0,0,0,0.8); padding: 24px; animation: modalIn 0.25s cubic-bezier(0.18, 0.89, 0.32, 1.2); }
@keyframes modalIn { from { opacity: 0; transform: translateY(20px) scale(0.96); } }
.modal-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.modal-title { font-size: 18px; font-weight: 900; }
.modal-close { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--border); color: var(--text); background: var(--surface); display: grid; place-items: center; font-size: 18px; font-weight: 700; transition: all 0.2s; }
.modal-close:hover { background: var(--surface-2); border-color: var(--danger); color: var(--danger); }

.progress { height: 10px; border-radius: 99px; background: rgba(5, 10, 18, 0.5); overflow: hidden; border: 1px solid var(--border); }
.progress-bar { height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--primary), var(--good)); box-shadow: 0 0 14px color-mix(in srgb, var(--good) 35%, transparent); }

.theme-grid { display: grid; grid-template-columns: repeat(5, minmax(160px, 1fr)); gap: 14px; }
.theme-card { border: 1px solid var(--border); border-radius: 16px; overflow: hidden; background: var(--surface); transition: all 0.25s; cursor: pointer; }
.theme-card:hover, .theme-card.selected { transform: translateY(-5px); border-color: var(--primary); box-shadow: var(--shadow), var(--glow); }
.theme-preview { height: 145px; padding: 12px; display: grid; grid-template-columns: 32px 1fr; gap: 8px; background: var(--preview-bg); color: var(--preview-text); }
.theme-preview-side { border-radius: 6px; background: var(--preview-side); }
.theme-preview-main { display: grid; grid-template-rows: 18px 1fr; gap: 8px; }
.theme-preview-top { border-radius: 4px; background: var(--preview-panel); }
.theme-preview-content { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.theme-preview-box { border-radius: 6px; background: var(--preview-panel); border: 1px solid var(--preview-accent); }
.theme-info { padding: 14px; }
.theme-name { font-weight: 900; font-size: 13px; }
.theme-desc { color: var(--muted); font-size: 9.5px; min-height: 32px; margin-top: 4px; line-height: 1.35; }

/* Dynamic custom action points / list items */
.insight-action-list { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.insight-action-item { display: flex; align-items: flex-start; gap: 8px; font-size: 11px; line-height: 1.4; color: var(--text); }
.insight-action-item::before { content: "•"; color: var(--primary); font-size: 14px; line-height: 1; margin-top: 2px; }

/* Login Page Upgrade */
.login-page { min-height: 100vh; overflow: hidden; background: #02070d; display: grid; place-items: center; position: relative; color: #edf8ff; }
.login-page::before { content: ""; position: absolute; inset: 0; background:
  radial-gradient(circle at 15% 15%, rgba(0, 243, 255, 0.18), transparent 38%),
  radial-gradient(circle at 85% 85%, rgba(245, 196, 83, 0.12), transparent 35%),
  linear-gradient(180deg, #05101a, #02060b); z-index: 1; }
#waterCanvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.65; z-index: 1; }
.login-waterline { position: absolute; left: -5%; right: -5%; bottom: -40px; height: 35vh; background: linear-gradient(180deg, rgba(0, 243, 255, 0.08), rgba(2, 7, 13, 0.95)); border-top: 1.5px solid rgba(0, 243, 255, 0.35); transform: skewY(-1.5deg); box-shadow: 0 -15px 80px rgba(0, 243, 255, 0.12); z-index: 1; }
.login-container { width: min(1080px, 94vw); display: grid; grid-template-columns: 1.05fr 0.95fr; align-items: center; gap: 60px; position: relative; z-index: 2; perspective: 1200px; }
.login-brand { text-align: center; transform-style: preserve-3d; animation: loginFloat 6s ease-in-out infinite; }
.login-logo { width: min(290px, 50vw); filter: drop-shadow(0 20px 40px rgba(0,0,0,0.65)) drop-shadow(0 0 28px color-mix(in srgb, var(--primary) 20%, transparent)); }
.login-name { font-size: clamp(34px, 4.5vw, 62px); line-height: 0.95; font-weight: 1000; letter-spacing: 1.2px; margin-top: -10px; color: var(--primary); text-shadow: 0 4px 0 rgba(0,0,0,0.5), 0 0 20px color-mix(in srgb, var(--primary) 25%, transparent); }
.login-tagline { font-size: 13.5px; letter-spacing: 0.8px; color: #a5b4fc; margin-top: 14px; opacity: 0.9; }
.login-powered { color: var(--accent); margin-top: 8px; font-size: 10.5px; letter-spacing: 1.5px; text-transform: uppercase; font-weight: 800; }

.login-card { background: rgba(5, 14, 25, 0.55); border: 1.5px solid var(--border-strong); border-radius: 20px; padding: 32px; box-shadow: 0 35px 90px rgba(0,0,0,0.7), inset 0 1px 0 rgba(255,255,255,0.04); backdrop-filter: blur(24px); transform: rotateY(-2.5deg); transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
.login-card:hover { transform: rotateY(0) translateY(-4px); border-color: var(--primary); box-shadow: 0 35px 90px rgba(0,0,0,0.7), var(--glow); }
.login-card h1 { margin: 0; font-size: 23px; text-align: center; font-weight: 900; }
.login-card .subtitle { text-align: center; color: var(--muted); font-size: 10.5px; margin: 6px 0 22px; }
.login-input { position: relative; margin-bottom: 14px; }
.login-input input { height: 50px; padding-left: 44px; background: rgba(2, 6, 12, 0.55); border-color: rgba(133, 194, 226, 0.2); color: #fff; border-radius: 12px; transition: 0.25s; }
.login-input input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 15%, transparent), var(--glow); }
.login-input svg { position: absolute; left: 14px; top: 15px; color: var(--muted); transition: color 0.2s; }
.login-input input:focus + svg { color: var(--primary); }
.password-toggle { position: absolute; right: 10px; top: 7px; height: 36px; width: 36px; border: 0; background: transparent; color: var(--muted); display: grid; place-items: center; border-radius: 50%; cursor: pointer; transition: 0.2s; }
.password-toggle:hover { color: var(--text); background: rgba(255,255,255,0.05); }
.login-submit { width: 100%; height: 50px; border: 1.5px solid var(--primary); border-radius: 12px; background: linear-gradient(180deg, var(--primary), var(--primary-2)); color: #02070d; font-weight: 900; letter-spacing: 0.5px; box-shadow: 0 10px 24px color-mix(in srgb, var(--primary) 20%, transparent), inset 0 1px 0 rgba(255,255,255,0.4); transition: all 0.25s ease; cursor: pointer; }
.login-submit:hover { transform: translateY(-2px); filter: brightness(1.1); box-shadow: 0 12px 28px color-mix(in srgb, var(--primary) 35%, transparent); }
.login-default { margin-top: 20px; border-top: 1px solid var(--border); padding-top: 16px; text-align: center; color: var(--muted); font-size: 9.5px; line-height: 1.4; }
.login-default strong { color: var(--text); }
.login-foot { position: absolute; bottom: 18px; z-index: 2; color: var(--muted); font-size: 9.5px; opacity: 0.8; }
.bubble { position: absolute; bottom: -40px; width: 8px; height: 8px; border: 1px solid rgba(0, 243, 255, 0.45); border-radius: 50%; animation: bubbleUp linear infinite; z-index: 1; }
@keyframes bubbleUp { to { transform: translateY(-115vh) translateX(45px); opacity: 0; } }

.error-page { min-height: 60vh; display: grid; place-items: center; text-align: center; }
.error-code { font-size: 108px; font-weight: 1000; color: var(--primary); text-shadow: 0 0 45px color-mix(in srgb, var(--primary) 25%, transparent); }

/* DESIGN SWITCHER & LOGIN PREVIEWS */
.design-switcher { position: fixed; top: 20px; right: 20px; z-index: 1000; display: flex; flex-direction: column; align-items: flex-end; }
.switcher-toggle { width: 44px; height: 44px; border-radius: 50%; background: rgba(5, 14, 25, 0.9); border: 1.5px solid var(--border-strong); color: var(--primary); display: grid; place-items: center; cursor: pointer; box-shadow: var(--shadow), 0 0 15px rgba(0, 243, 255, 0.25); transition: all 0.3s cubic-bezier(0.18, 0.89, 0.32, 1.15); }
.switcher-toggle:hover { transform: rotate(45deg) scale(1.1); color: var(--accent); border-color: var(--accent); }
.switcher-panel { display: none; width: 280px; background: rgba(3, 8, 15, 0.95); border: 1.5px solid var(--border-strong); border-radius: 14px; padding: 18px; margin-top: 8px; box-shadow: var(--shadow); backdrop-filter: blur(12px); animation: slideIn 0.25s cubic-bezier(0.18, 0.89, 0.32, 1.1); }
.design-switcher.open .switcher-panel { display: block; }
@keyframes slideIn { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }
.switcher-panel h3 { margin: 0 0 14px; font-size: 12px; text-transform: uppercase; letter-spacing: 0.8px; color: var(--accent); font-weight: 900; border-bottom: 1px solid var(--border); padding-bottom: 8px; }
.switcher-options { display: flex; flex-direction: column; gap: 10px; }
.switch-opt { display: flex; align-items: center; gap: 12px; background: rgba(255, 255, 255, 0.02); border: 1px solid var(--border); border-radius: 10px; padding: 11px; color: var(--muted); text-align: left; width: 100%; font-size: 11.5px; font-weight: 700; transition: 0.2s; }
.switch-opt:hover { background: rgba(255, 255, 255, 0.06); color: var(--text); border-color: var(--border-strong); }
.switch-opt.active { background: color-mix(in srgb, var(--primary) 12%, transparent); border-color: var(--primary); color: #fff; box-shadow: var(--glow); }
.opt-color { width: 8px; height: 8px; border-radius: 50%; }
.switcher-info { margin-top: 14px; font-size: 9.5px; color: var(--muted); line-height: 1.4; opacity: 0.85; }

/* DESIGN OVERRIDES FOR LOGIN PAGE ONLY */
.login-page.design-1 {
  --primary: #00f3ff;
  --primary-2: #0054a6;
  --accent: #ffd56b;
  background: radial-gradient(circle at 10% 10%, rgba(0, 243, 255, 0.18), transparent 45%),
              radial-gradient(circle at 90% 90%, rgba(0, 84, 166, 0.2), transparent 45%),
              #030910;
}
.login-page.design-1 .login-name { color: #ffffff; text-shadow: 0 0 18px rgba(0, 243, 255, 0.4); }
.login-page.design-1 .login-logo { filter: drop-shadow(0 0 30px rgba(0, 243, 255, 0.25)); }
.login-page.design-1 .login-card { background: rgba(13, 19, 36, 0.45); border-color: rgba(0, 243, 255, 0.35); box-shadow: 0 35px 90px rgba(0,0,0,0.85), 0 0 30px rgba(0, 243, 255, 0.15); }
.login-page.design-1 .login-card:hover { border-color: #00f3ff; box-shadow: 0 35px 90px rgba(0,0,0,0.85), 0 0 40px rgba(0, 243, 255, 0.25); }
.login-page.design-1 .login-submit { border-color: #00f3ff; border-radius: 25px; background: linear-gradient(180deg, #00f3ff, #0088cc); color: #030910; box-shadow: 0 10px 25px rgba(0, 243, 255, 0.3); }
.login-page.design-1 .login-input input { border-color: rgba(0, 243, 255, 0.2); }
.login-page.design-1 .login-input input:focus { border-color: #00f3ff; }

.login-page.design-2 {
  --primary: #f5c453;
  --primary-2: #ab791a;
  --accent: #fff3c4;
  background: radial-gradient(circle at 20% 25%, rgba(245, 196, 83, 0.09), transparent 45%),
              radial-gradient(circle at 80% 75%, rgba(13, 22, 60, 0.5), transparent 55%),
              linear-gradient(135deg, #06091b, #0c112d, #02040d);
}
.login-page.design-2 .login-name { color: #f5c453; text-shadow: 0 0 18px rgba(245, 196, 83, 0.35); }
.login-page.design-2 .login-logo { border-radius: 12px; border: 1px solid rgba(245, 196, 83, 0.35); filter: drop-shadow(0 0 25px rgba(245, 196, 83, 0.25)); object-fit: cover; }
.login-page.design-2 .login-card { background: rgba(10, 16, 40, 0.35); border: 1px solid rgba(245, 196, 83, 0.22); backdrop-filter: blur(28px) saturate(180%); box-shadow: 0 40px 100px rgba(0, 0, 0, 0.8), 0 0 40px rgba(245, 196, 83, 0.08), inset 0 1px 1px rgba(255, 255, 255, 0.08); }
.login-page.design-2 .login-card:hover { border-color: #f5c453; box-shadow: 0 40px 100px rgba(0, 0, 0, 0.8), 0 0 45px rgba(245, 196, 83, 0.18); }
.login-page.design-2 .login-submit { border-color: #f5c453; border-radius: 8px; background: linear-gradient(180deg, #ffd56b, #ab791a); color: #050505; box-shadow: 0 10px 25px rgba(245, 196, 83, 0.25); text-transform: uppercase; font-family: 'Outfit', sans-serif; font-weight: 800; letter-spacing: 1px; }
.login-page.design-2 .login-input input { border-color: rgba(245, 196, 83, 0.18); border-radius: 6px; background: rgba(8, 12, 30, 0.5); color: #edf8ff; }
.login-page.design-2 .login-input input:focus { border-color: #f5c453; box-shadow: 0 0 10px rgba(245, 196, 83, 0.2); }

/* NEW HELPER & SIGNUP ROWS STYLES */
.login-helper-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 18px;
  margin-bottom: 24px;
}
.remember-me-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 10px;
  font-weight: 700;
  color: var(--muted);
  user-select: none;
}
.remember-me-label input[type="checkbox"] {
  accent-color: var(--primary);
  width: 14px;
  height: 14px;
  cursor: pointer;
}
.forgot-password-link {
  font-size: 11px;
  text-decoration: none;
  transition: all 0.2s;
}
.forgot-password-link:hover {
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}
.login-signup-row {
  margin-top: 20px;
  text-align: center;
  font-size: 12px;
  color: var(--muted);
}
.login-signup-row a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.2s;
}
.login-signup-row a:hover {
  text-decoration: underline;
}

.final-summary { padding: 18px; border: 1px solid color-mix(in srgb, var(--success) 40%, var(--border)); border-radius: 14px; background: linear-gradient(145deg, color-mix(in srgb, var(--success) 8%, var(--surface-2)), var(--surface-2)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04); }
.final-summary.cancelled { border-color: color-mix(in srgb, var(--warning) 40%, var(--border)); background: linear-gradient(145deg, color-mix(in srgb, var(--warning) 8%, var(--surface-2)), var(--surface-2)); }

@media (max-width: 1500px) {
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .pond-grid { grid-template-columns: repeat(3, 1fr); }
  .theme-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 1100px) {
  :root { --sidebar-width: 250px; }
  .dashboard-lower { grid-template-columns: 1fr 1fr; }
  .dashboard-lower > :last-child { grid-column: 1 / -1; }
  .detail-grid { grid-template-columns: 1fr; }
  .detail-sidebar { display: grid; grid-template-columns: 1fr 1fr; }
  .login-container { grid-template-columns: 1fr; gap: 20px; max-width: 560px; }
  .login-brand { display: none; }
  .login-card { transform: none; }
}
@media (max-width: 850px) {
  .app-shell { grid-template-columns: 1fr; }
  .sidebar { transform: translateX(-101%); transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1); width: min(290px, 88vw); }
  body.sidebar-open .sidebar { transform: translateX(0); }
  body.sidebar-open::after { content: ""; position: fixed; inset: 0; z-index: 45; background: rgba(0, 0, 0, 0.7); backdrop-filter: blur(5px); }
  .main-shell { grid-column: 1; }
  .menu-toggle { display: grid; }
  .topbar { padding: 0 16px; }
  .live-date { display: none; }
  .user-meta { display: none; }
  .content { padding: 18px 16px; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .pond-grid { grid-template-columns: repeat(2, 1fr); }
  .dashboard-lower { grid-template-columns: 1fr; }
  .dashboard-lower > :last-child { grid-column: auto; }
  .form-grid, .form-grid.three, .form-grid.four, .form-grid.five { grid-template-columns: 1fr; }
  .summary-mini-grid { grid-template-columns: repeat(2, 1fr); }
  .theme-grid { grid-template-columns: repeat(2, 1fr); }
  .detail-sidebar { grid-template-columns: 1fr; }
}
@media (max-width: 540px) {
  .topbar-page { display: none; }
  .live-box { padding: 6px 10px; }
  .live-box .small { display: none; }
  .stat-grid, .pond-grid, .theme-grid { grid-template-columns: 1fr; }
  .stat-card { min-height: 104px; }
  .page-heading { align-items: flex-start; flex-direction: column; }
  .heading-actions { width: 100%; }
  .heading-actions .button { flex: 1; }
  .summary-mini-grid { grid-template-columns: 1fr; }
  .modal { padding: 10px; }
  .modal-card { padding: 16px; }
  .login-card { padding: 24px 20px; }
}

/* GOLD FISH BACKGROUND SILHOUETTES FOR PREMIUM AAA FEEL */
.fish-silhouette {
  position: absolute;
  background: url("/static/img/favicon.svg") no-repeat center/contain;
  filter: sepia(1) saturate(20) hue-rotate(-12deg) brightness(0.95) opacity(0.04);
  pointer-events: none;
  z-index: 1;
  animation: silhouetteFloat 12s ease-in-out infinite alternate;
}
.fish-silhouette.s1 { top: 15%; left: 8%; width: 220px; height: 220px; transform: rotate(-15deg); }
.fish-silhouette.s2 { bottom: 22%; right: 12%; width: 280px; height: 280px; transform: rotate(25deg); animation-delay: -3s; }
.fish-silhouette.s3 { top: 60%; left: 4%; width: 160px; height: 160px; transform: rotate(-45deg); animation-delay: -6s; }

@keyframes silhouetteFloat {
  0% { transform: translateY(0) rotate(-15deg) scale(1); }
  100% { transform: translateY(-15px) rotate(-10deg) scale(1.05); }
}

/* ==========================================================================
   PREMIUM THEMES FROM PEMBUKUAN V211
   ========================================================================== */

/* 1. ZEN MINIMALIST (Warm Light · Sage Green Accent) */
body.theme-zen_minimalist {
  color-scheme: light;
  --text: #1F2937;
  --muted: #6B7280;
  --border: rgba(16, 185, 129, 0.08);
  --border-strong: rgba(16, 185, 129, 0.22);
  --bg: #FAF9F6;
  --bg-2: #F2F4F3;
  --surface: rgba(255, 255, 255, 0.85);
  --surface-2: rgba(240, 244, 241, 0.85);
  --surface-3: #FFFFFF;

  --primary: #10B981;
  --primary-2: #059669;
  --accent: #D97706;
  --accent-2: #047857;
  --good: #10B981;
  --warning: #D97706;
  --danger: #EF4444;
  --info: #34D399;

  --shadow: 0 16px 48px rgba(0, 0, 0, 0.05);
  --glow: 0 8px 32px rgba(16, 185, 129, 0.08);
  --radius: 16px;

  --body-bg-gradient: radial-gradient(circle at 10% 0%, rgba(16, 185, 129, 0.04), transparent 30%),
                      linear-gradient(135deg, #FAF9F6 0%, #F2F4F3 100%);
  --grid-overlay-color: rgba(16, 185, 129, 0.015);
  --sidebar-gradient: rgba(255, 255, 255, 0.95);
}

/* 2. EXECUTIVE GRAPHITE (Matte Dark · Amber Accent) */
body.theme-executive_graphite {
  color-scheme: dark;
  --text: #F3F4F6;
  --muted: #9CA3AF;
  --border: rgba(245, 158, 11, 0.12);
  --border-strong: rgba(245, 158, 11, 0.28);
  --bg: #121214;
  --bg-2: #1A1A1E;
  --surface: rgba(24, 24, 27, 0.8);
  --surface-2: rgba(39, 39, 42, 0.7);
  --surface-3: #1C1C1E;

  --primary: #F59E0B;
  --primary-2: #D97706;
  --accent: #FBBF24;
  --accent-2: #92400E;
  --good: #10B981;
  --warning: #F59E0B;
  --danger: #EF4444;
  --info: #FBBF24;

  --shadow: 0 16px 60px rgba(0, 0, 0, 0.45);
  --glow: 0 8px 32px rgba(245, 158, 11, 0.14);
  --radius: 14px;

  --body-bg-gradient: radial-gradient(circle at 8% 0%, rgba(245, 158, 11, 0.08), transparent 30%),
                      linear-gradient(135deg, #121214 0%, #1A1A1E 100%);
  --grid-overlay-color: rgba(245, 158, 11, 0.015);
  --sidebar-gradient: linear-gradient(180deg, #0C0C0E 0%, #151518 100%);
}

/* 3. APPLE FROSTED (Glassmorphism Light · Royal Blue Accent) */
body.theme-apple_frosted {
  color-scheme: light;
  --text: #1D1D1F;
  --muted: #6E6E73;
  --border: rgba(0, 0, 0, 0.08);
  --border-strong: rgba(0, 113, 227, 0.2);
  --bg: #F5F5F7;
  --bg-2: #EAEAEC;
  --surface: rgba(255, 255, 255, 0.72);
  --surface-2: rgba(245, 245, 247, 0.85);
  --surface-3: #FFFFFF;

  --primary: #0071E3;
  --primary-2: #5856D6;
  --accent: #FF9500;
  --accent-2: #AF52DE;
  --good: #34C759;
  --warning: #FF9500;
  --danger: #FF3B30;
  --info: #0077ED;

  --shadow: 0 16px 48px rgba(0, 0, 0, 0.07);
  --glow: 0 8px 32px rgba(0, 113, 227, 0.1);
  --radius: 18px;

  --body-bg-gradient: radial-gradient(circle at 10% 0%, rgba(0, 113, 227, 0.04), transparent 30%),
                      linear-gradient(135deg, #F5F5F7 0%, #EAEAEC 100%);
  --grid-overlay-color: rgba(0, 113, 227, 0.015);
  --sidebar-gradient: rgba(255, 255, 255, 0.85);
}

/* 4. ROYAL OBSIDIAN (Premium Dark · Indigo/Violet Accent) */
body.theme-royal_obsidian {
  color-scheme: dark;
  --text: #EEF2FF;
  --muted: #A5B4FC;
  --border: rgba(165, 180, 252, 0.12);
  --border-strong: rgba(165, 180, 252, 0.28);
  --bg: #090B1A;
  --bg-2: #141730;
  --surface: rgba(21, 25, 54, 0.8);
  --surface-2: rgba(30, 41, 88, 0.7);
  --surface-3: #151936;

  --primary: #818CF8;
  --primary-2: #6366F1;
  --accent: #FBBF24;
  --accent-2: #8B5CF6;
  --good: #34D399;
  --warning: #FBBF24;
  --danger: #F87171;
  --info: #A78BFA;

  --shadow: 0 18px 60px rgba(0, 0, 0, 0.5);
  --glow: 0 8px 32px rgba(99, 102, 241, 0.2);
  --radius: 16px;

  --body-bg-gradient: radial-gradient(circle at 10% 0%, rgba(99, 102, 241, 0.14), transparent 30%),
                      linear-gradient(135deg, #090B1A 0%, #141730 100%);
  --grid-overlay-color: rgba(99, 102, 241, 0.02);
  --sidebar-gradient: linear-gradient(180deg, #050611 0%, #151936 100%);
}

/* 5. NORDIC BREEZE (Comfort Light · Slate Blue Accent) */
body.theme-nordic_breeze {
  color-scheme: light;
  --text: #0F172A;
  --muted: #475569;
  --border: rgba(148, 163, 184, 0.14);
  --border-strong: rgba(14, 165, 233, 0.22);
  --bg: #EEF4FF;
  --bg-2: #F8FAFC;
  --surface: rgba(255, 255, 255, 0.82);
  --surface-2: rgba(241, 245, 249, 0.85);
  --surface-3: #FFFFFF;

  --primary: #0ea5e9;
  --primary-2: #0284c7;
  --accent: #f59e0b;
  --accent-2: #0369a1;
  --good: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --info: #38bdf8;

  --shadow: 0 16px 44px rgba(15, 23, 42, 0.06);
  --glow: 0 8px 30px rgba(14, 165, 233, 0.1);
  --radius: 16px;

  --body-bg-gradient: radial-gradient(circle at 10% 0%, rgba(56, 189, 248, 0.12), transparent 30%),
                      linear-gradient(135deg, #F8FAFC 0%, #EEF4FF 100%);
  --grid-overlay-color: rgba(14, 165, 233, 0.015);
  --sidebar-gradient: linear-gradient(180deg, #FFFFFF 0%, #F8FAFC 100%);
}

/* 6. CLASSIC IVORY (Warm Sepia Light · Bronze Accent) */
body.theme-classic_ivory {
  color-scheme: light;
  --text: #3E2723;
  --muted: #8D6E63;
  --border: rgba(217, 119, 6, 0.1);
  --border-strong: rgba(217, 119, 6, 0.22);
  --bg: #FDFBF7;
  --bg-2: #F4ECE1;
  --surface: rgba(255, 255, 255, 0.85);
  --surface-2: rgba(247, 241, 232, 0.85);
  --surface-3: #FFFFFF;

  --primary: #D97706;
  --primary-2: #B45309;
  --accent: #FBBF24;
  --accent-2: #78350F;
  --good: #10B981;
  --warning: #D97706;
  --danger: #DC2626;
  --info: #FBBF24;

  --shadow: 0 16px 44px rgba(62, 39, 35, 0.05);
  --glow: 0 8px 30px rgba(217, 119, 6, 0.08);
  --radius: 16px;

  --body-bg-gradient: radial-gradient(circle at 10% 0%, rgba(217, 119, 6, 0.06), transparent 30%),
                      linear-gradient(135deg, #FDFBF7 0%, #F4ECE1 100%);
  --grid-overlay-color: rgba(217, 119, 6, 0.012);
  --sidebar-gradient: rgba(255, 255, 255, 0.95);
}

/* 7. OCEANIC DEPTH (Deep Navy Dark · Aqua Accent) */
body.theme-oceanic_depth {
  color-scheme: dark;
  --text: #E0F7FA;
  --muted: #80DEEA;
  --border: rgba(6, 182, 212, 0.12);
  --border-strong: rgba(6, 182, 212, 0.3);
  --bg: #03141A;
  --bg-2: #05222B;
  --surface: rgba(4, 30, 39, 0.8);
  --surface-2: rgba(8, 48, 62, 0.7);
  --surface-3: #052631;

  --primary: #06B6D4;
  --primary-2: #0891B2;
  --accent: #FBBF24;
  --accent-2: #0E7490;
  --good: #10B981;
  --warning: #FBBF24;
  --danger: #F87171;
  --info: #22D3EE;

  --shadow: 0 18px 60px rgba(0, 0, 0, 0.5);
  --glow: 0 8px 32px rgba(6, 182, 212, 0.18);
  --radius: 16px;

  --body-bg-gradient: radial-gradient(circle at 10% 0%, rgba(6, 182, 212, 0.14), transparent 30%),
                      linear-gradient(135deg, #03141A 0%, #05222B 100%);
  --grid-overlay-color: rgba(6, 182, 212, 0.02);
  --sidebar-gradient: linear-gradient(180deg, #020F14 0%, #052631 100%);
}

/* 8. LAVENDER MIST (Pastel Light · Lilac Accent) */
body.theme-lavender_mist {
  color-scheme: light;
  --text: #2E2A38;
  --muted: #7E738F;
  --border: rgba(167, 139, 250, 0.12);
  --border-strong: rgba(167, 139, 250, 0.24);
  --bg: #F8F7FC;
  --bg-2: #EFEBF7;
  --surface: rgba(255, 255, 255, 0.85);
  --surface-2: rgba(240, 237, 247, 0.85);
  --surface-3: #FFFFFF;

  --primary: #A78BFA;
  --primary-2: #8B5CF6;
  --accent: #FBBF24;
  --accent-2: #7C3AED;
  --good: #10B981;
  --warning: #FBBF24;
  --danger: #EF4444;
  --info: #C4B5FD;

  --shadow: 0 16px 44px rgba(46, 42, 56, 0.05);
  --glow: 0 8px 30px rgba(167, 139, 250, 0.1);
  --radius: 16px;

  --body-bg-gradient: radial-gradient(circle at 10% 0%, rgba(167, 139, 250, 0.06), transparent 30%),
                      linear-gradient(135deg, #F8F7FC 0%, #EFEBF7 100%);
  --grid-overlay-color: rgba(167, 139, 250, 0.012);
  --sidebar-gradient: rgba(255, 255, 255, 0.95);
}

/* 9. MIDNIGHT FOREST (Velvet Green Dark · Mint Accent) */
body.theme-midnight_forest {
  color-scheme: dark;
  --text: #ECFDF5;
  --muted: #6EE7B7;
  --border: rgba(52, 211, 153, 0.12);
  --border-strong: rgba(52, 211, 153, 0.28);
  --bg: #020F0C;
  --bg-2: #04221A;
  --surface: rgba(4, 31, 25, 0.8);
  --surface-2: rgba(6, 46, 36, 0.7);
  --surface-3: #04241D;

  --primary: #34D399;
  --primary-2: #10B981;
  --accent: #FBBF24;
  --accent-2: #059669;
  --good: #10B981;
  --warning: #FBBF24;
  --danger: #F87171;
  --info: #6EE7B7;

  --shadow: 0 18px 60px rgba(0, 0, 0, 0.5);
  --glow: 0 8px 32px rgba(16, 185, 129, 0.18);
  --radius: 16px;

  --body-bg-gradient: radial-gradient(circle at 10% 0%, rgba(16, 185, 129, 0.14), transparent 30%),
                      linear-gradient(135deg, #020F0C 0%, #04221A 100%);
  --grid-overlay-color: rgba(16, 185, 129, 0.02);
  --sidebar-gradient: linear-gradient(180deg, #010A08 0%, #04241D 100%);
}

/* 10. TERRACOTTA WARMTH (Earthy Light · Burnt Orange Accent) */
body.theme-terracotta_warmth {
  color-scheme: light;
  --text: #37251E;
  --muted: #856E65;
  --border: rgba(234, 88, 12, 0.1);
  --border-strong: rgba(234, 88, 12, 0.22);
  --bg: #FDF9F6;
  --bg-2: #F4E8E1;
  --surface: rgba(255, 255, 255, 0.85);
  --surface-2: rgba(247, 237, 232, 0.85);
  --surface-3: #FFFFFF;

  --primary: #EA580C;
  --primary-2: #C2410C;
  --accent: #F59E0B;
  --accent-2: #9A3412;
  --good: #10B981;
  --warning: #F59E0B;
  --danger: #EF4444;
  --info: #F97316;

  --shadow: 0 16px 44px rgba(55, 37, 30, 0.05);
  --glow: 0 8px 30px rgba(234, 88, 12, 0.08);
  --radius: 16px;

  --body-bg-gradient: radial-gradient(circle at 10% 0%, rgba(234, 88, 12, 0.06), transparent 30%),
                      linear-gradient(135deg, #FDF9F6 0%, #F4E8E1 100%);
  --grid-overlay-color: rgba(234, 88, 12, 0.012);
  --sidebar-gradient: rgba(255, 255, 255, 0.95);
}

/* 11. MIDNIGHT COBALT (Pure Black Dark · Cobalt Blue Accent) */
body.theme-midnight_cobalt {
  color-scheme: dark;
  --text: #F0F4FF;
  --muted: #8FA6E8;
  --border: rgba(29, 78, 216, 0.15);
  --border-strong: rgba(29, 78, 216, 0.35);
  --bg: #05070B;
  --bg-2: #0A0E1A;
  --surface: rgba(10, 12, 18, 0.85);
  --surface-2: rgba(16, 20, 32, 0.8);
  --surface-3: #0A0C14;

  --primary: #2563EB;
  --primary-2: #1D4ED8;
  --accent: #FBBF24;
  --accent-2: #1E40AF;
  --good: #10B981;
  --warning: #FBBF24;
  --danger: #F87171;
  --info: #38BDF8;

  --shadow: 0 20px 60px rgba(0, 0, 0, 0.65);
  --glow: 0 8px 32px rgba(37, 99, 235, 0.22);
  --radius: 16px;

  --body-bg-gradient: radial-gradient(circle at 10% 0%, rgba(37, 99, 235, 0.16), transparent 30%),
                      linear-gradient(135deg, #05070B 0%, #0A0E1A 100%);
  --grid-overlay-color: rgba(37, 99, 235, 0.03);
  --sidebar-gradient: linear-gradient(180deg, #020306 0%, #080A10 100%);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: color-mix(in srgb, var(--primary) 25%, transparent) !important;
  border-radius: 999px !important;
}
::-webkit-scrollbar-thumb:hover {
  background: color-mix(in srgb, var(--primary) 45%, transparent) !important;
}

/* Premium Typography Mappings (100% Pembukuan Style) */
body, p, td, li, span, label, input, select, textarea {
  font-family: 'Plus Jakarta Sans', 'Segoe UI', system-ui, -apple-system, sans-serif;
}

.brand-subtitle, .brand-powered {
  font-family: 'Outfit', sans-serif !important;
  letter-spacing: 0.05em !important;
}
h1, h2, h3, h4, h5, h6, .top-title, .topbar-page, .panel-title, .card-title, .panel-title-row-v107 h3, .heading-actions .button {
  font-family: 'Outfit', 'Plus Jakarta Sans', sans-serif !important;
  letter-spacing: -0.01em !important;
}
.big, .number, .amount, .price, .stat-value, .pond-stat .value {
  font-family: 'Outfit', sans-serif !important;
  font-weight: 800 !important;
}
#gmt-time, .live-clock, #liveClock, .log-box, pre, code {
  font-family: 'JetBrains Mono', monospace !important;
}
button, .button, .nav-item span {
  font-family: 'Outfit', sans-serif !important;
  font-weight: 700 !important;
}

/* Metric and Metric Card Layout (100% Pembukuan Style) */
.metric-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
}

.metric, .metric-card {
  padding: 14px 18px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface-soft);
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: all 0.2s ease;
  min-height: 80px;
  justify-content: center;
}

.metric:hover, .metric-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-strong);
  background: var(--surface-solid);
}

.metric span, .metric-card span {
  font-size: 9.5px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  font-weight: 700;
}

.metric b, .metric-card b {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 16px;
  color: var(--text);
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
}

.metric b *, .metric-card b * {
  font-size: inherit !important;
  color: inherit !important;
  font-weight: inherit !important;
  font-family: inherit !important;
  text-transform: none !important;
  letter-spacing: inherit !important;
}


.metric small, .metric-card small {
  font-size: 11px;
  color: var(--muted);
}

/* Two-column hero layout (100% Pembukuan Style) */
.dash-hero {
  display: grid;
  grid-template-columns: 2.10fr 1fr;
  gap: 14px;
  margin-bottom: 24px;
}
@media (max-width: 1100px) {
  .dash-hero {
    grid-template-columns: 1fr;
  }
}

/* Electric Neon Flicker Animation (100% Premium Style) */
.topbar-brand-neon {
  font-family: 'Orbitron', sans-serif;
  font-weight: 900;
  font-size: 12px;
  letter-spacing: 1.5px;
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid color-mix(in srgb, var(--primary) 30%, transparent);
  background: color-mix(in srgb, var(--primary) 4%, transparent);
  color: var(--primary);
  text-shadow: 0 0 4px var(--primary), 0 0 10px var(--primary);
  animation: electricFlicker 6s linear infinite;
  margin-right: 8px;
  user-select: none;
}

@keyframes electricFlicker {
  0%, 18%, 22%, 25%, 53%, 57%, 100% {
    text-shadow: 0 0 4px var(--primary), 0 0 10px var(--primary), 0 0 20px color-mix(in srgb, var(--primary) 50%, transparent);
    opacity: 1;
    border-color: color-mix(in srgb, var(--primary) 30%, transparent);
    box-shadow: inset 0 0 8px color-mix(in srgb, var(--primary) 10%, transparent), 0 0 8px color-mix(in srgb, var(--primary) 10%, transparent);
  }
  19%, 24%, 54% {
    text-shadow: none;
    opacity: 0.6;
    border-color: color-mix(in srgb, var(--primary) 10%, transparent);
    box-shadow: none;
  }
  20%, 21% {
    text-shadow: 0 0 2px var(--primary);
    opacity: 0.3;
    border-color: color-mix(in srgb, var(--primary) 5%, transparent);
    box-shadow: none;
  }
  55%, 56% {
    text-shadow: 0 0 2px var(--primary);
    opacity: 0.25;
    border-color: color-mix(in srgb, var(--primary) 5%, transparent);
    box-shadow: none;
  }
}

/* Collapsible Nav Sections (Accordion Style) */
.nav-section-group {
  margin-top: 6px;
}
.nav-section-title {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: none !important;
  border: none !important;
  outline: none !important;
  color: var(--muted);
  text-transform: none !important;
  letter-spacing: normal !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  padding: 10px 14px !important;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.nav-section-title:hover {
  color: var(--text);
}
.nav-arrow {
  width: 12px;
  height: 12px;
  transition: transform 0.25s ease;
  transform: rotate(-90deg);
}
.nav-section-group.open .nav-arrow {
  transform: rotate(0deg);
}
.nav-sub-items {
  display: none;
  flex-direction: column;
  margin-left: 6px;
  padding-left: 6px;
  border-left: 1px solid var(--border);
  animation: navSlide 0.2s ease-out;
}
.nav-section-group.open .nav-sub-items {
  display: flex;
}
@keyframes navSlide {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Electric Flow Glow Animation (100% Premium Style) */
@keyframes electricFlow {
  0%, 100% {
    text-shadow: 0 0 6px var(--primary), 0 0 12px color-mix(in srgb, var(--primary) 40%, transparent);
    filter: brightness(1);
  }
  50% {
    text-shadow: 0 0 16px var(--primary), 0 0 32px var(--primary-2), 0 0 40px color-mix(in srgb, var(--primary) 60%, transparent);
    filter: brightness(1.25);
  }
}
