/* SAAY platform additions on top of the client's original style.css / extended.css. */

/* The ported --field token equals the page background exactly, so plain
   inputs/textareas/selects were invisible. Give them a background one step
   lighter than the page so their boundary is always visible, independent of
   what section they sit in. Element-level selector, loaded after
   extended.css, so it wins by source order without fighting specificity —
   more specific rules already in extended.css (e.g. .subscribe-row input)
   are untouched. */
input:not([type='checkbox']):not([type='radio']),
textarea,
select {
    background: #1b1e25;
    border-color: #ffffff30;
}
input:not([type='checkbox']):not([type='radio']):focus,
textarea:focus,
select:focus {
    border-color: var(--coral);
}
[data-theme='light'] input:not([type='checkbox']):not([type='radio']),
[data-theme='light'] textarea,
[data-theme='light'] select {
    background: #fefefe;
    border-color: #191c2333;
}

/* Same reasoning for the axis-option cards and the two membership dashboard
   panels — var(--surface)/var(--field) read as near-black with nothing else
   in the panel (no image, no color) to establish contrast against the page. */
.axis-option,
.membership-form,
.member-events {
    background: #171a20;
    border-color: #ffffff1c;
}
[data-theme='light'] .axis-option,
[data-theme='light'] .membership-form,
[data-theme='light'] .member-events {
    background: #fefefe;
}

.auth-layout{max-width:440px;margin:0 auto;display:flex;flex-direction:column;align-items:center;text-align:center}
.auth-logo{display:block;margin-bottom:28px}
.auth-logo svg{width:130px;height:73px;margin:0 auto}
.auth-heading{margin-bottom:36px}
.auth-heading h1{font-size:clamp(28px,3vw,38px)}
.auth-heading p{color:var(--secondary);font-size:15px;margin-top:12px}
.auth-layout .contact-form{width:100%;text-align:right}
.auth-layout .dialog-note{margin-top:24px}
@media (max-width: 760px){.auth-logo svg{width:104px;height:58px}}

