/* ==========================================================================
   قائمة البناء والتنمية — design system v2
   Tokens → elements → layout → components → utilities
   ========================================================================== */

:root {
    /* Palette */
    --gold:         #c8a24e;
    --gold-2:       #e4c068;
    --gold-soft:    rgba(200, 162, 78, 0.14);
    --gold-softer:  rgba(200, 162, 78, 0.06);
    --gold-line:    rgba(200, 162, 78, 0.22);
    --deep:         #0f0a04;
    --deep-2:       #1a1208;
    --surface-1:    #1e1a10;
    --surface-2:    #2a2215;
    --surface-3:    #332a1b;
    --ink:          #f6efe0;
    --ink-muted:    #cfc5ae;
    --ink-dim:      #8e8677;
    --red:          #CE1126;
    --red-2:        #a80d1e;
    --green:        #006233;

    /* Elevation */
    --shadow-sm:  0 2px 8px rgba(0, 0, 0, 0.30);
    --shadow:     0 10px 40px rgba(0, 0, 0, 0.40);
    --shadow-lg:  0 20px 60px rgba(0, 0, 0, 0.55);
    --shadow-gold: 0 14px 40px rgba(200, 162, 78, 0.22);

    /* Radii */
    --r-sm: 8px;
    --r-md: 12px;
    --r-lg: 18px;
    --r-xl: 24px;
    --r-pill: 999px;

    /* Spacing (8px grid) */
    --s-1:  4px;  --s-2:  8px;  --s-3: 12px; --s-4: 16px;
    --s-5: 24px;  --s-6: 32px;  --s-7: 48px;  --s-8: 64px;  --s-9: 96px;

    /* Typography */
    --font-ar: 'Cairo', 'Tajawal', system-ui, sans-serif;
    --font-body-ar: 'Tajawal', 'Cairo', system-ui, sans-serif;
    --font-en: 'Inter', system-ui, -apple-system, sans-serif;
    --fs-12: 0.75rem; --fs-14: 0.875rem; --fs-16: 1rem; --fs-18: 1.125rem;
    --fs-20: 1.25rem; --fs-24: 1.5rem; --fs-32: 2rem; --fs-40: 2.5rem;
    --fs-48: 3rem; --fs-56: 3.5rem; --fs-64: 4rem;

    /* Layout */
    --content-w: 1200px;
    --text-w: 920px;

    /* Motion */
    --ease: cubic-bezier(.22,.61,.36,1);
    --dur-fast: 160ms;
    --dur-med: 280ms;
    --dur-slow: 500ms;
}

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

html { scroll-behavior: smooth; }

html, body { min-height: 100%; }

