@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800;900&display=swap');

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

:root {
    /* Premium Modern Dark Theme */
    --primary-color: #6366f1; /* Indigo 500 */
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    --secondary-color: #ec4899; /* Pink 500 */
    --accent-color: #06b6d4; /* Cyan 500 */
    --accent-glow: rgba(99, 102, 241, 0.2);

    /* Status Colors */
    --success-color: #10b981;
    --success-bg: rgba(16, 185, 129, 0.1);
    --danger-color: #f43f5e;
    --danger-bg: rgba(244, 63, 94, 0.1);
    --warning-color: #f59e0b;
    --warning-bg: rgba(245, 158, 11, 0.1);
    --info-color: #0ea5e9;
    --info-bg: rgba(14, 165, 233, 0.1);

    /* Background Colors — Deep, sleek, premium darks */
    --bg-color: #09090b; /* Zinc 950 */
    --bg-secondary: #0f0f12;
    --bg-tertiary: #181c20;
    --card-bg: rgba(20, 20, 23, 0.7);
    --card-bg-solid: #141417;
    --card-bg-hover: #1f1f24;
    --card-bg-elevated: #26262c;

    /* Text Colors — Crisp and high contrast */
    --text-primary: #f8fafc;
    --text-secondary: #a1a1aa;
    --text-muted: #71717a;
    --text-accent: #e0e7ff;

    /* Border Colors */
    --border-color: rgba(255, 255, 255, 0.08);
    --border-light: rgba(255, 255, 255, 0.12);
    --border-accent: rgba(99, 102, 241, 0.3);

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #6366f1 0%, #a855f7 50%, #ec4899 100%);
    --gradient-secondary: linear-gradient(135deg, #06b6d4 0%, #3b82f6 100%);
    --gradient-dark: linear-gradient(160deg, #181c20 0%, #09090b 100%);
    --gradient-card: linear-gradient(160deg, rgba(31, 31, 36, 0.8) 0%, rgba(20, 20, 23, 0.7) 100%);
    --gradient-glow: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(236, 72, 153, 0.05) 100%);
    --gradient-mesh: radial-gradient(ellipse at 20% 50%, rgba(99, 102, 241, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(236, 72, 153, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse at 60% 80%, rgba(6, 182, 212, 0.04) 0%, transparent 50%);
    --gradient-border: linear-gradient(135deg, rgba(99, 102, 241, 0.4), rgba(236, 72, 153, 0.2), rgba(6, 182, 212, 0.2));

    /* Shadows — Elegant and precise */
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.3), 0 4px 12px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.4), 0 2px 8px rgba(0, 0, 0, 0.2);
    --shadow-glow: 0 0 24px rgba(99, 102, 241, 0.15), 0 0 48px rgba(99, 102, 241, 0.05);
    --shadow-accent: 0 4px 24px rgba(99, 102, 241, 0.2);
    --shadow-premium: 0 12px 48px rgba(0, 0, 0, 0.5), 0 0 1px rgba(255, 255, 255, 0.1);

    /* Blur Effects */
    --blur-sm: blur(8px);
    --blur-md: blur(20px);
    --blur-lg: blur(32px);

    /* Glassmorphism */
    --glass-bg: rgba(20, 20, 23, 0.65);
    --glass-bg-hover: rgba(31, 31, 36, 0.75);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-border-hover: rgba(99, 102, 241, 0.3);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    --glass-shadow-hover: 0 16px 48px rgba(0, 0, 0, 0.5), 0 0 24px rgba(99, 102, 241, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.08);

    /* Section Spacing */
    --section-pad-y: 7rem;
    --section-pad-x: 3rem;

    /* Transitions */
    --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-spring: 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

html {
    margin: 0;
    padding: 0;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

body.dashboard-active {
    overflow: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.15);
}

/* Navigation */
.navbar {
    background: rgba(9, 9, 11, 0.85);
    backdrop-filter: blur(24px) saturate(1.2);
    -webkit-backdrop-filter: blur(24px) saturate(1.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    color: var(--text-primary);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* --- Copilot Announcement Bar --- */
.announcement-bar {
    background: linear-gradient(90deg, rgba(124, 138, 255, 0.12) 0%, rgba(6, 182, 212, 0.10) 50%, rgba(139, 92, 246, 0.12) 100%);
    border-top: 1px solid rgba(124, 138, 255, 0.15);
    padding: 0;
    margin-top: 0.85rem;
    overflow: hidden;
    transition: margin 0.35s ease, opacity 0.25s ease;
    opacity: 1;
}


.announcement-bar-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0.45rem 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.announcement-bar-text {
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.4;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.announcement-bar-new {
    background: linear-gradient(135deg, #7c8aff, #a78bfa);
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.15rem 0.55rem;
    border-radius: 4px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    flex-shrink: 0;
}

.announcement-bar-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.announcement-bar-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.3rem 0.75rem;
    border-radius: 7px;
    text-decoration: none;
    transition: all var(--transition-fast);
    white-space: nowrap;
}

.announcement-bar-btn-primary {
    background: linear-gradient(135deg, #7c8aff, #a78bfa);
    color: white;
    box-shadow: 0 2px 8px rgba(124, 138, 255, 0.25);
}

.announcement-bar-btn-primary:hover {
    box-shadow: 0 4px 14px rgba(124, 138, 255, 0.4);
    transform: translateY(-1px);
}

.announcement-bar-btn-ghost {
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.announcement-bar-btn-ghost:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.14);
}


@media (max-width: 768px) {
    .announcement-bar {
        margin-top: 0.65rem;
    }

    .announcement-bar-inner {
        flex-wrap: wrap;
        justify-content: center;
        text-align: center;
        padding: 0.4rem 1rem;
        gap: 0.6rem;
    }

    .announcement-bar-text {
        font-size: 0.72rem;
        flex: 1 1 100%;
        min-width: 0;
        justify-content: center;
    }

    .announcement-bar-actions {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        gap: 0.35rem;
    }

    .announcement-bar-btn {
        font-size: 0.68rem;
        padding: 0.25rem 0.6rem;
    }
}

@media (max-width: 480px) {
    .announcement-bar-inner {
        flex-wrap: wrap;
        justify-content: center;
        text-align: center;
        padding: 0.4rem 0.75rem;
        gap: 0.35rem;
    }

    .announcement-bar-text {
        justify-content: center;
        font-size: 0.7rem;
    }

    .announcement-bar-btn-ghost {
        display: none;
    }
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0.85rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.nav-brand h1 {
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    flex-wrap: wrap;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
    cursor: pointer;
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
}

.nav-links a:hover {
    color: var(--text-primary);
    background: rgba(124, 138, 255, 0.08);
}

/* User Menu */
.user-menu {
    position: relative;
}

.user-menu-trigger {
    color: var(--text-primary);
    font-weight: 500;
    padding: 0.5rem 1rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: all 0.2s ease;
    gap: 0.5rem;
}

.user-menu-trigger:hover {
    background: var(--card-bg-hover);
    border-color: var(--primary-color);
}

.user-menu-trigger::after {
    content: '▼';
    font-size: 0.65rem;
    margin-left: 0.25rem;
    opacity: 0.6;
}

.user-menu-trigger img {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary-color);
}

.user-menu-dropdown {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    background: var(--gradient-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 0.85rem;
    box-shadow: var(--shadow-premium);
    min-width: 220px;
    z-index: 1000;
    overflow: hidden;
    animation: slideDown 0.2s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.user-menu-dropdown a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1.25rem;
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.2s ease;
    border-bottom: 1px solid var(--border-color);
    justify-content: flex-start;
}

.user-menu-dropdown a:last-child {
    border-bottom: none;
}

.user-menu-dropdown a:hover {
    background: rgba(124, 138, 255, 0.06);
    color: var(--primary-light);
}

/* Notification Bell */
.notification-container {
    position: relative;
}

.notification-bell {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 1.25rem;
    padding: 0.5rem;
    border-radius: 0.75rem;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
}

.notification-bell:hover {
    background: var(--card-bg-hover);
    border-color: var(--primary-color);
    color: var(--text-primary);
}

.notification-badge {
    position: absolute;
    top: -0.25rem;
    right: -0.25rem;
    background: var(--danger-color);
    color: white;
    border-radius: 50%;
    width: 1.25rem;
    height: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 600;
    border: 2px solid var(--bg-secondary);
}

.notification-dropdown {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    background: linear-gradient(160deg, #1b1b2a 0%, #141422 100%);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 0.85rem;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55);
    width: 380px;
    max-height: 500px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    z-index: 1001;
    animation: slideDown 0.2s ease-out;
}

.notification-header {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #181826;
}

.notification-header h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.clear-all-btn {
    background: none;
    border: none;
    color: var(--primary-color);
    cursor: pointer;
    font-size: 0.875rem;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    transition: all 0.2s ease;
}

.clear-all-btn:hover {
    background: rgba(124, 138, 255, 0.1);
}

.notification-list {
    overflow-y: auto;
    max-height: 400px;
}

.notification-item {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    gap: 0.75rem;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.notification-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.notification-item.read {
    opacity: 0.88;
}

.notification-icon {
    font-size: 1.25rem;
    flex-shrink: 0;
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--bg-tertiary);
}

.notification-icon.success {
    background: var(--success-bg);
}

.notification-icon.error {
    background: var(--danger-bg);
}

.notification-icon.warning {
    background: var(--warning-bg);
}

.notification-icon.info {
    background: var(--info-bg);
}

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

.notification-title {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
    font-size: 0.875rem;
}

.notification-message {
    color: var(--text-secondary);
    font-size: 0.875rem;
    line-height: 1.5;
    margin-bottom: 0.25rem;
    white-space: pre-line;
}

.notification-time {
    color: var(--text-muted);
    font-size: 0.75rem;
}

.notification-dot {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 0.5rem;
    height: 0.5rem;
    background: var(--primary-color);
    border-radius: 50%;
}

.user-menu-dropdown a>span.menu-icon {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 1.5rem;
    height: 1.5rem;
    flex-shrink: 0;
    color: var(--text-secondary);
    transition: color 0.2s ease;
}

.user-menu-dropdown a:hover>span.menu-icon {
    color: var(--primary-light);
}

.user-menu-dropdown a>span.menu-icon svg {
    width: 1.25rem;
    height: 1.25rem;
}

.user-menu-dropdown a>span:not(.menu-icon) {
    flex: 1;
}

/* Main Container */
.container {
    max-width: 1400px;
    margin: 2rem auto;
    padding: 0 2rem;
}

.container.homepage-layout {
    margin: 0 auto;
}

.container.dashboard-fluid {
    max-width: none;
    width: 100%;
    padding: 0;
    margin: 0;
}

.section {
    animation: fadeIn 0.3s ease-in;
}

#homepageSection.section {
    padding: 0;
    margin: 0;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Auth Cards & Form Cards */
.auth-card,
.form-card {
    background: var(--gradient-card);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 1.25rem;
    padding: 2.5rem;
    box-shadow: var(--shadow-premium);
    max-width: 500px;
    margin: 2rem auto;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    position: relative;
    overflow: hidden;
}

.auth-card h2,
.form-card h2 {
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    text-align: center;
    font-weight: 700;
    font-size: 1.75rem;
}

/* Form Styles */
.form-group {
    margin-bottom: 1.5rem;
    position: relative;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.9rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.875rem 1rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    font-size: 1rem;
    color: var(--text-primary);
    transition: all 0.2s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

.form-group input[type="file"] {
    padding: 0.75rem;
    cursor: pointer;
}

.form-group input[type="file"]:hover {
    background: var(--card-bg-hover);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: rgba(124, 138, 255, 0.4);
    box-shadow: 0 0 0 3px rgba(124, 138, 255, 0.1);
}

.form-group textarea {
    resize: vertical;
    font-family: inherit;
    min-height: 100px;
}

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2'%3E%3Cpolyline points='6,9 12,15 18,9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

.form-group small {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.register-consent-group {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    margin-top: 0.25rem;
}

.register-consent-checkbox {
    width: 1rem !important;
    height: 1rem;
    margin-top: 0.18rem;
    flex: 0 0 1rem;
    accent-color: var(--primary-color);
    cursor: pointer;
    border-radius: 0.2rem;
}

.register-consent-label {
    margin: 0;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.92rem;
    line-height: 1.45;
    display: inline;
}

.register-consent-label a {
    color: var(--primary-light);
    text-decoration: none;
    font-weight: 600;
}

.register-consent-label a:hover {
    text-decoration: underline;
}

/* Referral Fields */
.referral-value-input {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    border-radius: 0.75rem;
    padding: 0.875rem 1rem;
    font-size: 0.95rem;
    line-height: 1.2;
}

.referral-value-input[readonly] {
    cursor: text;
}

.referral-value-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(124, 138, 255, 0.15);
}

.referral-code-input {
    width: 220px;
    max-width: 100%;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.referral-link-input {
    min-width: 320px;
    flex: 1;
}

.referral-copy-btn {
    width: auto;
    min-width: 160px;
}

/* Searchable Dropdown */
.searchable-dropdown {
    position: relative;
    width: 100%;
}

.searchable-dropdown .dropdown-search {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    background: var(--bg-tertiary);
    color: var(--text-primary);
    font-size: 0.95rem;
    transition: all 0.2s ease;
    cursor: text;
}

.searchable-dropdown .dropdown-search:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(124, 138, 255, 0.1);
}

.searchable-dropdown .dropdown-search::placeholder {
    color: var(--text-muted);
}

.searchable-dropdown .dropdown-list {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-height: 250px;
    overflow-y: auto;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-top: none;
    border-radius: 0 0 0.5rem 0.5rem;
    z-index: 1000;
    display: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.searchable-dropdown.open .dropdown-list {
    display: block;
}

.searchable-dropdown.open .dropdown-search {
    border-radius: 0.5rem 0.5rem 0 0;
}

.searchable-dropdown .dropdown-item {
    padding: 0.75rem 1rem;
    cursor: pointer;
    transition: background-color 0.15s ease;
    color: var(--text-primary);
    font-size: 0.9rem;
    border-bottom: 1px solid var(--border-color);
}

.searchable-dropdown .dropdown-item:last-child {
    border-bottom: none;
}

.searchable-dropdown .dropdown-item:hover {
    background: var(--bg-tertiary);
}

.searchable-dropdown .dropdown-item.selected {
    background: rgba(124, 138, 255, 0.15);
    color: var(--primary-light);
}

.searchable-dropdown .dropdown-item.hidden {
    display: none;
}

.searchable-dropdown .dropdown-item.rule-hidden {
    display: none;
}

.searchable-dropdown .dropdown-item.highlighted {
    background: var(--bg-tertiary);
}

.searchable-dropdown .no-results {
    padding: 0.75rem 1rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    text-align: center;
}

#imagePreviews {
    margin-top: 1rem;
}

#imagePreviews>div {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 0.75rem;
    border: 2px solid var(--border-color);
    transition: all 0.2s ease;
}

#imagePreviews>div:hover {
    transform: scale(1.02);
    border-color: var(--primary-color);
}

#imagePreviews>div button {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    border: none;
    background: var(--danger-color);
    color: white;
    cursor: pointer;
    font-size: 1.125rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    opacity: 0.9;
}

#imagePreviews>div button:hover {
    background: #dc2626;
    transform: scale(1.1);
    opacity: 1;
}

/* Buttons */
.btn {
    padding: 0.8rem 1.4rem;
    border: none;
    border-radius: 0.65rem;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-smooth);
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    letter-spacing: 0.01em;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 2px 12px rgba(124, 138, 255, 0.2);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 24px rgba(124, 138, 255, 0.3);
    filter: brightness(1.05);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(124, 138, 255, 0.25);
}

.btn-danger {
    background: var(--danger-color);
    color: white;
}

.btn-danger:hover {
    background: #dc2626;
    transform: translateY(-2px);
}

.auth-switch {
    text-align: center;
    margin-top: 1.5rem;
    color: var(--text-secondary);
}

.auth-switch a {
    color: var(--primary-light);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.auth-switch a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

/* Search Bar */
.search-bar {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 1.5rem;
    border-radius: 1rem;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
}

.search-bar input[type="text"] {
    flex: 1;
    min-width: 200px;
    padding: 0.875rem 1rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    font-size: 1rem;
    color: var(--text-primary);
}

.search-bar input[type="text"]::placeholder {
    color: var(--text-muted);
}

.search-bar input[type="text"]:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(124, 138, 255, 0.15);
}

.search-bar select {
    padding: 0.875rem 1rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    font-size: 1rem;
    color: var(--text-primary);
    cursor: pointer;
}

.price-filter {
    display: flex;
    gap: 0.5rem;
}

.price-filter input {
    width: 120px;
    padding: 0.875rem 1rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    font-size: 1rem;
    color: var(--text-primary);
}

.price-filter input::placeholder {
    color: var(--text-muted);
}

.search-bar .btn {
    width: auto;
    padding: 0.875rem 2rem;
}

/* Items Grid */
.items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.item-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    cursor: pointer;
}

.item-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--border-accent);
}

.item-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
}

.item-content {
    padding: 1.5rem;
}

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

.item-price {
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.item-category {
    display: inline-block;
    padding: 0.375rem 0.875rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 2rem;
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
}

.item-description {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.5;
}

.item-seller {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
}

.item-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.item-actions .btn {
    flex: 1;
    padding: 0.625rem;
    font-size: 0.875rem;
}

.sold-badge {
    background: var(--danger-color);
    color: white;
    padding: 0.25rem 0.875rem;
    border-radius: 2rem;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 0.5rem;
}

/* Notification Message */
#message {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    padding: 1rem 1.5rem;
    border-radius: 0.75rem;
    box-shadow: var(--shadow-lg);
    z-index: 2000;
    display: none;
    animation: slideIn 0.3s ease-out;
    font-weight: 500;
}

#message.show {
    display: block;
}

#message.success {
    background: var(--success-color);
    color: white;
}

#message.error {
    background: var(--danger-color);
    color: white;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Messages / Chat */
.messages-container {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 1.5rem;
    height: calc(100vh - 200px);
    min-height: 600px;
}

.conversations-list {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: var(--shadow);
    overflow-y: auto;
}

.conversations-list h2 {
    margin-bottom: 1rem;
    color: var(--text-primary);
    font-size: 1.25rem;
}

.conversation-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-radius: 0.75rem;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: 0.5rem;
    position: relative;
    border: 1px solid transparent;
}

.conversation-item:hover {
    background: var(--bg-tertiary);
    border-color: var(--border-color);
}

.conversation-item.unread {
    background: rgba(124, 138, 255, 0.08);
    border-color: var(--border-accent);
    font-weight: 500;
}

.conversation-avatar {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1.125rem;
    flex-shrink: 0;
}

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

.conversation-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.25rem;
}

.conversation-header>div {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.conversation-name {
    font-weight: 600;
    color: var(--text-primary);
}

.conversation-time {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.conversation-preview {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.conversation-item-title {
    font-size: 0.85rem;
    color: var(--primary-light);
    font-weight: 500;
}

.conversation-message {
    font-size: 0.85rem;
    color: var(--text-secondary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.unread-badge {
    background: var(--danger-color);
    color: white;
    border-radius: 50%;
    width: 1.5rem;
    height: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
    flex-shrink: 0;
}

.chat-container {
    display: flex;
    flex-direction: column;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.chat-header {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--bg-tertiary);
    justify-content: space-between;
}

.chat-header>div:first-of-type {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
}

.btn-back {
    background: none;
    border: none;
    color: var(--primary-light);
    font-size: 1rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
}

.btn-delete-chat {
    background: none;
    border: none;
    color: var(--danger-color);
    font-size: 1.125rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
}

.btn-delete-chat:hover {
    background: var(--danger-bg);
    transform: scale(1.05);
}

.btn-back:hover {
    background: rgba(124, 138, 255, 0.1);
}

.chat-messages {
    flex: 1;
    padding: 1.5rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background: var(--bg-secondary);
}

.message {
    display: flex;
    margin-bottom: 0.5rem;
}

.message.sent {
    justify-content: flex-end;
}

.message.received {
    justify-content: flex-start;
}

.message-content {
    max-width: 70%;
    padding: 0.875rem 1.125rem;
    border-radius: 1rem;
    word-wrap: break-word;
}

.message.sent .message-content {
    background: var(--gradient-primary);
    color: white;
    border-bottom-right-radius: 0.25rem;
}

.message.received .message-content {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    border-bottom-left-radius: 0.25rem;
}

.message-text {
    margin-bottom: 0.25rem;
    line-height: 1.5;
}

.message-time {
    font-size: 0.7rem;
    opacity: 0.7;
}

.chat-input-container {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border-color);
    background: var(--card-bg);
}

.chat-input-container form {
    display: flex;
    gap: 0.75rem;
}

.chat-input-container input {
    flex: 1;
    padding: 0.875rem 1rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    font-size: 1rem;
    color: var(--text-primary);
}

.chat-input-container input::placeholder {
    color: var(--text-muted);
}

.chat-input-container input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.btn-emoji {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    font-size: 1.25rem;
    cursor: pointer;
    padding: 0.5rem;
    width: 2.75rem;
    height: 2.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.btn-emoji:hover {
    background: var(--card-bg-hover);
    border-color: var(--primary-color);
}

.emoji-picker {
    position: absolute;
    bottom: calc(100% + 0.5rem);
    left: 0;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    box-shadow: var(--shadow-lg);
    padding: 0.75rem;
    z-index: 1000;
    min-width: 220px;
}

.emoji-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 0.5rem;
}

.emoji-grid span {
    font-size: 1.375rem;
    cursor: pointer;
    padding: 0.375rem;
    text-align: center;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
    user-select: none;
}

.emoji-grid span:hover {
    background: var(--bg-tertiary);
    transform: scale(1.15);
}

.chat-input-container button {
    padding: 0.875rem 1.5rem;
    width: auto;
}

.no-chat-selected {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    box-shadow: var(--shadow);
    color: var(--text-secondary);
    font-size: 1.125rem;
}

/* Dashboard */
#dashboardSection {
    position: relative;
    padding: 0;
    margin: 0;
}

#dashboardSection::before {
    display: none;
}

#dashboardSection .dashboard-container {
    display: grid;
    grid-template-columns: 260px 1fr;
    width: 100%;
    min-height: 100vh;
    height: 100vh;
    min-height: 100dvh;
    height: 100dvh;
    margin: 0;
    padding: 0;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

#dashboardSection .dashboard-sidebar {
    width: 260px;
    background: #181b2e;
    border-right: 1px solid rgba(255, 255, 255, 0.07);
    padding: 0;
    position: sticky;
    top: 0;
    height: 100vh;
    height: 100dvh;
    /* Keep sidebar internals visible so header popovers (notifications/user menu) can
       extend into the content area on desktop without getting clipped. */
    overflow: visible;
    z-index: 10;
    display: flex;
    flex-direction: column;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.08) transparent;
}

#dashboardSection .dashboard-sidebar::-webkit-scrollbar {
    width: 4px;
}

#dashboardSection .dashboard-sidebar::-webkit-scrollbar-track {
    background: transparent;
}

#dashboardSection .dashboard-sidebar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 4px;
}

#dashboardSection .dashboard-sidebar::before {
    display: none;
}

#dashboardSection .sidebar-header {
    padding: 0 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    margin-bottom: 0;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
    min-height: 60px;
}

#dashboardSection .sidebar-brand {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    text-decoration: none;
}

.sidebar-header-btn {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    border: none;
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #7b84a3;
    transition: all 0.2s ease;
    position: relative;
    flex-shrink: 0;
}

.sidebar-header-btn svg {
    width: 17px;
    height: 17px;
}

.sidebar-header-btn:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #e0e4f0;
}

#dashboardSection .sidebar-brand-logo {
    width: 32px;
    height: 32px;
    border-radius: 8px;
}

#dashboardSection .sidebar-brand-name {
    color: #f8fafc;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1.2;
}

#dashboardSection .sidebar-header h2 {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

#dashboardSection .sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 0.75rem 0.75rem;
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    min-height: 0;
}

#dashboardSection .sidebar-subscription-card {
    margin: 1.25rem 0.75rem 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.03);
    padding: 1rem;
    position: relative;
    overflow: hidden;
}

#dashboardSection .sidebar-subscription-card::before {
    display: none;
}

#dashboardSection .sidebar-subscription-label {
    color: var(--text-muted);
    font-size: 0.68rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

#dashboardSection .sidebar-subscription-plan {
    color: var(--text-primary);
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    letter-spacing: -0.01em;
}

#dashboardSection .sidebar-subscription-usage {
    color: var(--text-secondary);
    font-size: 0.78rem;
    line-height: 1.4;
}

#dashboardSection .sidebar-subscription-usage+.sidebar-subscription-usage {
    margin-top: 0.15rem;
}

#dashboardSection .sidebar-upgrade-btn {
    margin-top: 0.9rem;
    width: 100%;
    font-size: 0.82rem;
    padding: 0.6rem 0.8rem;
    border-radius: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    transition: all var(--transition-smooth);
}

#dashboardSection .sidebar-upgrade-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(124, 138, 255, 0.25);
}

#dashboardSection .coupon-code-input {
    width: 100%;
    margin-top: 0.7rem;
    height: 2.35rem;
    padding: 0 0.75rem;
    border-radius: 0.65rem;
    border: 1px solid var(--border-color);
    background: var(--bg-tertiary);
    color: var(--text-primary);
    font-size: 0.85rem;
    text-transform: uppercase;
}

#dashboardSection .coupon-code-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(124, 138, 255, 0.2);
}

#dashboardSection .nav-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.55rem 0.7rem;
    color: #9ba3c2;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    font-weight: 500;
    font-size: 0.855rem;
    border: none;
    background: none;
    position: relative;
}

#dashboardSection .nav-item::before {
    display: none;
}

#dashboardSection .nav-item:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #e0e4f0;
}

#dashboardSection .nav-item:hover::before {
    display: none;
}

#dashboardSection .nav-item.active {
    background: rgba(124, 138, 255, 0.12);
    color: #f0f2ff;
    border: none;
    box-shadow: none;
}

#dashboardSection .nav-item.active::before {
    display: none;
}

#dashboardSection .nav-icon {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 1.25rem;
    height: 1.25rem;
    flex-shrink: 0;
    color: currentColor;
    border-radius: 0;
    background: none;
    border: none;
    transition: all var(--transition-smooth);
}

#dashboardSection .nav-item:hover .nav-icon {
    color: currentColor;
    background: none;
    border: none;
}

#dashboardSection .nav-item.active .nav-icon {
    color: currentColor;
    background: none;
    border: none;
    box-shadow: none;
}

#dashboardSection .nav-icon svg {
    width: 1.1rem;
    height: 1.1rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

#dashboardSection .nav-label {
    flex: 1;
}

#dashboardSection .nav-item-parent {
    justify-content: flex-start;
}

#dashboardSection .nav-caret {
    color: var(--text-secondary);
    font-size: 0.76rem;
    margin-left: auto;
    transition: transform 0.2s ease;
}

#dashboardSection .nav-item-parent.active .nav-caret,
#dashboardSection .nav-item-parent.expanded .nav-caret {
    color: #e2e8f0;
}

#dashboardSection .visa-subnav {
    display: grid;
    gap: 0.25rem;
    margin: 0.15rem 0 0.6rem 2.18rem;
    padding: 0.2rem 0 0.2rem 0.85rem;
    border-left: 1px solid rgba(124, 138, 255, 0.12);
}

#dashboardSection .visa-subnav-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
    color: var(--text-secondary);
    border: 1px solid transparent;
    border-radius: 0.55rem;
    padding: 0.48rem 0.6rem;
    font-size: 0.8rem;
    line-height: 1.35;
    transition: all var(--transition-smooth);
}

#dashboardSection .subnav-icon {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 1.25rem;
    height: 1.25rem;
    flex-shrink: 0;
    color: var(--text-muted);
    border-radius: 0.35rem;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.03);
    transition: all var(--transition-smooth);
}

#dashboardSection .subnav-icon svg {
    width: 0.82rem;
    height: 0.82rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

#dashboardSection .visa-subnav-item:hover .subnav-icon {
    color: var(--primary-light);
    border-color: rgba(124, 138, 255, 0.25);
    background: rgba(124, 138, 255, 0.12);
}

#dashboardSection .visa-subnav-item.active .subnav-icon {
    color: var(--primary-light);
    border-color: rgba(124, 138, 255, 0.35);
    background: rgba(124, 138, 255, 0.18);
}

#dashboardSection .subnav-label {
    flex: 1;
}

#dashboardSection .visa-subnav-item:hover {
    color: var(--text-primary);
    background: rgba(124, 138, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.04);
}

#dashboardSection .visa-subnav-item.active {
    color: var(--text-primary);
    border-color: rgba(124, 138, 255, 0.15);
    background: rgba(124, 138, 255, 0.08);
}

#dashboardSection .dashboard-content {
    flex: 1;
    min-width: 0;
    padding: 1.5rem 2rem 2rem;
    overflow-y: auto;
    height: 100vh;
    height: 100dvh;
    background: #1e2035;
}

/* Sidebar Footer — user, notifications, settings */
#dashboardSection .sidebar-footer {
    padding: 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    flex-shrink: 0;
    margin-top: auto;
}

.sidebar-notif-dot {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #f472b6;
    border: 2px solid #181b2e;
}

.sidebar-notif-wrap {
    position: relative;
    z-index: 220;
}

.sidebar-notif-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    width: 340px;
    max-height: 420px;
    background: #252840;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.45);
    z-index: 200;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.sidebar-notif-dropdown .notification-header {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sidebar-notif-dropdown .notification-header h3 {
    font-size: 0.85rem;
    font-weight: 600;
    color: #f8fafc;
    margin: 0;
}

.sidebar-notif-dropdown .notification-list {
    overflow-y: auto;
    flex: 1;
    max-height: 360px;
}

/* Sidebar User Card */
.sidebar-user-card {
    position: relative;
}

.sidebar-user-trigger {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    width: 100%;
    padding: 0.5rem 0.55rem;
    border-radius: 8px;
    border: none;
    background: rgba(255, 255, 255, 0.04);
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
}

.sidebar-user-trigger:hover {
    background: rgba(255, 255, 255, 0.07);
}

.sidebar-user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: linear-gradient(135deg, #7c8aff, #a78bfa);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.02em;
    flex-shrink: 0;
}

.sidebar-user-info {
    flex: 1;
    min-width: 0;
}

.sidebar-user-name {
    font-size: 0.82rem;
    font-weight: 600;
    color: #e0e4f0;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}

.sidebar-user-caret {
    width: 14px;
    height: 14px;
    color: #646d8a;
    flex-shrink: 0;
}

.sidebar-user-dropdown {
    position: absolute;
    bottom: calc(100% + 6px);
    left: 0;
    right: 0;
    background: #252840;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.5);
    z-index: 200;
    padding: 0.35rem;
    overflow: hidden;
}

.sidebar-user-dropdown a {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.5rem 0.65rem;
    color: #cbd5e1;
    text-decoration: none;
    border-radius: 7px;
    font-size: 0.82rem;
    font-weight: 500;
    transition: all 0.15s ease;
}

.sidebar-user-dropdown a:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #f8fafc;
}

.sidebar-user-dropdown a svg {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
}

.sidebar-user-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.06);
    margin: 0.25rem 0;
}

.sidebar-logout-item {
    color: #f87171 !important;
}

.sidebar-logout-item:hover {
    background: rgba(239, 68, 68, 0.08) !important;
    color: #fca5a5 !important;
}

#dashboardSection .dashboard-tab {
    display: none;
}

#dashboardSection .dashboard-tab.active {
    display: block;
    animation: dashboardTabFadeIn 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.dash-sidebar-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    background: rgba(30, 32, 53, 0.92);
    color: #9ba3c2;
    cursor: pointer;
    transition: all 0.2s ease;
    position: fixed;
    top: 1rem;
    left: 1rem;
    z-index: 50;
    backdrop-filter: blur(8px);
}

.dash-sidebar-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #e2e8f0;
}

.dash-sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 90;
}

.dash-sidebar-overlay.open {
    display: block;
}

