/* ══════════════════════════════════════════════════════════════
   UniLife AI - Elegant Bright Design
   COMPLETE & REVIEWED STYLES
   ══════════════════════════════════════════════════════════════ */

/* ══════════════════════════════════════════════════════════════
   1. FONTS
   ══════════════════════════════════════════════════════════════ */
@font-face {
    font-family: 'Cairo';
    src: url('../fonts/cairo/Cairo-Regular.eot');
    src: local('../fonts/cairo/Cairo-Regular'), url('../fonts/cairo/Cairo-Regular.eot?#iefix') format('embedded-opentype'), url('../fonts/cairo/Cairo-Regular.woff2') format('woff2'), url('../fonts/cairo/Cairo-Regular.woff') format('woff'), url('../fonts/cairo/Cairo-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Cairo';
    src: url('../fonts/cairo/Cairo-Bold.eot');
    src: local('../fonts/cairo/Cairo-Bold'), url('../fonts/cairo/Cairo-Bold.eot?#iefix') format('embedded-opentype'), url('../fonts/cairo/Cairo-Bold.woff2') format('woff2'), url('../fonts/cairo/Cairo-Bold.woff') format('woff'), url('../fonts/cairo/Cairo-Bold.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

/* ══════════════════════════════════════════════════════════════
   2. ROOT VARIABLES
   ══════════════════════════════════════════════════════════════ */
:root {
    --primary: #9333ea;
    --primary-light: #c084fc;
    --secondary: #6366f1;
    --accent: #06b6d4;
    --bg-main: #060810;
    --bg-card: #0e1222;
    --bg-card-hover: #161c33;
    --text-primary: #ffffff;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    --border-subtle: rgba(255, 255, 255, 0.08);
    --border-glow: rgba(147, 51, 234, 0.35);
    --shadow-soft: 0 4px 15px rgba(0, 0, 0, 0.4);
    --shadow-medium: 0 10px 30px rgba(0, 0, 0, 0.5);
    --shadow-large: 0 20px 50px rgba(0, 0, 0, 0.6);
    --radius-small: 8px;
    --radius-medium: 16px;
    --radius-large: 24px;
    --radius-full: 999px;
    --transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    --transition-smooth: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ══════════════════════════════════════════════════════════════
   3. SCROLLBAR STYLING - Same as Login Page
   ══════════════════════════════════════════════════════════════ */

/* WebKit Scrollbar - Chrome, Safari, Edge */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: rgba(6, 8, 16, 0.5);
    border-radius: 99px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgba(99, 102, 241, 0.6), rgba(147, 51, 234, 0.6), rgba(6, 182, 212, 0.6));
    border-radius: 99px;
    border: 2px solid rgba(6, 8, 16, 0.8);
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

    ::-webkit-scrollbar-thumb:hover {
        background: linear-gradient(180deg, rgba(99, 102, 241, 0.8), rgba(147, 51, 234, 0.8), rgba(6, 182, 212, 0.8));
        box-shadow: 0 0 10px rgba(99, 102, 241, 0.3);
    }

::-webkit-scrollbar-corner {
    background: rgba(6, 8, 16, 0.5);
}

/* Hide horizontal scrollbar */
::-webkit-scrollbar-horizontal {
    display: none;
    height: 0;
    width: 0;
}

/* Firefox Scrollbar */
* {
    scrollbar-width: thin;
    scrollbar-color: rgba(99, 102, 241, 0.6) rgba(6, 8, 16, 0.5);
}

/* RTL Specific Scrollbar */
html[dir="rtl"] ::-webkit-scrollbar-thumb {
    background: linear-gradient(0deg, rgba(6, 182, 212, 0.6), rgba(147, 51, 234, 0.6), rgba(99, 102, 241, 0.6));
}

    html[dir="rtl"] ::-webkit-scrollbar-thumb:hover {
        background: linear-gradient(0deg, rgba(6, 182, 212, 0.8), rgba(147, 51, 234, 0.8), rgba(99, 102, 241, 0.8));
    }

/* Desktop scrollbar - wider */
@media (min-width: 992px) {
    ::-webkit-scrollbar {
        width: 12px;
    }

    ::-webkit-scrollbar-track {
        background: rgba(6, 8, 16, 0.7);
        border: 1px solid rgba(255, 255, 255, 0.05);
    }

    ::-webkit-scrollbar-thumb {
        background: linear-gradient(180deg, rgba(99, 102, 241, 0.7), rgba(147, 51, 234, 0.7), rgba(6, 182, 212, 0.7));
        border: 3px solid rgba(6, 8, 16, 0.9);
    }

        ::-webkit-scrollbar-thumb:hover {
            background: linear-gradient(180deg, rgba(99, 102, 241, 0.9), rgba(147, 51, 234, 0.9), rgba(6, 182, 212, 0.9));
            box-shadow: 0 0 15px rgba(99, 102, 241, 0.5);
        }

    html {
        scrollbar-gutter: stable;
    }
}

/* Mobile scrollbar - thinner */
@media (max-width: 768px) {
    ::-webkit-scrollbar {
        width: 6px;
        height: 6px;
    }

    ::-webkit-scrollbar-thumb {
        border-width: 1px;
    }
}

/* ══════════════════════════════════════════════════════════════
   4. RESET & BASE
   ══════════════════════════════════════════════════════════════ */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    scrollbar-gutter: auto;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Cairo', 'Helvetica Neue', Arial, sans-serif;
    background: var(--bg-main);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    overflow-y: auto;
    min-height: 100vh;
    min-height: 100dvh;
    position: relative;
    isolation: isolate;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

    /* Subtle Animated Background */
    body::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: radial-gradient(circle at 15% 10%, rgba(37, 99, 235, 0.08), transparent 55%), radial-gradient(circle at 85% 90%, rgba(8, 145, 178, 0.08), transparent 55%);
        pointer-events: none;
        z-index: -1;
    }

a {
    text-decoration: none;
    color: inherit;
}

button {
    cursor: pointer;
    font-family: inherit;
}

/* ══════════════════════════════════════════════════════════════
   5. HEADER
   ══════════════════════════════════════════════════════════════ */
.site-header {
    background: rgba(6, 8, 16, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-subtle);
    padding: 1.25rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

    .site-header.scrolled {
        box-shadow: var(--shadow-soft);
    }

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.navbar-brand-creative {
    font-weight: 900;
    font-size: 1.75rem;
    text-decoration: none;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    white-space: nowrap;
}

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

.nav-link-item {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 0;
}

    .nav-link-item::after {
        content: '';
        position: absolute;
        bottom: 0;
        right: 0;
        width: 0;
        height: 3px;
        border-radius: 999px;
        background: linear-gradient(90deg, var(--secondary), var(--primary));
        transition: width 0.3s ease;
    }

    .nav-link-item:hover {
        color: var(--primary-light);
    }

        .nav-link-item:hover::after {
            width: 100%;
        }

/* Language Switcher */
.lang-btn {
    background: var(--bg-card-hover);
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    padding: 0.5rem 1.25rem;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

    .lang-btn:hover {
        border-color: var(--primary-light);
        color: var(--primary-light);
        background: rgba(147, 51, 234, 0.1);
    }

    .lang-btn.active {
        background: linear-gradient(135deg, var(--primary), var(--primary-light));
        border: none;
        color: white;
        box-shadow: var(--shadow-soft);
    }

/* ══════════════════════════════════════════════════════════════
   6. BUTTONS
   ══════════════════════════════════════════════════════════════ */
.btn-primary, .btn-start {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    border: none;
    border-radius: var(--radius-full);
    padding: 1rem 2.5rem;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    transition: var(--transition);
    box-shadow: var(--shadow-soft);
    cursor: pointer;
}

    .btn-primary:hover, .btn-start:hover {
        transform: translateY(-3px);
        box-shadow: var(--shadow-medium);
    }

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--border-subtle);
    border-radius: var(--radius-full);
    padding: 1rem 2.5rem;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    transition: var(--transition);
    cursor: pointer;
}

    .btn-secondary:hover {
        border-color: var(--primary-light);
        background: rgba(147, 51, 234, 0.08);
        transform: translateY(-3px);
        box-shadow: var(--shadow-soft);
    }

/* ══════════════════════════════════════════════════════════════
   7. HERO SECTION
   ══════════════════════════════════════════════════════════════ */
.hero-section {
    padding: 6rem 0 5rem;
    position: relative;
    z-index: 1;
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image-wrapper {
    border-radius: var(--radius-large);
    overflow: hidden;
    box-shadow: var(--shadow-large);
    border: 1px solid var(--border-subtle);
    position: relative;
    transition: all 0.4s ease;
}

    .hero-image-wrapper::before {
        content: '';
        position: absolute;
        inset: -2px;
        background: linear-gradient(135deg, var(--primary), var(--secondary), var(--accent));
        border-radius: inherit;
        z-index: -1;
        opacity: 0.6;
        filter: blur(12px);
        animation: glow-pulse 4s ease-in-out infinite;
    }

@keyframes glow-pulse {
    0%, 100% {
        opacity: 0.4;
    }

    50% {
        opacity: 0.8;
    }
}

.hero-image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.hero-image-wrapper:hover {
    transform: scale(1.02);
}

    .hero-image-wrapper:hover img {
        transform: scale(1.05);
    }

.coming-soon-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-full);
    margin-bottom: 1.5rem;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-secondary);
    box-shadow: var(--shadow-soft);
    transition: all 0.3s ease;
}

    .coming-soon-badge:hover {
        border-color: var(--primary-light);
        box-shadow: var(--shadow-medium);
    }

