/* =========================================================
   تكامل الحج — نظام التصميم
   أخضر زمردي + ذهبي، خط تجوال، من اليمين لليسار
   ========================================================= */

:root {
    --g950: #03170f;
    --g900: #052a1c;
    --g800: #073322;
    --g700: #0b4a31;
    --g600: #0f5f3f;
    --g500: #16784f;
    --g400: #2a9a69;
    --g100: #e3f1e9;

    --gold600: #a8832f;
    --gold500: #c9a24b;
    --gold400: #dab96a;
    --gold300: #ead08f;
    --gold100: #f7ecd0;

    --ivory: #fbf8f0;
    --sand: #f3ecdb;
    --white: #ffffff;
    --ink: #10231a;
    --muted: #5a6b61;
    --line: #e6dfcf;

    --font: "Tajawal", system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif;
    --radius: 20px;
    --radius-sm: 12px;
    --header-h: 72px;
    --shadow-sm: 0 2px 8px rgba(5, 42, 28, .06);
    --shadow: 0 18px 48px -18px rgba(5, 42, 28, .28);
    --ease-out: cubic-bezier(.16, 1, .3, 1);
    --ease-back: cubic-bezier(.34, 1.56, .64, 1);
}

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

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
    margin: 0;
    font-family: var(--font);
    font-size: 17px;
    line-height: 1.75;
    color: var(--ink);
    background: var(--ivory);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img, svg, video, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; line-height: 1.3; font-weight: 800; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; cursor: pointer; }

.icon { width: 1.25em; height: 1.25em; flex-shrink: 0; }

.container {
    width: 100%;
    max-width: 1200px;
    margin-inline: auto;
    padding-inline: 16px;
}
@media (min-width: 768px) { .container { padding-inline: 32px; } }

:focus-visible {
    outline: 3px solid var(--gold400);
    outline-offset: 3px;
    border-radius: 6px;
}

.skip-link {
    position: fixed;
    top: -100px;
    right: 16px;
    z-index: 1000;
    padding: 10px 18px;
    background: var(--gold500);
    color: var(--g950);
    border-radius: 10px;
    font-weight: 700;
}
.skip-link:focus { top: 12px; }

/* حقل اصطياد البوتات: مخفي بدون إزاحة (الإزاحة لليسار تسبب تمريراً أفقياً في الصفحات العربية) */
.hp-field {
    position: absolute !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    clip-path: inset(50%);
    opacity: 0;
    pointer-events: none;
}

/* ---------- الأزرار ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5em;
    min-height: 46px;
    padding: .65em 1.4em;
    border: 1.5px solid transparent;
    border-radius: 999px;
    font-weight: 700;
    font-size: 1rem;
    line-height: 1.2;
    white-space: nowrap;
    transition: transform .25s var(--ease-out), box-shadow .25s, background-color .25s, border-color .25s, color .25s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-lg { min-height: 54px; padding: .8em 1.8em; font-size: 1.06rem; }

.btn-gold {
    color: var(--g950);
    background: linear-gradient(135deg, var(--gold300), var(--gold500) 55%, var(--gold600));
    box-shadow: 0 10px 28px -10px rgba(201, 162, 75, .75);
}
.btn-gold:hover { box-shadow: 0 16px 34px -10px rgba(201, 162, 75, .9); }

.btn-ghost {
    color: #fff;
    border-color: rgba(255, 255, 255, .32);
    background: rgba(255, 255, 255, .06);
    backdrop-filter: blur(6px);
}
.btn-ghost:hover { border-color: var(--gold300); color: var(--gold100); }

.btn-green {
    color: #fff;
    background: linear-gradient(135deg, var(--g600), var(--g800));
    box-shadow: 0 10px 28px -12px rgba(7, 51, 34, .7);
}

/* ---------- الرأس ---------- */
.site-header {
    position: fixed;
    inset: 0 0 auto;
    z-index: 100;
    height: var(--header-h);
    color: var(--ink);
    background: rgba(251, 248, 240, .9);
    backdrop-filter: blur(14px) saturate(1.4);
    -webkit-backdrop-filter: blur(14px) saturate(1.4);
    border-bottom: 1px solid var(--line);
    transition: background-color .35s, border-color .35s, color .35s;
}
.page-home .site-header:not(.is-scrolled):not(.nav-open) {
    color: #fff;
    background: transparent;
    border-color: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}
.header-inner {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.25rem; }
.logo-mark { width: 38px; height: 38px; color: var(--gold500); }
.brand-light { color: #fff; }

.main-nav { display: flex; align-items: center; gap: 24px; }
.main-nav ul { display: flex; gap: 22px; }
.nav-actions { display: flex; align-items: center; gap: 8px; }
.nav-logout { display: contents; }
.nav-login {
    min-height: 42px;
    padding: .5em 1em;
    font-size: .95rem;
    color: inherit;
    background: transparent;
    border-color: currentColor;
    opacity: .9;
}
.nav-login:hover { opacity: 1; color: var(--gold500); border-color: var(--gold500); }
.nav-login .icon { width: 1.1em; height: 1.1em; }
.nav-actions .nav-cta { min-height: 42px; padding: .5em 1.2em; }
.main-nav ul a {
    position: relative;
    font-weight: 500;
    opacity: .88;
    transition: opacity .2s, color .2s;
}
.main-nav ul a::after {
    content: "";
    position: absolute;
    inset-inline: 0;
    bottom: -6px;
    height: 2px;
    border-radius: 2px;
    background: var(--gold500);
    transform: scaleX(0);
    transition: transform .3s var(--ease-out);
}
.main-nav ul a:hover, .main-nav ul a[aria-current="page"] { opacity: 1; }
.main-nav ul a:hover::after, .main-nav ul a[aria-current="page"]::after { transform: scaleX(1); }

.nav-toggle {
    display: none;
    width: 46px;
    height: 46px;
    place-items: center;
    border: 1px solid currentColor;
    border-radius: 14px;
    background: transparent;
    color: inherit;
    opacity: .9;
}
.nav-toggle .icon { width: 24px; height: 24px; }
.nav-toggle .icon-close, .nav-open .nav-toggle .icon-open { display: none; }
.nav-open .nav-toggle .icon-close { display: block; }

@media (max-width: 1180px) {
    .nav-toggle { display: grid; }
    .nav-actions { flex-direction: column; align-items: stretch; gap: 10px; }
    .nav-actions .btn { width: 100%; min-height: 48px; }
    .nav-login { color: var(--g700); border-color: var(--g700); }
    .main-nav {
        position: fixed;
        top: var(--header-h);
        inset-inline: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 18px;
        padding: 20px 16px 28px;
        background: var(--ivory);
        color: var(--ink);
        border-bottom: 1px solid var(--line);
        box-shadow: var(--shadow);
        transform: translateY(-12px);
        opacity: 0;
        visibility: hidden;
        transition: transform .3s var(--ease-out), opacity .25s, visibility .3s;
    }
    .nav-open .main-nav { transform: none; opacity: 1; visibility: visible; }
    .main-nav ul { flex-direction: column; gap: 4px; }
    .main-nav ul a { display: block; padding: 12px 8px; font-size: 1.1rem; border-bottom: 1px solid var(--line); }
    .main-nav ul a::after { display: none; }
    .nav-cta { width: 100%; }
}

/* =========================================================
   المشهد الافتتاحي
   ========================================================= */
.hero {
    position: relative;
    isolation: isolate;
    min-height: 100vh;
    min-height: 100svh;
    display: grid;
    place-items: center;
    padding: calc(var(--header-h) + 8px) 16px 88px;
    overflow: hidden;
    color: #fff;
    background: radial-gradient(ellipse 80% 70% at 50% 45%, var(--g700) 0%, var(--g900) 55%, var(--g950) 100%);
}

.hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero-bg > * { position: absolute; inset: 0; width: 100%; height: 100%; }

.hero-video { object-fit: cover; opacity: .28; filter: saturate(.6); }

.hero-pattern {
    color: var(--gold400);
    opacity: .07;
    transform-origin: 50% 50%;
    animation: kenburns 40s ease-in-out infinite alternate;
}
@keyframes kenburns {
    from { transform: scale(1) rotate(0deg); }
    to   { transform: scale(1.2) rotate(4deg); }
}

.hero-glow {
    inset: auto !important;
    top: 50% !important;
    left: 50% !important;
    width: 90vmin !important;
    height: 90vmin !important;
    translate: -50% -52%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(218, 185, 106, .22) 0%, rgba(218, 185, 106, .06) 40%, transparent 68%);
    animation: glowPulse 7s ease-in-out 3s infinite;
}
@keyframes glowPulse {
    0%, 100% { opacity: 1; scale: 1; }
    50%      { opacity: .65; scale: 1.08; }
}

.hero-burst {
    inset: auto !important;
    top: 50% !important;
    left: 50% !important;
    width: 40px !important;
    height: 40px !important;
    translate: -50% -50%;
    border-radius: 50%;
    border: 2px solid var(--gold300);
    box-shadow: 0 0 40px 10px rgba(234, 208, 143, .5), inset 0 0 30px rgba(234, 208, 143, .5);
    opacity: 0;
    animation: burst 1.8s var(--ease-out) .25s both;
}
@keyframes burst {
    0%   { opacity: 0; scale: .2; }
    15%  { opacity: 1; }
    100% { opacity: 0; scale: 60; }
}

.hero-vignette {
    background:
        radial-gradient(ellipse at center, transparent 45%, rgba(1, 12, 8, .55) 100%),
        linear-gradient(to bottom, transparent 70%, rgba(3, 23, 15, .8) 100%);
}

.hero-content {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: clamp(20px, 3.5vh, 40px);
}