@media (max-width: 1024px) {
    .dash-sidebar-toggle {
        display: flex;
    }
}

.dashboard-referral-strip {
    margin-bottom: 1.25rem;
    padding: 0.65rem 1rem;
    border: 1px solid rgba(103, 212, 241, 0.15);
    border-radius: 0.85rem;
    background: linear-gradient(135deg, rgba(103, 212, 241, 0.06), rgba(124, 138, 255, 0.04));
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 2px 12px rgba(0, 0, 0, 0.1);
    flex-wrap: wrap;
    position: relative;
    overflow: hidden;
}

.dashboard-referral-strip::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(103, 212, 241, 0.3), rgba(124, 138, 255, 0.2), transparent);
}

.dashboard-referral-strip-chip {
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
    border: 1px solid rgba(103, 212, 241, 0.25);
    background: rgba(103, 212, 241, 0.1);
    color: #7dd3fc;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    white-space: nowrap;
}

.dashboard-referral-strip-text {
    color: var(--text-secondary);
    font-size: 0.85rem;
    line-height: 1.4;
    display: flex;
    align-items: center;
    gap: 0.45rem;
    flex-wrap: wrap;
    flex: 1;
    min-width: 220px;
}

.dashboard-referral-strip-code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    color: #f0f2f8;
    background: rgba(124, 138, 255, 0.12);
    border: 1px solid rgba(124, 138, 255, 0.2);
    border-radius: 0.4rem;
    padding: 0.18rem 0.5rem;
    letter-spacing: 0.1em;
    font-weight: 700;
    font-size: 0.82rem;
}

.dashboard-referral-strip-stats {
    color: #7dd3fc;
    font-size: 0.78rem;
}

.dashboard-referral-strip-btn {
    width: auto;
    min-width: 120px;
    font-size: 0.78rem;
    padding: 0.5rem 0.85rem;
    white-space: nowrap;
    border-radius: 0.55rem;
}

@keyframes dashboardTabFadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
        filter: blur(4px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

#dashboardSection .tab-header {
    margin-bottom: 2rem;
}

#dashboardSection .tab-header h2 {
    margin: 0 0 0.4rem 0;
    font-size: 1.85rem;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.025em;
}

#dashboardSection .tab-subtitle {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin: 0;
    font-weight: 400;
}

#dashboardSection .quick-action-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.9rem 1rem;
    margin-bottom: 0.65rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 0.7rem;
    text-decoration: none;
    color: var(--text-primary);
    transition: all var(--transition-smooth);
    cursor: pointer;
}

#dashboardSection .quick-action-btn:hover {
    background: rgba(124, 138, 255, 0.08);
    color: var(--text-primary);
    border-color: rgba(124, 138, 255, 0.2);
    transform: translateX(3px);
}

#dashboardSection .quick-action-btn .action-icon {
    font-size: 1.25rem;
    width: 1.5rem;
    text-align: center;
}

#dashboardSection .dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.visa-hub-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(300px, 1fr));
    gap: 1rem;
}

.visa-subtab-panel {
    display: none;
}

.visa-subtab-panel.active {
    display: block;
}

.visa-subtab-card {
    min-height: 100%;
}

.visa-hub-card {
    min-height: 100%;
}

.visa-hub-experiences {
    grid-column: 1 / -1;
}

.visa-hub-content {
    display: grid;
    gap: 0.75rem;
}

.visa-hub-copy {
    color: var(--text-secondary);
    margin: 0;
    font-size: 0.93rem;
}

.visa-hub-meta {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.visa-hub-tag {
    display: inline-block;
    margin-left: 0.25rem;
    padding: 0.15rem 0.5rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    border-radius: 999px;
    color: #bfdbfe;
    border: 1px solid rgba(96, 165, 250, 0.4);
    background: rgba(30, 64, 175, 0.25);
}

.visa-hub-list {
    margin: 0;
    padding-left: 1rem;
    color: var(--text-secondary);
    font-size: 0.88rem;
    display: grid;
    gap: 0.3rem;
}

.visa-hub-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.visa-hub-actions .btn {
    width: auto;
    min-width: 185px;
    font-size: 0.85rem;
    padding: 0.58rem 0.9rem;
}

.copilot-upgrade-prompt {
    display: grid;
    gap: 0.6rem;
    padding: 0.95rem;
    border-radius: 0.95rem;
    border: 1px solid rgba(122, 141, 255, 0.35);
    background: linear-gradient(130deg, rgba(18, 28, 56, 0.68), rgba(49, 34, 100, 0.56));
}

.copilot-upgrade-title {
    margin: 0;
    font-size: 0.98rem;
    font-weight: 700;
    color: var(--text-primary);
}

.copilot-upgrade-copy {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.copilot-upgrade-actions .btn {
    min-width: 170px;
}

.visa-mock-panel {
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 1.25rem;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    display: grid;
    gap: 1.25rem;
    overflow: hidden;
    z-index: 1;
}

.visa-mock-panel:fullscreen {
    background: #0f172a;
    border-radius: 0;
    border: none;
    padding: 2.5rem;
    max-width: 100%;
    margin: 0;
    height: 100vh;
    overflow-y: auto;
}

.visa-mock-headerline {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.visa-mock-console-title {
    font-size: 1.3rem;
    font-weight: 800;
    color: transparent;
    background: linear-gradient(135deg, #e0e7ff, #a5b4fc, #c084fc);
    -webkit-background-clip: text;
    background-clip: text;
    letter-spacing: 0.03em;
    text-shadow: 0 4px 15px rgba(129, 140, 248, 0.3);
}

.visa-mock-state-pills {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.visa-fullscreen-toggle {
    width: auto !important;
    min-width: 0;
    padding: 0.18rem 0.6rem;
    border-radius: 999px;
    border: 1px solid rgba(96, 165, 250, 0.45);
    background: rgba(30, 64, 175, 0.32);
    color: #dbeafe;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 1.2;
    box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.14);
}

.visa-fullscreen-toggle:hover:not([disabled]) {
    transform: translateY(-1px);
    border-color: rgba(96, 165, 250, 0.62);
    background: rgba(37, 99, 235, 0.44);
}

.visa-fullscreen-toggle[disabled] {
    opacity: 0.65;
    cursor: not-allowed;
}

.visa-hub-tag-muted {
    color: #cbd5e1;
    border-color: rgba(148, 163, 184, 0.35);
    background: rgba(30, 41, 59, 0.45);
}

.visa-hub-tag.report-generating-badge {
    color: #e0d4fc;
    border-color: rgba(139, 92, 246, 0.65);
    background: linear-gradient(135deg, rgba(88, 28, 135, 0.45), rgba(67, 56, 202, 0.35));
    animation: reportGenGlow 2s ease-in-out infinite;
}

.visa-hub-tag-mode-voice {
    color: #dbeafe;
    border-color: rgba(96, 165, 250, 0.45);
    background: rgba(30, 64, 175, 0.32);
}

.visa-hub-tag-mode-chat {
    color: #dcfce7;
    border-color: rgba(34, 197, 94, 0.45);
    background: rgba(22, 101, 52, 0.32);
}

.visa-hub-tag-timer {
    color: #fde68a;
    border-color: rgba(245, 158, 11, 0.6);
    background: rgba(120, 53, 15, 0.4);
    font-variant-numeric: tabular-nums;
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.2);
    animation: timerPulse 2s infinite;
}

@keyframes timerPulse {

    0%,
    100% {
        box-shadow: 0 0 8px rgba(245, 158, 11, 0.2);
    }

    50% {
        box-shadow: 0 0 16px rgba(245, 158, 11, 0.5);
        border-color: rgba(245, 158, 11, 0.8);
    }
}

.visa-mock-toolbar {
    display: block;
}

.visa-mock-controls {
    display: flex;
    gap: 0.55rem;
    flex-wrap: wrap;
}

.visa-mock-controls .btn {
    width: auto;
    min-width: 150px;
    font-size: 0.84rem;
    padding: 0.56rem 0.85rem;
    border-radius: 0.7rem;
    flex: 0 0 auto;
}

.visa-mock-controls-main .btn:first-child {
    min-width: 170px;
    background: linear-gradient(135deg, #7c8aff 0%, #c084fc 100%);
    border: none;
    box-shadow: 0 4px 15px rgba(124, 138, 255, 0.4);
    font-weight: 700;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.visa-mock-controls-main .btn:first-child:hover {
    box-shadow: 0 8px 25px rgba(124, 138, 255, 0.6);
    transform: translateY(-2px);
}

.visa-mock-secondary-controls {
    display: flex;
    gap: 0.55rem;
    flex-wrap: wrap;
}

.visa-mock-note {
    background: linear-gradient(90deg, rgba(124, 138, 255, 0.1), transparent);
    border: none;
    border-left: 3px solid #7c8aff;
    border-radius: 0.5rem 0.75rem 0.75rem 0.5rem;
    padding: 0.75rem 1rem;
    color: #cbd5e1;
    font-size: 0.85rem;
    line-height: 1.5;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.1);
}

.visa-mock-transcript-label {
    font-size: 0.78rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.visa-mock-mode-picker {
    border: 1px solid var(--border-color);
    border-radius: 0.8rem;
    padding: 0.8rem;
    background: rgba(15, 23, 42, 0.72);
    display: grid;
    gap: 0.65rem;
}

.visa-mock-mode-title {
    font-size: 0.84rem;
    color: var(--text-primary);
    font-weight: 600;
}

.visa-mock-mode-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(220px, 1fr));
    gap: 0.5rem;
}

.visa-mock-mode-actions .btn {
    min-width: 0;
    width: 100%;
    justify-content: flex-start;
    padding: 0.75rem 0.85rem;
    text-align: left;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.2rem;
}

.visa-mock-mode-actions .btn small {
    color: var(--text-secondary);
    font-size: 0.72rem;
    font-weight: 500;
}

.visa-mock-chat-composer {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    border: 1px solid rgba(129, 140, 248, 0.3);
    border-radius: 2rem;
    background: rgba(15, 23, 42, 0.7);
    padding: 0.4rem 0.4rem 0.4rem 1rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.visa-mock-chat-composer.voice-mode {
    border-color: rgba(245, 158, 11, 0.55);
    box-shadow: 0 0 0 1px rgba(245, 158, 11, 0.25), 0 4px 15px rgba(0, 0, 0, 0.25);
}

.visa-mock-chat-composer:focus-within {
    border-color: rgba(129, 140, 248, 0.8);
    box-shadow: 0 0 0 2px rgba(129, 140, 248, 0.2), 0 4px 15px rgba(0, 0, 0, 0.3);
}

.visa-mock-chat-composer input {
    flex: 1;
    min-width: 0;
    border: none;
    background: transparent;
    color: var(--text-primary);
    padding: 0.8rem 0.6rem;
    font-size: 0.95rem;
}

.visa-mock-chat-composer input:focus {
    outline: none;
}

.visa-mock-chat-composer .btn {
    width: auto !important;
    min-width: 80px;
    padding: 0.5rem 1.25rem;
    border-radius: 1.5rem;
    font-weight: 600;
    background: linear-gradient(135deg, #7c8aff, #6366f1);
    border: none;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

.visa-mock-chat-composer .btn:hover:not([disabled]) {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(79, 70, 229, 0.4);
}

.visa-mock-chat-composer .visa-speak-answer-cta {
    min-width: 150px;
    border-radius: 1.5rem;
    border: 1px solid rgba(251, 191, 36, 0.75);
    background: linear-gradient(135deg, #f59e0b 0%, #f97316 100%);
    color: #fff8eb;
    font-weight: 700;
    letter-spacing: 0.02em;
    box-shadow: 0 0 0 1px rgba(245, 158, 11, 0.35), 0 10px 22px rgba(245, 158, 11, 0.28);
    animation: visaSpeakPulse 1.8s ease-in-out infinite;
}

.visa-mock-chat-composer .visa-speak-answer-cta.is-listening {
    animation: none;
    background: linear-gradient(135deg, #ef4444 0%, #f97316 100%);
    border-color: rgba(248, 113, 113, 0.95);
    box-shadow: 0 0 0 2px rgba(248, 113, 113, 0.3), 0 10px 24px rgba(239, 68, 68, 0.3);
}

.visa-mock-chat-composer .visa-speak-answer-cta[disabled] {
    animation: none;
    opacity: 0.65;
    box-shadow: none;
}

.visa-mock-chat-composer .visa-mic-status {
    display: inline-flex;
    align-items: center;
    gap: 0.42rem;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.42);
    background: rgba(15, 23, 42, 0.82);
    color: #cbd5e1;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    padding: 0.44rem 0.72rem;
    white-space: nowrap;
}

.visa-mock-chat-composer .visa-mic-status-dot {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 999px;
    background: #94a3b8;
    box-shadow: 0 0 0 3px rgba(148, 163, 184, 0.2);
}

.visa-mock-chat-composer .visa-mic-status.is-connected {
    border-color: rgba(34, 197, 94, 0.45);
    background: rgba(6, 78, 59, 0.45);
    color: #dcfce7;
}

.visa-mock-chat-composer .visa-mic-status.is-connected .visa-mic-status-dot {
    background: #22c55e;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.22);
}

.visa-mock-chat-composer .visa-mic-status.is-listening {
    border-color: rgba(251, 191, 36, 0.72);
    background: rgba(120, 53, 15, 0.55);
    color: #fde68a;
}

.visa-mock-chat-composer .visa-mic-status.is-listening .visa-mic-status-dot {
    background: #f59e0b;
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.2);
    animation: visaMicDotPulse 1.1s ease-in-out infinite;
}

.visa-mock-chat-composer .visa-mic-status.is-pending {
    border-color: rgba(245, 158, 11, 0.45);
    background: rgba(120, 53, 15, 0.35);
    color: #fcd34d;
}

.visa-mock-chat-composer .visa-mic-status.is-pending .visa-mic-status-dot {
    background: #f59e0b;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.2);
}

.visa-mock-chat-composer .visa-mic-status.is-blocked {
    border-color: rgba(248, 113, 113, 0.75);
    background: rgba(127, 29, 29, 0.55);
    color: #fee2e2;
}

.visa-mock-chat-composer .visa-mic-status.is-blocked .visa-mic-status-dot {
    background: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.22);
}

.visa-mock-chat-composer .visa-mic-status.is-unsupported {
    border-color: rgba(148, 163, 184, 0.5);
    background: rgba(30, 41, 59, 0.65);
    color: #e2e8f0;
}

.visa-mock-chat-composer .visa-mic-status.is-unsupported .visa-mic-status-dot {
    background: #94a3b8;
    box-shadow: 0 0 0 3px rgba(148, 163, 184, 0.18);
}

@keyframes visaSpeakPulse {

    0%,
    100% {
        box-shadow: 0 0 0 1px rgba(245, 158, 11, 0.3), 0 8px 18px rgba(245, 158, 11, 0.22);
    }

    50% {
        box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.22), 0 14px 26px rgba(245, 158, 11, 0.35);
    }
}

@keyframes visaMicDotPulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.22);
    }
}

.visa-mock-log {
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 1rem;
    background: linear-gradient(180deg, rgba(8, 11, 22, 0.7), rgba(15, 23, 42, 0.4));
    box-shadow: inset 0 4px 15px rgba(0, 0, 0, 0.5);
    height: clamp(320px, 52vh, 520px);
    overflow-y: auto;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    scroll-behavior: smooth;
}

@media (max-width: 900px) {
    .visa-mock-log {
        height: clamp(260px, 50vh, 420px);
    }
}

.visa-mock-log::-webkit-scrollbar {
    width: 6px;
}

.visa-mock-log::-webkit-scrollbar-track {
    background: transparent;
}

.visa-mock-log::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.3);
    border-radius: 10px;
}

.visa-mock-log::-webkit-scrollbar-thumb:hover {
    background: rgba(148, 163, 184, 0.5);
}

.visa-mock-log-item {
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    line-height: 1.5;
    max-width: 85%;
    animation: slideInUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.visa-mock-log-item.user {
    align-self: flex-end;
    border-radius: 1.25rem 1.25rem 0 1.25rem;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.2);
    border: none;
}

.visa-mock-log-item.assistant {
    align-self: flex-start;
    border-radius: 1.25rem 1.25rem 1.25rem 0;
    background: rgba(30, 41, 59, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #e2e8f0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.visa-mock-log-item.assistant strong {
    color: #f8fafc;
}

.visa-mock-log-item.assistant p {
    margin: 0.3rem 0;
}

.visa-mock-log-item.assistant ul {
    margin: 0.35rem 0 0.35rem 1rem;
    padding-left: 0.6rem;
    display: grid;
    gap: 0.2rem;
}

.visa-mock-log-item.pending {
    align-self: flex-start;
    border-radius: 1.25rem 1.25rem 1.25rem 0;
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: #93c5fd;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-style: italic;
}

.visa-mock-log-item.pending::before {
    content: '';
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 999px;
    background: #60a5fa;
    animation: visaPendingPulse 1.1s ease-in-out infinite;
    flex: 0 0 0.5rem;
}

@keyframes visaPendingPulse {

    0%,
    100% {
        opacity: 0.35;
        transform: scale(0.9);
    }

    50% {
        opacity: 1;
        transform: scale(1.2);
    }
}

.visa-mock-log-item.system {
    align-self: center;
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 1rem;
    color: #94a3b8;
    font-size: 0.85rem;
    max-width: 90%;
    text-align: center;
    padding: 0.85rem 1.25rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.visa-mock-log-item.system.report-done {
    border-style: solid;
    border-color: rgba(16, 185, 129, 0.5);
    background: linear-gradient(135deg, rgba(6, 95, 70, 0.25), rgba(16, 185, 129, 0.12));
    color: #a7f3d0;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.72rem 0.85rem;
}

.report-done-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.1rem;
    height: 1.1rem;
    border-radius: 50%;
    background: rgba(16, 185, 129, 0.3);
    color: #34d399;
    font-size: 0.7rem;
    font-weight: 700;
    flex-shrink: 0;
}

.visa-mock-log-item.system.report-generating {
    border-style: solid;
    border-color: rgba(139, 92, 246, 0.6);
    background: linear-gradient(135deg, rgba(88, 28, 135, 0.28), rgba(67, 56, 202, 0.22));
    color: #e0d4fc;
    font-weight: 600;
    font-size: 0.88rem;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.72rem 0.85rem;
    animation: reportGenGlow 2s ease-in-out infinite;
    position: relative;
    overflow: hidden;
}

.visa-mock-log-item.system.report-generating::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.12), transparent);
    animation: reportGenShimmer 2.2s ease-in-out infinite;
}

.report-generating-spinner {
    width: 0.85rem;
    height: 0.85rem;
    border-radius: 50%;
    border: 2px solid rgba(139, 92, 246, 0.3);
    border-top-color: #a78bfa;
    animation: reportGenSpin 0.8s linear infinite;
    flex-shrink: 0;
}

@keyframes reportGenGlow {

    0%,
    100% {
        box-shadow: 0 0 6px rgba(139, 92, 246, 0.15), inset 0 0 6px rgba(139, 92, 246, 0.05);
        border-color: rgba(139, 92, 246, 0.5);
    }

    50% {
        box-shadow: 0 0 16px rgba(139, 92, 246, 0.3), inset 0 0 10px rgba(139, 92, 246, 0.08);
        border-color: rgba(139, 92, 246, 0.75);
    }
}

@keyframes reportGenShimmer {
    0% {
        left: -100%;
    }

    100% {
        left: 100%;
    }
}

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

.visa-mock-report {
    border: 1px solid rgba(45, 212, 191, 0.32);
    border-radius: 1rem;
    background:
        radial-gradient(circle at 10% 0%, rgba(15, 118, 110, 0.24), transparent 42%),
        radial-gradient(circle at 85% 10%, rgba(30, 64, 175, 0.24), transparent 46%),
        linear-gradient(180deg, rgba(5, 20, 46, 0.92), rgba(7, 30, 58, 0.9));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 14px 30px rgba(2, 6, 23, 0.32);
    padding: 1rem;
    display: grid;
    gap: 0.95rem;
}

.visa-mock-report-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    flex-wrap: wrap;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid rgba(103, 212, 241, 0.2);
}

.visa-mock-report-title-wrap {
    display: grid;
    gap: 0.22rem;
    max-width: 72ch;
}

.visa-mock-report-title {
    font-size: 1.22rem;
    font-weight: 800;
    color: #e0f2fe;
    letter-spacing: 0.01em;
}

.visa-mock-report-subtitle {
    color: #a5f3fc;
    font-size: 0.84rem;
    line-height: 1.4;
}

.visa-mock-report-generated-at {
    color: rgba(203, 213, 225, 0.78);
    font-size: 0.72rem;
    letter-spacing: 0.02em;
}

.visa-mock-report-download-btn {
    width: auto !important;
    min-width: auto !important;
    padding: 0.48rem 0.9rem !important;
    font-size: 0.78rem !important;
    border-radius: 0.62rem !important;
    border-color: rgba(45, 212, 191, 0.42) !important;
    background: linear-gradient(135deg, rgba(13, 148, 136, 0.28), rgba(29, 78, 216, 0.28)) !important;
    color: #ccfbf1 !important;
    font-weight: 700;
    letter-spacing: 0.01em;
    transition: all 0.2s ease;
}

.visa-mock-report-download-btn:hover {
    background: linear-gradient(135deg, rgba(20, 184, 166, 0.38), rgba(37, 99, 235, 0.36)) !important;
    border-color: rgba(94, 234, 212, 0.6) !important;
    color: #ecfeff !important;
}

.visa-mock-report-body {
    color: #e2e8f0;
    font-size: 0.9rem;
    line-height: 1.58;
    word-break: break-word;
    display: grid;
    gap: 0.95rem;
}

.visa-mock-report-shell {
    display: grid;
    gap: 0.9rem;
}

.visa-mock-report-summary {
    border: 1px solid rgba(125, 211, 252, 0.24);
    border-radius: 0.82rem;
    background: rgba(15, 23, 42, 0.36);
    padding: 0.72rem 0.85rem;
    display: grid;
    gap: 0.4rem;
}

.visa-mock-report-overview {
    display: grid;
    grid-template-columns: minmax(230px, 0.95fr) minmax(0, 2fr);
    gap: 0.75rem;
    align-items: stretch;
}

.visa-mock-report-verdict {
    border: 1px solid rgba(148, 163, 184, 0.32);
    border-radius: 0.8rem;
    background: rgba(15, 23, 42, 0.58);
    padding: 0.78rem;
    display: grid;
    gap: 0.3rem;
}

.visa-mock-report-verdict-label {
    font-size: 0.71rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #94a3b8;
    font-weight: 700;
}

.visa-mock-report-verdict-value {
    font-size: 1.06rem;
    font-weight: 800;
    color: #f8fafc;
    line-height: 1.25;
}

.visa-mock-report-verdict-note {
    font-size: 0.8rem;
    line-height: 1.45;
    color: #cbd5e1;
}

.visa-mock-report-verdict.is-positive {
    border-color: rgba(34, 197, 94, 0.42);
    background: linear-gradient(145deg, rgba(6, 78, 59, 0.62), rgba(15, 23, 42, 0.62));
}

.visa-mock-report-verdict.is-moderate {
    border-color: rgba(245, 158, 11, 0.44);
    background: linear-gradient(145deg, rgba(120, 53, 15, 0.54), rgba(15, 23, 42, 0.62));
}

.visa-mock-report-verdict.is-critical {
    border-color: rgba(248, 113, 113, 0.42);
    background: linear-gradient(145deg, rgba(127, 29, 29, 0.52), rgba(15, 23, 42, 0.62));
}

.visa-mock-report-verdict.is-neutral {
    border-color: rgba(148, 163, 184, 0.34);
    background: linear-gradient(145deg, rgba(30, 41, 59, 0.7), rgba(15, 23, 42, 0.62));
}

.visa-mock-report-metrics {
    display: grid;
    grid-template-columns: repeat(2, minmax(140px, 1fr));
    gap: 0.65rem;
}

.visa-mock-report-metric-card {
    --metric-value: 0%;
    border: 1px solid rgba(148, 163, 184, 0.3);
    border-radius: 0.8rem;
    background: rgba(15, 23, 42, 0.54);
    padding: 0.72rem 0.78rem;
    display: grid;
    gap: 0.36rem;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.visa-mock-report-metric-card-approval {
    border-color: rgba(16, 185, 129, 0.38);
    background: linear-gradient(150deg, rgba(5, 46, 22, 0.52), rgba(15, 23, 42, 0.58));
}

.visa-mock-report-metric-card-rejection {
    border-color: rgba(248, 113, 113, 0.36);
    background: linear-gradient(150deg, rgba(69, 10, 10, 0.48), rgba(15, 23, 42, 0.58));
}

.visa-mock-report-metric-label {
    color: #94a3b8;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700;
}

.visa-mock-report-metric-value {
    color: #ecfeff;
    font-size: 1.42rem;
    font-weight: 800;
    line-height: 1.2;
}

.visa-mock-report-metric-meter {
    height: 0.45rem;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.2);
    overflow: hidden;
}

.visa-mock-report-metric-fill {
    display: block;
    width: var(--metric-value);
    height: 100%;
    border-radius: inherit;
    transition: width 0.35s ease;
}

.visa-mock-report-metric-card-approval .visa-mock-report-metric-fill {
    background: linear-gradient(90deg, #34d399, #2dd4bf);
}

.visa-mock-report-metric-card-rejection .visa-mock-report-metric-fill {
    background: linear-gradient(90deg, #f59e0b, #ef4444);
}

.visa-mock-report-metric-helper {
    color: rgba(203, 213, 225, 0.82);
    font-size: 0.73rem;
    line-height: 1.35;
}

.visa-mock-report-sections {
    display: grid;
    grid-template-columns: repeat(2, minmax(250px, 1fr));
    gap: 0.7rem;
}

.visa-mock-report-section-card {
    --section-accent: #67d4f1;
    border: 1px solid rgba(148, 163, 184, 0.25);
    border-radius: 0.82rem;
    background: rgba(15, 23, 42, 0.45);
    padding: 0.72rem 0.78rem;
    display: grid;
    gap: 0.52rem;
    position: relative;
    overflow: hidden;
}

.visa-mock-report-section-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--section-accent);
    opacity: 0.9;
}

.visa-mock-report-section-card.section-drivers {
    --section-accent: #67d4f1;
}

.visa-mock-report-section-card.section-strengths {
    --section-accent: #22c55e;
}

.visa-mock-report-section-card.section-risks {
    --section-accent: #ef4444;
}

.visa-mock-report-section-card.section-improvements {
    --section-accent: #f59e0b;
    grid-column: 1 / -1;
}

.visa-mock-report-section-card.section-note {
    --section-accent: #a78bfa;
    grid-column: 1 / -1;
}

.visa-mock-report-section-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.6rem;
}

.visa-mock-report-section-title {
    margin: 0;
    font-size: 0.95rem;
    color: #dbeafe;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.visa-mock-report-section-count {
    font-size: 0.69rem;
    color: #94a3b8;
    border: 1px solid rgba(148, 163, 184, 0.35);
    border-radius: 999px;
    padding: 0.15rem 0.45rem;
    white-space: nowrap;
}

.visa-mock-report-paragraph {
    margin: 0;
    color: #e2e8f0;
    line-height: 1.55;
}

.visa-mock-report-list {
    margin: 0;
    padding: 0;
    list-style: none;
    color: #e2e8f0;
    display: grid;
    gap: 0.42rem;
}

.visa-mock-report-list li {
    line-height: 1.5;
    padding-left: 0.98rem;
    position: relative;
}

.visa-mock-report-list li::before {
    content: "";
    position: absolute;
    left: 0.05rem;
    top: 0.54rem;
    width: 0.34rem;
    height: 0.34rem;
    border-radius: 999px;
    background: var(--section-accent);
    box-shadow: 0 0 0 2px rgba(148, 163, 184, 0.24);
}

@media (max-width: 1080px) {
    .visa-mock-report-overview {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .visa-mock-report {
        padding: 0.82rem;
        border-radius: 0.86rem;
    }

    .visa-mock-report-title {
        font-size: 1.05rem;
    }

    .visa-mock-report-subtitle {
        font-size: 0.79rem;
    }

    .visa-mock-report-generated-at {
        font-size: 0.69rem;
    }

    .visa-mock-report-metrics,
    .visa-mock-report-sections {
        grid-template-columns: 1fr;
    }
}

.visa-experience-list {
    display: grid;
    gap: 0.6rem;
}

.visa-experience-filters {
    display: grid;
    gap: 0.85rem;
    margin-bottom: 0.15rem;
}

.visa-experience-field {
    display: grid;
    gap: 0.45rem;
}

.visa-experience-field label {
    color: var(--text-secondary);
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.visa-experience-field select {
    width: 100%;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 0.55rem;
    color: var(--text-primary);
    padding: 0.58rem 0.7rem;
    font-size: 0.88rem;
}

.visa-experience-field-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
}

.visa-consulate-select-all {
    border: 0;
    background: transparent;
    color: var(--primary-light);
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
}

.visa-consulate-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.visa-consulate-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    border: 1px solid var(--border-color);
    border-radius: 999px;
    background: var(--bg-secondary);
    color: var(--text-secondary);
    padding: 0.32rem 0.62rem;
    font-size: 0.8rem;
    cursor: pointer;
    user-select: none;
    transition: all 0.2s ease;
}

.visa-consulate-chip input {
    margin: 0;
}

.visa-consulate-chip.active {
    color: #dbeafe;
    border-color: rgba(96, 165, 250, 0.45);
    background: rgba(30, 64, 175, 0.25);
}

.visa-experience-item {
    border: 1px solid var(--border-color);
    border-radius: 0.65rem;
    background: var(--bg-secondary);
    padding: 0.78rem 0.9rem;
}

.visa-experience-title {
    color: var(--text-primary);
    font-size: 0.93rem;
    font-weight: 650;
}

.visa-experience-note {
    color: var(--text-secondary);
    font-size: 0.83rem;
    margin-top: 0.25rem;
}

.visa-experience-badges {
    margin-top: 0.45rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.visa-experience-badge {
    display: inline-block;
    padding: 0.16rem 0.5rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    color: #bfdbfe;
    border: 1px solid rgba(96, 165, 250, 0.4);
    background: rgba(30, 64, 175, 0.24);
}

.visa-experience-source {
    margin-top: 0.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
    color: var(--text-secondary);
    font-size: 0.77rem;
}

.visa-experience-source a {
    color: var(--primary-light);
    font-weight: 600;
    text-decoration: none;
}

.visa-experience-source a:hover {
    text-decoration: underline;
}

#dashboardSection .news-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

#dashboardSection .news-meta {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

#dashboardSection .news-refresh-btn {
    width: auto;
    min-width: 110px;
    padding: 0.5rem 0.85rem;
    font-size: 0.85rem;
}

#dashboardSection .news-list {
    display: grid;
    gap: 0.85rem;
}

#dashboardSection .news-loading {
    color: var(--text-secondary);
    text-align: center;
    padding: 1.25rem 0.75rem;
    border: 1px dashed var(--border-color);
    border-radius: 0.75rem;
    background: var(--bg-secondary);
}

#dashboardSection .news-item {
    border: 1px solid var(--border-color);
    border-radius: 0.85rem;
    background: var(--bg-secondary);
    padding: 0.95rem 1rem;
}

#dashboardSection .news-item-title {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
}

#dashboardSection .news-item-summary {
    margin: 0.5rem 0;
    color: var(--text-secondary);
    font-size: 0.93rem;
    line-height: 1.5;
}

#dashboardSection .news-item-impact {
    margin: 0 0 0.65rem;
    color: var(--text-primary);
    font-size: 0.88rem;
}

#dashboardSection .news-item-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

#dashboardSection .news-item-source {
    color: var(--text-secondary);
    font-size: 0.8rem;
}

#dashboardSection .news-item-link {
    color: var(--primary-light);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
}

#dashboardSection .news-item-link:hover {
    text-decoration: underline;
}

#dashboardTab-overview .overview-layout {
    display: grid;
    grid-template-columns: minmax(0, 2.15fr) minmax(420px, 1fr);
    gap: clamp(1.25rem, 2vw, 2.25rem);
    align-items: start;
    margin-top: 0.5rem;
}