.badge-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 12px rgba(6, 182, 212, 0.4);
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.6;
        transform: scale(1.3);
    }
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -0.04em;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.hero-highlight {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-desc {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    padding: 1.75rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-medium);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(10px);
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    text-align: center;
    flex: 1;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.stat-divider {
    width: 1px;
    height: 50px;
    background: linear-gradient(180deg, transparent, var(--border-subtle), transparent);
    flex-shrink: 0;
}

/* ══════════════════════════════════════════════════════════════
   8. LOGIN / REGISTER PAGES
   ══════════════════════════════════════════════════════════════ */
.login-page {
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.login-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    max-width: 1100px;
    width: 100%;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-large);
    overflow: hidden;
    box-shadow: var(--shadow-large);
}

.login-illustration {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    padding: 4rem 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.illustration-content {
    text-align: center;
    color: white;
    z-index: 1;
}

.illustration-logo {
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    font-size: 3.5rem;
    backdrop-filter: blur(10px);
}

.illustration-title {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.illustration-desc {
    font-size: 1.1rem;
    opacity: 0.95;
    line-height: 1.7;
}

.illustration-shapes {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.shape-1,
.shape-2,
.shape-3 {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    animation: float 6s ease-in-out infinite;
}

.shape-1 {
    width: 200px;
    height: 200px;
    top: -50px;
    right: -50px;
}

.shape-2 {
    width: 120px;
    height: 120px;
    bottom: 30px;
    left: -30px;
    animation-delay: 2s;
}

.shape-3 {
    width: 80px;
    height: 80px;
    bottom: 150px;
    right: 60px;
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

.login-form-container {
    padding: 3.5rem 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.login-header {
    margin-bottom: 2rem;
}

.login-title {
    font-size: 2rem;
    font-weight: 900;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.login-subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
}

.social-login {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.85rem 1.5rem;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-medium);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-primary);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
}

    .social-btn:hover {
        border-color: var(--primary-light);
        background: rgba(147, 51, 234, 0.08);
        transform: translateY(-2px);
        box-shadow: var(--shadow-soft);
    }

    .social-btn i {
        font-size: 1.25rem;
    }

.divider {
    display: flex;
    align-items: center;
    margin: 1.5rem 0;
    color: var(--text-muted);
    font-size: 0.9rem;
}

    .divider::before,
    .divider::after {
        content: "";
        flex: 1;
        height: 1px;
        background: var(--border-subtle);
    }

    .divider::before {
        margin-left: 1rem;
    }

    .divider::after {
        margin-right: 1rem;
    }

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.6rem;
    font-size: 0.9rem;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

    .input-wrapper i {
        position: absolute;
        right: 1.25rem;
        color: var(--text-muted);
        font-size: 1.1rem;
        pointer-events: none;
    }

html[dir="rtl"] .input-wrapper i {
    right: auto;
    left: 1.25rem;
}

.form-input {
    width: 100%;
    padding: 0.9rem 3rem 0.9rem 1.25rem;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-medium);
    font-size: 1rem;
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.04);
    transition: var(--transition);
    font-family: inherit;
}

html[dir="rtl"] .form-input {
    padding: 0.9rem 1.25rem 0.9rem 3rem;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-light);
    background: rgba(147, 51, 234, 0.06);
    box-shadow: 0 0 0 4px rgba(147, 51, 234, 0.15);
}

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

