/* ==========================================================
   النادي التطوعي AAU — main stylesheet
   Dark layout, brand colors taken from the club logo.
   ========================================================== */
:root {
	--magenta: #AA0E54;
	--magenta-l: #D61F6E;
	--orange: #FE9601;
	--blue: #058ED4;
	--bg: #0A0A0A;
	--bg-2: #101010;
	--card: #141414;
	--card-2: #1A1A1A;
	--border: #262626;
	--text: #FFFFFF;
	--muted: rgba(255, 255, 255, .62);
	--faint: rgba(255, 255, 255, .38);
	--radius: 18px;
	--radius-sm: 12px;
	--shadow: 0 20px 50px -20px rgba(0, 0, 0, .7);
	--grad: linear-gradient(90deg, var(--magenta-l), var(--orange) 55%, var(--blue));
	--accent: var(--magenta-l);
	--font: 'IBM Plex Sans Arabic', system-ui, -apple-system, 'Segoe UI', Tahoma, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
	margin: 0; background: var(--bg); color: var(--text); font-family: var(--font);
	font-size: 16px; line-height: 1.75; -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
h1, h2, h3 { line-height: 1.3; margin: 0 0 .5em; font-weight: 700; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; top: -60px; right: 12px; z-index: 1000; background: var(--orange); color: #000; padding: 8px 16px; border-radius: 8px; }
.skip-link:focus { top: 12px; }
.container { width: min(1200px, 100% - 40px); margin-inline: auto; }
.narrow { width: min(820px, 100% - 40px); }
.center { text-align: center; margin-top: 2.5rem; }
.muted { color: var(--muted); }
.empty { color: var(--muted); text-align: center; padding: 2rem 1rem; }

.accent-magenta { --accent: var(--magenta-l); }
.accent-orange { --accent: var(--orange); }
.accent-blue { --accent: var(--blue); }

/* ---------- Intro overlay ---------- */
.intro {
	position: fixed; inset: 0; z-index: 9999; display: flex; align-items: center; justify-content: center;
	background: var(--bg); overflow: hidden; transition: opacity .7s ease, visibility .7s;
}
.intro::before {
	content: ''; position: absolute; inset: 0;
	background:
		radial-gradient(ellipse 55% 45% at 72% 35%, rgba(170, 14, 84, .28), transparent 70%),
		radial-gradient(ellipse 45% 40% at 25% 70%, rgba(5, 142, 212, .18), transparent 65%),
		radial-gradient(ellipse 35% 30% at 50% 90%, rgba(254, 150, 1, .14), transparent 60%);
	animation: pulse 3s ease-in-out infinite alternate;
}
.intro.is-done { opacity: 0; visibility: hidden; }
.intro:not(.is-playing) { display: none; }
.intro-ring { position: absolute; border-radius: 50%; border: 1px solid rgba(254, 150, 1, .18); animation: ring 3.2s ease-out infinite; }
.intro-ring:nth-child(1) { width: 200px; height: 200px; }
.intro-ring:nth-child(2) { width: 370px; height: 370px; animation-delay: .4s; }
.intro-ring:nth-child(3) { width: 540px; height: 540px; animation-delay: .8s; }
.intro-ring:nth-child(4) { width: 710px; height: 710px; animation-delay: 1.2s; }
.intro-content { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; }
.intro-logo { width: 140px; height: 140px; opacity: 0; transform: scale(.4) rotate(15deg); animation: pop .75s cubic-bezier(.34, 1.56, .64, 1) .3s forwards; filter: drop-shadow(0 10px 40px rgba(170, 14, 84, .45)); }
.intro-line { width: 0; height: 2px; margin: 1.4rem 0 1.1rem; background: var(--grad); border-radius: 2px; animation: grow .7s ease-out .9s forwards; }
.intro-name { font-size: clamp(2.2rem, 7vw, 3.4rem); font-weight: 700; opacity: 0; transform: translateY(22px); animation: up .7s ease-out 1.1s forwards; }
.intro-sub { color: var(--orange); font-weight: 700; letter-spacing: .3em; opacity: 0; transform: translateY(16px); animation: up .6s ease-out 1.3s forwards; }
.intro-sub2 { color: var(--faint); opacity: 0; transform: translateY(14px); animation: up .6s ease-out 1.5s forwards; }
@keyframes pulse { from { opacity: .7; } to { opacity: 1; } }
@keyframes ring { 0% { opacity: 0; transform: scale(.4); } 40% { opacity: .8; } 100% { opacity: 0; transform: scale(1.15); } }
@keyframes pop { to { opacity: 1; transform: none; } }
@keyframes grow { to { width: 220px; } }
@keyframes up { to { opacity: 1; transform: none; } }

/* ---------- Header ---------- */
.site-header {
	position: sticky; top: 0; z-index: 100; background: rgba(10, 10, 10, .78);
	backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid transparent; transition: border-color .3s, background .3s;
}
.site-header.is-scrolled { border-bottom-color: var(--border); background: rgba(10, 10, 10, .92); }
.admin-bar .site-header { top: 32px; }
.header-inner { display: flex; align-items: center; gap: 1.5rem; height: 76px; }
.brand { display: flex; align-items: center; gap: .7rem; flex-shrink: 0; }
.brand img { width: 44px; height: 44px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-size: 1.05rem; }
.brand-text small { color: var(--orange); font-weight: 700; letter-spacing: .25em; font-size: .72rem; }
.main-nav { flex: 1; }
.nav-links { display: flex; gap: .25rem; justify-content: center; flex-wrap: wrap; }
.nav-links a { display: block; padding: .45rem .8rem; border-radius: 99px; color: var(--muted); font-size: .93rem; font-weight: 500; transition: color .2s, background .2s; }
.nav-links a:hover, .nav-links .current-menu-item a { color: var(--text); background: var(--card-2); }
.header-actions { display: flex; align-items: center; gap: .6rem; }
.header-search input {
	width: 210px; height: 40px; padding: 0 1rem; border-radius: 99px; border: 1px solid var(--border);
	background: var(--card); font-size: .9rem; transition: border-color .2s, width .3s;
}
.header-search input:focus { outline: none; border-color: var(--orange); width: 250px; }
.menu-toggle { display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--border); background: var(--card); cursor: pointer; padding: 12px 11px; flex-direction: column; justify-content: space-between; }
.menu-toggle .bar { display: block; height: 2px; background: #fff; border-radius: 2px; transition: transform .3s, opacity .3s; }
.menu-toggle[aria-expanded="true"] .bar:nth-child(2) { transform: translateY(8px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .bar:nth-child(3) { opacity: 0; }
.menu-toggle[aria-expanded="true"] .bar:nth-child(4) { transform: translateY(-8px) rotate(-45deg); }
.mobile-nav { border-top: 1px solid var(--border); padding: 1rem 20px 1.5rem; background: var(--bg); }
.mobile-nav input { width: 100%; height: 46px; padding: 0 1rem; border-radius: 12px; border: 1px solid var(--border); background: var(--card); margin-bottom: .8rem; }
.mobile-links a { display: block; padding: .8rem .4rem; border-bottom: 1px solid var(--border); font-weight: 500; }

/* ---------- Buttons / pills ---------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: .5rem; height: 48px; padding: 0 1.5rem;
	border-radius: 99px; font-weight: 600; border: 1px solid transparent; cursor: pointer; transition: transform .2s, box-shadow .2s, background .2s, border-color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: linear-gradient(135deg, var(--magenta), var(--magenta-l)); color: #fff; box-shadow: 0 10px 30px -10px rgba(214, 31, 110, .7); }
.btn-primary:hover { box-shadow: 0 14px 34px -10px rgba(214, 31, 110, .9); }
.btn-ghost { background: var(--card); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--orange); }
.btn-sm { height: 36px; padding: 0 1rem; font-size: .88rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .6; pointer-events: none; }
.pill { display: inline-block; padding: .15rem .75rem; border-radius: 99px; font-size: .78rem; font-weight: 600; background: var(--card-2); border: 1px solid var(--border); color: var(--muted); }
.status-open { color: #4ade80; border-color: rgba(74, 222, 128, .3); background: rgba(74, 222, 128, .08); }
.status-full { color: var(--orange); border-color: rgba(254, 150, 1, .3); background: rgba(254, 150, 1, .08); }
.status-done { color: var(--faint); }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.2rem; }
.chip { padding: .35rem 1rem; border-radius: 99px; background: var(--card); border: 1px solid var(--border); font-size: .88rem; color: var(--muted); cursor: default; }
button.chip { cursor: pointer; }
.chip.is-active, button.chip:hover { color: #fff; border-color: var(--orange); }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: calc(100vh - 76px); display: flex; align-items: center; padding: 4rem 0 5rem; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.blob { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .5; animation: float 14s ease-in-out infinite alternate; }
.b1 { width: 480px; height: 480px; background: var(--magenta); top: -120px; right: -100px; }
.b2 { width: 380px; height: 380px; background: var(--blue); bottom: -120px; left: -80px; opacity: .35; animation-delay: -4s; }
.b3 { width: 300px; height: 300px; background: var(--orange); top: 40%; left: 40%; opacity: .18; animation-delay: -8s; }
@keyframes float { to { transform: translate(40px, -30px) scale(1.08); } }
.hero-inner { position: relative; text-align: center; display: flex; flex-direction: column; align-items: center; }
.hero-logo { width: 150px; height: 150px; margin-bottom: 1.5rem; filter: drop-shadow(0 20px 50px rgba(170, 14, 84, .45)); }
.kicker { display: inline-block; color: var(--orange); font-weight: 600; font-size: .95rem; margin-bottom: .6rem; }
.hero h1 { font-size: clamp(2.4rem, 6.5vw, 4.4rem); letter-spacing: -.5px; margin-bottom: 1rem; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: clamp(1.05rem, 2.2vw, 1.25rem); color: var(--muted); max-width: 680px; margin-inline: auto; }
.sub { color: var(--faint); }
.hero-actions { display: flex; gap: .8rem; flex-wrap: wrap; justify-content: center; margin-top: 1.4rem; }
.scroll-cue { margin-top: 3.5rem; display: flex; flex-direction: column; align-items: center; gap: .5rem; color: var(--faint); font-size: .85rem; }
.scroll-cue i { width: 24px; height: 38px; border: 2px solid var(--faint); border-radius: 14px; position: relative; }
.scroll-cue i::after { content: ''; position: absolute; top: 6px; left: 50%; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--orange); animation: wheel 1.6s ease-in-out infinite; }
@keyframes wheel { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(12px); } }

/* ---------- Stats ---------- */
.stats { border-block: 1px solid var(--border); background: var(--bg-2); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { text-align: center; padding: 2.4rem 1rem; }
.stat + .stat { border-inline-start: 1px solid var(--border); }
.stat strong { display: block; font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 700; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat span { color: var(--muted); }

/* ---------- Sections ---------- */
.section { padding: clamp(4rem, 9vw, 6.5rem) 0; }
.section.alt { background: var(--bg-2); border-block: 1px solid var(--border); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 3rem; }
.section-head h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.section-head p { color: var(--muted); }

.grid { display: grid; gap: 1.25rem; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.6rem; position: relative; }
a.card { display: flex; flex-direction: column; transition: transform .3s, border-color .3s, box-shadow .3s; overflow: hidden; }
a.card::before { content: ''; position: absolute; inset: 0 0 auto; height: 3px; background: var(--accent); transform: scaleX(0); transform-origin: right; transition: transform .4s; }
a.card:hover { transform: translateY(-5px); border-color: color-mix(in srgb, var(--accent) 50%, var(--border)); box-shadow: var(--shadow); }
a.card:hover::before { transform: scaleX(1); }
.card h3 { font-size: 1.2rem; }
.card p { color: var(--muted); font-size: .95rem; flex: 1; }
.card-cta { color: var(--accent); font-weight: 600; font-size: .92rem; margin-top: .4rem; }
.com-icon { width: 58px; height: 58px; display: grid; place-items: center; font-size: 1.8rem; border-radius: 16px; margin-bottom: 1.1rem; background: color-mix(in srgb, var(--accent) 16%, transparent); border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent); }

.opp-top { display: flex; justify-content: space-between; align-items: center; gap: .5rem; margin-bottom: 1rem; }
.opp-com { color: var(--accent); font-size: .82rem; font-weight: 600; }
.opp-meta { display: flex; flex-wrap: wrap; gap: .4rem 1rem; color: var(--muted); font-size: .85rem; margin: .4rem 0 .8rem; }
.opp-meta li { display: flex; gap: .35rem; align-items: center; }

/* ---------- Tools: hours calculator ---------- */
.tool { max-width: 860px; margin-inline: auto; }
.tool-form { display: flex; gap: .8rem; align-items: flex-end; flex-wrap: wrap; }
.field { display: flex; flex-direction: column; gap: .35rem; flex: 1; min-width: 180px; margin-bottom: 1rem; }
.tool-form .field { margin-bottom: 0; }
.field.small { flex: 0 0 140px; min-width: 120px; }
.field label, .privacy legend { font-size: .88rem; color: var(--muted); font-weight: 500; }
input[type="text"], input[type="number"], input[type="search"], input:not([type]), textarea {
	width: 100%; padding: .75rem 1rem; border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--bg); transition: border-color .2s;
}
input:focus, textarea:focus { outline: none; border-color: var(--orange); }
textarea { resize: vertical; min-height: 120px; }
.tool-list { margin: 1.4rem 0; display: flex; flex-direction: column; gap: .5rem; }
.tool-list li { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .7rem 1rem; border-radius: var(--radius-sm); background: var(--bg); border: 1px solid var(--border); }
.tool-list button { background: none; border: 0; color: var(--faint); cursor: pointer; font-size: .85rem; }
.tool-list button:hover { color: var(--magenta-l); }
.tool-result { display: flex; align-items: center; gap: 1.6rem; padding-top: 1.4rem; border-top: 1px solid var(--border); }
.ring {
	--p: 0; flex-shrink: 0; width: 130px; height: 130px; border-radius: 50%; display: grid; place-content: center; text-align: center;
	background: radial-gradient(closest-side, var(--card) 80%, transparent 81% 100%), conic-gradient(var(--orange) calc(var(--p) * 1%), var(--border) 0);
}
.ring span { font-size: 2rem; font-weight: 700; line-height: 1; }
.ring small { color: var(--muted); }
.tool-result strong { font-size: 1.15rem; display: block; margin-bottom: .2rem; }

/* ---------- Library ---------- */
.library { max-width: 860px; margin-inline: auto; }
.lib-search { margin-bottom: 1rem; }
.lib-list { display: flex; flex-direction: column; gap: .5rem; }
.lib-list li { display: flex; align-items: center; gap: .8rem; padding: .7rem 1rem; border-radius: var(--radius-sm); background: var(--bg); border: 1px solid var(--border); }
.lib-name { flex: 1; font-weight: 500; }

/* ---------- Voice: tickets ---------- */
.voice-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 1.25rem; align-items: start; }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: .4rem; padding: .3rem; border-radius: 99px; background: var(--bg); border: 1px solid var(--border); margin-bottom: 1.2rem; }
.seg input, .privacy input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: block; text-align: center; padding: .55rem; border-radius: 99px; cursor: pointer; font-weight: 600; color: var(--muted); transition: background .2s, color .2s; }
.seg input:checked + span { background: var(--magenta); color: #fff; }
.seg input:focus-visible + span { outline: 2px solid var(--orange); }
.privacy { border: 0; padding: 0; margin: 0 0 1rem; display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.privacy legend { margin-bottom: .4rem; }
.privacy label span { display: flex; flex-direction: column; padding: .8rem 1rem; border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--bg); cursor: pointer; transition: border-color .2s; height: 100%; }
.privacy small { color: var(--faint); font-size: .8rem; }
.privacy input:checked + span { border-color: var(--orange); background: rgba(254, 150, 1, .06); }
.privacy input:focus-visible + span { outline: 2px solid var(--orange); }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-msg { color: #ff7a9c; font-size: .9rem; }
.done { text-align: center; }
.done-icon { width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 1rem; display: grid; place-items: center; font-size: 1.8rem; background: rgba(74, 222, 128, .12); color: #4ade80; }
.ref { display: inline-block; font-size: 2.2rem; font-weight: 700; letter-spacing: .25em; padding: .4rem 1.4rem; margin: .4rem 0 1rem; border-radius: var(--radius-sm); border: 1px dashed var(--orange); background: rgba(254, 150, 1, .06); cursor: copy; direction: ltr; }
.inline-form { display: flex; gap: .5rem; margin: 1rem 0; }
.inline-form input { flex: 1; direction: ltr; text-align: center; letter-spacing: .15em; }
.track-result { padding: 1rem; border-radius: var(--radius-sm); background: var(--bg); border: 1px solid var(--border); }
.track-result dl { margin: 0; display: grid; gap: .5rem; }
.track-result dl div { display: flex; justify-content: space-between; gap: 1rem; }
.track-result dt { color: var(--muted); }
.track-result dd { margin: 0; font-weight: 600; }
.track-note { margin-top: .8rem; padding: .7rem .9rem; border-radius: 10px; background: rgba(5, 142, 212, .1); border: 1px solid rgba(5, 142, 212, .3); font-size: .92rem; }
.track-body { margin-top: .8rem; color: var(--muted); font-size: .92rem; white-space: pre-wrap; }

/* ---------- Guide ---------- */
.guide-card h3 { display: flex; align-items: center; gap: .6rem; }
.guide-card ul { display: flex; flex-direction: column; gap: .55rem; }
.guide-card li { position: relative; padding-inline-start: 1.2rem; color: var(--muted); }
.guide-card li::before { content: ''; position: absolute; inset-inline-start: 0; top: .7em; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.guide-card { border-top: 3px solid var(--accent); }

/* ---------- Map / CTA ---------- */
.map { padding: 0; overflow: hidden; height: 420px; }
.map iframe { width: 100%; height: 100%; border: 0; filter: invert(.9) hue-rotate(180deg); }
.cta-inner { text-align: center; padding: 3.5rem 1.5rem; border-radius: 28px; border: 1px solid var(--border); background: radial-gradient(ellipse at top right, rgba(170, 14, 84, .3), transparent 60%), radial-gradient(ellipse at bottom left, rgba(5, 142, 212, .2), transparent 60%), var(--card); }
.cta-inner h2 { font-size: clamp(1.7rem, 4vw, 2.4rem); }
.cta-inner p { color: var(--muted); }

/* ---------- Inner pages ---------- */
.page-hero { padding: 3.5rem 0 3rem; border-bottom: 1px solid var(--border); background: radial-gradient(ellipse 50% 80% at 85% 0%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 70%), var(--bg-2); }
.page-hero h1 { font-size: clamp(2rem, 5vw, 3rem); margin-top: .5rem; }
.page-hero .lead { margin-inline: 0; }
.page-hero .lead a { color: var(--accent); }
.page-icon { display: inline-grid; place-items: center; width: 70px; height: 70px; font-size: 2.1rem; border-radius: 20px; margin: .8rem 0 .4rem; background: color-mix(in srgb, var(--accent) 16%, transparent); border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent); }
.crumbs { color: var(--faint); font-size: .88rem; }
.crumbs a:hover { color: var(--orange); }
.prose { color: rgba(255, 255, 255, .85); font-size: 1.05rem; }
.prose h2, .prose h3 { color: #fff; margin-top: 1.6em; }
.prose a { color: var(--orange); text-decoration: underline; }
.prose ul { list-style: disc; padding-inline-start: 1.4rem; margin-bottom: 1em; }
.opp-layout { display: grid; grid-template-columns: 1fr 340px; gap: 2rem; align-items: start; }
.opp-aside { position: sticky; top: 100px; }
.opp-aside h2 { font-size: 1.2rem; }
.opp-aside dl { margin: 0 0 1.2rem; display: flex; flex-direction: column; gap: .7rem; }
.opp-aside dl div { display: flex; flex-direction: column; padding-bottom: .7rem; border-bottom: 1px solid var(--border); }
.opp-aside dt { color: var(--muted); font-size: .85rem; }
.opp-aside dd { margin: 0; font-weight: 600; }
.empty-state { text-align: center; padding: 3rem 0; }
.empty-state p { color: var(--muted); }
.big-404 { font-size: clamp(5rem, 18vw, 9rem); font-weight: 700; line-height: 1; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pager { margin-top: 2.5rem; display: flex; justify-content: center; }
.pager .nav-links { display: flex; gap: .4rem; }
.pager .page-numbers { display: grid; place-items: center; min-width: 42px; height: 42px; padding: 0 .8rem; border-radius: 12px; background: var(--card); border: 1px solid var(--border); }
.pager .current { background: var(--magenta); border-color: var(--magenta); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); background: var(--bg-2); padding-top: 3.5rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2.5rem; padding-bottom: 2.5rem; }
.footer-about p { color: var(--muted); margin-top: 1rem; max-width: 420px; }
.site-footer h3 { font-size: 1rem; margin-bottom: 1rem; }
.footer-links { display: flex; flex-direction: column; gap: .45rem; color: var(--muted); }
.footer-links a:hover { color: var(--orange); }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem; padding: 1.3rem 0; border-top: 1px solid var(--border); color: var(--faint); font-size: .88rem; }
.to-top { position: fixed; left: 22px; bottom: 22px; z-index: 90; width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; background: var(--magenta); color: #fff; font-size: 1.2rem; box-shadow: var(--shadow); opacity: 0; transform: translateY(20px); pointer-events: none; transition: opacity .3s, transform .3s; }
.to-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
	.main-nav { display: none; }
	.menu-toggle { display: flex; }
	.header-inner { justify-content: space-between; }
}
@media (max-width: 900px) {
	.grid-3 { grid-template-columns: repeat(2, 1fr); }
	.voice-grid, .opp-layout { grid-template-columns: 1fr; }
	.opp-aside { position: static; }
	.footer-grid { grid-template-columns: 1fr 1fr; }
	.footer-about { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
	.header-search { display: none; }
	.grid-3, .grid-2 { grid-template-columns: 1fr; }
	.stats-grid { grid-template-columns: repeat(2, 1fr); }
	.stat:nth-child(3) { border-inline-start: 0; }
	.stat:nth-child(n+3) { border-top: 1px solid var(--border); }
	.privacy { grid-template-columns: 1fr; }
	.tool-result { flex-direction: column; text-align: center; }
	.field.small { flex: 1; }
	.tool-form .btn { width: 100%; }
	.lib-list li { flex-wrap: wrap; }
	.lib-name { flex-basis: 100%; }
	.footer-grid { grid-template-columns: 1fr; }
	.admin-bar .site-header { top: 0; }
}
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; }
	.js .reveal { opacity: 1; transform: none; }
	html { scroll-behavior: auto; }
}

/* ==========================================================
   Volunteer accounts
   ========================================================== */
.account-btn { flex-shrink: 0; }
.mobile-account { display: flex; gap: .6rem; margin-top: 1rem; }
.mobile-account .btn { flex: 1; }
@media (max-width: 1400px) { .header-search { display: none; } }
@media (max-width: 640px) { .hide-sm { display: none; } }

.notice { padding: .8rem 1rem; border-radius: var(--radius-sm); margin-bottom: 1.2rem; font-size: .95rem; border: 1px solid; }
.notice ul { list-style: disc; padding-inline-start: 1.2rem; }
.notice-ok { background: rgba(74, 222, 128, .08); border-color: rgba(74, 222, 128, .35); color: #86efac; }
.notice-err { background: rgba(255, 90, 130, .08); border-color: rgba(255, 90, 130, .35); color: #ff9db5; }
.small { font-size: .88rem; }
.center-text { text-align: center; margin-top: .6rem; }
.center-text a, .auth-alt a, .auth-row a, .empty a { color: var(--orange); }

select { width: 100%; padding: .75rem 1rem; border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--bg); color: var(--text); }
select:focus { outline: none; border-color: var(--orange); }
input[type="email"], input[type="tel"], input[type="password"] { width: 100%; padding: .75rem 1rem; border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--bg); transition: border-color .2s; }
input:disabled { opacity: .6; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
.check { display: flex; gap: .6rem; align-items: flex-start; cursor: pointer; color: var(--muted); font-size: .92rem; margin-bottom: 1.2rem; }
.check input { margin-top: .35rem; accent-color: var(--magenta-l); width: 18px; height: 18px; flex-shrink: 0; }

/* Auth pages */
.auth { min-height: calc(100vh - 76px); display: flex; align-items: center; background: radial-gradient(ellipse 50% 60% at 90% 10%, rgba(170, 14, 84, .22), transparent 70%), radial-gradient(ellipse 40% 50% at 5% 90%, rgba(5, 142, 212, .14), transparent 70%); }
.auth-wrap { display: grid; grid-template-columns: 1fr 1.1fr; gap: 3rem; align-items: center; }
.auth-narrow { grid-template-columns: minmax(0, 460px); justify-content: center; }
.auth-side img { width: 110px; height: 110px; margin-bottom: 1.2rem; }
.auth-side h1 { font-size: clamp(2rem, 4.5vw, 2.8rem); }
.auth-side .lead { margin-inline: 0; }
.auth-perks { margin-top: 1.5rem; display: flex; flex-direction: column; gap: .7rem; }
.auth-perks li { display: flex; gap: .7rem; align-items: center; }
.auth-perks li::before { content: '✓'; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; flex-shrink: 0; background: rgba(254, 150, 1, .14); color: var(--orange); font-weight: 700; font-size: .85rem; }
.auth-card { padding: 2rem; }
.auth-card h1, .auth-card h2 { font-size: 1.6rem; }
.auth-logo { width: 84px; height: 84px; margin: 0 auto 1rem; }
.auth-narrow .auth-card { text-align: center; }
.auth-narrow .field, .auth-narrow .notice { text-align: right; }
.auth-row { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1.2rem; font-size: .92rem; }
.auth-row .check { margin: 0; }
.auth-alt { text-align: center; color: var(--muted); margin: 1.2rem 0 0; font-size: .95rem; }

/* Opportunity action box */
.opp-action form + form, .opp-action .notice + form { margin-top: .6rem; }
.seats { margin: 1rem 0 0; font-size: .88rem; color: var(--muted); }
.seats span { display: block; height: 6px; border-radius: 6px; background: var(--border); margin-bottom: .4rem; position: relative; overflow: hidden; }
.seats span::after { content: ''; position: absolute; inset: 0 0 0 auto; width: var(--w); background: var(--grad); border-radius: 6px; }

/* Dashboard */
.dash-top { display: grid; grid-template-columns: 2fr 1fr; gap: 1.25rem; margin-bottom: 2.5rem; }
.dash-hours { display: flex; align-items: center; gap: 2rem; }
.dash-hours h2 { font-size: 1.3rem; }
.ring-lg { width: 170px; height: 170px; }
.ring-lg span { font-size: 2.6rem; }
.dash-stats { display: grid; gap: 1.25rem; }
.mini-stat { display: flex; flex-direction: column; justify-content: center; }
.mini-stat strong { font-size: 2.2rem; line-height: 1.1; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.mini-stat span { color: var(--muted); }
.dash-block { margin-bottom: 2.5rem; }
.dash-block > h2, .dash-head h2 { font-size: 1.35rem; }
.dash-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: .8rem; }
.dash-head h2 { margin: 0; }
.reg-list { display: flex; flex-direction: column; gap: .7rem; }
.reg-list li { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.1rem 1.3rem; }
.reg-title { font-weight: 600; font-size: 1.05rem; }
.reg-title:hover { color: var(--orange); }
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); }
.table { width: 100%; border-collapse: collapse; min-width: 560px; }
.table th, .table td { padding: .9rem 1.1rem; text-align: right; border-bottom: 1px solid var(--border); }
.table th { background: var(--card); color: var(--muted); font-weight: 500; font-size: .88rem; }
.table tr:last-child td { border-bottom: 0; }
.table a:hover { color: var(--orange); }
.reg-attended { color: #4ade80; border-color: rgba(74, 222, 128, .3); background: rgba(74, 222, 128, .08); }
.reg-registered { color: var(--orange); border-color: rgba(254, 150, 1, .3); }
.reg-absent { color: #ff9db5; border-color: rgba(255, 90, 130, .3); }
.profile-form { max-width: 820px; }
.pw-box { margin: .4rem 0 1rem; }
.pw-box summary { cursor: pointer; color: var(--orange); margin-bottom: 1rem; font-weight: 500; }
.profile-actions { display: flex; gap: .7rem; flex-wrap: wrap; }

@media (max-width: 900px) {
	.auth-wrap, .dash-top { grid-template-columns: 1fr; }
	.auth-side { text-align: center; }
	.auth-side img { margin-inline: auto; }
	.auth-side .lead { margin-inline: auto; }
	.auth-perks { align-items: center; }
	.dash-stats { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
	.form-row { grid-template-columns: 1fr; }
	.dash-hours { flex-direction: column; text-align: center; }
	.reg-list li { flex-direction: column; align-items: stretch; }
	.auth-card { padding: 1.4rem; }
}