#dashboardTab-overview .overview-main .dashboard-grid {
    margin-top: 0;
}

#dashboardTab-overview .overview-main {
    min-width: 0;
}

#dashboardTab-overview .overview-health-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.15rem;
}

#dashboardTab-overview .overview-health-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

#dashboardTab-overview .overview-health-subtitle {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 0.2rem;
}

#dashboardTab-overview .overview-health-badge {
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(124, 138, 255, 0.08);
    color: var(--text-accent);
    font-size: 0.78rem;
    font-weight: 600;
    border-radius: 999px;
    padding: 0.35rem 0.85rem;
    white-space: nowrap;
}

#dashboardTab-overview .overview-health-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.65rem;
    margin-bottom: 1.15rem;
}

#dashboardTab-overview .overview-health-stat {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 0.75rem;
    padding: 0.9rem;
    transition: all var(--transition-smooth);
    position: relative;
}

#dashboardTab-overview .overview-health-stat:hover {
    background: rgba(124, 138, 255, 0.04);
    border-color: rgba(124, 138, 255, 0.12);
}

#dashboardTab-overview .overview-health-stat::before {
    content: '';
    position: absolute;
    top: 0;
    left: 1rem;
    right: 1rem;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(124, 138, 255, 0.2), transparent);
}

#dashboardTab-overview .overview-health-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 0.35rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

#dashboardTab-overview .overview-health-value {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1;
    letter-spacing: -0.02em;
}

#dashboardTab-overview .overview-health-rate {
    margin-bottom: 1.15rem;
}

#dashboardTab-overview .overview-health-rate-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

#dashboardTab-overview .overview-health-rate-track {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 999px;
    height: 8px;
    overflow: hidden;
}

#dashboardTab-overview .overview-health-rate-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 999px;
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 12px rgba(124, 138, 255, 0.3);
}

#dashboardTab-overview .overview-health-list-wrap {
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 0.75rem;
    background: rgba(255, 255, 255, 0.02);
    padding: 0.85rem;
}

#dashboardTab-overview .overview-health-list-title {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.6rem;
    letter-spacing: -0.01em;
}

#dashboardTab-overview .overview-health-list {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

#dashboardTab-overview .overview-health-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.04);
    background: rgba(255, 255, 255, 0.02);
    border-radius: 0.6rem;
    padding: 0.6rem 0.75rem;
    transition: all var(--transition-smooth);
}

#dashboardTab-overview .overview-health-item-clickable {
    cursor: pointer;
    transition: all var(--transition-smooth);
}

#dashboardTab-overview .overview-health-item-clickable:hover {
    border-color: rgba(124, 138, 255, 0.2);
    background: rgba(124, 138, 255, 0.04);
    transform: translateY(-1px);
}

#dashboardTab-overview .overview-health-item-name {
    font-size: 0.82rem;
    color: var(--text-primary);
    font-weight: 500;
}

#dashboardTab-overview .overview-health-item-status {
    font-size: 0.72rem;
    font-weight: 700;
    border-radius: 999px;
    padding: 0.22rem 0.6rem;
    white-space: nowrap;
    letter-spacing: 0.01em;
}

#dashboardTab-overview .overview-health-empty {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-align: center;
    padding: 1rem 0;
}

#dashboardTab-documents .documents-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(360px, 1fr);
    gap: clamp(1.25rem, 2vw, 2rem);
    align-items: start;
}

#dashboardTab-documents .documents-main-column {
    min-width: 0;
}

#dashboardTab-documents .documents-right-column {
    min-width: 0;
}

#dashboardTab-documents .documents-upload-widget {
    position: sticky;
    top: 1rem;
}

#dashboardTab-documents .documents-list-widget {
    margin-top: 1.5rem;
}

#dashboardTab-documents .overview-health-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.15rem;
}

#dashboardTab-documents .overview-health-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

#dashboardTab-documents .overview-health-subtitle {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 0.2rem;
}

#dashboardTab-documents .overview-health-badge {
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(124, 138, 255, 0.08);
    color: var(--text-accent);
    font-size: 0.78rem;
    font-weight: 600;
    border-radius: 999px;
    padding: 0.35rem 0.85rem;
    white-space: nowrap;
}

#dashboardTab-documents .overview-health-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.65rem;
    margin-bottom: 1.15rem;
}

#dashboardTab-documents .overview-health-stat {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 0.75rem;
    padding: 0.9rem;
    transition: all var(--transition-smooth);
    position: relative;
}

#dashboardTab-documents .overview-health-stat:hover {
    background: rgba(124, 138, 255, 0.04);
    border-color: rgba(124, 138, 255, 0.12);
}

#dashboardTab-documents .overview-health-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 0.35rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

#dashboardTab-documents .overview-health-value {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1;
    letter-spacing: -0.02em;
}

#dashboardTab-documents .overview-health-rate {
    margin-bottom: 1.15rem;
}

#dashboardTab-documents .overview-health-rate-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

#dashboardTab-documents .overview-health-rate-track {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 999px;
    height: 8px;
    overflow: hidden;
}

#dashboardTab-documents .overview-health-rate-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 999px;
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 12px rgba(124, 138, 255, 0.3);
}

#dashboardTab-documents .overview-health-list-wrap {
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 0.75rem;
    background: rgba(255, 255, 255, 0.02);
    padding: 0.85rem;
}

#dashboardTab-documents .overview-health-list-title {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.6rem;
    letter-spacing: -0.01em;
}

#dashboardTab-documents .overview-health-list {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

#dashboardTab-documents .overview-health-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.04);
    background: rgba(255, 255, 255, 0.02);
    border-radius: 0.6rem;
    padding: 0.6rem 0.75rem;
    transition: all var(--transition-smooth);
}

#dashboardTab-documents .overview-health-item-clickable {
    cursor: pointer;
    transition: all var(--transition-smooth);
}

#dashboardTab-documents .overview-health-item-clickable:hover {
    border-color: rgba(124, 138, 255, 0.2);
    background: rgba(124, 138, 255, 0.04);
    transform: translateY(-1px);
}

#dashboardTab-documents .overview-health-item-name {
    font-size: 0.82rem;
    color: var(--text-primary);
    font-weight: 500;
}

#dashboardTab-documents .overview-health-item-status {
    font-size: 0.72rem;
    font-weight: 700;
    border-radius: 999px;
    padding: 0.22rem 0.6rem;
    white-space: nowrap;
    letter-spacing: 0.01em;
}

#dashboardTab-documents .overview-health-empty {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-align: center;
    padding: 1rem 0;
}

.document-focus-highlight {
    outline: 2px solid var(--primary-color);
    box-shadow: 0 0 0 4px rgba(124, 138, 255, 0.18);
}

#dashboardTab-overview .overview-chat-column {
    position: sticky;
    top: 1rem;
}

#dashboardTab-overview .overview-chat-widget {
    height: clamp(660px, 78vh, 900px);
}

@media (max-width: 1500px) {
    #dashboardTab-overview .overview-layout {
        grid-template-columns: 1fr;
    }

    #dashboardTab-overview .overview-chat-column {
        position: static;
    }

    #dashboardTab-overview .overview-chat-widget {
        height: 620px;
    }

    #dashboardTab-overview .overview-health-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    #dashboardTab-documents .documents-layout {
        grid-template-columns: 1fr;
    }

    #dashboardTab-documents .documents-upload-widget {
        position: static;
    }

    #dashboardTab-documents .overview-health-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

#dashboardSection .dashboard-widget {
    background: var(--gradient-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 1.15rem;
    box-shadow: var(--shadow-premium);
    overflow: hidden;
    transition: all var(--transition-smooth);
    position: relative;
}

#dashboardSection .dashboard-widget::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(124, 138, 255, 0.3), rgba(167, 139, 250, 0.15), transparent);
    z-index: 1;
}

#dashboardSection .dashboard-widget:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg), 0 0 0 1px rgba(124, 138, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.08);
}

#dashboardSection .widget-header {
    background: transparent;
    color: var(--text-primary);
    padding: 1.25rem 1.5rem 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    position: relative;
}

#dashboardSection .widget-header h3 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

#dashboardSection .widget-content {
    padding: 1.35rem 1.5rem;
}

.admin-users-layout {
    max-width: 1200px;
    margin: 0 auto;
}

.admin-users-toolbar {
    display: grid;
    grid-template-columns: minmax(260px, 1.8fr) repeat(2, minmax(150px, 1fr)) auto auto;
    gap: 0.65rem;
    align-items: center;
    margin-bottom: 0.9rem;
}

.admin-users-toolbar input,
.admin-users-toolbar select {
    min-height: 2.5rem;
    border-radius: 0.65rem;
    border: 1px solid var(--border-color);
    background: var(--bg-secondary);
    color: var(--text-primary);
    padding: 0 0.75rem;
    font-size: 0.88rem;
}

.admin-users-toolbar input:focus,
.admin-users-toolbar select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(124, 138, 255, 0.18);
}

.admin-users-toolbar .btn {
    width: auto;
    min-height: 2.5rem;
    padding: 0 0.9rem;
    font-size: 0.82rem;
    border-radius: 0.65rem;
}

.admin-users-summary {
    color: var(--text-secondary);
    font-size: 0.84rem;
    margin-bottom: 0.75rem;
}

.admin-users-table-wrap {
    border: 1px solid rgba(129, 140, 248, 0.22);
    border-radius: 0.9rem;
    overflow: auto;
    background: linear-gradient(180deg, rgba(16, 24, 46, 0.72), rgba(8, 12, 24, 0.72));
}

.admin-users-table {
    width: 100%;
    min-width: 920px;
    border-collapse: collapse;
}

.admin-users-table th,
.admin-users-table td {
    padding: 0.85rem 0.75rem;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    vertical-align: top;
    font-size: 0.84rem;
}

.admin-users-table th {
    color: #bcd2ff;
    font-size: 0.74rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    background: rgba(15, 23, 42, 0.92);
    position: sticky;
    top: 0;
    z-index: 2;
}

.admin-users-table tbody tr:hover {
    background: rgba(124, 138, 255, 0.06);
}

.admin-user-primary {
    color: var(--text-primary);
    font-weight: 700;
    font-size: 0.9rem;
}

.admin-user-meta {
    color: var(--text-secondary);
    margin-top: 0.2rem;
    font-size: 0.78rem;
}

.admin-role-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.25rem 0.55rem;
    border-radius: 999px;
    border: 1px solid rgba(96, 165, 250, 0.35);
    background: rgba(59, 130, 246, 0.12);
    color: #93c5fd;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.03em;
}

.admin-status-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.25rem 0.55rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    border: 1px solid transparent;
}

.admin-status-chip.is-active {
    color: #86efac;
    border-color: rgba(34, 197, 94, 0.34);
    background: rgba(34, 197, 94, 0.14);
}

.admin-status-chip.is-inactive {
    color: #fca5a5;
    border-color: rgba(239, 68, 68, 0.34);
    background: rgba(239, 68, 68, 0.14);
}

.admin-users-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.admin-users-actions .btn {
    width: auto;
    min-width: 86px;
    padding: 0.42rem 0.65rem;
    font-size: 0.76rem;
    border-radius: 0.58rem;
}

.admin-users-empty-cell {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.84rem;
    padding: 1.15rem;
}

.admin-users-pagination {
    margin-top: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.65rem;
}

.admin-users-pagination #adminUsersPageInfo {
    min-width: 120px;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.83rem;
}

@media (max-width: 1100px) {
    .admin-users-toolbar {
        grid-template-columns: minmax(220px, 1fr) repeat(2, minmax(140px, 1fr));
    }

    .admin-users-toolbar .btn {
        width: 100%;
    }
}

@media (max-width: 760px) {
    .admin-users-toolbar {
        grid-template-columns: 1fr;
    }

    .admin-users-pagination {
        justify-content: center;
    }
}

/* Profile Widget */
#dashboardSection .profile-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.danger-zone {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.danger-zone h3 {
    color: var(--danger-color);
    margin-bottom: 1rem;
    font-size: 1.125rem;
}

.danger-zone p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.danger-zone .btn {
    transition: all 0.2s ease;
}

.danger-zone .btn:hover {
    background: #dc2626 !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.profile-picture-container {
    position: relative;
    margin-bottom: 1rem;
}

.profile-picture-container img,
.profile-picture-container div {
    cursor: pointer;
    transition: all 0.2s ease;
}

.profile-picture-container:hover img,
.profile-picture-container:hover div {
    transform: scale(1.05);
    box-shadow: var(--shadow-glow);
}

.profile-subscription-manager {
    margin-top: 1.5rem;
    position: relative;
    overflow: hidden;
    padding: 1.25rem;
    border: 1px solid rgba(129, 140, 248, 0.28);
    border-radius: 18px;
    background:
        radial-gradient(circle at 8% -18%, rgba(34, 211, 238, 0.18), transparent 40%),
        radial-gradient(circle at 94% 115%, rgba(168, 85, 247, 0.2), transparent 46%),
        linear-gradient(145deg, rgba(17, 22, 45, 0.92), rgba(22, 16, 37, 0.92));
    box-shadow: 0 16px 34px rgba(4, 7, 22, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.profile-subscription-manager::before {
    content: '';
    position: absolute;
    top: -140px;
    right: -70px;
    width: 240px;
    height: 240px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(124, 138, 255, 0.32), rgba(124, 138, 255, 0));
    pointer-events: none;
    z-index: 0;
}

.profile-subscription-manager>* {
    position: relative;
    z-index: 1;
}

.profile-subscription-hero {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.95rem 1rem;
    border: 1px solid rgba(129, 140, 248, 0.28);
    border-radius: 14px;
    background: linear-gradient(130deg, rgba(12, 16, 35, 0.72), rgba(16, 19, 39, 0.45));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.profile-subscription-hero-content {
    flex: 1;
    min-width: 0;
}

.profile-subscription-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.22rem 0.58rem;
    border-radius: 999px;
    border: 1px solid rgba(94, 234, 212, 0.34);
    background: rgba(15, 118, 110, 0.17);
    color: #99f6e4;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.profile-subscription-hero-content h3 {
    margin: 0.5rem 0 0;
    font-size: clamp(1.3rem, 2.3vw, 1.75rem);
    line-height: 1.2;
    font-weight: 800;
    color: #f8fafc;
}

.profile-subscription-status-wrap {
    min-width: min(100%, 360px);
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem;
}

.profile-subscription-pill {
    padding: 0.58rem 0.7rem;
    border-radius: 10px;
    border: 1px solid rgba(148, 163, 184, 0.23);
    background: rgba(9, 13, 30, 0.72);
    min-height: 72px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.profile-subscription-pill span {
    display: block;
    font-size: 0.72rem;
    color: #93c5fd;
    letter-spacing: 0.02em;
    margin-bottom: 0.2rem;
}

.profile-subscription-pill strong {
    display: block;
    font-size: 1rem;
    color: #f8fafc;
    line-height: 1.3;
}

#profileSubscriptionStatus {
    text-transform: capitalize;
}

.profile-subscription-section-heading {
    margin: 1rem 0 0.55rem;
    font-size: 0.74rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #a5b4fc;
}

.profile-subscription-header {
    margin-bottom: 0.9rem;
}

.profile-subscription-title {
    font-weight: 700;
    color: var(--text-primary);
}

.profile-subscription-subtitle {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-top: 0.2rem;
}

.profile-subscription-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.7rem;
}

.profile-subscription-grid-top {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.profile-subscription-card {
    position: relative;
    min-height: 84px;
    background: linear-gradient(160deg, rgba(10, 14, 32, 0.84), rgba(12, 15, 30, 0.6));
    border: 1px solid rgba(124, 138, 255, 0.3);
    border-radius: 12px;
    padding: 0.78rem 0.82rem;
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.profile-subscription-card:hover {
    transform: translateY(-1px);
    border-color: rgba(129, 140, 248, 0.5);
    background: linear-gradient(160deg, rgba(13, 17, 40, 0.92), rgba(14, 18, 35, 0.68));
}

.profile-subscription-card span {
    display: block;
    font-size: 0.74rem;
    color: #93c5fd;
    margin-bottom: 0.28rem;
    letter-spacing: 0.02em;
}

.profile-subscription-card strong {
    display: block;
    color: #f8fafc;
    font-size: 1.06rem;
    line-height: 1.3;
    overflow-wrap: anywhere;
}

.profile-subscription-referral {
    margin-top: 0.8rem;
    padding: 0.6rem 0.7rem;
    font-size: 0.86rem;
    color: #cbd5e1;
    border: 1px dashed rgba(148, 163, 184, 0.28);
    border-radius: 10px;
    background: rgba(14, 18, 38, 0.46);
}

.profile-subscription-usage-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.58rem;
}

.profile-subscription-usage-item {
    position: relative;
    font-size: 0.87rem;
    font-weight: 500;
    color: #cbd5e1;
    background: linear-gradient(150deg, rgba(10, 14, 30, 0.74), rgba(13, 17, 34, 0.56));
    border: 1px solid rgba(124, 138, 255, 0.24);
    border-radius: 10px;
    padding: 0.58rem 0.7rem 0.58rem 1.8rem;
    line-height: 1.35;
}

.profile-subscription-usage-item::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0.72rem;
    transform: translateY(-50%);
    width: 0.46rem;
    height: 0.46rem;
    border-radius: 50%;
    background: rgba(129, 140, 248, 0.9);
    box-shadow: 0 0 0 4px rgba(129, 140, 248, 0.15);
}

#profileSubscriptionUsageAi::before {
    background: #22d3ee;
    box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.16);
}

#profileSubscriptionUsageUploads::before {
    background: #60a5fa;
    box-shadow: 0 0 0 4px rgba(96, 165, 250, 0.16);
}

#profileSubscriptionUsagePrep::before {
    background: #a78bfa;
    box-shadow: 0 0 0 4px rgba(167, 139, 250, 0.16);
}

#profileSubscriptionUsageMock::before {
    background: #f472b6;
    box-shadow: 0 0 0 4px rgba(244, 114, 182, 0.16);
}

.profile-subscription-actions {
    margin-top: 0.1rem;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    padding: 0.8rem;
    border-radius: 12px;
    border: 1px solid rgba(129, 140, 248, 0.24);
    background: linear-gradient(150deg, rgba(9, 12, 28, 0.7), rgba(14, 12, 31, 0.7));
}

.profile-subscription-switcher {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
}

.profile-subscription-switcher .btn {
    width: 100%;
    min-height: 3rem;
    border-radius: 12px;
    font-size: 0.97rem;
    font-weight: 700;
    letter-spacing: 0.01em;
}

#profileSubscriptionSwitchMonthlyBtn {
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(148, 163, 184, 0.3);
    color: #e2e8f0;
}

#profileSubscriptionSwitchMonthlyBtn:hover:not(:disabled) {
    border-color: rgba(148, 163, 184, 0.55);
    background: rgba(30, 41, 59, 0.9);
}

#profileSubscriptionSwitchJourneyBtn {
    position: relative;
    overflow: visible;
}

#profileSubscriptionSwitchJourneyBtn::before {
    content: 'BEST VALUE';
    position: absolute;
    top: -0.58rem;
    right: 0.8rem;
    padding: 0.1rem 0.5rem;
    border-radius: 999px;
    border: 1px solid rgba(252, 211, 77, 0.35);
    background: rgba(120, 53, 15, 0.66);
    color: #fde68a;
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.06em;
}

#profileSubscriptionSwitchJourneyBtn:disabled::before {
    content: '';
    border: 0;
    padding: 0;
}

.profile-subscription-switch-hint {
    width: 100%;
    margin: 0.48rem 0 0;
    font-size: 0.86rem;
    color: #cbd5e1;
    line-height: 1.42;
}

.profile-subscription-actions .btn {
    flex: 1 1 auto;
}

#profileSubscriptionCancelBtn {
    max-width: 260px;
}

@media (max-width: 1040px) {
    .profile-subscription-hero {
        flex-direction: column;
    }

    .profile-subscription-status-wrap {
        width: 100%;
        min-width: 0;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .messages-container {
        grid-template-columns: 1fr;
        height: auto;
        min-height: auto;
    }

    .conversations-list {
        max-height: 300px;
    }

    .chat-container {
        min-height: 500px;
    }

    .message-content {
        max-width: 85%;
    }

    .nav-container {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-links {
        width: 100%;
        justify-content: center;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .search-bar {
        flex-direction: column;
    }

    .search-bar input,
    .search-bar select,
    .price-filter {
        width: 100%;
    }

    .items-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .auth-card,
    .form-card {
        padding: 1.5rem;
    }

    .profile-subscription-manager {
        padding: 1rem;
        border-radius: 14px;
    }

    .profile-subscription-hero {
        padding: 0.8rem;
    }

    .profile-subscription-status-wrap {
        grid-template-columns: 1fr;
    }

    .profile-subscription-grid {
        grid-template-columns: 1fr;
    }

    .profile-subscription-usage-grid {
        grid-template-columns: 1fr;
    }

    .profile-subscription-switcher {
        grid-template-columns: 1fr;
    }

    #profileSubscriptionSwitchJourneyBtn::before {
        display: none;
    }

    #profileSubscriptionCancelBtn {
        max-width: none;
    }
}

/* Image Gallery Modal */
.image-gallery-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.95);
    animation: fadeIn 0.3s ease;
}

.image-gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.image-gallery-container {
    position: relative;
    width: 90%;
    max-width: 1200px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 10001;
}

.image-gallery-close {
    position: absolute;
    top: -3rem;
    right: 0;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 2rem;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10002;
    line-height: 1;
    padding: 0;
}

.image-gallery-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.image-gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 2.5rem;
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10002;
    line-height: 1;
    padding: 0;
    user-select: none;
}

.image-gallery-nav:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-50%) scale(1.1);
}

.image-gallery-prev {
    left: -4rem;
}

.image-gallery-next {
    right: -4rem;
}

.image-gallery-main {
    width: 100%;
    max-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 0.75rem;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.image-gallery-main img {
    max-width: 100%;
    max-height: 70vh;
    object-fit: contain;
    border-radius: 0.5rem;
}

.image-gallery-info {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    text-align: center;
}

.image-gallery-thumbnails {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
    max-width: 100%;
    padding: 0 1rem;
    overflow-x: auto;
}

.gallery-thumbnail {
    width: 80px;
    height: 80px;
    border-radius: 0.5rem;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    flex-shrink: 0;
    opacity: 0.5;
}

.gallery-thumbnail:hover {
    opacity: 0.8;
    transform: scale(1.05);
}

.gallery-thumbnail.active {
    opacity: 1;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(124, 138, 255, 0.3);
}

.gallery-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Responsive adjustments for image gallery */
@media (max-width: 768px) {
    .image-gallery-container {
        width: 95%;
        max-height: 95vh;
    }

    .image-gallery-close {
        top: -2.5rem;
        right: 0.5rem;
        width: 2.5rem;
        height: 2.5rem;
        font-size: 1.5rem;
    }

    .image-gallery-nav {
        width: 2.5rem;
        height: 2.5rem;
        font-size: 1.5rem;
    }

    .image-gallery-prev {
        left: 0.5rem;
    }

    .image-gallery-next {
        right: 0.5rem;
    }

    .image-gallery-main {
        max-height: 60vh;
    }

    .image-gallery-main img {
        max-height: 60vh;
    }

    .gallery-thumbnail {
        width: 60px;
        height: 60px;
    }
}

/* Homepage Styles */
#homepageSection {
    margin: 0;
    padding: 0;
    width: 100%;
    max-width: 100%;
}

#homepageSection>div {
    margin: 0;
    border-radius: 0;
    width: 100%;
    box-sizing: border-box;
}

.home-icon-svg {
    width: 1em;
    height: 1em;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex-shrink: 0;
}

.homepage-hero {
    background: linear-gradient(135deg, #05050f 0%, #111122 50%, #0a1122 100%);
    position: relative;
    overflow: hidden;
    color: white;
    padding: 7rem 2rem 5rem;
    min-height: 88vh;
    display: flex;
    align-items: center;
    width: 100%;
    margin: 0;
    border-radius: 0;
}

/* Mesh Background */
.hero-background-mesh {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 0;
    opacity: 0.6;
}

.mesh-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.5;
    animation: drift 25s ease-in-out infinite alternate;
}

.mesh-blob-1 {
    width: 600px;
    height: 600px;
    background: linear-gradient(135deg, rgba(124, 138, 255, 0.4), rgba(139, 92, 246, 0.1));
    top: -200px;
    left: -100px;
    animation-delay: 0s;
}

.mesh-blob-2 {
    width: 500px;
    height: 500px;
    background: linear-gradient(135deg, rgba(103, 212, 241, 0.3), rgba(37, 99, 235, 0.1));
    bottom: -150px;
    right: -100px;
    animation-delay: -5s;
}

.mesh-blob-3 {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.2), rgba(217, 70, 239, 0.1));
    top: 30%;
    left: 40%;
    animation-delay: -10s;
}

.mesh-blob-4 {
    width: 550px;
    height: 550px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(52, 211, 153, 0.05));
    bottom: 20%;
    left: 10%;
    animation-delay: -15s;
}

@keyframes drift {
    0% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(50px, -50px) scale(1.1);
    }

    66% {
        transform: translate(-30px, 40px) scale(0.9);
    }

    100% {
        transform: translate(20px, 20px) scale(1.05);
    }
}

/* Particles */
.hero-particles {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

.particle {
    position: absolute;
    color: rgba(255, 255, 255, 0.15);
    width: 32px;
    height: 32px;
    animation: floatUp 15s linear infinite;
}

.p-1 {
    left: 15%;
    top: 80%;
    animation-duration: 22s;
    animation-delay: 0s;
    width: 40px;
    height: 40px;
}

.p-2 {
    left: 85%;
    top: 90%;
    animation-duration: 25s;
    animation-delay: -5s;
}

.p-3 {
    left: 50%;
    top: 75%;
    animation-duration: 18s;
    animation-delay: -10s;
    width: 24px;
    height: 24px;
}

.p-4 {
    left: 25%;
    top: 60%;
    animation-duration: 20s;
    animation-delay: -12s;
}

@keyframes floatUp {
    0% {
        transform: translateY(100px) rotate(0deg);
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        transform: translateY(-800px) rotate(360deg);
        opacity: 0;
    }
}

/* Layout */
.hero-container {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3.25rem;
    align-items: center;
}

.hero-content-left {
    text-align: left;
    padding-right: 1.25rem;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: rgba(30, 41, 59, 0.5);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 0.45rem 1.05rem;
    border-radius: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 4px 15px rgba(0, 0, 0, 0.2);
    margin-bottom: 1.4rem;
    font-size: 0.82rem;
    font-weight: 500;
    color: #e2e8f0;
}

.glowing-dot {
    width: 8px;
    height: 8px;
    background: #34d399;
    border-radius: 50%;
    display: block;
    box-shadow: 0 0 10px #34d399, 0 0 20px #34d399;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.7);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 10px rgba(52, 211, 153, 0);
    }

    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(52, 211, 153, 0);
    }
}

.hero-title {
    font-family: 'Outfit', 'Inter', sans-serif;
    font-size: clamp(3rem, 5.2vw, 4rem);
    font-weight: 800;
    margin-bottom: 1.15rem;
    line-height: 1.08;
    letter-spacing: -0.03em;
}

.title-gradient {
    background: linear-gradient(to right, #a5b4fc, #c084fc, #f472b6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
    background-size: 200% auto;
    animation: shimmer 4s linear infinite;
}

@keyframes shimmer {
    to {
        background-position: 200% center;
    }
}

.title-main {
    display: block;
    color: #ffffff;
}

.hero-subtitle {
    font-size: 1.08rem;
    margin-bottom: 2rem;
    color: #cbd5e1;
    font-weight: 400;
    line-height: 1.55;
    max-width: 48ch;
}

.hero-buttons {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
    margin-bottom: 2.2rem;
}

.premium-btn {
    position: relative;
    background: linear-gradient(135deg, #6366f1, #a78bfa);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    overflow: hidden;
    z-index: 1;
    box-shadow: 0 10px 25px rgba(79, 70, 229, 0.4);
}

.premium-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #7c8aff, #a78bfa);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.premium-btn:hover::before {
    opacity: 1;
}

.premium-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(79, 70, 229, 0.5);
}

.btn-glow {
    position: absolute;
    width: 50px;
    height: 100%;
    background: rgba(255, 255, 255, 0.3);
    transform: skewX(-20deg) translateX(-150px);
    z-index: -1;
    transition: none;
}

.premium-btn:hover .btn-glow {
    transform: skewX(-20deg) translateX(250px);
    transition: transform 0.7s ease;
}

.glass-btn {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
    display: inline-flex;
    align-items: center;
}

.glass-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.btn-icon {
    font-size: 1.25rem;
    transition: transform 0.3s ease;
}

.premium-btn:hover .btn-icon {
    transform: translateX(5px);
}

.btn-large {
    padding: 0.88rem 1.55rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 0.7rem;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.hero-stats {
    display: flex;
    gap: 1.25rem;
    flex-wrap: wrap;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 1.45rem;
}

.glass-stat {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.stat-gradient {
    font-size: 1.65rem;
    font-weight: 800;
    background: linear-gradient(to right, #f8fafc, #94a3b8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 0.78rem;
    color: #94a3b8;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Floating Cards Visuals (Right side) */
.hero-visual-right {
    position: relative;
    height: 460px;
    perspective: 1000px;
}

.floating-cards-container {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
}

.hero-glass-card {
    position: absolute;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    border-left: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 1.25rem;
    padding: 1.5rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    transform-style: preserve-3d;
    transition: transform 0.3s ease;
}

.card-glass-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.05) 50%, rgba(255, 255, 255, 0) 100%);
    transform: skewX(-20deg);
    animation: cardShine 6s infinite;
}

@keyframes cardShine {
    0% {
        left: -100%;
    }

    20% {
        left: 200%;
    }

    100% {
        left: 200%;
    }
}

.card-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    font-weight: 600;
    color: #f8fafc;
}

.card-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
}

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

.blue-glow {
    color: #60a5fa;
    box-shadow: 0 0 15px rgba(96, 165, 250, 0.3);
}

.purple-glow {
    color: #c084fc;
    box-shadow: 0 0 15px rgba(192, 132, 252, 0.3);
}

.green-glow {
    color: #34d399;
    box-shadow: 0 0 15px rgba(52, 211, 153, 0.3);
}

.skeleton-line {
    height: 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    margin-bottom: 0.75rem;
    position: relative;
    overflow: hidden;
}

.skeleton-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
    animation: loading 1.5s infinite;
}

.skeleton-line.short {
    width: 70%;
}

@keyframes loading {
    100% {
        transform: translateX(100%);
    }
}

.card-status {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-top: 0.5rem;
}

