/* ========================================================
   TWAL ACADEMY · EID GIFT EXPERIENCE
   Premium Editorial · Aurora · Glass Morphism
   v3.1 - Fixed & Mobile Optimized
   ======================================================== */

@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans+Arabic:wght@100;200;300;400;500;600;700&family=IBM+Plex+Sans:wght@300;400;500;600;700&family=IBM+Plex+Mono:wght@300;400;500;600&display=swap');

:root {
    /* === Color System === */
    --pink: #b91c70;
    --pink-2: #d63384;
    --pink-deep: #8e1456;
    --pink-soft: #fdf2f6;
    --pink-glass: rgba(185, 28, 112, 0.08);
    
    --navy: #1a2a5c;
    --navy-2: #2a3d7c;
    --navy-deep: #0f1a3d;
    --navy-soft: #f5f6fa;
    --navy-glass: rgba(26, 42, 92, 0.08);
    
    /* Aurora colors */
    --aurora-1: #b91c70;
    --aurora-2: #1a2a5c;
    --aurora-3: #d63384;
    --aurora-4: #f5b7d4;
    
    --bg: #ffffff;
    --bg-cream: #fdfcfa;
    --ink: #0a0a0a;
    --line: #e8e8e8;
    --line-2: #f0f0ee;
    --muted: #6b6b6b;
    --muted-2: #a0a0a0;
    
    /* === Type === */
    --font-ar: 'IBM Plex Sans Arabic', sans-serif;
    --font-en: 'IBM Plex Sans', sans-serif;
    --font-mono: 'IBM Plex Mono', monospace;
    
    /* === Dimensions === */
    --nav-h: 76px;
    --max-w: 1280px;
    --content-w: 1080px;
    
    /* === Shadows === */
    --sh-sm: 0 1px 2px rgba(26, 42, 92, 0.04);
    --sh-md: 0 4px 12px rgba(26, 42, 92, 0.06), 0 1px 2px rgba(26, 42, 92, 0.04);
    --sh-lg: 0 24px 48px -12px rgba(26, 42, 92, 0.12), 0 8px 16px -8px rgba(26, 42, 92, 0.08);
    --sh-xl: 0 32px 64px -16px rgba(26, 42, 92, 0.15), 0 16px 32px -16px rgba(26, 42, 92, 0.1);
    --sh-glow: 0 0 80px rgba(185, 28, 112, 0.15);
    --sh-glow-navy: 0 0 80px rgba(26, 42, 92, 0.15);
    
    /* === Easing === */
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

html, body {
    font-family: var(--font-ar);
    background: var(--bg);
    color: var(--ink);
    direction: rtl;
    font-weight: 400;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    min-height: 100vh;
}

/* ========================================================
   AURORA BACKGROUND - الخلفية المتحركة الفاخرة
   ======================================================== */
.bg-pattern {
    position: fixed;
    inset: 0;
    z-index: -3;
    background: var(--bg);
    overflow: hidden;
}

.bg-pattern::before {
    content: '';
    position: absolute;
    inset: -50%;
    background:
        radial-gradient(ellipse 800px 600px at 20% 20%, rgba(185, 28, 112, 0.08), transparent 60%),
        radial-gradient(ellipse 700px 500px at 80% 60%, rgba(26, 42, 92, 0.07), transparent 60%),
        radial-gradient(ellipse 600px 800px at 60% 90%, rgba(214, 51, 132, 0.05), transparent 60%);
    animation: aurora 24s ease-in-out infinite;
}

.bg-pattern::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.4'/%3E%3C/svg%3E");
    opacity: 0.025;
    pointer-events: none;
}

@keyframes aurora {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(-3%, 2%) rotate(2deg); }
    66% { transform: translate(2%, -3%) rotate(-1deg); }
}

/* شبكة دقيقة جداً */
.bg-stars {
    position: fixed;
    inset: 0;
    z-index: -2;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(26, 42, 92, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(26, 42, 92, 0.025) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 90%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 90%);
}

/* Spotlight follow mouse */
.spotlight {
    position: fixed;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(185, 28, 112, 0.06), transparent 70%);
    pointer-events: none;
    z-index: -1;
    transform: translate(-50%, -50%);
    transition: opacity 0.3s;
    will-change: transform;
}

/* ========================================================
   NAVBAR
   ======================================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-h);
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: saturate(180%) blur(24px);
    -webkit-backdrop-filter: saturate(180%) blur(24px);
    border-bottom: 1px solid rgba(232, 232, 232, 0.6);
    z-index: 100;
    transition: all 0.4s var(--ease-out);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.85);
    box-shadow: var(--sh-sm);
}

.navbar-inner {
    height: 100%;
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    color: var(--navy);
    transition: opacity 0.2s;
    min-width: 0;
}

.nav-logo:hover { opacity: 0.75; }

.nav-logo img {
    height: 44px;
    width: auto;
    object-fit: contain;
    flex-shrink: 0;
}

.nav-logo-text {
    display: flex;
    flex-direction: column;
    gap: 1px;
    border-right: 1px solid var(--line);
    padding-right: 14px;
    min-width: 0;
}

.nav-logo-text .nl-1 {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    letter-spacing: 0.25em;
    color: var(--pink);
    text-transform: uppercase;
    font-weight: 500;
}

.nav-logo-text .nl-2 {
    font-family: var(--font-ar);
    font-size: 0.9rem;
    color: var(--navy);
    font-weight: 600;
    white-space: nowrap;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-shrink: 0;
}

.nav-link {
    color: var(--navy);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s;
    position: relative;
    white-space: nowrap;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    right: 0;
    width: 0;
    height: 1.5px;
    background: var(--pink);
    transition: width 0.3s var(--ease-out);
}

.nav-link:hover { color: var(--pink); }
.nav-link:hover::after { width: 100%; }

.nav-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--ink);
    color: white;
    padding: 8px 14px;
    border-radius: 100px;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    white-space: nowrap;
}

.nav-badge::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--pink);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--pink);
    animation: nav-pulse 2s ease-in-out infinite;
}

@keyframes nav-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.7); }
}

/* ========================================================
   PAGE LAYOUT
   ======================================================== */