.toggle-password {
    position: absolute;
    left: 1rem;
    right: auto;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.1rem;
    cursor: pointer;
    padding: 0.3rem;
    transition: color 0.2s ease;
}

html[dir="rtl"] .toggle-password {
    left: auto;
    right: 1rem;
}

.toggle-password:hover {
    color: var(--primary-light);
}

.field-validation {
    display: block;
    margin-top: 0.4rem;
    font-size: 0.85rem;
    color: #ef4444;
    font-weight: 500;
}

.validation-summary {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: var(--radius-medium);
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
    color: #fca5a5;
    font-weight: 500;
}

    .validation-summary ul {
        margin: 0;
        padding-right: 1.25rem;
    }

.form-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.75rem;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.remember-checkbox {
    width: 1.1rem;
    height: 1.1rem;
    accent-color: var(--primary);
    cursor: pointer;
}

.remember-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
    cursor: pointer;
}

.forgot-link {
    font-size: 0.9rem;
    color: var(--primary-light);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

    .forgot-link:hover {
        color: var(--primary);
    }

.login-btn {
    width: 100%;
    padding: 1rem;
    border: none;
    border-radius: var(--radius-medium);
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    font-size: 1.05rem;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    transition: var(--transition);
    box-shadow: var(--shadow-soft);
}

    .login-btn:hover {
        transform: translateY(-3px);
        box-shadow: var(--shadow-medium);
    }

    .login-btn i {
        font-size: 1.2rem;
    }

.login-footer {
    text-align: center;
    margin-top: 2rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
}
.dropdown-item:hover {
    background-color:dodgerblue !important;
}
    .register-link,
    .login-link {
        color: var(--primary-light);
        font-weight: 700;
        text-decoration: none;
        transition: color 0.2s ease;
    }

        .register-link:hover,
        .login-link:hover {
            color: var(--primary);
        }
    /* ══════════════════════════════════════════════════════════════
   9. RESPONSIVE DESIGN SYSTEM
   ══════════════════════════════════════════════════════════════ */
    /* ─── Tablets & Small Desktops (≤ 991px) ─── */
    @media (max-width: 991px) {
        .site-header {
            padding: 0.9rem 0;
        }

        .nav-links {
            display: none !important;
        }

        .btn-start {
            font-size: 0.85rem;
            padding: 10px 18px;
        }

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

        .hero-stats {
            flex-direction: column;
            gap: 1.5rem;
        }

        .stat-divider {
            width: 100%;
            height: 1px;
        }

        .login-container {
            grid-template-columns: 1fr;
            max-width: 500px;
        }

        .login-illustration {
            padding: 2.5rem;
        }

        .login-form-container {
            padding: 2.5rem 2rem;
        }

        .login-title {
            font-size: 1.8rem;
        }
    }
    /* ─── Large Phones & Portrait Tablets (≤ 767px) ─── */
    @media (max-width: 767px) {
        .site-header {
            padding: 0.75rem 0;
        }

        .header-container {
            padding: 0 16px;
            gap: 0.75rem;
        }

        .navbar-brand-creative {
            font-size: 1.4rem;
        }

        .hero-section {
            padding: 4rem 0 3rem;
        }

        .hero-title {
            font-size: 2rem;
            line-height: 1.2;
        }

        .hero-buttons {
            flex-direction: column;
            gap: 10px;
        }

            .hero-buttons .btn-primary,
            .hero-buttons .btn-secondary,
            .btn-start {
                width: 100%;
                justify-content: center;
            }

        .container {
            padding-left: 16px;
            padding-right: 16px;
        }
    }
    /* ─── Small Phones (≤ 575px) ─── */
    @media (max-width: 575px) {
        .site-header {
            padding: 0.65rem 0;
        }

        .navbar-brand-creative {
            font-size: 1.2rem;
        }

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

        .btn-start {
            width: 100%;
            font-size: 0.8rem;
            padding: 0.7rem 1rem;
        }

        .lang-btn {
            padding: 0.4rem 0.9rem;
            font-size: 0.75rem;
        }

        .login-page {
            padding: 1rem;
        }

        .login-form-container {
            padding: 2rem 1.25rem;
        }

        .login-title {
            font-size: 1.5rem;
        }

        .hero-stats {
            padding: 1.25rem;
        }

        .stat-number {
            font-size: 2rem;
        }
    }
    /* ─── Extra Small Devices (< 375px) ─── */
    @media (max-width: 374px) {
        .hero-title {
            font-size: 1.5rem;
        }

        .header-container {
            gap: 6px;
        }

        .btn-start {
            padding: 6px 10px;
            font-size: 0.75rem;
        }
    }
    /* ─── Touch Device: Disable Hover Transforms ─── */
    @media (hover: none) and (pointer: coarse) {
        .btn-start:hover,
        .btn-primary:hover,
        .btn-secondary:hover,
        .social-btn:hover,
        .login-btn:hover {
            transform: none !important;
        }
    }
    /* ─── Landscape Phone Fix ─── */
    @media (max-width: 767px) and (orientation: landscape) {
        .hero-section {
            padding: 3rem 0 2rem;
        }

        .hero-title {
            font-size: 1.75rem;
        }
    }
    /* ─── Safe Area Insets (Notched Phones) ─── */
    @supports (padding: env(safe-area-inset-left)) {
        .site-header .container,
        .site-header .header-container {
            padding-left: max(16px, env(safe-area-inset-left));
            padding-right: max(16px, env(safe-area-inset-right));
        }

        body {
            padding-bottom: env(safe-area-inset-bottom);
        }
    }
    /* ─── RTL Specific Adjustments ─── */
    html[dir="rtl"] .nav-link-item::after {
        right: auto;
        left: 0;
    }

    html[dir="rtl"] .nav-link-item:hover::after {
        width: 100%;
    }

    html[dir="rtl"] .hero-buttons .btn-primary i,
    html[dir="rtl"] .hero-buttons .btn-secondary i,
    html[dir="rtl"] .btn-start i {
        transform: rotate(180deg);
    }

    html[dir="rtl"] .divider::before {
        margin-left: 0;
        margin-right: 1rem;
    }

    html[dir="rtl"] .divider::after {
        margin-right: 0;
        margin-left: 1rem;
    }
/* ══════════════════════════════════════════════════════════════
                   VISION PAGE SPECIFIC STYLES
                ══════════════════════════════════════════════════════════════ */

/* Vision Hero Section */
.vision-hero-section {
    position: relative;
    padding: 6rem 0 4rem;
    overflow: hidden;
    background: radial-gradient(circle at 15% 10%, rgba(37, 99, 235, 0.12), transparent 55%), radial-gradient(circle at 85% 90%, rgba(8, 145, 178, 0.1), transparent 55%), var(--bg-main);
}

.vision-hero-title {
    font-size: clamp(2.5rem, 4.5vw, 3.75rem);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -0.04em;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.vision-hero-desc {
    font-size: 1.15rem;
    color: var(--text-secondary);
    line-height: 1.9;
    margin-bottom: 2.5rem;
}

/* Orbital Visual */
.vision-hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 400px;
}

.vision-orbital {
    position: relative;
    width: 350px;
    height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.orbit-ring {
    position: absolute;
    border-radius: 50%;
    border: 1px dashed rgba(147, 51, 234, 0.3);
    animation: orbit-spin 20s linear infinite;
}

.ring-1 {
    width: 100%;
    height: 100%;
    border-color: rgba(147, 51, 234, 0.25);
}

.ring-2 {
    width: 70%;
    height: 70%;
    border-color: rgba(99, 102, 241, 0.3);
    animation-duration: 15s;
    animation-direction: reverse;
}

.ring-3 {
    width: 40%;
    height: 40%;
    border-color: rgba(6, 182, 212, 0.35);
    animation-duration: 10s;
}

@keyframes orbit-spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.orbit-center {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: white;
    box-shadow: 0 0 40px rgba(147, 51, 234, 0.5);
    z-index: 2;
    animation: pulse-glow 3s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 40px rgba(147, 51, 234, 0.5);
    }

    50% {
        box-shadow: 0 0 60px rgba(147, 51, 234, 0.8);
    }
}

.orbit-icon {
    position: absolute;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: white;
    z-index: 2;
    box-shadow: var(--shadow-soft);
}

.orbit-icon-1 {
    top: 15%;
    left: 20%;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    animation: float-orb 4s ease-in-out infinite;
}

.orbit-icon-2 {
    top: 10%;
    right: 15%;
    background: linear-gradient(135deg, #06b6d4, #0891b2);
    animation: float-orb 4s ease-in-out infinite 1s;
}

.orbit-icon-3 {
    bottom: 15%;
    left: 10%;
    background: linear-gradient(135deg, #9333ea, #7e22ce);
    animation: float-orb 4s ease-in-out infinite 2s;
}

.orbit-icon-4 {
    bottom: 10%;
    right: 20%;
    background: linear-gradient(135deg, #10b981, #059669);
    animation: float-orb 4s ease-in-out infinite 3s;
}

@keyframes float-orb {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* Vision Pillars Section */
.vision-pillars-section {
    padding: 6rem 0;
    background: transparent;
}

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

@media (max-width: 991px) {
    .vision-pillars-grid {
        grid-template-columns: 1fr;
    }
}

.vision-pillar-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-large);
    padding: 2.5rem;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

    .vision-pillar-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 3px;
        background: linear-gradient(90deg, transparent, var(--primary), transparent);
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    .vision-pillar-card:hover {
        transform: translateY(-8px);
        border-color: var(--border-glow);
        box-shadow: var(--shadow-large);
    }

        .vision-pillar-card:hover::before {
            opacity: 1;
        }

.vision-pillar-icon {
    width: 70px;
    height: 70px;
    border-radius: var(--radius-medium);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-soft);
}

.pillar-housing {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: #fff;
}

.pillar-community {
    background: linear-gradient(135deg, #06b6d4, #0891b2);
    color: #fff;
}

.pillar-ai {
    background: linear-gradient(135deg, #9333ea, #7e22ce);
    color: #fff;
}

.pillar-market {
    background: linear-gradient(135deg, #10b981, #059669);
    color: #fff;
}

.vision-pillar-title {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.vision-pillar-desc {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.vision-pillar-stats {
    display: flex;
    gap: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-subtle);
}

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

    .vp-stat strong {
        font-size: 1.3rem;
        font-weight: 900;
        background: linear-gradient(135deg, var(--primary), var(--secondary));
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }

    .vp-stat span {
        font-size: 0.8rem;
        color: var(--text-muted);
        font-weight: 600;
    }

/* Vision Timeline Section */
.vision-timeline-section {
    padding: 6rem 0;
    background: radial-gradient(circle at 50% 50%, rgba(147, 51, 234, 0.05), transparent 70%);
}

.vision-timeline {
    max-width: 800px;
    margin: 0 auto;
}

.timeline-row {
    display: flex;
    gap: 1.5rem;
    position: relative;
    padding-bottom: 3rem;
}

    .timeline-row:last-child {
        padding-bottom: 0;
    }

.timeline-marker {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
}

.timeline-dot {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    flex-shrink: 0;
    border: 3px solid var(--bg-main);
    box-shadow: 0 0 0 3px var(--border-subtle);
}

.dot-completed {
    background: #10b981;
}

.dot-active {
    background: #f59e0b;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.3), 0 0 20px rgba(245, 158, 11, 0.5);
    animation: pulse-dot-ring 2s ease-in-out infinite;
}

@keyframes pulse-dot-ring {
    0%, 100% {
        box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.3), 0 0 20px rgba(245, 158, 11, 0.5);
    }

    50% {
        box-shadow: 0 0 0 6px rgba(245, 158, 11, 0.2), 0 0 30px rgba(245, 158, 11, 0.7);
    }
}

.dot-future {
    background: #64748b;
}

.timeline-line {
    flex: 1;
    width: 2px;
    background: linear-gradient(180deg, var(--border-subtle), transparent);
    margin-top: 8px;
}

.timeline-row:last-child .timeline-line {
    display: none;
}

.timeline-content {
    flex: 1;
    padding-bottom: 1rem;
}

.timeline-phase {
    display: inline-block;
    padding: 0.4rem 1rem;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-subtle);
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

.timeline-phase-active {
    background: rgba(245, 158, 11, 0.1);
    border-color: rgba(245, 158, 11, 0.3);
    color: #fbbf24;
}

.timeline-title {
    font-size: 1.35rem;
    font-weight: 900;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.timeline-desc {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

/* Vision CTA Section */
.vision-cta-section {
    padding: 6rem 0;
}

.vision-cta-card {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
    padding: 4rem 2.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border-glow);
    border-radius: var(--radius-large);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-large);
}

    .vision-cta-card::before {
        content: '';
        position: absolute;
        inset: -2px;
        background: linear-gradient(135deg, var(--primary), var(--secondary), var(--accent));
        border-radius: inherit;
        z-index: -1;
        opacity: 0.4;
        filter: blur(20px);
    }

.vision-cta-icon {
    width: 90px;
    height: 90px;
    border-radius: var(--radius-medium);
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: white;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-medium);
}

.vision-cta-title {
    font-size: 2.25rem;
    font-weight: 900;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #fff, #c084fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.vision-cta-desc {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.9;
    margin-bottom: 2rem;
}

/* RTL Adjustments */
html[dir="rtl"] .timeline-row {
    flex-direction: row-reverse;
}

html[dir="rtl"] .timeline-line {
    margin-left: auto;
    margin-right: 8px;
}

/* Responsive */
@media (max-width: 767px) {
    .vision-hero-section {
        padding: 4rem 0 3rem;
    }

    .vision-orbital {
        width: 280px;
        height: 280px;
    }

    .orbit-center {
        width: 60px;
        height: 60px;
        font-size: 1.8rem;
    }

    .orbit-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .vision-pillar-card {
        padding: 1.75rem;
    }

    .vision-pillar-stats {
        gap: 1.25rem;
        flex-wrap: wrap;
    }

    .vision-cta-card {
        padding: 2.5rem 1.5rem;
    }

    .vision-cta-title {
        font-size: 1.75rem;
    }

    .timeline-title {
        font-size: 1.15rem;
    }
}

@media (max-width: 480px) {
    .vision-pillar-stats {
        flex-direction: column;
        gap: 0.75rem;
    }

    .timeline-row {
        gap: 1rem;
    }

    .timeline-dot {
        width: 16px;
        height: 16px;
    }
}