/* ---------- المدار ---------- */
.orbit {
    --size: min(92vw, 60vh, 640px);
    --r: calc(var(--size) * .42);
    --item: clamp(46px, calc(var(--size) * .115), 72px);
    position: relative;
    width: var(--size);
    height: var(--size);
    flex-shrink: 0;
}
@supports (height: 1svh) {
    .orbit { --size: min(92vw, 60svh, 640px); }
}

.orbit-rings { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.ring { fill: none; stroke: var(--gold400); vector-effect: non-scaling-stroke; }
.ring-outer {
    stroke-width: 1.2;
    opacity: .55;
    stroke-dasharray: 100;
    animation: drawRing 1.6s var(--ease-out) 1.4s both;
}
.ring-inner {
    stroke-width: 1;
    opacity: .25;
    stroke-dasharray: 100;
    animation: drawRing 1.8s var(--ease-out) 1.7s both;
}
.ring-dots {
    stroke-width: 2;
    stroke-linecap: round;
    stroke-dasharray: .1 3.2;
    opacity: .45;
    transform-box: fill-box;
    transform-origin: center;
    animation: fadeIn 1s ease 2.2s both, spin 160s linear infinite;
}
@keyframes drawRing {
    from { stroke-dashoffset: 100; }
    to   { stroke-dashoffset: 0; }
}

.orbit-center {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    pointer-events: none;
}

.hero-mark {
    width: calc(var(--size) * .085);
    height: calc(var(--size) * .085);
    min-width: 34px;
    min-height: 34px;
    color: var(--gold400);
    margin-bottom: calc(var(--size) * .015);
    animation: markIn 1.2s var(--ease-back) 1.5s both, spin 60s linear 2.7s infinite;
}
@keyframes markIn {
    from { opacity: 0; transform: scale(0) rotate(-180deg); }
    to   { opacity: 1; transform: scale(1) rotate(0deg); }
}

.hero-title {
    font-size: clamp(1.8rem, calc(var(--size) * .105), 4.2rem);
    font-weight: 900;
    line-height: 1.25;
}
.hero-title-text {
    display: inline-block;
    padding: .05em .15em .15em;
    color: var(--gold300);
    background: linear-gradient(100deg, var(--gold300) 20%, #fff8e1 40%, var(--gold400) 55%, var(--gold300) 80%);
    background-size: 250% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation:
        titleZoom 2s var(--ease-out) .35s both,
        shimmer 6s linear 2.6s infinite;
}
.hero-title { filter: drop-shadow(0 6px 24px rgba(201, 162, 75, .35)); }
@keyframes titleZoom {
    0%   { opacity: 0; transform: scale(3.2); filter: blur(22px); }
    55%  { opacity: 1; filter: blur(0); }
    100% { opacity: 1; transform: scale(1); filter: blur(0); }
}
@keyframes shimmer {
    from { background-position: 125% 0; }
    to   { background-position: -125% 0; }
}

.hero-kicker {
    margin-top: calc(var(--size) * .012);
    font-size: clamp(.8rem, calc(var(--size) * .026), 1.05rem);
    font-weight: 500;
    color: rgba(255, 255, 255, .8);
    max-width: 62%;
    animation: fadeUp .9s var(--ease-out) 1.9s both;
}

/* عناصر المدار: تتموضع بالـ CSS، والدوران مستمر ويتوقف عند التمرير فوقه */
.orbit-items {
    position: absolute;
    inset: 0;
    animation: spin 90s linear 3.4s infinite;
}
.orbit-slot {
    --a: calc(var(--i) * (360deg / var(--n)));
    position: absolute;
    top: 50%;
    left: 50%;
    width: var(--item);
    height: var(--item);
    transform: translate(-50%, -50%) rotate(var(--a)) translateY(calc(var(--r) * -1)) rotate(calc(var(--a) * -1));
    animation: slotIn .9s var(--ease-back) calc(2.1s + var(--i) * .08s) both;
}
@keyframes slotIn {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) rotate(calc(var(--a) - 90deg)) translateY(0) rotate(calc(var(--a) * -1 + 90deg)) scale(.2);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) rotate(var(--a)) translateY(calc(var(--r) * -1)) rotate(calc(var(--a) * -1)) scale(1);
    }
}

.orbit-item {
    position: relative;
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    animation: spin 90s linear 3.4s infinite reverse;
}
.orbit-icon {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    color: var(--gold300);
    background: radial-gradient(circle at 30% 25%, rgba(255, 255, 255, .16), rgba(255, 255, 255, .03) 60%), var(--g800);
    border: 1.5px solid rgba(218, 185, 106, .55);
    box-shadow: 0 0 0 5px rgba(218, 185, 106, .07), 0 10px 30px -8px rgba(0, 0, 0, .6);
    transition: transform .35s var(--ease-back), background-color .3s, color .3s, box-shadow .3s;
}
.orbit-icon .icon { width: 46%; height: 46%; }
.orbit-label {
    position: absolute;
    top: calc(100% + 6px);
    left: 50%;
    translate: -50% 0;
    padding: 1px 8px;
    border-radius: 999px;
    font-size: clamp(.68rem, calc(var(--size) * .022), .9rem);
    font-weight: 700;
    line-height: 1.6;
    white-space: nowrap;
    color: #fff;
    background: rgba(3, 23, 15, .55);
    transition: background-color .3s, color .3s;
}
.orbit-item:hover .orbit-icon,
.orbit-item:focus-visible .orbit-icon {
    transform: scale(1.18);
    color: var(--g950);
    background: linear-gradient(135deg, var(--gold300), var(--gold500));
    box-shadow: 0 0 0 7px rgba(218, 185, 106, .18), 0 0 36px rgba(218, 185, 106, .6);
}
.orbit-item:hover .orbit-label,
.orbit-item:focus-visible .orbit-label { background: var(--gold500); color: var(--g950); }
.orbit-item:focus-visible { outline: none; }

.orbit:hover .orbit-items,
.orbit:hover .orbit-item,
.orbit:focus-within .orbit-items,
.orbit:focus-within .orbit-item { animation-play-state: paused; }

.hero-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 22px;
    text-align: center;
    max-width: 640px;
    animation: fadeUp 1s var(--ease-out) 3s both;
}
.hero-lead { font-size: clamp(1rem, 2.4vw, 1.18rem); color: rgba(255, 255, 255, .82); }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

.scroll-cue {
    position: absolute;
    bottom: 22px;
    left: 50%;
    translate: -50% 0;
    width: 26px;
    height: 42px;
    border: 2px solid rgba(255, 255, 255, .45);
    border-radius: 14px;
    animation: fadeIn 1s ease 3.6s both;
}
.scroll-cue span {
    position: absolute;
    top: 7px;
    left: 50%;
    width: 4px;
    height: 8px;
    margin-left: -2px;
    border-radius: 2px;
    background: var(--gold300);
    animation: scrollDot 1.8s ease-in-out infinite;
}
@keyframes scrollDot {
    0%   { opacity: 0; transform: translateY(0); }
    30%  { opacity: 1; }
    100% { opacity: 0; transform: translateY(14px); }
}

.page-home .site-header { animation: fadeDown .9s var(--ease-out) 2.8s both; }

@keyframes spin    { to { rotate: 360deg; } }
@keyframes fadeIn  { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeUp  { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes fadeDown{ from { opacity: 0; transform: translateY(-18px); } to { opacity: 1; transform: none; } }

@media (max-width: 600px) {
    .hero { padding-bottom: 76px; }
    .hero-mark { display: none; }
    .hero-kicker { max-width: 58%; }
    .hero-actions .btn { flex: 1 1 100%; }
    .hero-footer { gap: 18px; }
    .scroll-cue { display: none; }
}
@media (max-height: 560px) and (orientation: landscape) {
    .hero-content { flex-direction: row; justify-content: center; gap: 32px; }
    .hero-footer { text-align: start; align-items: flex-start; }
    .orbit { --size: min(78vh, 46vw); }
}

/* =========================================================
   الأقسام
   ========================================================= */
.section { padding: clamp(64px, 10vw, 120px) 0; }

.section-head {
    max-width: 680px;
    margin: 0 auto clamp(40px, 6vw, 64px);
    text-align: center;
}
.section-head h2 { font-size: clamp(1.75rem, 4vw, 2.6rem); margin-block: 10px 14px; color: var(--g800); }
.section-head p { font-size: 1.08rem; color: var(--muted); }
.section-head-light h2 { color: #fff; }
.section-head-light p { color: rgba(255, 255, 255, .75); }

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: .95rem;
    color: var(--gold600);
}
.eyebrow::before, .eyebrow::after {
    content: "";
    width: 7px;
    height: 7px;
    background: var(--gold500);
    rotate: 45deg;
}
.section-head-light .eyebrow { color: var(--gold300); }

/* ---------- لماذا ---------- */
.pillars { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.pillar {
    padding: 32px 28px;
    text-align: center;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}
.pillar-icon {
    display: inline-grid;
    place-items: center;
    width: 64px;
    height: 64px;
    margin-bottom: 18px;
    border-radius: 50%;
    color: var(--g700);
    background: var(--g100);
    box-shadow: 0 0 0 8px rgba(227, 241, 233, .5);
}
.pillar-icon .icon { width: 30px; height: 30px; }
.pillar h3 { font-size: 1.3rem; color: var(--g800); margin-bottom: 8px; }
.pillar p { color: var(--muted); }

/* ---------- الخدمات ---------- */
.section-services { background: linear-gradient(to bottom, var(--ivory), var(--sand)); }
.service-group + .service-group { margin-top: clamp(48px, 7vw, 80px); }
.group-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 6px 18px;
    margin-bottom: 24px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--line);
}
.group-head h3 { font-size: clamp(1.35rem, 3vw, 1.7rem); color: var(--g800); }
.group-head p { color: var(--muted); }

.cards { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 26px 24px 22px;
    overflow: hidden;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    transition: transform .4s var(--ease-out), box-shadow .4s, border-color .4s;
}
.card::before {
    content: "";
    position: absolute;
    top: -40px;
    left: -40px;
    width: 120px;
    height: 120px;
    border: 1px solid var(--gold300);
    rotate: 45deg;
    opacity: .35;
    transition: rotate .8s var(--ease-out), opacity .4s;
}
.card:hover {
    transform: translateY(-6px);
    border-color: var(--gold400);
    box-shadow: var(--shadow);
}
.card:hover::before { rotate: 90deg; opacity: .7; }
.card:target { border-color: var(--gold500); box-shadow: 0 0 0 4px rgba(201, 162, 75, .25), var(--shadow); }

.card-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.card-icon {
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    border-radius: 16px;
    color: var(--gold300);
    background: linear-gradient(145deg, var(--g600), var(--g800));
    box-shadow: 0 10px 20px -10px rgba(7, 51, 34, .7);
}
.card-icon .icon { width: 28px; height: 28px; }
.card h4 { font-size: 1.22rem; color: var(--g800); }
.card p { color: var(--muted); flex: 1; overflow-wrap: anywhere; }

.badge {
    padding: 3px 12px;
    border-radius: 999px;
    font-size: .8rem;
    font-weight: 700;
}
.badge-free { color: var(--g700); background: var(--g100); }
.badge-paid { color: var(--gold600); background: var(--gold100); }

.card-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 6px;
    font-weight: 700;
    color: var(--g600);
    transition: gap .3s var(--ease-out), color .2s;
}
.card-link:hover { gap: 12px; color: var(--gold600); }
.card-note { margin-top: 6px; font-size: .92rem; font-weight: 500; color: var(--gold600); }