.member-qr{flex-shrink:0;width:132px;height:132px;padding:10px;background:#fefefe;border-radius:10px;display:flex;align-items:center;justify-content:center}
.member-qr svg{width:100%;height:100%}
@media (max-width: 760px){.member-qr{width:104px;height:104px}}

.dashboard-welcome{font-size:14px;color:var(--secondary);margin-bottom:14px}
.dashboard-welcome strong{color:var(--text)}

.member-tracks{display:flex;flex-wrap:wrap;gap:8px;margin-top:6px}

.logout-form{margin-top:28px;border-top:1px solid var(--line);padding-top:20px}
.logout-button{display:inline-flex;align-items:center;gap:10px;border:1px solid var(--line);background:transparent;color:var(--secondary);border-radius:50px;padding:10px 20px;font-size:14px}
.logout-button:hover{border-color:var(--coral);color:var(--coral)}

/* Event thumbnails inside "فعالياتي" — the ported .participation was text-only. */
.participation{display:flex;gap:16px;align-items:center}
.participation-thumb{flex-shrink:0;width:76px;height:76px;border-radius:8px;overflow:hidden;background:var(--field)}
.participation-thumb img{width:100%;height:100%;object-fit:cover}
.participation-body{min-width:0}
@media (max-width: 760px){.participation-thumb{width:64px;height:64px}}

/* Status pills — replace a submitted registration form (or render on reload)
   with a clear, non-clickable confirmation instead of a stale active button. */
.status-pill{display:inline-flex;align-items:center;gap:10px;padding:13px 24px;border-radius:50px;border:1px solid var(--line);font-size:14px;background:transparent;color:var(--text)}
.status-pill.is-registered{border-color:var(--green);color:var(--green)}
.status-pill.is-waitlisted{border-color:var(--gold);color:var(--gold)}
.status-pill.is-attended{border-color:var(--cyan);color:var(--cyan)}

/* Group the auth controls + theme toggle + mobile menu button so they stay
   visually close regardless of viewport width — .header's own
   justify-content:space-between otherwise spreads all direct children apart
   evenly, including these, the wider the header gets. Two levels: a looser
   gap between the auth cluster / theme toggle / menu button, and a tighter
   gap within the auth cluster itself (login link + join/membership pill). */
.header-actions{display:flex;align-items:center;gap:20px}
.header-auth{display:flex;align-items:center;gap:14px}
.header-login{font-size:14px;color:var(--secondary);white-space:nowrap}
.header-login:hover{color:var(--coral)}
[data-theme='light'] .header-login{color:#565965}
@media (max-width: 760px){.header-actions{gap:10px}.header-auth{gap:8px}.header-login{display:none}}

.success-dialog{width:min(420px,calc(100% - 32px));text-align:center;padding:48px 36px 40px;background:var(--panel);color:var(--text);border:1px solid var(--line);border-radius:20px;box-shadow:0 35px 100px #0009}
.success-dialog::backdrop{background:#000b;backdrop-filter:blur(7px)}
.success-mark{width:84px;height:84px;margin:0 auto 26px;border-radius:50%;background:var(--green);display:flex;align-items:center;justify-content:center;transform:scale(0);animation:success-pop .5s cubic-bezier(.34,1.56,.64,1) forwards}
.success-mark svg{width:42px;height:42px}
.success-mark path{fill:none;stroke:#fefefe;stroke-width:3;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:34;stroke-dashoffset:34;animation:success-draw .35s .35s ease forwards}
.success-dialog h3{font-size:24px;line-height:1.6;margin-bottom:12px}
.success-dialog p{color:var(--secondary);font-size:16px;line-height:1.9;margin-bottom:8px}
.success-number{display:inline-block;margin:14px 0 6px;padding:10px 22px;border-radius:50px;background:var(--field);border:1px solid var(--line);font:20px Saay,Arial;letter-spacing:.12em;color:var(--accent-text)}
.success-actions{display:flex;flex-direction:column;gap:10px;margin-top:26px}
.success-dialog .button{width:100%;justify-content:center}
.success-close{border:0;background:none;color:var(--secondary);font-size:14px;padding:8px 0;text-decoration:underline;text-underline-offset:3px}

@keyframes success-pop{0%{transform:scale(0)}100%{transform:scale(1)}}
@keyframes success-draw{to{stroke-dashoffset:0}}

@media (prefers-reduced-motion: reduce){
    .success-mark{animation:none;transform:scale(1)}
    .success-mark path{animation:none;stroke-dashoffset:0}
}
.motion-paused .success-mark,.motion-paused .success-mark path{animation:none!important;transform:scale(1);stroke-dashoffset:0}

/* Google Maps embed on the event page (full-width under the description —
   the 330px booking sidebar is too narrow for a legible map). */
.map-embed{position:relative;aspect-ratio:16/9;border-radius:5px;overflow:hidden;margin:15px 0;border:1px solid var(--line)}
.map-embed iframe{position:absolute;inset:0;width:100%;height:100%;border:0}

/* Member-initiated event-registration cancellation. */
.cancel-form{margin-top:12px}
.cancel-link{color:var(--secondary);font-size:13px;text-decoration:underline;text-underline-offset:3px;background:none;border:0;padding:0}
.cancel-link:hover{color:var(--coral)}

/* A ghost/outline button variant — only .button.light (solid white) existed
   before; the track CTA band needs a secondary action next to the primary. */
.button.ghost{background:transparent;border:1px solid #ffffff50;color:var(--text)}
.button.ghost:hover{background:#ffffff15}
[data-theme='light'] .button.ghost{border-color:#191c2340}

/* ===== Track sub-pages ("قصة"-style story page, item 3) ===== */
.track-hero{position:relative;min-height:56vh;display:flex;align-items:flex-end;overflow:hidden;padding:160px 5vw 60px;isolation:isolate}
.track-hero-photo{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:0}
.track-hero::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,transparent 0%,#0c0c0ce6 100%);z-index:1}
.track-hero-icon{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;opacity:.22;z-index:0}
.track-hero-icon img{width:38%;max-width:280px;filter:brightness(0) invert(1)}
.track-hero-inner{position:relative;z-index:2;max-width:900px}
.track-hero .breadcrumb{color:#ffffffb0;margin-bottom:18px;display:block}
.track-hero h1{font-size:clamp(38px,6vw,72px);color:#fefefe;margin:0 0 16px;letter-spacing:-.03em}
.track-hero p{font-size:clamp(16px,1.8vw,20px);color:#ffffffd6;max-width:560px;line-height:1.8}
@media (max-width:760px){.track-hero{min-height:46vh;padding:120px 6vw 44px}}

.track-body{padding:80px 5vw;max-width:820px;margin:0 auto}
.track-body p{font-size:clamp(17px,1.8vw,20px);line-height:2;color:var(--text)}

.track-points{padding:0 5vw 80px;max-width:1100px;margin:0 auto}
.track-points-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}
.track-points-grid span{display:block;text-align:center;border:1px solid var(--line);background:var(--surface);border-radius:12px;padding:18px 14px;font-size:15px}
@media (max-width:960px){.track-points-grid{grid-template-columns:1fr}}

.track-cta{background:var(--black);padding:70px 5vw;text-align:center}
[data-theme='light'] .track-cta{background:#191c23}
.track-cta h2{color:#fefefe;font-size:clamp(24px,3vw,34px);margin-bottom:28px}
.track-cta-actions{display:flex;justify-content:center;gap:14px;flex-wrap:wrap}

/* ===== Icons =====
   Inline SVGs (x-icon component) replace the Unicode arrows/stars the
   prototype used — iOS renders ↖ ↗ ✳ ⏳ as colour emoji. */
.icon{width:1em;height:1em;flex-shrink:0;display:inline-block;vertical-align:-.14em}
.button .icon{width:18px;height:18px}
.read-link .icon,.course-register .icon{width:17px;height:17px;transition:transform .3s}
.read-link:hover .icon,.course-register:hover .icon{transform:translate(-3px,-3px)}
.small-star{display:inline-flex}
.small-star .icon{width:19px;height:19px;stroke-width:2}
.motion-icon{display:inline-flex}
.motion-icon .icon{width:15px;height:15px}
.motion-icon .icon-play,.motion-paused .motion-icon .icon-pause{display:none}
.motion-paused .motion-icon .icon-play{display:inline-block}
.journey-repeat .icon{width:26px;height:26px;animation:rotate 12s linear infinite}
.top-link .icon{width:13px;height:13px;vertical-align:-.1em}
.status-pill .icon{width:16px;height:16px}
.logout-button .icon{width:16px;height:16px}
.header-actions .button .icon{width:16px;height:16px}
@media (prefers-reduced-motion: reduce){.journey-repeat .icon{animation:none}}
.motion-paused .journey-repeat .icon{animation:none}

/* ===== Path cards =====
   Whole card links to the track page (stretched link); a footer row makes the
   two choices explicit: "discover" (the card itself) and "join" (a button
   sitting above the stretched link). */
.path-card{position:relative}
.path-card-link{position:absolute;inset:0;z-index:1;border-radius:inherit}
.path-card-link:focus-visible{outline:2px solid currentColor;outline-offset:-6px}
.path-symbols{justify-content:flex-start}

.card-tags{gap:6px;margin-top:18px;margin-bottom:26px}
.card-tags>span{font-size:12px;line-height:1.6;padding:3px 9px;border-radius:4px}

.card-actions{margin-top:auto;display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;padding-top:18px;border-top:1px solid color-mix(in srgb,currentColor 24%,transparent)}
.card-explore{display:inline-flex;align-items:center;gap:8px;font-size:14px;padding-bottom:2px;border-bottom:1px solid color-mix(in srgb,currentColor 45%,transparent);transition:border-color .3s}
.path-card:hover .card-explore{border-color:currentColor}

.path-join{position:relative;z-index:2;display:inline-flex;align-items:center;gap:10px;padding:10px 20px 10px 16px;border-radius:50px;font-size:14px;font-weight:700;white-space:nowrap;background:var(--white);color:var(--ink);box-shadow:0 1px 0 #0000001a;transition:transform .25s,background .25s,color .25s}
.path-join .icon{width:17px;height:17px}
.path-join:hover{transform:translateY(-2px);background:var(--ink);color:var(--white)}
.path-join:focus-visible{outline:2px solid currentColor;outline-offset:3px}
.path-pink .path-join,.path-cyan .path-join,.path-coral .path-join{background:var(--ink);color:var(--white)}
.path-pink .path-join:hover,.path-cyan .path-join:hover,.path-coral .path-join:hover{background:var(--white);color:var(--ink)}
@media (max-width:760px){.card-tags{margin-bottom:22px}.path-join{padding:9px 16px 9px 14px}}

/* ===== Scroll reveal =====
   Uses the independent `translate` property so it never fights the hover
   `transform` on cards. site.js staggers siblings via --reveal-delay. */
.js-motion .reveal{opacity:0;transform:none;translate:0 30px;transition:opacity .9s cubic-bezier(.2,.65,.25,1) var(--reveal-delay,0s),translate .9s cubic-bezier(.2,.65,.25,1) var(--reveal-delay,0s)}
.js-motion .reveal.visible{opacity:1;translate:none}
.js-motion .path-card.reveal{transition:transform .3s,opacity .9s cubic-bezier(.2,.65,.25,1) var(--reveal-delay,0s),translate .9s cubic-bezier(.2,.65,.25,1) var(--reveal-delay,0s)!important}
.js-motion .reveal-media img{scale:1.08;transition:scale 1.4s cubic-bezier(.2,.65,.25,1) var(--reveal-delay,0s)}
.js-motion .reveal-media.visible img{scale:1}
.ambient-word{will-change:transform}
.motion-paused .reveal,.motion-paused .reveal-media img{opacity:1!important;translate:none!important;scale:1!important;transition:none!important}
@media (prefers-reduced-motion: reduce){.js-motion .reveal,.js-motion .reveal-media img{opacity:1;translate:none;scale:1}}

/* ===== Member dashboard ("رحلتي مع سعي") ===== */
.dashboard .breadcrumb{margin-bottom:28px}
.dash-head{margin-bottom:44px;padding-bottom:32px;border-bottom:1px solid var(--line)}
.dash-eyebrow{font-size:14px;color:var(--accent-text);margin-bottom:6px}
.dash-head h1{font-size:clamp(34px,4.4vw,58px);letter-spacing:-.04em;line-height:1.35}
.dash-since{margin-top:10px;color:var(--secondary);font-size:15px}

.dash-grid{display:grid;grid-template-columns:minmax(0,1fr) 360px;gap:32px;align-items:start}
.dash-aside{grid-column:2;grid-row:1;position:sticky;top:24px;display:flex;flex-direction:column;gap:20px}
.dash-main{grid-column:1;grid-row:1;display:flex;flex-direction:column;gap:32px;min-width:0}

.dash-panel{border:1px solid #ffffff1c;background:#171a20;border-radius:10px;padding:clamp(22px,3vw,40px)}
[data-theme='light'] .dash-panel{background:#fefefe;border-color:#191c231f}
.dash-panel h2{font-size:clamp(24px,2.4vw,32px);letter-spacing:-.03em}
.dash-panel-head{margin-bottom:28px}
.dash-panel-head p{color:var(--secondary);font-size:15px;margin-top:4px}
.dash-aside .dash-panel h2{font-size:22px;margin-bottom:20px}

.dash-card{margin:0;max-width:none;flex-direction:column;align-items:stretch;text-align:center;gap:20px;padding:28px;border-radius:10px}
.dash-card .member-qr{width:100%;max-width:220px;height:auto;aspect-ratio:1;margin:0 auto}
.dash-card-info span{font-size:13px}
.dash-card-info p{text-align:center;font-size:26px;letter-spacing:.2em;margin-top:4px}
.dash-note{font-size:13px;color:var(--secondary);line-height:1.8;text-align:center;padding:0 8px}

.dash-details{margin:0;display:flex;flex-direction:column;gap:16px}
.dash-details>div{display:flex;flex-direction:column;gap:4px}
.dash-details dt{font-size:13px;color:var(--secondary)}
.dash-details dd{margin:0;font-size:15px;overflow-wrap:anywhere;text-align:right}
.dash-details .topic-tags>span{font-size:12px;padding:3px 9px}
.dashboard .logout-form{margin-top:24px}

.dash-stats{display:grid;grid-template-columns:repeat(3,1fr);margin:0 0 32px;border:1px solid var(--line);border-radius:8px}
.dash-stats>div{display:flex;flex-direction:column-reverse;gap:2px;padding:18px 20px}
.dash-stats>div+div{border-right:1px solid var(--line)}
.dash-stats dt{font-size:13px;color:var(--secondary)}
.dash-stats dd{margin:0;font-size:clamp(28px,3vw,38px);font-weight:700;line-height:1.3;color:var(--text)}
.dash-stats dd small{font-size:.5em;color:var(--secondary);font-weight:400;margin-right:2px}

.tone-green{--tone:var(--green)}.tone-pink{--tone:var(--pink)}.tone-blue{--tone:#0158f1}
.tone-cyan{--tone:var(--cyan)}.tone-coral{--tone:var(--coral)}.tone-purple{--tone:#6d6db3}

.journey-tracks{list-style:none;padding:0;margin:0 0 40px;display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:10px}
.journey-track{display:flex;flex-direction:column;align-items:center;gap:10px;text-align:center;width:auto;transition:opacity .4s,filter .4s}
.journey-track-icon{display:grid;place-items:center;width:100%;aspect-ratio:1;max-width:84px;border-radius:8px;background:var(--tone)}
.journey-track img{width:52%;height:52%;object-fit:contain}
.journey-track.tone-pink img,.journey-track.tone-cyan img,.journey-track.tone-coral img{filter:brightness(0)}
.journey-track span:last-child{font-size:12px;color:var(--secondary);line-height:1.5}
.journey-track.is-muted{opacity:.28;filter:grayscale(1)}

.member-timeline{list-style:none;margin:0;padding:0;position:relative;border:0}
.member-timeline::before{content:"";position:absolute;top:10px;bottom:10px;right:139px;width:1px;background:linear-gradient(var(--coral),var(--line) 70%)}
.timeline-item{position:relative;display:grid;grid-template-columns:110px 60px minmax(0,1fr);align-items:start;padding:0 0 34px;margin:0;border:0}
.timeline-item:last-child{padding-bottom:0}
.member-timeline .timeline-item::before{content:none}
.member-timeline time{font-size:13px;color:var(--secondary);line-height:1.6;padding-top:2px}
.member-timeline time span{display:block;font-size:16px;color:var(--text)}
.timeline-node{justify-self:center;margin-top:7px;width:13px;height:13px;border-radius:50%;background:var(--black);border:2px solid var(--tone,var(--secondary));box-shadow:0 0 0 6px #171a20}
[data-theme='light'] .timeline-node{background:#fefefe;box-shadow:0 0 0 6px #fefefe}
.timeline-item.is-start .timeline-node{width:17px;height:17px;margin-top:5px;background:var(--coral);border-color:var(--coral)}
.timeline-item.is-next .timeline-node{border-style:dashed;border-color:var(--secondary)}
.timeline-body{padding:14px 18px;border:1px solid var(--line);border-radius:8px;border-right:3px solid var(--tone,var(--line))}
.timeline-item.is-start .timeline-body{border-right-color:var(--coral)}
.timeline-item.is-next .timeline-body{border-style:dashed;border-right-width:1px}
.timeline-kind{font-size:12px;color:var(--accent-text);margin-bottom:2px}
.member-timeline .timeline-title{font-size:17px;color:var(--text);line-height:1.7}
.timeline-title a:hover{color:var(--coral)}
.member-timeline .timeline-track{font-size:13px;color:var(--secondary);margin-top:2px}
.timeline-item.is-next .read-link{font-size:14px;padding:4px 0 0}

.dash-events{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.dash-event{display:flex;flex-direction:column;border:1px solid var(--line);border-radius:8px;overflow:hidden}
.dash-event-cover{display:block;aspect-ratio:16/9;background:var(--field);overflow:hidden}
.dash-event-cover img{width:100%;height:100%;object-fit:cover;transition:scale .6s}
.dash-event:hover .dash-event-cover img{scale:1.04}
.dash-event-body{padding:16px 18px 18px}
.dash-event-status{display:inline-block;font-size:12px;padding:2px 10px;border-radius:50px;border:1px solid currentColor}
.dash-event-status.is-registered{color:var(--green)}
.dash-event-status.is-waitlisted{color:var(--gold)}
.dash-event-status.is-attended{color:var(--cyan)}
.dash-event-status.is-cancelled{color:var(--secondary)}
.dash-event h3{font-size:18px;margin:10px 0 4px;line-height:1.6}
.dash-event h3 a:hover{color:var(--coral)}
.dash-event p{font-size:13px;color:var(--secondary)}
.dashboard .empty-state{border:0;padding:10px 0}

@media (max-width:1100px){
    .dash-grid{grid-template-columns:minmax(0,1fr) 300px;gap:24px}
    .journey-tracks{grid-template-columns:repeat(3,minmax(0,1fr))}
}
/* Single column: membership card first, then the journey and events, with
   "بياناتي" last — display:contents lets the aside's children be reordered
   around .dash-main. */
@media (max-width:860px){
    .dash-grid{display:flex;flex-direction:column;gap:20px}
    .dash-aside{display:contents}
    .dash-main{order:3;gap:20px}
    .dash-aside>.dash-card{order:1}
    .dash-aside>.dash-note{order:2;margin-top:-6px}
    .dash-aside>.dash-panel{order:4}
}
@media (max-width:640px){
    .dash-head{margin-bottom:28px;padding-bottom:24px}
    .dash-card{flex-direction:row;align-items:center;text-align:right;padding:18px;gap:18px}
    .dash-card .member-qr{width:112px;max-width:none;margin:0}
    .dash-card-info p{text-align:right;font-size:21px}
    .dash-note{text-align:right;padding:0}
    .dash-stats>div{padding:14px 12px}
    .journey-tracks{gap:8px;margin-bottom:32px}
    .journey-track span:last-child{font-size:11px}
    .member-timeline::before{right:6px}
    .timeline-item{grid-template-columns:14px minmax(0,1fr);column-gap:18px;padding-bottom:26px}
    .member-timeline time{grid-column:2;grid-row:1;display:flex;gap:6px;align-items:baseline;margin-bottom:8px}
    .member-timeline time span{display:inline;font-size:14px}
    .timeline-node{grid-column:1;grid-row:1;margin-top:5px}
    .timeline-item.is-start .timeline-node{margin-top:3px}
    .timeline-body{grid-column:2;grid-row:2;padding:12px 14px}
    .dash-events{grid-template-columns:1fr}
}

/* ===== Cloudflare Turnstile widget ===== */
.cf-turnstile{margin:16px 0}

/* ── Round 5 (2026-10-06) ─────────────────────────────────────────────── */

/* Slogan beside the logo */
.brand-text{display:flex;flex-direction:column;justify-content:center;line-height:1.45}
.brand-name{font-size:14px;color:#c5c5c7}
.brand-slogan{font-size:12px;color:var(--coral);letter-spacing:.01em}
[data-theme='light'] .brand-name{color:var(--secondary)}
[data-theme='light'] .brand-slogan{color:#d9603f}
@media (max-width: 760px){
    .brand>span.brand-text{display:flex;border-right:1px solid #ffffff30;padding-right:12px;gap:0}
    .brand{gap:12px}
    .brand-name{display:none}
    .brand-slogan{font-size:10px;width:62px;line-height:1.55}
}

/* Header CTAs: filled brand coral so they read as the primary action */
.header-cta.is-join,
.header-cta.is-member{position:relative;background:var(--coral);border-color:var(--coral);color:#191c23;font-weight:700;box-shadow:0 6px 22px -8px #fc7f5dcc;transition:background .2s,transform .2s,box-shadow .2s}
.header-cta.is-join:hover,
.header-cta.is-member:hover{background:#ff9472;transform:translateY(-1px);box-shadow:0 10px 26px -8px #fc7f5d}
[data-theme='light'] .header-cta.is-join,
[data-theme='light'] .header-cta.is-member{border-color:var(--coral);color:#191c23}
[data-theme='light'] .header-cta.is-join:hover,
[data-theme='light'] .header-cta.is-member:hover{background:#ff9472}
.header-cta.is-join::after{content:"";position:absolute;inset:-1px;border-radius:inherit;border:1px solid var(--coral);animation:cta-ping 2.6s cubic-bezier(.2,.6,.3,1) infinite;pointer-events:none}
@keyframes cta-ping{0%{opacity:.75;transform:scale(1)}70%,100%{opacity:0;transform:scale(1.18,1.45)}}
@media (prefers-reduced-motion: reduce){.header-cta.is-join::after{animation:none;display:none}}
.header-cta.is-member{gap:10px;padding:5px 16px 5px 6px}
.header-avatar{display:grid;place-items:center;width:30px;height:30px;border-radius:50%;background:#191c23;color:var(--coral);font-size:14px;line-height:1}
@media (max-width: 760px){
    .header-cta.is-member{padding:4px 12px 4px 4px;gap:8px}
    .header-avatar{width:26px;height:26px;font-size:12px}
    .header-cta.is-member span:last-child{max-width:78px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px}
    .header-cta.is-join{padding:8px 14px;gap:10px}
    .header .theme-toggle{width:40px;height:40px;padding:9px}
}

/* Registration: selects with a visible caret + "اختيار" placeholder */
.form-fields select{width:100%;min-width:0;height:54px;padding:0 15px 0 44px;font:inherit;color:var(--text);border:1px solid var(--line);border-radius:5px;appearance:none;-webkit-appearance:none;cursor:pointer;
    background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23fc7f5d' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat:no-repeat;background-position:left 16px center;background-size:12px 8px;transition:border-color .2s,box-shadow .2s}
.form-fields select:invalid{color:#8d8f96}
.form-fields select option{color:var(--text);background:#1b1e25}
[data-theme='light'] .form-fields select option{background:#fefefe;color:#191c23}
.form-fields select:hover,.form-fields input:hover{border-color:#ffffff55}
[data-theme='light'] .form-fields select:hover,[data-theme='light'] .form-fields input:hover{border-color:#191c2366}
.form-fields input:focus,.form-fields select:focus{outline:none;border-color:var(--coral);box-shadow:0 0 0 3px #fc7f5d26}
.field-hint{font-size:12px;color:#8d8f96;line-height:1.6;margin-top:-2px}
.form-fields label:has(input:user-invalid) .field-hint{color:var(--coral)}

/* Email verification step */
.verify-form{max-width:560px;margin:0 auto;text-align:center;display:flex;flex-direction:column;align-items:center}
.verify-mark{width:64px;height:64px;border-radius:50%;display:grid;place-items:center;background:#fc7f5d1f;color:var(--coral);margin-bottom:18px}
.verify-mark svg{width:28px;height:28px}
.membership-form .verify-title{font-size:26px;margin-bottom:10px}
.verify-lead{color:var(--secondary);font-size:15px;margin-bottom:28px}
.verify-lead strong{color:var(--text);font-weight:400;font-family:Saay,Arial,sans-serif}
.verify-code-label{display:flex;flex-direction:column;gap:10px;width:100%;max-width:320px;color:var(--secondary);font-size:14px;margin-bottom:22px}
.verify-code{width:100%;height:64px;text-align:center;font:600 30px/1 Saay,Arial,sans-serif;letter-spacing:.5em;padding:0 0 0 .5em;border:1px solid var(--line);border-radius:8px;color:var(--text)}
.verify-code:focus{outline:none;border-color:var(--coral);box-shadow:0 0 0 3px #fc7f5d26}
.verify-help{margin-top:18px;font-size:13px;color:var(--secondary)}
.verify-help .read-link{background:none;border:0;padding:0;font-size:13px;color:var(--coral);cursor:pointer}
.verify-help .read-link:disabled{opacity:.45;cursor:default}

/* Dashboard: tracks the member belongs to are lit, the rest stay muted */
.journey-track-icon{position:relative;transition:transform .25s,box-shadow .25s}
a.journey-track-icon:hover{transform:translateY(-3px);box-shadow:0 12px 26px -12px var(--tone)}
.journey-track:not(.is-muted) .journey-track-icon{box-shadow:0 10px 24px -14px var(--tone)}
.journey-track:not(.is-muted) span:last-child{color:var(--text)}
.journey-track.is-muted{opacity:.35;filter:grayscale(1)}
.journey-track.is-muted:hover{opacity:.6}
.journey-track-badge{position:absolute;top:-6px;left:-6px;width:22px;height:22px;border-radius:50%;display:grid;place-items:center;background:var(--coral);color:#191c23;box-shadow:0 0 0 3px var(--black)}
[data-theme='light'] .journey-track-badge{box-shadow:0 0 0 3px #fefefe}
.journey-track-badge .icon{width:13px;height:13px}

.membership-form .form-submit{margin-top:30px}
.greet-short{display:none}
@media (max-width: 760px){.greet-long{display:none}.greet-short{display:inline}}
@media (max-width: 760px){
    .header{gap:8px}
    .brand{gap:8px}
    .brand svg{width:78px;height:44px}
    .brand>span.brand-text{padding-right:8px}
    .header-actions{gap:6px}
    .header-cta.is-join,.header-cta.is-member{margin-left:0}
}
@media (max-width: 360px){.brand>span.brand-text{display:none}}

/* ===== Add to Apple Wallet badge =====
   Black pill per Apple's badge guidelines, with a hairline outline so it
   stays visible on the dark theme. Replaced by the official SVG when
   public/images/wallet/add-to-apple-wallet-ar.svg exists. */
.wallet-badge{display:inline-flex;align-items:center;justify-content:center;padding:0;border:0;background:none;color:inherit;font:inherit;cursor:pointer;border-radius:9px;transition:transform .2s,opacity .2s}
.wallet-badge:hover{transform:translateY(-1px)}
.wallet-badge:focus-visible{outline:2px solid var(--coral);outline-offset:3px}
.wallet-badge img{display:block;height:44px;width:auto}
.wallet-badge-art{display:inline-flex;align-items:center;gap:10px;height:44px;padding:0 16px 0 14px;border-radius:9px;background:#000;color:#fff;border:1px solid #a6a6a6;direction:rtl;flex-direction:row}
.wallet-badge-icon{flex-shrink:0;display:block;order:-1}
.wallet-badge-text{display:flex;flex-direction:column;align-items:flex-start;line-height:1.1;text-align:right}
.wallet-badge-text small{font-size:11px;opacity:.9}
.wallet-badge-text strong{font:600 16px/1.15 -apple-system,BlinkMacSystemFont,"Helvetica Neue",Arial,sans-serif;letter-spacing:-.01em}
[data-theme=light] .wallet-badge-art{border-color:#000}
.dash-wallet{display:flex;width:fit-content;margin:16px auto 0}
.dash-event-wallet{margin:10px 0 4px}
.event-wallet{display:flex;width:fit-content;margin:14px 0 4px}