.page-wrap {
    min-height: 100vh;
    padding-top: var(--nav-h);
    position: relative;
}

.container {
    width: 100%;
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 40px;
}

/* ========================================================
   SCREENS - BASE  (✅ FIXED)
   ======================================================== */
/* الأساس: كل الشاشات مخفية */
.screen {
    width: 100%;
    display: none;
    padding: 80px 0 60px;
    min-height: calc(100vh - var(--nav-h));
}

/* الشاشة النشطة - block افتراضياً */
.screen.active {
    display: block;
    animation: screenIn 0.6s var(--ease-out);
}

/* شاشات الأسئلة والفورم - flex لما تكون نشطة */
#screen-q1.active,
#screen-q2.active,
#screen-q3.active,
#screen-form.active {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

@keyframes screenIn {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================================
   WELCOME SCREEN - HERO ASYMMETRIC
   ======================================================== */
#screen-welcome {
    padding-top: 40px;
}

.welcome-content {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 80px;
    align-items: center;
    min-height: calc(100vh - var(--nav-h) - 100px);
    position: relative;
}

/* Decorative number in background */
.lantern-decoration {
    position: absolute;
    top: -20px;
    left: 0;
    font-family: var(--font-mono);
    font-size: 12rem;
    font-weight: 200;
    color: transparent;
    -webkit-text-stroke: 1px var(--line);
    line-height: 1;
    z-index: -1;
    user-select: none;
    pointer-events: none;
}

.lantern { display: none; }

.lantern-decoration::before {
    content: '2026';
    display: block;
    letter-spacing: -0.05em;
}

.welcome-left {
    position: relative;
    z-index: 1;
}

.welcome-right {
    position: relative;
    aspect-ratio: 4 / 5;
    min-height: 480px;
}

/* Eyebrow label */
.moon-icon {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 32px;
    padding: 8px 18px;
    background: var(--pink-soft);
    border: 1px solid var(--pink-glass);
    border-radius: 100px;
    transition: all 0.3s;
}

.moon-icon::before {
    content: 'هدية مخصصة بالذكاء الاصطناعي';
    font-family: var(--font-ar);
    font-weight: 500;
    font-size: 12px;
    color: var(--pink);
    letter-spacing: 0.05em;
}

.moon-icon::after {
    content: '✦';
    color: var(--pink);
    font-size: 12px;
}

.title {
    margin-bottom: 28px;
    line-height: 1;
    font-weight: 600;
}

.title-line-1 {
    display: block;
    font-size: clamp(2.5rem, 7vw, 6rem);
    font-weight: 700;
    color: var(--navy);
    letter-spacing: -0.04em;
    line-height: 0.95;
    background: linear-gradient(135deg, var(--navy) 0%, var(--pink) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.title-line-2 {
    display: block;
    font-size: clamp(1rem, 1.6vw, 1.15rem);
    color: var(--muted);
    font-weight: 400;
    margin-top: 24px;
    line-height: 1.5;
    max-width: 440px;
}

.subtitle {
    font-size: clamp(0.95rem, 1.4vw, 1.05rem);
    line-height: 1.85;
    color: var(--ink);
    margin-bottom: 48px;
    max-width: 480px;
    font-weight: 400;
}

.subtitle strong {
    color: var(--navy);
    font-weight: 600;
}

.highlight {
    color: var(--pink);
    font-weight: 700;
    font-family: var(--font-mono);
    font-size: 1.1em;
    letter-spacing: -0.02em;
    position: relative;
    display: inline-block;
}

.highlight::after {
    content: '';
    position: absolute;
    right: 0;
    bottom: 2px;
    width: 100%;
    height: 6px;
    background: var(--pink-soft);
    z-index: -1;
}

/* Stats card */
.stats-bar {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    margin: 0 0 40px 0;
    padding: 0;
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--sh-md);
    max-width: 520px;
}

.stat {
    padding: 24px 28px;
    border-left: 1px solid var(--line);
    position: relative;
    transition: background 0.3s;
}

.stat:last-child { border-left: none; }
.stat:hover { background: var(--pink-soft); }

.stat::before {
    content: '';
    position: absolute;
    top: 16px;
    right: 16px;
    width: 6px;
    height: 6px;
    background: var(--pink);
    border-radius: 50%;
    box-shadow: 0 0 12px var(--pink);
}

.stat-num {
    font-family: var(--font-mono);
    font-size: 2.5rem;
    font-weight: 500;
    color: var(--navy);
    letter-spacing: -0.04em;
    line-height: 1;
    display: block;
    margin-bottom: 6px;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--muted);
    font-weight: 400;
    font-family: var(--font-mono);
}

.stat-divider { display: none; }

.countdown-note {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-top: 24px;
    padding: 12px 20px;
    background: var(--navy);
    color: white;
    border-radius: 100px;
    font-size: 0.85rem;
    font-family: var(--font-mono);
    font-weight: 400;
}

.countdown-note::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--pink);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--pink);
    animation: nav-pulse 2s ease-in-out infinite;
}

#countdown {
    color: white;
    font-weight: 600;
}

/* ========================================================
   WELCOME RIGHT - Visual Showcase (مع الصور الحقيقية)
   ======================================================== */
.welcome-right {
    display: flex;
    align-items: center;
    justify-content: center;
}

.welcome-visual {
    position: relative;
    width: 100%;
    height: 100%;
    max-width: 520px;
    margin: 0 auto;
    aspect-ratio: 4 / 5;
}

.visual-card {
    position: absolute;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--sh-xl);
    transition: transform 0.6s var(--ease-out);
}

.visual-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* === البطاقة الرئيسية === */
.visual-card-main {
    top: 8%;
    right: 0;
    width: 82%;
    height: 75%;
    z-index: 2;
    background: var(--navy);
    transform: rotate(-2deg);
    border-radius: 24px;
}

/* Overlay فوق الصورة الرئيسية */
.visual-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(26, 42, 92, 0.45) 0%,
        rgba(15, 26, 61, 0.2) 50%,
        rgba(185, 28, 112, 0.55) 100%
    );
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 32px 30px;
    color: white;
}