.status-success {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.status-success svg {
    width: 14px;
    height: 14px;
}

.chat-bubble {
    padding: 0.75rem 1rem;
    border-radius: 12px;
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
    width: fit-content;
    max-width: 90%;
}

.user-bubble {
    background: rgba(255, 255, 255, 0.1);
    color: #f8fafc;
    margin-left: auto;
    border-bottom-right-radius: 2px;
}

.ai-bubble {
    background: linear-gradient(135deg, rgba(124, 138, 255, 0.2), rgba(139, 92, 246, 0.2));
    border: 1px solid rgba(124, 138, 255, 0.3);
    color: #e2e8f0;
    border-bottom-left-radius: 2px;
}

.typing-indicator {
    display: flex;
    gap: 4px;
    align-items: center;
    padding: 0.75rem 1.25rem;
}

.typing-indicator span {
    width: 6px;
    height: 6px;
    background: #a5b4fc;
    border-radius: 50%;
    animation: typing 1.4s infinite ease-in-out both;
}

.typing-indicator span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-indicator span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typing {

    0%,
    80%,
    100% {
        transform: scale(0);
    }

    40% {
        transform: scale(1);
    }
}

.card-progress {
    margin-top: 0.5rem;
}

.progress-info {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: #cbd5e1;
    margin-bottom: 0.5rem;
}

.progress-info .score {
    color: #34d399;
    font-weight: 600;
}

.progress-bar-bg {
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    width: 94%;
    background: linear-gradient(90deg, #10b981, #34d399);
    border-radius: 4px;
    box-shadow: 0 0 10px rgba(52, 211, 153, 0.5);
}

.float-card-1 {
    width: 280px;
    top: 50px;
    right: 20px;
    z-index: 3;
    animation: float1 8s ease-in-out infinite;
    transform: rotateY(-10deg) rotateX(5deg);
}

.float-card-2 {
    width: 320px;
    top: 200px;
    left: -20px;
    z-index: 2;
    animation: float2 10s ease-in-out infinite reverse;
    transform: rotateY(15deg) rotateX(-5deg);
}

.float-card-3 {
    width: 260px;
    bottom: 20px;
    right: 40px;
    z-index: 4;
    animation: float3 9s ease-in-out infinite;
    transform: rotateY(-5deg) rotateX(10deg);
}

@keyframes float1 {

    0%,
    100% {
        transform: translateY(0) rotateY(-10deg) rotateX(5deg);
    }

    50% {
        transform: translateY(-15px) rotateY(-8deg) rotateX(3deg);
    }
}

@keyframes float2 {

    0%,
    100% {
        transform: translateY(0) rotateY(15deg) rotateX(-5deg);
    }

    50% {
        transform: translateY(-20px) rotateY(18deg) rotateX(-8deg);
    }
}

@keyframes float3 {

    0%,
    100% {
        transform: translateY(0) rotateY(-5deg) rotateX(10deg);
    }

    50% {
        transform: translateY(-12px) rotateY(-2deg) rotateX(15deg);
    }
}

@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .hero-title {
        font-size: 3.25rem;
        line-height: 1.1;
    }

    .title-main {
        font-size: 2.55rem;
    }

    .hero-content-left {
        text-align: center;
        padding-right: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero-subtitle {
        font-size: 1.03rem;
        margin-left: auto;
        margin-right: auto;
        margin-bottom: 1.6rem;
        max-width: 40ch;
    }

    .hero-buttons {
        justify-content: center;
        margin-bottom: 1.8rem;
    }

    .hero-stats {
        justify-content: center;
        gap: 1rem;
        padding-top: 1.1rem;
    }

    .hero-visual-right {
        height: 400px;
        transform: scale(0.85);
        margin-top: -2rem;
    }

    .float-card-1 {
        right: 0;
        left: auto;
    }

    .float-card-2 {
        left: 0;
    }

    .float-card-3 {
        right: 10px;
    }
}

@media (max-width: 768px) {
    .homepage-hero {
        padding: 6rem 1.25rem 4rem;
        min-height: auto;
    }

    .hero-title {
        font-size: 2.75rem;
    }

    .hero-subtitle {
        font-size: 1.125rem;
        margin-bottom: 2rem;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .hero-buttons .btn-large {
        width: 100%;
        justify-content: center;
    }

    .hero-stats {
        gap: 1.5rem;
        padding-top: 1.5rem;
    }

    .stat-gradient {
        font-size: 1.75rem;
    }

    .hero-badge {
        padding: 0.4rem 1rem;
        font-size: 0.8rem;
    }

    .hero-visual-right {
        display: none;
        /* Hide complex floating cards on mobile to reduce clutter and improve performance */
    }
}

/* Animations added to reveal elements */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 {
    transition-delay: 0.1s;
}

.reveal-delay-2 {
    transition-delay: 0.2s;
}

.reveal-delay-3 {
    transition-delay: 0.3s;
}

.reveal-delay-4 {
    transition-delay: 0.4s;
}



/* Remotion Product Reel */
.homepage-remotion-video {
    padding: 6rem 2rem;
    background: linear-gradient(135deg, #090d1a 0%, #0e1325 45%, #121a33 100%);
    width: 100%;
    margin: 0;
}

.remotion-video-shell {
    max-width: 1260px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(280px, 420px) minmax(0, 1fr);
    gap: 2.5rem;
    align-items: center;
}

.remotion-copy {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.remotion-tag {
    display: inline-flex;
    width: fit-content;
    padding: 0.45rem 0.95rem;
    border-radius: 999px;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #7dd3fc;
    border: 1px solid rgba(125, 211, 252, 0.35);
    background: rgba(103, 212, 241, 0.12);
    font-weight: 600;
}

.remotion-copy h2 {
    margin: 0;
    font-size: 2.55rem;
    line-height: 1.15;
    color: #e2e8f0;
}

.remotion-copy p {
    margin: 0;
    color: #94a3b8;
    font-size: 1.03rem;
    line-height: 1.75;
}

.remotion-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.remotion-highlights span {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.42rem 0.78rem;
    border-radius: 999px;
    background: rgba(30, 41, 59, 0.85);
    border: 1px solid rgba(148, 163, 184, 0.28);
    color: #cbd5e1;
    font-size: 0.82rem;
    font-weight: 500;
}

.remotion-highlights .home-icon-svg {
    width: 0.95rem;
    height: 0.95rem;
    color: #7dd3fc;
}

.remotion-copy-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 0.25rem;
}

.remotion-player-wrap {
    width: 100%;
}

.rilono-reel-player {
    position: relative;
    width: 100%;
    min-height: 500px;
    border-radius: 1.4rem;
    overflow: hidden;
    border: 1px solid rgba(124, 138, 255, 0.32);
    box-shadow: 0 20px 60px rgba(2, 6, 23, 0.55), 0 0 35px rgba(124, 138, 255, 0.18);
    background:
        radial-gradient(circle at 15% 15%, rgba(59, 130, 246, 0.3), transparent 48%),
        radial-gradient(circle at 85% 75%, rgba(124, 138, 255, 0.28), transparent 46%),
        linear-gradient(145deg, #0b1224 0%, #111a34 45%, #172447 100%);
}

.rilono-reel-ambient {
    position: absolute;
    border-radius: 50%;
    filter: blur(70px);
    opacity: 0.5;
    pointer-events: none;
}

.rilono-reel-ambient-a {
    width: 270px;
    height: 270px;
    background: rgba(103, 212, 241, 0.42);
    top: -85px;
    left: -75px;
    animation: reelOrbitalDrift 9s ease-in-out infinite;
}

.rilono-reel-ambient-b {
    width: 320px;
    height: 320px;
    background: rgba(139, 92, 246, 0.4);
    right: -130px;
    bottom: -130px;
    animation: reelOrbitalDrift 11s ease-in-out infinite reverse;
}

@keyframes reelOrbitalDrift {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(18px, -14px) scale(1.08);
    }
}

.rilono-reel-noise {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
    background-size: 30px 30px;
    opacity: 0.48;
    animation: reelNoiseShift 7s linear infinite;
}

@keyframes reelNoiseShift {
    0% {
        transform: translate3d(0, 0, 0);
    }

    100% {
        transform: translate3d(30px, 30px, 0);
    }
}

.rilono-reel-scene {
    position: absolute;
    inset: 1.1rem 1.1rem 4.5rem;
    border-radius: 1rem;
    background: linear-gradient(145deg, rgba(15, 23, 42, 0.88), rgba(30, 41, 59, 0.68));
    border: 1px solid rgba(148, 163, 184, 0.22);
    padding: 1.5rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    opacity: 0;
    transform: translateY(16px) scale(0.985);
    transition: opacity 0.55s ease, transform 0.55s ease;
    pointer-events: none;
    backdrop-filter: blur(4px);
    overflow: hidden;
}

.rilono-reel-scene.is-active {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.reel-scene-content-left {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1rem;
    z-index: 2;
}

.reel-scene-badge {
    display: inline-flex;
    width: fit-content;
    padding: 0.36rem 0.76rem;
    border-radius: 999px;
    border: 1px solid rgba(59, 130, 246, 0.35);
    color: #93c5fd;
    background: rgba(59, 130, 246, 0.12);
    font-size: 0.75rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-weight: 600;
}

.reel-scene-content-left h3 {
    margin: 0;
    font-size: 1.65rem;
    line-height: 1.3;
    color: #f8fafc;
}

.reel-scene-content-left p {
    margin: 0;
    color: #cbd5e1;
    font-size: 1rem;
    line-height: 1.68;
}

.reel-scene-metrics {
    margin-top: 0.4rem;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
}

.reel-scene-metrics div {
    border-radius: 0.8rem;
    border: 1px solid rgba(148, 163, 184, 0.22);
    background: rgba(15, 23, 42, 0.65);
    padding: 0.72rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.reel-scene-metrics strong {
    color: #e2e8f0;
    font-size: 0.94rem;
    font-weight: 700;
}

.reel-scene-metrics span {
    color: #94a3b8;
    font-size: 0.77rem;
    line-height: 1.4;
}

/* Right Column Mockups */
.reel-scene-visual-right {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    z-index: 1;
}

.mockup-container {
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

/* Scene 1: Document Scanner */
.mockup-doc {
    width: 200px;
    height: 280px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.mockup-doc .doc-header {
    width: 60%;
    height: 20px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

.mockup-doc .doc-line {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.mockup-doc .doc-line.short {
    width: 40%;
}

.mockup-doc .doc-photo {
    width: 60px;
    height: 80px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 4px;
    border: 1px dashed rgba(255, 255, 255, 0.3);
}

.mockup-scanner-line {
    position: absolute;
    top: 10%;
    left: 15%;
    right: 15%;
    height: 2px;
    background: #10b981;
    box-shadow: 0 0 15px 5px rgba(16, 185, 129, 0.4);
    z-index: 2;
    opacity: 0;
}

.mockup-status-badge {
    position: absolute;
    bottom: 2rem;
    background: rgba(16, 185, 129, 0.2);
    border: 1px solid #34d399;
    color: #10b981;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: bold;
    opacity: 0;
    transform: scale(0.8);
}

.is-active .mockup-scanner-line {
    animation: scanMotion 3s ease-in-out infinite, fadeIn 0.5s forwards 0.5s;
}

.is-active .mockup-status-badge {
    animation: popIn 0.5s forwards 2s;
}

@keyframes scanMotion {

    0%,
    100% {
        top: 10%;
    }

    50% {
        top: 90%;
    }
}

@keyframes popIn {
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Scene 2: AI Chat */
.mockup-ai-chat {
    justify-content: flex-end;
    gap: 1rem;
    padding-bottom: 2rem;
}

.mockup-ai-chat .chat-bubble {
    padding: 0.75rem 1rem;
    border-radius: 12px;
    font-size: 0.85rem;
    max-width: 85%;
    opacity: 0;
    transform: translateY(10px);
}

.mockup-ai-chat .chat-bubble.user {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    align-self: flex-end;
    border-bottom-right-radius: 2px;
}

.mockup-ai-chat .chat-bubble.ai {
    background: linear-gradient(135deg, rgba(124, 138, 255, 0.2), rgba(139, 92, 246, 0.2));
    border: 1px solid rgba(124, 138, 255, 0.3);
    color: #e2e8f0;
    align-self: flex-start;
    border-bottom-left-radius: 2px;
}

.mockup-ai-chat .dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    background: #a5b4fc;
    border-radius: 50%;
    margin: 0 2px;
    animation: jump 1.4s infinite;
}

.mockup-ai-chat .dot:nth-child(2) {
    animation-delay: 0.2s;
}

.mockup-ai-chat .dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes jump {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-4px);
    }
}

.is-active .chat-bubble.user {
    animation: popInUp 0.4s forwards 0.5s;
}

.is-active .chat-bubble.ai.typing {
    animation: popInUp 0.4s forwards 1.2s, fadeOut 0.4s forwards 3s;
}

.is-active .chat-bubble.ai.answer {
    animation: popInUp 0.4s forwards 3.3s;
}

@keyframes popInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeOut {
    to {
        opacity: 0;
        display: none;
    }
}

/* Scene 3: Interview */
.mockup-interview {
    background: linear-gradient(to bottom, rgba(15, 23, 42, 0.9), rgba(2, 6, 23, 0.9));
}

.vo-avatar {
    font-size: 4rem;
    background: rgba(255, 255, 255, 0.1);
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 2px solid #a78bfa;
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.4);
    margin-bottom: 1.5rem;
    opacity: 0;
}

.vo-question {
    font-style: italic;
    color: white;
    text-align: center;
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0;
}

.audio-waves {
    display: flex;
    align-items: center;
    gap: 4px;
    height: 40px;
    opacity: 0;
}

.audio-waves span {
    display: block;
    width: 4px;
    background: #34d399;
    border-radius: 2px;
    height: 10px;
}

.feedback-toast {
    position: absolute;
    bottom: -50px;
    background: rgba(16, 185, 129, 0.9);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: bold;
}

.is-active .vo-avatar {
    animation: popIn 0.5s forwards 0.3s;
}

.is-active .vo-question {
    animation: fadeIn 0.5s forwards 0.8s;
}

.is-active .audio-waves {
    animation: fadeIn 0.5s forwards 1.5s;
}

.is-active .audio-waves span {
    animation: wave 1s ease-in-out infinite alternate;
}

.is-active .audio-waves span:nth-child(2) {
    animation-delay: 0.2s;
}

.is-active .audio-waves span:nth-child(3) {
    animation-delay: 0.4s;
}

.is-active .audio-waves span:nth-child(4) {
    animation-delay: 0.1s;
}

.is-active .audio-waves span:nth-child(5) {
    animation-delay: 0.3s;
}

.is-active .feedback-toast {
    animation: slideUpToast 0.5s forwards 3s;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

@keyframes wave {
    to {
        height: 40px;
    }
}

@keyframes slideUpToast {
    to {
        bottom: 20px;
    }
}

/* Scene 4: Radar */
.radar-circle {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 1px solid rgba(59, 130, 246, 0.3);
    position: relative;
    overflow: hidden;
    margin-bottom: 2rem;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.1) 0%, transparent 70%);
}

.radar-sweep {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 75px;
    height: 75px;
    background: conic-gradient(from 0deg, transparent 70%, rgba(59, 130, 246, 0.6) 100%);
    transform-origin: 0 0;
    animation: sweep 4s linear infinite;
    display: none;
}

.is-active .radar-sweep {
    display: block;
}

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

.radar-ping {
    position: absolute;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ef4444;
    box-shadow: 0 0 10px #ef4444;
    opacity: 0;
}

.radar-ping.p1 {
    top: 30%;
    left: 60%;
}

.radar-ping.p2 {
    top: 70%;
    left: 30%;
    background: #3b82f6;
    box-shadow: 0 0 10px #3b82f6;
}

.is-active .radar-ping.p1 {
    animation: ping 4s infinite 1s;
}

.is-active .radar-ping.p2 {
    animation: ping 4s infinite 3s;
}

@keyframes ping {
    0% {
        opacity: 0;
        transform: scale(0);
    }

    10% {
        opacity: 1;
        transform: scale(1.5);
    }

    30% {
        opacity: 0;
        transform: scale(1);
    }

    100% {
        opacity: 0;
    }
}

.mockup-radar .alert-card {
    width: 90%;
    padding: 0.75rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    opacity: 0;
    transform: translateX(20px);
}

.alert-card.danger {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #fca5a5;
}

.alert-card.info {
    background: rgba(59, 130, 246, 0.15);
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: #93c5fd;
}

.is-active .alert-card.danger {
    animation: slideInRight 0.5s forwards 1.2s;
}

.is-active .alert-card.info {
    animation: slideInRight 0.5s forwards 3.2s;
}

@keyframes slideInRight {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.rilono-reel-footer {
    position: absolute;
    left: 1.1rem;
    right: 1.1rem;
    bottom: 1.1rem;
    border-radius: 0.8rem;
    padding: 0.6rem 1.2rem;
    border: 1px solid rgba(148, 163, 184, 0.25);
    background: rgba(2, 6, 23, 0.72);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    z-index: 10;
}

.rilono-reel-status {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #cbd5e1;
    font-size: 0.82rem;
    font-weight: 600;
    white-space: nowrap;
    width: 200px;
    flex-shrink: 0;
}

.rilono-live-dot {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background: #34d399;
    box-shadow: 0 0 8px rgba(52, 211, 153, 0.9);
    animation: blink 1.5s ease-in-out infinite;
}

.rilono-reel-progress-track {
    height: 0.35rem;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.24);
    overflow: hidden;
    flex-grow: 1;
}

#rilonoReelProgress {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #22d3ee 0%, #7c8aff 55%, #c084fc 100%);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.12s linear;
}

.rilono-reel-controls {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.52rem;
    width: 200px;
    flex-shrink: 0;
}

.rilono-reel-playpause {
    width: 1.9rem;
    height: 1.9rem;
    border-radius: 50%;
    border: 1px solid rgba(148, 163, 184, 0.4);
    background: rgba(51, 65, 85, 0.65);
    color: #f8fafc;
    font-size: 0.72rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.rilono-reel-playpause:hover {
    border-color: rgba(34, 211, 238, 0.7);
    background: rgba(34, 211, 238, 0.15);
}

.rilono-reel-dot {
    width: 0.62rem;
    height: 0.62rem;
    border-radius: 50%;
    border: none;
    background: rgba(148, 163, 184, 0.45);
    cursor: pointer;
    padding: 0;
}

.rilono-reel-dot.is-active {
    background: #22d3ee;
    box-shadow: 0 0 8px rgba(34, 211, 238, 0.8);
}

@media (max-width: 1024px) {
    .remotion-video-shell {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    .rilono-reel-scene {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        inset: 1rem 1rem 7.5rem;
    }

    .reel-scene-visual-right {
        display: none;
    }

    .rilono-reel-footer {
        flex-direction: column;
        align-items: flex-start;
        height: auto;
        gap: 0.75rem;
        padding: 1rem;
    }

    .rilono-reel-status,
    .rilono-reel-controls {
        width: 100%;
        justify-content: flex-start;
    }

    .rilono-reel-progress-track {
        width: 100%;
        margin: 0;
    }
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-family: 'Outfit', 'Inter', sans-serif;
    font-size: 2.75rem;
    font-weight: 800;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* How It Works Section */
.homepage-how-it-works {
    padding: 6rem 2rem;
    background: var(--bg-secondary);
    width: 100%;
    margin: 0;
}

.steps-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
    position: relative;
}

.step-card {
    flex: 1;
    min-width: 280px;
    max-width: 340px;
    text-align: center;
    padding: 3rem 2rem;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 1.5rem;
    box-shadow: var(--shadow);
    transition: all 0.4s ease;
    position: relative;
}

.step-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.step-number {
    position: absolute;
    top: -1.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 3rem;
    height: 3rem;
    background: var(--gradient-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 800;
    box-shadow: var(--shadow-accent);
}

.step-icon {
    width: 88px;
    height: 88px;
    margin: 1.5rem auto;
    border-radius: 1.4rem;
    border: 1px solid rgba(139, 92, 246, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 0 30px rgba(15, 23, 42, 0.35), 0 8px 24px rgba(2, 6, 23, 0.35);
    backdrop-filter: blur(6px);
    transition: transform 0.35s ease;
}

.step-icon-svg {
    width: 46px;
    height: 46px;
    fill: none;
    stroke: #e2e8f0;
    stroke-width: 2.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.step-icon-docs {
    background: linear-gradient(145deg, rgba(103, 212, 241, 0.24), rgba(59, 130, 246, 0.12));
    border-color: rgba(103, 212, 241, 0.45);
}

.step-icon-ai {
    background: linear-gradient(145deg, rgba(167, 139, 250, 0.25), rgba(236, 72, 153, 0.11));
    border-color: rgba(167, 139, 250, 0.48);
}

.step-icon-ready {
    background: linear-gradient(145deg, rgba(16, 185, 129, 0.24), rgba(34, 197, 94, 0.1));
    border-color: rgba(16, 185, 129, 0.46);
}

.step-card:hover .step-icon {
    transform: translateY(-3px) scale(1.02);
}

.step-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
    font-weight: 700;
}

.step-card p {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 1rem;
}

.step-connector {
    width: 60px;
    height: 2px;
    background: var(--gradient-primary);
    position: relative;
    display: none;
}

.step-connector::after {
    content: '→';
    position: absolute;
    right: -15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary-color);
    font-size: 1.5rem;
}

/* Features Section */
.homepage-features {
    padding: 6rem 2rem;
    background: var(--bg-color);
    width: 100%;
    margin: 0;
}

.features-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.feature-card {
    text-align: center;
    padding: 3rem 2rem;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 1.5rem;
    box-shadow: var(--shadow);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.feature-icon-wrapper {
    margin-bottom: 1.5rem;
    display: inline-block;
}

.feature-icon {
    width: 82px;
    height: 82px;
    border-radius: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    color: #a5b4fc;
    border: 1px solid rgba(124, 138, 255, 0.25);
    background: linear-gradient(145deg, rgba(124, 138, 255, 0.16), rgba(15, 23, 42, 0.4));
    transition: transform 0.4s ease;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
}

.feature-icon .home-icon-svg {
    width: 2.05rem;
    height: 2.05rem;
}

.feature-card:nth-child(2) .feature-icon {
    color: #7dd3fc;
    border-color: rgba(103, 212, 241, 0.35);
}

.feature-card:nth-child(3) .feature-icon {
    color: #fda4af;
    border-color: rgba(244, 114, 182, 0.35);
}

.feature-card:nth-child(4) .feature-icon {
    color: #86efac;
    border-color: rgba(34, 197, 94, 0.3);
}

.feature-card:nth-child(5) .feature-icon {
    color: #f9a8d4;
    border-color: rgba(236, 72, 153, 0.35);
}

.feature-card:nth-child(6) .feature-icon {
    color: #93c5fd;
    border-color: rgba(59, 130, 246, 0.35);
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
    font-weight: 700;
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 1rem;
}

/* Categories Section */
.homepage-categories {
    padding: 6rem 2rem;
    background: var(--bg-secondary);
    width: 100%;
    margin: 0;
}

.categories-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.5rem;
}

.category-card {
    text-align: center;
    padding: 2.5rem 1.5rem;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 1.25rem;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    cursor: pointer;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
    background: var(--gradient-glow);
}

.category-icon {
    width: 66px;
    height: 66px;
    margin-bottom: 1rem;
    margin-left: auto;
    margin-right: auto;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #93c5fd;
    border: 1px solid rgba(59, 130, 246, 0.35);
    background: linear-gradient(145deg, rgba(59, 130, 246, 0.16), rgba(15, 23, 42, 0.4));
    transition: transform 0.3s ease;
}

.category-card:hover .category-icon {
    transform: scale(1.15);
}

.category-icon .home-icon-svg {
    width: 1.85rem;
    height: 1.85rem;
}

.category-card:nth-child(2n) .category-icon {
    color: #a5b4fc;
    border-color: rgba(129, 140, 248, 0.35);
}

.category-card:nth-child(3n) .category-icon {
    color: #86efac;
    border-color: rgba(52, 211, 153, 0.32);
}

.category-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    font-weight: 700;
}

.category-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* CTA Section */
.homepage-cta {
    background: linear-gradient(135deg, #1a1a2e 0%, #0f0f1a 50%, #16213e 100%);
    padding: 6rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    color: white;
    width: 100%;
    margin: 0;
}

.cta-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.3;
    background-image:
        radial-gradient(circle at 20% 50%, rgba(124, 138, 255, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(139, 92, 246, 0.15) 0%, transparent 50%);
}

.cta-content {
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.cta-content h2 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    font-weight: 800;
}

.cta-content p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    line-height: 1.7;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 2.5rem;
}

.btn-cta-secondary {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: var(--blur-sm);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-cta-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary-color);
}

.cta-features {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.cta-feature {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9375rem;
    color: var(--text-secondary);
}

.cta-check {
    width: 1.5rem;
    height: 1.5rem;
    background: rgba(16, 185, 129, 0.2);
    color: var(--success-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.75rem;
}

@media (max-width: 768px) {
    .homepage-hero {
        padding: 5rem 1.5rem 4rem;
        min-height: auto;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .title-main {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.125rem;
        margin-bottom: 2rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
        margin-bottom: 3rem;
    }

    .btn-large {
        width: 100%;
        justify-content: center;
    }

    .hero-stats {
        gap: 2rem;
        padding-top: 2rem;
        margin-top: 2rem;
    }

    .stat-number {
        font-size: 2rem;
    }

    .stat-label {
        font-size: 0.75rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .section-subtitle {
        font-size: 1.125rem;
    }

    .homepage-how-it-works,
    .homepage-features,
    .homepage-categories,
    .homepage-remotion-video {
        padding: 4rem 1.5rem;
    }

    .remotion-video-shell {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .remotion-copy h2 {
        font-size: 2rem;
    }

    .remotion-copy p {
        font-size: 1rem;
    }

    .remotion-highlights {
        gap: 0.5rem;
    }

    .remotion-highlights span {
        font-size: 0.76rem;
    }

    .remotion-copy-actions {
        flex-direction: column;
    }

    .remotion-copy-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .rilono-reel-player {
        min-height: 455px;
    }

    .rilono-reel-scene {
        inset: 0.9rem 0.9rem 6.3rem;
        padding: 1.1rem;
    }

    .rilono-reel-scene h3 {
        font-size: 1.25rem;
    }

    .rilono-reel-scene p {
        font-size: 0.92rem;
    }

    .reel-scene-metrics {
        grid-template-columns: 1fr;
        gap: 0.55rem;
    }

    .rilono-reel-footer {
        left: 0.75rem;
        right: 0.75rem;
        bottom: 0.75rem;
    }

    .steps-container {
        flex-direction: column;
    }

    .step-connector {
        display: none;
    }

    .step-card {
        max-width: 100%;
        margin-bottom: 2rem;
    }

    .features-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .feature-card {
        padding: 2rem 1.5rem;
    }

    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .category-card {
        padding: 1.5rem 1rem;
    }

    .category-icon {
        width: 58px;
        height: 58px;
    }

    .homepage-cta {
        padding: 4rem 1.5rem;
    }

    .cta-content h2 {
        font-size: 2rem;
    }

    .cta-content p {
        font-size: 1.125rem;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .cta-features {
        flex-direction: column;
        gap: 1rem;
    }

    .hero-blob {
        display: none;
    }
}

/* ======================================
   PREMIUM HOMEPAGE SECTION STYLES
   ====================================== */

/* --- Scroll Reveal Animation --- */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 {
    transition-delay: 0.08s;
}

.reveal-delay-2 {
    transition-delay: 0.16s;
}

.reveal-delay-3 {
    transition-delay: 0.24s;
}

.reveal-delay-4 {
    transition-delay: 0.32s;
}

.reveal-delay-5 {
    transition-delay: 0.40s;
}

.reveal-delay-6 {
    transition-delay: 0.48s;
}

.reveal-delay-7 {
    transition-delay: 0.56s;
}

/* --- Premium Card (glassmorphism base) --- */
.premium-card {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 1.25rem;
    box-shadow: var(--glass-shadow);
    padding: 2rem;
    transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    position: relative;
    overflow: hidden;
}

.premium-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.08) 50%, transparent 100%);
}

.premium-card:hover {
    background: var(--glass-bg-hover);
    border-color: var(--glass-border-hover);
    box-shadow: var(--glass-shadow-hover);
    transform: translateY(-6px);
}

/* --- Chrome Extension Section (Premium) --- */
.homepage-chrome-extension {
    background: linear-gradient(160deg, #08090f 0%, #0d1020 40%, #110d1f 70%, #08090f 100%);
    padding: var(--section-pad-y) var(--section-pad-x);
    margin: 0;
    position: relative;
    overflow: hidden;
}

.chrome-ext-ambient {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.chrome-ext-ambient-1 {
    top: -15%;
    right: 10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(124, 138, 255, 0.10) 0%, transparent 70%);
    animation: float 18s ease-in-out infinite;
}

.chrome-ext-ambient-2 {
    bottom: -10%;
    left: -5%;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.08) 0%, transparent 70%);
    animation: float 22s ease-in-out infinite reverse;
}

.chrome-ext-ambient-3 {
    top: 40%;
    left: 50%;
    width: 280px;
    height: 280px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.06) 0%, transparent 70%);
    animation: float 16s ease-in-out infinite 3s;
}

.chrome-ext-inner {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.chrome-ext-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, rgba(52, 211, 153, 0.12), rgba(6, 182, 212, 0.08));
    border: 1px solid rgba(52, 211, 153, 0.25);
    padding: 0.45rem 1.15rem;
    border-radius: 2rem;
    font-size: 0.82rem;
    font-weight: 600;
    color: #6ee7b7;
    margin: 0 auto 1.5rem;
    width: fit-content;
    letter-spacing: 0.02em;
}

.chrome-ext-badge-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #34d399;
    box-shadow: 0 0 8px rgba(52, 211, 153, 0.6);
    animation: statusPulse 2s ease-in-out infinite;
}

@keyframes statusPulse {

    0%,
    100% {
        opacity: 1;
        box-shadow: 0 0 8px rgba(52, 211, 153, 0.6);
    }

    50% {
        opacity: 0.6;
        box-shadow: 0 0 16px rgba(52, 211, 153, 0.3);
    }
}

.chrome-ext-badge-label {
    letter-spacing: 0.03em;
}

.chrome-ext-title {
    font-family: 'Outfit', 'Inter', sans-serif;
    color: var(--text-primary);
    font-size: 2.75rem;
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.2;
    letter-spacing: -0.02em;
    text-align: center;
}

.chrome-ext-title-gradient {
    background: linear-gradient(135deg, #7c8aff, #06b6d4);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.chrome-ext-subtitle {
    color: var(--text-secondary);
    font-size: 1.12rem;
    line-height: 1.75;
    max-width: 640px;
    margin: 0 auto 3.5rem;
    text-align: center;
}

.chrome-ext-layout {
    display: grid;
    grid-template-columns: 1.25fr 0.75fr;
    gap: 3.5rem;
    align-items: center;
}

/* Browser Mockup */
.chrome-ext-demo {
    perspective: 1200px;
}

.chrome-ext-browser {
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: #181b2e;
    box-shadow:
        0 32px 80px rgba(0, 0, 0, 0.55),
        0 0 0 1px rgba(255, 255, 255, 0.04),
        0 0 60px rgba(124, 138, 255, 0.06);
    transform: rotateY(-2deg) rotateX(1deg);
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.chrome-ext-browser:hover {
    transform: rotateY(0) rotateX(0) scale(1.01);
}

.browser-chrome {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    background: #1a1a28;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.browser-dots {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
}

.browser-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.dot-red {
    background: #ff5f57;
}

.dot-yellow {
    background: #febc2e;
}

.dot-green {
    background: #28c840;
}

.browser-url-bar {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    padding: 5px 12px;
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-family: 'SF Mono', 'Fira Code', monospace;
}

.browser-lock-icon {
    width: 12px;
    height: 12px;
    color: #34d399;
    flex-shrink: 0;
}

.browser-body {
    position: relative;
    min-height: 380px;
    background: #181b2e;
}

.chrome-ext-scene {
    display: none;
    width: 100%;
    height: 100%;
}

.chrome-ext-scene.is-active {
    display: flex;
    animation: sceneFadeIn 0.5s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes sceneFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Scene 1: Scanner Line */
.scene-scanner {
    position: absolute;
    top: 0;
    left: 0;
    width: calc(100% - 260px);
    /* Over mock-page only */
    height: 3px;
    background: linear-gradient(90deg, transparent, #34d399, transparent);
    box-shadow: 0 0 10px #34d399, 0 0 20px #34d399;
    opacity: 0;
    pointer-events: none;
}

.chrome-ext-scene[data-scene="1"].is-active .scene-scanner {
    animation: scanSweep 3s ease-in-out infinite both;
}

@keyframes scanSweep {
    0% {
        top: 10%;
        opacity: 0;
    }

    10% {
        opacity: 0.8;
    }

    90% {
        opacity: 0.8;
    }

    100% {
        top: 90%;
        opacity: 0;
    }
}

.mock-scan-target {
    position: relative;
    transition: all 0.3s ease;
}

.chrome-ext-scene[data-scene="1"].is-active .mock-scan-target[data-scan="1"] {
    animation: scanHighlight 3s ease-in-out infinite both;
    animation-delay: 0.2s;
}

.chrome-ext-scene[data-scene="1"].is-active .mock-scan-target[data-scan="2"] {
    animation: scanHighlight 3s ease-in-out infinite both;
    animation-delay: 1.2s;
}

.chrome-ext-scene[data-scene="1"].is-active .mock-scan-target[data-scan="3"] {
    animation: scanHighlight 3s ease-in-out infinite both;
    animation-delay: 2.2s;
}

@keyframes scanHighlight {

    0%,
    10%,
    100% {
        box-shadow: none;
        border-color: transparent;
    }

    20%,
    40% {
        box-shadow: 0 0 0 2px rgba(52, 211, 153, 0.6);
        border-color: #34d399;
        border-radius: 6px;
    }
}

/* Mock DS-160 Page */
.mock-page {
    flex: 1;
    padding: 20px;
    background: linear-gradient(180deg, #f8f9fa 0%, #e9ecef 100%);
    overflow: hidden;
    position: relative;
}

.mock-page-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 3px solid #003366;
}

.mock-page-seal {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #003366, #1a4a7a);
    flex-shrink: 0;
    position: relative;
}

.mock-page-seal::after {
    content: '';
    position: absolute;
    inset: 6px;
    border-radius: 50%;
    border: 1.5px solid rgba(255, 255, 255, 0.4);
}

.mock-page-title-block {
    min-width: 0;
}

.mock-page-title {
    font-size: 0.72rem;
    font-weight: 700;
    color: #1a1a2e;
    line-height: 1.2;
}

.mock-page-subtitle {
    font-size: 0.5rem;
    color: #6b7280;
    margin-top: 1px;
    letter-spacing: 0.05em;
}

.mock-page-header-i20 {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 14px;
}

.mock-page-ribbon {
    background: #fcd34d;
    padding: 6px 12px;
    font-size: 0.55rem;
    font-weight: 600;
    color: #451a03;
    position: relative;
    border-radius: 0 4px 4px 0;
    left: -20px;
}

.mock-page-ribbon::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -6px;
    border-top: 6px solid #d97706;
    border-left: 6px solid transparent;
}

.mock-title-i20 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: #4b3e34;
    text-transform: uppercase;
    letter-spacing: -0.02em;
}

.mock-desc-i20 {
    font-size: 0.55rem;
    line-height: 1.5;
    color: #4b5563;
    max-width: 90%;
}

.mock-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.mock-form-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.mock-label {
    font-size: 0.68rem;
    font-weight: 600;
    color: #374151;
}

.mock-select {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: white;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    padding: 7px 10px;
    font-size: 0.68rem;
    color: #111827;
}

.mock-select svg {
    width: 12px;
    height: 12px;
    color: #6b7280;
}

.mock-captcha {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.mock-captcha-img {
    background: linear-gradient(135deg, #e5e7eb, #d1d5db);
    padding: 8px 14px;
    border-radius: 6px;
    font-family: 'Courier New', monospace;
    font-size: 1.1rem;
    font-weight: 700;
    color: #374151;
    letter-spacing: 4px;
    text-decoration: line-through;
    width: fit-content;
}

.mock-input {
    background: white;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    height: 30px;
    width: 160px;
}

.mock-form-actions {
    margin-top: 4px;
}

.mock-btn-start {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    color: white;
    padding: 7px 18px;
    border-radius: 6px;
    font-size: 0.68rem;
    font-weight: 600;
    width: fit-content;
    letter-spacing: 0.02em;
}

/* Simulated Side Panel */
.mock-sidepanel {
    width: 260px;
    background: #0f0f13;
    /* match reference dark bg */
    border-left: 1px solid rgba(255, 255, 255, 0.04);
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
}

.sp-header-new {
    padding: 12px 14px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.sp-brand-new {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.04);
    padding: 6px 10px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.sp-logo-new {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.8rem;
    color: #0f0f13;
    flex-shrink: 0;
}

.sp-brand-text-new {
    min-width: 0;
}

.sp-name-new {
    font-weight: 700;
    font-size: 0.75rem;
    color: white;
    line-height: 1.1;
}

.sp-status-new {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.55rem;
    color: #9cb3c9;
    margin-top: 2px;
}

.sp-dot-new {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #34d399;
}

.sp-header-actions {
    display: flex;
    gap: 6px;
}

.sp-icon-btn {
    background: none;
    border: none;
    padding: 2px;
    color: #6b7280;
    cursor: pointer;
}

.sp-icon-btn svg {
    width: 14px;
    height: 14px;
}

.sp-tabs-new {
    display: flex;
    gap: 4px;
    padding: 0 14px;
    margin-bottom: 8px;
}

.sp-tab-new {
    flex: 1;
    text-align: center;
    padding: 6px 0;
    font-size: 0.65rem;
    font-weight: 600;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    background: none;
}

.sp-tab-active {
    background: rgba(124, 138, 255, 0.2);
    border-color: rgba(124, 138, 255, 0.3);
    color: #a5b4fc;
    box-shadow: none;
}

.sidepanel-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 14px;
    gap: 6px;
}

.sp-toolbar-badge {
    font-size: 0.55rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: white;
    background: rgba(255, 255, 255, 0.1);
    padding: 4px 8px;
    border-radius: 4px;
    white-space: nowrap;
}

.sp-toolbar-actions {
    display: flex;
    gap: 4px;
}

.sp-btn-sm {
    font-size: 0.55rem;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    white-space: nowrap;
    border: 1px solid transparent;
}

.sp-btn-accent {
    background: transparent;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.sidepanel-chat {
    flex: 1;
    padding: 0 14px 10px 14px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    overflow: hidden;
}

.sp-msg {
    border-radius: 12px;
    padding: 10px 12px;
    font-size: 0.62rem;
    line-height: 1.55;
}

.sp-msg-notice {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    background: rgba(180, 130, 40, 0.15);
    /* Brownish overlay */
    border: 1px solid rgba(210, 150, 50, 0.4);
    /* Gold border */
    color: #fbbf24;
    font-size: 0.58rem;
    padding: 8px 10px;
    border-radius: 12px;
    margin-top: 4px;
}

.sp-msg-notice svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    margin-top: 1px;
    color: #fbbf24;
}

.sp-msg-ai {
    background: #171821;
    /* Match reference chat bubble */
    border: 1px solid rgba(255, 255, 255, 0.03);
    color: rgba(255, 255, 255, 0.85);
    border-bottom-left-radius: 4px;
}

.sp-msg-content strong {
    color: white;
}

.sp-highlight {
    color: #67e8f9;
    font-weight: 600;
}

.sp-msg-anim-1 {
    animation: spMsgAppear 0.5s ease-out 0.8s both;
}

.sp-msg-anim-2 {
    animation: spMsgAppear 0.5s ease-out 2s both;
}

.sp-msg-anim-3 {
    animation: spMsgAppear 0.5s ease-out 3.2s both;
}

@keyframes spMsgAppear {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.sidepanel-quick-actions {
    display: flex;
    gap: 5px;
    padding: 6px 12px;
    overflow: hidden;
}

.sp-quick-pill {
    font-size: 0.56rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: var(--text-secondary);
    white-space: nowrap;
}

.sp-pill-anim-1 {
    animation: spMsgAppear 0.4s ease-out 3.8s both;
}

.sp-pill-anim-2 {
    animation: spMsgAppear 0.4s ease-out 4s both;
}

.sp-pill-anim-3 {
    animation: spMsgAppear 0.4s ease-out 4.2s both;
}

.sidepanel-composer {
    display: flex;
    flex-direction: column;
    padding: 0 14px 10px 14px;
}

.sp-composer-new {
    flex-direction: row;
    align-items: center;
    gap: 8px;
    background: #171821;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 8px 12px;
}

.sp-composer-add {
    color: #6b7280;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sp-composer-add svg {
    width: 16px;
    height: 16px;
}

.sp-input-new {
    flex: 1;
    font-size: 0.65rem;
    color: #6b7280;
    background: transparent;
    border: none;
    padding: 0;
}

.sp-send-new {
    color: #6b7280;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sp-send-new svg {
    width: 16px;
    height: 16px;
}

.sp-footer-legal {
    text-align: center;
    font-size: 0.45rem;
    color: #4b5563;
    padding-bottom: 10px;
}

/* --- Scene 2 & 3 Specifics --- */
.mock-page-seal.seal-alt {
    background: linear-gradient(135deg, #6366f1, #312e81);
}

.mock-page-seal.seal-generic {
    background: linear-gradient(135deg, #10b981, #064e3b);
}

.blur-bg {
    background: linear-gradient(180deg, #f3f4f6 0%, #e5e7eb 100%);
}

.blur-form {
    filter: blur(3px);
    opacity: 0.7;
    pointer-events: none;
    user-select: none;
}

.chat-flex {
    justify-content: flex-end;
}

.sp-msg-user {
    background: linear-gradient(135deg, #7c8aff, #a78bfa);
    color: white;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}

/* Typing Indicator Anim */
.sp-msg-anim-typing {
    animation: spMsgAppear 0.5s ease-out 5.5s both, hideTyping 0.1s linear 8.5s forwards;
}

@keyframes hideTyping {
    to {
        display: none;
        opacity: 0;
        position: absolute;
    }
}

.typing-dots {
    display: inline-flex;
    gap: 3px;
    padding: 2px 4px;
}

.typing-dots span {
    width: 4px;
    height: 4px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    animation: typingBlink 1.4s infinite both;
}

.typing-dots span:nth-child(1) {
    animation-delay: 0s;
}

.typing-dots span:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-dots span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typingBlink {

    0%,
    80%,
    100% {
        opacity: 0.2;
        transform: scale(0.8);
    }

    40% {
        opacity: 1;
        transform: scale(1.1);
    }
}

/* Composer Typing Anim */
.typing-input-anim {
    color: white !important;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
    animation: typeText 2s steps(20, end) 4s both;
}

@keyframes typeText {
    from {
        width: 0;
    }

    to {
        width: 100%;
    }
}

/* Shield Pulse */
.centered-notice {
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 24px;
}

.sp-msg-shield {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}

.sp-msg-shield svg {
    width: 24px;
    height: 24px;
}

.shield-pulse {
    animation: shieldGlow 2s infinite ease-in-out;
}

@keyframes shieldGlow {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
        transform: scale(1);
    }

    50% {
        box-shadow: 0 0 20px 5px rgba(16, 185, 129, 0.2);
        transform: scale(1.05);
    }
}

.sp-msg-shield-title {
    font-size: 0.8rem;
    font-weight: 700;
    color: white;
    margin-bottom: 8px;
}

.sp-msg-shield-desc {
    font-size: 0.65rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.sp-disabled {
    opacity: 0.5;
    pointer-events: none;
}

.sp-btn-pulse {
    animation: btnPulse 2s infinite;
}

@keyframes btnPulse {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(6, 182, 212, 0);
    }

    50% {
        box-shadow: 0 0 10px 2px rgba(6, 182, 212, 0.3);
    }
}

/* Right Content: Features + CTA */
.chrome-ext-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.chrome-ext-features {
    display: flex;
    flex-direction: column;
    gap: 1.35rem;
}

.chrome-ext-feature {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem 1.25rem;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    transition: all var(--transition-smooth);
}

.chrome-ext-feature:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.08);
    transform: translateX(4px);
}

.chrome-ext-feature-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.chrome-ext-feature-icon svg {
    width: 18px;
    height: 18px;
}

.chrome-ext-feature-icon.cyan {
    background: rgba(6, 182, 212, 0.12);
    border: 1px solid rgba(6, 182, 212, 0.25);
    color: #67e8f9;
}

.chrome-ext-feature-icon.purple {
    background: rgba(139, 92, 246, 0.12);
    border: 1px solid rgba(139, 92, 246, 0.25);
    color: #c4b5fd;
}

.chrome-ext-feature-icon.emerald {
    background: rgba(52, 211, 153, 0.12);
    border: 1px solid rgba(52, 211, 153, 0.25);
    color: #6ee7b7;
}

.chrome-ext-feature-icon.pink {
    background: rgba(236, 72, 153, 0.12);
    border: 1px solid rgba(236, 72, 153, 0.25);
    color: #f9a8d4;
}

.chrome-ext-feature-text {
    min-width: 0;
}

.chrome-ext-feature-title {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.chrome-ext-feature-desc {
    color: var(--text-secondary);
    font-size: 0.85rem;
    line-height: 1.6;
}

.chrome-ext-cta {
    margin-top: 0.5rem;
}

.chrome-ext-install-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.85rem 2rem;
    border-radius: 14px;
    background: linear-gradient(135deg, #7c8aff 0%, #a78bfa 50%, #c084fc 100%);
    color: white;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    transition: all var(--transition-smooth);
    box-shadow: 0 4px 20px rgba(124, 138, 255, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.06) inset;
}

.chrome-ext-install-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(124, 138, 255, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.1) inset;
}

.chrome-ext-install-btn .chrome-icon {
    width: 22px;
    height: 22px;
}

.chrome-ext-install-btn .btn-icon {
    transition: transform 0.3s ease;
}

.chrome-ext-install-btn:hover .btn-icon {
    transform: translateX(3px);
}

.chrome-ext-install-btn .btn-glow {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
    transform: translateX(-100%);
    animation: btnGlowSweep 3s ease-in-out infinite 2s;
}

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

    40% {
        transform: translateX(100%);
    }

    100% {
        transform: translateX(100%);
    }
}

.chrome-ext-cta-note {
    color: var(--text-muted);
    font-size: 0.78rem;
    margin-top: 0.75rem;
}

@media (max-width: 1024px) {
    .chrome-ext-layout {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .chrome-ext-browser {
        transform: none;
        max-width: 680px;
        margin: 0 auto;
    }

    .chrome-ext-content {
        max-width: 600px;
        margin: 0 auto;
    }

    .chrome-ext-title {
        font-size: 2.25rem;
    }
}

/* --- Value Proposition Banner (Premium) --- */
.homepage-value-banner {
    background: linear-gradient(135deg, #0f0f1a 0%, #1a1a2e 50%, #0f3460 100%);
    padding: var(--section-pad-y) var(--section-pad-x);
    margin: 0;
    position: relative;
    overflow: hidden;
}

.value-banner-orb {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.value-banner-orb-1 {
    top: -50%;
    right: -10%;
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, rgba(124, 138, 255, 0.18) 0%, transparent 70%);
    animation: float 20s ease-in-out infinite;
}

.value-banner-orb-2 {
    bottom: -30%;
    left: -5%;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.12) 0%, transparent 70%);
    animation: float 20s ease-in-out infinite reverse;
}

.value-banner-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}

.value-banner-emoji {
    width: 94px;
    height: 94px;
    margin: 0 auto 1.5rem;
    border-radius: 1.35rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #c4b5fd;
    border: 1px solid rgba(167, 139, 250, 0.35);
    background: linear-gradient(145deg, rgba(124, 138, 255, 0.2), rgba(15, 23, 42, 0.45));
    box-shadow: inset 0 0 28px rgba(15, 23, 42, 0.3), 0 10px 28px rgba(15, 23, 42, 0.3);
}

.value-banner-emoji .home-icon-svg {
    width: 2.6rem;
    height: 2.6rem;
}

.value-banner-content h2 {
    font-family: 'Outfit', 'Inter', sans-serif;
    color: white;
    font-size: 2.25rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.3;
    letter-spacing: -0.01em;
}

.value-banner-content p {
    color: rgba(255, 255, 255, 0.82);
    font-size: 1.1rem;
    line-height: 1.85;
    margin-bottom: 1.5rem;
}

.value-banner-content p.value-banner-sub {
    color: rgba(255, 255, 255, 0.65);
    font-size: 1rem;
    line-height: 1.75;
    margin-bottom: 2.5rem;
}

.value-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
}

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

.value-stat-number {
    font-family: 'Outfit', 'Inter', sans-serif;
    font-size: 1.85rem;
    font-weight: 700;
    display: block;
}

.value-stat-number.green {
    color: #34d399;
}

.value-stat-number.blue {
    color: #60a5fa;
}

.value-stat-number.pink {
    color: #f472b6;
}

.value-stat-label {
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.875rem;
    display: block;
    margin-top: 0.25rem;
}

/* --- Students Only Community (Premium) --- */
.homepage-students-only {
    background: linear-gradient(160deg, rgba(124, 138, 255, 0.08) 0%, rgba(168, 85, 247, 0.08) 50%, rgba(124, 138, 255, 0.04) 100%);
    padding: var(--section-pad-y) var(--section-pad-x);
    margin: 0;
    border-top: 1px solid rgba(139, 92, 246, 0.2);
    border-bottom: 1px solid rgba(139, 92, 246, 0.2);
    position: relative;
    overflow: hidden;
}

.community-private-badge {
    position: static;
    background: linear-gradient(135deg, #7c8aff, #a78bfa);
    padding: 0.5rem 1.15rem;
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: white;
    display: flex;
    width: fit-content;
    margin: 0 auto 1.5rem;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 16px rgba(124, 138, 255, 0.25);
}

.community-private-icon {
    width: 1rem;
    height: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.community-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.community-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(139, 92, 246, 0.15);
    padding: 0.75rem 1.5rem;
    border-radius: 2rem;
    margin-bottom: 2rem;
    border: 1px solid rgba(139, 92, 246, 0.2);
}

.community-tag-icon {
    width: 1.6rem;
    height: 1.6rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #a5b4fc;
}

.community-tag-label {
    color: var(--primary-color);
    font-weight: 600;
}

.community-title {
    font-family: 'Outfit', 'Inter', sans-serif;
    color: var(--text-primary);
    font-size: 2.35rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.3;
    letter-spacing: -0.01em;
}

.community-title-gradient {
    background: linear-gradient(135deg, #7c8aff, #a78bfa);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.community-desc {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.85;
    margin-bottom: 2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.community-features {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
    margin-top: 2.5rem;
}

.community-feature {
    text-align: center;
}

.community-feature-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    border: 1px solid transparent;
    transition: transform 0.3s ease;
}

.community-feature:hover .community-feature-icon {
    transform: scale(1.1);
}

.community-feature-icon.indigo {
    background: rgba(124, 138, 255, 0.15);
    border-color: rgba(124, 138, 255, 0.4);
    color: #a5b4fc;
}

.community-feature-icon.purple {
    background: rgba(168, 85, 247, 0.15);
    border-color: rgba(168, 85, 247, 0.4);
    color: #c4b5fd;
}

.community-feature-icon.pink {
    background: rgba(236, 72, 153, 0.15);
    border-color: rgba(236, 72, 153, 0.4);
    color: #f9a8d4;
}

.community-feature-icon .home-icon-svg {
    width: 2rem;
    height: 2rem;
}

.community-feature-title {
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.community-feature-sub {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

/* --- Core Platform Features (Premium) --- */
.homepage-platform {
    background: linear-gradient(155deg, #0b0f1e 0%, #131b31 45%, #0b0f1e 100%);
    padding: var(--section-pad-y) var(--section-pad-x);
    margin: 0;
    position: relative;
    overflow: hidden;
}

.platform-ambient {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.platform-ambient-1 {
    top: 8%;
    left: 3%;
    width: 220px;
    height: 220px;
    background: radial-gradient(circle, rgba(52, 211, 153, 0.14) 0%, transparent 70%);
    animation: float 15s ease-in-out infinite;
}

.platform-ambient-2 {
    bottom: 8%;
    right: 3%;
    width: 280px;
    height: 280px;
    background: radial-gradient(circle, rgba(124, 138, 255, 0.14) 0%, transparent 70%);
    animation: float 18s ease-in-out infinite 3s;
}

.platform-ambient-3 {
    top: 45%;
    left: 45%;
    transform: translate(-50%, -50%);
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.06) 0%, transparent 70%);
}

.platform-inner {
    max-width: 1060px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}

.platform-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(52, 211, 153, 0.1);
    border: 1px solid rgba(52, 211, 153, 0.25);
    padding: 0.5rem 1.25rem;
    border-radius: 2rem;
    margin-bottom: 2rem;
}

.platform-badge-dot {
    width: 8px;
    height: 8px;
    background: #34d399;
    border-radius: 50%;
    animation: blink 1.5s ease-in-out infinite;
}

.platform-badge-label {
    color: #34d399;
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.platform-title {
    font-family: 'Outfit', 'Inter', sans-serif;
    color: white;
    font-size: 2.65rem;
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.platform-title-gradient {
    background: linear-gradient(135deg, #34d399, #6ee7b7);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.platform-subtitle {
    color: rgba(255, 255, 255, 0.78);
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
    font-weight: 500;
}

.platform-desc {
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.02rem;
    line-height: 1.8;
    margin-bottom: 2.75rem;
    max-width: 750px;
    margin-left: auto;
    margin-right: auto;
}

.platform-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.25rem;
    margin-bottom: 2.75rem;
}

.platform-card {
    background: rgba(255, 255, 255, 0.035);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 1.15rem;
    padding: 1.75rem 1.5rem;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    position: relative;
    overflow: hidden;
}

.platform-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.06), transparent);
}

.platform-card:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(124, 138, 255, 0.22);
    transform: translateY(-5px);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.3), 0 0 16px rgba(124, 138, 255, 0.08);
}

.platform-card-icon {
    width: 56px;
    height: 56px;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    border: 1px solid transparent;
    transition: transform 0.3s ease;
}

.platform-card:hover .platform-card-icon {
    transform: scale(1.1);
}

.platform-card-icon.emerald {
    background: linear-gradient(135deg, rgba(52, 211, 153, 0.2), rgba(52, 211, 153, 0.08));
    border-color: rgba(52, 211, 153, 0.35);
    color: #6ee7b7;
}

.platform-card-icon.indigo {
    background: linear-gradient(135deg, rgba(124, 138, 255, 0.2), rgba(124, 138, 255, 0.08));
    border-color: rgba(124, 138, 255, 0.35);
    color: #a5b4fc;
}

.platform-card-icon.purple {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.2), rgba(168, 85, 247, 0.08));
    border-color: rgba(168, 85, 247, 0.35);
    color: #d8b4fe;
}

.platform-card-icon.pink {
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.2), rgba(236, 72, 153, 0.08));
    border-color: rgba(236, 72, 153, 0.35);
    color: #f9a8d4;
}

.platform-card-icon.blue {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(59, 130, 246, 0.08));
    border-color: rgba(59, 130, 246, 0.35);
    color: #93c5fd;
}

.platform-card-icon.green {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.2), rgba(34, 197, 94, 0.08));
    border-color: rgba(34, 197, 94, 0.35);
    color: #86efac;
}