body {
    font-family: var(--font-body-ar);
    font-weight: 400;
    font-size: var(--fs-16);
    line-height: 1.7;
    color: var(--ink);
    background:
        radial-gradient(1200px 600px at 70% -10%, rgba(200,162,78,0.08), transparent 60%),
        radial-gradient(1000px 500px at -10% 50%, rgba(206,17,38,0.05), transparent 60%),
        linear-gradient(180deg, #15110a 0%, #0f0a04 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}
body::before {
    content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 0;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 0.85 0 0 0 0 0.55 0 0 0 0.06 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
    opacity: 0.35;
}

main { flex: 1; position: relative; z-index: 1; }

h1, h2, h3, h4, h5 {
    font-family: var(--font-ar);
    font-weight: 800;
    line-height: 1.25;
    color: var(--ink);
    letter-spacing: -0.01em;
}
h1 { font-size: clamp(2rem, 4vw + 1rem, 3.5rem); }
h2 { font-size: clamp(1.5rem, 2.2vw + 0.75rem, 2.25rem); }
h3 { font-size: var(--fs-20); }

p { color: var(--ink-muted); }

a { color: var(--gold); text-decoration: none; transition: color var(--dur-fast) var(--ease); }
a:hover { color: var(--gold-2); }

:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 3px;
    border-radius: var(--r-sm);
}

img { max-width: 100%; height: auto; display: block; }

.en { font-family: var(--font-en); font-weight: 500; letter-spacing: 0.02em; direction: ltr; }

/* ----- Palestinian flag stripe ---------------------------------------------- */
.flag-stripe { height: 4px; display: flex; width: 100%; }
.flag-stripe > div { flex: 1; }
.flag-black { background: #000; }
.flag-white { background: #fff; }
.flag-green { background: var(--green); }
.flag-red   { background: var(--red); }

/* ----- Nav ------------------------------------------------------------------ */
.site-nav {
    background: rgba(15, 10, 4, 0.82);
    border-bottom: 1px solid var(--gold-line);
    position: sticky; top: 0; z-index: 50;
    backdrop-filter: saturate(160%) blur(10px);
    -webkit-backdrop-filter: saturate(160%) blur(10px);
}
.site-nav-inner {
    max-width: var(--content-w); margin: 0 auto; padding: var(--s-3) var(--s-5);
    display: flex; align-items: center; gap: var(--s-6); flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: var(--s-3); color: var(--gold); }
.brand img {
    width: 44px; height: 44px; border-radius: 50%;
    box-shadow: 0 2px 10px rgba(200,162,78,0.3);
    border: 1.5px solid var(--gold-line);
}
.brand-text strong { display: block; font-family: var(--font-ar); font-weight: 800; font-size: var(--fs-16); color: var(--gold); }
.brand-text small { color: var(--ink-dim); font-size: var(--fs-12); }

.nav-links {
    list-style: none; display: flex; gap: var(--s-2); flex-wrap: wrap;
    margin-right: auto;
}
.nav-links a {
    color: var(--ink); font-weight: 600; font-size: var(--fs-14);
    padding: var(--s-2) var(--s-3); border-radius: var(--r-sm);
    transition: all var(--dur-fast) var(--ease);
}
.nav-links a:hover, .nav-links a.active { background: var(--gold-soft); color: var(--gold); }

.nav-cta {
    display: inline-flex; align-items: center; gap: var(--s-2);
    padding: var(--s-2) var(--s-4); border-radius: var(--r-pill);
    background: var(--gold); color: var(--deep-2); font-weight: 800;
    font-size: var(--fs-14);
    box-shadow: var(--shadow-gold);
    transition: all var(--dur-fast) var(--ease);
}
.nav-cta:hover { background: var(--gold-2); transform: translateY(-1px); color: var(--deep-2); }
.nav-cta .num {
    display: inline-grid; place-items: center; width: 22px; height: 22px;
    border-radius: 50%; background: var(--red); color: #fff; font-size: var(--fs-12);
}

/* Mobile menu toggle */
.nav-toggle { display: none; border: 1px solid var(--gold-line); background: transparent;
    color: var(--gold); padding: 6px 10px; border-radius: var(--r-sm); font-size: var(--fs-18); cursor: pointer; }

/* ----- Flash ---------------------------------------------------------------- */
.flash-stack { max-width: var(--content-w); margin: var(--s-4) auto 0; padding: 0 var(--s-5); }
.flash { padding: var(--s-3) var(--s-4); border-radius: var(--r-md); margin-bottom: var(--s-2);
    font-weight: 600; border: 1px solid transparent; }
.flash-success { background: rgba(46,160,67,0.16); border-color: rgba(46,160,67,0.45); color: #8fe79b; }
.flash-danger, .flash-error { background: rgba(206,17,38,0.18); border-color: rgba(206,17,38,0.5); color: #f59da6; }
.flash-warning { background: rgba(200,162,78,0.14); border-color: var(--gold-line); color: #f2d98a; }
.flash-info { background: rgba(90,150,220,0.14); border-color: rgba(90,150,220,0.4); color: #bcd8f4; }

/* ----- Hero ----------------------------------------------------------------- */
.hero {
    position: relative; overflow: hidden;
    padding: clamp(var(--s-7), 8vw, var(--s-9)) var(--s-5) var(--s-9);
    text-align: center;
    background:
        radial-gradient(80% 60% at 50% 0%, rgba(200,162,78,0.22), transparent 70%),
        linear-gradient(180deg, var(--deep-2) 0%, var(--deep) 100%);
    border-bottom: 1px solid var(--gold-line);
}
.hero::after {
    content: ''; position: absolute; inset: auto 0 0 0; height: 180px;
    background: radial-gradient(60% 100% at 50% 0%, rgba(200,162,78,0.10), transparent 70%);
    pointer-events: none;
}
.hero-eyebrow {
    display: inline-flex; align-items: center; gap: var(--s-2);
    padding: 6px 14px; border: 1px solid var(--gold-line); border-radius: var(--r-pill);
    color: var(--gold); font-size: var(--fs-14); font-weight: 700; letter-spacing: 0.04em;
    background: rgba(200,162,78,0.06); backdrop-filter: blur(4px);
    margin-bottom: var(--s-5);
}
.hero-eyebrow .pulse {
    width: 8px; height: 8px; border-radius: 50%; background: var(--red);
    box-shadow: 0 0 0 0 rgba(206,17,38,0.6); animation: pulse 2s infinite;
}
@keyframes pulse {
    0%,100% { box-shadow: 0 0 0 0 rgba(206,17,38,0.6); }
    50%     { box-shadow: 0 0 0 6px rgba(206,17,38,0); }
}
.hero-logo {
    width: 130px; height: 130px; border-radius: 50%; margin: 0 auto var(--s-5);
    box-shadow: 0 8px 30px rgba(200,162,78,0.4);
    border: 3px solid var(--gold-line);
}
.hero h1 {
    font-weight: 900; color: var(--gold); letter-spacing: -0.02em;
    text-shadow: 0 2px 20px rgba(0,0,0,0.6);
    margin-bottom: var(--s-4);
}
.hero .sub {
    color: var(--ink-muted); max-width: 720px; margin: 0 auto var(--s-6);
    font-size: clamp(var(--fs-16), 1.6vw, var(--fs-20));
}
.hero-cta-row {
    display: inline-flex; gap: var(--s-3); flex-wrap: wrap; justify-content: center;
}

/* Countdown */
.countdown {
    display: inline-flex; gap: var(--s-3); margin-top: var(--s-6); flex-wrap: wrap;
    justify-content: center;
}
.countdown-unit {
    min-width: 84px; padding: var(--s-3) var(--s-4);
    background: linear-gradient(145deg, rgba(200,162,78,0.14), rgba(200,162,78,0.04));
    border: 1px solid var(--gold-line); border-radius: var(--r-md);
    backdrop-filter: blur(8px);
}
.countdown-unit b {
    display: block; font-family: var(--font-ar); font-weight: 900;
    font-size: var(--fs-32); color: var(--gold); line-height: 1;
}
.countdown-unit span { display: block; font-size: var(--fs-12); color: var(--ink-dim); margin-top: 4px; }

.gold-stripe { height: 2px; background: linear-gradient(90deg, transparent, var(--gold) 50%, transparent); }

/* ----- Layout --------------------------------------------------------------- */
.container { max-width: var(--content-w); margin: 0 auto; padding: 0 var(--s-5); }
.container.narrow { max-width: var(--text-w); }

.section { padding: clamp(var(--s-8), 8vw, var(--s-9)) 0; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto var(--s-7); }
.section-kicker {
    display: inline-block; color: var(--gold); font-weight: 700; font-size: var(--fs-14);
    letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: var(--s-2);
}
.section-head h2 { margin-bottom: var(--s-3); }
.section-head p { color: var(--ink-muted); font-size: var(--fs-18); }

/* ----- Stats ---------------------------------------------------------------- */
.stats {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: var(--s-4); padding: var(--s-6);
    background: linear-gradient(145deg, rgba(200,162,78,0.08), rgba(200,162,78,0.02));
    border: 1px solid var(--gold-line); border-radius: var(--r-lg);
    backdrop-filter: blur(4px);
}
.stat { text-align: center; padding: var(--s-3); }
.stat b {
    display: block; font-family: var(--font-ar); font-weight: 900;
    color: var(--gold); font-size: clamp(2rem, 3vw + 1rem, 3rem); line-height: 1;
    letter-spacing: -0.02em;
}
.stat span {
    display: block; color: var(--ink-muted); font-size: var(--fs-14);
    margin-top: var(--s-2); font-weight: 500;
}
.stat + .stat { border-right: 1px solid var(--gold-line); }
@media (max-width: 720px) { .stat + .stat { border-right: none; } }

/* ----- Card ----------------------------------------------------------------- */
.card {
    background: linear-gradient(145deg, var(--surface-2), var(--surface-1));
    border-radius: var(--r-lg); padding: var(--s-6);
    border: 1px solid var(--gold-line);
    box-shadow: var(--shadow);
}

/* ----- Priorities grid ------------------------------------------------------ */
.priorities-grid {
    display: grid; gap: var(--s-4);
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.priority {
    background: linear-gradient(145deg, var(--surface-2), var(--surface-1));
    border: 1px solid var(--gold-line); border-radius: var(--r-lg);
    padding: var(--s-6); position: relative; overflow: hidden;
    transition: transform var(--dur-med) var(--ease), border-color var(--dur-med) var(--ease), box-shadow var(--dur-med) var(--ease);
}
.priority::before {
    content: ''; position: absolute; inset: 0; pointer-events: none;
    background: radial-gradient(60% 80% at 100% 0%, rgba(200,162,78,0.12), transparent 60%);
    opacity: 0; transition: opacity var(--dur-med) var(--ease);
}
.priority:hover { transform: translateY(-4px); border-color: rgba(200,162,78,0.45); box-shadow: var(--shadow-gold); }
.priority:hover::before { opacity: 1; }
.priority .icon {
    font-size: 1.8rem; display: inline-grid; place-items: center;
    width: 52px; height: 52px; border-radius: var(--r-md);
    background: var(--gold-soft); border: 1px solid var(--gold-line);
    margin-bottom: var(--s-4);
}
.priority h3 { color: var(--gold); font-size: var(--fs-20); margin-bottom: var(--s-2); }
.priority p { color: var(--ink-muted); font-size: var(--fs-16); line-height: 1.8; }

/* ----- Candidates grid ------------------------------------------------------ */
.candidates-grid {
    display: grid; gap: var(--s-4);
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
}
.candidate-card {
    background: linear-gradient(145deg, var(--surface-2), var(--surface-1));
    border: 1px solid var(--gold-line); border-radius: var(--r-lg);
    overflow: hidden; text-align: center; color: inherit;
    display: flex; flex-direction: column;
    transition: transform var(--dur-med) var(--ease), border-color var(--dur-med) var(--ease), box-shadow var(--dur-med) var(--ease);
}
.candidate-card:hover {
    transform: translateY(-6px);
    border-color: rgba(200,162,78,0.55);
    box-shadow: var(--shadow-gold);
}
.candidate-photo {
    width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: center 8%;
    background: linear-gradient(180deg, #1a120a, #0f0a04);
    transition: transform var(--dur-slow) var(--ease);
}
.candidate-card:hover .candidate-photo { transform: scale(1.03); }
.candidate-photo.placeholder {
    display: flex; align-items: center; justify-content: center;
    font-size: 3rem; color: rgba(200,162,78,0.35);
}
.candidate-body { padding: var(--s-4); border-top: 1px solid var(--gold-line); }
.candidate-badges { display: flex; gap: var(--s-2); justify-content: center; margin-bottom: var(--s-2); flex-wrap: wrap; }
.badge {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 3px 10px; border-radius: var(--r-pill);
    font-size: var(--fs-12); font-weight: 700; letter-spacing: 0.02em;
}
.badge-pos { background: var(--gold-soft); color: var(--gold); border: 1px solid var(--gold-line); }
.badge-head { background: linear-gradient(135deg, var(--red), var(--red-2)); color: #fff; }
.candidate-name {
    font-family: var(--font-ar); font-weight: 800; color: var(--gold);
    font-size: var(--fs-16); line-height: 1.3; margin-bottom: 4px;
}
.candidate-tag { color: var(--ink-dim); font-size: var(--fs-12); min-height: 2.8em; line-height: 1.4; }

/* Featured (head-of-list) */
.featured {
    display: grid; grid-template-columns: 320px 1fr; gap: var(--s-6); align-items: center;
    padding: var(--s-7); border-radius: var(--r-xl);
    background: linear-gradient(135deg, rgba(200,162,78,0.10), rgba(0,0,0,0)) , linear-gradient(145deg, var(--surface-2), var(--surface-1));
    border: 1px solid var(--gold-line); box-shadow: var(--shadow-lg);
}
.featured .photo-wrap {
    border-radius: var(--r-lg); overflow: hidden;
    border: 2px solid var(--gold-line);
    box-shadow: var(--shadow-gold);
    aspect-ratio: 3 / 4;
}
.featured .photo-wrap img { width: 100%; height: 100%; object-fit: cover; object-position: center 8%; }
.featured h2 { color: var(--gold); }
.featured .role { color: var(--ink-dim); font-size: var(--fs-14); margin-bottom: var(--s-2); letter-spacing: 0.04em; }
.featured .lead { font-size: var(--fs-18); color: var(--ink-muted); line-height: 1.9; margin: var(--s-3) 0 var(--s-5); }
@media (max-width: 820px) {
    .featured { grid-template-columns: 1fr; text-align: center; padding: var(--s-5); }
    .featured .photo-wrap { max-width: 260px; margin: 0 auto; }
}

/* ----- Program pillars ------------------------------------------------------ */
.program-grid {
    display: grid; gap: var(--s-4);
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.program-card {
    background: linear-gradient(145deg, var(--surface-2), var(--surface-1));
    border: 1px solid var(--gold-line); border-radius: var(--r-lg); padding: var(--s-5);
    transition: transform var(--dur-med) var(--ease), border-color var(--dur-med) var(--ease);
}
.program-card:hover { transform: translateY(-3px); border-color: rgba(200,162,78,0.4); }
.program-card .icon { font-size: 1.6rem; margin-bottom: var(--s-3); }
.program-card h3 { color: var(--gold); margin-bottom: var(--s-2); font-size: var(--fs-18); }
.program-card p { color: var(--ink-muted); font-size: var(--fs-14); }

/* ----- Candidate detail ----------------------------------------------------- */
.candidate-hero {
    display: grid; grid-template-columns: 280px 1fr; gap: var(--s-6); align-items: flex-start;
    padding: var(--s-7); border-radius: var(--r-xl);
}
.candidate-hero .photo-wrap {
    border-radius: var(--r-lg); overflow: hidden;
    border: 2px solid var(--gold-line);
    box-shadow: var(--shadow-lg);
}
.candidate-hero .photo-wrap img { width: 100%; display: block; }
.candidate-hero .photo-wrap.placeholder {
    aspect-ratio: 3 / 4; display: flex; align-items: center; justify-content: center;
    font-size: 5em; color: rgba(200,162,78,0.4);
    background: linear-gradient(145deg, var(--surface-2), var(--surface-1));
}
.candidate-hero h1 { color: var(--gold); font-size: clamp(1.8rem, 3vw + 0.5rem, 2.5rem); margin-bottom: var(--s-2); }
.candidate-hero .legal { color: var(--ink-dim); font-size: var(--fs-14); margin-bottom: var(--s-1); }
.candidate-hero .tag {
    display: inline-block; padding: 6px 18px; border-radius: var(--r-pill);
    background: linear-gradient(135deg, var(--red), var(--red-2)); color: #fff; font-weight: 700;
    box-shadow: 0 3px 12px rgba(206,17,38,0.35);
}
.candidate-hero .meta-pills {
    display: flex; gap: var(--s-2); flex-wrap: wrap; margin-top: var(--s-3);
}
.meta-pill {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 4px 12px; border-radius: var(--r-pill);
    background: var(--gold-soft); color: var(--gold);
    border: 1px solid var(--gold-line); font-size: var(--fs-14);
}
@media (max-width: 720px) {
    .candidate-hero { grid-template-columns: 1fr; padding: var(--s-4); }
    .candidate-hero .photo-wrap { max-width: 240px; margin: 0 auto; }
    .candidate-hero > div:nth-child(2) { text-align: center; }
}

.cv-category { margin-top: var(--s-5); }
.cv-category h3 {
    color: var(--gold-2); font-size: var(--fs-18); margin-bottom: var(--s-3);
    display: flex; align-items: center; gap: var(--s-2);
}
.cv-list { list-style: none; display: grid; gap: var(--s-2); }
.cv-list li {
    padding: var(--s-3) var(--s-4);
    background: rgba(200,162,78,0.05); border-radius: var(--r-md);
    border-right: 3px solid var(--gold);
    transition: all var(--dur-fast) var(--ease);
    color: var(--ink);
}
.cv-list li:hover {
    background: rgba(200,162,78,0.10);
    transform: translateX(-4px);
    border-right-color: var(--gold-2);
}

.promises-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: var(--s-3);
}
.promise-item {
    background: linear-gradient(135deg, rgba(200,162,78,0.14), rgba(200,162,78,0.02));
    border: 1px solid var(--gold-line); border-radius: var(--r-md);
    padding: var(--s-4); text-align: center;
    transition: transform var(--dur-med) var(--ease), box-shadow var(--dur-med) var(--ease);
}
.promise-item:hover { transform: translateY(-3px); box-shadow: 0 8px 25px rgba(200,162,78,0.18); }
.promise-icon { font-size: 1.7rem; margin-bottom: var(--s-2); }
.promise-text { color: var(--ink); font-size: var(--fs-14); line-height: 1.7; }

/* ----- FAQ ------------------------------------------------------------------ */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: var(--s-3); }
.faq details {
    background: linear-gradient(145deg, var(--surface-2), var(--surface-1));
    border: 1px solid var(--gold-line); border-radius: var(--r-md);
    padding: var(--s-4) var(--s-5); transition: border-color var(--dur-fast) var(--ease);
}
.faq details[open] { border-color: rgba(200,162,78,0.5); }
.faq summary {
    cursor: pointer; list-style: none; font-weight: 700; color: var(--gold);
    font-size: var(--fs-18); display: flex; align-items: center; justify-content: space-between; gap: var(--s-3);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
    content: '+'; font-size: 1.5rem; font-weight: 400; color: var(--gold); transition: transform var(--dur-fast);
}
.faq details[open] summary::after { content: '−'; }
.faq .answer { margin-top: var(--s-3); color: var(--ink-muted); line-height: 1.9; }

/* ----- Endorsements --------------------------------------------------------- */
.endorsements-grid {
    display: grid; gap: var(--s-4);
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.endorsement {
    background: linear-gradient(145deg, var(--surface-2), var(--surface-1));
    border: 1px solid var(--gold-line); border-radius: var(--r-lg);
    padding: var(--s-5);
}
.endorsement blockquote { color: var(--ink); font-size: var(--fs-16); line-height: 1.9; quotes: "\201C" "\201D"; }
.endorsement blockquote::before { content: open-quote; color: var(--gold); font-size: 2rem; margin-inline-end: 6px; }
.endorsement cite { display: flex; align-items: center; gap: var(--s-3); margin-top: var(--s-4); font-style: normal; }
.endorsement cite img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.endorsement cite strong { display: block; color: var(--gold); font-family: var(--font-ar); }
.endorsement cite span { color: var(--ink-dim); font-size: var(--fs-14); }

/* ----- Buttons -------------------------------------------------------------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
    padding: 12px 26px; border-radius: var(--r-pill);
    border: 2px solid var(--gold); background: transparent;
    color: var(--gold); font-weight: 800; font-family: var(--font-ar);
    font-size: var(--fs-16); cursor: pointer;
    transition: all var(--dur-fast) var(--ease);
    text-decoration: none;
}
.btn:hover { background: var(--gold); color: var(--deep-2); transform: translateY(-1px); }
.btn-primary {
    background: linear-gradient(135deg, var(--gold), var(--gold-2)); color: var(--deep-2);
    box-shadow: var(--shadow-gold);
}
.btn-primary:hover { background: var(--gold-2); color: var(--deep-2); }
.btn-red {
    border-color: var(--red); color: var(--ink); background: linear-gradient(135deg, var(--red), var(--red-2));
    box-shadow: 0 6px 20px rgba(206,17,38,0.35);
}
.btn-red:hover { background: var(--red-2); color: #fff; }
.btn-ghost { border-color: var(--gold-line); color: var(--ink); }
.btn-ghost:hover { background: var(--gold-soft); color: var(--gold); border-color: var(--gold-line); }
.btn-sm { padding: 7px 16px; font-size: var(--fs-14); }
.btn-danger { border-color: var(--red); color: #f59da6; }
.btn-danger:hover { background: var(--red-2); color: #fff; }

/* ----- CTA ------------------------------------------------------------------ */
.cta {
    margin: 0 auto; max-width: var(--content-w); padding: 0 var(--s-5) var(--s-8);
}
.cta-box {
    background:
        radial-gradient(60% 100% at 50% 0%, rgba(200,162,78,0.22), transparent 70%),
        linear-gradient(145deg, var(--deep-2), var(--surface-1));
    border: 1px solid var(--gold-line); border-radius: var(--r-xl);
    padding: clamp(var(--s-6), 5vw, var(--s-9)) var(--s-5); text-align: center;
    box-shadow: var(--shadow-lg);
}
.cta-box h2 { color: var(--gold); margin-bottom: var(--s-3); }
.cta-box p { color: var(--ink-muted); max-width: 620px; margin: 0 auto var(--s-5); font-size: var(--fs-18); }

/* Sticky mobile vote bar */
.vote-bar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    display: none; align-items: center; justify-content: space-between; gap: var(--s-3);
    padding: var(--s-3) var(--s-4);
    background: rgba(15,10,4,0.92); border-top: 1px solid var(--gold-line);
    backdrop-filter: blur(10px);
}
.vote-bar b { color: var(--gold); }
@media (max-width: 720px) { .vote-bar { display: flex; } body { padding-bottom: 72px; } }

/* ----- Footer --------------------------------------------------------------- */
.site-footer {
    border-top: 1px solid var(--gold-line);
    margin-top: var(--s-8); padding: var(--s-7) var(--s-5) var(--s-4);
    background: rgba(10,7,3,0.85);
    color: var(--ink-dim);
}
.footer-inner {
    max-width: var(--content-w); margin: 0 auto;
    display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: var(--s-6);
}
.footer-col h4 { color: var(--gold); margin-bottom: var(--s-3); font-size: var(--fs-16); }
.footer-col ul { list-style: none; display: grid; gap: var(--s-2); }
.footer-col a { color: var(--ink-muted); font-size: var(--fs-14); }
.footer-col a:hover { color: var(--gold); }
.footer-col.brand-col .gold { color: var(--gold); font-size: var(--fs-18); font-weight: 800; font-family: var(--font-ar); }
.footer-col .slogan { color: var(--gold-2); margin-top: var(--s-2); font-style: italic; }
.social-row { display: flex; gap: var(--s-2); flex-wrap: wrap; }
.social-row a {
    width: 40px; height: 40px; display: grid; place-items: center;
    border: 1px solid var(--gold-line); border-radius: 50%; color: var(--gold);
    transition: all var(--dur-fast) var(--ease);
}
.social-row a:hover { background: var(--gold); color: var(--deep-2); border-color: var(--gold); }
.footer-bottom {
    text-align: center; padding-top: var(--s-5); margin-top: var(--s-6);
    border-top: 1px solid rgba(200,162,78,0.1); font-size: var(--fs-12); color: var(--ink-dim);
    display: flex; flex-direction: column; gap: var(--s-2); align-items: center;
}
.footer-bottom .credit {
    color: var(--ink-dim); font-size: var(--fs-12);
    display: inline-flex; align-items: center; gap: var(--s-2); flex-wrap: wrap; justify-content: center;
}
.footer-bottom .credit a { color: var(--gold); text-decoration: none; font-weight: 600; }
.footer-bottom .credit a:hover { text-decoration: underline; }
.footer-bottom .credit-logo {
    height: 56px; width: auto; display: block;
    background: #fff; padding: 6px 14px; border-radius: var(--r-sm);
    transition: opacity var(--dur-fast) var(--ease);
}
@media (max-width: 520px) {
    .footer-bottom .credit-logo { height: 44px; padding: 5px 10px; }
}
.footer-bottom .credit-brand:hover .credit-logo { opacity: 0.85; }
.footer-bottom .credit-sep { opacity: 0.5; }

/* ----- Admin ---------------------------------------------------------------- */
.admin-layout { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; }
.admin-side {
    background: rgba(10,7,3,0.95); padding: var(--s-5) var(--s-4);
    border-left: 1px solid var(--gold-line);
}
.admin-side h3 { color: var(--gold); margin-bottom: var(--s-4); font-size: var(--fs-16); }
.admin-side a {
    display: block; padding: var(--s-2) var(--s-3); border-radius: var(--r-sm);
    color: var(--ink); margin-bottom: 2px; font-size: var(--fs-14);
}
.admin-side a:hover, .admin-side a.active { background: var(--gold-soft); color: var(--gold); }
.admin-main { padding: var(--s-6); }
.admin-main h1 { color: var(--gold); margin-bottom: var(--s-5); font-size: var(--fs-24); }

.table {
    width: 100%; border-collapse: collapse; background: rgba(0,0,0,0.2); border-radius: var(--r-md); overflow: hidden;
    font-size: var(--fs-14);
}
.table th, .table td { padding: var(--s-3) var(--s-4); text-align: right; border-bottom: 1px solid rgba(200,162,78,0.1); }
.table th { background: var(--gold-soft); color: var(--gold); font-weight: 700; }
.table tr:hover td { background: rgba(200,162,78,0.04); }

.form-row { margin-bottom: var(--s-4); }
.form-row label { display: block; color: var(--gold); font-weight: 600; margin-bottom: 6px; font-size: var(--fs-14); }
.form-row input[type=text], .form-row input[type=number], .form-row input[type=email],
.form-row input[type=password], .form-row input[type=url], .form-row input[type=date],
.form-row input[type=tel], .form-row textarea, .form-row select {
    width: 100%; padding: 10px 12px;
    background: rgba(0,0,0,0.28); color: var(--ink);
    border: 1px solid var(--gold-line); border-radius: var(--r-sm);
    font-family: inherit; font-size: var(--fs-16);
    transition: border-color var(--dur-fast) var(--ease);
}
.form-row input:focus, .form-row textarea:focus, .form-row select:focus { border-color: var(--gold); outline: none; }
.form-row textarea { min-height: 120px; resize: vertical; }
.form-row .hint { color: var(--ink-dim); font-size: var(--fs-12); margin-top: 4px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-4); }
.form-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-4); }

.checkbox-row { display: flex; align-items: center; gap: 10px; }
.checkbox-row input { width: 18px; height: 18px; accent-color: var(--gold); }

.empty-state {
    text-align: center; padding: var(--s-8) var(--s-5); color: var(--ink-dim);
}

/* ----- Reveal animation (paired with reveal.js) ----------------------------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 700ms var(--ease), transform 700ms var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
    html { scroll-behavior: auto; }
}

/* ----- Utilities ------------------------------------------------------------ */
.text-center { text-align: center; }
.text-gold { color: var(--gold); }
.mt-5 { margin-top: var(--s-5); }
.mt-6 { margin-top: var(--s-6); }

/* ----- Responsive ----------------------------------------------------------- */
@media (max-width: 900px) {
    .footer-inner { grid-template-columns: 1fr 1fr; }
    .admin-layout { grid-template-columns: 1fr; }
    .admin-side { border-left: none; border-bottom: 1px solid var(--gold-line); }
    .form-grid, .form-grid-3 { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
    .nav-toggle { display: inline-flex; }
    .nav-links { display: none; width: 100%; flex-direction: column; order: 3; }
    .nav-links.open { display: flex; }
    .nav-links a { padding: var(--s-3); border-bottom: 1px solid var(--gold-line); border-radius: 0; }
    .footer-inner { grid-template-columns: 1fr; text-align: center; }
    .social-row { justify-content: center; }
    .stat + .stat { border-right: none; }
}