.visual-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 14px;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 100px;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    width: fit-content;
    color: white;
    font-weight: 500;
}

.visual-tag::before {
    content: '';
    width: 5px;
    height: 5px;
    background: var(--pink-2);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--pink-2);
}

.visual-overlay-content {
    direction: rtl;
}

.visual-big-num {
    font-family: var(--font-mono);
    font-size: clamp(3.5rem, 7vw, 5.5rem);
    font-weight: 200;
    letter-spacing: -0.05em;
    line-height: 0.9;
    margin-bottom: 8px;
    color: white;
    text-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
}

.visual-big-num .percent {
    font-size: 0.5em;
    opacity: 0.7;
    vertical-align: top;
}

.visual-card-label {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 500;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}

/* === البطاقات الجانبية === */
.visual-card-side-1 {
    top: 0;
    right: -4%;
    width: 32%;
    height: 26%;
    z-index: 3;
    transform: rotate(-12deg);
    border: 4px solid white;
    border-radius: 16px;
}

.visual-card-side-2 {
    bottom: 0;
    left: -2%;
    width: 38%;
    height: 28%;
    z-index: 3;
    transform: rotate(6deg);
    border: 4px solid white;
    border-radius: 16px;
}

.visual-side-label {
    position: absolute;
    bottom: 0;
    right: 0;
    left: 0;
    padding: 14px 16px 12px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.75), transparent);
    display: flex;
    flex-direction: column;
    gap: 2px;
    direction: rtl;
}

.vs-title {
    color: white;
    font-weight: 600;
    font-size: 0.85rem;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.vs-desc {
    color: rgba(255, 255, 255, 0.8);
    font-family: var(--font-mono);
    font-size: 0.65rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

/* Hover effects */
.visual-card-main:hover {
    transform: rotate(-1deg) scale(1.02);
}

.visual-card-side-1:hover {
    transform: rotate(-6deg) scale(1.05);
    z-index: 5;
}

.visual-card-side-2:hover {
    transform: rotate(4deg) scale(1.05);
    z-index: 5;
}

/* Marquee of certifications */
.cert-marquee {
    margin: 60px 0 40px;
    padding: 24px 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    overflow: hidden;
    position: relative;
    width: 100vw;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

.cert-marquee::before,
.cert-marquee::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 120px;
    z-index: 2;
    pointer-events: none;
}

.cert-marquee::before {
    right: 0;
    background: linear-gradient(to left, var(--bg), transparent);
}

.cert-marquee::after {
    left: 0;
    background: linear-gradient(to right, var(--bg), transparent);
}

.cert-track {
    display: flex;
    gap: 80px;
    animation: marquee 30s linear infinite;
    width: max-content;
}

.cert-item {
    font-family: var(--font-ar);
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--navy);
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 12px;
    opacity: 0.7;
}

.cert-item::before {
    content: '✦';
    color: var(--pink);
    font-size: 0.8rem;
}

@keyframes marquee {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* ========================================================
   BUTTONS
   ======================================================== */
.btn-primary {
    background: var(--ink);
    color: white;
    border: none;
    padding: 18px 36px;
    border-radius: 100px;
    font-family: var(--font-ar);
    font-weight: 500;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s var(--ease-out);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    letter-spacing: 0.005em;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    -webkit-tap-highlight-color: transparent;
}

.btn-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--pink) 0%, var(--pink-deep) 100%);
    transform: translateY(100%);
    transition: transform 0.4s var(--ease-out);
    z-index: 0;
}

.btn-primary:hover::before { transform: translateY(0); }
.btn-primary > * { position: relative; z-index: 1; }

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(185, 28, 112, 0.3);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-primary .btn-arrow {
    width: 18px;
    height: 18px;
    transition: transform 0.3s var(--ease-out);
}

.btn-primary:hover .btn-arrow { transform: translateX(-6px); }

.btn-large {
    padding: 22px 44px;
    font-size: 1.05rem;
}

.btn-secondary {
    background: transparent;
    color: var(--navy);
    border: 1.5px solid var(--line);
    padding: 16px 32px;
    border-radius: 100px;
    font-family: var(--font-ar);
    font-weight: 500;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.25s var(--ease-out);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
}

.btn-secondary:hover {
    border-color: var(--navy);
    background: var(--navy);
    color: white;
    transform: translateY(-1px);
}

/* ========================================================
   QUESTION SCREENS
   ======================================================== */
.q-wrapper {
    max-width: 760px;
    margin: 0 auto;
    width: 100%;
}

.progress-bar {
    position: relative;
    height: 2px;
    background: var(--line);
    margin-bottom: 80px;
    max-width: 760px;
    margin-right: auto;
    margin-left: auto;
    width: 100%;
    overflow: visible;
}

.progress-fill {
    height: 100%;
    background: var(--pink);
    transition: width 0.6s var(--ease-out);
    position: relative;
}

.progress-fill::after {
    content: '';
    position: absolute;
    left: -2px;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 12px;
    background: var(--pink);
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(185, 28, 112, 0.15);
}

.progress-text {
    position: absolute;
    top: -32px;
    right: 0;
    left: auto;
    transform: none;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    color: var(--muted);
    font-weight: 500;
    text-transform: uppercase;
}

.question {
    font-family: var(--font-ar);
    font-size: clamp(1.75rem, 5vw, 3.25rem);
    color: var(--navy);
    text-align: right;
    margin-bottom: 16px;
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -0.03em;
    max-width: 760px;
    margin-right: auto;
    margin-left: auto;
}

.question-hint {
    text-align: right;
    color: var(--muted);
    font-size: 1rem;
    margin-bottom: 56px;
    font-weight: 400;
    max-width: 760px;
    margin-right: auto;
    margin-left: auto;
}

.options-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    max-width: 760px;
    margin: 0 auto;
}

.options-3 {
    grid-template-columns: repeat(3, 1fr);
}

.option-card {
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 32px 28px;
    cursor: pointer;
    transition: all 0.35s var(--ease-out);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    text-align: right;
    color: var(--ink);
    font-family: var(--font-ar);
    position: relative;
    overflow: hidden;
    box-shadow: var(--sh-sm);
    -webkit-tap-highlight-color: transparent;
}