.platform-card-icon.sky {
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.2), rgba(14, 165, 233, 0.08));
    border-color: rgba(14, 165, 233, 0.35);
    color: #7dd3fc;
}

.platform-card-icon .home-icon-svg {
    width: 1.5rem;
    height: 1.5rem;
}

.platform-card-title {
    color: white;
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.platform-card-desc {
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.875rem;
    line-height: 1.55;
}

.platform-stats {
    display: flex;
    justify-content: center;
    gap: 3.5rem;
    flex-wrap: wrap;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.platform-stat-number {
    font-family: 'Outfit', 'Inter', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    display: block;
}

.platform-stat-number.emerald {
    color: #34d399;
}

.platform-stat-number.indigo {
    color: #7c8aff;
}

.platform-stat-number.purple {
    color: #a78bfa;
}

.platform-stat-label {
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.875rem;
    display: block;
    margin-top: 0.25rem;
}

/* --- Premium responsive for new sections --- */
@media (max-width: 768px) {
    .value-banner-content h2 {
        font-size: 1.65rem;
    }

    .value-stats {
        gap: 1.75rem;
    }

    .value-banner-emoji {
        width: 82px;
        height: 82px;
    }

    .community-title {
        font-size: 1.75rem;
    }

    .community-features {
        gap: 2rem;
    }

    .platform-title {
        font-size: 1.85rem;
    }

    .platform-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }

    .platform-stats {
        gap: 2rem;
    }

    .community-private-badge {
        position: static;
        margin-bottom: 1.5rem;
        display: inline-flex;
    }

    .homepage-value-banner,
    .homepage-students-only,
    .homepage-platform,
    .homepage-chrome-extension {
        padding: 4rem 1.5rem;
    }

    /* Chrome Extension Responsive */
    .chrome-ext-title {
        font-size: 2rem;
    }

    .chrome-ext-subtitle {
        font-size: 1rem;
        margin-bottom: 2.5rem;
    }

    .chrome-ext-layout {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .chrome-ext-browser {
        transform: none;
    }

    .chrome-ext-browser:hover {
        transform: scale(1.01);
    }

    .browser-body {
        min-height: 320px;
    }

    .mock-sidepanel {
        width: 220px;
    }

    .chrome-ext-feature {
        padding: 0.85rem 1rem;
    }
}

@media (max-width: 480px) {
    .platform-grid {
        grid-template-columns: 1fr;
    }

    .chrome-ext-title {
        font-size: 1.65rem;
    }

    .chrome-ext-subtitle {
        font-size: 0.92rem;
    }

    .browser-body {
        flex-direction: column;
        min-height: auto;
    }

    .mock-page {
        padding: 14px;
    }

    .mock-sidepanel {
        width: 100%;
        border-left: none;
        border-top: 1px solid rgba(255, 255, 255, 0.06);
    }

    .sidepanel-chat {
        max-height: 200px;
    }

    .chrome-ext-feature-icon {
        width: 36px;
        height: 36px;
    }

    .chrome-ext-feature-icon svg {
        width: 16px;
        height: 16px;
    }

    .chrome-ext-feature-title {
        font-size: 0.88rem;
    }

    .chrome-ext-feature-desc {
        font-size: 0.8rem;
    }

    .chrome-ext-install-btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
        width: 100%;
        justify-content: center;
    }
}

/* Legal Pages Styles */
.legal-page {
    max-width: 900px;
    margin: 0 auto;
    padding: 2.5rem;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    box-shadow: var(--shadow);
}

.legal-page h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.legal-page .last-updated {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.legal-page section {
    margin-bottom: 2.5rem;
}

.legal-page section h2 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    color: var(--primary-light);
    padding-top: 1rem;
}

.legal-page section h3 {
    font-size: 1.25rem;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.legal-page section p {
    margin-bottom: 1rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

.legal-page section ul {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
    line-height: 1.8;
}

.legal-page section li {
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

.legal-page section li strong {
    color: var(--text-primary);
    font-weight: 600;
}

/* Pricing Page Styles */
.pricing-page {
    max-width: 1100px;
    margin: 0 auto;
    padding: 3rem 1rem;
}

.pricing-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.pricing-header h1 {
    font-size: 2.5rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.pricing-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.pricing-controls {
    margin: 1.25rem auto 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.pricing-controls label {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.95rem;
}

.pricing-controls select {
    background: var(--card-bg);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    border-radius: 0.65rem;
    padding: 0.5rem 0.75rem;
    min-width: 220px;
}

.pricing-currency-hint {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.35rem;
}

.pricing-grid.pricing-grid-journey-focus .pricing-card:not(.pricing-card-journey) {
    opacity: 0.5;
    filter: saturate(0.45) brightness(0.82);
    border-color: rgba(100, 116, 139, 0.22);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.22);
}

.pricing-grid.pricing-grid-journey-focus .pricing-card:not(.pricing-card-journey):hover {
    transform: none;
}

.pricing-grid.pricing-grid-journey-focus .pricing-card:not(.pricing-card-journey) .pricing-badge {
    opacity: 0.45;
}

.pricing-grid.pricing-grid-journey-focus .pricing-card:not(.pricing-card-journey) .btn {
    opacity: 0.72;
}

.pricing-grid.pricing-grid-journey-focus .pricing-card-journey {
    border-color: rgba(251, 191, 36, 0.82);
    box-shadow: 0 0 0 1px rgba(251, 191, 36, 0.42), 0 26px 44px rgba(28, 14, 30, 0.66);
    transform: translateY(-3px);
}

.pricing-card {
    position: relative;
    border: 1px solid rgba(129, 140, 248, 0.2);
    border-radius: 1.15rem;
    background:
        radial-gradient(circle at 16% -14%, rgba(103, 212, 241, 0.08), transparent 45%),
        linear-gradient(160deg, rgba(22, 23, 36, 0.96), rgba(18, 18, 30, 0.96));
    padding: 2rem;
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.03);
    display: flex;
    flex-direction: column;
    gap: 0.95rem;
    overflow: hidden;
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.pricing-card:hover {
    transform: translateY(-4px);
}

.pricing-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    border: 1px solid rgba(255, 255, 255, 0.03);
}

.pricing-card-free {
    border-color: rgba(148, 163, 184, 0.24);
    background:
        radial-gradient(circle at 12% -10%, rgba(100, 116, 139, 0.08), transparent 42%),
        linear-gradient(160deg, rgba(22, 23, 36, 0.96), rgba(18, 18, 30, 0.96));
}

.pricing-card-pro {
    border-color: rgba(124, 138, 255, 0.45);
}

.pricing-card-pro-monthly {
    background:
        radial-gradient(circle at 90% -24%, rgba(103, 212, 241, 0.22), transparent 52%),
        radial-gradient(circle at 8% 118%, rgba(124, 138, 255, 0.18), transparent 48%),
        linear-gradient(160deg, rgba(15, 23, 42, 0.94), rgba(17, 24, 39, 0.92));
    border-color: rgba(96, 165, 250, 0.42);
    box-shadow: 0 0 0 1px rgba(96, 165, 250, 0.2), 0 16px 32px rgba(7, 20, 40, 0.45);
}

.pricing-card-pro-monthly:hover {
    border-color: rgba(103, 212, 241, 0.7);
    box-shadow: 0 0 0 1px rgba(103, 212, 241, 0.32), 0 22px 40px rgba(7, 20, 40, 0.56);
}

.pricing-card-journey {
    background:
        radial-gradient(circle at 92% -20%, rgba(250, 204, 21, 0.24), transparent 50%),
        radial-gradient(circle at 8% 118%, rgba(244, 114, 182, 0.2), transparent 46%),
        linear-gradient(165deg, rgba(36, 24, 32, 0.95), rgba(26, 18, 36, 0.94));
    border-color: rgba(251, 191, 36, 0.42);
    box-shadow: 0 0 0 1px rgba(251, 191, 36, 0.2), 0 16px 32px rgba(28, 14, 30, 0.5);
}

.pricing-card-journey:hover {
    border-color: rgba(251, 191, 36, 0.74);
    box-shadow: 0 0 0 1px rgba(251, 191, 36, 0.35), 0 22px 40px rgba(28, 14, 30, 0.62);
}

.pricing-badge {
    position: absolute;
    top: 0.95rem;
    right: 1rem;
    font-size: 0.72rem;
    font-weight: 700;
    color: white;
    background: var(--gradient-primary);
    border-radius: 999px;
    padding: 0.27rem 0.64rem;
    letter-spacing: 0.02em;
}

.pricing-badge-monthly {
    background: linear-gradient(135deg, #0284c7, #6366f1);
    box-shadow: 0 6px 16px rgba(14, 116, 144, 0.36);
}

.pricing-badge-value {
    background: linear-gradient(135deg, #f59e0b, #ec4899);
    box-shadow: 0 6px 16px rgba(217, 119, 6, 0.34);
}

.pricing-card-head h2 {
    font-size: 1.6rem;
    color: var(--text-primary);
    margin: 0;
}

.pricing-card-head p {
    margin: 0.35rem 0 0;
    color: var(--text-secondary);
}

.pricing-plan-meta {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    border-radius: 999px;
    padding: 0.26rem 0.62rem;
    border: 1px solid rgba(125, 211, 252, 0.3);
    background: rgba(7, 89, 133, 0.22);
    color: #bfdbfe;
    font-size: 0.77rem;
    font-weight: 600;
    line-height: 1.3;
}

.pricing-plan-meta-value {
    border-color: rgba(252, 211, 77, 0.35);
    background: rgba(146, 64, 14, 0.28);
    color: #fde68a;
}

.pricing-plan-savings {
    align-self: flex-start;
    margin-top: -0.15rem;
    font-size: 0.84rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    color: #fcd34d;
}

.pricing-price {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1;
}

.pricing-price span {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-left: 0.25rem;
}

.pricing-features {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.pricing-features li {
    color: var(--text-primary);
    position: relative;
    padding-left: 1.35rem;
}

.pricing-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0;
    color: #4ade80;
    font-weight: 700;
}

.pricing-features li.feature-unavailable {
    color: var(--text-secondary);
}

.pricing-features li.feature-unavailable::before {
    content: '✕';
    color: #f87171;
}

.pricing-card .btn {
    margin-top: auto;
}

.pricing-card-free .btn {
    background: linear-gradient(135deg, #7c8aff, #a78bfa);
}

.pricing-card-pro-monthly .btn {
    background: linear-gradient(135deg, #0284c7, #6366f1);
    box-shadow: 0 8px 22px rgba(2, 132, 199, 0.28);
}

.pricing-card-journey .btn {
    background: linear-gradient(135deg, #d97706, #ec4899);
    box-shadow: 0 8px 22px rgba(217, 119, 6, 0.3);
}

.pricing-card-pro-monthly .btn:hover,
.pricing-card-journey .btn:hover {
    filter: brightness(1.08);
}

.pricing-coupon-input {
    width: 100%;
    height: 2.6rem;
    padding: 0 0.8rem;
    border-radius: 0.7rem;
    border: 1px solid var(--border-color);
    background: var(--bg-tertiary);
    color: var(--text-primary);
    font-size: 0.9rem;
    text-transform: uppercase;
}

.pricing-coupon-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(124, 138, 255, 0.2);
}

.pricing-disclaimer {
    margin-top: 1rem;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

@media (max-width: 900px) {
    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .pricing-card {
        padding: 1.5rem;
    }

    .pricing-controls {
        justify-content: flex-start;
    }

    .pricing-badge {
        top: 0.8rem;
        right: 0.85rem;
    }
}

/* Footer Styles */
.footer {
    background: var(--bg-secondary);
    color: var(--text-secondary);
    padding: 2rem 0;
    margin-top: 4rem;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

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

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

.footer-enterprise-link {
    color: var(--accent-color, var(--primary-light)) !important;
    font-weight: 700;
}

.footer-enterprise-link:hover {
    color: var(--primary-light) !important;
}

.footer-copyright {
    color: var(--text-muted);
    font-size: 0.875rem;
}

.footer-social a:hover {
    background: rgba(10, 102, 194, 0.2) !important;
    border-color: rgba(10, 102, 194, 0.4) !important;
    transform: translateY(-2px);
}

/* Contact Page Styles */
.contact-page {
    max-width: 1100px;
    margin: 0 auto;
    padding: 3rem 1rem;
}

.contact-header {
    text-align: center;
    margin-bottom: 3rem;
}

.contact-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.contact-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.contact-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 3rem;
    align-items: start;
}

.contact-form-container {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    padding: 2rem;
}

.contact-form .form-group {
    margin-bottom: 1.25rem;
}

.contact-form .form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-primary);
}

.contact-form .form-group input,
.contact-form .form-group select,
.contact-form .form-group textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    background: var(--bg-tertiary);
    color: var(--text-primary);
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.contact-form .form-group input:focus,
.contact-form .form-group select:focus,
.contact-form .form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(124, 138, 255, 0.1);
}

.contact-form .form-group textarea {
    resize: vertical;
    min-height: 150px;
}

.contact-form .btn {
    width: 100%;
    padding: 1rem;
    font-size: 1rem;
    font-weight: 600;
    margin-top: 0.5rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-info-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.2s ease;
}

.contact-info-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.contact-info-icon {
    font-size: 2rem;
    margin-bottom: 0.75rem;
}

.contact-info-card h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.contact-info-card p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.contact-info-card a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
}

.contact-info-card a:hover {
    text-decoration: underline;
}

@media (max-width: 900px) {
    .contact-content {
        grid-template-columns: 1fr;
    }

    .contact-info {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
}

@media (max-width: 600px) {
    .contact-header h1 {
        font-size: 2rem;
    }

    .contact-info {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1024px) {
    #dashboardSection .dashboard-container {
        grid-template-columns: 1fr;
        padding: 0;
    }

    #dashboardSection .dashboard-sidebar {
        width: 260px;
        position: fixed;
        top: 0;
        left: 0;
        height: 100vh;
        height: 100dvh;
        z-index: 100;
        transform: translateX(-100%);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: none;
        overflow-y: auto;
        overflow-x: hidden;
    }

    #dashboardSection .dashboard-sidebar.mobile-open {
        transform: translateX(0);
        box-shadow: 6px 0 24px rgba(0, 0, 0, 0.4);
    }

    #dashboardSection .dashboard-content {
        padding: 1.25rem;
        padding-top: 4rem;
    }

    #dashboardSection .dashboard-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    #dashboardSection .dashboard-content {
        padding: 1rem 0.75rem;
        padding-top: 4rem;
    }

    #dashboardSection .news-toolbar {
        flex-direction: column;
        align-items: flex-start;
    }

    #dashboardTab-documents .overview-health-grid,
    #dashboardTab-overview .overview-health-grid {
        grid-template-columns: 1fr;
    }

    #dashboardSection .tab-header h2 {
        font-size: 1.5rem;
    }

    .legal-page {
        padding: 1.5rem;
    }

    .legal-page h1 {
        font-size: 2rem;
    }

    .legal-page section h2 {
        font-size: 1.5rem;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-links {
        justify-content: center;
    }
}

