        :root {
            --bg-app: #F7F9FC;
            --bg-surface: #FFFFFF;
            --bg-elevated: #FFFFFF;
            --bg-overlay: #F1F5F9;
            --bg-glass: rgba(255, 255, 255, 0.7);
            
            --text-primary: #0F172A;
            --text-secondary: #64748B;
            --text-tertiary: #94A3B8;
            --border-subtle: rgba(226, 232, 240, 0.8);
            
            --primary-base: #4F46E5;
            --primary-deep: #312E81;
            --primary-light: rgba(79, 70, 229, 0.06);
            --primary-glow: rgba(79, 70, 229, 0.15);
            
            --success: #10B981;
            --success-bg: rgba(16, 185, 129, 0.1);
            --warning: #F59E0B;
            --warning-bg: rgba(245, 158, 11, 0.1);
            --danger: #EF4444;
            --danger-bg: rgba(239, 68, 68, 0.1);

            --space-2: 8px;
            --space-3: 12px;
            --space-4: 16px;
            --space-5: 20px;
            --space-6: 24px;
            --space-8: 32px;
            --space-10: 40px;

            --radius-md: 10px;
            --radius-lg: 16px;
            --radius-xl: 24px;
            --radius-full: 9999px;
            
            --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.04), 0 1px 2px rgba(15, 23, 42, 0.02);
            --shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.05), 0 2px 4px -2px rgba(15, 23, 42, 0.02);
            --shadow-hover: 0 12px 24px -6px rgba(15, 23, 42, 0.08), 0 4px 12px -4px rgba(15, 23, 42, 0.04);
            
            --spring: cubic-bezier(0.175, 0.885, 0.32, 1.05);
            --ease: cubic-bezier(0.4, 0.0, 0.2, 1);
        }

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

        ::-webkit-scrollbar { width: 6px; height: 6px; }
        ::-webkit-scrollbar-track { background: transparent; }
        ::-webkit-scrollbar-thumb { background: #CBD5E1; border-radius: 10px; }
        ::-webkit-scrollbar-thumb:hover { background: #94A3B8; }
        * { scrollbar-width: thin; scrollbar-color: #CBD5E1 transparent; }

        body {
            font-family: 'Inter', -apple-system, sans-serif !important;
            background-color: var(--bg-app) !important;
            background-image: none !important;
            color: var(--text-primary) !important;
            -webkit-font-smoothing: antialiased;
            display: flex;
            min-height: 100vh;
            overflow-x: hidden;
        }

        /* Skeletons */
        .skeleton { position: relative; overflow: hidden; background-color: var(--bg-overlay); border-radius: 4px; color: transparent !important; border-color: transparent !important; box-shadow: none !important; }
        .skeleton::after {
            content: ''; position: absolute; top: 0; right: 0; bottom: 0; left: 0;
            transform: translateX(-100%);
            background: linear-gradient(90deg, rgba(255,255,255,0) 0, rgba(255,255,255,0.4) 20%, rgba(255,255,255,0.4) 60%, rgba(255,255,255,0) 100%);
            animation: shimmer 1.5s infinite;
        }
        .skeleton * { visibility: hidden !important; }
        @keyframes shimmer { 100% { transform: translateX(100%); } }
        
        .app-wrapper { display: contents; }
        
        /* Hero Banner */
        .hero-banner {
            position: relative; overflow: hidden;
            background: var(--bg-surface);
            border: 1px solid var(--border-subtle);
            border-radius: var(--radius-xl);
            padding: var(--space-8);
            margin-bottom: var(--space-8);
            box-shadow: var(--shadow-sm);
        }
        .hero-banner::before {
            content: ''; position: absolute; top: 0; right: 0; width: 60%; height: 100%;
            background: radial-gradient(ellipse at top right, rgba(79, 70, 229, 0.08) 0%, transparent 70%),
                        radial-gradient(ellipse at bottom right, rgba(16, 185, 129, 0.05) 0%, transparent 60%);
            z-index: 0; pointer-events: none;
        }
        .hero-content { position: relative; z-index: 1; display: flex; justify-content: space-between; align-items: stretch; }
        .hero-title { font-size: 28px; font-weight: 800; color: var(--text-primary); margin: 0 0 var(--space-2) 0; letter-spacing: -0.02em; }
        .hero-subtitle { font-size: 14px; color: var(--text-secondary); margin: 0; line-height: 1.5; }
        .hero-left { max-width: 60%; }
        .hero-date { font-size: 12px; font-weight: 600; color: var(--text-tertiary); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: var(--space-2); }
        .hero-right { display: flex; flex-direction: column; gap: var(--space-3); justify-content: center; min-width: 220px; }
        .hero-mini-card {
            background: rgba(255,255,255,0.6); backdrop-filter: blur(8px);
            border: 1px solid var(--border-subtle); border-radius: var(--radius-lg);
            padding: var(--space-3) var(--space-4); display: flex; align-items: center; justify-content: space-between; gap: 16px;
        }
        .hmc-label { font-size: 12px; color: var(--text-secondary); font-weight: 500; display: flex; align-items: center; gap: 6px; white-space: nowrap; }
        .hmc-value { font-size: 14px; font-weight: 700; color: var(--text-primary); font-variant-numeric: tabular-nums; white-space: nowrap; }
        .hmc-highlight { color: var(--primary-base); }
        
        @media (max-width: 1024px) {
            .hero-content { flex-direction: column; gap: var(--space-5); }
            .hero-left, .hero-right { max-width: 100%; }
        }
        
        body.no-scroll { overflow: hidden; touch-action: none; }

        .sidebar {
            width: 260px; background-color: var(--bg-surface);
            border-right: 1px solid var(--border-subtle);
            padding: 0;
            display: flex; flex-direction: column;
            position: fixed; height: 100vh; height: 100dvh; z-index: 1000;
            overflow-y: auto;
            padding-bottom: 20px;
        }
        
        .brand-header { 
            display: flex; align-items: center; justify-content: flex-start; gap: 12px; 
            padding: var(--space-6) var(--space-4); 
            margin-bottom: var(--space-4); 
            position: sticky; top: 0; background: var(--bg-surface); z-index: 10;
        }
        .brand-logo-img { width: 50px; height: auto; mix-blend-mode: multiply; display: block; }
        .brand-divider { width: 1.5px; min-width: 1.5px; height: 38px; background-color: #CBD5E1; margin: 0; }
        .brand-text-container { display: flex; flex-direction: column; align-items: flex-start; }
        .brand-text-top { font-size: 18px; font-weight: 800; color: #0A1128; line-height: 1.05; letter-spacing: -0.02em; }
        .brand-text-bottom { font-size: 18px; font-weight: 800; color: #0066FF; line-height: 1.05; letter-spacing: -0.02em; }
        .brand-tagline { display: flex; align-items: center; gap: 4px; font-size: 7px; font-weight: 700; color: var(--text-secondary); text-transform: uppercase; margin-top: 4px; letter-spacing: 0.02em; white-space: nowrap; }
        .brand-tagline .line { height: 1.5px; width: 12px; background-color: #0066FF; }
        
        .nav-section { margin-bottom: var(--space-6); }
        .nav-label { font-size: 11px; font-weight: 600; color: var(--text-tertiary); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: var(--space-2); padding: 0 var(--space-4); }
        
        .nav-item { display: flex; align-items: center; gap: var(--space-3); padding: 10px var(--space-4); color: var(--text-secondary); text-decoration: none; border-radius: var(--radius-md); font-size: 13px; font-weight: 500; margin-bottom: 2px; transition: all 0.2s var(--ease); }
        .nav-item i { width: 18px; color: var(--text-tertiary); transition: color 0.2s var(--ease); }
        .nav-item:hover { color: var(--text-primary); background-color: var(--bg-overlay); text-decoration: none; }
        .nav-item:hover i { color: var(--text-secondary); }
        
        .nav-item.active { color: var(--primary-deep); background-color: var(--primary-light); font-weight: 600; }
        .nav-item.active i { color: var(--primary-base); }
        .mobile-close { display: none; background: transparent; border: none; font-size: 20px; color: var(--text-primary); cursor: pointer; margin-left: auto; }

        .topbar {
            height: 60px; position: sticky; top: 0; z-index: 40;
            background: var(--bg-glass); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
            border-bottom: 1px solid var(--border-subtle);
            display: flex; justify-content: flex-end; align-items: center;
            padding: 0 var(--space-8); gap: var(--space-4); width: 100%;
        }
        
        .avatar-initials { 
            width: 32px; height: 32px; border-radius: 50%; 
            background: var(--primary-base); color: white; 
            display: flex; align-items: center; justify-content: center; 
            font-size: 12px; font-weight: 600; border: 1px solid var(--border-subtle); cursor: pointer; 
        }
        .mobile-brand { display: none; }

        .layout-wrapper { margin-left: 260px; display: flex; flex-direction: column; flex: 1; min-height: 100vh; max-width: calc(100% - 260px); width: calc(100% - 260px); }
        .main-columns { display: flex; flex-direction: row; flex: 1; min-width: 0; max-width: 100%; }
        .center-column { flex: 1; padding: var(--space-6) var(--space-8); min-width: 0; max-width: 100%; overflow-x: hidden; }
        .bottom-nav { display: none; }

        .v2-card {
            background: var(--bg-surface);
            border: 1px solid var(--border-subtle);
            box-shadow: var(--shadow-sm);
            border-radius: var(--radius-lg);
            padding: 25px;
            max-width: 1000px;
            margin: 0 auto 24px auto;
        }

        /* V2 Global Component CSS (Modals, Pickers, Dropdowns) */
        /* --- Alert Modal --- */
        .v2-alert-overlay {
            position: fixed; inset: 0; background: rgba(0,0,0,0.5);
            backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
            z-index: 99999; display: none; align-items: center; justify-content: center;
            padding: 20px; animation: overlayFade 0.3s ease;
        }
        .v2-alert-card {
            background: var(--bg-surface); border: 1px solid var(--border-subtle);
            box-shadow: var(--shadow-sm); width: 100%; max-width: 400px;
            text-align: center; position: relative; padding: 40px 30px;
            border-radius: 24px; animation: modalBounce 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
        }
        .v2-alert-icon-wrap {
            width: 70px; height: 70px; background: rgba(239, 68, 68, 0.1);
            border-radius: 50%; display: flex; align-items: center; justify-content: center;
            margin: 0 auto 20px; color: var(--danger); border: 1px solid rgba(239, 68, 68, 0.3);
        }
        .v2-alert-title { font-size: 22px; font-weight: 800; color: var(--text-main); margin-bottom: 8px; letter-spacing: -0.5px; }
        .v2-alert-desc { font-size: 15px; color: var(--text-secondary); line-height: 1.5; margin-bottom: 30px; }

        /* --- Pickers --- */
        .custom-picker-overlay {
            position: fixed; top: 0; left: 0; right: 0; bottom: 0;
            background: rgba(15, 23, 42, 0.4);
            backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
            z-index: 100000; display: none; align-items: center; justify-content: center;
        }
        .custom-picker-card {
            background: white; border-radius: 16px; padding: 24px;
            width: 340px; box-shadow: 0 20px 40px rgba(0,0,0,0.1);
            font-family: 'Inter', sans-serif;
            animation: modalFadeIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        }
        .cp-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
        .cp-nav {
            width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--border-subtle);
            background: var(--bg-overlay); display: flex; align-items: center; justify-content: center;
            cursor: pointer; transition: 0.2s; color: var(--text-primary);
        }
        .cp-nav:hover { background: #E2E8F0; }
        .cp-title { font-weight: 700; font-size: 16px; color: var(--text-primary); }
        .cp-days-header { display: grid; grid-template-columns: repeat(7, 1fr); text-align: center; font-size: 12px; font-weight: 600; color: var(--text-tertiary); margin-bottom: 12px; }
        .cp-days-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; text-align: center; }
        .cp-day {
            width: 36px; height: 36px; display: flex; align-items: center; justify-content: center;
            border-radius: 10px; font-size: 14px; font-weight: 500; cursor: pointer; transition: 0.2s;
            color: var(--text-primary); margin: auto;
        }
        .cp-day:hover:not(.empty):not(.selected) { background: var(--bg-overlay); }
        .cp-day.empty { cursor: default; }
        .cp-day.selected { background: #1D4ED8; color: white; box-shadow: 0 4px 10px rgba(29, 78, 216, 0.3); }
        .cp-day.disabled { color: var(--text-tertiary); opacity: 0.5; cursor: not-allowed; }
        .cp-day.disabled:hover { background: transparent; }
        .cp-actions { display: flex; gap: 12px; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--border-subtle); }
        .cp-btn-cancel, .cp-btn-ok {
            flex: 1; padding: 12px; border-radius: 10px; font-size: 14px; font-weight: 600; cursor: pointer; transition: 0.2s;
            border: none;
        }
        .cp-btn-cancel { background: white; border: 1px solid var(--border-subtle); color: var(--text-primary); }
        .cp-btn-cancel:hover { background: var(--bg-overlay); }
        .cp-btn-ok { background: #1D4ED8; border: 1px solid #1D4ED8; color: white; }
        .cp-btn-ok:hover { background: #1E3A8A; }
        
        .time-col { display: flex; flex-direction: column; align-items: center; gap: 10px; }
        .time-val { font-size: 24px; font-weight: 700; color: var(--text-primary); width: 50px; text-align: center; }
        .time-label { font-size: 12px; color: var(--text-tertiary); margin-top: -6px; }
        .cp-ampm-toggle { display: flex; background: var(--bg-overlay); border-radius: 8px; padding: 4px; }
        .cp-ampm-opt { padding: 8px 16px; border-radius: 6px; font-size: 14px; font-weight: 600; color: var(--text-secondary); cursor: pointer; transition: 0.2s; }
        .cp-ampm-opt.active { background: white; color: var(--text-primary); box-shadow: var(--shadow-sm); }
        
        /* --- Dropdowns --- */
        .custom-select-wrapper { position: relative; width: 100%; user-select: none; }
        .custom-select-trigger {
            display: flex; align-items: center; justify-content: space-between;
            width: 100%; padding: 12px 16px; border-radius: 12px;
            background: var(--bg-surface); border: 1px solid var(--border-subtle);
            color: var(--text-main); font-size: 15px; cursor: pointer; transition: 0.2s;
        }
        .custom-select-trigger:hover { border-color: var(--border-hover); }
        .custom-select-wrapper.open { z-index: 100; }
        .custom-select-wrapper.open .custom-select-trigger { border-color: var(--primary-base); box-shadow: 0 0 0 3px var(--primary-light); }
        .custom-select-options {
            position: absolute; top: calc(100% + 8px); left: 0; right: 0;
            background: white; border-radius: 12px; border: 1px solid var(--border-subtle);
            box-shadow: 0 10px 25px rgba(0,0,0,0.1); overflow: hidden;
            display: none; z-index: 1000; animation: modalFadeIn 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        }
        .custom-select-wrapper.open .custom-select-options { display: block; }
        .custom-select-option {
            padding: 12px 16px; cursor: pointer; transition: 0.2s; color: var(--text-secondary); font-size: 15px;
        }
        .custom-select-option:hover { background: var(--bg-overlay); color: var(--primary-base); }
        .custom-select-option:not(:last-child) { border-bottom: 1px solid var(--border-subtle); }

        @keyframes overlayFade { from{opacity:0;} to{opacity:1;} }
        @keyframes modalBounce { 
            0% { transform: scale(0.9); opacity: 0; }
            50% { transform: scale(1.02); }
            100% { transform: scale(1); opacity: 1; }
        }
        @keyframes modalFadeIn { 
            from { transform: translateY(-10px); opacity: 0; } 
            to { transform: translateY(0); opacity: 1; } 
        }

        @media (max-width: 768px) {
            .sidebar { 
                display: flex !important; transform: translateX(-100%); 
                transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1); 
                width: 280px; z-index: 1000; top: 60px; height: calc(100vh - 130px);
                height: calc(100dvh - 130px); box-shadow: 4px 0 25px rgba(0,0,0,0.15); 
                padding-bottom: 20px; border-right: 1px solid var(--border-subtle);
            }
            .sidebar.open { transform: translateX(0); }
            .mobile-close { display: block; }
            .layout-wrapper { margin-left: 0; width: 100%; max-width: 100%; padding-top: 60px; padding-bottom: 100px; }
            .center-column { padding: var(--space-4); padding-bottom: 20px; max-width: 100%; }
            
            .topbar { 
                display: flex; height: 60px; background: var(--bg-surface);
                border-bottom: 1px solid var(--border-subtle); padding: 0 16px;
                align-items: center; justify-content: space-between; position: fixed;
                top: 0; left: 0; right: 0; z-index: 1010;
            }
            .mobile-brand { display: flex; align-items: center; gap: 8px; font-weight: 800; color: #0A1128; font-size: 16px; margin-right: auto; }
            .mobile-brand img { height: 28px; mix-blend-mode: multiply; }
            
            .bottom-nav {
                display: flex; position: fixed; bottom: 0; left: 0; right: 0;
                background: var(--bg-glass); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
                border-top: 1px solid var(--border-subtle);
                height: 70px; z-index: 1000; justify-content: space-around; align-items: center; padding-bottom: max(12px, env(safe-area-inset-bottom));
            }
            .bottom-nav-item { display: flex; flex-direction: column; align-items: center; gap: 4px; color: var(--text-secondary); font-size: 10px; font-weight: 600; text-decoration: none; border: none; background: transparent; cursor: pointer; }
            .bottom-nav-item.active { color: var(--primary-base); }
        }


/* Standard V2 Buttons */
.v2-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-size: 13px; font-weight: 600; padding: 10px 18px; border-radius: var(--radius-md); transition: all 0.2s var(--spring); cursor: pointer; text-decoration: none; border: none; box-sizing: border-box; }
.v2-btn-primary { background: var(--primary-base); color: white; box-shadow: 0 4px 12px var(--primary-glow); }
.v2-btn-primary:hover { transform: translateY(-2px); background: var(--primary-deep); }
.v2-btn-secondary { background: var(--bg-surface); color: var(--text-primary); border: 1px solid var(--border-subtle); }
.v2-btn-secondary:hover { background: var(--bg-hover); transform: translateY(-2px); }

/* ========== GOURISEN HERO BANNER ========== */
.v2-hero-banner { background: var(--bg-surface); padding: 25px; border-radius: var(--radius-lg); border: 1px solid var(--border-subtle); display: flex; align-items: center; gap: 20px; position: relative; overflow: hidden; margin-bottom: var(--space-4); flex-wrap: wrap; }
.v2-hero-banner::before { content: ''; position: absolute; top: -50%; right: -10%; width: 300px; height: 300px; background: radial-gradient(circle, rgba(79, 70, 229, 0.1) 0%, transparent 70%); z-index: 0; pointer-events: none; }
.v2-hero-icon { width: 54px; height: 54px; background: rgba(79, 70, 229, 0.1); color: var(--primary); border-radius: 12px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; z-index: 1; }
.v2-hero-subtitle { font-size: 11px; font-weight: 700; color: var(--primary); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 4px; z-index: 1; position: relative; }
.v2-hero-title { font-size: 24px; font-weight: 800; color: var(--text-primary); margin: 0; z-index: 1; position: relative; }


/* ========== FILTER PILLS ========== */
.filter-pills { display: flex; gap: 10px; margin-bottom: 25px; overflow-x: auto; padding-bottom: 5px; scrollbar-width: none; -ms-overflow-style: none; }
.filter-pills::-webkit-scrollbar { display: none; }
.filter-pill { padding: 8px 16px; border-radius: 20px; font-size: 13px; font-weight: 700; color: var(--text-secondary); background: var(--bg-surface); border: 1px solid var(--border-subtle); text-decoration: none; white-space: nowrap; transition: all 0.2s; }
.filter-pill.active { background: var(--primary); color: #fff; border-color: var(--primary); box-shadow: 0 4px 10px rgba(79, 70, 229, 0.2); }
.filter-pill:hover:not(.active) { background: var(--bg-overlay); }

.filter-count-badge { margin-left: auto; background: rgba(16, 185, 129, 0.1); color: #10b981; padding: 6px 14px; border-radius: 30px; font-size: 11px; font-weight: 800; border: 1px solid rgba(16, 185, 129, 0.15); display: flex; align-items: center; gap: 6px; white-space: nowrap; height: fit-content; align-self: center; }
@media (max-width: 600px) { .filter-count-badge { margin-left: 0; } }