.option-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--pink-soft), transparent);
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 0;
}

.option-card::after {
    content: '';
    position: absolute;
    top: 24px;
    left: 24px;
    width: 24px;
    height: 24px;
    border: 1.5px solid var(--line);
    border-radius: 50%;
    background: white;
    transition: all 0.3s var(--ease-out);
    z-index: 1;
}

.option-card > * { position: relative; z-index: 1; }

.option-card:hover {
    border-color: var(--navy);
    transform: translateY(-4px);
    box-shadow: var(--sh-lg);
}

.option-card:hover::before { opacity: 1; }
.option-card:hover::after { border-color: var(--pink); }

.option-card.selected {
    background: var(--navy);
    border-color: var(--navy);
    color: white;
    transform: translateY(-4px);
    box-shadow: var(--sh-lg), var(--sh-glow-navy);
}

.option-card.selected::before {
    opacity: 0;
}

.option-card.selected::after {
    background: var(--pink);
    border-color: var(--pink);
    box-shadow: inset 0 0 0 4px var(--navy);
}

.option-card.selected .opt-text { color: white; }
.option-card.selected .opt-desc { color: rgba(255, 255, 255, 0.6); }

.opt-icon {
    font-size: 1.75rem;
    line-height: 1;
    opacity: 0.9;
}

.opt-text {
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--navy);
    line-height: 1.3;
    transition: color 0.2s;
}

.option-card:hover .opt-text { color: var(--pink); }
.option-card.selected:hover .opt-text { color: white; }

.opt-desc {
    font-size: 0.82rem;
    color: var(--muted);
    font-weight: 400;
    font-family: var(--font-mono);
    letter-spacing: 0.02em;
}

.option-level { padding: 40px 28px; }
.option-level .opt-icon { font-size: 2rem; }

/* ========================================================
   FORM SCREEN
   ======================================================== */
.form-content {
    max-width: 560px;
    margin: 0 auto;
    width: 100%;
}

.form-icon { display: none; }

.form-title {
    font-family: var(--font-ar);
    text-align: right;
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    color: var(--navy);
    margin-bottom: 12px;
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -0.03em;
}

.form-subtitle {
    text-align: right;
    color: var(--muted);
    margin-bottom: 56px;
    font-size: 1rem;
    line-height: 1.7;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--line);
}

.form-fields {
    display: flex;
    flex-direction: column;
    gap: 36px;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: relative;
}

.field label {
    font-weight: 500;
    color: var(--navy);
    font-size: 0.75rem;
    font-family: var(--font-mono);
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.required { color: var(--pink); font-weight: 600; }

.optional {
    color: var(--muted-2);
    font-weight: 400;
    font-size: 0.7rem;
    text-transform: none;
    letter-spacing: 0;
}

.field input {
    background: transparent;
    border: none;
    border-bottom: 1.5px solid var(--line);
    border-radius: 0;
    padding: 14px 0;
    font-family: var(--font-ar);
    font-size: 1.05rem;
    color: var(--ink);
    transition: all 0.3s var(--ease-out);
    direction: rtl;
    font-weight: 500;
    width: 100%;
    /* منع تكبير iOS auto-zoom */
    -webkit-appearance: none;
}

.field input::placeholder {
    color: var(--muted-2);
    font-weight: 400;
}

.field input:focus {
    outline: none;
    border-bottom-color: var(--pink);
}

.field input[type="tel"],
.field input[type="email"] {
    direction: ltr;
    text-align: right;
    font-family: var(--font-mono);
    font-size: 16px; /* مهم لمنع zoom في iOS */
}

.field small {
    color: var(--muted);
    font-size: 0.8rem;
    margin-top: 2px;
}

#submit-btn {
    width: 100%;
    margin-top: 24px;
    padding: 24px;
    font-size: 1.05rem;
}

.btn-loader {
    display: none;
    gap: 14px;
    align-items: center;
}

.spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.25);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.form-disclaimer {
    text-align: right;
    margin-top: 28px;
    color: var(--muted);
    font-size: 0.8rem;
    font-family: var(--font-mono);
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ========================================================
   RESULT SCREEN - PREMIUM PRIZE REVEAL
   ======================================================== */
#screen-result.active {
    display: block;
    padding-top: 60px;
}

.result-content {
    max-width: 960px;
    margin: 0 auto;
    position: relative;
}

.gift-box, .gift-bow { display: none; }

.result-greeting {
    font-family: var(--font-ar);
    font-size: clamp(1.5rem, 3vw, 2rem);
    color: var(--navy);
    margin-bottom: 48px;
    font-weight: 500;
    position: relative;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--line);
}

.result-greeting::before {
    content: '✦ مبارك عليك العيد';
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--pink);
    font-weight: 500;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    margin-bottom: 16px;
    display: block;
}

.result-greeting span {
    color: var(--pink);
    font-weight: 700;
}

/* === PRIZE CARD - MAIN SHOWCASE === */
.prize-card {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-deep) 100%);
    color: white;
    border-radius: 32px;
    padding: 64px 56px;
    margin-bottom: 40px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--sh-xl), var(--sh-glow-navy);
}

.prize-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -30%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(185, 28, 112, 0.4), transparent 50%);
    border-radius: 50%;
    filter: blur(40px);
    animation: prizeAurora 15s ease-in-out infinite;
}

.prize-card::after {
    content: '';
    position: absolute;
    bottom: -50%;
    left: -20%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(214, 51, 132, 0.3), transparent 50%);
    border-radius: 50%;
    filter: blur(40px);
    animation: prizeAurora 18s ease-in-out infinite reverse;
}

@keyframes prizeAurora {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(5%, 5%) scale(1.1); }
}

.prize-card > * { position: relative; z-index: 1; }

.prize-tier-badge {
    position: static;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: white;
    padding: 8px 18px;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 500;
    font-family: var(--font-mono);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 32px;
}