/* Rilono AI Chat Animations */
@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
        box-shadow: 0 0 8px rgba(52, 211, 153, 0.8);
    }

    50% {
        opacity: 0.4;
        box-shadow: 0 0 2px rgba(52, 211, 153, 0.4);
    }
}

@keyframes typingDot {

    0%,
    60%,
    100% {
        transform: translateY(0);
        opacity: 0.7;
    }

    30% {
        transform: translateY(-10px);
        opacity: 1;
    }
}

/* ===== Rilono AI Dashboard Chat Styles ===== */
.rilono-ai-container {
    max-width: none;
    width: 100%;
    margin: 0;
}

.rilono-ai-widget {
    background: var(--gradient-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 1.25rem;
    height: clamp(660px, 76vh, 900px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: var(--shadow-premium);
    position: relative;
}

.rilono-ai-widget::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(124, 138, 255, 0.35), rgba(103, 212, 241, 0.15), transparent);
    z-index: 2;
}

.rilono-ai-header {
    background: linear-gradient(180deg, rgba(124, 138, 255, 0.12) 0%, rgba(124, 138, 255, 0.03) 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    padding: 1.15rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
    position: relative;
}

.rilono-ai-header-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.rilono-ai-expand-btn {
    border: 1px solid rgba(124, 138, 255, 0.25);
    background: rgba(124, 138, 255, 0.08);
    color: var(--text-accent);
    font-size: 0.76rem;
    font-weight: 600;
    line-height: 1;
    border-radius: 999px;
    padding: 0.45rem 0.75rem;
    cursor: pointer;
    transition: all var(--transition-smooth);
}

.rilono-ai-expand-btn:hover {
    background: rgba(124, 138, 255, 0.15);
    border-color: rgba(124, 138, 255, 0.4);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(124, 138, 255, 0.15);
}

.rilono-ai-expand-btn.is-expanded {
    background: rgba(124, 138, 255, 0.2);
    border-color: rgba(124, 138, 255, 0.4);
}

.rilono-ai-header-info {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.rilono-ai-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(124, 138, 255, 0.2), rgba(167, 139, 250, 0.15));
    border: 1px solid rgba(124, 138, 255, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
    box-shadow: 0 0 16px rgba(124, 138, 255, 0.15);
}

.rilono-ai-title {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

.rilono-ai-status {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 0.15rem;
}

.rilono-ai-status .status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #34d399;
    animation: pulse 2s infinite;
    box-shadow: 0 0 6px rgba(52, 211, 153, 0.4);
}

.rilono-ai-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: rgba(10, 10, 15, 0.5);
}

.rilono-ai-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.15rem;
    scroll-behavior: smooth;
}

/* Chat Message Styles */
.rilono-ai-message {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    max-width: 85%;
    animation: fadeIn 0.3s ease-out;
}

.rilono-ai-message.assistant {
    align-self: flex-start;
}

.rilono-ai-message.user {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.rilono-ai-message .message-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(124, 138, 255, 0.2), rgba(167, 139, 250, 0.15));
    border: 1px solid rgba(124, 138, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.rilono-ai-message.user .message-avatar {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.rilono-ai-message .message-bubble {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 0.9rem 1.15rem;
    border-radius: 1rem;
    color: var(--text-primary);
    line-height: 1.65;
    font-size: 0.9rem;
}

.rilono-ai-message.assistant .message-bubble {
    border-top-left-radius: 0.25rem;
}

.rilono-ai-message.user .message-bubble {
    background: linear-gradient(135deg, rgba(124, 138, 255, 0.2), rgba(167, 139, 250, 0.15));
    border: 1px solid rgba(124, 138, 255, 0.2);
    color: var(--text-primary);
    border-top-right-radius: 0.25rem;
}

.rilono-ai-message .message-bubble p {
    margin: 0 0 0.75rem 0;
}

.rilono-ai-message .message-bubble p:last-child {
    margin-bottom: 0;
}

.rilono-ai-message .message-bubble h1,
.rilono-ai-message .message-bubble h2,
.rilono-ai-message .message-bubble h3 {
    margin: 0.7rem 0 0.4rem;
    line-height: 1.35;
    color: #d7d9ff;
}

.rilono-ai-message .message-bubble h1 {
    font-size: 1.08rem;
    font-weight: 700;
}

.rilono-ai-message .message-bubble h2 {
    font-size: 1rem;
    font-weight: 700;
}

.rilono-ai-message .message-bubble h3 {
    font-size: 0.95rem;
    font-weight: 700;
}

.rilono-ai-message .message-bubble ul {
    margin: 0.75rem 0;
    padding-left: 1.25rem;
}

.rilono-ai-message .message-bubble ul li {
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

.rilono-ai-message.user .message-bubble ul li {
    color: rgba(255, 255, 255, 0.9);
}

.rilono-chat-sent-attachments {
    display: grid;
    gap: 0.55rem;
    margin-bottom: 0.6rem;
}

.rilono-chat-sent-attachment {
    border-radius: 0.8rem;
    overflow: hidden;
}

.rilono-chat-sent-attachment-image {
    max-width: min(240px, 100%);
    border: 1px solid rgba(148, 163, 184, 0.35);
    background: rgba(15, 23, 42, 0.55);
}

.rilono-chat-sent-attachment-image img {
    display: block;
    width: 100%;
    max-height: 190px;
    object-fit: cover;
}

.rilono-chat-sent-attachment-caption {
    padding: 0.34rem 0.5rem;
    font-size: 0.73rem;
    line-height: 1.3;
    word-break: break-word;
    background: rgba(15, 23, 42, 0.45);
    color: #e5e7eb;
}

.rilono-chat-sent-attachment-file {
    display: inline-flex;
    align-items: center;
    gap: 0.42rem;
    border: 1px solid rgba(148, 163, 184, 0.35);
    background: rgba(15, 23, 42, 0.48);
    color: #e5e7eb;
    padding: 0.36rem 0.56rem;
    max-width: min(260px, 100%);
}

.rilono-chat-sent-file-icon {
    flex: 0 0 auto;
    font-size: 0.86rem;
}

.rilono-chat-sent-file-name {
    font-size: 0.76rem;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rilono-chat-sent-file-size {
    font-size: 0.7rem;
    opacity: 0.85;
    margin-left: auto;
}

.rilono-ai-message.user .rilono-chat-sent-attachment-image,
.chat-message.user .rilono-chat-sent-attachment-image {
    border-color: rgba(255, 255, 255, 0.34);
    background: rgba(13, 18, 34, 0.3);
}

.rilono-ai-message.user .rilono-chat-sent-attachment-caption,
.chat-message.user .rilono-chat-sent-attachment-caption {
    background: rgba(13, 18, 34, 0.4);
    color: rgba(255, 255, 255, 0.95);
}

.rilono-ai-message.user .rilono-chat-sent-attachment-file,
.chat-message.user .rilono-chat-sent-attachment-file {
    border-color: rgba(255, 255, 255, 0.34);
    background: rgba(13, 18, 34, 0.35);
    color: rgba(255, 255, 255, 0.95);
}

/* Chat Input Area */
.rilono-ai-input-area {
    padding: 1rem 1.25rem 1.15rem;
    background: rgba(18, 18, 28, 0.7);
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    flex-shrink: 0;
}

.rilono-ai-form {
    display: flex;
    gap: 0.75rem;
    align-items: flex-end;
}

.rilono-ai-form .input-wrapper {
    flex: 1;
    position: relative;
}

.rilono-ai-input {
    width: 100%;
    padding: 0.8rem 6rem 0.8rem 1.15rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 1rem;
    font-size: 0.9rem;
    font-family: inherit;
    resize: none;
    max-height: 120px;
    color: var(--text-primary);
    transition: all var(--transition-smooth);
}

.rilono-ai-input::placeholder {
    color: var(--text-muted);
}

.rilono-ai-input:focus {
    outline: none;
    border-color: rgba(124, 138, 255, 0.3);
    box-shadow: 0 0 0 3px rgba(124, 138, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
}

.rilono-ai-attach-btn {
    position: absolute;
    right: 3rem;
    bottom: 0.45rem;
    width: 36px;
    height: 36px;
    border-radius: 0.6rem;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-muted);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-smooth);
    font-size: 0.9rem;
}

.rilono-ai-attach-btn:hover {
    border-color: rgba(124, 138, 255, 0.25);
    color: var(--text-primary);
    background: rgba(124, 138, 255, 0.08);
}

.rilono-ai-attach-btn input {
    display: none;
}

.rilono-ai-send-btn {
    position: absolute;
    right: 0.45rem;
    bottom: 0.45rem;
    width: 36px;
    height: 36px;
    border-radius: 0.6rem;
    background: var(--gradient-primary);
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-smooth);
    font-size: 1rem;
    box-shadow: 0 2px 12px rgba(124, 138, 255, 0.2);
}

.rilono-ai-send-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 20px rgba(124, 138, 255, 0.3);
}

.rilono-ai-send-btn:active {
    transform: scale(0.95);
}

/* Quick Action Chips */
.rilono-ai-quick-actions {
    margin-top: 0.75rem;
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.quick-action-chip {
    padding: 0.5rem 0.85rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 0.6rem;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-smooth);
    color: var(--text-secondary);
    font-family: inherit;
}

.quick-action-chip:hover {
    background: rgba(124, 138, 255, 0.1);
    color: var(--text-primary);
    border-color: rgba(124, 138, 255, 0.2);
    transform: translateY(-1px);
}

.rilono-ai-attachment-session {
    display: none;
    margin-top: 0.7rem;
    padding: 0.65rem 0.8rem;
    border: 1px solid var(--border-color);
    border-radius: 0.8rem;
    background: var(--bg-secondary);
}

.rilono-ai-attachment-session.has-items {
    display: block;
}

.rilono-ai-attachment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.6rem;
}

.rilono-ai-attachment-meta {
    color: var(--text-secondary);
    font-size: 0.78rem;
}

.rilono-ai-attachment-clear {
    border: 1px solid var(--border-color);
    background: transparent;
    color: var(--text-muted);
    font-size: 0.72rem;
    border-radius: 999px;
    padding: 0.16rem 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.rilono-ai-attachment-clear:hover {
    color: var(--text-primary);
    border-color: rgba(239, 68, 68, 0.6);
}

.rilono-ai-attachment-list {
    margin-top: 0.55rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.rilono-ai-attachment-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    border: 1px solid rgba(124, 138, 255, 0.35);
    border-radius: 999px;
    background: rgba(124, 138, 255, 0.12);
    color: var(--text-primary);
    max-width: 100%;
    padding: 0.22rem 0.55rem;
}

.rilono-ai-attachment-chip-name {
    font-size: 0.76rem;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 190px;
}

.rilono-ai-attachment-chip-remove {
    border: 0;
    background: transparent;
    color: var(--text-muted);
    font-size: 0.8rem;
    cursor: pointer;
    line-height: 1;
    padding: 0;
}

.rilono-ai-attachment-chip-remove:hover {
    color: #f87171;
}

/* Typing Indicator */
.rilono-ai-typing {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    max-width: 85%;
    align-self: flex-start;
    animation: fadeIn 0.3s ease-out;
}

.rilono-ai-typing .message-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(124, 138, 255, 0.2), rgba(167, 139, 250, 0.15));
    border: 1px solid rgba(124, 138, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.rilono-ai-typing .typing-bubble {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 0.85rem 1.15rem;
    border-radius: 1rem;
    border-top-left-radius: 0.25rem;
    display: flex;
    gap: 0.45rem;
    align-items: center;
}

.rilono-ai-typing .typing-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--primary-light);
    animation: typingDot 1.4s ease-in-out infinite;
}

.rilono-ai-typing .typing-dot:nth-child(2) {
    animation-delay: 0.2s;
}

.rilono-ai-typing .typing-dot:nth-child(3) {
    animation-delay: 0.4s;
}

/* Rilono AI Chat Scrollbar Styling */
.rilono-ai-messages::-webkit-scrollbar,
#rilonoAiChatMessages::-webkit-scrollbar {
    width: 6px;
}

.rilono-ai-messages::-webkit-scrollbar-track,
#rilonoAiChatMessages::-webkit-scrollbar-track {
    background: transparent;
}

.rilono-ai-messages::-webkit-scrollbar-thumb,
#rilonoAiChatMessages::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 3px;
}

.rilono-ai-messages::-webkit-scrollbar-thumb:hover,
#rilonoAiChatMessages::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* Responsive */
@media (max-width: 768px) {
    .rilono-ai-widget {
        height: 550px;
    }

    #dashboardTab-overview .overview-health-head {
        flex-direction: column;
        align-items: flex-start;
    }

    #dashboardTab-overview .overview-health-grid {
        grid-template-columns: 1fr;
    }

    #dashboardTab-overview .overview-chat-widget {
        height: 550px;
    }

    .rilono-ai-header {
        padding: 1rem;
    }

    .rilono-ai-avatar {
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }

    .rilono-ai-title {
        font-size: 1.125rem;
    }

    .rilono-ai-messages {
        padding: 1rem;
    }

    .rilono-ai-message {
        max-width: 90%;
    }

    .rilono-ai-input-area {
        padding: 1rem;
    }

    .rilono-ai-quick-actions {
        gap: 0.5rem;
    }

    .quick-action-chip {
        padding: 0.5rem 0.875rem;
        font-size: 0.8rem;
    }
}

/* Floating AI Chat Widget */
.floating-chat-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    font-family: inherit;
}

.floating-chat-toggle {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #7c8aff 0%, #9b6dfa 50%, #c084fc 100%);
    box-shadow: 0 6px 24px rgba(124, 138, 255, 0.35), inset 0 1px 2px rgba(255, 255, 255, 0.2);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    border: none;
}

.floating-chat-toggle::before {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6366f1, #67d4f1, #db2777, #f59e0b);
    background-size: 300% 300%;
    z-index: -1;
    animation: rotateGradientOpacity 4s linear infinite;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.floating-chat-toggle:hover::before {
    opacity: 1;
}

.floating-chat-toggle:hover {
    transform: scale(1.06) translateY(-3px);
    box-shadow: 0 10px 36px rgba(124, 138, 255, 0.4), inset 0 1px 3px rgba(255, 255, 255, 0.25);
}

.modern-ai-icon {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ai-icon-rings {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ai-icon-rings .ring {
    position: absolute;
    border-radius: 50%;
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    border-top-color: rgba(255, 255, 255, 0.95);
}

.ai-icon-rings .ring-1 {
    width: 46px;
    height: 46px;
    animation: spinRing 3s linear infinite;
}

.ai-icon-rings .ring-2 {
    width: 54px;
    height: 54px;
    border-top-color: transparent;
    border-bottom-color: rgba(255, 255, 255, 0.85);
    animation: spinRingReverse 4s linear infinite;
}

.ai-icon-core {
    position: relative;
    z-index: 2;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulseCore 2.5s ease-in-out infinite;
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.7));
}

.ai-sparkle {
    width: 28px;
    height: 28px;
    fill: currentColor;
    stroke: currentColor;
}

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

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

@keyframes pulseCore {

    0%,
    100% {
        transform: scale(1);
        filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.7));
    }

    50% {
        transform: scale(1.15);
        filter: drop-shadow(0 0 18px rgba(255, 255, 255, 1));
    }
}

.chat-icon {
    font-size: 28px;
    animation: float 3s ease-in-out infinite;
}

.chat-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--danger-color);
    color: white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    border: 2px solid var(--bg-color);
    animation: pulse 2s ease-in-out infinite;
}

/* Floating Chat Popup */
.floating-chat-popup {
    position: absolute;
    right: 72px;
    bottom: 10px;
    background: var(--gradient-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    padding: 0.85rem 1.15rem;
    border-radius: 1rem;
    border-bottom-right-radius: 0.25rem;
    box-shadow: var(--shadow-premium);
    width: 250px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 10;
    opacity: 0;
    transform: translateX(20px) scale(0.95);
    pointer-events: none;
    font-size: 0.85rem;
    color: var(--text-primary);
    line-height: 1.5;
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
}

.floating-chat-popup.show {
    opacity: 1;
    transform: translateX(0) scale(1);
    pointer-events: auto;
}

.floating-chat-popup:hover {
    transform: translateX(-3px) scale(1.01);
    border-color: rgba(124, 138, 255, 0.25);
    box-shadow: var(--shadow-premium), 0 0 20px rgba(124, 138, 255, 0.1);
}

.popup-message {
    flex: 1;
    font-weight: 500;
}

.popup-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.25rem;
    line-height: 1;
    padding: 0;
    cursor: pointer;
    transition: color 0.2s ease;
    margin-top: -2px;
}

.popup-close:hover {
    color: var(--danger-color);
}

.floating-chat-popup::after {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.5), rgba(219, 39, 119, 0.5));
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.floating-chat-popup.show:hover::after {
    opacity: 1;
}

.floating-chat-window {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 400px;
    max-width: calc(100vw - 40px);
    height: 550px;
    max-height: calc(100vh - 40px);
    background: var(--gradient-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 1.25rem;
    box-shadow: var(--shadow-premium);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: slideUp 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.floating-chat-window::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(124, 138, 255, 0.35), transparent);
    z-index: 2;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px);
        filter: blur(4px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

.floating-chat-header {
    background: linear-gradient(180deg, rgba(124, 138, 255, 0.1) 0%, rgba(124, 138, 255, 0.02) 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    color: var(--text-primary);
    padding: 0.9rem 1.15rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.floating-chat-header-info {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.floating-chat-header-actions {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.chat-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(124, 138, 255, 0.2), rgba(167, 139, 250, 0.15));
    border: 1px solid rgba(124, 138, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
    box-shadow: 0 0 12px rgba(124, 138, 255, 0.12);
}

.chat-title {
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 0.1rem;
    letter-spacing: -0.01em;
}

.chat-subtitle {
    font-size: 0.72rem;
    color: var(--text-muted);
}

.chat-minimize-btn {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: var(--text-secondary);
    width: 30px;
    height: 30px;
    border-radius: 0.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    line-height: 1;
    transition: all var(--transition-smooth);
    font-weight: 300;
}

.chat-minimize-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
}

.floating-chat-expand-btn {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: var(--text-secondary);
    width: 30px;
    height: 30px;
    border-radius: 0.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 700;
    line-height: 1;
    transition: all var(--transition-smooth);
}

.floating-chat-expand-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
}

.floating-chat-expand-btn.is-expanded {
    background: rgba(124, 138, 255, 0.12);
    border-color: rgba(124, 138, 255, 0.2);
}

.floating-chat-messages {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 1.15rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    background: rgba(10, 10, 15, 0.5);
    min-height: 0;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

.chat-expand-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(2, 6, 23, 0.72);
    z-index: 11850;
    opacity: 0;
    transition: opacity 0.2s ease;
    display: none !important;
}

.chat-expand-backdrop.visible {
    opacity: 1;
}

body.chat-expanded-lock {
    overflow: hidden;
}

.rilono-ai-widget.chat-expanded,
.floating-chat-window.chat-expanded {
    position: fixed !important;
    inset: 22px !important;
    width: auto !important;
    height: auto !important;
    max-width: none !important;
    max-height: none !important;
    z-index: 2147483000 !important;
    background: #0d1428 !important;
    border: 1px solid rgba(124, 138, 255, 0.45);
    border-radius: 1.2rem;
    box-shadow:
        0 0 0 100vmax rgba(2, 6, 23, 0.72),
        0 28px 72px rgba(0, 0, 0, 0.55),
        0 0 0 1px rgba(124, 138, 255, 0.22);
    animation: chatExpandIn 0.2s ease-out;
}

.rilono-ai-widget.chat-expanded .rilono-ai-content,
.floating-chat-window.chat-expanded .floating-chat-messages {
    background: linear-gradient(180deg, #0d1428 0%, #0a0d1e 100%);
}

.rilono-ai-widget.chat-expanded .rilono-ai-messages {
    background: linear-gradient(180deg, #0d1428 0%, #0a0d1e 100%) !important;
}

/* Safety: hide any non-chat blocks that accidentally leak into expanded overview widget. */
.rilono-ai-widget.chat-expanded> :not(.rilono-ai-header):not(.rilono-ai-content),
.rilono-ai-widget.chat-expanded #visaJourneyTracker,
.rilono-ai-widget.chat-expanded .journey-stages,
.rilono-ai-widget.chat-expanded .journey-stage,
.rilono-ai-widget.chat-expanded #currentStageInfo,
.rilono-ai-widget.chat-expanded #journeyProgressLine {
    display: none !important;
}

.rilono-ai-widget.chat-expanded .rilono-ai-message {
    max-width: min(72%, 900px);
}

.floating-chat-window.chat-expanded .chat-message-bubble {
    max-width: min(68vw, 780px);
}

@keyframes chatExpandIn {
    from {
        opacity: 0.6;
        transform: scale(0.985);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.chat-welcome-message {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    margin-bottom: 0;
}

.welcome-bubble {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 1rem 1.125rem;
    border-radius: 1rem;
    flex: 1;
}

.welcome-bubble p {
    margin: 0 0 0.5rem 0;
    color: var(--text-primary);
    font-size: 0.9rem;
    line-height: 1.6;
}

.welcome-bubble p:last-child {
    margin-bottom: 0;
}

.chat-message {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    animation: fadeIn 0.3s ease-out;
}

.chat-message.user {
    flex-direction: row-reverse;
}

.chat-message-bubble {
    max-width: 85%;
    padding: 0.8rem 1rem;
    border-radius: 0.85rem;
    font-size: 0.875rem;
    line-height: 1.65;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.chat-message.assistant .chat-message-bubble {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
}

.chat-message.user .chat-message-bubble {
    background: linear-gradient(135deg, rgba(124, 138, 255, 0.2), rgba(167, 139, 250, 0.15));
    border: 1px solid rgba(124, 138, 255, 0.2);
    color: var(--text-primary);
}

.chat-message.user .chat-avatar {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.8rem;
}

/* AI Response Markdown Formatting */
.chat-message-bubble strong,
.ai-response-content strong {
    font-weight: 600;
    color: var(--primary-color);
}

.chat-message-bubble em,
.ai-response-content em {
    font-style: italic;
}

.chat-message-bubble h1,
.chat-message-bubble h2,
.chat-message-bubble h3,
.ai-response-content h1,
.ai-response-content h2,
.ai-response-content h3 {
    margin: 0.65rem 0 0.35rem;
    line-height: 1.35;
    color: #d7d9ff;
    font-weight: 700;
}

.chat-message-bubble h1,
.ai-response-content h1 {
    font-size: 1.05rem;
}

.chat-message-bubble h2,
.ai-response-content h2 {
    font-size: 0.98rem;
}

.chat-message-bubble h3,
.ai-response-content h3 {
    font-size: 0.92rem;
}

.chat-message-bubble ul,
.ai-response-content ul {
    margin: 8px 0;
    padding-left: 20px;
    list-style-type: disc;
}

.chat-message-bubble li,
.ai-response-content li {
    margin: 4px 0;
    line-height: 1.5;
}

.chat-message-bubble code,
.ai-response-content code {
    background: rgba(124, 138, 255, 0.12);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'SF Mono', Monaco, 'Courier New', monospace;
    font-size: 0.88em;
    border: 1px solid rgba(124, 138, 255, 0.15);
}

.chat-login-prompt {
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: var(--bg-secondary);
    min-height: 0;
    max-height: 100%;
    overflow: hidden;
}

.login-prompt-content {
    text-align: center;
    max-width: 280px;
}

.login-prompt-content p {
    font-size: 1rem;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.login-prompt-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.login-prompt-buttons .btn {
    width: 100%;
    padding: 0.75rem;
    font-size: 0.875rem;
}

.floating-chat-input-container {
    padding: 0.85rem 1.1rem;
    background: rgba(18, 18, 28, 0.7);
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    flex-shrink: 0;
    flex-grow: 0;
    order: 10;
}

.floating-chat-form {
    display: flex;
    gap: 0.6rem;
    align-items: flex-end;
}

.floating-chat-attach-btn {
    width: 36px;
    height: 36px;
    border-radius: 0.55rem;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-muted);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-smooth);
    flex-shrink: 0;
}

.floating-chat-attach-btn:hover {
    color: var(--text-primary);
    border-color: rgba(124, 138, 255, 0.25);
    background: rgba(124, 138, 255, 0.08);
}

.floating-chat-attach-btn input {
    display: none;
}

.floating-chat-input {
    flex: 1;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 0.75rem;
    padding: 0.65rem 0.9rem;
    font-size: 0.875rem;
    font-family: inherit;
    resize: none;
    max-height: 100px;
    overflow-y: auto;
    transition: all var(--transition-smooth);
    line-height: 1.4;
    color: var(--text-primary);
}

.floating-chat-input::placeholder {
    color: var(--text-muted);
}

.floating-chat-input:focus {
    outline: none;
    border-color: rgba(124, 138, 255, 0.3);
    box-shadow: 0 0 0 3px rgba(124, 138, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
}

.floating-chat-send-btn {
    width: 36px;
    height: 36px;
    border-radius: 0.55rem;
    background: var(--gradient-primary);
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-smooth);
    flex-shrink: 0;
    box-shadow: 0 2px 12px rgba(124, 138, 255, 0.2);
}

.floating-chat-send-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 20px rgba(124, 138, 255, 0.3);
}

.floating-chat-send-btn:active {
    transform: scale(0.95);
}

.floating-chat-attachment-session {
    margin-top: 0.7rem;
}

.chat-typing-indicator {
    padding: 0.75rem 1.25rem;
    background: var(--card-bg);
    border-top: 1px solid var(--border-color);
    flex-shrink: 0;
    flex-grow: 0;
}

.typing-dots {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.typing-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--text-muted);
    animation: typing 1.4s ease-in-out infinite;
}

.typing-dots span:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-dots span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing {

    0%,
    60%,
    100% {
        transform: translateY(0);
        opacity: 0.5;
    }

    30% {
        transform: translateY(-10px);
        opacity: 1;
    }
}

/* Scrollbar for chat messages */
.floating-chat-messages::-webkit-scrollbar {
    width: 6px;
}

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

.floating-chat-messages::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 3px;
}

.floating-chat-messages::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* Firefox scrollbar */
.floating-chat-messages {
    scrollbar-width: thin;
    scrollbar-color: var(--border-color) transparent;
}

/* Responsive */
@media (max-width: 480px) {
    .floating-chat-widget {
        bottom: 15px;
        right: 15px;
    }

    .floating-chat-window {
        width: calc(100vw - 30px);
        height: calc(100vh - 30px);
        bottom: 0;
        right: 0;
        border-radius: 1rem;
    }

    .floating-chat-toggle {
        width: 56px;
        height: 56px;
    }

    .chat-icon {
        font-size: 24px;
    }
}

@media (max-width: 900px) {

    .rilono-ai-widget.chat-expanded,
    .floating-chat-window.chat-expanded {
        inset: 8px !important;
        border-radius: 1rem;
    }

    .rilono-ai-widget.chat-expanded .rilono-ai-message {
        max-width: 92%;
    }

    .floating-chat-window.chat-expanded .chat-message-bubble {
        max-width: 90%;
    }
}

/* Turnstile Widget Dark Theme */
.cf-turnstile {
    filter: brightness(0.95);
}

/* Modal Overlay */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 1rem;
}

.modal-content {
    animation: modalSlideIn 0.3s ease-out;
}

.cookie-consent-banner {
    position: fixed;
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    z-index: 12040;
    border: 1px solid rgba(124, 138, 255, 0.32);
    border-radius: 1rem;
    background: linear-gradient(135deg, rgba(11, 15, 40, 0.96), rgba(20, 26, 58, 0.95));
    box-shadow: 0 18px 40px rgba(7, 10, 26, 0.45);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.cookie-consent-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.15rem;
    padding: 0.75rem 1rem;
}

.cookie-consent-text h3 {
    margin: 0 0 0.35rem 0;
    color: #f8fafc;
    font-size: 1rem;
    line-height: 1.2;
}

.cookie-consent-text p {
    margin: 0;
    color: rgba(226, 232, 240, 0.92);
    font-size: 0.9rem;
    line-height: 1.45;
    max-width: 780px;
}

.cookie-consent-text a {
    color: #8ea4ff;
    font-weight: 600;
    text-decoration: none;
}

.cookie-consent-text a:hover {
    text-decoration: underline;
}

.cookie-consent-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.45rem;
    flex-wrap: wrap;
    flex-shrink: 0;
}