/* ---------- كيف نعمل ---------- */
.section-how {
    position: relative;
    color: #fff;
    background: radial-gradient(ellipse at 50% 0%, var(--g700), var(--g900) 70%);
    overflow: hidden;
}
.steps {
    position: relative;
    display: grid;
    gap: 28px;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    counter-reset: step;
}
.step { position: relative; text-align: center; padding: 0 8px; }
.step-num {
    position: relative;
    z-index: 1;
    display: inline-grid;
    place-items: center;
    width: 64px;
    height: 64px;
    margin-bottom: 16px;
    border-radius: 50%;
    font-size: 1.6rem;
    font-weight: 900;
    color: var(--g950);
    background: linear-gradient(135deg, var(--gold300), var(--gold500));
    box-shadow: 0 0 0 8px rgba(218, 185, 106, .14);
}
.step h3 { font-size: 1.25rem; margin-bottom: 6px; }
.step p { color: rgba(255, 255, 255, .72); }
@media (min-width: 1000px) {
    .steps { grid-template-columns: repeat(4, 1fr); }
    .step:not(:last-child)::after {
        content: "";
        position: absolute;
        top: 32px;
        inset-inline-start: calc(50% + 44px);
        width: calc(100% - 88px + 28px);
        border-top: 2px dashed rgba(218, 185, 106, .4);
    }
}

/* ---------- شريط المتابعة ---------- */
.section-track { padding-block: clamp(56px, 8vw, 96px) 0; }
.track-band {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: clamp(28px, 5vw, 48px);
    border-radius: 28px;
    color: #fff;
    background:
        radial-gradient(circle at 10% 20%, rgba(218, 185, 106, .25), transparent 45%),
        linear-gradient(135deg, var(--g600), var(--g800));
    box-shadow: var(--shadow);
}
.track-band h2 { font-size: clamp(1.4rem, 3vw, 2rem); margin-bottom: 6px; }
.track-band p { color: rgba(255, 255, 255, .8); }
@media (max-width: 600px) { .track-band .btn { width: 100%; } }

/* ---------- التثبيت ---------- */
.install-grid {
    display: grid;
    gap: 40px;
    align-items: center;
    grid-template-columns: 1.2fr 1fr;
}
.install-text h2 { font-size: clamp(1.7rem, 4vw, 2.5rem); color: var(--g800); margin-block: 10px 14px; }
.install-text > p { color: var(--muted); font-size: 1.08rem; margin-bottom: 24px; }
.install-text .btn { margin-bottom: 12px; }
.install-ios, .install-done, .install-hint {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    font-size: .98rem;
    color: var(--muted) !important;
    margin: 0 !important;
}
.install-ios .icon, .install-done .icon { color: var(--g600); }
[hidden] { display: none !important; }

.install-visual { display: grid; place-items: center; }
.phone {
    width: 220px;
    aspect-ratio: 9 / 18.5;
    padding: 10px;
    border-radius: 38px;
    background: linear-gradient(145deg, #1d2a24, #0b120f);
    box-shadow: var(--shadow), inset 0 0 0 2px rgba(255, 255, 255, .08);
    rotate: -6deg;
    transition: rotate .6s var(--ease-out);
}
.phone:hover { rotate: 0deg; }
.phone-screen {
    height: 100%;
    display: grid;
    place-content: center;
    justify-items: center;
    gap: 12px;
    border-radius: 30px;
    color: var(--gold300);
    font-weight: 900;
    font-size: 1.4rem;
    background: radial-gradient(circle at 50% 40%, var(--g600), var(--g900) 75%);
}
.phone-mark { width: 72px; height: 72px; animation: spin 30s linear infinite; }
@media (max-width: 760px) {
    .install-grid { grid-template-columns: 1fr; text-align: center; }
    .install-text .eyebrow, .install-ios, .install-done, .install-hint { justify-content: center; }
    .install-text .btn { width: 100%; }
    .phone { width: 180px; }
}

/* ---------- الذيل ---------- */
.site-footer {
    margin-top: clamp(40px, 6vw, 64px);
    padding-top: 56px;
    color: rgba(255, 255, 255, .75);
    background: var(--g950);
}
.footer-grid {
    display: grid;
    gap: 36px;
    grid-template-columns: 1.6fr 1fr 1fr;
    padding-bottom: 40px;
}
.footer-about p { margin-top: 14px; max-width: 360px; }
.footer-links h2 { font-size: 1.05rem; color: var(--gold300); margin-bottom: 12px; }
.footer-links li + li { margin-top: 6px; }
.footer-links a { transition: color .2s; }
.footer-links a:hover { color: #fff; }
.footer-bottom {
    padding-block: 18px calc(18px + env(safe-area-inset-bottom));
    border-top: 1px solid rgba(255, 255, 255, .08);
    font-size: .9rem;
}
@media (max-width: 760px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-about { grid-column: 1 / -1; }
}

/* ---------- صفحات داخلية مؤقتة ---------- */
.page-plain main { padding-top: var(--header-h); }
.placeholder {
    min-height: 60vh;
    display: grid;
    place-content: center;
    justify-items: center;
    gap: 16px;
    padding: 64px 16px;
    text-align: center;
}
.placeholder .logo-mark { width: 72px; height: 72px; animation: spin 30s linear infinite; }
.placeholder h1 { font-size: clamp(1.7rem, 4vw, 2.4rem); color: var(--g800); }
.placeholder p { color: var(--muted); max-width: 480px; }

/* =========================================================
   مكونات عامة إضافية
   ========================================================= */
.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    min-height: 0 !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    clip-path: inset(50%) !important;
    white-space: nowrap !important;
    border: 0 !important;
}
.icon-sm { width: 1em; height: 1em; }
.container-narrow { max-width: 860px; }
.btn-block { width: 100%; }
.btn-outline {
    color: var(--g700);
    border-color: var(--g700);
    background: transparent;
}
.btn-outline:hover { color: #fff; background: var(--g700); }
.btn.is-loading { opacity: .7; pointer-events: none; }

/* ---------- ترويسة الصفحات الداخلية ---------- */
.page-hero {
    position: relative;
    overflow: hidden;
    padding: calc(var(--header-h) + clamp(40px, 7vw, 80px)) 0 clamp(48px, 7vw, 88px);
    margin-top: calc(var(--header-h) * -1);
    color: #fff;
    text-align: center;
    background:
        radial-gradient(ellipse 60% 80% at 50% 0%, rgba(218, 185, 106, .18), transparent 60%),
        radial-gradient(ellipse at 50% 30%, var(--g700), var(--g900) 70%);
}
.page-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: .06;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cg fill='none' stroke='%23dab96a'%3E%3Crect x='38' y='38' width='44' height='44'/%3E%3Crect x='38' y='38' width='44' height='44' transform='rotate(45 60 60)'/%3E%3Ccircle cx='60' cy='60' r='10'/%3E%3C/g%3E%3C/svg%3E");
}
.page-hero-inner { position: relative; max-width: 760px; }
.page-hero h1 { font-size: clamp(1.9rem, 5vw, 3rem); margin-block: 10px 12px; }
.page-hero p { color: rgba(255, 255, 255, .8); font-size: 1.1rem; }
.page-hero .eyebrow { color: var(--gold300); }
.page-hero-sm { padding-bottom: clamp(36px, 5vw, 56px); }
.page-hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 14px 24px;
    margin-top: 26px;
}
.hero-stat { color: rgba(255, 255, 255, .8); }
.hero-stat strong { color: var(--gold300); font-size: 1.5rem; font-weight: 900; }

/* ---------- صفحة الشركاء ---------- */
.section-partners { padding-top: clamp(32px, 5vw, 56px); }
.partners-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 28px;
}
.field-search {
    flex: 1 1 280px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding-inline: 16px;
    background: var(--white);
    border: 1.5px solid var(--line);
    border-radius: 999px;
    transition: border-color .2s, box-shadow .2s;
}
.field-search:focus-within { border-color: var(--g500); box-shadow: 0 0 0 4px rgba(22, 120, 79, .12); }
.field-search .icon { color: var(--muted); }
.field-search input {
    flex: 1;
    min-width: 0;
    height: 50px;
    border: 0;
    outline: 0;
    background: transparent;
    font: inherit;
    color: inherit;
}
.field-select select {
    height: 53px;
    padding-inline: 18px 40px;
    border-radius: 999px;
}

