/* ─ TOKENS & FONTS ─────────────────────────────────────── */
@font-face { font-family: 'GA'; src: url('graphik-arabic-regular.otf') format('opentype'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'GA'; src: url('graphik-arabic-black.otf') format('opentype'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'GA'; src: url('graphik-arabic-super.otf') format('opentype'); font-weight: 900; font-display: swap; }

:root {
    --primary: #0a0f0e;    /* الأسود الفخم والعميق */
    --accent: #aa8749;     /* الذهبي المطفي */
    --accent-glow: rgba(170, 135, 73, 0.3);
    --bg-dark: #0a0f0e;
    --bg-card: rgba(255, 255, 255, 0.03);
    --text-white: #f5f0e8;
    --text-dim: rgba(245, 240, 232, 0.6);
    --border: rgba(245, 240, 232, 0.1);
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ─ MODAL OVERLAY ────────────────────────────────────── */
.modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(10, 15, 14, 0.95); backdrop-filter: blur(25px);
    z-index: 2000; display: none; align-items: center; justify-content: center;
    padding: 20px; transition: var(--transition);
}
.modal-overlay.show { display: flex; animation: fadeIn .4s ease; }
.modal-content {
    background: var(--bg-card); border: 1px solid var(--accent);
    padding: 60px; border-radius: 32px; text-align: center;
    max-width: 500px; width: 100%; position: relative;
    box-shadow: 0 0 100px var(--accent-glow);
}
.success-icon {
    font-size: 80px; color: var(--accent); margin-bottom: 24px;
    animation: bounceIn .6s cubic-bezier(0.17, 0.67, 0.83, 0.67);
}
.modal-content h2 { font-size: 28px; margin-bottom: 16px; color: var(--text-white); }
.modal-content p { color: var(--text-dim); margin-bottom: 32px; font-size: 16px; }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes bounceIn {
    0% { transform: scale(0.3); opacity: 0; }
    50% { transform: scale(1.05); opacity: 1; }
    70% { transform: scale(0.9); }
    100% { transform: scale(1); }
}

/* ─ RESET ───────────────────────────────────────── */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: 'GA', system-ui, sans-serif;
    background: var(--bg-dark);
    color: var(--text-white);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

.container { width: 90%; max-width: 1200px; margin: 0 auto; }

/* ─ PROGRESS ────────────────────────────────────── */
#prog {
    position: fixed; top: 0; right: 0; left: 0; height: 3px;
    background: var(--accent); transform: scaleX(0);
    transform-origin: right; z-index: 1001; transition: transform .08s linear;
}

/* ─ URGENCY BAR ─────────────────────────────────── */
.urgency-header {
    background: var(--accent); color: white; padding: 10px 0;
    text-align: center; font-size: 14px; font-weight: 700;
    position: fixed; top: 3px; left: 0; right: 0; z-index: 900;
    box-shadow: 0 4px 20px rgba(170, 135, 73, 0.4);
}
.urgency-header p { display: flex; align-items: center; justify-content: center; gap: 8px; }
.urgency-header i { animation: flash 1s infinite alternate; }
@keyframes flash { from { opacity: 0.3; } to { opacity: 1; } }

/* ─ NAVIGATION ──────────────────────────────────── */
nav {
    position: fixed; top: 44px; width: 100%; height: 80px;
    z-index: 500; display: flex; align-items: center;
    background: rgba(10, 15, 14, 0.85); backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}
.nav-container {
    width: 90%; max-width: 1200px; margin: 0 auto;
    display: flex; justify-content: space-between; align-items: center;
}
.nav-logo { height: 40px; }
.btn-gold-sm {
    padding: 10px 20px; background: var(--accent); color: white;
    text-decoration: none; border-radius: 8px; font-weight: 700;
    font-size: 14px; transition: var(--transition);
}
.btn-gold-sm:hover { transform: translateY(-2px); box-shadow: 0 4px 15px var(--accent-glow); }

/* ─ HERO ────────────────────────────────────────── */
.hero {
    padding: 180px 0 100px; min-height: 100vh; position: relative;
    display: flex; align-items: center; text-align: center; overflow: hidden;
}
.hero-glow {
    position: absolute; top: 0; left: 50%; transform: translateX(-50%);
    width: 600px; height: 600px; background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
    filter: blur(80px); pointer-events: none; z-index: 0;
}
.hero-content { position: relative; z-index: 1; max-width: 800px; margin: 0 auto; }
.badge {
    display: inline-block; padding: 6px 16px; background: rgba(170, 135, 73, 0.15);
    border: 1px solid var(--accent); border-radius: 100px; font-size: 11px;
    font-weight: 700; color: var(--accent); margin-bottom: 30px; letter-spacing: 1px;
}
.hero-title { font-size: clamp(40px, 6vw, 84px); line-height: 1.1; font-weight: 900; margin-bottom: 30px; }
.hero-title .light { font-weight: 400; color: var(--text-dim); }
.hero-title .gold { color: var(--accent); }
.hero-desc { font-size: 18px; color: var(--text-dim); max-width: 600px; margin: 0 auto 50px; }
.cta-group { display: flex; flex-direction: column; align-items: center; gap: 20px; }
.btn-gold {
    padding: 20px 48px; background: var(--accent); color: white;
    text-decoration: none; border-radius: 12px; font-size: 18px; font-weight: 700;
    display: inline-flex; align-items: center; gap: 12px; transition: var(--transition);
}
.btn-gold:hover { transform: translateY(-4px); box-shadow: 0 20px 40px var(--accent-glow); }
.note { font-size: 13px; color: var(--text-dim); display: flex; align-items: center; gap: 6px; }

/* ─ FIELDS ───────────────────────────────────────── */
.fields { padding: 100px 0; background: rgba(0,0,0,0.1); }
.section-header { text-align: center; margin-bottom: 70px; }
.section-ov { color: var(--accent); font-weight: 700; font-size: 12px; letter-spacing: 3px; text-transform: uppercase; display: block; margin-bottom: 15px; }
.section-title { font-size: clamp(30px, 3.5vw, 42px); font-weight: 900; }
.fields-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.field-card {
    padding: 48px 40px; background: var(--bg-card); border: 1px solid var(--border);
    border-radius: 20px; text-align: center; transition: var(--transition);
}
.field-card:hover { transform: translateY(-8px); border-color: var(--accent); background: rgba(170, 135, 73, 0.05); box-shadow: 0 20px 40px rgba(0,0,0,0.3); }
.field-card:hover .card-icon { transform: scale(1.1) rotate(5deg); }
.card-icon {
    width: 64px; height: 64px; background: rgba(170, 135, 73, 0.1);
    border: 1px solid var(--accent); border-radius: 16px; display: flex;
    align-items: center; justify-content: center; font-size: 28px;
    color: var(--accent); margin: 0 auto 24px; transition: var(--transition);
}
.field-card h3 { font-size: 22px; margin-bottom: 16px; }
.field-card p { font-size: 15px; color: var(--text-dim); }

/* ─ STATS SECTION ────────────────────────────────── */
.stats { padding: 80px 0; background: rgba(170, 135, 73, 0.02); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 40px; text-align: center; }
.stat-card { display: flex; flex-direction: column; align-items: center; }
.stat-number { font-size: clamp(36px, 5vw, 54px); font-weight: 900; color: var(--accent); line-height: 1; margin-bottom: 8px; }
.stat-suffix { font-size: 24px; color: var(--accent); font-weight: 700; margin-right: 2px; }
.stat-label { font-size: 14px; font-weight: 700; color: var(--text-dim); text-transform: uppercase; letter-spacing: 1px; }

/* ─ WHY LEAD YOL ─────────────────────────────────── */
.why-leadyol { padding: 120px 0; }
.why-content { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
@media (max-width: 800px) { .why-content { grid-template-columns: 1fr; text-align: center; } }
.features-list { list-style: none; margin-top: 32px; }
.features-list li { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; font-size: 16px; color: var(--text-dim); }
@media (max-width: 800px) { .features-list li { justify-content: center; } }
.features-list i { color: var(--accent); font-size: 20px; }
.why-image { position: relative; height: 300px; display: flex; align-items: center; justify-content: center; }
.path-viz { width: 100%; height: 2px; background: var(--border); position: relative; }
.path-viz .dot { width: 20px; height: 20px; border-radius: 50%; background: var(--accent); position: absolute; top: -9px; box-shadow: 0 0 20px var(--accent); }
.dot.d1 { left: 0; }
.dot.d2 { right: 0; width: 30px; height: 30px; top: -14px; }
.path-viz .line { position: absolute; height: 2px; background: var(--accent); width: 60%; animation: slideLine 3s infinite linear; }
@keyframes slideLine { 0% { width: 0%; left: 0; } 50% { width: 100%; left: 0; } 100% { width: 0%; left: 100%; } }

/* ─ REGISTRATION SECTION ─────────────────────────── */
.registration-section { padding: 100px 0; background: rgba(0,0,0,0.2); }
.form-container {
    max-width: 700px; margin: 0 auto; background: var(--bg-card);
    padding: 60px; border-radius: 32px; border: 1px solid var(--border);
    backdrop-filter: blur(20px);
}
@media (max-width: 600px) { .form-container { padding: 30px 20px; } }
.form-header p { margin-bottom: 15px; }
.live-counter {
    display: inline-flex; align-items: center; gap: 10px;
    background: rgba(170, 135, 73, 0.1); border: 1px solid var(--accent);
    padding: 8px 16px; border-radius: 100px; color: var(--accent);
    font-weight: 700; font-size: 13px;
}
.form-group { margin-bottom: 24px; text-align: right; }
.form-group label { display: block; font-size: 13px; font-weight: 700; color: var(--accent); margin-bottom: 10px; text-transform: uppercase; letter-spacing: 1px; }
.form-group input, .form-group select, .form-group textarea {
    width: 100%; background: rgba(255,255,255,0.05); border: 2px solid var(--border);
    padding: 16px 20px; border-radius: 12px; color: white; font-family: inherit;
    font-size: 15px; transition: var(--transition); outline: none;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    border-color: var(--accent); background: rgba(170, 135, 73, 0.05);
}

.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: rgba(255,255,255,0.03);
    padding: 15px;
    border-radius: 12px;
    border: 1px solid var(--border);
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 15px;
    color: var(--text-dim);
    transition: var(--transition);
}

.checkbox-item:hover {
    color: var(--text-white);
}

.checkbox-item input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: var(--accent);
    cursor: pointer;
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 500px) { .form-row { grid-template-columns: 1fr; } }
.btn-gold-submit {
    width: 100%; padding: 20px; background: var(--accent); color: white;
    border: none; border-radius: 12px; font-weight: 900; font-size: 18px;
    cursor: pointer; transition: var(--transition); margin-top: 10px;
}
.btn-gold-submit:hover { transform: translateY(-3px); box-shadow: 0 15px 30px var(--accent-glow); }
.form-footer { text-align: center; font-size: 12px; color: var(--text-dim); margin-top: 20px; }