.prize-label {
    font-size: 0.8rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 12px;
    font-family: var(--font-mono);
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.prize-amount {
    font-family: var(--font-mono);
    font-size: clamp(5rem, 18vw, 12rem);
    font-weight: 200;
    line-height: 0.9;
    margin: 8px 0 24px 0;
    letter-spacing: -0.06em;
    color: white;
    display: flex;
    align-items: baseline;
    gap: 4px;
    background: linear-gradient(135deg, white 0%, rgba(255, 255, 255, 0.7) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.percent {
    font-size: 0.3em;
    vertical-align: top;
    opacity: 0.5;
    font-weight: 300;
    -webkit-text-fill-color: rgba(255, 255, 255, 0.5);
}

.prize-desc {
    font-size: 1.15rem;
    font-weight: 500;
    margin-top: 24px;
    color: rgba(255, 255, 255, 0.9);
    padding-top: 28px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    line-height: 1.5;
    max-width: 500px;
}

/* === AI RECOMMENDATION CARD === */
.ai-recommendation {
    background: white;
    border: 1px solid var(--line);
    border-radius: 24px;
    padding: 48px;
    margin-bottom: 40px;
    text-align: right;
    box-shadow: var(--sh-md);
    position: relative;
    overflow: hidden;
}

.ai-recommendation::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, var(--pink-soft), transparent 70%);
    border-radius: 50%;
    transform: translate(30%, -30%);
}

.ai-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--line);
    position: relative;
}

.ai-icon { width: 32px; height: 32px; font-size: 0; position: relative; flex-shrink: 0; }

.ai-icon::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--pink), var(--pink-deep));
    border-radius: 8px;
    transform: rotate(45deg);
}

.ai-icon::after {
    content: '◆';
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.85rem;
    z-index: 1;
}

.ai-label {
    color: var(--pink);
    font-weight: 500;
    font-size: 0.7rem;
    font-family: var(--font-mono);
    letter-spacing: 0.25em;
    text-transform: uppercase;
}

.ai-course-title {
    font-family: var(--font-ar);
    color: var(--navy);
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin-bottom: 16px;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.02em;
    position: relative;
}

.ai-message {
    color: var(--ink);
    line-height: 1.8;
    font-size: 1.05rem;
    font-weight: 400;
    position: relative;
}

/* === CODE SECTION === */
.code-section {
    background: var(--navy-soft);
    border-radius: 20px;
    padding: 36px 40px;
    margin-bottom: 40px;
    position: relative;
    border: 1px solid var(--line);
}

.code-label {
    color: var(--muted);
    margin-bottom: 18px;
    font-size: 0.7rem;
    font-family: var(--font-mono);
    letter-spacing: 0.25em;
    text-transform: uppercase;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.code-label::before {
    content: '';
    width: 4px;
    height: 4px;
    background: var(--pink);
    border-radius: 50%;
}

.code-box {
    background: white;
    border: 1.5px dashed var(--navy);
    border-radius: 12px;
    padding: 28px 32px;
    cursor: pointer;
    transition: all 0.3s var(--ease-out);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-mono);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--navy);
    letter-spacing: 0.08em;
    direction: ltr;
    position: relative;
    overflow: hidden;
    -webkit-tap-highlight-color: transparent;
}

.code-box::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--navy), var(--pink-deep));
    transform: translateY(100%);
    transition: transform 0.4s var(--ease-out);
    z-index: 0;
}

.code-box > * { position: relative; z-index: 1; }

.code-box:hover {
    border-style: solid;
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--sh-lg);
}

.code-box:hover::before { transform: translateY(0); }
.code-box:hover .copy-hint { background: white; color: var(--pink); }

.copy-hint {
    background: var(--pink);
    color: white;
    padding: 8px 16px;
    border-radius: 100px;
    font-size: 0.7rem;
    font-family: var(--font-ar);
    letter-spacing: 0;
    font-weight: 600;
    transition: all 0.3s;
    white-space: nowrap;
}

.code-expiry {
    margin-top: 18px;
    color: var(--muted);
    font-size: 0.85rem;
    font-family: var(--font-mono);
    display: flex;
    align-items: center;
    gap: 10px;
}

.code-expiry::before {
    content: '';
    width: 14px;
    height: 14px;
    border: 1.5px solid var(--pink);
    border-radius: 50%;
    border-top-color: transparent;
    border-right-color: transparent;
    display: inline-block;
    flex-shrink: 0;
}

/* === ACTIONS === */
.actions {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 12px;
    margin-bottom: 56px;
}

.actions .btn-primary,
.actions .btn-secondary { text-decoration: none; }

.actions .btn-primary {
    background: var(--pink);
}

.actions .btn-primary::before {
    background: linear-gradient(135deg, var(--navy), var(--navy-deep));
}

/* === EXTRA LINKS === */
.extras {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.extra-link {
    color: var(--navy);
    text-decoration: none;
    background: transparent;
    border-left: 1px solid var(--line);
    padding: 28px 24px;
    font-size: 1.05rem;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all 0.3s var(--ease-out);
    font-weight: 500;
    position: relative;
}

.extra-link:last-child { border-left: none; }

.extra-link::after {
    content: '→';
    margin-right: auto;
    color: var(--pink);
    transition: transform 0.3s var(--ease-out);
    font-family: var(--font-mono);
    font-size: 1.2rem;
    font-weight: 300;
}

.extra-link:hover {
    background: var(--pink-soft);
    padding-right: 32px;
}

.extra-link:hover::after {
    transform: translateX(-8px);
    color: var(--pink-deep);
}

.extra-link span:first-child {
    font-size: 1.25rem;
    width: 24px;
    text-align: center;
}

/* ========================================================
   CONFETTI
   ======================================================== */
.confetti-container {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 100;
}

.confetti {
    position: absolute;
    width: 8px;
    height: 8px;
    top: -20px;
    opacity: 1;
    animation: confetti-fall linear forwards;
    border-radius: 2px;
}

@keyframes confetti-fall {
    0% { transform: translateY(0) rotate(0); opacity: 1; }
    100% { transform: translateY(100vh) rotate(720deg); opacity: 0; }
}

/* ========================================================
   TOAST
   ======================================================== */
.toast {
    position: fixed;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%) translateY(120px);
    background: var(--ink);
    color: white;
    padding: 16px 32px;
    border-radius: 100px;
    font-weight: 500;
    font-size: 0.9rem;
    z-index: 1000;
    transition: transform 0.5s var(--ease-spring);
    box-shadow: var(--sh-xl);
    font-family: var(--font-ar);
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: calc(100vw - 40px);
    text-align: center;
}

