    /* Respect the OS "reduce motion" setting: near-instant animations/transitions,
       no auto-scroll, stop infinite loops (hero, pulse, spin, live dots). Audit S-074. */
    @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;
        }
    }

    /* ===== JAPANESE MINIMAL DESIGN SYSTEM ===== */

    /* Reset and Base */
    * {
        margin: 0;
        padding: 0;
        box-sizing: border-box;
    }

    :root {
        /* Zinc Color Palette */
        --zinc-50: #fafafa;
        --zinc-100: #f4f4f5;
        --zinc-200: #e4e4e7;
        --zinc-300: #d4d4d8;
        --zinc-400: #a1a1aa;
        --zinc-500: #71717a;
        --zinc-600: #52525b;
        --zinc-700: #3f3f46;
        --zinc-800: #27272a;
        --zinc-900: #18181b;

        /* Accent Colors */
        --sky-600: #0284c7;
        --green-500: #22c55e;
        --red-500: #ef4444;
        --amber-500: #f59e0b;

        /* Semantic Colors */
        --bg-primary: #ffffff;
        --bg-secondary: var(--zinc-50);
        --text-primary: var(--zinc-900);
        --text-secondary: var(--zinc-600);
        --text-muted: var(--zinc-500);
        --border-light: var(--zinc-200);
        --border-lighter: var(--zinc-100);

        /* Shadows */
        --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
        --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
        --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);

        /* Border Radius */
        --radius-sm: 0.375rem;
        --radius-md: 0.5rem;
        --radius-lg: 0.75rem;
        --radius-xl: 1rem;
        --radius-2xl: 1rem;
        --radius-3xl: 1.5rem;
        --radius-full: 9999px;
    }

    body {
        font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
        line-height: 1.6;
        color: var(--text-primary);
        background: linear-gradient(to bottom, var(--zinc-50), white, var(--zinc-50));
        font-weight: 400;
        min-height: 100vh;
    }

    /* Global Link Styles */
    a {
        text-decoration: none;
        color: inherit;
    }

    a:hover {
        text-decoration: none !important;
    }

    /* ===== HERO / INSTITUTE HEADER ===== */
    .institute-header {
        background: linear-gradient(to bottom, var(--zinc-50), white);
        padding: 100px 0 40px 0; /* Added top padding to account for fixed header */
        margin-top: 0;
        position: relative;
    }

    /* When inside homepage layout, no side padding needed */
    .homepage-layout-hero .institute-header {
        padding: 20px 0 40px 0;
        background: transparent;
    }

    .header-container {
        max-width: 72rem;
        margin: 0 auto;
        position: relative;
        z-index: 2;
    }

    /* Curated Badge */
    .curated-badge,
    .lab-badge {
        display: flex;
        width: fit-content;
        margin: 0 auto 16px auto;
        align-items: center;
        gap: 8px;
        background: white;
        border: 1px solid var(--border-light);
        border-radius: var(--radius-full);
        padding: 6px 12px;
        font-size: 0.75rem;
        color: var(--zinc-700);
        box-shadow: var(--shadow-sm);
    }

    .curated-badge svg,
    .lab-badge svg {
        width: 16px;
        height: 16px;
        color: #10b981; /* green-500 */
    }

    /* Hero Title */
    .lab-title {
        margin-bottom: 12px;
        line-height: 1.2;
        text-align: center;
    }

    .lab-title-main {
        font-size: 3rem;
        font-weight: 600;
        color: var(--text-primary);
        display: block;
        margin-bottom: 12px;
        letter-spacing: -0.025em;
        text-align: center;
    }

    .lab-title-subtitle, .lab-subtitle {
        font-size: 1rem;
        font-weight: 400;
        color: var(--text-secondary);
        display: block;
        max-width: 42rem;
        line-height: 1.5;
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }

    /* Search Box */
    .search-container {
        background: white;
        border: 1px solid var(--border-light);
        border-radius: var(--radius-3xl);
        box-shadow: var(--shadow-sm);
        margin-top: 24px;
        overflow: hidden;
    }

    .search-main {
        display: flex;
        flex-direction: column;
        gap: 12px;
        padding: 16px;
    }

    @media (min-width: 768px) {
        .search-main {
            flex-direction: row;
            align-items: center;
        }
    }

    .search-input-wrapper {
        position: relative;
        flex: 1;
    }

    .search-input-wrapper svg {
        position: absolute;
        left: 12px;
        top: 50%;
        transform: translateY(-50%);
        width: 16px;
        height: 16px;
        color: var(--zinc-500);
    }

    .search-input {
        width: 100%;
        padding: 10px 16px 10px 40px;
        border: none;
        border-radius: var(--radius-2xl);
        font-size: 0.875rem;
        background: var(--zinc-50);
        outline: none;
    }

    .search-input:focus-visible {
        background: white;
        box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.35);
    }

    .search-actions {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        align-items: center;
    }

    .search-footer {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        padding: 12px 16px;
        border-top: 1px solid var(--border-light);
        font-size: 0.75rem;
        color: var(--text-secondary);
    }

    .search-pills {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
    }

    /* ===== BUTTONS ===== */
    .btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        padding: 8px 16px;
        border-radius: var(--radius-2xl);
        font-size: 0.875rem;
        font-weight: 500;
        cursor: pointer;
        transition: all 0.2s ease;
        border: 1px solid transparent;
        white-space: nowrap;
    }

    .btn-primary {
        background: var(--zinc-900);
        color: white;
        border-color: var(--zinc-900);
    }

    .btn-primary:hover {
        background: var(--zinc-800);
    }

    .btn-outline {
        background: white;
        color: var(--text-primary);
        border-color: var(--border-light);
    }

    .btn-outline:hover {
        background: var(--zinc-50);
    }

    .btn-ghost {
        background: transparent;
        color: var(--text-primary);
        border: none;
        padding: 8px 12px;
    }

    .btn-ghost:hover {
        background: var(--zinc-100);
    }

    .btn-icon {
        padding: 8px;
        width: 36px;
        height: 36px;
    }

    .btn svg {
        width: 16px;
        height: 16px;
    }

    /* ===== PILLS & BADGES ===== */
    .pill {
        display: inline-flex;
        align-items: center;
        gap: 4px;
        padding: 4px 12px;
        border-radius: var(--radius-full);
        border: 1px solid var(--border-light);
        background: white;
        font-size: 0.75rem;
        color: var(--zinc-700);
        box-shadow: var(--shadow-sm);
    }

    .pill svg {
        width: 14px;
        height: 14px;
    }

    .badge {
        display: inline-flex;
        align-items: center;
        gap: 4px;
        padding: 2px 8px;
        border-radius: var(--radius-full);
        font-size: 0.75rem;
        font-weight: 500;
    }

    .badge-hot {
        background: #ecfdf5;
        color: #065f46;
        border: 1px solid #a7f3d0;
    }

    .badge-verified {
        background: transparent;
        color: var(--zinc-700);
        border: 1px solid var(--border-light);
    }

    .badge-open {
        background: var(--zinc-100);
        color: var(--zinc-800);
        border: 1px solid var(--border-light);
    }

    .badge-tag {
        background: var(--zinc-50);
        color: var(--zinc-700);
        border: 1px solid var(--border-light);
    }

    .badge svg {
        width: 12px;
        height: 12px;
    }

    .premium-tick {
        color: var(--sky-600);
        width: 16px;
        height: 16px;
    }

    /* Clickable Pills & Badges */
    a.pill, a.badge, .pill-link, .badge-link {
        text-decoration: none;
        cursor: pointer;
        transition: all 0.15s ease;
    }

    a.pill:hover, .pill-link:hover {
        background: var(--zinc-100);
        border-color: var(--zinc-300);
        color: var(--zinc-900);
    }

    a.badge:hover, .badge-link:hover {
        background: var(--zinc-200);
        border-color: var(--zinc-400);
        color: var(--zinc-900);
    }

    .job-company-logo {
        text-decoration: none;
    }

    a.job-company-name {
        text-decoration: none;
        color: inherit;
        transition: color 0.15s ease;
    }

    a.job-company-name:hover {
        color: var(--zinc-900);
    }

    a.job-practice-area {
        text-decoration: none;
        color: inherit;
        transition: color 0.15s ease;
    }

    a.job-practice-area:hover {
        color: var(--zinc-900);
        text-decoration: underline;
    }

    /* Location links inside pills */
    .location-link {
        text-decoration: none;
        color: inherit;
        transition: all 0.15s ease;
    }

    .location-link:hover {
        color: var(--zinc-900);
        text-decoration: underline;
    }

    /* ===== STATS SECTION ===== */
    .stats-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        margin-top: 24px;
    }

    @media (min-width: 768px) {
        .stats-grid {
            grid-template-columns: repeat(4, 1fr);
        }
    }

    .stat-card {
        display: flex;
        align-items: center;
        gap: 12px;
        background: white;
        border: 1px solid var(--border-light);
        border-radius: var(--radius-2xl);
        padding: 12px 16px;
        box-shadow: var(--shadow-sm);
    }

    .stat-icon {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 36px;
        height: 36px;
        border-radius: var(--radius-2xl);
        border: 1px solid var(--border-light);
        background: white;
    }

    .stat-icon svg {
        width: 16px;
        height: 16px;
        color: var(--zinc-700);
    }

    .stat-content {
        display: flex;
        flex-direction: column;
    }

    .stat-value {
        font-size: 0.875rem;
        font-weight: 600;
        color: var(--text-primary);
    }

    .stat-label {
        font-size: 0.75rem;
        color: var(--text-secondary);
    }

    /* ===== VALUE PROPOSITIONS ===== */
    .value-propositions {
        display: grid;
        grid-template-columns: 1fr;
        gap: 12px;
        margin-top: 20px;
    }

    @media (min-width: 640px) {
        .value-propositions {
            grid-template-columns: repeat(2, 1fr);
            gap: 14px;
        }
    }

    .value-prop-card {
        background: var(--zinc-50);
        border: 1px solid var(--border-light);
        border-radius: var(--radius-2xl);
        padding: 16px;
        transition: all 0.2s ease;
        position: relative;
    }

    @media (hover: hover) {
        .value-prop-card:hover {
            background: white;
            border-color: var(--zinc-300);
        }
    }

    .value-prop-card:active {
        transform: scale(0.98);
    }

    .value-prop-badge {
        display: inline-block;
        font-size: 0.6875rem;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.05em;
        color: var(--zinc-600);
        background: white;
        padding: 4px 10px;
        border-radius: var(--radius-full);
        border: 1px solid var(--border-light);
        margin-bottom: 12px;
    }

    .value-prop-icon {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 36px;
        height: 36px;
        border-radius: var(--radius-xl);
        background: white;
        border: 1px solid var(--border-light);
        margin-bottom: 12px;
        color: var(--zinc-600);
    }

    .value-prop-icon svg {
        width: 18px;
        height: 18px;
    }

    .value-prop-title {
        font-size: 0.9375rem;
        font-weight: 600;
        color: var(--text-primary);
        margin-bottom: 6px;
        line-height: 1.3;
    }

    .value-prop-description {
        font-size: 0.8125rem;
        color: var(--text-secondary);
        line-height: 1.5;
        margin-bottom: 12px;
    }

    .value-prop-link {
        display: inline-flex;
        align-items: center;
        gap: 4px;
        font-size: 0.8125rem;
        font-weight: 500;
        color: var(--zinc-700);
        text-decoration: none;
        transition: color 0.2s ease;
    }

    .value-prop-link:hover {
        color: var(--zinc-900);
    }

    /* ===== TALENT STRIP ===== */
    .talent-strip {
        background: white;
        border: 1px solid var(--border-light);
        border-radius: var(--radius-3xl);
        padding: 16px;
        margin-top: 16px;
        box-shadow: var(--shadow-sm);
    }

    .talent-strip-header {
        display: flex;
        flex-direction: column;
        gap: 12px;
        margin-bottom: 16px;
    }

    @media (min-width: 640px) {
        .talent-strip-header {
            flex-direction: row;
            align-items: center;
            justify-content: space-between;
        }
    }

    .talent-strip-title {
        font-size: 0.875rem;
        font-weight: 600;
        color: var(--text-primary);
    }

    .talent-strip-subtitle {
        font-size: 0.75rem;
        color: var(--text-secondary);
        margin-top: 4px;
    }

    .talent-strip-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 12px;
    }

    @media (min-width: 640px) {
        .talent-strip-grid {
            grid-template-columns: repeat(3, 1fr);
        }
    }

    .talent-mini-card {
        background: white;
        border: 1px solid var(--border-light);
        border-radius: var(--radius-2xl);
        padding: 12px 16px;
    }

    .talent-mini-header {
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        gap: 8px;
    }

    .talent-mini-info {
        display: flex;
        align-items: flex-start;
        gap: 12px;
        min-width: 0;
    }

    .talent-mini-avatar {
        width: 32px;
        height: 32px;
        border-radius: var(--radius-full);
        border: 1px solid var(--border-light);
        background: white;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 0.75rem;
        font-weight: 600;
        color: var(--text-primary);
        flex-shrink: 0;
        overflow: hidden;
    }

    .talent-mini-avatar img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .talent-mini-name {
        font-size: 0.875rem;
        font-weight: 600;
        color: var(--text-primary);
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .talent-mini-headline {
        font-size: 0.75rem;
        color: var(--text-secondary);
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .talent-mini-badges {
        display: flex;
        gap: 8px;
        flex-wrap: wrap;
        margin-top: 8px;
    }

    /* ===== TABS ===== */
    .tabs-container {
        margin-top: 24px;
    }

    .tabs-list {
        display: inline-flex;
        background: white;
        border: 1px solid var(--border-light);
        border-radius: var(--radius-3xl);
        padding: 4px;
        gap: 4px;
    }

    .tab-trigger {
        padding: 8px 16px;
        border-radius: var(--radius-2xl);
        font-size: 0.875rem;
        font-weight: 500;
        color: var(--text-secondary);
        background: transparent;
        border: none;
        cursor: pointer;
        transition: all 0.2s ease;
        text-decoration: none;
    }

    .tab-trigger:hover {
        color: var(--text-primary);
        background: var(--zinc-50);
    }

    .tab-trigger.active {
        color: var(--text-primary);
        background: var(--zinc-100);
    }

    .tab-content {
        margin-top: 16px;
    }

    /* ===== JOB CARDS ===== */
    .jobs-grid {
        display: flex;
        flex-direction: column;
        gap: 16px;
    }

    .job-card {
        background: white;
        border: 1px solid var(--border-light);
        border-radius: var(--radius-3xl);
        box-shadow: var(--shadow-sm);
        transition: all 0.2s ease;
        overflow: hidden;
    }

    .job-card:hover {
        box-shadow: var(--shadow-md);
    }

    .job-card-header {
        padding: 20px 20px 12px 20px;
    }

    .job-card-top {
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        gap: 12px;
    }

    .job-card-main {
        display: flex;
        align-items: flex-start;
        gap: 12px;
        min-width: 0;
        flex: 1;
    }

    .job-company-logo {
        width: 44px;
        height: 44px;
        border-radius: var(--radius-2xl);
        border: 1px solid var(--border-light);
        background: white;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
        overflow: hidden;
        box-shadow: var(--shadow-sm);
    }

    .job-company-logo img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        padding: 4px;
    }

    .job-company-initials {
        font-size: 0.75rem;
        font-weight: 600;
        color: var(--zinc-600);
        letter-spacing: 0.05em;
        width: 100%;
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        background: var(--zinc-100);
    }

    .job-card-info {
        min-width: 0;
        flex: 1;
    }

    .job-title-row {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 8px;
        margin-bottom: 4px;
    }

    .job-title {
        font-size: 1rem;
        font-weight: 600;
        color: var(--text-primary);
        line-height: 1.4;
    }

    @media (min-width: 640px) {
        .job-title {
            font-size: 1.125rem;
        }
    }

    .job-company-line {
        font-size: 0.875rem;
        color: var(--text-secondary);
        display: flex;
        align-items: center;
        gap: 4px;
        flex-wrap: wrap;
    }

    .job-company-name {
        font-weight: 500;
        color: var(--zinc-800);
        display: inline-flex;
        align-items: center;
        gap: 4px;
    }

    .job-practice-area {
        color: var(--zinc-700);
    }

    .job-card-actions {
        display: flex;
        align-items: center;
        gap: 8px;
        flex-shrink: 0;
    }

    .job-card-content {
        padding: 0 20px 20px 20px;
    }

    /* Salary bar - prominent, above meta pills */
    .job-salary-bar {
        display: flex;
        align-items: center;
        gap: 10px;
        margin-bottom: 10px;
        flex-wrap: wrap;
    }

    .salary-highlight {
        display: inline-flex;
        align-items: center;
        gap: 4px;
        font-size: 0.9rem;
        font-weight: 600;
        color: #16a34a;
    }

    .salary-highlight svg {
        color: #16a34a;
        flex-shrink: 0;
    }

    .badge-closing {
        display: inline-flex;
        align-items: center;
        gap: 4px;
        padding: 2px 8px;
        font-size: 0.75rem;
        font-weight: 500;
        background: #fef2f2;
        color: #dc2626;
        border-radius: 9999px;
        white-space: nowrap;
    }

    .job-meta-pills {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        margin-bottom: 12px;
    }

    .job-tags {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        margin-bottom: 16px;
    }

    .job-card-footer {
        display: flex;
        justify-content: flex-end;
        padding: 0 20px 16px 20px;
    }

    .job-card-footer .btn-apply {
        padding: 8px 20px;
        font-size: 0.875rem;
    }

    .job-id {
        font-size: 0.75rem;
        color: var(--zinc-500);
    }

    /* ===== MOBILE JOB CARD OVERHAUL ===== */
    @media (max-width: 639px) {
        /* 1. HEADER: Wrap layout so Apply doesn't eat the title */
        .job-card-header {
            padding: 14px 14px 10px 14px;
        }

        .job-card-top {
            position: relative;
        }

        .job-card-main {
            flex: 1 1 0%;
            gap: 10px;
            padding-right: 36px;
        }

        /* 2. ACTIONS: Save button pinned top-right */
        .job-card-actions {
            position: absolute;
            top: 0;
            right: 0;
        }

        .job-card-actions .btn-icon {
            width: 28px;
            height: 28px;
            padding: 4px;
            border: none;
        }

        .job-card-footer {
            padding: 0 14px 12px 14px;
        }

        .job-card-footer .btn-apply {
            width: auto;
            display: inline-flex;
            align-items: center;
            gap: 6px;
            padding: 8px 20px;
            font-size: 0.8rem;
            border-radius: 50px;
            min-height: unset;
        }

        /* Salary bar mobile */
        .job-salary-bar {
            margin-bottom: 8px;
        }

        .salary-highlight {
            font-size: 0.85rem;
        }

        /* 3. LOGO: Consistent size */
        .job-card .job-company-logo {
            width: 40px;
            height: 40px;
        }

        /* 4. TITLE: Full width, max 2 lines, no truncation by button */
        .job-card .job-title {
            font-size: 0.9375rem;
            line-height: 1.35;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }

        .job-title-row {
            gap: 6px;
            margin-bottom: 2px;
        }

        /* 5. BADGES: Smaller on mobile, stay inline */
        .job-card .badge {
            padding: 1px 6px;
            font-size: 0.6875rem;
            white-space: nowrap;
        }

        .job-card .badge svg {
            width: 10px;
            height: 10px;
        }

        /* 6. COMPANY LINE: Tighter */
        .job-card .job-company-line {
            font-size: 0.8125rem;
            gap: 3px;
        }

        /* 7. CONTENT: Tighter padding */
        .job-card-content {
            padding: 0 14px 12px 14px;
        }

        /* 8. PILLS: Compact on mobile */
        .job-card .pill {
            padding: 3px 8px;
            font-size: 0.6875rem;
            gap: 3px;
        }

        .job-card .pill svg {
            width: 12px;
            height: 12px;
        }

        .job-meta-pills {
            gap: 6px;
            margin-bottom: 8px;
        }

        /* 9. TAGS: Compact */
        .job-card .badge-tag {
            padding: 2px 8px;
            font-size: 0.6875rem;
        }

        .job-tags {
            gap: 6px;
            margin-bottom: 0;
        }

        /* 10. GRID: Tighter gap between cards */
        .jobs-grid {
            gap: 12px;
        }
    }

    /* ===== TABLET JOB CARD TWEAKS ===== */
    @media (min-width: 640px) and (max-width: 767px) {
        .job-card-header {
            padding: 16px 16px 10px 16px;
        }

        .job-card-content {
            padding: 0 16px 16px 16px;
        }
    }

    /* ===== TALENT CARDS ===== */
    .talent-card {
        background: white;
        border: 1px solid var(--border-light);
        border-radius: var(--radius-3xl);
        box-shadow: var(--shadow-sm);
        transition: all 0.2s ease;
        overflow: hidden;
    }

    .talent-card:hover {
        box-shadow: var(--shadow-md);
    }

    .talent-card-header {
        padding: 20px 20px 12px 20px;
    }

    .talent-avatar {
        width: 40px;
        height: 40px;
        border-radius: var(--radius-full);
        border: 1px solid var(--border-light);
        background: white;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
        overflow: hidden;
        box-shadow: var(--shadow-sm);
    }

    .talent-avatar img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .talent-avatar-initials {
        font-size: 0.75rem;
        font-weight: 600;
        color: var(--text-primary);
        letter-spacing: 0.05em;
    }

    .talent-name {
        font-size: 1rem;
        font-weight: 600;
        color: var(--text-primary);
        display: flex;
        align-items: center;
        gap: 4px;
    }

    @media (min-width: 640px) {
        .talent-name {
            font-size: 1.125rem;
        }
    }

    .talent-headline {
        font-size: 0.875rem;
        color: var(--zinc-700);
    }

    /* ===== CTA CARDS ===== */
    .cta-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 16px;
        margin-top: 40px;
    }

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

    .cta-card {
        background: white;
        border: 1px solid var(--border-light);
        border-radius: var(--radius-3xl);
        box-shadow: var(--shadow-sm);
        padding: 24px;
    }

    .cta-card-title {
        font-size: 1.125rem;
        font-weight: 600;
        color: var(--text-primary);
        margin-bottom: 8px;
    }

    .cta-card-description {
        font-size: 0.875rem;
        color: var(--text-secondary);
        margin-bottom: 16px;
    }

    .cta-card-form {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }

    @media (min-width: 640px) {
        .cta-card-form {
            flex-direction: row;
        }
    }

    .cta-card-input {
        flex: 1;
        padding: 10px 16px;
        border: 1px solid var(--border-light);
        border-radius: var(--radius-2xl);
        font-size: 0.875rem;
        outline: none;
    }

    .cta-card-input:focus {
        border-color: var(--zinc-400);
    }

    .cta-card-actions {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
    }

    /* ===== SECTION CONTAINERS ===== */
    .section-container {
        max-width: 72rem;
        margin: 0 auto;
        padding: 0 16px;
    }

    .research-publications {
        padding: 40px 20px;
        background: transparent;
    }

    .section-header {
        text-align: center;
        margin-bottom: 24px;
    }

    .section-title {
        font-size: 1.5rem;
        font-weight: 600;
        color: var(--text-primary);
        margin-bottom: 8px;
    }

    .section-description {
        font-size: 0.875rem;
        color: var(--text-secondary);
        max-width: 42rem;
        margin: 0 auto;
    }

    /* ===== COMPANY LOGO CAROUSEL ===== */
    .company-logo-carousel {
        padding: 20px 0;
        background: white;
        overflow: hidden;
        position: relative;
        margin-bottom: 0;
        border-bottom: 1px solid var(--border-light);
    }

    .carousel-container {
        width: 100%;
        overflow: visible;
    }

    .logo-slider {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        gap: 20px;
        width: 100%;
    }

    .logo-slide {
        flex: 0 0 auto;
        margin: 0 20px;
        display: flex;
        align-items: center;
        justify-content: center;
        height: 50px;
        width: 100px;
    }

    .logo-slide img {
        max-height: 40px;
        max-width: 80px;
        object-fit: contain;
        opacity: 0.7;
        transition: all 0.3s ease;
        filter: grayscale(100%);
    }

    .logo-slide img:hover {
        opacity: 1;
        filter: grayscale(0%);
    }

    .logo-slide .company-initials {
        width: 40px;
        height: 40px;
        background: var(--zinc-100);
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 0.75rem;
        font-weight: 600;
        color: var(--zinc-600);
        border-radius: var(--radius-lg);
        transition: all 0.3s ease;
    }

    .logo-slide .company-initials:hover {
        background: var(--zinc-200);
    }


    /* ===== HEADER ACTIONS ===== */
    .header-actions {
        display: flex;
        flex-wrap: wrap;
        gap: 12px;
        margin-top: 24px;
        justify-content: flex-start;
    }

    /* ===== EMPTY STATE ===== */
    .empty-state {
        background: white;
        border: 1px solid var(--border-light);
        border-radius: var(--radius-3xl);
        padding: 40px 20px;
        text-align: center;
        box-shadow: var(--shadow-sm);
    }

    .empty-state-title {
        font-size: 0.875rem;
        font-weight: 600;
        color: var(--text-primary);
        margin-bottom: 4px;
    }

    .empty-state-text {
        font-size: 0.875rem;
        color: var(--text-secondary);
        margin-bottom: 16px;
    }

    .empty-state-actions {
        display: flex;
        justify-content: center;
        gap: 8px;
    }

    /* ===== FOOTER STYLES ===== */
    .new-footer {
        border-top: 1px solid var(--border-light);
        padding-top: 32px;
        margin-top: 48px;
        font-size: 0.875rem;
        color: var(--text-secondary);
    }

    .footer-main {
        display: flex;
        flex-direction: column;
        gap: 16px;
    }

    @media (min-width: 768px) {
        .footer-main {
            flex-direction: row;
            align-items: center;
            justify-content: space-between;
        }
    }

    .footer-brand {
        font-weight: 600;
        color: var(--text-primary);
    }

    .footer-tagline {
        font-size: 0.75rem;
        color: var(--zinc-500);
        margin-top: 4px;
    }

    .footer-links {
        display: flex;
        flex-wrap: wrap;
        gap: 12px;
        font-size: 0.75rem;
    }

    .footer-links a {
        color: var(--text-secondary);
        transition: color 0.2s ease;
    }

    .footer-links a:hover {
        color: var(--text-primary);
    }

    .footer-copyright {
        font-size: 0.75rem;
        color: var(--zinc-500);
        margin-top: 24px;
    }

    /* ===== LOADING ===== */
    .loading-spinner {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        color: var(--text-secondary);
        font-size: 0.875rem;
        padding: 20px;
    }

    .loading-spinner i {
        color: var(--text-primary);
    }

    /* ===== LEGACY COMPATIBILITY ===== */
    /* Keep these for backward compatibility with existing PHP templates */

    .legal-briefs {
        display: flex;
        flex-direction: column;
        gap: 16px;
    }

    .legal-brief-document {
        background: white;
        padding: 20px;
        border: 1px solid var(--border-light);
        border-radius: var(--radius-3xl);
        position: relative;
        box-shadow: var(--shadow-sm);
        transition: all 0.2s ease;
    }

    .legal-brief-document:hover {
        box-shadow: var(--shadow-md);
    }

    .content-with-logo {
        display: flex;
        gap: 12px;
    }

    .company-logo-float {
        width: 44px;
        height: 44px;
        border-radius: var(--radius-2xl);
        overflow: hidden;
        border: 1px solid var(--border-light);
        background: white;
        flex-shrink: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: var(--shadow-sm);
    }

    .company-logo-float img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        padding: 4px;
    }

    .company-initials {
        width: 100%;
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-weight: 600;
        font-size: 0.75rem;
        color: var(--text-primary);
        background: var(--zinc-50);
    }

    .job-header-info {
        flex: 1;
        min-width: 0;
    }

    .brief-title {
        font-size: 1rem;
        font-weight: 600;
        color: var(--text-primary);
        margin: 0 0 4px 0;
        line-height: 1.4;
    }

    @media (min-width: 640px) {
        .brief-title {
            font-size: 1.125rem;
        }
    }

    .company-name-below-title {
        font-size: 0.875rem;
        color: var(--text-secondary);
        margin-bottom: 12px;
        font-weight: 500;
    }

    .job-details {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        margin-top: 12px;
    }

    .detail-clause {
        display: inline-flex;
        align-items: center;
        gap: 4px;
        padding: 4px 12px;
        border-radius: var(--radius-full);
        border: 1px solid var(--border-light);
        background: white;
        font-size: 0.75rem;
        color: var(--zinc-600);
    }

    .detail-clause strong {
        color: var(--text-primary);
        font-weight: 500;
        margin-right: 4px;
    }

    .deadline-section {
        margin-top: 12px;
        padding-top: 12px;
        border-top: 1px solid var(--border-lighter);
    }

    .deadline-active {
        color: var(--green-500);
        font-weight: 500;
    }

    .deadline-expired {
        color: var(--red-500);
        font-weight: 500;
        text-decoration: line-through;
    }

    .brief-footer {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding-top: 16px;
        margin-top: 16px;
        border-top: 1px solid var(--border-lighter);
    }

    .document-actions {
        display: flex;
        gap: 8px;
        align-items: center;
        margin-left: auto;
    }

    .file-motion {
        padding: 8px 16px;
        background: white;
        border: 1px solid var(--border-light);
        color: var(--text-primary);
        font-size: 0.75rem;
        cursor: pointer;
        transition: all 0.2s ease;
        display: flex;
        align-items: center;
        gap: 6px;
        font-weight: 500;
        border-radius: var(--radius-2xl);
    }

    .file-motion:hover {
        background: var(--zinc-50);
    }

    .file-motion.saved {
        background: var(--zinc-900);
        color: white;
        border-color: var(--zinc-900);
    }

    .file-motion.saved:hover {
        background: var(--zinc-800);
    }

    .review-brief {
        color: var(--text-primary);
        font-size: 0.75rem;
        font-weight: 500;
        transition: all 0.2s ease;
        display: flex;
        align-items: center;
        gap: 6px;
        padding: 8px 12px;
        border-radius: var(--radius-2xl);
    }

    .review-brief:hover {
        background: var(--zinc-50);
    }

    /* ===== PROFESSIONAL BUTTONS (Legacy) ===== */
    .professional-btn {
        padding: 10px 20px;
        font-size: 0.875rem;
        font-weight: 500;
        border-radius: var(--radius-2xl);
        transition: all 0.2s ease;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        border: 1px solid var(--border-light);
        box-shadow: var(--shadow-sm);
        text-align: center;
        cursor: pointer;
    }

    .professional-btn.btn-primary {
        background: var(--zinc-900) !important;
        color: white !important;
        border-color: var(--zinc-900) !important;
    }

    .professional-btn.btn-primary:hover {
        background: var(--zinc-800) !important;
    }

    .professional-btn.btn-secondary {
        background: white !important;
        color: var(--text-primary) !important;
        border-color: var(--border-light) !important;
    }

    .professional-btn.btn-secondary:hover {
        background: var(--zinc-50) !important;
    }

    /* ===== RESPONSIVE ===== */
    @media (max-width: 768px) {
        .lab-title-main {
            font-size: 1.875rem;
        }

        .lab-title-subtitle {
            font-size: 0.875rem;
        }

        .institute-header {
            padding: 100px 16px 32px 16px; /* Increased top padding for mobile */
        }

        .research-publications {
            padding: 32px 16px;
        }

        .header-actions {
            flex-wrap: wrap;
            justify-content: center;
        }

        .professional-btn {
            font-size: 0.8125rem;
            padding: 10px 16px;
        }

        .content-with-logo {
            flex-direction: column;
        }

        .company-logo-float {
            width: 48px;
            height: 48px;
        }

        .job-details {
            flex-direction: column;
            gap: 6px;
        }

        .detail-clause {
            width: fit-content;
        }

        .logo-slide {
            margin: 0 12px;
            height: 40px;
            width: 80px;
        }

        .logo-slide img {
            max-height: 32px;
            max-width: 64px;
        }
    }

    @media (max-width: 480px) {
        .lab-title-main {
            font-size: 1.5rem;
        }

        .lab-title-subtitle {
            font-size: 0.8125rem;
        }

        .institute-header {
            padding: 90px 12px 24px 12px; /* Increased top padding for small mobile */
        }

        .legal-brief-document {
            padding: 16px;
        }

        .brief-title {
            font-size: 1rem;
        }

        .company-name-below-title {
            font-size: 0.8125rem;
        }

        .detail-clause {
            font-size: 0.6875rem;
            padding: 3px 10px;
        }

        .professional-btn {
            font-size: 0.75rem;
            padding: 8px 12px;
            min-width: auto;
        }
    }

    /* Filter Container - Legacy */
    .job-filter-container {
        background: white;
        border: 1px solid var(--border-light);
        border-radius: var(--radius-3xl);
        padding: 24px;
        margin: 24px auto;
        max-width: 72rem;
        box-shadow: var(--shadow-sm);
    }

    .job-filter-form select,
    .job-filter-form input[type="text"] {
        width: 100%;
        padding: 10px 16px;
        border: 1px solid var(--border-light);
        border-radius: var(--radius-2xl);
        font-size: 0.875rem;
        background: white;
        transition: all 0.2s ease;
        outline: none;
    }

    .job-filter-form select:focus,
    .job-filter-form input[type="text"]:focus {
        border-color: var(--zinc-400);
    }

    .filter-row {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 16px;
        align-items: end;
    }

    .filter-group {
        display: flex;
        flex-direction: column;
    }

    .filter-group label {
        font-weight: 500;
        margin-bottom: 6px;
        color: var(--text-primary);
        font-size: 0.875rem;
    }

    .filter-btn {
        background: var(--zinc-900);
        color: white;
        border: 1px solid var(--zinc-900);
        padding: 10px 24px;
        border-radius: var(--radius-2xl);
        font-size: 0.875rem;
        font-weight: 500;
        cursor: pointer;
        transition: all 0.2s ease;
    }

    .filter-btn:hover {
        background: var(--zinc-800);
    }

    /* Stats Items - Legacy */
    .header-meta {
        display: none;
    }

    .stats-container {
        display: none;
    }

    /* ===== 2-COLUMN LAYOUT WITH CHAT SIDEBAR ===== */
    .page-layout {
        display: flex;
        gap: 24px;
        max-width: 1400px;
        margin: 0 auto;
        padding: 0 16px;
    }

    .main-content-area {
        flex: 1;
        min-width: 0;
    }

    /* ===== CHAT SIDEBAR ===== */
    .chat-sidebar {
        width: 320px;
        flex-shrink: 0;
        position: sticky;
        top: 80px;
        height: calc(100vh - 100px);
        display: flex;
        flex-direction: column;
        gap: 16px;
    }

    /* Chat Section */
    .chat-section {
        background: white;
        border: 1px solid var(--border-light);
        border-radius: var(--radius-3xl);
        box-shadow: var(--shadow-sm);
        display: flex;
        flex-direction: column;
        flex: 1;
        min-height: 0;
        overflow: hidden;
    }

    .chat-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 16px;
        border-bottom: 1px solid var(--border-light);
    }

    .chat-header-title {
        display: flex;
        align-items: center;
        gap: 8px;
        font-size: 0.875rem;
        font-weight: 600;
        color: var(--text-primary);
    }

    .chat-header-title svg {
        color: var(--zinc-600);
    }

    .chat-badge {
        background: #22c55e;
        color: white;
        font-size: 0.625rem;
        font-weight: 600;
        padding: 2px 8px;
        border-radius: var(--radius-full);
        text-transform: uppercase;
        letter-spacing: 0.05em;
    }

    .chat-info {
        display: flex;
        align-items: center;
        gap: 6px;
        padding: 8px 16px;
        background: var(--zinc-50);
        font-size: 0.6875rem;
        color: var(--zinc-500);
    }

    .chat-messages {
        flex: 1;
        overflow-y: auto;
        padding: 12px;
        display: flex;
        flex-direction: column;
        gap: 8px;
    }

    .chat-empty {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        height: 100%;
        color: var(--zinc-400);
        font-size: 0.875rem;
        text-align: center;
    }

    .chat-empty-sub {
        font-size: 0.75rem;
        margin-top: 4px;
    }

    .chat-message {
        background: var(--zinc-50);
        border-radius: var(--radius-2xl);
        padding: 10px 12px;
    }

    .chat-message-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
        margin-bottom: 4px;
    }

    .chat-message-name {
        font-size: 0.75rem;
        font-weight: 600;
        color: var(--text-primary);
        display: flex;
        align-items: center;
        gap: 4px;
    }

    .chat-verified-tick {
        color: var(--sky-600);
        flex-shrink: 0;
    }

    .chat-message-time {
        font-size: 0.625rem;
        color: var(--zinc-400);
    }

    .chat-message-text {
        font-size: 0.8125rem;
        color: var(--zinc-700);
        line-height: 1.4;
        word-wrap: break-word;
    }

    .chat-input-container {
        padding: 12px;
        border-top: 1px solid var(--border-light);
        display: flex;
        flex-direction: column;
        gap: 8px;
    }

    .chat-guest-name {
        width: 100%;
        padding: 8px 12px;
        border: 1px solid var(--border-light);
        border-radius: var(--radius-2xl);
        font-size: 0.8125rem;
        outline: none;
        background: var(--zinc-50);
    }

    .chat-guest-name:focus {
        border-color: var(--zinc-400);
        background: white;
    }

    .chat-input-row {
        display: flex;
        gap: 8px;
    }

    .chat-input {
        flex: 1;
        padding: 10px 14px;
        border: 1px solid var(--border-light);
        border-radius: var(--radius-2xl);
        font-size: 0.875rem;
        outline: none;
    }

    .chat-input:focus {
        border-color: var(--zinc-400);
    }

    .chat-send-btn {
        width: 40px;
        height: 40px;
        border-radius: var(--radius-2xl);
        background: var(--zinc-900);
        color: white;
        border: none;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: background 0.2s ease;
        flex-shrink: 0;
    }

    .chat-send-btn:hover {
        background: var(--zinc-800);
    }

    .chat-send-btn:disabled {
        background: var(--zinc-300);
        cursor: not-allowed;
    }

    .chat-user-info {
        font-size: 0.6875rem;
        color: var(--zinc-500);
        display: flex;
        align-items: center;
        gap: 4px;
    }

    .chat-user-info strong {
        color: var(--text-primary);
    }

    .premium-tick-small {
        color: var(--sky-600);
    }

    /* Members Section */
    .members-section {
        background: white;
        border: 1px solid var(--border-light);
        border-radius: var(--radius-3xl);
        box-shadow: var(--shadow-sm);
        padding: 16px;
        max-height: 200px;
        flex-shrink: 0;
    }

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

    .members-header-title {
        display: flex;
        align-items: center;
        gap: 8px;
        font-size: 0.875rem;
        font-weight: 600;
        color: var(--text-primary);
    }

    .members-header-title svg {
        color: var(--zinc-600);
    }

    .members-count {
        background: var(--zinc-100);
        color: var(--zinc-600);
        font-size: 0.6875rem;
        font-weight: 600;
        padding: 2px 8px;
        border-radius: var(--radius-full);
    }

    .members-list {
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
        max-height: 120px;
        overflow-y: auto;
    }

    .member-tag {
        background: var(--zinc-50);
        color: var(--zinc-700);
        font-size: 0.75rem;
        padding: 4px 10px;
        border-radius: var(--radius-full);
        border: 1px solid var(--border-light);
        text-decoration: none;
        display: inline-block;
        transition: all 0.2s ease;
        cursor: pointer;
    }

    @media (hover: hover) {
        .member-tag:hover {
            background: var(--zinc-100);
            color: var(--zinc-900);
            border-color: var(--zinc-300);
            transform: translateY(-1px);
        }
    }

    .member-tag:active {
        transform: scale(0.97);
    }

    .members-empty {
        color: var(--zinc-400);
        font-size: 0.8125rem;
        text-align: center;
        padding: 16px 0;
    }

    /* Chat Toggle Button (Mobile Only) */
    .chat-toggle-btn {
        display: none;
        position: fixed;
        bottom: 20px;
        right: 20px;
        width: 56px;
        height: 56px;
        border-radius: var(--radius-full);
        background: var(--zinc-900);
        color: white;
        border: none;
        cursor: pointer;
        box-shadow: var(--shadow-lg);
        z-index: 999;
        align-items: center;
        justify-content: center;
    }

    /* Mobile Responsive */
    @media (max-width: 1024px) {
        .page-layout {
            flex-direction: column;
        }

        .chat-sidebar {
            position: fixed;
            top: 0;
            right: -100%;
            width: 100%;
            max-width: 360px;
            height: 100vh;
            z-index: 1001;
            background: white;
            padding: 16px;
            transition: right 0.3s ease;
            border-left: 1px solid var(--border-light);
        }

        .chat-sidebar.open {
            right: 0;
        }

        .chat-toggle-btn {
            display: flex;
        }
    }

    @media (max-width: 480px) {
        .chat-sidebar {
            max-width: 100%;
        }
    }

    /* ===== RANDOM CONNECT SIDEBAR ===== */

    /* Homepage Layout with Sidebar */
    .homepage-layout {
        display: block;
        max-width: 72rem;
        margin: 0 auto;
        padding: 0 20px;
    }

    /* Hero-level layout - starts from top */
    .homepage-layout-hero {
        padding-top: 80px; /* Account for fixed header */
        min-height: 100vh;
    }

    .homepage-layout-hero .homepage-main {
        padding-top: 20px;
    }

    .homepage-layout-hero .homepage-sidebar {
        padding-top: 20px;
    }

    .homepage-main {
        min-width: 0;
    }

    .homepage-sidebar {
        position: relative;
    }

    @media (max-width: 1024px) {
        .homepage-layout {
            grid-template-columns: 1fr;
        }

        .homepage-sidebar {
            order: -1;
        }
    }

    /* Random Connect Sidebar Widget */
    .random-connect-sidebar {
        position: sticky;
        top: 100px; /* Default: header height (80px) + spacing (20px) - will be adjusted by JS */
        max-height: calc(100vh - 120px); /* Viewport height minus header and spacing */
        overflow-y: auto;
        overflow-x: hidden;
    }

    .connect-widget {
        background: white;
        border: 1px solid var(--border-light);
        border-radius: var(--radius-3xl);
        padding: 20px;
        box-shadow: var(--shadow-sm);
    }

    /* Custom scrollbar for sidebar */
    .random-connect-sidebar::-webkit-scrollbar {
        width: 6px;
    }

    .random-connect-sidebar::-webkit-scrollbar-track {
        background: transparent;
    }

    .random-connect-sidebar::-webkit-scrollbar-thumb {
        background: var(--zinc-300);
        border-radius: 3px;
    }

    .random-connect-sidebar::-webkit-scrollbar-thumb:hover {
        background: var(--zinc-400);
    }

    /* Firefox scrollbar */
    .random-connect-sidebar {
        scrollbar-width: thin;
        scrollbar-color: var(--zinc-300) transparent;
    }

    .connect-widget-header {
        display: flex;
        align-items: center;
        gap: 12px;
        margin-bottom: 16px;
    }

    .connect-icon {
        width: 44px;
        height: 44px;
        border-radius: var(--radius-2xl);
        background: var(--zinc-900);
        border: 1px solid var(--zinc-800);
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
    }

    .connect-icon svg {
        width: 22px;
        height: 22px;
        color: white;
    }

    .connect-header-text {
        flex: 1;
        min-width: 0;
    }

    .connect-title {
        font-size: 1rem;
        font-weight: 600;
        color: var(--text-primary);
        margin: 0;
        line-height: 1.3;
    }

    .connect-subtitle {
        font-size: 0.75rem;
        color: var(--text-secondary);
        margin: 2px 0 0 0;
    }

    .connect-live-badge {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        background: var(--zinc-100);
        padding: 4px 10px;
        border-radius: var(--radius-full);
        font-size: 0.6875rem;
        font-weight: 500;
        color: var(--zinc-700);
        flex-shrink: 0;
    }

    .live-dot {
        width: 6px;
        height: 6px;
        background: #22c55e;
        border-radius: 50%;
        animation: pulse-live 2s infinite;
    }

    @keyframes pulse-live {
        0%, 100% { opacity: 1; transform: scale(1); }
        50% { opacity: 0.6; transform: scale(0.85); }
    }

    /* Connect Stats */
    .connect-stats {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
        margin-bottom: 16px;
        padding: 12px;
        background: var(--zinc-50);
        border-radius: var(--radius-2xl);
    }

    .connect-stat {
        text-align: center;
    }

    .connect-stat .stat-number {
        display: block;
        font-size: 0.9375rem;
        font-weight: 600;
        color: var(--text-primary);
    }

    .connect-stat .stat-label {
        display: block;
        font-size: 0.625rem;
        color: var(--text-secondary);
        text-transform: uppercase;
        letter-spacing: 0.05em;
    }

    /* Connect Form */
    .connect-form {
        display: flex;
        flex-direction: column;
        gap: 10px;
        margin-bottom: 16px;
    }

    .connect-input {
        width: 100%;
        padding: 12px 14px;
        border: 1px solid var(--border-light);
        border-radius: var(--radius-2xl);
        font-size: 0.875rem;
        outline: none;
        transition: all 0.2s ease;
        background: white;
    }

    .connect-input:focus {
        border-color: var(--zinc-400);
        box-shadow: 0 0 0 3px rgba(24, 24, 27, 0.08);
    }

    .connect-input::placeholder {
        color: var(--zinc-400);
    }

    .connect-buttons {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }

    .connect-btn {
        width: 100%;
        padding: 12px 16px;
        background: var(--zinc-900);
        color: white;
        border: none;
        border-radius: var(--radius-2xl);
        font-size: 0.875rem;
        font-weight: 500;
        cursor: pointer;
        transition: all 0.2s ease;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
    }

    @media (hover: hover) {
        .connect-btn:hover {
            background: var(--zinc-800);
            transform: translateY(-1px);
            box-shadow: 0 4px 12px rgba(24, 24, 27, 0.25);
        }
    }

    .connect-btn:active {
        transform: scale(0.96);
    }

    .connect-btn-chat {
        background: var(--sky-600);
    }

    .connect-btn-chat:hover {
        background: #0369a1;
    }

    .connect-btn svg {
        width: 16px;
        height: 16px;
    }

    /* Connect Features */
    .connect-features {
        display: flex;
        flex-direction: column;
        gap: 8px;
        margin-bottom: 12px;
    }

    .connect-feature {
        display: flex;
        align-items: center;
        gap: 8px;
        font-size: 0.75rem;
        color: var(--text-secondary);
    }

    .connect-feature svg {
        width: 14px;
        height: 14px;
        color: #22c55e;
        flex-shrink: 0;
    }

    /* Connect Tip */
    .connect-tip {
        display: flex;
        align-items: center;
        gap: 8px;
        padding: 10px 12px;
        background: var(--zinc-50);
        border-radius: var(--radius-xl);
        font-size: 0.75rem;
        color: var(--text-secondary);
        margin-bottom: 12px;
    }

    .connect-tip svg {
        width: 14px;
        height: 14px;
        color: var(--zinc-600);
        flex-shrink: 0;
    }

    .connect-tip a {
        color: var(--zinc-900);
        font-weight: 500;
        text-decoration: none;
    }

    .connect-tip a:hover {
        text-decoration: underline;
    }

    /* Connect Alternative */
    .connect-alt {
        padding-top: 12px;
        border-top: 1px solid var(--border-light);
        text-align: center;
    }

    .connect-alt a {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        font-size: 0.75rem;
        color: var(--zinc-600);
        text-decoration: none;
        transition: color 0.2s ease;
    }

    .connect-alt a:hover {
        color: var(--zinc-900);
    }

    .connect-alt svg {
        width: 14px;
        height: 14px;
    }

    /* Modal Styles for Quick Connect */
    .modal-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(15, 23, 42, 0.7);
        backdrop-filter: blur(8px);
        z-index: 1000;
        align-items: center;
        justify-content: center;
        padding: 20px;
    }

    .modal-overlay.active {
        display: flex;
    }

    .modal-card {
        background: white;
        border-radius: var(--radius-3xl);
        padding: 40px 32px;
        max-width: 380px;
        width: 100%;
        text-align: center;
        box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    }

    .modal-spinner {
        width: 64px;
        height: 64px;
        margin: 0 auto 24px;
        position: relative;
    }

    .spinner-ring {
        position: absolute;
        width: 100%;
        height: 100%;
        border: 3px solid var(--zinc-200);
        border-top-color: var(--zinc-900);
        border-radius: 50%;
        animation: spin 1s linear infinite;
    }

    .spinner-ring:nth-child(2) {
        width: 50%;
        height: 50%;
        top: 25%;
        left: 25%;
        border-top-color: var(--zinc-600);
        animation-duration: 0.7s;
        animation-direction: reverse;
    }

    @keyframes spin {
        to { transform: rotate(360deg); }
    }

    .modal-title {
        font-size: 1.25rem;
        font-weight: 600;
        color: var(--text-primary);
        margin-bottom: 6px;
    }

    .modal-subtitle {
        font-size: 0.875rem;
        color: var(--text-secondary);
        margin-bottom: 24px;
    }

    .cancel-btn {
        padding: 12px 28px;
        background: white;
        color: var(--text-secondary);
        border: 1px solid var(--border-light);
        border-radius: var(--radius-2xl);
        font-size: 0.875rem;
        font-weight: 500;
        cursor: pointer;
        transition: all 0.2s ease;
    }

    .cancel-btn:hover {
        background: var(--zinc-50);
        border-color: var(--zinc-300);
        color: var(--text-primary);
    }

    /* Chat Section in Connect Widget */
    .connect-chat-section {
        margin-top: 20px;
        padding-top: 20px;
        border-top: 1px solid var(--border-light);
    }

    .connect-chat-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 8px;
        gap: 12px;
    }

    .connect-chat-header-left {
        flex: 1;
        min-width: 0;
    }

    .connect-chat-header-title {
        display: flex;
        align-items: center;
        gap: 6px;
        font-size: 0.8125rem;
        font-weight: 600;
        color: var(--text-primary);
        margin-bottom: 4px;
    }

    .connect-chat-header-title svg {
        width: 14px;
        height: 14px;
        color: var(--zinc-600);
    }

    .connect-chat-status {
        display: flex;
        align-items: center;
        gap: 6px;
        font-size: 0.6875rem;
        color: var(--zinc-600);
    }

    .connect-status-dot {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: var(--green-500);
        animation: pulse 2s infinite;
        flex-shrink: 0;
    }

    .connect-leave-btn {
        padding: 6px 10px;
        background: var(--zinc-100);
        color: var(--zinc-700);
        border: 1px solid var(--border-light);
        border-radius: var(--radius-md);
        font-size: 0.6875rem;
        font-weight: 500;
        cursor: pointer;
        transition: all 0.2s ease;
        display: flex;
        align-items: center;
        gap: 4px;
        flex-shrink: 0;
    }

    .connect-leave-btn:hover {
        background: var(--red-500);
        color: white;
        border-color: var(--red-500);
    }

    .connect-leave-btn svg {
        width: 12px;
        height: 12px;
    }

    .connect-chat-badge {
        font-size: 0.625rem;
        font-weight: 600;
        color: var(--green-500);
        text-transform: uppercase;
        letter-spacing: 0.5px;
        display: flex;
        align-items: center;
        gap: 4px;
    }

    .connect-chat-badge::before {
        content: '';
        width: 6px;
        height: 6px;
        border-radius: 50%;
        background: var(--green-500);
        animation: pulse 2s infinite;
    }

    .connect-chat-privacy-notice {
        display: flex;
        align-items: flex-start;
        gap: 6px;
        padding: 8px 10px;
        background: var(--zinc-50);
        border: 1px solid var(--zinc-200);
        border-radius: var(--radius-md);
        margin-bottom: 12px;
        font-size: 0.6875rem;
        color: var(--zinc-600);
        line-height: 1.4;
    }

    .connect-chat-privacy-notice svg {
        width: 12px;
        height: 12px;
        color: var(--zinc-500);
        flex-shrink: 0;
        margin-top: 1px;
    }

    .connect-chat-info {
        display: flex;
        align-items: center;
        gap: 6px;
        font-size: 0.6875rem;
        color: var(--zinc-500);
        margin-bottom: 12px;
    }

    .connect-chat-info svg {
        width: 10px;
        height: 10px;
        flex-shrink: 0;
    }

    .connect-chat-messages {
        background: var(--zinc-50);
        border: 1px solid var(--border-light);
        border-radius: var(--radius-lg);
        padding: 12px;
        max-height: 200px;
        overflow-y: auto;
        margin-bottom: 12px;
        min-height: 100px;
    }

    .connect-chat-messages::-webkit-scrollbar {
        width: 4px;
    }

    .connect-chat-messages::-webkit-scrollbar-track {
        background: transparent;
    }

    .connect-chat-messages::-webkit-scrollbar-thumb {
        background: var(--zinc-300);
        border-radius: 2px;
    }

    .connect-chat-messages::-webkit-scrollbar-thumb:hover {
        background: var(--zinc-400);
    }

    .connect-chat-empty {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 20px 0;
        color: var(--zinc-400);
        font-size: 0.75rem;
        text-align: center;
    }

    .connect-chat-empty-sub {
        font-size: 0.6875rem;
        color: var(--zinc-400);
        margin-top: 4px;
    }

    .connect-chat-message {
        margin-bottom: 12px;
    }

    .connect-chat-message:last-child {
        margin-bottom: 0;
    }

    .connect-chat-message-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 4px;
        gap: 8px;
    }

    .connect-chat-message-name {
        font-size: 0.6875rem;
        font-weight: 600;
        color: var(--zinc-700);
        display: flex;
        align-items: center;
        gap: 4px;
    }

    .connect-chat-verified-tick {
        width: 12px;
        height: 12px;
        color: var(--sky-600);
        flex-shrink: 0;
    }

    .connect-chat-message-time {
        font-size: 0.625rem;
        color: var(--zinc-400);
        flex-shrink: 0;
    }

    .connect-chat-message-text {
        font-size: 0.75rem;
        color: var(--zinc-700);
        line-height: 1.4;
        word-wrap: break-word;
    }

    .connect-chat-input-container {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }

    .connect-chat-guest-name {
        width: 100%;
        padding: 8px 12px;
        font-size: 0.75rem;
        border: 1px solid var(--border-light);
        border-radius: var(--radius-md);
        background: white;
        color: var(--text-primary);
    }

    .connect-chat-guest-name:focus {
        outline: none;
        border-color: var(--zinc-400);
    }

    .connect-chat-input-row {
        display: flex;
        gap: 8px;
        align-items: center;
    }

    .connect-chat-input {
        flex: 1;
        padding: 8px 12px;
        font-size: 0.75rem;
        border: 1px solid var(--border-light);
        border-radius: var(--radius-md);
        background: white;
        color: var(--text-primary);
    }

    .connect-chat-input:focus {
        outline: none;
        border-color: var(--zinc-400);
    }

    .connect-chat-send-btn {
        width: 36px;
        height: 36px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: var(--zinc-900);
        color: white;
        border: none;
        border-radius: var(--radius-md);
        cursor: pointer;
        transition: all 0.2s ease;
        flex-shrink: 0;
    }

    .connect-chat-send-btn:hover {
        background: var(--zinc-800);
    }

    .connect-chat-send-btn:disabled {
        opacity: 0.5;
        cursor: not-allowed;
    }

    .connect-chat-send-btn svg {
        width: 14px;
        height: 14px;
    }

    .connect-chat-user-info {
        display: flex;
        align-items: center;
        gap: 6px;
        font-size: 0.6875rem;
        color: var(--zinc-500);
    }

    .connect-chat-user-info strong {
        color: var(--zinc-700);
        font-weight: 600;
    }

    .premium-tick-small {
        width: 12px;
        height: 12px;
        color: var(--sky-600);
        flex-shrink: 0;
    }

    /* Mobile Responsive for Random Connect */
    @media (max-width: 1024px) {
        .random-connect-sidebar {
            position: static;
            max-height: none; /* Remove max-height on mobile for natural flow */
            overflow-y: visible;
        }

        .connect-widget {
            margin-bottom: 24px;
        }
    }

    @media (max-width: 480px) {
        .connect-widget {
            padding: 16px;
        }

        .connect-icon {
            width: 40px;
            height: 40px;
        }

        .connect-icon svg {
            width: 20px;
            height: 20px;
        }

        .connect-stats {
            padding: 10px;
        }

        .connect-stat .stat-number {
            font-size: 0.875rem;
        }

        .connect-chat-messages {
            max-height: 150px;
        }

        .connect-chat-section {
            margin-top: 16px;
            padding-top: 16px;
        }
    }

    /* Value Proposition */
    .connect-value-prop {
        font-size: 0.8125rem;
        color: var(--text-secondary);
        line-height: 1.5;
        margin-bottom: 16px;
    }

    /* Premium Upsell Section */
    .connect-premium {
        background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
        border: 1px solid #fcd34d;
        border-radius: var(--radius-xl);
        padding: 14px;
        margin-bottom: 12px;
    }

    .premium-badge-preview {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        background: white;
        padding: 4px 10px;
        border-radius: var(--radius-full);
        font-size: 0.75rem;
        font-weight: 600;
        color: var(--zinc-800);
        margin-bottom: 8px;
        box-shadow: var(--shadow-sm);
    }

    .premium-badge-preview .verified-icon {
        width: 16px;
        height: 16px;
        color: #0284c7;
    }

    .premium-text {
        font-size: 0.75rem;
        color: var(--zinc-700);
        margin: 0 0 10px 0;
        line-height: 1.4;
    }

    .premium-cta {
        display: block;
        font-size: 0.75rem;
        font-weight: 600;
        color: var(--zinc-900);
        text-decoration: none;
        transition: color 0.2s ease;
    }

    .premium-cta:hover {
        color: #b45309;
        text-decoration: underline;
    }

    /* Verified Member Status */
    .connect-verified-status {
        display: flex;
        align-items: center;
        gap: 8px;
        background: #f0fdf4;
        border: 1px solid #86efac;
        border-radius: var(--radius-xl);
        padding: 10px 12px;
        margin-bottom: 12px;
        font-size: 0.75rem;
        font-weight: 500;
        color: #166534;
    }

    .connect-verified-status .verified-icon {
        width: 16px;
        height: 16px;
        color: #0284c7;
    }