/* ─ FOOTER ────────────────────────────────────────── */
footer { padding: 60px 0; border-top: 1px solid var(--border); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 24px; }
@media (max-width: 600px) { .footer-inner { flex-direction: column; text-align: center; } }
.footer-logo { height: 32px; opacity: 0.6; }
footer p { font-size: 13px; color: var(--text-dim); }
.socials { display: flex; gap: 16px; font-size: 20px; }
.socials a { color: var(--text-dim); transition: var(--transition); }
.socials a:hover { color: var(--accent); transform: translateY(-3px); }

/* ─ ANIMATION ON SCROLL ───────────────────────────── */
/* ─ SCARCITY ELEMENTS ────────────────────────────── */
.live-viewers {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(255, 68, 68, 0.1); border: 1px solid rgba(255, 68, 68, 0.3);
    padding: 6px 12px; border-radius: 100px; color: #ff4444;
    font-size: 12px; font-weight: 700; margin-bottom: 20px;
}
.pulse-dot {
    width: 8px; height: 8px; background: #ff4444; border-radius: 50%;
    position: relative;
}
.pulse-dot::after {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: inherit; border-radius: inherit;
    animation: pulse 1.5s infinite;
}
@keyframes pulse {
    0% { transform: scale(1); opacity: 0.8; }
    100% { transform: scale(3); opacity: 0; }
}

.inventory-bar { margin: 20px 0 30px; text-align: right; }
.inventory-text { display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 10px; font-weight: 700; color: var(--text-dim); }
.inventory-text span:last-child { color: var(--accent); }
.progress-track { width: 100%; height: 8px; background: rgba(255,255,255,0.05); border-radius: 4px; overflow: hidden; }
.progress-fill { height: 100%; background: linear-gradient(90deg, var(--accent), #d4af37); border-radius: 4px; transition: width 2s ease-in-out; }

/* ─ ANIMATION ON SCROLL ───────────────────────────── */
.toast-container {
    position: fixed; bottom: 30px; left: 30px; z-index: 3000;
    display: flex; flex-direction: column-reverse; gap: 15px;
}
.toast {
    background: rgba(255, 255, 255, 0.05); backdrop-filter: blur(20px);
    border: 1px solid var(--border); border-right: 4px solid var(--accent);
    padding: 15px 25px; border-radius: 12px; color: var(--text-white);
    display: grid; grid-template-columns: auto 1fr; align-items: center;
    gap: 15px; min-width: 280px; box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    animation: slideInUp 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 600px) {
    .toast-container { left: 10px; right: 10px; bottom: 10px; }
    .toast { min-width: auto; }
}