.toast.show { transform: translateX(-50%) translateY(0); }

/* ========================================================
   FOOTER
   ======================================================== */
.page-footer {
    margin-top: 80px;
    padding: 60px 40px 40px;
    border-top: 1px solid var(--line);
    text-align: center;
    color: var(--muted);
    font-size: 0.85rem;
    font-family: var(--font-mono);
    width: 100%;
    max-width: var(--max-w);
    margin-left: auto;
    margin-right: auto;
    background: linear-gradient(to top, var(--bg-cream), transparent);
}

.page-footer a {
    color: var(--navy);
    text-decoration: none;
    margin: 0 12px;
    transition: color 0.2s;
}

.page-footer a:hover { color: var(--pink); }

.footer-divider {
    color: var(--muted-2);
    margin: 0 6px;
}

/* ========================================================
   SELECTION
   ======================================================== */
::selection { background: var(--pink); color: white; }
::-moz-selection { background: var(--pink); color: white; }

/* ========================================================
   COURSES CAROUSEL SECTION
   ======================================================== */
.courses-section {
    margin-top: 60px;
    padding: 40px 0 80px;
    position: relative;
}

.courses-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 48px;
    gap: 24px;
    flex-wrap: wrap;
}

.courses-title-group {
    text-align: right;
}

.courses-eyebrow {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.25em;
    color: var(--pink);
    text-transform: uppercase;
    font-weight: 500;
    margin-bottom: 12px;
}

.courses-eyebrow::before {
    content: '— ';
}

.courses-title {
    font-family: var(--font-ar);
    font-size: clamp(1.5rem, 3.5vw, 2.5rem);
    color: var(--navy);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.2;
}

.courses-controls {
    display: none;
}

.courses-carousel {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    padding: 16px 0 32px;
    overflow: hidden;
    direction: ltr;
}

.courses-track {
    display: flex;
    gap: 24px;
    width: max-content;
    will-change: transform;
    direction: ltr;
}

.courses-carousel:hover .courses-track {
    /* تم التحكم بالـ JS الآن */
}

.course-card {
    flex: 0 0 320px;
    background: white;
    border: 1px solid var(--line);
    border-radius: 20px;
    overflow: hidden;
    text-decoration: none;
    color: var(--ink);
    transition: transform 0.4s var(--ease-out), border-color 0.4s, box-shadow 0.4s;
    display: flex;
    flex-direction: column;
    box-shadow: var(--sh-sm);
    position: relative;
    direction: rtl;
}

.course-card:hover {
    transform: translateY(-6px);
    border-color: var(--navy);
    box-shadow: var(--sh-xl);
}

.course-card:hover .course-image img {
    transform: scale(1.08);
}

.course-card:hover .course-name {
    color: var(--pink);
}

.course-card:hover .course-price {
    background: var(--pink);
    color: white;
}

.course-image {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--navy-soft);
}

.course-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--ease-out);
    display: block;
}

.course-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 60%, rgba(0, 0, 0, 0.15));
    pointer-events: none;
}

.course-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    color: var(--navy);
    padding: 6px 12px;
    border-radius: 100px;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    z-index: 2;
    border: 1px solid rgba(26, 42, 92, 0.08);
}

.course-badge-hot {
    background: var(--pink);
    color: white;
    border-color: var(--pink-deep);
}

.course-body {
    padding: 22px 24px 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
}

.course-meta {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--muted);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-weight: 500;
}

.course-name {
    font-family: var(--font-ar);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--navy);
    line-height: 1.4;
    letter-spacing: -0.01em;
    transition: color 0.3s;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.94em;
}

.course-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid var(--line-2);
    gap: 12px;
}

.course-duration {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--muted);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
}

.course-duration svg {
    flex-shrink: 0;
    opacity: 0.7;
}

.course-price {
    background: var(--navy-soft);
    color: var(--navy);
    padding: 8px 14px;
    border-radius: 100px;
    font-weight: 700;
    font-size: 0.9rem;
    font-family: var(--font-ar);
    transition: all 0.3s;
    white-space: nowrap;
}

.courses-cta {
    text-align: center;
    margin-top: 24px;
}

/* ========================================================
   RESPONSIVE - TABLET
   ======================================================== */
@media (max-width: 1024px) {
    .welcome-content {
        grid-template-columns: 1fr;
        gap: 60px;
    }
    
    .welcome-right {
        max-width: 480px;
        margin: 0 auto;
        min-height: 420px;
    }
    
    .lantern-decoration { font-size: 9rem; }
    
    .ai-recommendation { padding: 40px 36px; }
}

/* ========================================================
   RESPONSIVE - MOBILE (محسّن بالكامل)
   ======================================================== */