.partners-grid {
    display: grid;
    gap: 22px;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr));
}
.partner-card {
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-width: 0;
    overflow: hidden;
    padding: 24px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    transition: transform .4s var(--ease-out), box-shadow .4s, border-color .4s;
}
.partner-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: var(--gold300); }
.partner-head { display: flex; align-items: center; gap: 16px; }
.partner-logo {
    flex-shrink: 0;
    display: grid;
    place-items: center;
    width: 76px;
    height: 76px;
    padding: 8px;
    overflow: hidden;
    border-radius: 18px;
    background: var(--ivory);
    border: 1px solid var(--line);
}
.partner-logo img { width: 100%; height: 100%; object-fit: contain; }
.partner-initials {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    border-radius: 12px;
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--gold300);
    background: linear-gradient(145deg, var(--g600), var(--g800));
}
.partner-name { font-size: 1.18rem; color: var(--g800); line-height: 1.45; overflow-wrap: anywhere; }
.partner-head > div { min-width: 0; }
.partner-loc {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 4px;
    font-size: .92rem;
    color: var(--muted);
}
.partner-loc .icon { width: 1.05em; height: 1.05em; color: var(--gold600); }
.partner-bio { flex: 1; color: var(--muted); font-size: .98rem; line-height: 1.85; overflow-wrap: anywhere; word-break: break-word; }
.partner-map {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: .92rem;
    font-weight: 700;
    color: var(--g700);
    background: var(--g100);
    transition: background-color .2s, color .2s;
}
.partner-map:hover { color: #fff; background: var(--g600); }
.partner-social {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding-top: 16px;
    border-top: 1px dashed var(--line);
}
.social {
    --brand: var(--g600);
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 11px;
    color: var(--g700);
    background: var(--ivory);
    border: 1px solid var(--line);
    transition: transform .25s var(--ease-back), background .25s, color .25s, border-color .25s;
}
.social .icon { width: 21px; height: 21px; }
.social:hover, .social:focus-visible {
    transform: translateY(-3px);
    color: #fff;
    background: var(--brand);
    border-color: transparent;
}
.social-whatsapp  { --brand: #25d366; color: #128c4a; background: #e9f9ef; border-color: #c8efd7; }
.social-x         { --brand: #000; }
.social-instagram { --brand: linear-gradient(45deg, #f58529, #dd2a7b 50%, #8134af); }
.social-facebook  { --brand: #1877f2; }
.social-youtube   { --brand: #ff0000; }
.social-snapchat  { --brand: #fffc00; }
.social-snapchat:hover, .social-snapchat:focus-visible { color: #111; }
.social-tiktok    { --brand: #111; }
.social-globe     { --brand: var(--g600); }

.no-results { text-align: center; padding: 40px 0; color: var(--muted); }

.empty-state {
    display: grid;
    justify-items: center;
    gap: 12px;
    max-width: 520px;
    margin: 0 auto;
    padding: 48px 24px;
    text-align: center;
    background: var(--white);
    border: 1.5px dashed var(--gold300);
    border-radius: var(--radius);
}
.empty-state h2 { color: var(--g800); font-size: 1.6rem; }
.empty-state p { color: var(--muted); margin-bottom: 8px; }
.empty-icon {
    display: grid;
    place-items: center;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    color: var(--gold600);
    background: var(--gold100);
}
.empty-icon .icon { width: 34px; height: 34px; }
.empty-state-inline { padding: 32px 24px; }

.join-band {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: clamp(40px, 6vw, 64px);
    padding: clamp(24px, 4vw, 40px);
    border-radius: 24px;
    background: linear-gradient(135deg, var(--gold100), var(--sand));
    border: 1px solid var(--gold300);
}
.join-band h2 { color: var(--g800); font-size: clamp(1.3rem, 3vw, 1.7rem); margin-bottom: 4px; }
.join-band p { color: var(--muted); }
@media (max-width: 600px) { .join-band .btn { width: 100%; } }

/* ---------- شريط الشعارات في الرئيسية ---------- */
.section-marquee { padding-bottom: clamp(48px, 7vw, 80px); overflow: hidden; }
.section-marquee .section-head { margin-bottom: 32px; }
/* الوضع الافتراضي: الجمعيات ثابتة في المنتصف، كل واحدة مرة واحدة */
.marquee {
    --gap: 20px;
    display: flex;
    justify-content: center;
    gap: var(--gap);
    overflow: hidden;
    padding: 10px 16px;
}
.marquee-track {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--gap);
}
/* للقياس فقط: هل تتجاوز الجمعيات عرض الشاشة؟ */
.marquee.is-measuring .marquee-track {
    flex-wrap: nowrap;
    width: max-content;
}
/* الحركة: فقط عندما يمتلئ الشريط (يفعّلها app.js) */
.marquee.is-animating {
    justify-content: flex-start;
    direction: ltr;
    padding-inline: 0;
    -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
    mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}
.marquee.is-animating .marquee-track {
    flex-shrink: 0;
    flex-wrap: nowrap;
    min-width: 100%;
    justify-content: space-around;
    animation: marquee var(--marquee-duration, 45s) linear infinite;
}
.marquee:hover .marquee-track, .marquee:focus-within .marquee-track { animation-play-state: paused; }
@keyframes marquee {
    to { transform: translateX(calc(-100% - var(--gap))); }
}
.marquee-item {
    direction: rtl;
    display: flex;
    align-items: center;
    gap: 12px;
    height: 84px;
    padding: 12px 20px 12px 14px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: var(--shadow-sm);
    transition: border-color .3s, transform .3s var(--ease-out);
}
.marquee-item:hover { border-color: var(--gold400); transform: translateY(-3px); }
.marquee-logo { display: grid; place-items: center; width: 58px; height: 58px; flex-shrink: 0; }
.marquee-logo img { width: 100%; height: 100%; object-fit: contain; }
.marquee-logo .partner-initials { font-size: 1.2rem; }
.marquee-name { font-weight: 700; color: var(--g800); white-space: nowrap; }
.marquee-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 28px; }

/* =========================================================
   النماذج
   ========================================================= */
.section-form { padding-top: clamp(28px, 4vw, 48px); }
.form { display: grid; gap: 22px; }
.form-card {
    margin: 0;
    padding: clamp(20px, 4vw, 32px);
    min-width: 0;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}
.form-card legend {
    display: flex;
    align-items: center;
    gap: 10px;
    float: right;
    width: 100%;
    margin-bottom: 20px;
    padding: 0;
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--g800);
}
.form-card legend + * { clear: both; }
.legend-num {
    display: inline-grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    font-size: 1rem;
    color: var(--g950);
    background: linear-gradient(135deg, var(--gold300), var(--gold500));
}
.field { display: grid; gap: 6px; margin-bottom: 18px; min-width: 0; }
.field:last-child { margin-bottom: 0; }
.field-row { display: grid; gap: 0 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.field-row .field:last-child { margin-bottom: 18px; }
.form-card > .field-row:last-child .field { margin-bottom: 0; }
.field label, .field .label { font-weight: 700; font-size: .98rem; color: var(--ink); }
.req { color: #c0392b; }
.opt { font-weight: 400; color: var(--muted); font-size: .9em; }

.field input[type="text"],
.field input[type="tel"],
.field input[type="password"],
.field input[type="number"],
.field input[type="url"],
.field input[type="datetime-local"],
.field input[type="date"],
.field select,
.field textarea,
.field-select select {
    width: 100%;
    min-height: 50px;
    padding: 10px 14px;
    font: inherit;
    font-size: 1rem;
    color: var(--ink);
    background: var(--ivory);
    border: 1.5px solid var(--line);
    border-radius: var(--radius-sm);
    transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.field textarea { resize: vertical; min-height: 110px; line-height: 1.8; }
.field select, .field-select select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235a6b61' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left 14px center;
    background-size: 18px;
    padding-left: 40px;
}
.field-select select { background-color: var(--white); }
.field input:focus, .field select:focus, .field textarea:focus, .field-select select:focus {
    outline: none;
    border-color: var(--g500);
    background-color: var(--white);
    box-shadow: 0 0 0 4px rgba(22, 120, 79, .12);
}
.field [aria-invalid="true"] { border-color: #d64545; background-color: #fff7f7; }
.field input[dir="ltr"]::placeholder { text-align: left; }
.field input[dir="ltr"] { text-align: left; }
.field-hint { display: flex; align-items: center; gap: 4px; font-size: .88rem; color: var(--muted); }
.field-counter { justify-content: flex-end; }
.field-counter.is-near { color: #c0392b; font-weight: 700; }
.field-error { font-size: .9rem; font-weight: 700; color: #c0392b; }
.group-note {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 4px 0 16px;
    padding: 10px 14px;
    font-size: .92rem;
    color: var(--muted);
    background: var(--ivory);
    border-radius: 10px;
}

.input-icon { position: relative; }
.input-icon > .icon {
    position: absolute;
    top: 50%;
    left: 14px;
    translate: 0 -50%;
    width: 20px;
    height: 20px;
    color: var(--muted);
    pointer-events: none;
}
.field .input-icon input { padding-left: 44px; }
.input-whatsapp > .icon { color: #128c4a; }

.links-grid { display: grid; gap: 0 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.links-grid .field { margin-bottom: 16px; }

.dropzone {
    position: relative;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px;
    cursor: pointer;
    background: var(--ivory);
    border: 2px dashed var(--line);
    border-radius: var(--radius-sm);
    transition: border-color .2s, background-color .2s;
}
.dropzone:hover, .dropzone.is-drag { border-color: var(--g500); background: var(--g100); }
.dropzone.is-error { border-color: #d64545; }
.dropzone input[type="file"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.dropzone:focus-within { border-color: var(--g500); box-shadow: 0 0 0 4px rgba(22, 120, 79, .12); }
.dropzone-preview {
    flex-shrink: 0;
    display: grid;
    place-items: center;
    width: 72px;
    height: 72px;
    padding: 6px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 14px;
}
.dropzone-preview img { max-width: 100%; max-height: 100%; object-fit: contain; }
.dropzone-text { display: grid; gap: 2px; min-width: 0; }
.dropzone-text .icon { width: 28px; height: 28px; color: var(--g600); }
.dropzone-text strong { color: var(--g700); overflow-wrap: anywhere; }
.dropzone-text small { color: var(--muted); }

.check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-size: .98rem;
    line-height: 1.7;
}
.check input { flex-shrink: 0; width: 20px; height: 20px; margin-top: 4px; accent-color: var(--g600); }
.form-submit {
    display: grid;
    gap: 16px;
    padding: clamp(20px, 4vw, 28px);
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.alert {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 22px;
    padding: 16px 18px;
    border-radius: 14px;
    font-size: .98rem;
}
.alert > .icon { width: 24px; height: 24px; margin-top: 2px; }
.alert:focus { outline: none; }
.alert-error { color: #8e1f1f; background: #fdeeee; border: 1px solid #f3c4c4; }
.alert-success { color: var(--g700); background: var(--g100); border: 1px solid #bfdfcc; }

.success-card {
    display: grid;
    justify-items: center;
    gap: 14px;
    padding: clamp(32px, 6vw, 56px) 24px;
    text-align: center;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.success-icon {
    display: grid;
    place-items: center;
    width: 84px;
    height: 84px;
    border-radius: 50%;
    color: #fff;
    background: linear-gradient(135deg, var(--g500), var(--g700));
    box-shadow: 0 0 0 10px var(--g100);
    animation: markIn .8s var(--ease-back) both;
}
.success-icon .icon { width: 42px; height: 42px; stroke-width: 2.4; }
.success-card h2 { color: var(--g800); font-size: clamp(1.5rem, 4vw, 2rem); }
.success-card p { color: var(--muted); max-width: 480px; }
.success-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 8px; }

/* =========================================================
   نموذج الطلب والمتابعة
   ========================================================= */
.seg { display: inline-flex; flex-wrap: wrap; padding: 4px; gap: 4px; background: var(--ivory); border: 1px solid var(--line); border-radius: 999px; }
.seg-wide { margin: 6px 0 16px; }
.seg-opt { position: relative; cursor: pointer; }
.seg-opt input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.seg-opt span { display: block; padding: 8px 22px; border-radius: 999px; font-weight: 700; color: var(--muted); transition: background-color .2s, color .2s; }
.seg-opt input:checked + span { color: #fff; background: var(--g700); }
.seg-opt input:focus-visible + span { outline: 3px solid var(--gold400); outline-offset: 2px; }

.member-box, .manual-box { padding-top: 4px; }
.field-inline { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.field-inline input { flex: 1 1 160px; width: auto; }
.member-result {
    display: grid;
    gap: 2px;
    margin-top: 6px;
    padding: 12px 14px;
    border-radius: 12px;
    font-size: .95rem;
}
.member-result.is-ok { color: var(--g700); background: var(--g100); border: 1px solid #bfdfcc; }
.member-result.is-ok small { color: var(--muted); }
.member-result.is-error { color: #8e1f1f; background: #fdeeee; border: 1px solid #f3c4c4; }
.member-result.is-loading { color: var(--muted); background: var(--ivory); }

.pick-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }
.pick-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    transition: transform .3s var(--ease-out), border-color .3s, box-shadow .3s;
}
.pick-card:hover { transform: translateY(-3px); border-color: var(--gold400); box-shadow: var(--shadow); }
.pick-card > span:nth-child(2) { flex: 1; display: grid; min-width: 0; }
.pick-card strong { color: var(--g800); }
.pick-card small { color: var(--muted); }
.pick-card > .icon { color: var(--gold600); }
.card-icon-sm { width: 44px; height: 44px; border-radius: 12px; flex-shrink: 0; }
.card-icon-sm .icon { width: 22px; height: 22px; }

.choice-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.choice { position: relative; cursor: pointer; }
.choice input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.choice span {
    display: block;
    padding: 9px 16px;
    border-radius: 12px;
    font-weight: 500;
    background: var(--ivory);
    border: 1.5px solid var(--line);
    transition: background-color .2s, border-color .2s, color .2s;
}
.choice:hover span { border-color: var(--g400); }
.choice input:checked + span { color: #fff; background: var(--g600); border-color: var(--g600); }
.choice input:focus-visible + span { outline: 3px solid var(--gold400); outline-offset: 2px; }
.choice-list[aria-invalid="true"] .choice span { border-color: #d64545; }

.color-inputs { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 4px; }
.color-slot {
    --picked: transparent;
    position: relative;
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border-radius: 14px;
    cursor: pointer;
    background: var(--ivory);
    border: 2px dashed var(--line);
}
.color-slot input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; border: 0; padding: 0; }
.color-slot input:disabled { pointer-events: none; }
.color-slot.is-set { background: var(--picked); border-style: solid; border-color: rgba(0, 0, 0, .12); }
.color-slot.is-set .color-add { display: none; }
.color-add { font-size: 1.4rem; color: var(--muted); }
.color-clear { border: 0; background: none; color: var(--muted); font-size: .88rem; text-decoration: underline; }
.swatch { display: inline-block; width: 22px; height: 22px; margin-inline-end: 4px; border-radius: 6px; vertical-align: middle; background: var(--sw); border: 1px solid rgba(0, 0, 0, .12); }

.file-input { padding: 10px; background: var(--ivory); border: 1.5px dashed var(--line); border-radius: var(--radius-sm); width: 100%; }
.dropzone-files { min-height: 84px; }
.file-list { display: grid; gap: 6px; margin-top: 8px; }
.file-list li {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 12px;
    font-size: .92rem;
    background: var(--ivory);
    border-radius: 10px;
}
.file-list li span { overflow-wrap: anywhere; }
.file-list li small { flex-shrink: 0; color: var(--muted); }
.file-list li.is-error { background: #fdeeee; color: #8e1f1f; }
.file-list .file-problem { background: none; padding: 0; color: #c0392b; font-weight: 700; }

.pay-card { border-top: 4px solid var(--gold400); }
.pay-amount {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 14px;
    padding: 14px 16px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--gold100), var(--sand));
}
.pay-amount span { color: var(--muted); }
.pay-amount strong { font-size: 1.35rem; font-weight: 900; color: var(--g800); }
.pay-state { margin-bottom: 12px; font-weight: 700; }
.pay-pending { color: #b7791f; }
.pay-uploaded { color: #1f5f99; }
.pay-confirmed { color: var(--g600); }
.bank-box {
    display: grid;
    gap: 8px;
    margin-bottom: 16px;
    padding: 16px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 14px;
}
.bank-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; }
.bank-row > span { min-width: 90px; color: var(--muted); font-size: .92rem; }
.bank-row strong { color: var(--ink); }
.bank-iban strong { font-size: 1.05rem; letter-spacing: .5px; font-family: ui-monospace, Consolas, monospace; overflow-wrap: anywhere; }
.bank-note { padding-top: 8px; border-top: 1px dashed var(--line); font-size: .92rem; color: var(--muted); }

.order-no {
    display: grid;
    justify-items: center;
    gap: 6px;
    margin: 6px 0;
    padding: 18px 28px;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--gold100), var(--sand));
    border: 1.5px dashed var(--gold400);
}
.order-no > span { color: var(--muted); font-size: .92rem; }
.order-no strong { font-size: clamp(2.2rem, 8vw, 3rem); font-weight: 900; letter-spacing: 6px; color: var(--g800); line-height: 1.2; }
.order-hint { display: flex; align-items: center; gap: 6px; font-size: .95rem; }
.success-card h1 { color: var(--g800); font-size: clamp(1.5rem, 4vw, 2rem); }

.track-form { display: grid; gap: 14px; }
.track-card {
    margin-bottom: 18px;
    padding: clamp(18px, 4vw, 28px);
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}
.track-card h2 { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; font-size: 1.2rem; color: var(--g800); }
.track-card h2 .icon { color: var(--gold600); }
.track-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 22px; }
.track-label { display: block; font-size: .85rem; color: var(--muted); margin-bottom: 4px; }
.track-meta { display: grid; gap: 4px; font-size: .92rem; color: var(--muted); }
.track-meta span { display: flex; align-items: center; gap: 6px; }
.status-pill { display: inline-block; padding: 6px 18px; border-radius: 999px; font-weight: 900; font-size: 1.05rem; }
.status-pill-new { color: #8a5a00; background: var(--gold100); }
.status-pill-awaiting_payment { color: #8a4a00; background: #fde8cf; }
.status-pill-in_progress { color: #1f5f99; background: #e6f0fa; }
.status-pill-done { color: var(--g700); background: var(--g100); }
.status-pill-rejected { color: #b03a2e; background: #fdeeee; }

.progress-steps { display: grid; grid-template-columns: repeat(var(--steps), 1fr); position: relative; }
.progress-steps li { position: relative; display: grid; justify-items: center; gap: 8px; text-align: center; }
.progress-steps li:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 19px;
    inset-inline-start: calc(50% + 24px);
    width: calc(100% - 48px);
    height: 3px;
    border-radius: 3px;
    background: var(--line);
}
.progress-steps li.is-done:not(:last-child)::after { background: var(--g500); }
.ps-dot {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-weight: 800;
    color: var(--muted);
    background: var(--ivory);
    border: 2px solid var(--line);
}
.ps-dot .icon { width: 20px; height: 20px; stroke-width: 2.4; }
.ps-label { font-size: .88rem; font-weight: 700; color: var(--muted); }
.is-done .ps-dot { color: #fff; background: var(--g500); border-color: var(--g500); }
.is-done .ps-label { color: var(--g700); }
.is-current .ps-dot { color: var(--g950); background: linear-gradient(135deg, var(--gold300), var(--gold500)); border-color: var(--gold500); box-shadow: 0 0 0 6px rgba(218, 185, 106, .2); }
.is-current .ps-label { color: var(--ink); }

.result-card { border-top: 4px solid var(--g500); }
.download-list { display: grid; gap: 10px; margin-top: 14px; }
.download-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background: var(--ivory);
    border: 1px solid var(--line);
    border-radius: 14px;
    transition: border-color .2s, background-color .2s;
}
.download-item:hover { border-color: var(--g500); background: var(--g100); }
.dl-icon { display: grid; place-items: center; width: 40px; height: 40px; flex-shrink: 0; border-radius: 10px; color: #fff; background: var(--g600); }
.dl-text { display: grid; min-width: 0; }
.dl-text strong { color: var(--ink); overflow-wrap: anywhere; }
.dl-text small { color: var(--muted); }
.receipt-form { display: grid; gap: 10px; }

.timeline { display: grid; gap: 0; }
.timeline li {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px 10px;
    padding: 0 22px 16px 0;
    border-inline-start: 2px solid var(--line);
    margin-inline-start: 6px;
}
.timeline li:last-child { border-color: transparent; padding-bottom: 0; }
.tl-dot { position: absolute; inset-inline-start: -8px; top: 4px; width: 14px; height: 14px; border-radius: 50%; background: var(--gold400); border: 3px solid var(--white); box-shadow: 0 0 0 1px var(--gold400); }
.timeline li:first-child .tl-dot { background: var(--g500); box-shadow: 0 0 0 1px var(--g500); }
.timeline small { color: var(--muted); font-size: .85rem; }
.track-foot { text-align: center; }
.track-foot a { color: var(--g600); font-weight: 700; }

/* =========================================================
   حجز المواعيد
   ========================================================= */
.booking-card { border-top: 4px solid var(--g500); }
.consultant-pick { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); margin: 6px 0 18px; }
.cons-opt { position: relative; cursor: pointer; }
.cons-opt input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.cons-card {
    display: flex;
    align-items: center;
    gap: 12px;
    height: 100%;
    padding: 12px 14px;
    border-radius: 14px;
    background: var(--ivory);
    border: 1.5px solid var(--line);
    transition: border-color .2s, background-color .2s, box-shadow .2s;
}
.cons-card strong { display: block; color: var(--ink); line-height: 1.4; }
.cons-card small { display: block; color: var(--muted); font-size: .85rem; }
.cons-opt:hover .cons-card { border-color: var(--g400); }
.cons-opt input:checked + .cons-card { background: var(--g100); border-color: var(--g600); box-shadow: 0 0 0 3px rgba(22, 120, 79, .15); }
.cons-opt input:focus-visible + .cons-card { outline: 3px solid var(--gold400); outline-offset: 2px; }
.cons-avatar {
    flex-shrink: 0;
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    overflow: hidden;
    border-radius: 50%;
    font-weight: 900;
    font-size: 1.15rem;
    color: var(--gold300);
    background: linear-gradient(145deg, var(--g600), var(--g800));
}
.cons-avatar img { width: 100%; height: 100%; object-fit: cover; }
.cons-any { color: var(--g700); background: var(--gold100); }
.cons-any .icon { width: 24px; height: 24px; }

.slot-select { width: 100%; }
/* minmax(0, 1fr) يمنع شريط الأيام الطويل من توسيع الصفحة؛ يتمرر داخل مكانه فقط */
.slot-picker { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; min-width: 0; }
.day-strip {
    min-width: 0;
    max-width: 100%;
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 4px 2px 10px;
    scroll-snap-type: x proximity;
    scrollbar-width: thin;
}
.day-btn {
    flex-shrink: 0;
    display: grid;
    justify-items: center;
    min-width: 76px;
    padding: 10px 8px;
    border-radius: 14px;
    scroll-snap-align: start;
    font: inherit;
    color: var(--ink);
    background: var(--white);
    border: 1.5px solid var(--line);
    transition: border-color .2s, background-color .2s, color .2s;
}
.day-btn small { color: var(--muted); font-size: .8rem; }
.day-btn strong { font-size: 1.4rem; font-weight: 900; line-height: 1.2; }
.day-btn span { font-size: .8rem; color: var(--muted); }
.day-btn:hover { border-color: var(--g400); }
.day-btn.is-on { color: #fff; background: var(--g700); border-color: var(--g700); }
.day-btn.is-on small, .day-btn.is-on span { color: rgba(255, 255, 255, .8); }
.time-grid { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); }
.time-btn {
    padding: 10px 6px;
    border-radius: 12px;
    font: inherit;
    font-weight: 700;
    color: var(--g700);
    background: var(--ivory);
    border: 1.5px solid var(--line);
    transition: border-color .2s, background-color .2s, color .2s;
}
.time-btn:hover { border-color: var(--g500); }
.time-btn.is-on { color: var(--g950); background: linear-gradient(135deg, var(--gold300), var(--gold500)); border-color: var(--gold500); }
.slot-summary { padding: 10px 14px; border-radius: 12px; font-weight: 700; color: var(--g700); background: var(--g100); }

.appt-done {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 14px 16px;
    text-align: start;
    border-radius: 14px;
    background: var(--g100);
    border: 1px solid #bfdfcc;
}
.appt-done > .icon { width: 30px; height: 30px; color: var(--g600); flex-shrink: 0; }
.appt-done small { display: block; color: var(--muted); }
.appt-done strong { color: var(--g800); }
.alert-warn { color: #7a4a00; background: #fff4e0; border: 1px solid #f1d39a; }

.appt-card { border-top: 4px solid var(--g500); }
.appt-card.is-cancelled { border-top-color: #d64545; opacity: .85; }
.appt-card h2 .status, .appt-panel .panel-title .status { margin-inline-start: auto; font-size: .82rem; }
.appt-when {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 14px;
    padding: 14px 16px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--gold100), var(--sand));
}
.appt-date strong { display: block; font-size: 1.2rem; color: var(--g800); }
.appt-date small { color: var(--muted); }
.appt-time { display: flex; align-items: center; gap: 6px; font-size: 1.15rem; font-weight: 900; color: var(--g700); }
.appt-info { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; margin: 0 0 14px; }
.appt-info dt { color: var(--muted); }
.appt-info dd { margin: 0; font-weight: 700; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.appt-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.status-appt-booked { color: #1f5f99; background: #e6f0fa; }
.status-appt-attended { color: var(--g700); background: var(--g100); }
.status-appt-no_show { color: #8a5a00; background: var(--gold100); }
.status-appt-cancelled { color: #b03a2e; background: #fdeeee; }
.status-pill-cancelled { color: #b03a2e; background: #fdeeee; }
.status { display: inline-flex; align-items: center; gap: 4px; padding: 3px 12px; border-radius: 999px; font-size: .85rem; font-weight: 700; white-space: nowrap; }

/* =========================================================
   صفحة الخدمة
   ========================================================= */
.section-services-page { padding-top: clamp(32px, 5vw, 56px); }
.section-services-page .group-head h2 { font-size: clamp(1.35rem, 3vw, 1.7rem); color: var(--g800); }
.card h3, .card h4 { font-size: 1.22rem; color: var(--g800); }
.card h3 a, .card h4 a { transition: color .2s; }
.card:hover h3 a, .card:hover h4 a { color: var(--g500); }

.svc-hero .page-hero-inner { display: grid; justify-items: center; }
.svc-hero .crumbs { justify-content: center; }
.svc-hero-icon {
    display: grid;
    place-items: center;
    width: 84px;
    height: 84px;
    margin-bottom: 6px;
    border-radius: 24px;
    color: var(--g950);
    background: linear-gradient(135deg, var(--gold300), var(--gold500));
    box-shadow: 0 0 0 8px rgba(218, 185, 106, .15), 0 18px 40px -16px rgba(0, 0, 0, .5);
}
.svc-hero-icon .icon { width: 42px; height: 42px; }

.svc-section { padding-top: clamp(32px, 5vw, 56px); }
.svc-layout {
    display: grid;
    gap: 28px;
    grid-template-columns: minmax(0, 1fr) 340px;
    align-items: start;
}
@media (max-width: 900px) { .svc-layout { grid-template-columns: 1fr; } .svc-side { order: -1; } }
.svc-main { display: grid; gap: 22px; min-width: 0; }
.svc-block {
    padding: clamp(20px, 4vw, 30px);
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}
.svc-block h2 { font-size: 1.3rem; color: var(--g800); margin-bottom: 14px; }
.check-list { display: grid; gap: 10px; }
.check-list li { display: flex; align-items: flex-start; gap: 10px; line-height: 1.8; }
.check-list .icon {
    flex-shrink: 0;
    width: 26px;
    height: 26px;
    padding: 4px;
    margin-top: 2px;
    border-radius: 50%;
    color: #fff;
    stroke-width: 2.4;
    background: var(--g500);
}
.mini-steps { display: grid; gap: 12px; }
.mini-steps li { display: flex; align-items: center; gap: 12px; color: var(--muted); }
.mini-steps span {
    flex-shrink: 0;
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-weight: 900;
    color: var(--g950);
    background: linear-gradient(135deg, var(--gold300), var(--gold500));
}
.svc-side { position: sticky; top: calc(var(--header-h) + 16px); }
@media (max-width: 900px) { .svc-side { position: static; } }
.svc-facts {
    display: grid;
    gap: 14px;
    padding: 22px;
    background: var(--white);
    border: 1px solid var(--line);
    border-top: 4px solid var(--gold400);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.fact { display: flex; align-items: center; gap: 12px; }
.fact-icon {
    flex-shrink: 0;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    color: var(--g700);
    background: var(--g100);
}
.fact-icon .icon { width: 22px; height: 22px; }
.fact small { display: block; color: var(--muted); font-size: .85rem; }
.fact strong { display: block; color: var(--ink); font-size: 1.05rem; }
.fact-note { display: flex; align-items: center; gap: 6px; padding: 10px 12px; font-size: .88rem; color: var(--muted); background: var(--ivory); border-radius: 10px; }

/* =========================================================
   الإعلانات
   ========================================================= */
.section-latest-ann { padding-bottom: clamp(24px, 4vw, 48px); }
.section-latest-ann + .section-about { padding-top: clamp(40px, 6vw, 72px); }
.section-head-row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    max-width: none;
    text-align: start;
}
.section-head-row h2 { margin-bottom: 0; }

.ann-grid {
    display: grid;
    gap: 24px;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
}
.ann-card {
    --cat: var(--g600);
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    transition: transform .4s var(--ease-out), box-shadow .4s, border-color .4s;
}
.ann-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--cat) 40%, var(--line)); }
.ann-card.is-pinned { border-color: var(--gold400); box-shadow: 0 0 0 3px rgba(218, 185, 106, .18), var(--shadow-sm); }

.ann-media {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background-color: var(--cat); /* للمتصفحات القديمة */
    background:
        radial-gradient(circle at 30% 20%, rgba(255, 255, 255, .18), transparent 55%),
        linear-gradient(145deg, color-mix(in srgb, var(--cat) 85%, #fff), color-mix(in srgb, var(--cat) 70%, #000));
}
.ann-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .8s var(--ease-out);
}
.ann-card:hover .ann-media img { transform: scale(1.05); }
.ann-placeholder {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: rgba(255, 255, 255, .9);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='.12'%3E%3Crect x='25' y='25' width='30' height='30'/%3E%3Crect x='25' y='25' width='30' height='30' transform='rotate(45 40 40)'/%3E%3C/g%3E%3C/svg%3E");
}
.ann-placeholder .icon { width: 64px; height: 64px; stroke-width: 1.3; }
.ann-cat {
    position: absolute;
    top: 14px;
    right: 14px;
    padding: 4px 14px;
    border-radius: 999px;
    font-size: .85rem;
    font-weight: 700;
    color: #fff;
    background: var(--cat);
    box-shadow: 0 6px 16px -6px rgba(0, 0, 0, .45);
}
.ann-pin {
    position: absolute;
    top: 12px;
    left: 12px;
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: var(--g950);
    background: linear-gradient(135deg, var(--gold300), var(--gold500));
    box-shadow: 0 6px 16px -6px rgba(0, 0, 0, .45);
}
.ann-pin .icon { width: 18px; height: 18px; }

.ann-body { flex: 1; display: flex; flex-direction: column; gap: 8px; padding: 20px 22px 22px; }
.ann-date { display: flex; align-items: center; gap: 6px; font-size: .88rem; color: var(--muted); }
.ann-title { font-size: 1.2rem; line-height: 1.5; color: var(--g800); overflow-wrap: anywhere; }
.ann-title a { transition: color .2s; }
.ann-card:hover .ann-title a { color: var(--cat); }
.stretched::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.ann-people {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: .92rem;
    font-weight: 700;
    color: var(--g700);
}
.ann-people .icon { color: var(--cat); }
.ann-people span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ann-people[hidden] { display: none; }

/* صفحة الإعلان: قائمة الأشخاص */
.ann-people-box {
    margin-bottom: 28px;
    padding: 18px 20px;
    background: var(--white);
    border: 1px solid var(--line);
    border-inline-start: 4px solid var(--cat);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}
.ann-people-box h2 { margin-bottom: 14px; font-size: 1rem; color: var(--muted); }
.people-list { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); }
.person { display: flex; align-items: center; gap: 12px; }
.person-avatar {
    flex-shrink: 0;
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    font-size: 1.2rem;
    font-weight: 900;
    color: #fff;
    background: var(--cat);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--cat) 15%, transparent);
}
.person-text { display: grid; min-width: 0; }
.person-text strong { color: var(--ink); font-size: 1.05rem; }
.person-text small { color: var(--muted); font-size: .9rem; }

.ann-summary {
    flex: 1;
    color: var(--muted);
    overflow-wrap: anywhere;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.ann-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 8px;
    padding-top: 14px;
    border-top: 1px dashed var(--line);
}
.ann-more { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--cat); transition: gap .3s var(--ease-out); }
.ann-card:hover .ann-more { gap: 12px; }
.ann-btn { position: relative; z-index: 2; }

/* فلتر التصنيفات */
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.chip {
    --cat: var(--g700);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 999px;
    font-weight: 700;
    color: var(--ink);
    background: var(--white);
    border: 1.5px solid var(--line);
    transition: border-color .2s, background-color .2s, color .2s;
}
.chip span {
    min-width: 24px;
    padding: 0 6px;
    border-radius: 999px;
    font-size: .8rem;
    line-height: 22px;
    text-align: center;
    background: var(--ivory);
}
.chip-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--cat); }
.chip:hover { border-color: var(--cat); }
.chip[aria-current="page"] { color: #fff; background: var(--cat); border-color: var(--cat); }
.chip[aria-current="page"] span { background: rgba(255, 255, 255, .22); color: #fff; }
.chip[aria-current="page"] .chip-dot { background: #fff; }

/* صفحة الإعلان */
.ann-hero { text-align: start; }
.ann-hero .page-hero-inner { max-width: 860px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; font-size: .92rem; color: rgba(255, 255, 255, .6); }
.crumbs a { color: rgba(255, 255, 255, .85); }
.crumbs a:hover { color: var(--gold300); }
.ann-hero-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; color: rgba(255, 255, 255, .75); font-size: .95rem; }
.ann-hero-meta > span { display: inline-flex; align-items: center; gap: 6px; }
.ann-cat-static { position: static; }
.ann-hero h1 { margin-block: 14px 10px; }
.ann-content { padding-block: clamp(28px, 5vw, 48px) 0; }
.ann-figure { margin: 0 0 28px; }
.ann-figure a {
    position: relative;
    display: block;
    overflow: hidden;
    background: var(--sand);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.ann-figure img { width: 100%; height: auto; max-height: 85vh; object-fit: contain; margin: 0 auto; }
.zoom-hint {
    position: absolute;
    bottom: 12px;
    left: 12px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: .85rem;
    color: #fff;
    background: rgba(3, 23, 15, .65);
    opacity: 0;
    transition: opacity .3s;
}
.ann-figure a:hover .zoom-hint, .ann-figure a:focus-visible .zoom-hint { opacity: 1; }
@media (hover: none) { .zoom-hint { opacity: 1; } }
.ann-text { font-size: 1.08rem; line-height: 2; color: var(--ink); overflow-wrap: anywhere; }
.ann-text a { color: var(--g600); text-decoration: underline; text-underline-offset: 3px; }
.ann-until {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 22px;
    padding: 8px 14px;
    border-radius: 12px;
    font-size: .95rem;
    font-weight: 700;
    color: #8a5a00;
    background: var(--gold100);
}
.ann-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid var(--line);
}
.share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.share-label { font-weight: 700; color: var(--muted); }
.share button.social { cursor: pointer; }
.copy-done { display: inline-flex; align-items: center; gap: 4px; font-size: .9rem; font-weight: 700; color: var(--g600); }
.section-more { background: linear-gradient(to bottom, var(--ivory), var(--sand)); margin-top: clamp(40px, 6vw, 72px); }

.lightbox {
    width: 100vw;
    max-width: 100vw;
    height: 100vh;
    max-height: 100vh;
    margin: 0;
    padding: 16px;
    border: 0;
    background: transparent;
}
.lightbox::backdrop { background: rgba(1, 12, 8, .88); backdrop-filter: blur(4px); }
.lightbox[open] { display: grid; place-items: center; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 32px); object-fit: contain; border-radius: 12px; }
.lightbox-close {
    position: fixed;
    top: 16px;
    left: 16px;
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border: 0;
    border-radius: 50%;
    color: #fff;
    background: rgba(255, 255, 255, .15);
}
.lightbox-close .icon { width: 24px; height: 24px; }

/* ---------- الظهور عند التمرير ---------- */
.js .reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .8s var(--ease-out), transform .8s var(--ease-out);
    transition-delay: var(--delay, 0s);
}
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- الفعاليات ---------- */
.section-events { padding-bottom: clamp(24px, 4vw, 48px); }
.ev-toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0 16px; }
.ev-toolbar .chips { margin-bottom: 16px; }
.ev-toolbar + .ann-grid, .ev-toolbar + .empty-state { margin-top: 12px; }
.ev-card { --cat: var(--g600); }
.ev-card.is-past { --cat: #6b7a72; }
.ev-card.is-past .ev-media img { filter: grayscale(.6); }
.ev-type { background: var(--gold500); color: var(--g950); }
.ev-datebox {
    position: absolute;
    bottom: 12px;
    left: 12px;
    display: grid;
    place-items: center;
    min-width: 58px;
    padding: 6px 8px;
    line-height: 1.1;
    text-align: center;
    color: var(--g800);
    background: rgba(255, 255, 255, .95);
    border-radius: 14px;
    box-shadow: 0 8px 20px -8px rgba(0, 0, 0, .45);
}
.ev-datebox strong { font-size: 1.5rem; font-weight: 900; }
.ev-datebox small { font-size: .78rem; font-weight: 700; color: var(--gold600); }
.ev-meta { display: inline-flex; align-items: center; gap: 4px; font-size: .88rem; color: var(--muted); }

.ev-hero .ev-type { display: inline-block; margin-top: 4px; }
.ev-people { --cat: var(--g600); }
.countdown { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.countdown span {
    display: grid;
    min-width: 70px;
    padding: 10px 8px;
    text-align: center;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(218, 185, 106, .35);
    border-radius: 14px;
}
.countdown strong { font-size: 1.6rem; font-weight: 900; color: var(--gold300); line-height: 1.1; font-variant-numeric: tabular-nums; }
.countdown small { font-size: .8rem; color: rgba(255, 255, 255, .75); }

.ev-days { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.ev-days li {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 4px 10px;
    padding: 8px 12px;
    font-size: .9rem;
    background: var(--ivory);
    border-radius: 10px;
}
.ev-days li strong { color: var(--g700); }
.ev-days-att li.is-here { background: var(--g100); }
.ev-days-att li.is-here strong { display: inline-flex; align-items: center; gap: 4px; color: var(--g600); }

.seats-bar { height: 8px; overflow: hidden; background: var(--sand); border-radius: 999px; }
.seats-bar span { display: block; width: var(--fill, 0%); height: 100%; background: linear-gradient(90deg, var(--g500), var(--gold500)); border-radius: inherit; }

/* التذكرة */
.ticket { border-top: 4px solid var(--gold400); }
.ticket-approved { border-top-color: var(--g500); }
.ticket-rejected, .ticket-cancelled { border-top-color: #d64545; }
.ticket-waitlist { border-top-color: #999; }
.ticket-new { margin-bottom: 20px; }
.ticket-qr {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 18px;
    margin: 18px 0 14px;
    padding: 16px;
    background: var(--ivory);
    border: 1.5px dashed var(--gold400);
    border-radius: var(--radius-sm);
}
.ticket-qr strong { display: block; font-size: 1.15rem; color: var(--g800); }
.ticket-qr p { color: var(--muted); font-size: .92rem; }
.ticket-qr small { font-weight: 900; letter-spacing: 3px; color: var(--g700); font-size: 1.1rem; }
.qr-box {
    flex-shrink: 0;
    display: grid;
    place-items: center;
    width: 172px;
    height: 172px;
    padding: 10px;
    color: var(--muted);
    background: #fff;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
}
.qr-box img, .qr-box canvas { width: 100% !important; height: 100% !important; image-rendering: pixelated; }
@media (max-width: 480px) { .ticket-qr { justify-content: center; text-align: center; } .qr-box { width: min(220px, 70vw); height: min(220px, 70vw); } }

.status-pill-reg-pending   { color: #8a5a00; background: var(--gold100); }
.status-pill-reg-approved  { color: var(--g700); background: var(--g100); }
.status-pill-reg-waitlist  { color: #555; background: #eee; }
.status-pill-reg-rejected,
.status-pill-reg-cancelled { color: #b03a2e; background: #fdeeee; }
.status-reg-pending   { color: #8a5a00; background: var(--gold100); }
.status-reg-approved  { color: var(--g700); background: var(--g100); }
.status-reg-waitlist  { color: #555; background: #eee; }
.status-reg-rejected,
.status-reg-cancelled { color: #b03a2e; background: #fdeeee; }

/* التحضير الذاتي (صفحة المشارك) */
.attend-section { min-height: 70vh; display: grid; align-items: center; }
.attend-card {
    display: grid;
    justify-items: center;
    gap: 12px;
    padding: clamp(24px, 6vw, 40px);
    text-align: center;
    background: var(--white);
    border: 1px solid var(--line);
    border-top: 5px solid var(--gold400);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.attend-card h1 { font-size: clamp(1.4rem, 5vw, 1.9rem); color: var(--g800); overflow-wrap: anywhere; }
.attend-card p { color: var(--muted); }
.attend-icon {
    display: grid;
    place-items: center;
    width: 84px;
    height: 84px;
    border-radius: 50%;
    color: #fff;
    background: var(--g600);
    box-shadow: 0 0 0 10px var(--g100);
}
.attend-icon .icon { width: 44px; height: 44px; stroke-width: 2.4; }
.attend-icon-gold { color: var(--g950); background: linear-gradient(135deg, var(--gold300), var(--gold500)); box-shadow: 0 0 0 10px var(--gold100); }
.attend-ok { border-top-color: var(--g500); }
.attend-ok .attend-icon { animation: checkin-pop .5s var(--ease-back); }
.attend-already { border-top-color: var(--g500); }
.attend-blocked, .attend-fail { border-top-color: #d64545; }
.attend-blocked .attend-icon, .attend-fail .attend-icon { background: #d64545; box-shadow: 0 0 0 10px #fdeeee; }
.attend-msg { font-size: 1.15rem; font-weight: 700; color: var(--ink) !important; }
.attend-meta { display: grid; gap: 2px; width: 100%; padding: 12px; background: var(--ivory); border-radius: 12px; }
.attend-meta strong { color: var(--g800); }
.attend-meta span { font-size: .9rem; color: var(--muted); }
.attend-form { width: 100%; text-align: start; }
@keyframes checkin-pop { from { transform: scale(.85); opacity: 0; } }

/* ---------- الشهادات ---------- */
.cert-page { display: grid; gap: 18px; max-width: 1180px; }
.cert-frame {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 160px;
    padding: clamp(6px, 1.5vw, 14px);
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}
.cert-frame canvas { max-width: 100%; }
.cert-loading { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); }
.cert-loading[hidden] { display: none; }
.cert-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.btn.is-busy { opacity: .6; pointer-events: none; }
.cert-verify-note { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px; text-align: center; color: var(--muted); font-size: .92rem; }
.cert-verify-note a { color: var(--g700); font-weight: 700; }

.eval-form { display: grid; gap: 16px; }
.eval-form h2 { display: flex; align-items: center; gap: 8px; color: var(--g800); font-size: 1.25rem; }
.rate { margin: 0; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.rate legend { padding: 0 6px; font-weight: 700; color: var(--ink); }
.rate-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.rate-opt { position: relative; cursor: pointer; }
.rate-opt input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.rate-opt span {
    display: grid;
    place-items: center;
    height: 48px;
    font-size: 1.2rem;
    font-weight: 900;
    color: var(--g700);
    background: var(--ivory);
    border: 1.5px solid var(--line);
    border-radius: 12px;
    transition: background-color .2s, color .2s, border-color .2s;
}
.rate-opt:hover span { border-color: var(--gold400); }
.rate-opt input:checked + span { color: var(--g950); background: linear-gradient(135deg, var(--gold300), var(--gold500)); border-color: var(--gold500); }
.rate-opt input:focus-visible + span { outline: 3px solid var(--g400); outline-offset: 2px; }
.rate-scale { display: flex; justify-content: space-between; margin-top: 4px; font-size: .8rem; color: var(--muted); }

.verify-card {
    display: grid;
    justify-items: center;
    gap: 12px;
    margin-top: 20px;
    padding: clamp(22px, 5vw, 36px);
    text-align: center;
    background: var(--white);
    border: 1px solid var(--line);
    border-top: 5px solid var(--g500);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.verify-card h2 { font-size: 1.5rem; color: var(--g800); }
.verify-bad { border-top-color: #d64545; }
.verify-bad h2 { color: #b03a2e; }
.verify-bad .attend-icon { background: #d64545; box-shadow: 0 0 0 10px #fdeeee; }
.verify-list { display: grid; width: 100%; margin: 6px 0 0; text-align: start; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
.verify-list > div { display: grid; grid-template-columns: minmax(96px, 30%) 1fr; gap: 10px; padding: 10px 14px; }
.verify-list > div:nth-child(odd) { background: var(--ivory); }
.verify-list dt { color: var(--muted); font-size: .9rem; }
.verify-list dd { margin: 0; font-weight: 700; color: var(--ink); overflow-wrap: anywhere; }
.verify-by { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: .9rem; }
.verify-by .logo-mark { width: 26px; height: 26px; }

.my-certs { display: grid; gap: 12px; margin: 0 0 24px; padding: 0; list-style: none; }
.my-cert, .cert-ready {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    background: var(--white);
    border: 1px solid var(--line);
    border-inline-start: 4px solid var(--gold400);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
}
.my-cert > div, .cert-ready > span:nth-child(2) { flex: 1 1 200px; display: grid; gap: 2px; min-width: 0; }
.my-cert small, .cert-ready small { color: var(--muted); font-size: .85rem; }
.my-cert strong, .cert-ready strong { color: var(--g800); font-size: 1.08rem; overflow-wrap: anywhere; }
.my-cert span { color: var(--muted); font-size: .9rem; }
.my-cert-icon { display: grid; place-items: center; flex-shrink: 0; width: 48px; height: 48px; border-radius: 50%; color: var(--g950); background: linear-gradient(135deg, var(--gold300), var(--gold500)); }
.my-cert-icon .icon { width: 26px; height: 26px; }
.my-certs-more { margin-bottom: 12px; font-size: 1.05rem; color: var(--muted); }
.cert-ready { margin-bottom: 16px; color: inherit; text-decoration: none; transition: transform .3s var(--ease-out), box-shadow .3s; }
.cert-ready:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.cert-ready > .icon { color: var(--gold600); }

/* ---------- تقليل الحركة ---------- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .01ms !important;
        animation-delay: 0s !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
        scroll-behavior: auto !important;
    }
    .hero-burst { display: none; }
    .js .reveal { opacity: 1; transform: none; }
}
