/* ==========================================================================
   MY FREIGHT LINK — MASTER ENTERPRISE PORTAL STYLESHEET
   Reference 1:1 Design • 20 Themes • Pokémon Studio • Mind Tree Schedule
   ========================================================================== */

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

/* ==========================================================================
   1. 20 AESTHETIC THEMES (10 LIGHT + 10 DARK)
   ========================================================================== */

/* ==========================================================================
   1. AESTHETIC GRADIENT THEMES SYSTEM (10 Dreamy Light + 10 Luxury Dark)
   ========================================================================== */

/* --- 10 DREAMY & VIBRANT LIGHT GRADIENT THEMES --- */

/* 🔷 1. MY FREIGHT LINK (Default: Sky Blue, Lavender & Coral Peach Gradient) */
:root,
[data-theme="mfl"],
[data-theme="light"] {
  --font-sans: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --bg-app: linear-gradient(135deg, #e0f2fe 0%, #ede9fe 48%, #fce7f3 100%);
  --bg-card: rgba(255, 255, 255, 0.92);
  --bg-card-subtle: linear-gradient(145deg, rgba(255, 255, 255, 0.85), rgba(240, 246, 255, 0.75));
  --bg-icon-circle: linear-gradient(135deg, #e0f2fe, #ede9fe);
  --color-primary: #0284c7;
  --gradient-primary: linear-gradient(135deg, #0284c7 0%, #2563eb 50%, #8b5cf6 100%);
  --gradient-accent: linear-gradient(135deg, #38bdf8, #ec4899);
  --color-card-solid: linear-gradient(135deg, #0284c7 0%, #2563eb 50%, #8b5cf6 100%);
  --color-card-solid-dark: #0f172a;
  --color-dark-pill: linear-gradient(135deg, #0284c7, #2563eb);
  --color-dark-pill-hover: linear-gradient(135deg, #0369a1, #1d4ed8);
  --color-accent-green: #10b981;
  --color-success: #10b981;
  --color-danger: #ef4444;
  --color-warning: #f59e0b;
  --text-main: #0f172a;
  --text-muted: #475569;
  --text-subtle: #64748b;
  --border-card: rgba(2, 132, 199, 0.12);
  --border-subtle: rgba(14, 165, 233, 0.15);
  --shadow-card: 0 10px 30px rgba(15, 23, 42, 0.06), 0 2px 8px rgba(15, 23, 42, 0.03);
  --shadow-card-hover: 0 16px 36px rgba(14, 165, 233, 0.15);
  --shadow-dock: 0 12px 36px rgba(15, 23, 42, 0.1);
  --radius-card: 22px;
  --radius-card-sm: 16px;
  --radius-pill: 9999px;
  --gauge-track: rgba(226, 232, 240, 0.7);
  --gauge-fill: #0284c7;
  --card-solid-text: #FFFFFF;
}

/* ☀️ 2. SOLAR SUNRISE (Warm Radiant Amber, Sunset Gold & Coral) */
[data-theme="yellow"], [data-theme="solar-yellow"] {
  --bg-app: linear-gradient(135deg, #fef3c7 0%, #ffedd5 50%, #fee2e2 100%);
  --bg-card: rgba(255, 255, 255, 0.92);
  --bg-card-subtle: linear-gradient(145deg, rgba(255, 255, 255, 0.85), rgba(254, 243, 199, 0.7));
  --bg-icon-circle: linear-gradient(135deg, #fef3c7, #fed7aa);
  --color-primary: #d97706;
  --gradient-primary: linear-gradient(135deg, #f59e0b 0%, #ea580c 50%, #ef4444 100%);
  --gradient-accent: linear-gradient(135deg, #fde047, #f97316);
  --color-card-solid: linear-gradient(135deg, #f59e0b 0%, #ea580c 100%);
  --color-card-solid-dark: #78350f;
  --color-dark-pill: linear-gradient(135deg, #d97706, #b45309);
  --color-dark-pill-hover: linear-gradient(135deg, #b45309, #78350f);
  --color-accent-green: #f59e0b;
  --text-main: #451a03;
  --text-muted: #78350f;
  --text-subtle: #92400e;
  --border-card: rgba(245, 158, 11, 0.15);
  --border-subtle: rgba(234, 88, 12, 0.14);
  --shadow-card: 0 10px 30px rgba(217, 119, 6, 0.08);
  --gauge-track: rgba(253, 230, 138, 0.6);
  --gauge-fill: #f59e0b;
  --card-solid-text: #FFFFFF;
}

/* 🌸 3. BLUSH SAKURA (Sakura Petal Rose, Magenta & Sweet Violet) */
[data-theme="pink"], [data-theme="blush-pink"] {
  --bg-app: linear-gradient(135deg, #fce7f3 0%, #ffe4e6 50%, #ede9fe 100%);
  --bg-card: rgba(255, 255, 255, 0.92);
  --bg-card-subtle: linear-gradient(145deg, rgba(255, 255, 255, 0.85), rgba(252, 231, 243, 0.7));
  --bg-icon-circle: linear-gradient(135deg, #fce7f3, #fed7aa);
  --color-primary: #db2777;
  --gradient-primary: linear-gradient(135deg, #ec4899 0%, #f43f5e 50%, #a855f7 100%);
  --gradient-accent: linear-gradient(135deg, #fb7185, #c084fc);
  --color-card-solid: linear-gradient(135deg, #ec4899 0%, #f43f5e 100%);
  --color-card-solid-dark: #831843;
  --color-dark-pill: linear-gradient(135deg, #db2777, #be185d);
  --color-dark-pill-hover: linear-gradient(135deg, #be185d, #9d174d);
  --color-accent-green: #ec4899;
  --text-main: #500724;
  --text-muted: #831843;
  --text-subtle: #9d174d;
  --border-card: rgba(236, 72, 153, 0.14);
  --border-subtle: rgba(244, 63, 94, 0.14);
  --shadow-card: 0 10px 30px rgba(219, 39, 119, 0.08);
  --gauge-track: rgba(251, 207, 232, 0.6);
  --gauge-fill: #ec4899;
  --card-solid-text: #FFFFFF;
}

/* 🌊 4. SKY AZURE (Aquamarine Breeze, Electric Cyan & Azure) */
[data-theme="blue"], [data-theme="sky-blue"] {
  --bg-app: linear-gradient(135deg, #e0f2fe 0%, #ccfbf1 50%, #e0e7ff 100%);
  --bg-card: rgba(255, 255, 255, 0.92);
  --bg-card-subtle: linear-gradient(145deg, rgba(255, 255, 255, 0.85), rgba(224, 242, 254, 0.7));
  --bg-icon-circle: linear-gradient(135deg, #e0f2fe, #ccfbf1);
  --color-primary: #0284c7;
  --gradient-primary: linear-gradient(135deg, #0ea5e9 0%, #06b6d4 50%, #3b82f6 100%);
  --gradient-accent: linear-gradient(135deg, #38bdf8, #22d3ee);
  --color-card-solid: linear-gradient(135deg, #0284c7 0%, #0891b2 100%);
  --color-card-solid-dark: #0c4a6e;
  --color-dark-pill: linear-gradient(135deg, #0284c7, #0369a1);
  --color-dark-pill-hover: linear-gradient(135deg, #0369a1, #075985);
  --color-accent-green: #0ea5e9;
  --text-main: #082f49;
  --text-muted: #0369a1;
  --text-subtle: #0284c7;
  --border-card: rgba(14, 165, 233, 0.14);
  --border-subtle: rgba(6, 182, 212, 0.14);
  --shadow-card: 0 10px 30px rgba(2, 132, 199, 0.08);
  --gauge-track: rgba(186, 230, 253, 0.6);
  --gauge-fill: #0ea5e9;
  --card-solid-text: #FFFFFF;
}

/* 🌿 5. FOREST DEW (Highland Lime, Emerald Dew & Fresh Mint) */
[data-theme="green"], [data-theme="olive-green"] {
  --bg-app: linear-gradient(135deg, #ecfccb 0%, #dcfce7 50%, #fef9c3 100%);
  --bg-card: rgba(255, 255, 255, 0.92);
  --bg-card-subtle: linear-gradient(145deg, rgba(255, 255, 255, 0.85), rgba(236, 252, 203, 0.7));
  --bg-icon-circle: linear-gradient(135deg, #ecfccb, #dcfce7);
  --color-primary: #65a30d;
  --gradient-primary: linear-gradient(135deg, #84cc16 0%, #10b981 50%, #059669 100%);
  --gradient-accent: linear-gradient(135deg, #a3e635, #34d399);
  --color-card-solid: linear-gradient(135deg, #65a30d 0%, #15803d 100%);
  --color-card-solid-dark: #365314;
  --color-dark-pill: linear-gradient(135deg, #65a30d, #4d7c0f);
  --color-dark-pill-hover: linear-gradient(135deg, #4d7c0f, #365314);
  --color-accent-green: #65a30d;
  --text-main: #1a2e05;
  --text-muted: #3f6212;
  --text-subtle: #4d7c0f;
  --border-card: rgba(101, 163, 13, 0.14);
  --border-subtle: rgba(16, 185, 129, 0.14);
  --shadow-card: 0 10px 30px rgba(101, 163, 13, 0.08);
  --gauge-track: rgba(217, 249, 157, 0.6);
  --gauge-fill: #84cc16;
  --card-solid-text: #FFFFFF;
}

/* 🕊️ 6. PLATINUM ICE (Luminous Silver, Titanium Frost & Slate) */
[data-theme="grey"], [data-theme="slate-grey"] {
  --bg-app: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 50%, #f8fafc 100%);
  --bg-card: rgba(255, 255, 255, 0.92);
  --bg-card-subtle: linear-gradient(145deg, rgba(255, 255, 255, 0.85), rgba(241, 245, 249, 0.7));
  --bg-icon-circle: linear-gradient(135deg, #f1f5f9, #e2e8f0);
  --color-primary: #475569;
  --gradient-primary: linear-gradient(135deg, #94a3b8 0%, #64748b 50%, #334155 100%);
  --gradient-accent: linear-gradient(135deg, #cbd5e1, #64748b);
  --color-card-solid: linear-gradient(135deg, #475569 0%, #1e293b 100%);
  --color-card-solid-dark: #1e293b;
  --color-dark-pill: linear-gradient(135deg, #475569, #334155);
  --color-dark-pill-hover: linear-gradient(135deg, #334155, #1e293b);
  --color-accent-green: #64748b;
  --text-main: #0f172a;
  --text-muted: #334155;
  --text-subtle: #475569;
  --border-card: rgba(71, 85, 105, 0.12);
  --border-subtle: rgba(100, 116, 139, 0.14);
  --shadow-card: 0 10px 30px rgba(71, 85, 105, 0.08);
  --gauge-track: rgba(226, 232, 240, 0.7);
  --gauge-fill: #64748b;
  --card-solid-text: #FFFFFF;
}

/* 🔮 7. ROYAL CYBER VIOLET (Dreamy Lavender, Neon Indigo & Electric Violet) */
[data-theme="purple"], [data-theme="royal-purple"] {
  --bg-app: linear-gradient(135deg, #f3e8ff 0%, #fae8ff 50%, #e0e7ff 100%);
  --bg-card: rgba(255, 255, 255, 0.92);
  --bg-card-subtle: linear-gradient(145deg, rgba(255, 255, 255, 0.85), rgba(243, 232, 255, 0.7));
  --bg-icon-circle: linear-gradient(135deg, #f3e8ff, #fae8ff);
  --color-primary: #7c3aed;
  --gradient-primary: linear-gradient(135deg, #a855f7 0%, #6366f1 50%, #3b82f6 100%);
  --gradient-accent: linear-gradient(135deg, #c084fc, #818cf8);
  --color-card-solid: linear-gradient(135deg, #a855f7 0%, #7c3aed 100%);
  --color-card-solid-dark: #4c1d95;
  --color-dark-pill: linear-gradient(135deg, #7c3aed, #6d28d9);
  --color-dark-pill-hover: linear-gradient(135deg, #6d28d9, #4c1d95);
  --color-accent-green: #8b5cf6;
  --text-main: #2e1065;
  --text-muted: #5b21b6;
  --text-subtle: #6d28d9;
  --border-card: rgba(168, 85, 247, 0.14);
  --border-subtle: rgba(139, 92, 246, 0.14);
  --shadow-card: 0 10px 30px rgba(124, 58, 237, 0.08);
  --gauge-track: rgba(233, 213, 255, 0.6);
  --gauge-fill: #a855f7;
  --card-solid-text: #FFFFFF;
}

/* 🍊 8. SUNSET TROPIC (Blazing Tangerine, Coral Flame & Golden Sun) */
[data-theme="orange"], [data-theme="sunset-orange"] {
  --bg-app: linear-gradient(135deg, #ffedd5 0%, #ffe4e6 50%, #fef3c7 100%);
  --bg-card: rgba(255, 255, 255, 0.92);
  --bg-card-subtle: linear-gradient(145deg, rgba(255, 255, 255, 0.85), rgba(255, 237, 213, 0.7));
  --bg-icon-circle: linear-gradient(135deg, #ffedd5, #fed7aa);
  --color-primary: #ea580c;
  --gradient-primary: linear-gradient(135deg, #f97316 0%, #f43f5e 50%, #eab308 100%);
  --gradient-accent: linear-gradient(135deg, #fb923c, #fb7185);
  --color-card-solid: linear-gradient(135deg, #ea580c 0%, #dc2626 100%);
  --color-card-solid-dark: #7c2d12;
  --color-dark-pill: linear-gradient(135deg, #ea580c, #c2410c);
  --color-dark-pill-hover: linear-gradient(135deg, #c2410c, #9a3412);
  --color-accent-green: #f97316;
  --text-main: #431407;
  --text-muted: #9a3412;
  --text-subtle: #c2410c;
  --border-card: rgba(249, 115, 22, 0.14);
  --border-subtle: rgba(244, 63, 94, 0.14);
  --shadow-card: 0 10px 30px rgba(234, 88, 12, 0.08);
  --gauge-track: rgba(254, 215, 170, 0.6);
  --gauge-fill: #f97316;
  --card-solid-text: #FFFFFF;
}

/* 🍃 9. MINT AURORA (Vibrant Spearmint, Marine Turquoise & Cyan) */
[data-theme="mint"], [data-theme="mint-fresh"] {
  --bg-app: linear-gradient(135deg, #d1fae5 0%, #e0f2fe 50%, #ccfbf1 100%);
  --bg-card: rgba(255, 255, 255, 0.92);
  --bg-card-subtle: linear-gradient(145deg, rgba(255, 255, 255, 0.85), rgba(209, 250, 229, 0.7));
  --bg-icon-circle: linear-gradient(135deg, #d1fae5, #ccfbf1);
  --color-primary: #059669;
  --gradient-primary: linear-gradient(135deg, #10b981 0%, #06b6d4 50%, #3b82f6 100%);
  --gradient-accent: linear-gradient(135deg, #34d399, #22d3ee);
  --color-card-solid: linear-gradient(135deg, #10b981 0%, #047857 100%);
  --color-card-solid-dark: #064e3b;
  --color-dark-pill: linear-gradient(135deg, #059669, #047857);
  --color-dark-pill-hover: linear-gradient(135deg, #047857, #065f46);
  --color-accent-green: #10b981;
  --text-main: #064e3b;
  --text-muted: #047857;
  --text-subtle: #059669;
  --border-card: rgba(16, 185, 129, 0.14);
  --border-subtle: rgba(6, 182, 212, 0.14);
  --shadow-card: 0 10px 30px rgba(5, 150, 105, 0.08);
  --gauge-track: rgba(167, 243, 208, 0.6);
  --gauge-fill: #10b981;
  --card-solid-text: #FFFFFF;
}

/* ☕ 10. CARAMEL MACCHIATO (Warm French Vanilla, Golden Caramel & Mocha) */
[data-theme="cream"], [data-theme="cream-latte"] {
  --bg-app: linear-gradient(135deg, #fef3c7 0%, #fae8e0 50%, #f5efe6 100%);
  --bg-card: rgba(255, 255, 255, 0.92);
  --bg-card-subtle: linear-gradient(145deg, rgba(255, 255, 255, 0.85), rgba(254, 243, 199, 0.7));
  --bg-icon-circle: linear-gradient(135deg, #fef3c7, #fae8e0);
  --color-primary: #8c6d58;
  --gradient-primary: linear-gradient(135deg, #d97706 0%, #b45309 50%, #78350f 100%);
  --gradient-accent: linear-gradient(135deg, #f59e0b, #92400e);
  --color-card-solid: linear-gradient(135deg, #92400e 0%, #713f12 100%);
  --color-card-solid-dark: #4a3525;
  --color-dark-pill: linear-gradient(135deg, #8c6d58, #6f523e);
  --color-dark-pill-hover: linear-gradient(135deg, #6f523e, #4a3525);
  --color-accent-green: #8c6d58;
  --text-main: #3d2c1e;
  --text-muted: #6f523e;
  --text-subtle: #8c6d58;
  --border-card: rgba(140, 109, 88, 0.14);
  --border-subtle: rgba(180, 83, 9, 0.14);
  --shadow-card: 0 10px 30px rgba(140, 109, 88, 0.08);
  --gauge-track: rgba(240, 230, 215, 0.7);
  --gauge-fill: #d97706;
  --card-solid-text: #FFFFFF;
}

/* --- 10 LUXURY COSMIC DARK GRADIENT THEMES --- */

/* 🌌 11. COSMIC ONYX (Deep Space Void with Neon Cyber Starlight) */
[data-theme="jet-black"], [data-theme="black"], [data-theme="dark"] {
  --bg-app: linear-gradient(135deg, #090d16 0%, #0c1427 50%, #05070c 100%);
  --bg-card: rgba(15, 23, 42, 0.84);
  --bg-card-subtle: linear-gradient(145deg, rgba(30, 41, 59, 0.7), rgba(15, 23, 42, 0.8));
  --bg-icon-circle: linear-gradient(135deg, rgba(56, 189, 248, 0.18), rgba(99, 102, 241, 0.18));
  --color-primary: #38bdf8;
  --gradient-primary: linear-gradient(135deg, #38bdf8 0%, #818cf8 50%, #c084fc 100%);
  --gradient-accent: linear-gradient(135deg, #0ea5e9, #a855f7);
  --color-card-solid: linear-gradient(135deg, #0284c7 0%, #1d4ed8 100%);
  --color-card-solid-dark: #020617;
  --color-dark-pill: linear-gradient(135deg, #0ea5e9, #2563eb);
  --color-dark-pill-hover: linear-gradient(135deg, #38bdf8, #1d4ed8);
  --color-accent-green: #38bdf8;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-subtle: #cbd5e1;
  --border-card: rgba(56, 189, 248, 0.18);
  --border-subtle: rgba(129, 140, 248, 0.16);
  --shadow-card: 0 12px 36px rgba(0, 0, 0, 0.45);
  --gauge-track: rgba(30, 41, 59, 0.8);
  --gauge-fill: #38bdf8;
  --card-solid-text: #FFFFFF;
}

/* 🌊 12. OCEANIC ABYSS (Abyssal Midnight Blue with Electric Cobalt) */
[data-theme="midnight-navy"], [data-theme="navy"] {
  --bg-app: linear-gradient(135deg, #0b132b 0%, #1c2541 50%, #0a1128 100%);
  --bg-card: rgba(11, 19, 43, 0.86);
  --bg-card-subtle: linear-gradient(145deg, rgba(28, 37, 65, 0.7), rgba(11, 19, 43, 0.8));
  --bg-icon-circle: linear-gradient(135deg, rgba(72, 202, 228, 0.18), rgba(99, 102, 241, 0.18));
  --color-primary: #48cae4;
  --gradient-primary: linear-gradient(135deg, #38bdf8 0%, #6366f1 50%, #0ea5e9 100%);
  --gradient-accent: linear-gradient(135deg, #48cae4, #818cf8);
  --color-card-solid: linear-gradient(135deg, #0284c7 0%, #4f46e5 100%);
  --color-card-solid-dark: #0a1128;
  --color-dark-pill: linear-gradient(135deg, #0284c7, #4f46e5);
  --color-dark-pill-hover: linear-gradient(135deg, #0369a1, #4338ca);
  --color-accent-green: #48cae4;
  --text-main: #f1f5f9;
  --text-muted: #94a3b8;
  --text-subtle: #cbd5e1;
  --border-card: rgba(72, 202, 228, 0.18);
  --border-subtle: rgba(99, 102, 241, 0.16);
  --shadow-card: 0 12px 36px rgba(0, 0, 0, 0.45);
  --gauge-track: rgba(28, 37, 65, 0.8);
  --gauge-fill: #48cae4;
  --card-solid-text: #FFFFFF;
}

/* ⚡ 13. CYBERPUNK NEON (Hyper-drive Cyberpunk Magenta & Violet Wave) */
[data-theme="cyber-purple"], [data-theme="cyber"] {
  --bg-app: linear-gradient(135deg, #140a24 0%, #1f0b35 50%, #0c0617 100%);
  --bg-card: rgba(20, 10, 36, 0.85);
  --bg-card-subtle: linear-gradient(145deg, rgba(46, 16, 80, 0.7), rgba(20, 10, 36, 0.8));
  --bg-icon-circle: linear-gradient(135deg, rgba(192, 132, 252, 0.2), rgba(236, 72, 153, 0.2));
  --color-primary: #c084fc;
  --gradient-primary: linear-gradient(135deg, #c084fc 0%, #ec4899 50%, #06b6d4 100%);
  --gradient-accent: linear-gradient(135deg, #ec4899, #a855f7);
  --color-card-solid: linear-gradient(135deg, #a855f7 0%, #db2777 100%);
  --color-card-solid-dark: #120a1d;
  --color-dark-pill: linear-gradient(135deg, #a855f7, #ec4899);
  --color-dark-pill-hover: linear-gradient(135deg, #9333ea, #db2777);
  --color-accent-green: #c084fc;
  --text-main: #fdf4ff;
  --text-muted: #d8b4fe;
  --text-subtle: #f0abfc;
  --border-card: rgba(192, 132, 252, 0.2);
  --border-subtle: rgba(236, 72, 153, 0.18);
  --shadow-card: 0 12px 36px rgba(0, 0, 0, 0.45);
  --gauge-track: rgba(46, 16, 80, 0.8);
  --gauge-fill: #c084fc;
  --card-solid-text: #FFFFFF;
}

/* 🍷 14. VELVET RUBY (Deep Garnet Shadow with Radiant Ruby Fire) */
[data-theme="crimson-noir"], [data-theme="crimson"] {
  --bg-app: linear-gradient(135deg, #1a080c 0%, #290a12 50%, #0f0406 100%);
  --bg-card: rgba(26, 8, 12, 0.85);
  --bg-card-subtle: linear-gradient(145deg, rgba(60, 15, 25, 0.7), rgba(26, 8, 12, 0.8));
  --bg-icon-circle: linear-gradient(135deg, rgba(251, 113, 133, 0.2), rgba(225, 29, 72, 0.2));
  --color-primary: #fb7185;
  --gradient-primary: linear-gradient(135deg, #fb7185 0%, #e11d48 50%, #be123c 100%);
  --gradient-accent: linear-gradient(135deg, #f43f5e, #fda4af);
  --color-card-solid: linear-gradient(135deg, #f43f5e 0%, #be123c 100%);
  --color-card-solid-dark: #14080a;
  --color-dark-pill: linear-gradient(135deg, #e11d48, #9f1239);
  --color-dark-pill-hover: linear-gradient(135deg, #be123c, #881337);
  --color-accent-green: #fb7185;
  --text-main: #fff1f2;
  --text-muted: #fda4af;
  --text-subtle: #fecdd3;
  --border-card: rgba(251, 113, 133, 0.2);
  --border-subtle: rgba(225, 29, 72, 0.18);
  --shadow-card: 0 12px 36px rgba(0, 0, 0, 0.45);
  --gauge-track: rgba(60, 15, 25, 0.8);
  --gauge-fill: #fb7185;
  --card-solid-text: #FFFFFF;
}

/* 🌲 15. EMERALD MATRIX (Bioluminescent Neon Moss & Forest Matrix) */
[data-theme="dark-olive"], [data-theme="matrix"] {
  --bg-app: linear-gradient(135deg, #0c180e 0%, #112815 50%, #070e08 100%);
  --bg-card: rgba(15, 23, 16, 0.85);
  --bg-card-subtle: linear-gradient(145deg, rgba(22, 45, 25, 0.7), rgba(15, 23, 16, 0.8));
  --bg-icon-circle: linear-gradient(135deg, rgba(74, 222, 128, 0.18), rgba(16, 185, 129, 0.18));
  --color-primary: #4ade80;
  --gradient-primary: linear-gradient(135deg, #4ade80 0%, #10b981 50%, #059669 100%);
  --gradient-accent: linear-gradient(135deg, #86efac, #34d399);
  --color-card-solid: linear-gradient(135deg, #22c55e 0%, #15803d 100%);
  --color-card-solid-dark: #0a130b;
  --color-dark-pill: linear-gradient(135deg, #16a34a, #15803d);
  --color-dark-pill-hover: linear-gradient(135deg, #15803d, #166534);
  --color-accent-green: #4ade80;
  --text-main: #f0fdf4;
  --text-muted: #86efac;
  --text-subtle: #bbf7d0;
  --border-card: rgba(74, 222, 128, 0.2);
  --border-subtle: rgba(16, 185, 129, 0.18);
  --shadow-card: 0 12px 36px rgba(0, 0, 0, 0.45);
  --gauge-track: rgba(22, 45, 25, 0.8);
  --gauge-fill: #4ade80;
  --card-solid-text: #FFFFFF;
}

/* 🕶️ 16. STEALTH CARBON (Aerospace Carbon Fiber & Platinum Shimmer) */
[data-theme="charcoal-grey"], [data-theme="charcoal"] {
  --bg-app: linear-gradient(135deg, #18191c 0%, #22242a 50%, #111215 100%);
  --bg-card: rgba(24, 25, 28, 0.86);
  --bg-card-subtle: linear-gradient(145deg, rgba(38, 40, 46, 0.7), rgba(24, 25, 28, 0.8));
  --bg-icon-circle: linear-gradient(135deg, rgba(148, 163, 184, 0.18), rgba(203, 213, 225, 0.18));
  --color-primary: #94a3b8;
  --gradient-primary: linear-gradient(135deg, #cbd5e1 0%, #94a3b8 50%, #475569 100%);
  --gradient-accent: linear-gradient(135deg, #e2e8f0, #94a3b8);
  --color-card-solid: linear-gradient(135deg, #64748b 0%, #334155 100%);
  --color-card-solid-dark: #0f1012;
  --color-dark-pill: linear-gradient(135deg, #475569, #334155);
  --color-dark-pill-hover: linear-gradient(135deg, #334155, #1e293b);
  --color-accent-green: #94a3b8;
  --text-main: #f8fafc;
  --text-muted: #cbd5e1;
  --text-subtle: #e2e8f0;
  --border-card: rgba(148, 163, 184, 0.18);
  --border-subtle: rgba(203, 213, 225, 0.16);
  --shadow-card: 0 12px 36px rgba(0, 0, 0, 0.45);
  --gauge-track: rgba(38, 40, 46, 0.8);
  --gauge-fill: #94a3b8;
  --card-solid-text: #FFFFFF;
}

/* 🍯 17. SMOKED TOPAZ (Liquid Gold Amber & Smoked Copper Flame) */
[data-theme="dark-amber"], [data-theme="amber"] {
  --bg-app: linear-gradient(135deg, #1c1005 0%, #2d1806 50%, #0f0802 100%);
  --bg-card: rgba(28, 16, 5, 0.86);
  --bg-card-subtle: linear-gradient(145deg, rgba(55, 30, 10, 0.7), rgba(28, 16, 5, 0.8));
  --bg-icon-circle: linear-gradient(135deg, rgba(251, 191, 36, 0.2), rgba(249, 115, 22, 0.2));
  --color-primary: #fbbf24;
  --gradient-primary: linear-gradient(135deg, #fde047 0%, #f59e0b 50%, #d97706 100%);
  --gradient-accent: linear-gradient(135deg, #fef08a, #f97316);
  --color-card-solid: linear-gradient(135deg, #f59e0b 0%, #b45309 100%);
  --color-card-solid-dark: #140d05;
  --color-dark-pill: linear-gradient(135deg, #d97706, #b45309);
  --color-dark-pill-hover: linear-gradient(135deg, #b45309, #78350f);
  --color-accent-green: #fbbf24;
  --text-main: #fefce8;
  --text-muted: #fde047;
  --text-subtle: #fef08a;
  --border-card: rgba(251, 191, 36, 0.2);
  --border-subtle: rgba(245, 158, 11, 0.18);
  --shadow-card: 0 12px 36px rgba(0, 0, 0, 0.45);
  --gauge-track: rgba(55, 30, 10, 0.8);
  --gauge-fill: #fbbf24;
  --card-solid-text: #FFFFFF;
}

/* 💎 18. ABYSSAL BIOLUME (Deep Trench Bioluminescent Cyan & Aquamarine) */
[data-theme="deep-teal"], [data-theme="teal"] {
  --bg-app: linear-gradient(135deg, #051619 0%, #0a262c 50%, #020d0f 100%);
  --bg-card: rgba(5, 22, 25, 0.86);
  --bg-card-subtle: linear-gradient(145deg, rgba(10, 48, 55, 0.7), rgba(5, 22, 25, 0.8));
  --bg-icon-circle: linear-gradient(135deg, rgba(45, 212, 191, 0.2), rgba(6, 182, 212, 0.2));
  --color-primary: #2dd4bf;
  --gradient-primary: linear-gradient(135deg, #2dd4bf 0%, #06b6d4 50%, #3b82f6 100%);
  --gradient-accent: linear-gradient(135deg, #5eead4, #22d3ee);
  --color-card-solid: linear-gradient(135deg, #14b8a6 0%, #0891b2 100%);
  --color-card-solid-dark: #041012;
  --color-dark-pill: linear-gradient(135deg, #0d9488, #0f766e);
  --color-dark-pill-hover: linear-gradient(135deg, #0f766e, #115e59);
  --color-accent-green: #2dd4bf;
  --text-main: #f0fdfa;
  --text-muted: #5eead4;
  --text-subtle: #99f6e4;
  --border-card: rgba(45, 212, 191, 0.2);
  --border-subtle: rgba(6, 182, 212, 0.18);
  --shadow-card: 0 12px 36px rgba(0, 0, 0, 0.45);
  --gauge-track: rgba(10, 48, 55, 0.8);
  --gauge-fill: #2dd4bf;
  --card-solid-text: #FFFFFF;
}

/* 💜 19. STARLIGHT AMETHYST (Galactic Nebula Amethyst with Starlight Pink) */
[data-theme="midnight-amethyst"], [data-theme="amethyst"] {
  --bg-app: linear-gradient(135deg, #130d22 0%, #1d1238 50%, #0a0614 100%);
  --bg-card: rgba(19, 13, 34, 0.86);
  --bg-card-subtle: linear-gradient(145deg, rgba(39, 23, 72, 0.7), rgba(19, 13, 34, 0.8));
  --bg-icon-circle: linear-gradient(135deg, rgba(167, 139, 250, 0.2), rgba(236, 72, 153, 0.2));
  --color-primary: #a78bfa;
  --gradient-primary: linear-gradient(135deg, #a78bfa 0%, #818cf8 50%, #ec4899 100%);
  --gradient-accent: linear-gradient(135deg, #c4b5fd, #f472b6);
  --color-card-solid: linear-gradient(135deg, #8b5cf6 0%, #4f46e5 100%);
  --color-card-solid-dark: #0a0614;
  --color-dark-pill: linear-gradient(135deg, #7c3aed, #6d28d9);
  --color-dark-pill-hover: linear-gradient(135deg, #6d28d9, #4c1d95);
  --color-accent-green: #a78bfa;
  --text-main: #faf5ff;
  --text-muted: #c4b5fd;
  --text-subtle: #e9d5ff;
  --border-card: rgba(167, 139, 250, 0.2);
  --border-subtle: rgba(129, 140, 248, 0.18);
  --shadow-card: 0 12px 36px rgba(0, 0, 0, 0.45);
  --gauge-track: rgba(39, 23, 72, 0.8);
  --gauge-fill: #a78bfa;
  --card-solid-text: #FFFFFF;
}

/* 🌟 20. ELECTRIC AURORA (Polar Aurora Borealis & Cosmic Sapphire) */
[data-theme="space-cadet"], [data-theme="aurora"] {
  --bg-app: linear-gradient(135deg, #070e1e 0%, #0c1b38 50%, #040812 100%);
  --bg-card: rgba(8, 14, 30, 0.86);
  --bg-card-subtle: linear-gradient(145deg, rgba(18, 32, 68, 0.7), rgba(8, 14, 30, 0.8));
  --bg-icon-circle: linear-gradient(135deg, rgba(96, 165, 250, 0.2), rgba(56, 189, 248, 0.2));
  --color-primary: #60a5fa;
  --gradient-primary: linear-gradient(135deg, #60a5fa 0%, #38bdf8 50%, #a855f7 100%);
  --gradient-accent: linear-gradient(135deg, #93c5fd, #67e8f9);
  --color-card-solid: linear-gradient(135deg, #3b82f6 0%, #0284c7 100%);
  --color-card-solid-dark: #040812;
  --color-dark-pill: linear-gradient(135deg, #2563eb, #1d4ed8);
  --color-dark-pill-hover: linear-gradient(135deg, #1d4ed8, #1e40af);
  --color-accent-green: #60a5fa;
  --text-main: #eff6ff;
  --text-muted: #93c5fd;
  --text-subtle: #bfdbfe;
  --border-card: rgba(96, 165, 250, 0.2);
  --border-subtle: rgba(56, 189, 248, 0.18);
  --shadow-card: 0 12px 36px rgba(0, 0, 0, 0.45);
  --gauge-track: rgba(18, 32, 68, 0.8);
  --gauge-fill: #60a5fa;
  --card-solid-text: #FFFFFF;
}

/* ==========================================================================
   2. CORE RESET & BASE STYLES
   ========================================================================== */

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

body {
  font-family: var(--font-sans);
  background: var(--bg-app) fixed !important;
  background-size: cover !important;
  background-attachment: fixed !important;
  color: var(--text-main);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.5;
  transition: background 0.35s ease, color 0.3s ease;
}

/* --- Cute & Aesthetic Theme Selector Studio --- */
.cute-theme-studio-wrap {
  background: var(--bg-card);
  border-radius: var(--radius-card, 22px);
  padding: 24px;
  border: 1px solid var(--border-card);
  box-shadow: var(--shadow-card);
  margin-bottom: 24px;
}
.cute-theme-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 20px;
}
.cute-theme-select-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}
.cute-theme-select {
  padding: 10px 20px;
  border-radius: 9999px;
  background: var(--bg-card-subtle);
  border: 1.5px solid var(--border-subtle);
  color: var(--text-main);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  outline: none;
  transition: all 0.2s ease;
  min-width: 250px;
}
.cute-theme-select:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px var(--color-primary-light);
}
.cute-theme-tabs {
  display: inline-flex;
  background: var(--bg-card-subtle);
  padding: 4px;
  border-radius: 9999px;
  border: 1px solid var(--border-subtle);
  gap: 4px;
}
.cute-theme-tab-btn {
  padding: 8px 18px;
  border-radius: 9999px;
  font-size: 13px;
  font-weight: 700;
  border: none;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
}
.cute-theme-tab-btn.active {
  background: var(--color-primary);
  color: #FFFFFF;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
.cute-theme-chips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 14px;
  margin-top: 16px;
}
.cute-theme-chip {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: var(--bg-card-subtle);
  border-radius: 16px;
  border: 1.5px solid var(--border-subtle);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  text-decoration: none;
  color: var(--text-main);
}
.cute-theme-chip:hover {
  transform: translateY(-2px) scale(1.02);
  border-color: var(--color-primary);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
}
.cute-theme-chip.active {
  border-color: var(--color-primary);
  background: var(--bg-card);
  box-shadow: 0 0 0 2px var(--color-primary);
}
.cute-theme-color-bubble {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.4), 0 2px 6px rgba(0, 0, 0, 0.15);
}
.cute-theme-preview-card {
  border-radius: 20px;
  padding: 20px;
  background: var(--bg-app);
  border: 1px solid var(--border-card);
  margin-top: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

/* ==========================================================================
   3. FLOATING CAPSULE DOCK SIDEBAR (1:1 Reference Structure)
   ========================================================================== */

.portal-layout-frame,
.portal-viewport-frame,
.mfl-portal-container {
  display: flex;
  align-items: flex-start !important;
  min-height: 100vh;
  padding: 24px;
  gap: 28px;
  position: relative;
  max-width: 1720px;
  margin: 0 auto;
  box-sizing: border-box;
}

/* ==========================================================================
   VIBRANT MULTI-COLOR & ANIMATION SYSTEM FOR SIDEBAR DOCK CAPSULE
   ========================================================================== */

.portal-dock,
.mfl-capsule-sidebar {
  width: 72px !important;
  min-width: 72px !important;
  max-width: 72px !important;
  height: calc(100vh - 48px) !important;
  max-height: calc(100vh - 48px) !important;
  min-height: 0 !important;
  align-self: flex-start !important;
  background: var(--bg-card);
  border-radius: 36px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.28), 0 0 16px rgba(14, 165, 233, 0.15) !important;
  border: 1.5px solid rgba(255, 255, 255, 0.12) !important;
  position: sticky !important;
  top: 24px !important;
  flex-shrink: 0 !important;
  transition: none !important;
  flex: 0 0 72px !important;
  transform: none !important;
  box-sizing: border-box !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  scrollbar-width: none;
  -ms-overflow-style: none;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.portal-dock::-webkit-scrollbar,
.mfl-capsule-sidebar::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

/* Subtle luminous multi-color glowing capsule aura */
.portal-dock::before {
  content: "";
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  border-radius: 38px;
  background: linear-gradient(180deg, #0ea5e9, #8b5cf6, #ec4899, #f59e0b, #10b981, #0ea5e9);
  background-size: 100% 300%;
  animation: mflCapsuleBorderShift 8s ease infinite;
  z-index: -1;
  opacity: 0.35;
  pointer-events: none;
}

@keyframes mflCapsuleBorderShift {
  0% { background-position: 0% 0%; }
  50% { background-position: 0% 100%; }
  100% { background-position: 0% 0%; }
}

.dock-top-group,
.mfl-dock-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 100%;
}

.dock-bottom-group,
.mfl-dock-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 100%;
}

/* Dock Item Base */
.dock-item,
.mfl-dock-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--sec-color, var(--text-muted));
  text-decoration: none;
  font-size: 20px;
  transition: all 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  cursor: pointer;
  border: 1px solid transparent;
  background: transparent;
  overflow: visible;
}

.dock-item svg,
.mfl-dock-icon svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  stroke-width: 2;
  transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1), stroke 0.28s ease, filter 0.28s ease;
}

/* -------------------------------------------------------------
   VIBRANT CUSTOM COLOR PALETTE & ANIMATIONS FOR EACH DOCK SECTION
   ------------------------------------------------------------- */

/* 1. Dashboard */
.dock-item[data-nav="dashboard"],
.dock-item[data-nav="admin_dashboard"] {
  --sec-color: #0ea5e9;
  --sec-rgb: 14, 165, 233;
  --sec-grad: linear-gradient(135deg, #38bdf8, #0284c7);
}
.dock-item[data-nav="dashboard"]:hover svg,
.dock-item[data-nav="admin_dashboard"]:hover svg,
.dock-item[data-nav="dashboard"].active svg,
.dock-item[data-nav="admin_dashboard"].active svg {
  animation: dockDashboardPulse 1.8s ease-in-out infinite;
}

/* 2. Attendance */
.dock-item[data-nav="attendance"],
.dock-item[data-nav="admin_attendance"] {
  --sec-color: #10b981;
  --sec-rgb: 16, 185, 129;
  --sec-grad: linear-gradient(135deg, #34d399, #059669);
}
.dock-item[data-nav="attendance"]:hover svg,
.dock-item[data-nav="admin_attendance"]:hover svg,
.dock-item[data-nav="attendance"].active svg,
.dock-item[data-nav="admin_attendance"].active svg {
  animation: dockAttendanceClock 2s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

/* 3. CCD — Cold Calling */
.dock-item[data-nav="ccd"],
.dock-item[data-nav="admin_ccd"] {
  --sec-color: #f43f5e;
  --sec-rgb: 244, 63, 94;
  --sec-grad: linear-gradient(135deg, #fb7185, #e11d48);
}
.dock-item[data-nav="ccd"]:hover svg,
.dock-item[data-nav="admin_ccd"]:hover svg,
.dock-item[data-nav="ccd"].active svg,
.dock-item[data-nav="admin_ccd"].active svg {
  animation: dockCcdRing 1.4s ease infinite;
}

/* 4. Time Table / Schedule */
.dock-item[data-nav="timetable"],
.dock-item[data-nav="admin_timetable"] {
  --sec-color: #a855f7;
  --sec-rgb: 168, 85, 247;
  --sec-grad: linear-gradient(135deg, #c084fc, #7e22ce);
}
.dock-item[data-nav="timetable"]:hover svg,
.dock-item[data-nav="admin_timetable"]:hover svg,
.dock-item[data-nav="timetable"].active svg,
.dock-item[data-nav="admin_timetable"].active svg {
  animation: dockTimetableFlip 2.2s ease-in-out infinite;
}

/* 5. Profile & Users */
.dock-item[data-nav="profile"],
.dock-item[data-nav="admin_users"] {
  --sec-color: #f59e0b;
  --sec-rgb: 245, 158, 11;
  --sec-grad: linear-gradient(135deg, #fbbf24, #d97706);
}
.dock-item[data-nav="profile"]:hover svg,
.dock-item[data-nav="admin_users"]:hover svg,
.dock-item[data-nav="profile"].active svg,
.dock-item[data-nav="admin_users"].active svg {
  animation: dockProfileGlow 1.8s ease-in-out infinite;
}

/* 6. Pokémon Mascot */
.dock-item[data-nav="pokemon"] {
  --sec-color: #eab308;
  --sec-rgb: 234, 179, 8;
  --sec-grad: linear-gradient(135deg, #fde047, #ca8a04);
}
.dock-item[data-nav="pokemon"]:hover svg,
.dock-item[data-nav="pokemon"].active svg {
  animation: dockPokemonBounce 1.5s ease infinite;
}

/* 7. Themes */
.dock-item[data-nav="themes"] {
  --sec-color: #ec4899;
  --sec-rgb: 236, 72, 153;
  --sec-grad: linear-gradient(135deg, #ec4899, #8b5cf6, #06b6d4);
}
.dock-item[data-nav="themes"]:hover svg,
.dock-item[data-nav="themes"].active svg {
  animation: dockThemeSpin 3s linear infinite;
}

/* 8. Call Logs */
.dock-item[data-nav="admin_call_logs"] {
  --sec-color: #6366f1;
  --sec-rgb: 99, 102, 241;
  --sec-grad: linear-gradient(135deg, #818cf8, #4f46e5);
}
.dock-item[data-nav="admin_call_logs"]:hover svg,
.dock-item[data-nav="admin_call_logs"].active svg {
  animation: dockCallWave 1.6s ease-in-out infinite;
}

/* 9. Client Orders */
.dock-item[data-nav="admin_orders"] {
  --sec-color: #06b6d4;
  --sec-rgb: 6, 182, 212;
  --sec-grad: linear-gradient(135deg, #22d3ee, #0891b2);
}
.dock-item[data-nav="admin_orders"]:hover svg,
.dock-item[data-nav="admin_orders"].active svg {
  animation: dockOrdersFloat 2s ease-in-out infinite;
}

/* 10. Passwords */
.dock-item[data-nav="admin_passwords"] {
  --sec-color: #f97316;
  --sec-rgb: 249, 115, 22;
  --sec-grad: linear-gradient(135deg, #fb923c, #ea580c);
}
.dock-item[data-nav="admin_passwords"]:hover svg,
.dock-item[data-nav="admin_passwords"].active svg {
  animation: dockPassKeyTurn 1.8s ease-in-out infinite;
}

/* 11. Live Activity */
.dock-item[data-nav="admin_live"] {
  --sec-color: #84cc16;
  --sec-rgb: 132, 204, 22;
  --sec-grad: linear-gradient(135deg, #a3e635, #65a30d);
}
.dock-item[data-nav="admin_live"]:hover svg,
.dock-item[data-nav="admin_live"].active svg {
  animation: dockLiveRadar 1.5s ease-out infinite;
}

/* 12. Reports / Performance */
.dock-item[data-nav="performance"],
.dock-item[data-nav="admin_reports"] {
  --sec-color: #0284c7;
  --sec-rgb: 2, 132, 199;
  --sec-grad: linear-gradient(135deg, #38bdf8, #0369a1);
}
.dock-item[data-nav="performance"]:hover svg,
.dock-item[data-nav="admin_reports"]:hover svg,
.dock-item[data-nav="performance"].active svg,
.dock-item[data-nav="admin_reports"].active svg {
  animation: dockReportsRise 1.8s ease-in-out infinite;
}

/* 13. Messages / Notes */
.dock-item[data-nav="admin_messages"] {
  --sec-color: #d946ef;
  --sec-rgb: 217, 70, 239;
  --sec-grad: linear-gradient(135deg, #f0abfc, #a21caf);
}
.dock-item[data-nav="admin_messages"]:hover svg,
.dock-item[data-nav="admin_messages"].active svg {
  animation: dockNotesChat 1.6s ease-in-out infinite;
}

/* 14. Notifications */
.dock-item[data-nav="admin_notifications"] {
  --sec-color: #f59e0b;
  --sec-rgb: 245, 158, 11;
  --sec-grad: linear-gradient(135deg, #fcd34d, #b45309);
}
.dock-item[data-nav="admin_notifications"]:hover svg,
.dock-item[data-nav="admin_notifications"].active svg {
  animation: dockBellChime 1.5s ease-in-out infinite;
}

/* 15. Exports */
.dock-item[data-nav="admin_exports"] {
  --sec-color: #3b82f6;
  --sec-rgb: 59, 130, 246;
  --sec-grad: linear-gradient(135deg, #60a5fa, #1d4ed8);
}
.dock-item[data-nav="admin_exports"]:hover svg,
.dock-item[data-nav="admin_exports"].active svg {
  animation: dockExportTray 1.8s ease-in-out infinite;
}

/* 16. Settings */
.dock-item[data-nav="admin_settings"] {
  --sec-color: #8b5cf6;
  --sec-rgb: 139, 92, 246;
  --sec-grad: linear-gradient(135deg, #a78bfa, #6d28d9);
}
.dock-item[data-nav="admin_settings"]:hover svg,
.dock-item[data-nav="admin_settings"].active svg {
  animation: dockGearSpin 4s linear infinite;
}

/* 17. Security & Support */
.dock-item[data-nav="support"] {
  --sec-color: #e11d48;
  --sec-rgb: 225, 29, 72;
  --sec-grad: linear-gradient(135deg, #fb7185, #be123c);
}
.dock-item[data-nav="support"]:hover svg,
.dock-item[data-nav="support"].active svg {
  animation: dockSupportShield 1.6s ease-in-out infinite;
}

/* 18. Logout Button */
#btn-sidebar-logout,
#btn-admin-logout {
  --sec-color: #ef4444;
  --sec-rgb: 239, 68, 68;
  --sec-grad: linear-gradient(135deg, #f87171, #dc2626);
}
#btn-sidebar-logout:hover svg,
#btn-admin-logout:hover svg {
  animation: dockLogoutExit 1s ease-in-out infinite;
}

/* Hover State across all dock items: Vivid Color Glow */
.dock-item:hover,
.mfl-dock-icon:hover {
  color: var(--sec-color, var(--color-primary)) !important;
  background: rgba(var(--sec-rgb, 14, 165, 233), 0.16) !important;
  border-color: rgba(var(--sec-rgb, 14, 165, 233), 0.38) !important;
  transform: translateY(-3px) scale(1.08) !important;
  box-shadow: 0 4px 16px rgba(var(--sec-rgb, 14, 165, 233), 0.45) !important;
}

.dock-item:hover svg,
.mfl-dock-icon:hover svg {
  stroke: var(--sec-color, var(--color-primary)) !important;
  filter: drop-shadow(0 0 6px rgba(var(--sec-rgb, 14, 165, 233), 0.75));
}

/* Active State: Rich Vivid Gradient Pill + Colored Neon Halo */
.dock-item.active,
.mfl-dock-icon.active {
  background: var(--sec-grad, var(--color-dark-pill)) !important;
  color: #FFFFFF !important;
  border-radius: 16px !important;
  border-color: rgba(255, 255, 255, 0.4) !important;
  transform: scale(1.06) !important;
  box-shadow: 0 6px 20px rgba(var(--sec-rgb, 14, 165, 233), 0.65), 0 0 10px rgba(var(--sec-rgb, 14, 165, 233), 0.4) !important;
}

.dock-item.active svg,
.mfl-dock-icon.active svg {
  stroke: #FFFFFF !important;
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.85));
}

/* Active Indicator Pill on Left Edge */
.dock-item.active::before {
  content: "";
  position: absolute;
  left: -8px;
  width: 4px;
  height: 20px;
  border-radius: 4px;
  background: var(--sec-color, #38bdf8);
  box-shadow: 0 0 8px var(--sec-color, #38bdf8);
}

.dock-item[data-tooltip]::after,
.mfl-dock-icon .tooltip {
  content: attr(data-tooltip);
  position: absolute;
  left: 60px;
  background: var(--color-dark-pill);
  color: #FFFFFF;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 8px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transform: translateX(-8px);
  transition: all 0.2s ease;
  z-index: 1000;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.dock-item[data-tooltip]:hover::after,
.mfl-dock-icon:hover .tooltip {
  opacity: 1;
  transform: translateX(0);
}

/* User Avatar with Rotating Conic Iridescent Ring */
.dock-avatar,
.mfl-dock-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  background: var(--bg-card);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
  text-decoration: none;
  padding: 2.5px;
  box-shadow: 0 0 14px rgba(14, 165, 233, 0.4);
}

.dock-avatar::before,
.mfl-dock-avatar::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 50%;
  background: conic-gradient(from 0deg, #0ea5e9, #8b5cf6, #ec4899, #f59e0b, #10b981, #0ea5e9);
  animation: dockAvatarHalo 4s linear infinite;
  z-index: 1;
}

.dock-avatar span,
.mfl-dock-avatar span {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--bg-card);
  display: flex;
  align-items: center;
  justify-content: center;
}

.dock-avatar:hover,
.mfl-dock-avatar:hover {
  transform: scale(1.15) rotate(6deg);
  box-shadow: 0 0 22px rgba(236, 72, 153, 0.6);
}

/* Section Micro-Animation Keyframes */
@keyframes dockDashboardPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.18); }
}

@keyframes dockAttendanceClock {
  0% { transform: rotate(0deg); }
  25% { transform: rotate(15deg); }
  50% { transform: rotate(-10deg); }
  75% { transform: rotate(5deg); }
  100% { transform: rotate(0deg); }
}

@keyframes dockCcdRing {
  0%, 100% { transform: rotate(0deg) scale(1); }
  10% { transform: rotate(14deg) scale(1.16); }
  20% { transform: rotate(-14deg) scale(1.16); }
  30% { transform: rotate(10deg) scale(1.12); }
  40% { transform: rotate(-10deg) scale(1.12); }
  50% { transform: rotate(0deg) scale(1.05); }
}

@keyframes dockTimetableFlip {
  0%, 100% { transform: perspective(200px) rotateY(0deg); }
  50% { transform: perspective(200px) rotateY(28deg) scale(1.12); }
}

@keyframes dockProfileGlow {
  0%, 100% { transform: scale(1); filter: brightness(1); }
  50% { transform: scale(1.15) translateY(-2px); filter: brightness(1.3); }
}

@keyframes dockPokemonBounce {
  0%, 100% { transform: translateY(0) scale(1); }
  30% { transform: translateY(-7px) rotate(-16deg) scale(1.18); }
  60% { transform: translateY(2px) rotate(12deg) scale(1.04); }
  80% { transform: translateY(-2px) rotate(-4deg) scale(1.1); }
}

@keyframes dockThemeSpin {
  0% { transform: rotate(0deg); filter: hue-rotate(0deg); }
  50% { transform: rotate(180deg) scale(1.14); filter: hue-rotate(180deg); }
  100% { transform: rotate(360deg); filter: hue-rotate(360deg); }
}

@keyframes dockCallWave {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.16) translateY(-2px); }
}

@keyframes dockOrdersFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px) scale(1.12); }
}

@keyframes dockPassKeyTurn {
  0%, 100% { transform: rotate(0deg); }
  50% { transform: rotate(-25deg) scale(1.15); }
}

@keyframes dockLiveRadar {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.2); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

@keyframes dockReportsRise {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-4px) scale(1.15); }
}

@keyframes dockNotesChat {
  0%, 100% { transform: scale(1); }
  40% { transform: scale(1.18) rotate(6deg); }
  70% { transform: scale(1.08) rotate(-4deg); }
}

@keyframes dockBellChime {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(18deg); }
  50% { transform: rotate(-18deg); }
  75% { transform: rotate(8deg); }
}

@keyframes dockExportTray {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(3px) scale(1.12); }
}

@keyframes dockGearSpin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes dockSupportShield {
  0%, 100% { transform: scale(1); }
  35% { transform: scale(1.18); }
  50% { transform: scale(1.1); }
  65% { transform: scale(1.15); }
}

@keyframes dockLogoutExit {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(4px) scale(1.12); }
}

@keyframes dockAvatarHalo {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}


/* ==========================================================================
   4. MAIN WORKSPACE CONTENT & HEADER (1:1 Reference Header)
   ========================================================================== */

.portal-main-area,
.portal-main-stage,
.mfl-main-viewport {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-width: 0;
}

#portal-offline-banner {
  display: none !important;
  background: linear-gradient(90deg, #FEF3C7, #FDE68A);
  color: #92400E;
  padding: 10px 16px;
  border-radius: var(--radius-sm, 10px);
  font-size: 13px;
  font-weight: 700;
  border: 1px solid #FCD34D;
  text-align: center;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.12);
  width: 100%;
}

#portal-offline-banner.is-offline {
  display: none !important;
}

.portal-top-bar,
.mfl-top-header,
.mfl-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
}

.portal-greeting-box,
.mfl-header-brand-greeting {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Animated Authentic Company Logo System */
.brand-logo-frame {
  position: relative !important;
  width: 48px !important;
  height: 48px !important;
  max-width: 48px !important;
  max-height: 48px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
  overflow: visible !important;
}

.brand-portal-logo,
.mfl-brand-logo-img {
  width: 44px !important;
  height: 44px !important;
  max-width: 44px !important;
  max-height: 44px !important;
  object-fit: contain !important;
  background: transparent !important;
  border-radius: 14px !important;
  overflow: hidden !important;
  position: relative !important;
  z-index: 2 !important;
  display: block !important;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), filter 0.4s ease !important;
  animation: mflLogoAura 4s ease-in-out infinite alternate, mflLogoGentleFloat 4s ease-in-out infinite !important;
  filter: drop-shadow(0 0 8px rgba(14, 165, 233, 0.65)) drop-shadow(0 0 18px rgba(99, 102, 241, 0.45)) !important;
}

.brand-logo-frame:hover .brand-portal-logo,
.brand-portal-logo:hover,
.mfl-brand-logo-img:hover {
  transform: scale(1.12) rotate(4deg) !important;
  filter: drop-shadow(0 0 14px rgba(14, 165, 233, 0.9)) drop-shadow(0 0 28px rgba(168, 85, 247, 0.7)) !important;
}

.brand-orbital-ring {
  position: absolute !important;
  width: 56px !important;
  height: 56px !important;
  max-width: 56px !important;
  max-height: 56px !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
  border-radius: 50% !important;
  border: 2px dashed transparent !important;
  border-top-color: #38bdf8 !important;
  border-right-color: #818cf8 !important;
  animation: mflOrbitSpin 7s linear infinite !important;
  pointer-events: none !important;
  opacity: 0.85 !important;
  z-index: 1 !important;
  box-sizing: border-box !important;
}

.brand-orbital-ring.ring-reverse {
  width: 64px !important;
  height: 64px !important;
  max-width: 64px !important;
  max-height: 64px !important;
  border: 1.5px solid transparent !important;
  border-bottom-color: #ec4899 !important;
  border-left-color: #06b6d4 !important;
  animation: mflOrbitSpinReverse 9s linear infinite !important;
  opacity: 0.65 !important;
}

.brand-logo-frame:hover .brand-orbital-ring {
  animation-duration: 2.5s !important;
  opacity: 1 !important;
}

@keyframes mflOrbitSpin {
  0% { transform: translate(-50%, -50%) rotate(0deg); }
  100% { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes mflOrbitSpinReverse {
  0% { transform: translate(-50%, -50%) rotate(360deg); }
  100% { transform: translate(-50%, -50%) rotate(0deg); }
}

@keyframes mflLogoAura {
  0% {
    filter: drop-shadow(0 0 6px rgba(14, 165, 233, 0.6)) drop-shadow(0 0 14px rgba(37, 99, 235, 0.4));
  }
  33% {
    filter: drop-shadow(0 0 10px rgba(56, 189, 248, 0.75)) drop-shadow(0 0 20px rgba(139, 92, 246, 0.45));
  }
  66% {
    filter: drop-shadow(0 0 12px rgba(99, 102, 241, 0.7)) drop-shadow(0 0 22px rgba(236, 72, 153, 0.4));
  }
  100% {
    filter: drop-shadow(0 0 8px rgba(14, 165, 233, 0.65)) drop-shadow(0 0 16px rgba(16, 185, 129, 0.35));
  }
}

@keyframes mflLogoGentleFloat {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-3px) rotate(1.5deg);
  }
}

.greeting-text-wrap {
  display: flex;
  flex-direction: column;
}

.greeting-title,
.mfl-greeting-title {
  font-size: 24px;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.02em;
}

.greeting-sub,
.mfl-greeting-subtext {
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
}

.greeting-sep {
  color: var(--text-subtle);
  margin: 0 4px;
}

.mfl-live-clock,
.mfl-pkt-indicator {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-card);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--color-primary);
  border: 1px solid var(--border-card);
}

.mono {
  font-family: var(--font-mono) !important;
}

.portal-top-right,
.mfl-header-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

.top-search-capsule,
.top-search-pill,
.mfl-search-capsule,
.mfl-search-box {
  display: flex;
  align-items: center;
  background: var(--bg-card);
  border-radius: var(--radius-pill);
  padding: 4px 6px 4px 16px;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border-card);
  width: 280px;
  transition: all 0.2s ease;
}

.top-search-capsule:focus-within,
.top-search-pill:focus-within,
.mfl-search-capsule:focus-within,
.mfl-search-box:focus-within {
  width: 320px;
  border-color: var(--color-primary);
}

.top-search-input,
.mfl-search-input {
  border: none;
  background: transparent;
  outline: none;
  font-size: 14px;
  font-family: var(--font-sans);
  color: var(--text-main);
  width: 100%;
}

.top-search-btn,
.mfl-search-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--color-dark-pill);
  color: #FFFFFF;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}

.top-circle-action,
.mfl-round-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  box-shadow: var(--shadow-card);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-main);
  cursor: pointer;
  position: relative;
  transition: all 0.2s ease;
  text-decoration: none;
}

.top-circle-action:hover,
.mfl-round-btn:hover {
  background: var(--bg-icon-circle);
  color: var(--color-primary);
  transform: translateY(-2px);
}

.quick-status-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-card);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 600;
  border: 1px solid var(--border-card);
  box-shadow: var(--shadow-card);
}

.status-indicator-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #94A3B8;
  display: inline-block;
}

.status-indicator-dot.active {
  background: #16A34A;
  box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.2);
}

.status-indicator-dot.break {
  background: #F59E0B;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.2);
}

.status-chip-text {
  color: var(--text-main);
}

.dock-badge-dot,
.mfl-dot-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 8px;
  height: 8px;
  background: #EF4444;
  border-radius: 50%;
  border: 2px solid var(--bg-card);
}

/* ==========================================================================
   5. TOP STATS ROW (4 Cards 1:1 Reference)
   ========================================================================== */

.mfl-stats-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.mfl-stat-card {
  background: var(--bg-card);
  border-radius: var(--radius-card);
  padding: 22px 24px;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border-card);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.mfl-stat-card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-3px);
}

.mfl-stat-card.solid-accent {
  background: var(--color-card-solid);
  color: var(--card-solid-text);
  border: none;
}

.mfl-stat-card.solid-accent .mfl-stat-label,
.mfl-stat-card.solid-accent .mfl-stat-subtext {
  color: rgba(255, 255, 255, 0.85);
}

.mfl-stat-card.solid-accent .mfl-stat-val {
  color: #FFFFFF;
}

.mfl-stat-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mfl-stat-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
}

.mfl-stat-val {
  font-size: 26px;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 8px;
}

.mfl-stat-subtext {
  font-size: 12px;
  color: var(--text-subtle);
  font-weight: 500;
}

.mfl-circle-icon-box {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--bg-icon-circle);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

/* Status Pill with Animation */
.mfl-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.mfl-status-pill.active {
  background: rgba(34, 197, 94, 0.15);
  color: #16A34A;
}

.mfl-status-pill.inactive {
  background: rgba(148, 163, 184, 0.18);
  color: #64748B;
}

.mfl-status-pill.break {
  background: rgba(245, 158, 11, 0.18);
  color: #D97706;
}

.mfl-status-pill-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
}

.mfl-status-pill.active .mfl-status-pill-dot {
  animation: pulseGreen 1.6s infinite ease-in-out;
}

@keyframes pulseGreen {
  0% { transform: scale(0.9); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.6; }
  100% { transform: scale(0.9); opacity: 1; }
}

/* Animated Leaf for Probation Zone */
.probation-leaf {
  display: inline-block;
  animation: swayLeaf 2.2s infinite ease-in-out;
  transform-origin: bottom center;
}

@keyframes swayLeaf {
  0%, 100% { transform: rotate(-10deg) scale(1); }
  50% { transform: rotate(14deg) scale(1.18); }
}

/* ==========================================================================
   6. MIDDLE ROW: 3-COLUMN 1:1 REFERENCE GRID
   ========================================================================== */

.mfl-middle-grid-3 {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr;
  gap: 20px;
}

.mfl-card {
  background: var(--bg-card);
  border-radius: var(--radius-card);
  padding: 24px;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border-card);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all 0.25s ease;
}

.mfl-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.mfl-card-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Corridor Performance Chart Widget */
.mfl-wave-chart-container {
  height: 180px;
  width: 100%;
  position: relative;
  margin-top: 10px;
}

.mfl-metric-pills-row {
  display: flex;
  gap: 12px;
  margin-bottom: 14px;
}

.mfl-metric-pill-card {
  background: var(--bg-card-subtle);
  border-radius: var(--radius-card-sm);
  padding: 10px 16px;
  border: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
}

.mfl-metric-pill-title {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
}

.mfl-metric-pill-val {
  font-size: 17px;
  font-weight: 800;
  color: var(--text-main);
}

/* Semi-Circular Speedometer Gauge Widget */
.mfl-gauge-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.mfl-gauge-svg-container {
  position: relative;
  width: 220px;
  height: 130px;
  margin: 10px auto 0;
}

.mfl-gauge-track {
  fill: none;
  stroke: var(--gauge-track);
  stroke-width: 18;
  stroke-linecap: round;
}

.mfl-gauge-progress {
  fill: none;
  stroke: var(--gauge-fill);
  stroke-width: 18;
  stroke-linecap: round;
  transition: stroke-dashoffset 1s ease-in-out;
}

.mfl-gauge-center-text {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.mfl-gauge-percentage {
  font-size: 28px;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1;
}

.mfl-gauge-subtext {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Profile Card Widget */
.mfl-profile-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  justify-content: center;
}

.mfl-profile-avatar-large {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--bg-icon-circle);
  border: 3px solid var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 38px;
  margin-bottom: 12px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

.mfl-profile-name {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-main);
}

.mfl-profile-id {
  font-size: 13px;
  font-family: var(--font-mono);
  color: var(--text-muted);
  margin-bottom: 16px;
}

.mfl-profile-stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  width: 100%;
  padding-top: 14px;
  border-top: 1px solid var(--border-subtle);
  text-align: center;
}

.mfl-profile-stat-box {
  display: flex;
  flex-direction: column;
}

.mfl-profile-stat-val {
  font-size: 16px;
  font-weight: 800;
  color: var(--text-main);
}

.mfl-profile-stat-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
}

/* ==========================================================================
   7. BOTTOM ROW: 3-COLUMN 1:1 REFERENCE GRID
   ========================================================================== */

.mfl-bottom-grid-3 {
  display: grid;
  grid-template-columns: 1.2fr 1fr 0.8fr;
  gap: 20px;
}

/* --- Pokémon Companion Stage --- */
.mfl-pokemon-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.mfl-pokemon-visual-box {
  width: 100%;
  min-height: 230px;
  height: 230px;
  background: radial-gradient(circle, var(--bg-icon-circle) 0%, transparent 70%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: visible;
}

.mfl-pokemon-sprite {
  animation: pokemonFloat 2.6s infinite ease-in-out;
  cursor: pointer;
  user-select: none;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.mfl-pokemon-sprite:active {
  transform: scale(1.15);
}

.mfl-pokemon-img {
  width: auto;
  height: 180px;
  max-width: 220px;
  max-height: 220px;
  object-fit: contain;
  filter: drop-shadow(0 14px 28px rgba(0, 0, 0, 0.20));
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.3s ease;
  pointer-events: auto;
  user-select: none;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: -moz-crisp-edges;
  image-rendering: crisp-edges;
  image-rendering: pixelated !important;
}

.mfl-pokemon-img.studio-main {
  width: auto;
  height: 210px;
  max-width: 240px;
  max-height: 240px;
  filter: drop-shadow(0 18px 36px rgba(0, 0, 0, 0.25));
  image-rendering: pixelated !important;
}

.mfl-pokemon-img:hover {
  transform: scale(1.12) translateY(-4px);
}

.mfl-pokemon-img:active {
  transform: scale(1.2) rotate(-3deg);
}

.mfl-pokemon-img.sleeping {
  opacity: 0.88;
  filter: grayscale(20%) brightness(0.92) drop-shadow(0 4px 10px rgba(0, 0, 0, 0.08));
  animation: pokemonSleepSway 3.2s infinite ease-in-out;
}

@keyframes pokemonSleepSway {
  0%, 100% { transform: translateY(0px) rotate(-3deg) scale(0.96); }
  50% { transform: translateY(4px) rotate(0deg) scale(1); }
}

.pokemon-bounce {
  animation: pokemonJoyBounce 0.65s cubic-bezier(0.36, 0.07, 0.19, 0.97) !important;
}

@keyframes pokemonJoyBounce {
  0%, 100% { transform: translateY(0) scale(1); }
  25% { transform: translateY(-18px) scale(1.15, 0.9); }
  50% { transform: translateY(0) scale(0.95, 1.08); }
  75% { transform: translateY(-8px) scale(1.05, 0.96); }
}

.pokemon-sprite-container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 170px;
}

.pokemon-zzz-float {
  position: absolute;
  top: -12px;
  right: -10px;
  display: flex;
  gap: 2px;
  font-weight: 800;
  font-size: 16px;
  color: #818CF8;
  animation: zzzDrift 2.2s infinite ease-in-out;
  pointer-events: none;
}

.pokemon-zzz-float span:nth-child(1) { font-size: 12px; animation: zzzFade 2.2s infinite 0.1s; }
.pokemon-zzz-float span:nth-child(2) { font-size: 15px; animation: zzzFade 2.2s infinite 0.4s; }
.pokemon-zzz-float span:nth-child(3) { font-size: 18px; animation: zzzFade 2.2s infinite 0.7s; }

@keyframes zzzDrift {
  0% { transform: translateY(0) rotate(0deg); opacity: 0.6; }
  50% { transform: translateY(-8px) rotate(6deg); opacity: 1; }
  100% { transform: translateY(0) rotate(0deg); opacity: 0.6; }
}

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

/* Pokemon Species Grid Selection Cards */
.mfl-pokemon-card-option {
  padding: 10px 8px;
  border-radius: 14px;
  border: 1.5px solid var(--border-subtle);
  text-align: center;
  cursor: pointer;
  background: var(--bg-card-subtle);
  transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.mfl-pokemon-card-option:hover {
  transform: translateY(-3px);
  border-color: var(--color-primary);
  background: var(--bg-card);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.mfl-pokemon-card-option.selected,
.mfl-pokemon-card-option.active {
  border-color: var(--color-primary);
  background: rgba(37, 99, 235, 0.08);
  box-shadow: 0 0 0 2px var(--color-primary), 0 8px 20px rgba(37, 99, 235, 0.15);
}

.mfl-pokemon-card-img-wrap {
  width: 72px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 6px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, transparent 70%);
}

.mfl-pokemon-card-img {
  width: 65px;
  height: 65px;
  object-fit: contain;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.mfl-pokemon-card-option:hover .mfl-pokemon-card-img {
  transform: scale(1.22) translateY(-2px);
}

.mfl-pokemon-type-pill {
  font-size: 9px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 4px;
}

@keyframes pokemonFloat {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

/* Heart Particle Animation */
.floating-heart {
  position: absolute;
  color: #EF4444;
  font-size: 20px;
  animation: heartFly 1.2s forwards ease-out;
  pointer-events: none;
}

@keyframes heartFly {
  0% { transform: translateY(0) scale(0.6); opacity: 1; }
  100% { transform: translateY(-70px) scale(1.4); opacity: 0; }
}

/* Speech Bubble */
.pokemon-speech-bubble {
  position: absolute;
  top: 10px;
  background: var(--color-dark-pill);
  color: #FFFFFF;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
  animation: popSpeech 0.3s ease-out;
  z-index: 10;
}

@keyframes popSpeech {
  0% { transform: scale(0.7); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.mfl-pokemon-actions {
  display: flex;
  gap: 10px;
  margin-top: 14px;
  width: 100%;
  justify-content: center;
}

.mfl-pokemon-btn {
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 700;
  border: 1px solid var(--border-subtle);
  background: var(--bg-card-subtle);
  color: var(--text-main);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.mfl-pokemon-btn:hover {
  background: var(--color-primary);
  color: #FFFFFF;
  border-color: var(--color-primary);
  transform: translateY(-2px);
}

/* --- Mind Tree Shift Schedule Widget --- */
.mfl-tree-timeline {
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  padding-left: 24px;
}

.mfl-tree-timeline::before {
  content: '';
  position: absolute;
  left: 9px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: var(--border-subtle);
}

.mfl-tree-node {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.mfl-tree-bullet {
  position: absolute;
  left: -24px;
  top: 4px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 3px solid var(--border-subtle);
  transition: all 0.2s ease;
}

.mfl-tree-node.active .mfl-tree-bullet {
  border-color: var(--color-primary);
  background: var(--color-primary);
  box-shadow: 0 0 10px var(--color-primary);
}

.mfl-tree-node.now-step {
  background: var(--bg-card-subtle);
  padding: 8px 12px;
  border-radius: var(--radius-card-sm);
  border: 1px solid var(--color-primary);
}

.mfl-now-badge {
  background: var(--color-primary);
  color: #FFFFFF;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  animation: pulseNow 1.5s infinite ease-in-out;
}

@keyframes pulseNow {
  0% { opacity: 0.8; transform: scale(0.95); }
  50% { opacity: 1; transform: scale(1.05); }
  100% { opacity: 0.8; transform: scale(0.95); }
}

.mfl-tree-time {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.mfl-tree-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-main);
}

/* --- Keep You Safe / Security & Support Card --- */
.mfl-security-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 12px;
}

.mfl-security-icon-large {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--bg-icon-circle);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
}

.mfl-security-title {
  font-size: 17px;
  font-weight: 800;
  color: var(--text-main);
}

.mfl-security-desc {
  font-size: 13px;
  color: var(--text-muted);
  max-width: 200px;
}

.mfl-security-btn {
  background: var(--color-dark-pill);
  color: #FFFFFF;
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.mfl-security-btn:hover {
  background: var(--color-dark-pill-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* ==========================================================================
   8. ATTENDANCE & WORK LIFECYCLE CONTROLS
   ========================================================================== */

.mfl-work-banner {
  background: var(--bg-card);
  border-radius: var(--radius-card);
  padding: 18px 24px;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border-card);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mfl-work-btn-active {
  background: #16A34A;
  color: #FFFFFF;
  padding: 12px 28px;
  border-radius: var(--radius-pill);
  font-size: 15px;
  font-weight: 800;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 14px rgba(22, 163, 74, 0.3);
  transition: all 0.2s ease;
}

.mfl-work-btn-active:hover {
  background: #15803D;
  transform: translateY(-2px);
}

.mfl-work-btn-break {
  background: #D97706;
  color: #FFFFFF;
  padding: 12px 24px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.mfl-work-btn-break:hover {
  background: #B45309;
}

/* ==========================================================================
   9. COLD CALLING DATABASE (CCD) TABLE & POPUP
   ========================================================================== */

.mfl-table-card {
  background: var(--bg-card);
  border-radius: var(--radius-card);
  padding: 24px;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border-card);
  overflow-x: auto;
}

.mfl-data-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

.mfl-data-table th {
  background: var(--bg-card-subtle);
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-subtle);
  text-align: left;
}

.mfl-data-table td {
  padding: 14px 16px;
  font-size: 13px;
  color: var(--text-main);
  border-bottom: 1px solid var(--border-card);
  vertical-align: middle;
}

.mfl-data-table tr:hover td {
  background: var(--bg-card-subtle);
}

.mfl-call-btn {
  background: var(--color-primary);
  color: #FFFFFF;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.mfl-call-btn:hover {
  background: var(--color-primary-dark);
  transform: translateY(-2px);
}

/* Call Modal */
.mfl-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 20px;
}

.mfl-modal-overlay.open {
  display: flex;
}

.mfl-modal-card {
  background: var(--bg-card);
  border-radius: var(--radius-card);
  width: 100%;
  max-width: 520px;
  padding: 28px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border-card);
  position: relative;
}

/* ==========================================================================
   10. ADMIN RADAR & EXPORT CONSOLES
   ========================================================================== */

.mfl-radar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.mfl-agent-radar-card {
  background: var(--bg-card);
  border-radius: var(--radius-card-sm);
  padding: 16px;
  border: 1px solid var(--border-card);
  box-shadow: var(--shadow-card);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.2s ease;
}

.mfl-agent-radar-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-card-hover);
}

.mfl-export-btn {
  background: #16A34A;
  color: #FFFFFF;
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.mfl-export-btn:hover {
  background: #15803D;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(22, 163, 74, 0.3);
}

/* ==========================================================================
   11. RESPONSIVENESS & MOBILE LAYOUT (Full Phone & Mobile Compatibility)
   ========================================================================== */

/* Tablet & Smaller Desktops */
@media (max-width: 1200px) {
  .mfl-stats-grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .mfl-middle-grid-3 {
    grid-template-columns: 1fr;
  }
  .mfl-bottom-grid-3 {
    grid-template-columns: 1fr;
  }
}

/* Tablets & Mobile Phones (<= 768px) */
@media (max-width: 768px) {
  /* Container adapts for mobile screen - Full 100% width, no side-margins squeezing */
  .portal-layout-frame,
  .portal-viewport-frame,
  .mfl-portal-container {
    flex-direction: column !important;
    padding: 10px 10px 84px 10px !important;
    gap: 14px !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    box-sizing: border-box !important;
  }

  .portal-main-area,
  .portal-main-stage,
  .mfl-main-content {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
  }

  /* Mobile Top App Header */
  .mfl-mobile-header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 10px 14px !important;
    background: var(--bg-card) !important;
    border-radius: var(--radius-md, 16px) !important;
    border: 1px solid var(--border-card) !important;
    box-shadow: var(--shadow-card) !important;
    margin-bottom: 12px !important;
  }

  .mfl-mobile-menu-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 42px !important;
    height: 42px !important;
    border-radius: 12px !important;
    background: var(--bg-card-subtle) !important;
    border: 1px solid var(--border-subtle) !important;
    color: var(--text-main) !important;
    cursor: pointer !important;
    font-size: 20px !important;
  }

  /* Mobile Sidebar relocates to sleek, fixed bottom bar (Request 4) */
  .portal-dock,
  .mfl-capsule-sidebar {
    position: fixed !important;
    bottom: 0 !important;
    top: auto !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    min-width: 100% !important;
    max-width: 100% !important;
    height: 64px !important;
    min-height: 64px !important;
    max-height: 64px !important;
    background: var(--bg-card) !important;
    border-radius: 20px 20px 0 0 !important;
    border: 1px solid var(--border-card) !important;
    border-bottom: none !important;
    box-shadow: 0 -6px 25px rgba(0, 0, 0, 0.12) !important;
    z-index: 99999 !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-around !important;
    padding: 0 8px env(safe-area-inset-bottom, 0) !important;
    box-sizing: border-box !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    -webkit-overflow-scrolling: touch !important;
    gap: 4px !important;
  }

  .portal-dock.mobile-open,
  .mfl-capsule-sidebar.mobile-open {
    display: flex !important;
  }

  /* Mobile drawer backdrop */
  .mfl-drawer-backdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(4px);
    z-index: 99998;
  }

  .mfl-drawer-backdrop.active {
    display: block !important;
  }

  /* Inside Mobile Dock: Row layout */
  .portal-dock .dock-top-group,
  .portal-dock .dock-bottom-group,
  .mfl-capsule-sidebar .mfl-dock-top,
  .mfl-capsule-sidebar .mfl-dock-bottom {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 4px !important;
    width: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
  }

  .portal-dock .dock-item,
  .mfl-capsule-sidebar .dock-item,
  .dock-item {
    width: 44px !important;
    min-width: 44px !important;
    height: 44px !important;
    border-radius: 12px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    flex-shrink: 0 !important;
    text-decoration: none !important;
    box-sizing: border-box !important;
  }

  .portal-dock .dock-item::after,
  .mfl-capsule-sidebar .dock-item::after,
  .dock-item::after {
    display: none !important;
  }

  .portal-dock .dock-avatar,
  .mfl-capsule-sidebar .dock-avatar {
    width: 38px !important;
    height: 38px !important;
    border-radius: 50% !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 4px !important;
    flex-shrink: 0 !important;
  }

  .dock-item svg {
    min-width: 20px;
    width: 20px;
    height: 20px;
  }

  /* Sleek Mobile Bottom Tab Bar (Quick Access: Home, Attendance, CCD, Pokémon, Menu) */
  .mfl-mobile-tab-bar {
    display: flex !important;
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    height: 64px !important;
    background: var(--bg-card) !important;
    border-top: 1px solid var(--border-card) !important;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08) !important;
    z-index: 9999 !important;
    align-items: center !important;
    justify-content: space-around !important;
    padding: 0 6px env(safe-area-inset-bottom, 0) !important;
    box-sizing: border-box !important;
  }

  .mfl-tab-bar-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    color: var(--text-muted);
    font-size: 10px;
    font-weight: 700;
    text-decoration: none;
    padding: 6px 10px;
    border-radius: 10px;
    flex: 1;
    min-height: 48px;
    cursor: pointer;
    background: none;
    border: none;
    transition: color 0.2s ease;
  }

  .mfl-tab-bar-item.active,
  .mfl-tab-bar-item:hover {
    color: var(--color-primary);
  }

  .mfl-tab-bar-item svg {
    width: 20px;
    height: 20px;
  }

  /* Header & Action Controls Stack on Phone */
  .mfl-header {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 12px !important;
  }

  .mfl-header-actions {
    flex-wrap: wrap !important;
    width: 100% !important;
    gap: 8px !important;
  }

  .mfl-header-actions button,
  .mfl-header-actions a {
    flex: 1 1 calc(50% - 8px) !important;
    min-height: 44px !important;
    justify-content: center !important;
    font-size: 12px !important;
    padding: 8px 10px !important;
  }

  /* Operational Work Action Buttons (Active / Break / Check-In) */
  .mfl-work-btn-active,
  .mfl-work-btn-break,
  .mfl-work-btn-checkin {
    width: 100% !important;
    min-height: 46px !important;
    justify-content: center !important;
    font-size: 13px !important;
    box-sizing: border-box !important;
  }

  /* Stat Metric Cards on Phone */
  .mfl-stats-grid-4 {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  .mfl-stat-card {
    padding: 14px !important;
  }

  /* Middle & Bottom Sections Stack Responsively */
  .mfl-middle-grid-3,
  .mfl-bottom-grid-3 {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }

  /* Speedometer & Wave Charts Scale on Mobile */
  .speedometer-container,
  .wave-chart-container {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .speedometer-container svg,
  .wave-chart-container svg {
    width: 100% !important;
    height: auto !important;
    max-width: 320px !important;
    margin: 0 auto !important;
    display: block !important;
  }

  /* Tables: Add Touch Horizontal Scrolling */
  .mfl-table-responsive,
  .mfl-table-container,
  .mfl-card table,
  table {
    display: block !important;
    width: 100% !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
  }

  /* Pokémon Grid on Phone */
  .pokemon-species-grid {
    grid-template-columns: repeat(auto-fill, minmax(105px, 1fr)) !important;
    gap: 8px !important;
  }

  .mfl-pokemon-card-option {
    padding: 8px !important;
  }

  .mfl-pokemon-card-img-wrap {
    height: 70px !important;
  }

  .mfl-pokemon-card-img {
    max-height: 52px !important;
  }

  /* Admin Consoles Stack on Phone */
  .admin-grid-2col,
  div[style*="grid-template-columns:1fr 1fr"],
  div[style*="grid-template-columns: 1fr 1fr"] {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }

  #full-live-radar-grid {
    grid-template-columns: 1fr !important;
  }

  /* Form Elements: Touch Optimized & Prevents iOS Auto-Zoom */
  input[type="text"],
  input[type="password"],
  input[type="file"],
  select,
  textarea {
    font-size: 16px !important;
    min-height: 44px !important;
    box-sizing: border-box !important;
  }
}

/* Small Smart Phones (<= 480px) */
@media (max-width: 480px) {
  .mfl-portal-container {
    padding: 8px 6px 80px 6px !important;
  }

  .mfl-card {
    padding: 14px !important;
    border-radius: var(--radius-md, 16px) !important;
  }

  .ref-login-card {
    padding: 1.5rem 1.25rem !important;
    border-radius: 20px !important;
  }

  .mfl-header-actions button,
  .mfl-header-actions a {
    flex: 1 1 100% !important;
  }
}

/* Default state for Mobile-only elements on desktop */
.mfl-mobile-tab-bar,
.mfl-mobile-menu-btn,
.mfl-drawer-backdrop {
  display: none;
}

/* ==========================================================================
   12. AUTHENTICATION & LOGIN SCREEN COMPONENTS (1:1 Reference Styling)
   ========================================================================== */

/* Login Viewport Frame & Centering */
.ref-login-wrapper,
#view-login {
  min-height: 100vh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--bg-app);
  padding: 2.5rem 1.5rem;
  box-sizing: border-box;
}

.ref-login-wrapper.hidden,
#view-login.hidden,
.ref-login-wrapper[style*="display: none"],
#view-login[style*="display: none"] {
  display: none !important;
}

#mfl-dashboard-wrapper.hidden,
.portal-layout-frame.hidden,
#mfl-dashboard-wrapper[style*="display: none"],
.portal-layout-frame[style*="display: none"] {
  display: none !important;
}

/* 1:1 Reference Floating Login Card */
.ref-login-card {
  background: var(--bg-card);
  border-radius: 28px;
  padding: 3rem 2.5rem 2.5rem 2.5rem;
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.08), 0 2px 6px rgba(0, 0, 0, 0.02);
  border: 1px solid var(--border-card);
  width: 100%;
  max-width: 440px;
  text-align: center;
  margin: 0 auto;
  box-sizing: border-box;
  animation: loginCardFadeIn 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes loginCardFadeIn {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Official My Freight Link Logo Constraints */
.ref-login-brand {
  margin-bottom: 2rem;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.ref-login-logo,
.login-brand-logo {
  width: 88px !important;
  height: 88px !important;
  max-width: 88px !important;
  max-height: 88px !important;
  object-fit: contain;
  border-radius: 22px;
  box-shadow: 0 8px 24px rgba(29, 78, 216, 0.16);
  display: block;
  margin: 0 auto;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.ref-login-logo:hover,
.login-brand-logo:hover {
  transform: scale(1.05) rotate(1deg);
}

/* Form Groups & Labels */
.ref-form-group,
.login-form-group {
  margin-bottom: 1.25rem;
  text-align: left;
  width: 100%;
}

.ref-input-label,
.login-form-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.5rem;
  padding-left: 0.4rem;
  letter-spacing: -0.01em;
}

/* Capsule Pill Input Fields */
.ref-input-pill,
.login-input-pill {
  width: 100%;
  border-radius: var(--radius-pill);
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-card);
  padding: 0.85rem 1.35rem;
  font-size: 0.925rem;
  font-family: var(--font-sans);
  color: var(--text-main);
  outline: none;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.ref-input-pill::placeholder,
.login-input-pill::placeholder {
  color: var(--text-subtle);
  opacity: 0.85;
}

.ref-input-pill:focus,
.login-input-pill:focus {
  background: var(--bg-card);
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.15);
}

/* Password Input with Visibility Eye Toggle */
.password-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.password-input-wrap .ref-input-pill,
.password-input-wrap .login-input-pill {
  padding-right: 3rem;
}

.btn-toggle-pw {
  position: absolute;
  right: 1rem;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.25rem;
  transition: color 0.2s ease, transform 0.15s ease;
}

.btn-toggle-pw:hover {
  color: var(--text-main);
  transform: scale(1.1);
}

.btn-toggle-pw svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 2;
}

/* Action Rows */
.login-action-row {
  display: flex;
  justify-content: flex-end;
  margin-top: 0.4rem;
  margin-bottom: 1.25rem;
  width: 100%;
}

.login-forgot-link {
  background: none;
  border: none;
  color: var(--color-primary);
  font-size: 0.825rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
  padding: 0;
  transition: opacity 0.2s ease;
}

.login-forgot-link:hover {
  opacity: 0.8;
}

/* Login Submit Button */
.ref-btn-login,
.btn-primary-pill {
  width: 100%;
  border-radius: var(--radius-pill);
  background: var(--color-dark-pill);
  color: #FFFFFF;
  font-size: 0.95rem;
  font-weight: 700;
  padding: 0.9rem 1.5rem;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.12);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  box-sizing: border-box;
}

.ref-btn-login:hover,
.btn-primary-pill:hover {
  background: var(--color-dark-pill-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
}

.ref-btn-login:active,
.btn-primary-pill:active {
  transform: translateY(0);
}

.ref-btn-login:disabled,
.btn-primary-pill:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

/* Demo Button Row */
.login-demo-row {
  margin-top: 1.5rem;
  text-align: center;
  display: flex;
  justify-content: center;
  width: 100%;
}

.btn-secondary-pill {
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-card);
  color: var(--text-main);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.65rem 1.6rem;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-secondary-pill:hover {
  background: var(--bg-card);
  border-color: var(--color-primary);
  color: var(--color-primary);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
}

/* Alert Banner */
.login-alert-banner {
  background: #FEE2E2;
  border: 1px solid #FCA5A5;
  color: #B91C1C;
  border-radius: 14px;
  padding: 0.85rem 1rem;
  font-size: 0.825rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  box-sizing: border-box;
}

/* Password Strength Indicator */
.pw-strength-container {
  margin-top: 0.5rem;
  padding: 0 0.25rem;
}

.pw-strength-track {
  height: 5px;
  background: rgba(0, 0, 0, 0.08);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 0.35rem;
}

.pw-strength-bar {
  height: 100%;
  width: 0%;
  border-radius: 4px;
  transition: width 0.3s ease, background-color 0.3s ease;
}

.pw-strength-bar.weak { width: 25%; background-color: #EF4444; }
.pw-strength-bar.fair { width: 50%; background-color: #F59E0B; }
.pw-strength-bar.strong { width: 75%; background-color: #3B82F6; }
.pw-strength-bar.excellent { width: 100%; background-color: #10B981; }

.pw-strength-text {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
  text-align: right;
}

/* Demo Modal Specific */
.demo-modal-card {
  max-width: 400px;
  width: 90%;
  text-align: left;
  background: var(--bg-card);
  border-radius: 24px;
  padding: 2rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-card);
}

.modal-close-x {
  background: none;
  border: none;
  font-size: 1.2rem;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.25rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.modal-close-x:hover {
  background: rgba(0,0,0,0.05);
  color: var(--text-main);
}

/* HD Treats Menu & Flying Heart Particle FX */
.mfl-treat-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 8px 14px;
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}
.mfl-treat-btn:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
  border-color: var(--color-primary);
  background: var(--bg-card-subtle);
}
.mfl-treat-btn:active {
  transform: scale(0.95);
}
.mfl-treat-img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.1));
}
.mfl-treat-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-main);
}

@keyframes flyHeartFloat {
  0% {
    opacity: 0;
    transform: translate(0, 0) scale(0.5) rotate(0deg);
  }
  20% {
    opacity: 1;
    transform: translate(var(--hx, -15px), -30px) scale(1.2) rotate(var(--hrot, 15deg));
  }
  80% {
    opacity: 0.9;
    transform: translate(var(--hx2, -35px), -80px) scale(1.3) rotate(var(--hrot2, -15deg));
  }
  100% {
    opacity: 0;
    transform: translate(var(--hx3, -50px), -140px) scale(1.5) rotate(var(--hrot3, 25deg));
  }
}

.flying-pet-heart {
  position: absolute;
  pointer-events: none;
  font-size: 26px;
  line-height: 1;
  animation: flyHeartFloat 1.5s cubic-bezier(0.25, 1, 0.5, 1) forwards;
  z-index: 999;
  filter: drop-shadow(0 2px 8px rgba(244, 63, 94, 0.4));
}




/* ==========================================================================
   STATUS ACTION PILLS & RADAR STATUS BADGES
   ========================================================================== */
.btn-status-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  border: 1px solid var(--border-color, rgba(0,0,0,0.1));
  background: var(--bg-card, #ffffff);
  color: var(--text-main, #334155);
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.btn-status-action:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.btn-status-action[data-status="on_break"]:hover {
  background: rgba(245, 158, 11, 0.12);
  color: #d97706;
  border-color: rgba(245, 158, 11, 0.4);
}

.btn-status-action[data-status="quota_completed"]:hover {
  background: rgba(168, 85, 247, 0.12);
  color: #9333ea;
  border-color: rgba(168, 85, 247, 0.4);
}

.btn-status-action[data-status="feeling_sick"]:hover {
  background: rgba(249, 115, 22, 0.12);
  color: #ea580c;
  border-color: rgba(249, 115, 22, 0.4);
}

.btn-status-action[data-status="end_shift"]:hover {
  background: rgba(239, 68, 68, 0.12);
  color: #dc2626;
  border-color: rgba(239, 68, 68, 0.4);
}

.btn-status-action.active-choice {
  box-shadow: 0 0 0 2px var(--color-primary);
}

/* Radar Status Pills */
.mfl-status-pill.endshift {
  background: rgba(239, 68, 68, 0.15);
  color: #dc2626;
  border: 1px solid rgba(239, 68, 68, 0.3);
}
.mfl-status-pill.endshift .mfl-status-pill-dot {
  background: #ef4444;
}

.mfl-status-pill.quota {
  background: rgba(168, 85, 247, 0.15);
  color: #9333ea;
  border: 1px solid rgba(168, 85, 247, 0.3);
}
.mfl-status-pill.quota .mfl-status-pill-dot {
  background: #a855f7;
}

.mfl-status-pill.sick {
  background: rgba(249, 115, 22, 0.15);
  color: #ea580c;
  border: 1px solid rgba(249, 115, 22, 0.3);
}
.mfl-status-pill.sick .mfl-status-pill-dot {
  background: #f97316;
}

/* ==========================================================================
   MIND TREE (TIMETABLE) BUTTER UI & SHIFT ANIMATIONS
   ========================================================================== */
.mfl-tree-timeline {
  position: relative;
  border-left: 2px solid var(--border-color, rgba(0,0,0,0.1));
  padding-left: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.mfl-tree-node {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 20px;
  border-radius: 14px;
  background: var(--bg-card, rgba(255,255,255,0.7));
  border: 1px solid var(--border-color, rgba(0,0,0,0.08));
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  animation: mflNodeSlideIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.mfl-tree-node:hover {
  transform: translateX(4px) translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  border-color: var(--color-primary);
}

.mfl-tree-bullet {
  position: absolute;
  left: -33px;
  top: 20px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--bg-card, #fff);
  border: 3px solid var(--color-primary);
  box-shadow: 0 0 0 4px var(--bg-body, #f8fafc);
  transition: all 0.3s ease;
}

.mfl-tree-node.now-step {
  border-color: var(--color-primary);
  background: linear-gradient(135deg, rgba(2, 132, 199, 0.08), rgba(16, 185, 129, 0.05));
  box-shadow: 0 0 20px rgba(2, 132, 199, 0.15), 0 4px 16px rgba(0,0,0,0.06);
}

.mfl-tree-node.now-step .mfl-tree-bullet {
  background: var(--color-primary);
  border-color: #fff;
  box-shadow: 0 0 0 4px var(--color-primary), 0 0 16px var(--color-primary);
  animation: mflBulletPing 1.8s infinite cubic-bezier(0, 0, 0.2, 1);
}

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

@keyframes mflBulletPing {
  0% {
    box-shadow: 0 0 0 0 rgba(2, 132, 199, 0.7), 0 0 10px rgba(2, 132, 199, 0.5);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(2, 132, 199, 0), 0 0 20px rgba(2, 132, 199, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(2, 132, 199, 0), 0 0 10px rgba(2, 132, 199, 0);
  }
}

/* DYNAMIC TIMETABLE AMBIENT BANNER (Shift-Specific Butter UI Animation) */
.mfl-timetable-ambient-banner {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  padding: 22px 26px;
  margin-bottom: 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  transition: all 0.5s ease;
}

/* 1. Briefing Sunrise Horizon */
.shift-anim-briefing {
  background: linear-gradient(135deg, #f59e0b, #ea580c, #0284c7);
  color: #fff;
}
.shift-anim-briefing::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.25) 10%, transparent 60%);
  animation: mflSunrisePulse 6s ease-in-out infinite alternate;
  pointer-events: none;
}

/* 2. Eastern Corridor Light Trails */
.shift-anim-eastern {
  background: linear-gradient(135deg, #0284c7, #2563eb, #1e1b4b);
  color: #fff;
}
.shift-anim-eastern::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 200%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), rgba(56,189,248,0.4), transparent);
  animation: mflHighwayStream 3s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  pointer-events: none;
}

/* 3. Break Cozy Rest Calm */
.shift-anim-break {
  background: linear-gradient(135deg, #78350f, #d97706, #b45309);
  color: #fff;
}
.shift-anim-break::after {
  content: '☕';
  position: absolute;
  right: 20px;
  bottom: -10px;
  font-size: 80px;
  opacity: 0.15;
  animation: mflSteamFloat 4s ease-in-out infinite;
  pointer-events: none;
}

/* 4. Central Corridor Kinetic Freight */
.shift-anim-central {
  background: linear-gradient(135deg, #059669, #0284c7, #0f172a);
  color: #fff;
}
.shift-anim-central::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: radial-gradient(rgba(255,255,255,0.18) 1px, transparent 1px);
  background-size: 16px 16px;
  animation: mflGridMove 12s linear infinite;
  pointer-events: none;
}

/* 5. Western Corridor Aurora Pacific Sky */
.shift-anim-western {
  background: linear-gradient(135deg, #312e81, #7c3aed, #06b6d4);
  color: #fff;
}
.shift-anim-western::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(ellipse at 50% 120%, rgba(6,182,212,0.4) 0%, transparent 70%);
  animation: mflAuroraWave 6s ease-in-out infinite alternate;
  pointer-events: none;
}

/* 6. Shift Wrap-up Golden Sparkle */
.shift-anim-wrapup {
  background: linear-gradient(135deg, #d97706, #ca8a04, #1e293b);
  color: #fff;
}

/* 7. JUST ROAMING (Off-Schedule Prospecting Explorer) */
.shift-anim-roaming {
  background: linear-gradient(135deg, #1e1b4b, #4338ca, #0f172a);
  color: #fff;
  border: 1.5px solid rgba(99, 102, 241, 0.4);
}
.shift-anim-roaming::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(circle at 80% 20%, rgba(129,140,248,0.25) 0%, transparent 60%);
  animation: mflNebulaDrift 8s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes mflHighwayStream {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

@keyframes mflSunrisePulse {
  0% { transform: scale(0.9); opacity: 0.3; }
  100% { transform: scale(1.15); opacity: 0.6; }
}

@keyframes mflSteamFloat {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-10px) scale(1.05); }
}

@keyframes mflGridMove {
  from { background-position: 0 0; }
  to { background-position: 32px 32px; }
}

@keyframes mflAuroraWave {
  0% { opacity: 0.3; transform: scaleY(0.9); }
  100% { opacity: 0.7; transform: scaleY(1.1); }
}

@keyframes mflNebulaDrift {
  0% { transform: scale(0.95); opacity: 0.4; }
  100% { transform: scale(1.05); opacity: 0.8; }
}

/* Delete Inquiry Button */
.btn-delete-inquiry {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.25);
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.btn-delete-inquiry:hover {
  background: #ef4444;
  color: #fff;
  border-color: #ef4444;
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(239, 68, 68, 0.3);
}


/* ==========================================================================
   ANIME & CARTOON TIMETABLE VIBES & MASCOT ANIMATIONS
   ========================================================================== */
.anime-mascot-wrap {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: var(--bg-card-subtle, rgba(255,255,255,0.8));
  border: 1.5px solid var(--border-color, rgba(0,0,0,0.1));
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  flex-shrink: 0;
  overflow: hidden;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
}

.mfl-tree-node:hover .anime-mascot-wrap {
  transform: scale(1.15) rotate(4deg);
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.mfl-tree-node.now-step .anime-mascot-wrap {
  border-color: var(--color-primary);
  box-shadow: 0 0 16px rgba(2, 132, 199, 0.4), 0 0 30px rgba(99, 102, 241, 0.25);
  animation: animeMascotBounce 2s ease-in-out infinite alternate;
}

.anime-mascot-img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.15));
}

@keyframes animeMascotBounce {
  0% { transform: translateY(0px) scale(1); }
  50% { transform: translateY(-4px) scale(1.05) rotate(-2deg); }
  100% { transform: translateY(0px) scale(1); }
}

.anime-stage-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  background: linear-gradient(135deg, rgba(2, 132, 199, 0.15), rgba(99, 102, 241, 0.15));
  color: var(--color-primary);
  border: 1px solid rgba(2, 132, 199, 0.3);
  box-shadow: 0 1px 4px rgba(2, 132, 199, 0.1);
}

.mfl-tree-node.now-step .anime-stage-badge {
  background: linear-gradient(135deg, #0284c7, #6366f1);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 2px 10px rgba(2, 132, 199, 0.4);
  animation: animeBadgeGlow 2s infinite alternate;
}

@keyframes animeBadgeGlow {
  0% { filter: drop-shadow(0 0 4px rgba(2, 132, 199, 0.5)); }
  100% { filter: drop-shadow(0 0 12px rgba(99, 102, 241, 0.8)); }
}

/* Comic / Anime Speech Bubble in Timetable Cards */
.anime-dialogue-bubble {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  padding: 5px 12px;
  border-radius: 10px;
  background: var(--bg-card-subtle, rgba(0,0,0,0.03));
  border: 1px dashed var(--border-color, rgba(0,0,0,0.12));
  font-size: 11px;
  font-style: italic;
  font-weight: 600;
  color: var(--text-main);
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.02);
}

.mfl-tree-node.now-step .anime-dialogue-bubble {
  border-color: rgba(2, 132, 199, 0.4);
  background: rgba(2, 132, 199, 0.06);
  color: var(--color-primary);
}

/* Anime Ambient Stage Hero Card */
.anime-hero-banner-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  flex-wrap: wrap;
  gap: 16px;
}

.anime-hero-mascot-box {
  position: relative;
  width: 90px;
  height: 90px;
  border-radius: 20px;
  background: rgba(255,255,255,0.2);
  backdrop-filter: blur(12px);
  border: 2px solid rgba(255,255,255,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
  animation: animeFloatHero 4s ease-in-out infinite alternate;
}

.anime-hero-mascot-img {
  width: 76px;
  height: 76px;
  object-fit: contain;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,0.3));
}

@keyframes animeFloatHero {
  0% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-6px) rotate(2deg); }
  100% { transform: translateY(0px) rotate(0deg); }
}

/* Floating Anime Sparks */
@keyframes animeSparkleRotate {
  0% { transform: rotate(0deg) scale(0.9); opacity: 0.6; }
  50% { transform: rotate(180deg) scale(1.15); opacity: 1; }
  100% { transform: rotate(360deg) scale(0.9); opacity: 0.6; }
}

.anime-sparkle-star {
  display: inline-block;
  animation: animeSparkleRotate 3s linear infinite;
}