@media (max-width: 768px) {
    :root { 
        --nav-h: 60px;
    }
    
    /* Navbar */
    .navbar-inner {
        padding: 0 16px;
        gap: 12px;
    }
    
    .nav-logo { gap: 10px; }
    .nav-logo img { height: 32px; }
    .nav-logo-text { display: none; }
    .nav-link { display: none; }
    
    .nav-actions { gap: 12px; }
    
    .nav-badge {
        padding: 5px 11px;
        font-size: 0.6rem;
        letter-spacing: 0.08em;
    }
    
    .nav-badge::before {
        width: 5px;
        height: 5px;
    }
    
    /* Container */
    .container { padding: 0 20px; }
    
    /* Screens */
    .screen {
        padding: 24px 0 40px;
        min-height: calc(100vh - var(--nav-h));
    }
    
    #screen-welcome { padding-top: 24px; }
    
    /* Welcome layout */
    .welcome-content {
        gap: 32px;
        min-height: auto;
    }
    
    /* الترتيب على الموبايل: المحتوى أولاً ثم الصور */
    .welcome-left {
        order: 1;
    }
    
    .welcome-right {
        order: 2;
        max-width: 100%;
        width: 100%;
        min-height: 360px;
        aspect-ratio: 5 / 6;
    }
    
    .welcome-visual {
        max-width: 360px;
    }
    
    /* تخفيف الرقم الديكوري */
    .lantern-decoration { 
        font-size: 5rem; 
        top: -8px;
        opacity: 0.6;
    }
    
    /* Badge العنوان الجانبي */
    .moon-icon { 
        margin-bottom: 20px; 
        padding: 6px 14px; 
    }
    .moon-icon::before { font-size: 11px; }
    
    /* العنوان الرئيسي */
    .title { margin-bottom: 20px; }
    
    .title-line-1 {
        font-size: clamp(2.25rem, 11vw, 3.5rem);
        line-height: 0.95;
    }
    
    .title-line-2 { 
        max-width: 100%; 
        margin-top: 16px;
        font-size: 0.95rem;
    }
    
    .subtitle { 
        margin-bottom: 32px; 
        font-size: 0.95rem;
        line-height: 1.75;
    }
    
    /* Stats */
    .stats-bar { 
        grid-template-columns: 1fr; 
        max-width: 100%; 
        margin-bottom: 28px;
    }
    
    .stat {
        border-left: none;
        border-bottom: 1px solid var(--line);
        padding: 20px 24px;
    }
    
    .stat:last-child { border-bottom: none; }
    .stat-num { font-size: 2rem; }
    
    /* الزر الكبير */
    .btn-large { 
        padding: 18px 28px; 
        font-size: 1rem;
        width: 100%;
        max-width: 100%;
    }
    
    .welcome-left .btn-primary {
        width: 100%;
    }
    
    /* Countdown note */
    .countdown-note {
        font-size: 0.78rem;
        padding: 10px 16px;
        margin-top: 18px;
    }
    
    /* البطاقات البصرية على الموبايل */
    .visual-overlay {
        padding: 20px 18px;
    }
    
    .visual-tag {
        padding: 5px 11px;
        font-size: 0.6rem;
        letter-spacing: 0.15em;
    }
    
    .visual-big-num {
        font-size: clamp(2.75rem, 14vw, 4.5rem);
    }
    
    .visual-card-label {
        font-size: 0.85rem;
    }
    
    .visual-card-side-1 {
        border-width: 3px;
    }
    
    .visual-card-side-2 {
        border-width: 3px;
    }
    
    .visual-side-label {
        padding: 10px 12px 8px;
    }
    
    .vs-title { font-size: 0.7rem; }
    .vs-desc { font-size: 0.55rem; }
    
    /* Cert marquee */
    .cert-marquee { 
        margin: 32px 0 16px; 
        padding: 18px 0;
    }
    .cert-marquee::before,
    .cert-marquee::after { width: 60px; }
    .cert-item { font-size: 0.9rem; }
    .cert-track { gap: 50px; animation-duration: 25s; }
    
    /* Courses */
    .courses-section {
        margin-top: 32px;
        padding: 24px 0 48px;
    }
    
    .courses-header {
        margin-bottom: 24px;
    }
    
    .courses-eyebrow {
        font-size: 0.65rem;
        margin-bottom: 8px;
    }
    
    .courses-carousel {
        padding: 12px 0 20px;
    }
    
    .courses-track {
        gap: 14px;
    }
    
    .course-card {
        flex: 0 0 260px;
    }
    
    /* Questions */
    .progress-bar { margin-bottom: 48px; }
    
    .question { 
        font-size: clamp(1.5rem, 6vw, 2.25rem); 
        margin-bottom: 12px;
    }
    
    .question-hint {
        font-size: 0.95rem;
        margin-bottom: 36px;
    }
    
    .options-grid { gap: 12px; }
    .options-3 { grid-template-columns: 1fr; }
    
    .option-card { 
        padding: 22px 20px;
        gap: 14px;
    }
    
    .option-card::after { 
        width: 18px; 
        height: 18px; 
        top: 18px; 
        left: 18px; 
    }
    
    .opt-icon { font-size: 1.4rem; }
    .opt-text { font-size: 0.98rem; }
    .opt-desc { font-size: 0.75rem; }
    
    .option-level { padding: 28px 20px; }
    
    /* Form */
    .form-title { font-size: 1.85rem; }
    .form-subtitle { 
        font-size: 0.92rem; 
        padding-bottom: 24px; 
        margin-bottom: 32px; 
    }
    .form-fields { gap: 28px; }
    
    .field input { font-size: 16px; padding: 12px 0; }
    
    #submit-btn {
        padding: 20px;
        font-size: 1rem;
    }
    
    /* Result */
    #screen-result.active { padding-top: 32px; }
    
    .result-greeting {
        font-size: 1.4rem;
        margin-bottom: 32px;
        padding-bottom: 20px;
    }
    
    .result-greeting::before {
        font-size: 0.7rem;
        margin-bottom: 12px;
    }
    
    .prize-card { 
        padding: 36px 24px; 
        border-radius: 24px; 
        margin-bottom: 24px;
    }
    
    .prize-tier-badge {
        padding: 6px 14px;
        font-size: 0.65rem;
        margin-bottom: 24px;
    }
    
    .prize-amount { 
        font-size: clamp(4.5rem, 22vw, 7rem); 
        margin: 4px 0 18px;
    }
    
    .prize-desc {
        font-size: 1rem;
        padding-top: 22px;
        margin-top: 18px;
    }
    
    .ai-recommendation { 
        padding: 28px 22px; 
        border-radius: 20px;
        margin-bottom: 24px;
    }
    
    .ai-header {
        margin-bottom: 18px;
        padding-bottom: 16px;
        gap: 12px;
    }
    
    .ai-icon { width: 28px; height: 28px; }
    
    .ai-label {
        font-size: 0.62rem;
        letter-spacing: 0.18em;
    }
    
    .ai-course-title { 
        font-size: 1.25rem; 
        margin-bottom: 12px;
    }
    
    .ai-message { 
        font-size: 0.95rem; 
        line-height: 1.75;
    }
    
    .code-section { 
        padding: 24px 20px; 
        border-radius: 16px;
        margin-bottom: 24px;
    }
    
    .code-label {
        font-size: 0.62rem;
        letter-spacing: 0.18em;
        margin-bottom: 14px;
    }
    
    .code-box { 
        padding: 18px 18px; 
        font-size: 1.1rem;
        letter-spacing: 0.05em;
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .copy-hint {
        padding: 6px 12px;
        font-size: 0.65rem;
    }
    
    .code-expiry {
        font-size: 0.78rem;
        margin-top: 14px;
    }
    
    /* Actions stack vertically */
    .actions { 
        grid-template-columns: 1fr; 
        margin-bottom: 36px;
        gap: 10px;
    }
    
    /* Extras */
    .extras { grid-template-columns: 1fr; }
    .extra-link { 
        border-left: none; 
        border-bottom: 1px solid var(--line); 
        padding: 22px 20px;
        font-size: 0.98rem;
    }
    .extra-link:last-child { border-bottom: none; }
    
    /* Footer */
    .page-footer { 
        padding: 40px 20px 30px; 
        margin-top: 48px;
        font-size: 0.78rem;
    }
    
    .page-footer a { margin: 0 8px; }
    
    /* Toast */
    .toast {
        bottom: 24px;
        padding: 14px 24px;
        font-size: 0.85rem;
    }
}