/* Global .btn sets width: 100%; keep cookie actions one compact row on desktop */
.cookie-consent-actions .btn {
    margin: 0;
    width: auto;
    flex: 0 1 auto;
    min-height: 38px;
    padding: 0.5rem 0.85rem;
    font-size: 0.8125rem;
    white-space: nowrap;
}

.cookie-consent-actions .btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    color: #f1f5f9;
    border: 1px solid rgba(163, 180, 214, 0.42);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.cookie-consent-actions .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(186, 200, 255, 0.55);
    color: #ffffff;
}

.cookie-settings-overlay {
    z-index: 12060;
}

.cookie-settings-modal-content {
    width: min(640px, 96vw);
    background: var(--gradient-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 1rem;
    box-shadow: var(--shadow-premium);
    padding: 1.5rem;
    position: relative;
}

.cookie-settings-title {
    margin: 0;
    color: var(--text-primary);
    font-size: 1.35rem;
}

.cookie-settings-subtitle {
    margin: 0.55rem 0 1rem 0;
    color: var(--text-secondary);
    font-size: 0.92rem;
    line-height: 1.45;
}

.cookie-settings-list {
    display: grid;
    gap: 0.75rem;
}

.cookie-settings-row {
    border: 1px solid var(--border-color);
    border-radius: 0.85rem;
    background: rgba(255, 255, 255, 0.03);
    padding: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.85rem;
}

.cookie-settings-copy h3 {
    margin: 0 0 0.24rem 0;
    color: var(--text-primary);
    font-size: 0.98rem;
}

.cookie-settings-copy p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.86rem;
    line-height: 1.4;
}

.cookie-switch {
    position: relative;
    display: inline-block;
    width: 52px;
    height: 30px;
    flex-shrink: 0;
}

.cookie-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.cookie-switch-slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background: rgba(148, 163, 184, 0.35);
    border: 1px solid rgba(148, 163, 184, 0.4);
    border-radius: 999px;
    transition: all 0.2s ease;
}

.cookie-switch-slider::before {
    content: '';
    position: absolute;
    width: 22px;
    height: 22px;
    left: 3px;
    top: 3px;
    border-radius: 50%;
    background: #ffffff;
    transition: transform 0.2s ease;
}

.cookie-switch input:checked+.cookie-switch-slider {
    background: linear-gradient(135deg, #2f7bff, #5f6fff);
    border-color: rgba(111, 129, 255, 0.9);
}

.cookie-switch input:checked+.cookie-switch-slider::before {
    transform: translateX(22px);
}

.cookie-switch input:disabled+.cookie-switch-slider {
    cursor: not-allowed;
    opacity: 0.9;
}

.cookie-settings-actions {
    margin-top: 1rem;
    display: flex;
    justify-content: flex-end;
    gap: 0.6rem;
    flex-wrap: wrap;
}

@media (max-width: 900px) {
    .cookie-consent-content {
        flex-direction: column;
        align-items: stretch;
        gap: 0.85rem;
    }

    .cookie-consent-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.5rem;
        justify-content: stretch;
    }

    .cookie-consent-actions .btn {
        width: 100%;
        min-height: 40px;
        white-space: normal;
        line-height: 1.25;
        text-align: center;
    }

    #cookieAcceptAllBtn {
        grid-column: 1 / -1;
    }
}

@media (max-width: 640px) {
    .cookie-consent-banner {
        left: 0.6rem;
        right: 0.6rem;
        bottom: 0.6rem;
    }

    .cookie-consent-content {
        padding: 0.75rem 0.85rem;
    }

    .cookie-consent-actions {
        grid-template-columns: 1fr;
    }

    #cookieAcceptAllBtn {
        order: -1;
    }

    .cookie-consent-actions .btn {
        flex: none;
        width: 100%;
    }

    .cookie-settings-modal-content {
        padding: 1rem;
    }

    .cookie-settings-row {
        padding: 0.75rem;
    }
}

.referral-promo-modal-content {
    width: min(680px, 96vw);
    background: var(--gradient-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 1rem;
    box-shadow: var(--shadow-premium);
    padding: 2rem 1.8rem;
    position: relative;
}

.feature-request-modal-content {
    width: min(620px, 96vw);
    background: var(--gradient-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 1rem;
    box-shadow: var(--shadow-premium);
    padding: 1.6rem;
    position: relative;
}

.feature-request-close-btn {
    position: absolute;
    top: 0.85rem;
    right: 0.85rem;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 1.7rem;
    cursor: pointer;
}

.feature-request-title {
    margin: 0;
    color: var(--text-primary);
    font-size: 1.35rem;
}

.feature-request-subtitle {
    margin: 0.55rem 0 1rem 0;
    color: var(--text-secondary);
    font-size: 0.92rem;
}

.feature-request-meta {
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    background: var(--bg-secondary);
    padding: 0.7rem 0.8rem;
    margin-bottom: 0.95rem;
    color: var(--text-secondary);
    font-size: 0.86rem;
    display: grid;
    gap: 0.25rem;
}

.feature-request-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.feature-request-actions {
    display: flex;
    gap: 0.65rem;
    justify-content: flex-end;
}

.feature-request-footnote {
    margin: 0.9rem 0 0 0;
    color: var(--text-secondary);
    font-size: 0.8rem;
}

.checkout-launch-overlay {
    z-index: 12100;
    background: rgba(2, 6, 23, 0.78);
    backdrop-filter: blur(8px);
}

.checkout-launch-modal-content {
    width: min(860px, 95vw);
    border-radius: 18px;
    border: 1px solid rgba(129, 140, 248, 0.5);
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.98), rgba(17, 24, 39, 0.98));
    box-shadow: 0 28px 70px rgba(30, 41, 59, 0.5);
    padding: 1.35rem;
    position: relative;
}

.checkout-launch-close-btn {
    position: absolute;
    top: 0.65rem;
    right: 0.75rem;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 1.6rem;
    cursor: pointer;
}

.checkout-launch-header {
    margin-bottom: 1rem;
}

.checkout-launch-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
    border: 1px solid rgba(129, 140, 248, 0.55);
    background: rgba(79, 70, 229, 0.24);
    color: #c7d2fe;
    font-size: 0.75rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-weight: 700;
}

.checkout-launch-title {
    margin: 0.65rem 0 0.2rem 0;
    font-size: 1.35rem;
    color: #f8fafc;
}

.checkout-launch-subtitle {
    margin: 0;
    color: #cbd5e1;
    font-size: 0.95rem;
    line-height: 1.45;
}

.checkout-launch-layout {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 0.9rem;
}

.checkout-launch-summary {
    border: 1px solid rgba(124, 138, 255, 0.42);
    border-radius: 14px;
    background: rgba(30, 41, 59, 0.55);
    padding: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.checkout-launch-benefits-card {
    border: 1px solid rgba(124, 138, 255, 0.35);
    border-radius: 14px;
    background: rgba(15, 23, 42, 0.72);
    padding: 1rem;
}

.checkout-launch-benefits-title {
    color: #e2e8f0;
    font-size: 1rem;
    font-weight: 700;
}

.checkout-launch-plan-name {
    color: #cbd5e1;
    font-size: 0.9rem;
}

.checkout-launch-plan-price {
    margin-top: 0.3rem;
    color: #eef2ff;
    font-size: 1.7rem;
    font-weight: 800;
    line-height: 1.15;
}

.checkout-launch-plan-note {
    margin: 0.45rem 0 0 0;
    color: #a5b4fc;
    font-size: 0.84rem;
}

.checkout-launch-coupon-block {
    margin-top: 0.7rem;
}

.checkout-launch-coupon-label {
    display: block;
    color: #cbd5e1;
    font-size: 0.78rem;
    margin-bottom: 0.35rem;
    letter-spacing: 0.01em;
}

.checkout-launch-coupon-input {
    width: 100%;
    padding: 0.58rem 0.75rem;
    border-radius: 10px;
    border: 1px solid rgba(124, 138, 255, 0.45);
    background: rgba(15, 23, 42, 0.68);
    color: #f8fafc;
    font-size: 0.9rem;
    outline: none;
}

.checkout-launch-coupon-input:focus {
    border-color: #a5b4fc;
    box-shadow: 0 0 0 2px rgba(129, 140, 248, 0.18);
}

.checkout-launch-coupon-help {
    margin: 0.35rem 0 0 0;
    color: #94a3b8;
    font-size: 0.75rem;
}

.checkout-launch-benefits {
    margin: 0.5rem 0 0 0;
    padding-left: 1.05rem;
    color: #e2e8f0;
    font-size: 0.9rem;
    display: grid;
    gap: 0.34rem;
}

.checkout-launch-actions {
    margin-top: 0.95rem;
    display: grid;
    grid-template-columns: 170px 1fr;
    gap: 0.65rem;
}

.plan-limit-overlay {
    z-index: 12120;
    background: rgba(2, 6, 23, 0.82);
    backdrop-filter: blur(8px);
}

.plan-limit-modal-content {
    width: min(560px, 95vw);
    border-radius: 16px;
    border: 1px solid rgba(129, 140, 248, 0.5);
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.98), rgba(17, 24, 39, 0.98));
    box-shadow: 0 24px 64px rgba(15, 23, 42, 0.55);
    padding: 1.3rem 1.15rem 1.1rem 1.15rem;
    position: relative;
}

.plan-limit-close-btn {
    position: absolute;
    top: 0.55rem;
    right: 0.65rem;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-size: 1.55rem;
    cursor: pointer;
}

.plan-limit-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.28rem 0.65rem;
    border-radius: 999px;
    border: 1px solid rgba(251, 191, 36, 0.5);
    background: rgba(245, 158, 11, 0.2);
    color: #fde68a;
    font-size: 0.73rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-weight: 700;
}

.plan-limit-title {
    margin: 0.75rem 0 0.35rem 0;
    color: #f8fafc;
    font-size: 1.3rem;
}

.plan-limit-text {
    margin: 0;
    color: #cbd5e1;
    font-size: 0.94rem;
    line-height: 1.5;
}

.plan-limit-actions {
    margin-top: 1rem;
    display: grid;
    grid-template-columns: 170px 1fr;
    gap: 0.65rem;
}

.journey-stage {
    cursor: pointer;
    transition: transform 0.2s ease;
}

.journey-stage:hover {
    transform: scale(1.05);
}

.journey-stage:hover .stage-icon {
    box-shadow: 0 0 16px rgba(124, 138, 255, 0.3) !important;
}

.journey-stage-selected .stage-label {
    color: var(--text-accent) !important;
    font-weight: 700;
}

.journey-stage-summary {
    margin-top: 0.65rem;
    color: var(--text-secondary);
    font-size: 0.82rem;
}

.journey-stage-list {
    margin-top: 0.5rem;
    display: grid;
    gap: 0.35rem;
}

.journey-stage-list-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(124, 138, 255, 0.1);
    border-radius: 0.55rem;
    padding: 0.5rem 0.65rem;
    transition: all var(--transition-smooth);
}

.journey-stage-list-item:hover {
    background: rgba(124, 138, 255, 0.04);
    border-color: rgba(124, 138, 255, 0.2);
}

.journey-stage-list-label {
    color: var(--text-primary);
    font-size: 0.78rem;
    font-weight: 500;
}

.journey-stage-list-status {
    font-size: 0.7rem;
    font-weight: 700;
    border-radius: 999px;
    padding: 0.2rem 0.55rem;
    white-space: nowrap;
    letter-spacing: 0.01em;
}

.journey-stage-list-status.status-ready {
    background: rgba(52, 211, 153, 0.12);
    color: #34d399;
    border: 1px solid rgba(52, 211, 153, 0.25);
}

.journey-stage-list-status.status-uploaded {
    background: rgba(124, 138, 255, 0.12);
    color: #b4bffa;
    border: 1px solid rgba(124, 138, 255, 0.25);
}

.journey-stage-list-status.status-needs-validation {
    background: rgba(251, 191, 36, 0.12);
    color: #fbbf24;
    border: 1px solid rgba(251, 191, 36, 0.25);
}

.journey-stage-list-status.status-missing {
    background: rgba(248, 113, 113, 0.12);
    color: #f87171;
    border: 1px solid rgba(248, 113, 113, 0.25);
}

.journey-stage-card-clickable {
    cursor: pointer;
    border-left-color: var(--primary-light) !important;
}

.journey-stage-card-clickable:hover {
    box-shadow: 0 0 0 1px rgba(124, 138, 255, 0.25), 0 8px 20px rgba(0, 0, 0, 0.15);
}

.journey-stage-action-hint {
    margin-top: 0.6rem;
    font-size: 0.78rem;
    color: var(--accent-color);
}

@media (max-width: 900px) {
    .checkout-launch-layout {
        grid-template-columns: 1fr;
    }

    .checkout-launch-actions {
        grid-template-columns: 1fr;
    }

    .plan-limit-actions {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .checkout-launch-modal-content {
        width: min(100vw - 1rem, 520px);
        padding: 1.1rem;
        border-radius: 16px;
    }

    .checkout-launch-plan-price {
        font-size: 1.5rem;
    }
}

@media (max-width: 640px) {
    .feature-request-form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

.referral-promo-close-btn {
    position: absolute;
    top: 0.9rem;
    right: 0.9rem;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 1.7rem;
    cursor: pointer;
}

.referral-promo-icon {
    font-size: 2.2rem;
    margin-bottom: 0.3rem;
}

.referral-promo-title {
    color: var(--text-primary);
    margin: 0;
    font-size: 1.45rem;
}

.referral-promo-subtitle {
    color: var(--text-secondary);
    margin: 0.6rem 0 1.2rem 0;
    font-size: 0.95rem;
}

.referral-promo-field {
    border: 1px solid var(--border-color);
    background: var(--bg-secondary);
    border-radius: 0.85rem;
    padding: 0.8rem 0.9rem;
    margin-bottom: 0.75rem;
}

.referral-promo-field-label {
    color: var(--text-secondary);
    font-size: 0.8rem;
    margin-bottom: 0.35rem;
}

.referral-promo-field-value {
    color: var(--text-primary);
    font-weight: 600;
    line-height: 1.45;
    word-break: break-word;
}

.referral-promo-link {
    font-size: 0.92rem;
}

.referral-promo-actions {
    display: flex;
    gap: 0.6rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.documents-loading-state {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    border: 1px solid rgba(124, 138, 255, 0.35);
    border-radius: 0.75rem;
    padding: 0.875rem 1rem;
    color: #c7d2fe;
    background: rgba(37, 99, 235, 0.1);
    font-size: 0.95rem;
}

.documents-loading-dot {
    width: 0.625rem;
    height: 0.625rem;
    border-radius: 999px;
    background: #a5b4fc;
    animation: pulse 1.2s ease-in-out infinite;
}

.document-upload-progress-overlay {
    z-index: 12050;
    background: rgba(2, 6, 23, 0.78);
    backdrop-filter: blur(8px);
}

.document-upload-progress-card {
    width: min(640px, 94vw);
    border-radius: 20px;
    border: 1px solid rgba(124, 138, 255, 0.4);
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.98), rgba(17, 24, 39, 0.98));
    box-shadow: 0 30px 80px rgba(37, 99, 235, 0.18);
    padding: 1.8rem 1.7rem;
    text-align: center;
    display: grid;
    gap: 1rem;
}

/* ── Scan Area ── */
.doc-upload-visual {
    display: flex;
    justify-content: center;
}

.doc-upload-scan-area {
    position: relative;
    width: min(340px, 82vw);
    height: min(430px, 55vh);
    border-radius: 14px;
    border: 1.5px dashed rgba(124, 138, 255, 0.4);
    background: rgba(15, 23, 42, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: border-color 0.4s ease, background 0.4s ease;
}

/* Actual document image preview */
.doc-upload-preview-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: rgba(2, 6, 23, 0.8);
    border-radius: 12px;
    z-index: 2;
}

/* PDF / document frame preview */
.doc-upload-preview-frame {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 12px;
    background: rgba(2, 6, 23, 0.9);
    z-index: 2;
}

/* Text preview */
.doc-upload-preview-text {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 1rem 1.1rem;
    border-radius: 12px;
    background: rgba(2, 6, 23, 0.86);
    color: #c7d2fe;
    font-family: 'JetBrains Mono', 'SFMono-Regular', Menlo, Monaco, Consolas, monospace;
    font-size: 0.73rem;
    line-height: 1.5;
    text-align: left;
    white-space: pre-wrap;
    overflow: auto;
    border-radius: 12px;
    z-index: 2;
}

/* Document placeholder for non-image files */
.doc-upload-placeholder {
    display: grid;
    gap: 10px;
    padding: 1.2rem;
    width: 100%;
    align-content: center;
    z-index: 2;
}

.doc-upload-placeholder-bar {
    height: 9px;
    border-radius: 4px;
    background: linear-gradient(90deg, rgba(124, 138, 255, 0.24), rgba(129, 140, 248, 0.13));
    animation: docBarShimmer 1.8s ease-in-out infinite;
}

.doc-upload-placeholder-bar.w80 {
    width: 80%;
}

.doc-upload-placeholder-bar.w60 {
    width: 60%;
    animation-delay: 0.1s;
}

.doc-upload-placeholder-bar.w90 {
    width: 90%;
    animation-delay: 0.2s;
}

.doc-upload-placeholder-bar.w45 {
    width: 45%;
    animation-delay: 0.3s;
}

.doc-upload-placeholder-bar.w75 {
    width: 75%;
    animation-delay: 0.15s;
}

.doc-upload-placeholder-bar.w55 {
    width: 55%;
    animation-delay: 0.25s;
}

.doc-upload-placeholder-bar.w85 {
    width: 85%;
    animation-delay: 0.05s;
}

.doc-upload-placeholder-bar.w40 {
    width: 40%;
    animation-delay: 0.35s;
}

@keyframes docBarShimmer {

    0%,
    100% {
        opacity: 0.45;
    }

    50% {
        opacity: 0.85;
    }
}

/* Scan line */
.doc-upload-scan-line {
    position: absolute;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, transparent, #a5b4fc, #a78bfa, #a5b4fc, transparent);
    box-shadow: 0 0 14px rgba(129, 140, 248, 0.7), 0 0 35px rgba(129, 140, 248, 0.35);
    opacity: 0;
    z-index: 5;
    transition: opacity 0.3s ease;
}

.doc-upload-scan-area.scanning .doc-upload-scan-line {
    opacity: 1;
    animation: docScanSweep 2.4s linear infinite;
}

@keyframes docScanSweep {
    0% {
        top: 4%;
    }

    50% {
        top: 92%;
    }

    100% {
        top: 4%;
    }
}

/* Scan glow */
.doc-upload-scan-glow {
    position: absolute;
    inset: 0;
    border-radius: 14px;
    opacity: 0;
    z-index: 3;
    transition: opacity 0.4s ease;
}

.doc-upload-scan-area.scanning .doc-upload-scan-glow {
    opacity: 1;
    background: linear-gradient(180deg, rgba(124, 138, 255, 0.06), rgba(124, 138, 255, 0), rgba(124, 138, 255, 0.06));
    animation: docScanPulse 2s ease-in-out infinite;
}

@keyframes docScanPulse {

    0%,
    100% {
        opacity: 0.4;
    }

    50% {
        opacity: 1;
    }
}

/* Scanning state */
.doc-upload-scan-area.scanning {
    border-color: rgba(129, 140, 248, 0.6);
    border-style: solid;
    background: rgba(49, 46, 129, 0.12);
}

/* Complete state */
.doc-upload-scan-area.complete {
    border-color: rgba(16, 185, 129, 0.55);
    border-style: solid;
    background: rgba(6, 78, 59, 0.12);
}

.doc-upload-scan-area.complete .doc-upload-scan-line,
.doc-upload-scan-area.complete .doc-upload-scan-glow {
    opacity: 0 !important;
    animation: none !important;
}

/* Rilono AI line-by-line scan accents */
.doc-upload-ai-lines {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 4;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.doc-upload-ai-lines span {
    position: absolute;
    left: 10%;
    right: 10%;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(34, 211, 238, 0.95), transparent);
    top: calc(11% + (var(--line) * 10%));
    opacity: 0;
    filter: drop-shadow(0 0 8px rgba(34, 211, 238, 0.55));
}

.doc-upload-scan-area.scanning .doc-upload-ai-lines {
    opacity: 1;
}

.doc-upload-scan-area.scanning .doc-upload-ai-lines span {
    animation: docAiLinePulse 1.8s linear infinite;
    animation-delay: calc(var(--line) * 0.13s);
}

@keyframes docAiLinePulse {
    0% {
        opacity: 0;
        transform: scaleX(0.32);
    }

    18% {
        opacity: 0.9;
        transform: scaleX(1);
    }

    40% {
        opacity: 0.2;
    }

    100% {
        opacity: 0;
        transform: scaleX(0.3);
    }
}

/* ── File Info ── */
.doc-upload-file-info {
    display: grid;
    gap: 0.2rem;
}

.doc-upload-file-name {
    font-size: 1.03rem;
    font-weight: 700;
    color: #eef2ff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.doc-upload-file-meta {
    font-size: 0.83rem;
    color: #94a3b8;
    letter-spacing: 0.02em;
}

/* ── Step Progress ── */
.doc-upload-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    padding: 0.25rem 0;
}

.doc-upload-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    opacity: 0.35;
    transition: opacity 0.35s ease, transform 0.35s ease;
    min-width: 72px;
}

.doc-upload-step.active {
    opacity: 1;
    transform: scale(1.05);
}

.doc-upload-step.completed {
    opacity: 0.65;
}

.doc-upload-step-icon {
    font-size: 1.15rem;
}

.doc-upload-step-label {
    font-size: 0.65rem;
    font-weight: 600;
    color: #c7d2fe;
    letter-spacing: 0.01em;
    white-space: nowrap;
}

.doc-upload-step.completed .doc-upload-step-label {
    color: #86efac;
}

.doc-upload-step-connector {
    width: 22px;
    height: 2px;
    background: rgba(124, 138, 255, 0.25);
    border-radius: 2px;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
    margin: 0 0.15rem;
    align-self: center;
    margin-bottom: 1rem;
}

.doc-upload-step.completed+.doc-upload-step-connector {
    background: rgba(16, 185, 129, 0.4);
}

.doc-upload-step.active+.doc-upload-step-connector::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, #a5b4fc, transparent);
    animation: docConnectorPulse 1.2s ease-in-out infinite;
}

@keyframes docConnectorPulse {

    0%,
    100% {
        opacity: 0.3;
    }

    50% {
        opacity: 1;
    }
}

/* ── Status Text ── */
.document-upload-progress-text {
    margin: 0;
    color: #c7d2fe;
    font-size: 0.92rem;
    font-weight: 500;
}

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

.email-unsubscribe-card {
    max-width: 560px;
}

.email-unsub-loading {
    text-align: center;
    color: var(--text-secondary);
    margin: 0.5rem 0 1rem 0;
}

.email-unsub-invalid {
    background: rgba(239, 68, 68, 0.14);
    border: 1px solid rgba(239, 68, 68, 0.35);
    color: #fca5a5;
    border-radius: 10px;
    padding: 0.8rem 0.9rem;
    margin-top: 0.8rem;
}

.email-unsub-warning {
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.35);
    color: #fde68a;
    border-radius: 12px;
    padding: 1rem;
    margin-top: 0.2rem;
}

.email-unsub-warning h3 {
    margin: 0 0 0.55rem 0;
    color: #fef3c7;
}

.email-unsub-warning p {
    margin: 0.45rem 0;
}

.email-unsub-actions {
    margin-top: 1rem;
    display: flex;
    gap: 0.7rem;
}

.email-unsub-actions .btn {
    flex: 1;
}

.email-unsub-invalid-reason {
    display: block;
    color: #fca5a5;
    margin-top: 0.5rem;
    min-height: 1rem;
}

.email-unsub-quick-reasons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin: 0.25rem 0 0.8rem 0;
}

.email-unsub-reason-chip {
    border: 1px solid rgba(124, 138, 255, 0.35);
    background: rgba(124, 138, 255, 0.08);
    color: #c7d2fe;
    border-radius: 999px;
    padding: 0.42rem 0.7rem;
    font-size: 0.85rem;
    line-height: 1.2;
    cursor: pointer;
    transition: all 0.2s ease;
}

.email-unsub-reason-chip:hover {
    border-color: rgba(129, 140, 248, 0.65);
    background: rgba(129, 140, 248, 0.16);
}

.email-unsub-reason-chip.active {
    color: #eef2ff;
    border-color: rgba(139, 92, 246, 0.8);
    background: linear-gradient(135deg, rgba(124, 138, 255, 0.35), rgba(168, 85, 247, 0.35));
    box-shadow: 0 0 0 1px rgba(139, 92, 246, 0.2) inset;
}

.email-unsub-success {
    margin-top: 1rem;
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.4);
    color: #86efac;
    border-radius: 10px;
    padding: 0.8rem 0.9rem;
}

@media (max-width: 640px) {
    .email-unsub-actions {
        flex-direction: column;
    }

    .email-unsub-reason-chip {
        font-size: 0.82rem;
    }
}

@keyframes documentUploadSpin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 900px) {
    .dashboard-referral-strip {
        gap: 0.55rem;
        padding: 0.55rem 0.65rem;
    }

    .dashboard-referral-strip-text {
        min-width: 0;
        width: 100%;
    }

    .dashboard-referral-strip-btn {
        min-width: 0;
    }

    .visa-hub-grid {
        grid-template-columns: 1fr;
    }

    .visa-hub-experiences {
        grid-column: auto;
    }

    .visa-hub-actions .btn {
        min-width: 0;
        width: 100%;
    }

    .visa-mock-controls {
        width: 100%;
    }

    .visa-mock-controls .btn {
        min-width: 0;
        width: 100%;
    }

    .visa-mock-secondary-controls {
        width: 100%;
    }

    .visa-mock-mode-actions {
        width: 100%;
    }

    .visa-mock-mode-actions .btn {
        min-width: 0;
        width: 100%;
    }

    .visa-mock-chat-composer {
        flex-direction: column;
    }

    .visa-mock-chat-composer .btn {
        width: 100%;
    }

    .visa-mock-chat-composer .visa-mic-status {
        width: 100%;
        justify-content: flex-start;
    }
}

/* Mobile optimization overrides */
img,
video,
canvas,
svg {
    max-width: 100%;
    height: auto;
}

.mobile-nav-toggle {
    display: none;
    width: 2.5rem;
    height: 2.5rem;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    background: var(--bg-tertiary);
    color: var(--text-primary);
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
    transition: all 0.2s ease;
}

.mobile-nav-toggle:hover {
    border-color: var(--primary-color);
    background: var(--card-bg-hover);
}

.visa-mobile-subnav {
    display: none;
}

