        /* ==========================================================================
           1. DESIGN SYSTEM & VARIABLES
           ========================================================================== */
        :root {
            /* Palette */
            --brand-primary: #5fb4ff;
            --brand-primary-light: #8eceff;
            --brand-secondary: #f08a4b;
            --brand-dark: #e8f3ff;
            --brand-light: #0b1220;
            --brand-white: #e8e9ea;
            
            /* Surfaces & Backgrounds */
            --bg-base: #050b16;
            --bg-surface: #0f1b2e;
            --bg-surface-hover: #172740;
            --bg-subtle: #223452;
            
            /* Typography Colors */
            --text-main: #dce8f8;
            --text-muted: #a9bfd8;
            --text-light: #7d97b6;
            --text-inverse: #ffffff;

            /* Fonts */
            --font-damion: 'Damion', cursive;
            --font-tangerine: 'Tangerine', cursive;

            
            /* Borders & Status */
            --border-light: #203550;
            --border-strong: #2d4a70;
            --status-success: #3bd2a1;
            --status-success-bg: rgba(59, 210, 161, 0.18);
            --status-warning: #ffbe73;
            --status-warning-bg: rgba(255, 190, 115, 0.2);
            --status-info: #7bc2ff;
            --status-info-bg: rgba(123, 194, 255, 0.18);
            --status-error: #ff6f8f;

            /* Typography Settings */
            --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
            --text-base: 1.125rem; /* 18px base for 45+ legibility */
            --text-sm: 0.95rem;
            --text-xs: 0.85rem;
            --text-lg: 1.25rem;
            --text-xl: 1.5rem;
            --text-2xl: 2rem;
            --text-3xl: 2.5rem;

            /* Spacing (8px scale) */
            --space-1: 0.5rem;   /* 8px */
            --space-2: 1rem;     /* 16px */
            --space-3: 1.5rem;   /* 24px */
            --space-4: 2rem;     /* 32px */
            --space-6: 3rem;     /* 48px */
            --space-8: 4rem;     /* 64px */
            
            /* Radii & Shadows */
            --radius-sm: 8px;
            --radius-md: 12px;
            --radius-lg: 16px;
            --radius-full: 9999px;
            
            --shadow-sm: 0 6px 14px rgba(2, 7, 18, 0.35);
            --shadow-md: 0 10px 24px rgba(2, 7, 18, 0.42);
            --shadow-lg: 0 18px 36px rgba(2, 7, 18, 0.5);
            --shadow-float: 0 28px 60px rgba(2, 7, 18, 0.56);
            
            --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
        }

        /* ==========================================================================
           2. RESET & BASE (Mobile First)
           ========================================================================== */
        *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
        
        body {
            font-family: var(--font-sans);
            background:
                radial-gradient(1100px 640px at 8% -8%, rgba(95, 180, 255, 0.26), transparent 54%),
                radial-gradient(900px 580px at 92% -16%, rgba(240, 138, 75, 0.2), transparent 52%),
                linear-gradient(180deg, #050b16 0%, #060d1a 45%, #050b16 100%);
            background-color: var(--bg-base);
            color: var(--text-main);
            font-size: var(--text-base);
            line-height: 1.6;
            -webkit-font-smoothing: antialiased;
            overflow-x: hidden;
            min-height: 100vh;
        }

        h1, h2, h3, h4, h5 { font-weight: 700; line-height: 1.2; color: var(--brand-dark); letter-spacing: -0.02em; }
        p { margin-bottom: 1rem; }
        a { text-decoration: none; color: var(--brand-primary); transition: var(--transition); cursor: pointer; }
        a:hover { color: var(--brand-primary-light); }
        button { font-family: inherit; cursor: pointer; border: none; background: none; font-size: inherit; }
        ul { list-style: none; }
        img { max-width: 100%; height: auto; display: block; border-radius: var(--radius-sm); }
        input, select, textarea { font-family: inherit; font-size: inherit; }

        /* ==========================================================================
           3. UTILITIES & LAYOUT
           ========================================================================== */
        .container { width: 100%; max-width: 1400px; margin: 0 auto; padding: 0 var(--space-2); }
        
        .flex { display: flex; }
        .flex-col { flex-direction: column; }
        .items-center { align-items: center; }
        .items-start { align-items: flex-start; }
        .justify-between { justify-content: space-between; }
        .justify-center { justify-content: center; }
        .justify-end { justify-content: flex-end; }
        .gap-1 { gap: var(--space-1); }
        .gap-2 { gap: var(--space-2); }
        .gap-3 { gap: var(--space-3); }
        .gap-4 { gap: var(--space-4); }
        .flex-wrap { flex-wrap: wrap; }
        .flex-1 { flex: 1; }
        
        .grid { display: grid; gap: var(--space-3); }
        .grid-cols-1 { grid-template-columns: 1fr; }
        
        .mt-1 { margin-top: var(--space-1); } .mt-2 { margin-top: var(--space-2); } .mt-4 { margin-top: var(--space-4); }
        .mb-1 { margin-bottom: var(--space-1); } .mb-2 { margin-bottom: var(--space-2); } .mb-4 { margin-bottom: var(--space-4); }
        .p-2 { padding: var(--space-2); } .p-3 { padding: var(--space-3); } .p-4 { padding: var(--space-4); }
        
        .text-center { text-align: center; }
        .text-muted { color: var(--text-muted); }
        .text-xs { font-size: var(--text-xs); }
        .text-sm { font-size: var(--text-sm); }
        .text-lg { font-size: var(--text-lg); }
        .text-xl { font-size: var(--text-xl); }
        .text-2xl { font-size: var(--text-2xl); }
        .text-3xl { font-size: var(--text-3xl); }
        .font-bold { font-weight: 700; }
        .font-semibold { font-weight: 600; }
        .hidden { display: none !important; }
        .w-full { width: 100%; }
        .mx-auto { margin-left: auto; margin-right: auto; }
        .max-w-3xl { max-width: 48rem; }
        .max-w-4xl { max-width: 56rem; }
        .opacity-75 { opacity: 0.75; }
        .cursor-pointer { cursor: pointer; }
        .transition { transition: var(--transition); }
        .items-end { align-items: flex-end; }
        .pt-2 { padding-top: var(--space-2); }
        .pt-4 { padding-top: var(--space-4); }
        .mt-auto { margin-top: auto; }

        .ui-icon {
            color: var(--status-info);
            margin-right: 0.35rem;
            font-size: 0.92em;
            vertical-align: -0.08em;
        }
        .ui-icon-warm { color: var(--status-warning); }

        /* Responsive Breakpoints */
        @media (min-width: 768px) {
            .container { padding: 0 var(--space-4); }
            .md\:grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
            .md\:grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
            .md\:flex-row { flex-direction: row; }
            .md\:items-center { align-items: center; }
            .md\:items-end { align-items: flex-end; }
            .md\:hidden { display: none !important; }
            .md\:block { display: block !important; }
            .md\:w-auto { width: auto !important; }
        }
        @media (min-width: 1024px) {
            .lg\:grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
            .lg\:grid-cols-4 { grid-template-columns: repeat(4, 1fr); }
            .lg\:layout-sidebar { grid-template-columns: 300px 1fr; }
            .lg\:layout-dashboard { grid-template-columns: 250px 1fr; }
            .lg\:hidden { display: none !important; }
            .lg\:flex { display: flex !important; }
        }

        /* ==========================================================================
           4. UI COMPONENTS
           ========================================================================== */
        /* Buttons */
        .btn {
            display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
            padding: 0.75rem 1.5rem; border-radius: var(--radius-md); font-weight: 600;
            transition: var(--transition); min-height: 48px; user-select: none; white-space: nowrap;
        }
        .btn-primary { background-color: var(--brand-primary); color: var(--text-inverse); box-shadow: var(--shadow-sm); }
        .btn-primary:hover { background-color: var(--brand-primary-light); transform: translateY(-2px); box-shadow: var(--shadow-md); color: #031020; }
        .btn-accent { background-color: var(--brand-secondary); color: var(--text-inverse); box-shadow: var(--shadow-sm); }
        .btn-accent:hover { background-color: #ffa86c; transform: translateY(-2px); box-shadow: var(--shadow-md); color: #2e1200; }
        .btn-outline { border: 2px solid var(--border-strong); color: var(--text-main); background: transparent; }
        .btn-outline:hover { border-color: var(--brand-primary); color: var(--brand-primary-light); background: rgba(123, 194, 255, 0.08); }
        .btn-ghost { color: var(--text-muted); }
        .btn-ghost:hover { background-color: rgba(123, 194, 255, 0.1); color: var(--text-main); }
        .btn-sm { padding: 0.5rem 1rem; min-height: 36px; font-size: var(--text-sm); }
        .btn-icon { padding: 0.5rem; min-height: 40px; min-width: 40px; border-radius: var(--radius-full); }
        .btn-block { width: 100%; }

        /* Cards */
        .card {
            background-color: var(--bg-surface); border-radius: var(--radius-lg);
            border: 1px solid var(--border-light); box-shadow: var(--shadow-sm);
            transition: var(--transition); position: relative; display: flex; flex-direction: column; overflow: hidden;
            backdrop-filter: blur(4px);
        }
        .card:hover { box-shadow: var(--shadow-lg); border-color: #3f5f8d; transform: translateY(-3px); }
        .card-header { padding: var(--space-3) var(--space-3) 0; }
        .card-body { padding: var(--space-3); flex-grow: 1; }
        .card-footer { padding: var(--space-2) var(--space-3); border-top: 1px solid var(--border-light); background: var(--bg-surface-hover); display: flex; align-items: center; justify-content: space-between;}

        /* Badges */
        .badge { display: inline-flex; align-items: center; gap: 4px; padding: 0.25rem 0.75rem; border-radius: var(--radius-full); font-size: var(--text-xs); font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; }
        .badge-blue { background-color: var(--status-info-bg); color: var(--status-info); }
        .badge-green { background-color: var(--status-success-bg); color: var(--status-success); }
        .badge-orange { background-color: var(--status-warning-bg); color: var(--status-warning); }
        .badge-dark { background-color: #10243e; color: #eaf4ff; }

        /* Forms */
        .form-group { margin-bottom: var(--space-2); }
        .form-label { display: block; font-weight: 600; margin-bottom: 0.5rem; color: var(--text-main); font-size: var(--text-sm); }
        .form-control {
            width: 100%; padding: 0.875rem 1rem; border: 1px solid var(--border-strong);
            border-radius: var(--radius-md); background-color: var(--bg-surface);
            transition: var(--transition); color: var(--text-main);
        }
        .form-control:focus { outline: none; border-color: var(--brand-primary); box-shadow: 0 0 0 4px rgba(123, 194, 255, 0.2); }
        .form-control::placeholder { color: var(--text-light); }
        .input-group { display: flex; align-items: center; position: relative; }
        .input-icon { position: absolute; left: 1rem; color: var(--text-muted); }
        .input-group .form-control { padding-left: 2.75rem; }

        /* Avatar / Logo Placeholders */
        .avatar {
            width: 48px; height: 48px; border-radius: var(--radius-full); background: var(--bg-subtle);
            display: flex; align-items: center; justify-content: center; font-weight: 700; color: var(--text-muted);
            border: 2px solid #10243e; box-shadow: var(--shadow-sm); flex-shrink: 0; object-fit: cover;
        }
        .avatar-lg { width: 80px; height: 80px; font-size: 1.5rem; }
        .logo-box { width: 64px; height: 64px; border-radius: var(--radius-md); background: var(--bg-surface); border: 1px solid var(--border-light); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 1.2rem; color: var(--brand-primary); box-shadow: var(--shadow-sm); flex-shrink: 0; }

        /* Skeletons (Loading States) */
        .skeleton { background: linear-gradient(90deg, #1f3350 25%, #284267 50%, #1f3350 75%); background-size: 200% 100%; animation: loading 1.5s infinite; border-radius: var(--radius-sm); }
        .skel-text { height: 1rem; width: 100%; margin-bottom: 0.5rem; }
        .skel-title { height: 1.5rem; width: 60%; margin-bottom: 1rem; }
        .skel-img { height: 150px; width: 100%; }
        @keyframes loading { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

        /* ==========================================================================
           5. APP STRUCTURE
           ========================================================================== */
        
        /* Navbar */
        .navbar {
            background: rgba(7, 14, 26, 0.78); border-bottom: 1px solid var(--border-light);
            position: sticky; top: 0; z-index: 100; padding: var(--space-2) 0; box-shadow: var(--shadow-sm);
            backdrop-filter: blur(12px);
        }
        .navbar .container { display: flex; justify-content: space-between; align-items: center; }
        .brand { font-family: 'Inter', sans-serif; font-size: var(--text-2xl); font-weight: 800; color: var(--brand-white); display: flex; align-items: center; }
        .brand span { font-family: 'Damion', cursive; color: var(--brand-white); font-size: 2.5rem; margin-left: -0.25rem; }
        
        /* Desktop Navigation */
        .nav-menu { display: none; }
        @media (min-width: 1024px) {
            .nav-menu { display: flex; align-items: center; gap: var(--space-1); background: var(--bg-base); padding: 0.25rem; border-radius: var(--radius-full); }
            .nav-item { padding: 0.5rem 1.25rem; border-radius: var(--radius-full); font-weight: 600; color: var(--text-muted); transition: var(--transition); }
            .nav-item:hover { color: var(--brand-primary-light); background: rgba(123, 194, 255, 0.12); }
            .nav-item.active { background: var(--bg-surface); color: var(--brand-primary); box-shadow: var(--shadow-sm); }
        }

        /* User Controls (Header Right) */
        .user-controls { display: flex; align-items: center; gap: var(--space-2); }
        .notification-bell { position: relative; }
        .notification-dot { position: absolute; top: 0; right: 0; width: 10px; height: 10px; background: var(--status-error); border-radius: 50%; border: 2px solid #10233a; }

        /* Mobile Menu Drawer */
        .mobile-drawer {
            position: fixed; top: 0; right: -100%; width: 85%; max-width: 400px; height: 100vh;
            background: #0a1629; box-shadow: -10px 0 30px rgba(0,0,0,0.45); z-index: 200;
            transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1); padding: var(--space-4) var(--space-3);
            display: flex; flex-direction: column; overflow-y: auto;
        }
        .mobile-drawer.open { right: 0; }
        .drawer-overlay {
            position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; background: rgba(2,8,20,0.7);
            backdrop-filter: blur(4px); z-index: 199; opacity: 0; pointer-events: none; transition: opacity 0.3s;
        }
        .drawer-overlay.open { opacity: 1; pointer-events: auto; }

        /* Hero Section */
        .hero {
           background-image: 
                radial-gradient(circle at 50% 0%, var(--primary-glow) 0%, transparent 50%),
                radial-gradient(circle at 85% 30%, rgba(37, 99, 235, 0.15) 0%, transparent 40%),
                radial-gradient(circle at 15% 70%, rgba(14, 165, 233, 0.1) 0%, transparent 40%);
            background-repeat: no-repeat;
            background-attachment: fixed;
            color: var(--text-inverse); padding: var(--space-8) 0 var(--space-6);
            text-align: center; position: relative; overflow: hidden;
        }
        .hero::before {
            content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
            background:
                radial-gradient(circle at 20% 20%, rgba(142, 206, 255, 0.22), transparent 32%),
                radial-gradient(circle at 82% 12%, rgba(240, 138, 75, 0.2), transparent 30%),
                url('data:image/svg+xml;utf8,<svg width="44" height="44" viewBox="0 0 44 44" xmlns="http://www.w3.org/2000/svg"><path d="M0 0h44v44H0V0zm22 22h22v22H22V22zM0 22h22v22H0V22z" fill="rgba(255,255,255,0.03)" fill-rule="evenodd"/></svg>');
        }
        .hero-content { position: relative; z-index: 2; max-width: 800px; margin: 0 auto; }
        .hero h1 { color: var(--text-inverse); font-size: clamp(2.5rem, 5vw, 4.5rem); margin-bottom: var(--space-2); line-height: 1.1; }
        .hero p { font-size: var(--text-xl); color: #c9ddf3; margin-bottom: var(--space-4); font-weight: 400; }

        /* Global Smart Search Bar */
        .search-hero-bar {
            background: var(--bg-surface); padding: var(--space-1); border-radius: var(--radius-lg);
            box-shadow: var(--shadow-float); display: flex; flex-direction: column; gap: var(--space-1);
            max-width: 1000px; margin: -3rem auto var(--space-6) auto; position: relative; z-index: 10; border: 1px solid var(--border-light);
        }
        @media (min-width: 768px) {
            .search-hero-bar { flex-direction: row; border-radius: var(--radius-full); padding: 0.5rem; align-items: center; }
            .search-hero-bar .input-group { flex: 1; }
            .search-hero-bar .form-control { border: none; background: transparent; box-shadow: none; font-size: 1.1rem; }
            .search-hero-bar .divider { width: 1px; height: 32px; background: var(--border-light); margin: 0 0.5rem; }

            #directory-location-group {
                flex: 0 0 auto;
            }

            #directory-location-select {
                width: max-content;
                min-width: 16ch;
                max-width: none;
                padding-right: 2rem;
            }

            #directory-search-group {
                flex: 1 1 auto;
                min-width: 0;
            }

            #directory-search-input {
                min-width: 0;
            }
        }

        /* Views / Tabs Handling */
        .view-section { display: none; animation: fadeIn 0.4s ease-out; }
        .view-section.active { display: block; }
        .hub-content-spaced { padding-top: var(--space-3); }
        @keyframes fadeIn { from { opacity: 0; transform: translateY(15px); } to { opacity: 1; transform: translateY(0); } }

        /* ==========================================================================
           6. SPECIFIC VIEW STYLING (The 7 Hubs)
           ========================================================================== */

        /* Directory Grid Items */
        .verified-tick { color: var(--status-success); display: inline-flex; align-items: center; }
        .premium-border { border: 2px solid rgba(255, 190, 115, 0.72); }
        .premium-bg { background: linear-gradient(to right, rgba(255, 190, 115, 0.14), transparent); }

        .directory-view-active {
            background: var(--bg-subtle) !important;
            color: var(--brand-dark) !important;
        }

        .directory-list-view {
            grid-template-columns: 1fr !important;
        }

        .directory-list-view > article.card {
            max-width: 100%;
        }

        /* Event Calendar Styling */
        .event-date-box { background: var(--bg-base); border: 1px solid var(--border-strong); border-radius: var(--radius-md); text-align: center; padding: 0.5rem; min-width: 70px; }
        .event-month { font-size: var(--text-xs); font-weight: 700; color: var(--brand-secondary); text-transform: uppercase; }
        .event-day { font-size: var(--text-2xl); font-weight: 800; color: var(--brand-dark); line-height: 1; margin-top: 2px; }

        /* B2B Deals */
        .deals-banner {
            border: 1px solid var(--border-light);
            background: linear-gradient(135deg, rgba(240, 138, 75, 0.2) 0%, rgba(12, 25, 43, 0.95) 46%, rgba(95, 180, 255, 0.2) 100%);
            overflow: hidden;
            position: relative;
        }
        .deals-banner::after {
            content: '';
            position: absolute;
            right: -60px;
            top: -60px;
            width: 180px;
            height: 180px;
            border-radius: 50%;
            background: rgba(240, 138, 75, 0.2);
        }

        .deal-card {
            border: 1px solid var(--border-light);
            overflow: hidden;
        }
        .deal-card-head {
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: var(--space-2);
            padding: var(--space-2) var(--space-3);
            border-bottom: 1px solid var(--border-light);
            background: var(--bg-surface-hover);
        }
        .deal-partner {
            font-size: var(--text-xs);
            font-weight: 700;
            color: var(--text-muted);
            text-transform: uppercase;
            letter-spacing: 0.04em;
        }
        .deal-label {
            font-size: var(--text-xs);
            font-weight: 800;
            color: var(--brand-secondary);
            letter-spacing: 0.08em;
            text-transform: uppercase;
        }
        .deal-value {
            font-size: clamp(1.8rem, 3.3vw, 2.25rem);
            font-weight: 800;
            line-height: 1.05;
            color: var(--brand-dark);
            letter-spacing: -0.02em;
        }
        .deal-meta {
            display: flex;
            flex-direction: column;
            gap: 0.4rem;
            color: var(--text-muted);
            font-size: var(--text-sm);
        }
        .deal-meta li {
            position: relative;
            padding-left: 1rem;
        }
        .deal-meta li::before {
            content: '';
            width: 6px;
            height: 6px;
            border-radius: 50%;
            background: var(--brand-secondary);
            position: absolute;
            left: 0;
            top: 0.55rem;
        }
        .deal-card-highlight {
            border-color: rgba(123, 194, 255, 0.55);
            background: linear-gradient(180deg, rgba(12, 31, 56, 1) 0%, rgba(16, 39, 67, 0.95) 70%);
        }

        .job-card .card-body,
        .event-card .card-body {
            display: flex;
            flex-direction: column;
            height: 100%;
        }

        .job-card .btn,
        .event-card .btn {
            margin-top: auto;
        }

        .event-card-top {
            display: flex;
            align-items: flex-start;
            justify-content: space-between;
            gap: var(--space-2);
        }

        .event-card .event-date-box {
            min-width: 76px;
        }

        .investor-banner {
            border: 1px solid var(--border-light);
            background: linear-gradient(135deg, rgba(123, 194, 255, 0.22) 0%, rgba(12, 25, 43, 0.96) 55%, rgba(240, 138, 75, 0.22) 100%);
            overflow: hidden;
            position: relative;
        }

        .investor-banner h2 {
            color: #f2f8ff;
            font-size: var(--text-2xl);
        }

        .investor-banner-text {
            color: #c8daee;
            max-width: 640px;
            margin-bottom: 0;
        }

        .investor-grid .investor-card {
            background: linear-gradient(180deg, rgba(13, 30, 52, 0.96) 0%, rgba(9, 22, 39, 0.98) 100%);
        }

        .investor-card h3,
        .investor-card h4 {
            color: #f4f9ff;
        }

        .investor-card .card-body p {
            color: #d9e8f8;
        }

        .investor-card .text-muted,
        .investor-banner .text-muted,
        .investor-locked-box .text-muted {
            color: #c9def2 !important;
        }

        .investor-locked-box {
            background: rgba(4, 12, 24, 0.85) !important;
            border-color: rgba(123, 194, 255, 0.2) !important;
            color: #ecf5ff;
        }

        /* Investor Portal Data Viz */
        .data-bar-container { height: 8px; background: var(--bg-subtle); border-radius: var(--radius-full); overflow: hidden; margin-top: 0.5rem; }
        .data-bar-fill { height: 100%; background: var(--brand-primary); border-radius: var(--radius-full); }

        /* Dashboard specific */
        .sidebar-menu { display: flex; flex-direction: column; gap: 0.25rem; }
        .sidebar-link { display: flex; align-items: center; gap: 1rem; padding: 0.75rem 1rem; border-radius: var(--radius-md); color: var(--text-muted); font-weight: 500; transition: var(--transition); }
        .sidebar-link:hover, .sidebar-link.active { background: rgba(123, 194, 255, 0.12); color: var(--brand-primary-light); box-shadow: var(--shadow-sm); }
        .stat-card { background: var(--bg-surface); padding: var(--space-3); border-radius: var(--radius-lg); border: 1px solid var(--border-light); box-shadow: var(--shadow-sm); }
        .stat-value { font-size: var(--text-3xl); font-weight: 800; color: var(--brand-dark); line-height: 1; margin: 0.5rem 0; }

        /* ==========================================================================
           7. MODALS & TOASTS
           ========================================================================== */
        .modal-backdrop {
            position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(15,23,42,0.7); backdrop-filter: blur(5px);
            display: none; align-items: center; justify-content: center; z-index: 1000; opacity: 0; transition: opacity 0.3s; padding: var(--space-2);
        }
        .modal-backdrop.active { display: flex; opacity: 1; }
        .modal-window {
            background: var(--bg-surface); width: 100%; max-width: 500px; max-height: 90vh; overflow-y: auto;
            border-radius: var(--radius-lg); box-shadow: var(--shadow-float); transform: scale(0.95) translateY(20px); transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            border: 1px solid var(--border-strong);
        }
        .modal-backdrop.active .modal-window { transform: scale(1) translateY(0); }
        .modal-header { padding: var(--space-3); border-bottom: 1px solid var(--border-light); display: flex; justify-content: space-between; align-items: center; position: sticky; top:0; background: var(--bg-surface); z-index: 10;}
        .modal-body { padding: var(--space-3); }

        #forum-thread-content {
            white-space: pre-line;
            line-height: 1.65;
        }

        #toast-container { position: fixed; bottom: 24px; right: 24px; z-index: 9999; display: flex; flex-direction: column; gap: 12px; pointer-events: none; }
        .toast { background: #091627; color: #d8e9ff; padding: 1rem 1.5rem; border-radius: var(--radius-md); box-shadow: var(--shadow-lg); font-weight: 500; display: flex; align-items: center; gap: 0.75rem; transform: translateX(120%); transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55); pointer-events: auto; border: 1px solid var(--border-strong); }
        .toast.show { transform: translateX(0); }
        .toast.success { border-left: 4px solid var(--status-success); }

        .site-footer {
            background: linear-gradient(180deg, #081224 0%, #070f1f 100%);
            color: #d2e2f6;
            padding: var(--space-8) 0 var(--space-4) 0;
            margin-top: auto;
            border-top: 4px solid var(--brand-secondary);
        }

        .footer-grid {
            display: grid;
            gap: var(--space-6);
            margin-bottom: var(--space-6);
        }

        .site-footer p {
            color: #b8cbe2;
            max-width: 34ch;
        }

        .footer-brand {
            color: #f4f8ff;
            font-size: clamp(2rem, 4vw, 2.6rem);
            margin-bottom: var(--space-2);
        }

        .footer-brand span {
            color: var(--brand-secondary);
        }

        .footer-title {
            color: #f4f8ff;
            margin-bottom: var(--space-3);
            font-size: 1.9rem;
            letter-spacing: -0.01em;
        }

        .footer-links a {
            color: #a9c1db;
            font-size: 1.08rem;
            font-weight: 500;
            transition: var(--transition);
        }

        .footer-links a:hover {
            color: #e8f2ff;
            padding-left: 0.2rem;
        }

        .footer-social {
            background: rgba(123, 194, 255, 0.14);
            color: #d8e9ff;
            border: 1px solid rgba(123, 194, 255, 0.28);
        }

        .footer-social:hover {
            background: rgba(123, 194, 255, 0.22);
            color: #ffffff;
            transform: translateY(-1px);
        }

        .footer-newsletter {
            display: grid;
            grid-template-columns: 1fr;
            gap: 0.6rem;
            align-items: stretch;
        }

        .footer-newsletter-input {
            border-radius: var(--radius-sm);
            border-color: rgba(123, 194, 255, 0.28);
            background: rgba(6, 16, 31, 0.9);
            color: #f5f9ff;
            padding-left: 1rem;
        }

        .footer-newsletter-input::placeholder {
            color: #8eabc9;
        }

        .footer-newsletter-input:focus {
            border-color: #9bd2ff;
            box-shadow: 0 0 0 4px rgba(123, 194, 255, 0.22);
        }

        .footer-newsletter-button {
            border-radius: var(--radius-sm);
            box-shadow: none;
            justify-content: center;
        }

        .footer-bottom {
            border-top: 1px solid rgba(123, 194, 255, 0.2);
            padding-top: var(--space-4);
            text-align: center;
            font-size: var(--text-xs);
            color: #8ea8c5;
        }

        @media (min-width: 768px) {
            .footer-grid {
                grid-template-columns: repeat(2, minmax(0, 1fr));
            }

            .footer-newsletter {
                grid-template-columns: 1fr auto;
                gap: 0;
            }

            .footer-newsletter-input {
                border-radius: var(--radius-sm) 0 0 var(--radius-sm);
            }

            .footer-newsletter-button {
                border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
                min-width: 140px;
            }
        }

        @media (min-width: 1024px) {
            .footer-grid {
                grid-template-columns: 1.1fr 0.9fr 0.9fr 1fr;
                gap: var(--space-4);
            }
        }

        @media (max-width: 767px) {
            body {
                font-size: 1rem;
            }

            h1 {
                font-size: clamp(2rem, 8vw, 2.6rem);
                line-height: 1.15;
            }

            h2 {
                font-size: clamp(1.45rem, 6vw, 1.9rem);
                line-height: 1.2;
            }

            h3 {
                font-size: clamp(1.2rem, 5vw, 1.5rem);
            }

            .btn {
                white-space: normal;
                text-align: center;
            }

            .brand {
                font-size: 1.5rem;
            }

            .hero {
                background-attachment: scroll;
                padding: var(--space-6) 0 var(--space-4);
            }

            .hero p {
                font-size: 1.1rem;
            }

            .search-hero-bar {
                margin: -1.25rem auto var(--space-4) auto;
            }

            .card-footer {
                gap: var(--space-1);
                flex-wrap: wrap;
            }

            .deals-banner::after {
                width: 120px;
                height: 120px;
                right: -35px;
                top: -35px;
            }

            .event-card .event-date-box {
                min-width: 64px;
            }

            .site-footer {
                padding: var(--space-6) 0 var(--space-3) 0;
            }

            .footer-title {
                font-size: 1.35rem;
                margin-bottom: var(--space-2);
            }

            .footer-links a {
                font-size: 1rem;
            }

            .site-footer p {
                max-width: none;
            }

            .modal-backdrop {
                align-items: flex-start;
                padding: 0.75rem;
            }

            .modal-window {
                margin-top: 0.4rem;
                max-height: calc(100vh - 1.5rem);
                border-radius: var(--radius-md);
            }

            .modal-header,
            .modal-body {
                padding: var(--space-2);
            }

            #toast-container {
                left: 12px;
                right: 12px;
                bottom: 12px;
            }

            .toast {
                width: 100%;
                transform: translateY(120%);
            }

            .toast.show {
                transform: translateY(0);
            }
        }

        @media (max-width: 430px) {
            .container {
                padding: 0 0.75rem;
            }

            h1 {
                font-size: clamp(1.8rem, 8.6vw, 2.2rem);
            }

            h2 {
                font-size: clamp(1.3rem, 6.5vw, 1.55rem);
            }

            .hero p {
                font-size: 1rem;
            }

            .btn {
                padding: 0.7rem 1rem;
                min-height: 44px;
                font-size: 0.95rem;
            }

            .brand {
                font-size: 1.25rem;
            }

            .search-hero-bar {
                border-radius: var(--radius-md);
            }

            .card,
            .stat-card {
                border-radius: var(--radius-md);
            }

            .modal-backdrop {
                padding: 0.5rem;
            }

            .modal-window {
                max-height: calc(100vh - 1rem);
            }

            .modal-header h3 {
                font-size: 1.1rem;
            }

            .footer-title {
                font-size: 1.2rem;
            }
        }

        #view-jobber > .card:first-child {
            background: linear-gradient(135deg, rgba(19, 37, 63, 0.96) 0%, rgba(15, 28, 48, 0.94) 100%) !important;
            border-color: rgba(123, 194, 255, 0.22);
        }

        @media (prefers-reduced-motion: reduce) {
            *, *::before, *::after {
                animation-duration: 0.01ms !important;
                animation-iteration-count: 1 !important;
                transition-duration: 0.01ms !important;
                scroll-behavior: auto !important;
            }
        }