/* ========================================================
   RESPONSIVE - SMALL MOBILE (under 480px)
   ======================================================== */
@media (max-width: 480px) {
    .navbar-inner {
        padding: 0 14px;
    }
    
    .nav-badge {
        padding: 4px 9px;
        font-size: 0.55rem;
    }
    
    .container { padding: 0 16px; }
    
    .options-grid { grid-template-columns: 1fr; }
    
    .title-line-1 { font-size: 2.25rem; }
    
    .lantern-decoration { font-size: 4rem; }
    
    .welcome-right {
        min-height: 320px;
    }
    
    .welcome-visual {
        max-width: 320px;
    }
    
    .prize-card { padding: 32px 20px; }
    .prize-amount { font-size: 4.5rem; }
    
    .ai-recommendation { padding: 24px 18px; }
    
    .code-section { padding: 22px 18px; }
    
    .code-box {
        font-size: 1rem;
        padding: 16px 14px;
    }
    
    .moon-icon::before { font-size: 10.5px; }
}

/* ========================================================
   RESPONSIVE - VERY SMALL (under 380px)
   ======================================================== */
@media (max-width: 380px) {
    .nav-badge {
        display: none;
    }
    
    .title-line-1 { font-size: 2rem; }
    
    .welcome-right {
        min-height: 280px;
    }
    
    .prize-amount {
        font-size: 4rem;
    }
}

/* ========================================================
   إخفاء spotlight على الموبايل لتحسين الأداء
   ======================================================== */
@media (max-width: 768px) {
    .spotlight { display: none !important; }
    
    /* تخفيف الـ aurora animation على الموبايل لتحسين الأداء */
    .bg-pattern::before {
        animation-duration: 40s;
    }
}

/* ========================================================
   تقليل الحركة لمن يفضّل ذلك
   ======================================================== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
/* ============================================================
   🆕 تحسينات CSS للأسئلة الجديدة - v2.1
   أضف هذا الكود في نهاية ملف style.css
   ============================================================ */

/* السؤال الأول الآن فيه 8 خيارات - نعرضها 2x4 على الديسكتوب */
#screen-q1 .options-grid {
    grid-template-columns: repeat(2, 1fr);
}

/* السؤال الثاني الآن فيه 4 خيارات مع وصف */
#screen-q2 .options-grid {
    grid-template-columns: repeat(2, 1fr);
}

/* بطاقات الأسئلة 1 و 2 - ارتفاع متناسق */
#screen-q2 .option-card,
#screen-q1 .option-card {
    min-height: 130px;
}

/* وصف الخيار في السؤال 2 - تنسيق أفضل */
#screen-q2 .opt-desc {
    font-size: 0.78rem;
    color: var(--muted);
    margin-top: 4px;
    direction: ltr;
    text-align: right;
}

#screen-q2 .option-card.selected .opt-desc {
    color: rgba(255, 255, 255, 0.65);
}

/* ✨ السؤال الثالث (المستوى) - أوصاف أوضح وأطول */
#screen-q3 .opt-desc {
    font-size: 0.78rem;
    line-height: 1.4;
    margin-top: 4px;
}

/* ============================================================
   موبايل - الأسئلة 1 و 2 (4 و 8 خيارات) عمود واحد للوضوح
   ============================================================ */
@media (max-width: 600px) {
    /* السؤال 1 (8 خيارات) - عمود واحد */
    #screen-q1 .options-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    /* السؤال 2 (4 خيارات) - عمود واحد */
    #screen-q2 .options-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    /* تنسيق مدمج للأسئلة 1 و 2 على الموبايل */
    #screen-q1 .option-card,
    #screen-q2 .option-card {
        min-height: auto;
        padding: 18px 20px;
        flex-direction: row;
        align-items: center;
        gap: 14px;
    }
    
    #screen-q1 .option-card::after,
    #screen-q2 .option-card::after {
        top: 50%;
        left: 18px;
        transform: translateY(-50%);
        width: 18px;
        height: 18px;
    }
    
    #screen-q1 .opt-icon,
    #screen-q2 .opt-icon {
        font-size: 1.6rem;
        flex-shrink: 0;
    }
    
    /* السؤال 2 - يحتاج تخطيط خاص بسبب الوصف */
    #screen-q2 .option-card {
        flex-wrap: wrap;
    }
    
    #screen-q2 .opt-desc {
        width: 100%;
        padding-right: 38px;
        margin-top: 0;
        font-size: 0.72rem;
    }
    
    /* السؤال 3 (المستوى) يبقى 3 خيارات بترتيب رأسي على الموبايل */
    #screen-q3 .options-3 {
        grid-template-columns: 1fr;
    }
}