@media (max-width: 900px) {
    :root {
        --section-pad-y: 4.5rem;
        --section-pad-x: 1.25rem;
    }

    .navbar {
        padding: 0.75rem 0;
    }

    .nav-container {
        position: relative;
        flex-direction: row;
        flex-wrap: nowrap;
        gap: 0.75rem;
        padding: 0 1rem;
    }

    .nav-brand {
        min-width: 0;
    }

    .nav-brand h1 {
        font-size: 1.3rem;
    }

    .mobile-nav-toggle {
        display: inline-flex;
        flex-shrink: 0;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: calc(100% + 0.6rem);
        left: 0.75rem;
        right: 0.75rem;
        width: auto;
        max-height: min(78vh, 560px);
        overflow-y: auto;
        padding: 0.75rem;
        border: 1px solid var(--border-color);
        border-radius: 1rem;
        background: rgba(18, 18, 26, 0.96);
        backdrop-filter: var(--blur-md);
        -webkit-backdrop-filter: var(--blur-md);
        box-shadow: var(--shadow-lg);
        flex-direction: column;
        gap: 0.5rem;
        z-index: 1001;
    }

    .nav-links.mobile-open {
        display: flex;
    }

    .nav-links>a,
    .nav-links>div {
        width: 100%;
    }

    .nav-links a {
        padding: 0.78rem 0.9rem;
    }

    .notification-container,
    .user-menu {
        width: 100%;
    }

    .notification-bell {
        width: 100%;
        height: auto;
        min-height: 2.75rem;
        justify-content: flex-start;
        padding: 0.68rem 0.9rem;
        border-radius: 0.75rem;
    }

    .notification-badge {
        top: 0.32rem;
        right: 0.5rem;
    }

    .user-menu-trigger {
        width: 100%;
        justify-content: space-between;
    }

    .user-menu-trigger::after {
        margin-left: auto;
    }

    .notification-dropdown,
    .user-menu-dropdown {
        position: static;
        top: auto;
        right: auto;
        width: 100%;
        min-width: 0;
        max-width: none;
        margin-top: 0.5rem;
    }

    .notification-dropdown {
        max-height: min(58vh, 360px);
    }

    .container,
    .footer-content {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .container {
        margin: 1rem auto;
    }

    .auth-card,
    .form-card,
    .legal-page {
        width: 100%;
        max-width: 100%;
        margin: 1rem auto;
        padding: 1.25rem;
    }

    .referral-link-input {
        min-width: 0;
    }

    .referral-copy-btn {
        min-width: 0;
        width: 100%;
    }

    #dashboardSection .sidebar-subscription-card {
        display: none !important;
    }

    #dashboardReferralBanner {
        display: none !important;
    }

    #dashboardTab-overview .overview-chat-column {
        display: none !important;
    }

    #dashboardTab-overview .overview-layout {
        grid-template-columns: 1fr;
    }

    .homepage-remotion-video {
        padding-top: 3rem;
        padding-bottom: 1.75rem;
    }

    .remotion-video-shell {
        gap: 1.25rem;
    }

    .rilono-reel-player {
        min-height: 480px;
    }

    .rilono-reel-scene {
        inset: 0.85rem 0.85rem 5.9rem;
        padding: 0.95rem;
        gap: 0.75rem;
    }

    .rilono-reel-scene h3 {
        font-size: 1.12rem;
        line-height: 1.26;
    }

    .rilono-reel-scene p {
        font-size: 0.86rem;
        line-height: 1.5;
    }

    .reel-scene-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.45rem;
        margin-top: 0.15rem;
    }

    .reel-scene-metrics div {
        padding: 0.58rem;
        gap: 0.12rem;
    }

    .reel-scene-metrics div:last-child {
        grid-column: 1 / -1;
    }

    .reel-scene-metrics strong {
        font-size: 0.84rem;
    }

    .reel-scene-metrics span {
        font-size: 0.7rem;
        line-height: 1.3;
    }

    .rilono-reel-footer {
        left: 0.65rem;
        right: 0.65rem;
        bottom: 0.65rem;
        padding: 0.62rem 0.72rem;
        gap: 0.55rem;
    }

    .homepage-how-it-works {
        padding-top: 2.25rem;
        padding-bottom: 3rem;
    }

    .homepage-how-it-works .section-header {
        margin-bottom: 2.25rem;
    }

    .homepage-how-it-works .section-subtitle {
        max-width: 34ch;
        font-size: 1.02rem;
        line-height: 1.55;
    }

    .homepage-how-it-works .steps-container {
        gap: 1rem;
        align-items: stretch;
    }

    .homepage-how-it-works .step-card {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        flex: 0 1 auto;
        margin-bottom: 0;
        padding: 2.5rem 1.5rem 1.75rem;
    }

    .homepage-how-it-works .step-number {
        top: -1.25rem;
        width: 2.75rem;
        height: 2.75rem;
        font-size: 1.1rem;
    }

    .homepage-how-it-works .step-icon {
        width: 78px;
        height: 78px;
        margin: 1.2rem auto;
    }

    .homepage-how-it-works .step-icon-svg {
        width: 40px;
        height: 40px;
    }

    .homepage-how-it-works .step-card h3 {
        font-size: 1.35rem;
        line-height: 1.3;
        margin-bottom: 0.85rem;
    }

    .homepage-how-it-works .step-card p {
        font-size: 0.98rem;
        line-height: 1.6;
    }

    .homepage-categories {
        padding-top: 2.5rem;
        padding-bottom: 3rem;
    }

    .homepage-categories .section-header {
        margin-bottom: 2rem;
    }

    .homepage-categories .section-subtitle {
        max-width: 34ch;
        font-size: 1.02rem;
        line-height: 1.55;
    }

    .homepage-categories .categories-grid {
        max-width: 760px;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1rem;
    }

    .homepage-categories .category-card {
        padding: 2rem 1.1rem;
    }

    .homepage-categories .category-icon {
        width: 60px;
        height: 60px;
        margin-bottom: 0.85rem;
    }

    .homepage-categories .category-icon .home-icon-svg {
        width: 1.65rem;
        height: 1.65rem;
    }

    .homepage-categories .category-card h3 {
        font-size: 1.16rem;
        line-height: 1.28;
        margin-bottom: 0.4rem;
    }

    .homepage-categories .category-card p {
        font-size: 0.9rem;
        line-height: 1.45;
    }

    .visa-mobile-subnav {
        display: flex;
        gap: 0.5rem;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        margin: 0.2rem 0 0.9rem;
        padding-bottom: 0.2rem;
    }

    .visa-mobile-subnav::-webkit-scrollbar {
        display: none;
    }

    .visa-mobile-subnav-btn {
        flex: 0 0 auto;
        border: 1px solid rgba(148, 163, 184, 0.28);
        background: rgba(15, 23, 42, 0.55);
        color: var(--text-secondary);
        border-radius: 999px;
        padding: 0.46rem 0.82rem;
        font-size: 0.78rem;
        font-weight: 600;
        line-height: 1.2;
        cursor: pointer;
        transition: all 0.2s ease;
        white-space: nowrap;
    }

    .visa-mobile-subnav-btn:hover {
        border-color: rgba(129, 140, 248, 0.52);
        color: var(--text-primary);
    }

    .visa-mobile-subnav-btn.active {
        color: #f8fafc;
        border-color: rgba(167, 139, 250, 0.46);
        background: linear-gradient(90deg, rgba(124, 138, 255, 0.34), rgba(168, 85, 247, 0.38));
        box-shadow: 0 0 0 1px rgba(124, 138, 255, 0.2) inset;
    }

    .dashboard-referral-strip {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        align-items: start;
        gap: 0.7rem;
        padding: 0.75rem;
    }

    .dashboard-referral-strip-chip,
    .dashboard-referral-strip-text {
        grid-column: 1 / -1;
    }

    .dashboard-referral-strip-text {
        display: block;
        font-size: 0.9rem;
        line-height: 1.45;
    }

    .dashboard-referral-strip-code {
        display: inline-flex;
        margin-left: 0.32rem;
        vertical-align: middle;
    }

    .dashboard-referral-strip-stats {
        display: block;
        margin-top: 0.45rem;
        font-size: 0.83rem;
        line-height: 1.35;
    }

    .dashboard-referral-strip-btn {
        width: 100%;
        min-width: 0;
        justify-content: center;
        padding: 0.55rem 0.7rem;
    }

    #dashboardTab-documents .documents-health-widget .widget-content {
        padding: 1rem;
    }

    #dashboardTab-documents .overview-health-head {
        align-items: flex-start;
        gap: 0.6rem;
        margin-bottom: 0.75rem;
    }

    #dashboardTab-documents .overview-health-title {
        font-size: 0.95rem;
    }

    #dashboardTab-documents .overview-health-subtitle {
        font-size: 0.82rem;
        line-height: 1.35;
    }

    #dashboardTab-documents .overview-health-badge {
        font-size: 0.74rem;
        padding: 0.28rem 0.62rem;
    }

    #dashboardTab-documents .overview-health-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.55rem;
        margin-bottom: 0.8rem;
    }

    #dashboardTab-documents .overview-health-stat {
        padding: 0.65rem 0.72rem;
        border-radius: 0.68rem;
    }

    #dashboardTab-documents .overview-health-label {
        font-size: 0.74rem;
        margin-bottom: 0.2rem;
    }

    #dashboardTab-documents .overview-health-value {
        font-size: 1.05rem;
    }

    #dashboardTab-documents .overview-health-rate {
        margin-bottom: 0.8rem;
    }

    #dashboardTab-documents .overview-health-rate-header {
        font-size: 0.8rem;
    }

    #dashboardTab-documents .overview-health-list-wrap {
        padding: 0.62rem;
    }

    #dashboardTab-documents .overview-health-list-title {
        font-size: 0.8rem;
    }

    #dashboardTab-documents .overview-health-list {
        gap: 0.35rem;
        max-height: 170px;
        overflow-y: auto;
        padding-right: 0.1rem;
    }

    #dashboardTab-documents .overview-health-item {
        padding: 0.5rem 0.58rem;
        gap: 0.5rem;
    }

    #dashboardTab-documents .overview-health-item-name {
        font-size: 0.76rem;
    }

    #dashboardTab-documents .overview-health-item-status {
        font-size: 0.7rem;
        padding: 0.18rem 0.48rem;
    }

    #dashboardTab-documents .documents-layout {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }

    #dashboardTab-documents .documents-right-column {
        order: -1;
    }

    #dashboardTab-documents .documents-main-column {
        order: 0;
    }

    #dashboardTab-overview .overview-health-head {
        align-items: flex-start;
        gap: 0.6rem;
        margin-bottom: 0.75rem;
    }

    #dashboardTab-overview .overview-health-title {
        font-size: 0.95rem;
    }

    #dashboardTab-overview .overview-health-subtitle {
        font-size: 0.82rem;
        line-height: 1.35;
    }

    #dashboardTab-overview .overview-health-badge {
        font-size: 0.74rem;
        padding: 0.28rem 0.62rem;
    }

    #dashboardTab-overview .overview-health-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.55rem;
        margin-bottom: 0.8rem;
    }

    #dashboardTab-overview .overview-health-stat {
        padding: 0.65rem 0.72rem;
        border-radius: 0.68rem;
    }

    #dashboardTab-overview .overview-health-label {
        font-size: 0.74rem;
        margin-bottom: 0.2rem;
    }

    #dashboardTab-overview .overview-health-value {
        font-size: 1.05rem;
    }

    #dashboardTab-overview .overview-health-rate {
        margin-bottom: 0.8rem;
    }

    #dashboardTab-overview .overview-health-rate-header {
        font-size: 0.8rem;
    }

    #dashboardTab-overview .overview-health-list-wrap {
        padding: 0.62rem;
    }

    #dashboardTab-overview .overview-health-list-title {
        font-size: 0.8rem;
    }

    #dashboardTab-overview .overview-health-list {
        gap: 0.35rem;
        max-height: 170px;
        overflow-y: auto;
        padding-right: 0.1rem;
    }

    #dashboardTab-overview .overview-health-item {
        padding: 0.5rem 0.58rem;
        gap: 0.5rem;
    }

    #dashboardTab-overview .overview-health-item-name {
        font-size: 0.76rem;
    }

    #dashboardTab-overview .overview-health-item-status {
        font-size: 0.7rem;
        padding: 0.18rem 0.48rem;
    }

    input,
    select,
    textarea {
        font-size: 16px;
    }
}

@media (max-width: 640px) {
    :root {
        --section-pad-y: 3.75rem;
        --section-pad-x: 1rem;
    }

    .nav-container {
        padding: 0 0.75rem;
    }

    .nav-links {
        left: 0.5rem;
        right: 0.5rem;
        padding: 0.6rem;
    }

    .container,
    .footer-content {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }

    .notification-dropdown {
        max-height: 52vh;
    }

    #dashboardSection .nav-label {
        font-size: 0.82rem;
    }

    .visa-mobile-subnav-btn {
        font-size: 0.75rem;
        padding: 0.42rem 0.72rem;
    }

    .rilono-reel-player {
        min-height: 460px;
    }

    .rilono-reel-scene {
        inset: 0.75rem 0.75rem 5.7rem;
        padding: 0.85rem;
    }

    .rilono-reel-scene h3 {
        font-size: 1.04rem;
    }

    .rilono-reel-scene p {
        font-size: 0.82rem;
    }

    .homepage-how-it-works {
        padding-top: 2rem;
        padding-bottom: 2.5rem;
    }

    .homepage-how-it-works .section-header {
        margin-bottom: 1.75rem;
    }

    .homepage-how-it-works .section-title {
        font-size: 1.75rem;
    }

    .homepage-how-it-works .section-subtitle {
        font-size: 0.95rem;
        line-height: 1.5;
        max-width: 30ch;
    }

    .homepage-how-it-works .steps-container {
        gap: 0.9rem;
    }

    .homepage-how-it-works .step-card {
        padding: 2.2rem 1.1rem 1.45rem;
        border-radius: 1.2rem;
    }

    .homepage-how-it-works .step-number {
        top: -1.1rem;
        width: 2.45rem;
        height: 2.45rem;
        font-size: 1rem;
    }

    .homepage-how-it-works .step-icon {
        width: 68px;
        height: 68px;
        border-radius: 1rem;
        margin: 1rem auto 0.9rem;
    }

    .homepage-how-it-works .step-icon-svg {
        width: 34px;
        height: 34px;
    }

    .homepage-how-it-works .step-card h3 {
        font-size: 1.2rem;
    }

    .homepage-how-it-works .step-card p {
        font-size: 0.92rem;
        line-height: 1.55;
    }

    .homepage-categories {
        padding-top: 2rem;
        padding-bottom: 2.5rem;
    }

    .homepage-categories .section-header {
        margin-bottom: 1.6rem;
    }

    .homepage-categories .section-title {
        font-size: 1.75rem;
    }

    .homepage-categories .section-subtitle {
        font-size: 0.95rem;
        line-height: 1.5;
        max-width: 30ch;
    }

    .homepage-categories .categories-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .homepage-categories .category-card {
        display: grid;
        grid-template-columns: auto 1fr;
        align-items: center;
        column-gap: 0.85rem;
        row-gap: 0.12rem;
        text-align: left;
        padding: 0.9rem 0.95rem;
        border-radius: 1rem;
    }

    .homepage-categories .category-icon {
        width: 52px;
        height: 52px;
        margin: 0;
        grid-row: 1 / 3;
    }

    .homepage-categories .category-icon .home-icon-svg {
        width: 1.4rem;
        height: 1.4rem;
    }

    .homepage-categories .category-card h3 {
        font-size: 1.05rem;
        line-height: 1.28;
        margin: 0;
    }

    .homepage-categories .category-card p {
        font-size: 0.84rem;
        line-height: 1.4;
        margin: 0;
    }

    #dashboardTab-documents .overview-health-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    #dashboardTab-overview .overview-health-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    #dashboardTab-documents .overview-health-list {
        max-height: 145px;
    }

    #dashboardTab-overview .overview-health-list {
        max-height: 145px;
    }

    .dashboard-referral-strip {
        grid-template-columns: 1fr;
    }

    .dashboard-referral-strip-btn {
        width: 100%;
    }
}

@media (max-width: 380px) {
    #dashboardTab-documents .overview-health-grid {
        grid-template-columns: 1fr;
    }

    #dashboardTab-overview .overview-health-grid {
        grid-template-columns: 1fr;
    }
}

/* Homepage mobile optimization pass */
@media (max-width: 900px) {
    .homepage-hero {
        padding: 5.25rem 1rem 3.25rem;
        min-height: auto;
    }

    .homepage-hero .hero-particles {
        display: none;
    }

    .homepage-hero .hero-container {
        gap: 2rem;
    }

    .homepage-hero .hero-badge {
        font-size: 0.78rem;
        padding: 0.42rem 0.85rem;
        margin-bottom: 1.2rem;
    }

    .homepage-hero .hero-title {
        font-size: 2.8rem;
        line-height: 1.12;
        margin-bottom: 1rem;
    }

    .homepage-hero .title-main {
        font-size: 2.1rem;
    }

    .homepage-hero .hero-subtitle {
        font-size: 1rem;
        line-height: 1.6;
        margin-bottom: 1.4rem;
        max-width: 34ch;
    }

    .homepage-hero .hero-buttons {
        flex-direction: column;
        align-items: stretch;
        width: min(100%, 420px);
        margin: 0 auto 1.7rem;
    }

    .homepage-hero .hero-buttons .btn-large {
        width: 100%;
        justify-content: center;
        font-size: 1rem;
        padding: 0.9rem 1rem;
    }

    .homepage-hero .hero-stats {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 0.7rem;
        width: min(100%, 540px);
        margin: 0 auto;
        padding-top: 1.2rem;
    }

    .homepage-hero .glass-stat {
        text-align: center;
        align-items: center;
    }

    .homepage-hero .stat-gradient {
        font-size: 1.4rem;
    }

    .homepage-hero .stat-label {
        font-size: 0.7rem;
        letter-spacing: 0.03em;
    }

    .homepage-hero .hero-visual-right {
        display: none;
    }

    .homepage-remotion-video {
        padding-top: 2.6rem;
        padding-bottom: 2rem;
    }

    .homepage-remotion-video .remotion-copy {
        gap: 0.9rem;
    }

    .homepage-remotion-video .remotion-copy h2 {
        font-size: 1.9rem;
    }

    .homepage-remotion-video .remotion-copy p {
        font-size: 0.95rem;
        line-height: 1.6;
    }

    .homepage-remotion-video .remotion-highlights span {
        font-size: 0.74rem;
        padding: 0.36rem 0.64rem;
    }

    .homepage-remotion-video .remotion-copy-actions {
        gap: 0.6rem;
    }

    .homepage-remotion-video .remotion-copy-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .homepage-chrome-extension {
        padding-top: 2.6rem;
        padding-bottom: 3rem;
    }

    .homepage-chrome-extension .chrome-ext-badge {
        margin-bottom: 1rem;
        padding: 0.36rem 0.8rem;
        font-size: 0.72rem;
    }

    .homepage-chrome-extension .chrome-ext-title {
        font-size: 1.95rem;
        line-height: 1.2;
    }

    .homepage-chrome-extension .chrome-ext-subtitle {
        font-size: 0.97rem;
        line-height: 1.6;
        max-width: 34ch;
        margin-bottom: 2rem;
    }

    .homepage-chrome-extension .chrome-ext-layout {
        gap: 1.5rem;
    }

    .homepage-chrome-extension .browser-body {
        display: flex;
        flex-direction: column;
        min-height: auto;
    }

    .homepage-chrome-extension .chrome-ext-scene.is-active {
        flex-direction: column;
    }

    .homepage-chrome-extension .mock-page {
        width: 100%;
        min-height: 220px;
    }

    .homepage-chrome-extension .scene-scanner {
        width: 100%;
    }

    .homepage-chrome-extension .mock-sidepanel {
        width: 100%;
        border-left: none;
        border-top: 1px solid rgba(255, 255, 255, 0.06);
    }

    .homepage-chrome-extension .sidepanel-chat {
        max-height: 190px;
    }

    .homepage-chrome-extension .chrome-ext-feature {
        padding: 0.8rem 0.9rem;
        gap: 0.75rem;
    }

    .homepage-chrome-extension .chrome-ext-feature-title {
        font-size: 0.9rem;
    }

    .homepage-chrome-extension .chrome-ext-feature-desc {
        font-size: 0.8rem;
        line-height: 1.5;
    }

    .homepage-chrome-extension .chrome-ext-install-btn {
        width: 100%;
        justify-content: center;
    }

    .homepage-value-banner {
        padding-top: 2.8rem;
        padding-bottom: 2.9rem;
    }

    .homepage-value-banner .value-banner-content h2 {
        font-size: 1.9rem;
        margin-bottom: 1rem;
    }

    .homepage-value-banner .value-banner-content p {
        font-size: 0.96rem;
        line-height: 1.65;
    }

    .homepage-value-banner .value-banner-content p.value-banner-sub {
        font-size: 0.9rem;
        line-height: 1.55;
        margin-bottom: 1.4rem;
    }

    .homepage-value-banner .value-stats {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.85rem;
        max-width: 430px;
        margin: 0 auto;
    }

    .homepage-value-banner .value-stat:last-child {
        grid-column: 1 / -1;
    }

    .homepage-value-banner .value-stat-number {
        font-size: 1.5rem;
    }

    .homepage-students-only {
        padding-top: 2.8rem;
        padding-bottom: 2.9rem;
    }

    .homepage-students-only .community-private-badge {
        font-size: 0.78rem;
        padding: 0.42rem 0.95rem;
        margin-bottom: 1rem;
    }

    .homepage-students-only .community-tag {
        padding: 0.55rem 1rem;
        gap: 0.5rem;
        margin-bottom: 1rem;
    }

    .homepage-students-only .community-title {
        font-size: 1.85rem;
        margin-bottom: 1rem;
    }

    .homepage-students-only .community-desc {
        font-size: 0.96rem;
        line-height: 1.65;
        margin-bottom: 1.2rem;
    }

    .homepage-students-only .community-features {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.85rem;
        margin-top: 1.2rem;
    }

    .homepage-students-only .community-feature:last-child {
        grid-column: 1 / -1;
    }

    .homepage-students-only .community-feature {
        padding: 0.8rem 0.7rem;
        border-radius: 0.9rem;
        border: 1px solid rgba(148, 163, 184, 0.18);
        background: rgba(15, 23, 42, 0.35);
    }

    .homepage-students-only .community-feature-icon {
        width: 58px;
        height: 58px;
        margin-bottom: 0.7rem;
    }

    .homepage-platform {
        padding-top: 2.8rem;
        padding-bottom: 2.9rem;
    }

    .homepage-platform .platform-badge {
        padding: 0.42rem 0.9rem;
        margin-bottom: 1rem;
    }

    .homepage-platform .platform-badge-label {
        font-size: 0.74rem;
    }

    .homepage-platform .platform-title {
        font-size: 1.95rem;
    }

    .homepage-platform .platform-subtitle {
        font-size: 1rem;
    }

    .homepage-platform .platform-desc {
        font-size: 0.92rem;
        line-height: 1.6;
        margin-bottom: 1.5rem;
    }

    .homepage-platform .platform-grid {
        grid-template-columns: 1fr;
        gap: 0.85rem;
        margin-bottom: 1.5rem;
    }

    .homepage-platform .platform-card {
        padding: 1rem 0.95rem;
        text-align: left;
        border-radius: 1rem;
    }

    .homepage-platform .platform-card-icon {
        margin: 0 0 0.6rem;
    }

    .homepage-platform .platform-card-title {
        font-size: 0.92rem;
    }

    .homepage-platform .platform-card-desc {
        font-size: 0.82rem;
        line-height: 1.45;
    }

    .homepage-platform .platform-stats {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.85rem;
        padding-top: 1.2rem;
    }

    .homepage-platform .platform-stats .value-stat:last-child {
        grid-column: 1 / -1;
    }

    .homepage-platform .platform-stat-number {
        font-size: 1.35rem;
    }

    .homepage-platform .platform-stat-label {
        font-size: 0.78rem;
    }

    .homepage-features {
        padding-top: 2.6rem;
        padding-bottom: 2.8rem;
    }

    .homepage-features .section-header {
        margin-bottom: 2rem;
    }

    .homepage-features .features-container {
        grid-template-columns: 1fr;
        gap: 0.9rem;
        max-width: 680px;
    }

    .homepage-features .feature-card {
        padding: 1.35rem 1rem;
        text-align: left;
        border-radius: 1.15rem;
    }

    .homepage-features .feature-icon-wrapper {
        margin-bottom: 0.8rem;
    }

    .homepage-features .feature-icon {
        width: 60px;
        height: 60px;
    }

    .homepage-features .feature-icon .home-icon-svg {
        width: 1.5rem;
        height: 1.5rem;
    }

    .homepage-features .feature-card h3 {
        font-size: 1.12rem;
        margin-bottom: 0.45rem;
    }

    .homepage-features .feature-card p {
        font-size: 0.88rem;
        line-height: 1.5;
    }

    .homepage-cta {
        padding-top: 2.8rem;
        padding-bottom: 2.8rem;
    }

    .homepage-cta .cta-content h2 {
        font-size: 1.9rem;
        margin-bottom: 0.9rem;
    }

    .homepage-cta .cta-content p {
        font-size: 0.96rem;
        line-height: 1.6;
        margin-bottom: 1.4rem;
    }

    .homepage-cta .cta-buttons {
        gap: 0.75rem;
        margin-bottom: 1.3rem;
    }

    .homepage-cta .cta-buttons .btn {
        width: 100%;
        justify-content: center;
    }

    .homepage-cta .cta-features {
        margin-top: 1rem;
        padding-top: 1rem;
        gap: 0.7rem;
    }

    .homepage-cta .cta-feature {
        justify-content: flex-start;
        font-size: 0.84rem;
    }
}

@media (max-width: 640px) {
    #homepageSection .section-title {
        font-size: 1.72rem;
    }

    #homepageSection .section-subtitle {
        font-size: 0.95rem;
        line-height: 1.5;
    }

    .homepage-hero {
        padding: 4.7rem 0.9rem 2.7rem;
    }

    .homepage-hero .hero-badge {
        padding: 0.36rem 0.7rem;
        font-size: 0.7rem;
        gap: 0.42rem;
        margin-bottom: 0.9rem;
        max-width: 100%;
        line-height: 1.3;
    }

    .homepage-hero .hero-title {
        font-size: 2.2rem;
        margin-bottom: 0.85rem;
    }

    .homepage-hero .title-main {
        font-size: 1.72rem;
    }

    .homepage-hero .hero-subtitle {
        font-size: 0.92rem;
        line-height: 1.5;
        margin-bottom: 1.1rem;
        max-width: 30ch;
    }

    .homepage-hero .hero-buttons {
        width: 100%;
        margin-bottom: 1.3rem;
        gap: 0.6rem;
    }

    .homepage-hero .hero-buttons .btn-large {
        font-size: 0.93rem;
        padding: 0.82rem 0.9rem;
    }

    .homepage-hero .hero-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.55rem;
    }

    .homepage-hero .hero-stats .glass-stat:last-child {
        grid-column: 1 / -1;
    }

    .homepage-hero .stat-gradient {
        font-size: 1.22rem;
    }

    .homepage-hero .stat-label {
        font-size: 0.64rem;
    }

    .homepage-remotion-video {
        padding-top: 2.2rem;
        padding-bottom: 1.5rem;
    }

    .homepage-remotion-video .remotion-tag {
        font-size: 0.66rem;
        padding: 0.32rem 0.62rem;
    }

    .homepage-remotion-video .remotion-copy h2 {
        font-size: 1.56rem;
    }

    .homepage-remotion-video .remotion-copy p {
        font-size: 0.89rem;
    }

    .homepage-remotion-video .remotion-highlights {
        gap: 0.45rem;
    }

    .homepage-remotion-video .remotion-highlights span {
        font-size: 0.69rem;
        padding: 0.28rem 0.5rem;
    }

    .homepage-remotion-video .rilono-reel-player {
        min-height: 430px;
    }

    .homepage-remotion-video .rilono-reel-scene {
        inset: 0.68rem 0.68rem 5.3rem;
        padding: 0.76rem;
    }

    .homepage-remotion-video .rilono-reel-scene h3 {
        font-size: 0.98rem;
    }

    .homepage-remotion-video .rilono-reel-scene p {
        font-size: 0.78rem;
    }

    .homepage-remotion-video .reel-scene-badge {
        font-size: 0.62rem;
        padding: 0.28rem 0.5rem;
    }

    .homepage-remotion-video .reel-scene-metrics strong {
        font-size: 0.76rem;
    }

    .homepage-remotion-video .reel-scene-metrics span {
        font-size: 0.66rem;
    }

    .homepage-chrome-extension,
    .homepage-value-banner,
    .homepage-students-only,
    .homepage-platform,
    .homepage-features,
    .homepage-cta {
        padding-left: 0.9rem;
        padding-right: 0.9rem;
    }

    .homepage-chrome-extension .chrome-ext-badge {
        font-size: 0.66rem;
        padding: 0.3rem 0.62rem;
    }

    .homepage-chrome-extension .chrome-ext-title {
        font-size: 1.5rem;
    }

    .homepage-chrome-extension .chrome-ext-subtitle {
        font-size: 0.88rem;
    }

    .homepage-chrome-extension .chrome-ext-feature {
        padding: 0.7rem 0.72rem;
    }

    .homepage-chrome-extension .chrome-ext-feature-icon {
        width: 34px;
        height: 34px;
    }

    .homepage-chrome-extension .chrome-ext-feature-icon svg {
        width: 14px;
        height: 14px;
    }

    .homepage-chrome-extension .chrome-ext-feature-title {
        font-size: 0.82rem;
    }

    .homepage-chrome-extension .chrome-ext-feature-desc {
        font-size: 0.74rem;
    }

    .homepage-chrome-extension .chrome-ext-install-btn {
        font-size: 0.84rem;
        padding: 0.68rem 0.8rem;
    }

    .homepage-chrome-extension .chrome-ext-install-btn .chrome-icon {
        width: 18px;
        height: 18px;
    }

    .homepage-value-banner .value-banner-emoji {
        width: 64px;
        height: 64px;
        border-radius: 0.95rem;
        margin-bottom: 0.8rem;
    }

    .homepage-value-banner .value-banner-emoji .home-icon-svg {
        width: 1.85rem;
        height: 1.85rem;
    }

    .homepage-value-banner .value-banner-content h2 {
        font-size: 1.45rem;
    }

    .homepage-value-banner .value-banner-content p {
        font-size: 0.88rem;
        line-height: 1.52;
        margin-bottom: 0.9rem;
    }

    .homepage-value-banner .value-banner-content p.value-banner-sub {
        font-size: 0.83rem;
        margin-bottom: 1rem;
    }

    .homepage-value-banner .value-stats {
        grid-template-columns: 1fr;
        gap: 0.65rem;
    }

    .homepage-value-banner .value-stat-number {
        font-size: 1.18rem;
    }

    .homepage-value-banner .value-stat-label {
        font-size: 0.78rem;
    }

    .homepage-students-only .community-private-badge {
        font-size: 0.7rem;
        padding: 0.34rem 0.7rem;
    }

    .homepage-students-only .community-tag {
        padding: 0.4rem 0.65rem;
        margin-bottom: 0.8rem;
    }

    .homepage-students-only .community-tag-label {
        font-size: 0.76rem;
    }

    .homepage-students-only .community-tag-icon {
        width: 1.2rem;
        height: 1.2rem;
    }

    .homepage-students-only .community-title {
        font-size: 1.45rem;
        margin-bottom: 0.7rem;
    }

    .homepage-students-only .community-desc {
        font-size: 0.88rem;
        line-height: 1.52;
    }

    .homepage-students-only .community-features {
        grid-template-columns: 1fr;
        gap: 0.65rem;
    }

    .homepage-students-only .community-feature {
        display: grid;
        grid-template-columns: auto 1fr;
        align-items: center;
        column-gap: 0.65rem;
        text-align: left;
        padding: 0.72rem 0.78rem;
    }

    .homepage-students-only .community-feature-icon {
        width: 40px;
        height: 40px;
        margin: 0;
        border-radius: 0.72rem;
        grid-row: 1 / 3;
    }

    .homepage-students-only .community-feature-icon .home-icon-svg {
        width: 1.2rem;
        height: 1.2rem;
    }

    .homepage-students-only .community-feature-title {
        margin-bottom: 0.1rem;
        font-size: 0.86rem;
    }

    .homepage-students-only .community-feature-sub {
        font-size: 0.74rem;
    }

    .homepage-platform .platform-badge {
        padding: 0.35rem 0.7rem;
        margin-bottom: 0.8rem;
    }

    .homepage-platform .platform-badge-label {
        font-size: 0.68rem;
    }

    .homepage-platform .platform-title {
        font-size: 1.5rem;
        margin-bottom: 0.6rem;
    }

    .homepage-platform .platform-subtitle {
        font-size: 0.88rem;
    }

    .homepage-platform .platform-desc {
        font-size: 0.84rem;
        margin-bottom: 1rem;
    }

    .homepage-platform .platform-grid {
        gap: 0.7rem;
    }

    .homepage-platform .platform-card {
        padding: 0.82rem 0.82rem 0.78rem;
    }

    .homepage-platform .platform-card-icon {
        width: 42px;
        height: 42px;
        border-radius: 0.75rem;
    }

    .homepage-platform .platform-card-icon .home-icon-svg {
        width: 1.2rem;
        height: 1.2rem;
    }

    .homepage-platform .platform-card-title {
        font-size: 0.86rem;
        margin-bottom: 0.28rem;
    }

    .homepage-platform .platform-card-desc {
        font-size: 0.76rem;
        line-height: 1.35;
    }

    .homepage-platform .platform-stats {
        grid-template-columns: 1fr;
        gap: 0.6rem;
        padding-top: 0.85rem;
    }

    .homepage-platform .platform-stats .value-stat {
        text-align: left;
    }

    .homepage-platform .platform-stat-number {
        font-size: 1.06rem;
    }

    .homepage-platform .platform-stat-label {
        font-size: 0.72rem;
        margin-top: 0.1rem;
    }

    .homepage-features .section-header {
        margin-bottom: 1.4rem;
    }

    .homepage-features .section-title {
        font-size: 1.65rem;
    }

    .homepage-features .section-subtitle {
        font-size: 0.92rem;
    }

    .homepage-features .features-container {
        gap: 0.7rem;
    }

    .homepage-features .feature-card {
        display: grid;
        grid-template-columns: auto 1fr;
        column-gap: 0.72rem;
        row-gap: 0.12rem;
        padding: 0.9rem 0.88rem;
        text-align: left;
    }

    .homepage-features .feature-icon-wrapper {
        margin: 0;
        grid-row: 1 / 3;
    }

    .homepage-features .feature-icon {
        width: 52px;
        height: 52px;
        border-radius: 0.84rem;
    }

    .homepage-features .feature-icon .home-icon-svg {
        width: 1.28rem;
        height: 1.28rem;
    }

    .homepage-features .feature-card h3 {
        font-size: 0.98rem;
        margin: 0;
    }

    .homepage-features .feature-card p {
        font-size: 0.79rem;
        line-height: 1.42;
        margin: 0;
    }

    .homepage-cta .cta-content h2 {
        font-size: 1.5rem;
    }

    .homepage-cta .cta-content p {
        font-size: 0.88rem;
        line-height: 1.5;
        margin-bottom: 1rem;
    }

    .homepage-cta .cta-buttons {
        margin-bottom: 0.95rem;
    }

    .homepage-cta .cta-features {
        gap: 0.55rem;
        margin-top: 0.8rem;
        padding-top: 0.8rem;
    }

    .homepage-cta .cta-feature {
        font-size: 0.78rem;
    }

    .homepage-cta .cta-check {
        width: 1.22rem;
        height: 1.22rem;
        font-size: 0.63rem;
    }

    .chrome-ext-ambient,
    .value-banner-orb,
    .platform-ambient {
        display: none;
    }
}
