/* ==========================================================================
   مجمع النور لتحفيظ القرآن الكريم — الموقع العام
   هوية هادئة مزخرفة: رقّ · عنابي · ذهبي عتيق · حبر — نجمة ثمانية، إطارات ذهبية مزدوجة، خراطيش.
   يُحمَّل بعد ../../../shared/css/base.css ويعيد تعريف الرموز.
   ========================================================================== */
@import url("https://fonts.googleapis.com/css2?family=Amiri:wght@400;700&family=Readex+Pro:wght@300;400;500;600&display=swap");

:root {
  --parchment: #f6f0e4;
  --parchment-2: #efe5d2;
  --paper: #fffaf1;
  --paper-2: #fbf4e6;
  --wine: #6e1f35;
  --wine-600: #5a1829;
  --wine-700: #46121f;
  --wine-soft: #f5e4e3;
  --gold: #b8892d;
  --gold-600: #96701f;
  --gold-2: #d6b46c;
  --gold-3: #ecd9a8;
  --gold-soft: #f6ecd2;
  --ink: #2b2320;
  --ink-2: #6b5d55;
  --ink-3: #a39486;
  --line: #e6d8bf;
  --line-gold: rgba(184, 137, 45, .42);
  --olive: #5b7a3a;
  --olive-soft: #e7eedb;
  --amber: #b7791f;
  --amber-soft: #f8ebcf;
  --blue-ink: #3c5a78;
  --blue-soft: #e4eaf0;
  --rose: #a0526b;
  --rose-soft: #f6e3e8;
  --red: #a32a2a;
  --red-soft: #f6dcd6;

  --brand: var(--wine);
  --brand-600: var(--wine-600);
  --brand-soft: var(--wine-soft);
  --accent: var(--gold);
  --bg: var(--parchment);
  --surface: var(--paper);
  --surface-2: var(--paper-2);
  --border: var(--line);
  --text: var(--ink);
  --text-2: var(--ink-2);
  --muted: var(--ink-3);
  --navy: var(--wine-700);
  --success: var(--olive); --success-soft: var(--olive-soft);
  --warning: var(--amber); --warning-soft: var(--amber-soft);
  --danger: var(--red); --danger-soft: var(--red-soft);
  --info: var(--blue-ink); --info-soft: var(--blue-soft);
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 2px rgba(74, 44, 20, .06);
  --shadow: 0 14px 34px -22px rgba(74, 44, 20, .5);
  --shadow-lg: 0 28px 60px -28px rgba(60, 30, 20, .55);
  --font: "Readex Pro", "Segoe UI", Tahoma, system-ui, sans-serif;
  --font-head: "Amiri", "Traditional Arabic", "Times New Roman", serif;

  --pattern: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='72' height='72' viewBox='0 0 72 72'%3E%3Cg fill='none' stroke='%23b8892d' stroke-width='1'%3E%3Crect x='22' y='22' width='28' height='28'/%3E%3Crect x='22' y='22' width='28' height='28' transform='rotate(45 36 36)'/%3E%3Ccircle cx='36' cy='36' r='6'/%3E%3Cpath d='M0 0l10 10M72 0L62 10M0 72l10-10M72 72L62 62M36 0v8M36 64v8M0 36h8M64 36h8'/%3E%3C/g%3E%3C/svg%3E");
  --pattern-light: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='72' height='72' viewBox='0 0 72 72'%3E%3Cg fill='none' stroke='%23e8cf93' stroke-width='1'%3E%3Crect x='22' y='22' width='28' height='28'/%3E%3Crect x='22' y='22' width='28' height='28' transform='rotate(45 36 36)'/%3E%3Ccircle cx='36' cy='36' r='6'/%3E%3Cpath d='M0 0l10 10M72 0L62 10M0 72l10-10M72 72L62 62M36 0v8M36 64v8M0 36h8M64 36h8'/%3E%3C/g%3E%3C/svg%3E");
  --star-gold: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='%23b8892d'%3E%3Crect x='5' y='5' width='14' height='14' rx='1'/%3E%3Crect x='5' y='5' width='14' height='14' rx='1' transform='rotate(45 12 12)'/%3E%3C/g%3E%3Ccircle cx='12' cy='12' r='3' fill='%23fffaf1'/%3E%3C/svg%3E");
}

/* ------------------------------------------------------------------ Base */
html { scroll-behavior: smooth; overflow-x: clip; }
body {
  font-family: var(--font);
  color: var(--ink);
  background-color: var(--parchment);
  background-image: radial-gradient(1100px 600px at 90% -10%, rgba(255, 255, 255, .7), transparent 60%), radial-gradient(900px 700px at -10% 110%, rgba(184, 137, 45, .08), transparent 60%);
  overflow-x: clip;
}
body.menu-open, body.modal-open { overflow: hidden; }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--wine); font-weight: 700; }
a { color: var(--wine); }
::selection { background: var(--gold-3); color: var(--ink); }
.container { max-width: 1200px; padding-inline: 20px; }
.muted { color: var(--ink-2); }
.small { font-size: 13px; }
.mb-0 { margin-bottom: 0 !important; } .mt-2 { margin-top: 8px; } .mt-3 { margin-top: 16px; } .mt-4 { margin-top: 24px; } .mb-3 { margin-bottom: 16px; }
.center { text-align: center; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[data-lucide] { width: 18px; height: 18px; }
svg.lucide { flex-shrink: 0; }

/* reveal */
.js [data-reveal] { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.js [data-reveal].in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js [data-reveal] { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* ------------------------------------------------------------------ Buttons */
.btn { border-radius: 999px; padding: 11px 22px; font-weight: 500; font-size: 14.5px; }
.btn-sm { padding: 7px 14px; font-size: 13px; }
.btn-sm svg { width: 15px; height: 15px; }
.btn-lg { padding: 14px 28px; font-size: 16px; }
.btn-block { width: 100%; }
.btn-primary { background: var(--wine); color: #fff; box-shadow: 0 10px 22px -14px rgba(110, 31, 53, .9), inset 0 0 0 1px rgba(214, 180, 108, .35); }
.btn-primary:hover { background: var(--wine-600); color: #fff; }
.btn-gold { background: linear-gradient(180deg, #d0a54b, var(--gold)); color: #2b1a0c; box-shadow: 0 10px 22px -14px rgba(150, 112, 31, .9), inset 0 0 0 1px rgba(255, 255, 255, .25); }
.btn-gold:hover { background: var(--gold-2); color: #2b1a0c; }
.btn-outline { background: var(--paper); color: var(--wine); border-color: var(--line-gold); }
.btn-outline:hover { border-color: var(--gold); color: var(--wine-600); background: #fff; }
.btn-ghost-light { background: rgba(255, 250, 241, .08); color: #fbeacb; border: 1px solid rgba(232, 207, 147, .5); }
.btn-ghost-light:hover { background: rgba(255, 250, 241, .16); color: #fff; }
.btn-portal { background: var(--paper); color: var(--wine); border: 1px solid var(--gold); padding: 8px 16px; font-size: 13.5px; }
.btn-portal:hover { background: var(--gold-soft); color: var(--wine-600); }
.btn-portal .lbl-short { display: none; }
.btn-portal-solid { background: var(--ink); color: #f6e7c4; border: 1px solid rgba(214, 180, 108, .55); }
.btn-portal-solid:hover { background: #3a2f2a; color: #fff; }
button { font-family: inherit; }

/* ------------------------------------------------------------------ Chips & badges */
.chip { display: inline-flex; align-items: center; gap: 5px; padding: 3px 11px; border-radius: 999px; font-size: 12px; font-weight: 500; background: var(--gold-soft); color: var(--gold-600); border: 1px solid var(--gold-3); white-space: nowrap; }
.chip svg { width: 13px; height: 13px; }
.chip-wine { background: var(--wine-soft); color: var(--wine); border-color: #e9c9cc; }
.chip-olive { background: var(--olive-soft); color: var(--olive); border-color: #cfdcbc; }
.chip-blue { background: var(--blue-soft); color: var(--blue-ink); border-color: #c9d5e1; }
.chip-rose { background: var(--rose-soft); color: var(--rose); border-color: #ebc7d1; }
.chip-amber { background: var(--amber-soft); color: var(--amber); border-color: #efd6a3; }
.chip-ink { background: #efe7dc; color: var(--ink-2); border-color: var(--line); }
.chip-live { background: var(--olive); color: #fff; border-color: var(--olive); }
.chip-live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #fff; animation: pulse 1.6s infinite; }
@keyframes pulse { 50% { opacity: .35; } }

/* ------------------------------------------------------------------ Top strip + header */
.topstrip { background: var(--wine-700); color: #ecd9b4; font-size: 12.5px; background-image: var(--pattern-light); background-size: 54px; background-blend-mode: soft-light; }
.topstrip-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 16px; min-height: 36px; padding-block: 6px; text-align: center; }
.topstrip svg { width: 14px; height: 14px; color: var(--gold-2); vertical-align: -2px; }
.topstrip b { color: #f6dfa8; font-weight: 500; }
.topstrip em { font-style: normal; opacity: .5; margin-inline: 2px; }
.ts-times { display: flex; gap: 16px; }
.ts-phone { color: #ecd9b4; direction: ltr; unicode-bidi: plaintext; }
.ts-phone:hover { color: #fff; }

.site-header { position: sticky; top: 0; z-index: 60; background: rgba(251, 246, 236, .94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line-gold); box-shadow: 0 3px 0 -2px var(--gold-3); transition: box-shadow .2s; }
.site-header.scrolled { box-shadow: 0 3px 0 -2px var(--gold-3), 0 12px 28px -22px rgba(60, 30, 20, .6); }
.header-in { display: flex; align-items: center; gap: 18px; min-height: 74px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--wine); flex-shrink: 0; }
.brand-mark { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 14px; background: var(--wine); color: #ecd29a; box-shadow: inset 0 0 0 3px var(--wine), inset 0 0 0 4px rgba(214, 180, 108, .6); }
.brand-mark svg { width: 34px; height: 34px; }
.brand-t { display: flex; flex-direction: column; line-height: 1.15; }
.brand-t b { font-family: var(--font-head); font-size: 23px; color: var(--wine); }
.brand-t small { font-size: 11.5px; color: var(--gold-600); letter-spacing: .2px; }
.brand-light .brand-t b { color: #f6e7c4; }
.brand-light .brand-t small { color: var(--gold-2); }
.main-nav { display: flex; align-items: center; gap: 2px; margin-inline-start: auto; }
.main-nav a { position: relative; padding: 8px 11px; border-radius: 999px; color: var(--ink-2); font-size: 14px; white-space: nowrap; transition: .15s; }
.main-nav a:hover { color: var(--wine); background: var(--gold-soft); }
.main-nav a.active { color: var(--wine); font-weight: 600; }
.main-nav a.active::after { content: ""; position: absolute; bottom: 0; left: 50%; width: 10px; height: 10px; transform: translate(-50%, 50%); background: var(--star-gold) center / contain no-repeat; }
.header-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.btn-reg { padding: 9px 18px; font-size: 13.5px; }
.btn-burger { display: none; width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--line-gold); background: var(--paper); color: var(--wine); cursor: pointer; place-items: center; }
.btn-burger svg { width: 20px; height: 20px; }

/* mobile menu */
.mnav { position: fixed; inset: 0; z-index: 120; pointer-events: none; }
.mnav-backdrop { position: absolute; inset: 0; background: rgba(43, 35, 32, .45); opacity: 0; transition: opacity .2s; }
.mnav-panel { position: absolute; top: 0; bottom: 0; right: 0; width: min(340px, 88vw); background: var(--paper); background-image: linear-gradient(180deg, rgba(255, 250, 241, .96), rgba(255, 250, 241, .96)), var(--pattern); background-size: auto, 64px; border-left: 1px solid var(--gold); box-shadow: var(--shadow-lg); padding: 16px; display: flex; flex-direction: column; gap: 12px; overflow-y: auto; transform: translateX(105%); transition: transform .25s ease; }
.mnav.open { pointer-events: auto; }
.mnav.open .mnav-backdrop { opacity: 1; }
.mnav.open .mnav-panel { transform: none; }
.mnav-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-bottom: 12px; border-bottom: 1px dashed var(--line-gold); }
.mnav-head .btn-burger { display: grid; }
.mnav-date { margin: 0; font-size: 12.5px; color: var(--gold-600); }
.mnav-links { display: flex; flex-direction: column; gap: 2px; }
.mnav-links a { display: flex; align-items: center; gap: 10px; padding: 11px 12px; border-radius: 12px; color: var(--ink); font-size: 15px; }
.mnav-links a svg { color: var(--gold); }
.mnav-links a.active, .mnav-links a:hover { background: var(--gold-soft); color: var(--wine); }
.mnav-cta { margin-top: auto; display: flex; flex-direction: column; gap: 8px; }
.mnav-cta .btn { white-space: normal; text-align: center; }

/* ------------------------------------------------------------------ Ornaments */
.ornament-divider { display: flex; align-items: center; justify-content: center; gap: 8px; color: var(--gold); }
.ornament-divider > span { height: 1px; width: 56px; background: linear-gradient(90deg, transparent, var(--gold)); }
.ornament-divider > span:last-child { background: linear-gradient(90deg, var(--gold), transparent); }
.ornament-divider > svg { width: 9px; height: 9px; opacity: .7; }
.ornament-divider > i { display: grid; place-items: center; }
.ornament-divider > i svg { width: 15px; height: 15px; }

/* cartouche section title */
.sec { padding: 72px 0; position: relative; }
.sec-tight { padding: 48px 0; }
.sec-alt { background: var(--paper-2); border-block: 1px solid var(--line); }
.sec-pattern { background-color: var(--paper-2); background-image: linear-gradient(180deg, rgba(251, 244, 230, .93), rgba(251, 244, 230, .93)), var(--pattern); background-size: auto, 72px; border-block: 1px solid var(--line); }
.sec-head { text-align: center; max-width: 720px; margin: 0 auto 40px; }
.cartouche { position: relative; display: inline-flex; align-items: center; gap: 14px; padding: 8px 34px; margin: 0 0 12px; border: 1px solid var(--gold); border-radius: 999px; background: var(--paper); box-shadow: inset 0 0 0 3px var(--paper), inset 0 0 0 4px var(--gold-3); font-size: clamp(24px, 3.4vw, 34px); color: var(--wine); line-height: 1.4; max-width: 100%; }
.cartouche::before, .cartouche::after { content: ""; flex-shrink: 0; width: 14px; height: 14px; background: var(--star-gold) center / contain no-repeat; }
.sec-head p { color: var(--ink-2); font-size: 16px; margin: 0; }
.eyebrow { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--gold-600); font-weight: 500; margin-bottom: 8px; }
.eyebrow svg { width: 15px; height: 15px; }
.sec-foot { text-align: center; margin-top: 32px; display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; }

/* framed (thin double gold border) */
.frame { position: relative; background: var(--paper); border: 1px solid var(--gold-2); border-radius: var(--radius-lg); box-shadow: inset 0 0 0 4px var(--paper), inset 0 0 0 5px var(--gold-3), var(--shadow); padding: 26px; }
.frame-corners::before, .frame-corners::after { content: ""; position: absolute; width: 16px; height: 16px; background: var(--star-gold) center / contain no-repeat; }
.frame-corners::before { top: -8px; right: 24px; }
.frame-corners::after { bottom: -8px; left: 24px; }
.panel { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow-sm); }
.icon-star { position: relative; isolation: isolate; width: 52px; height: 52px; display: grid; place-items: center; color: var(--wine); flex-shrink: 0; }
.icon-star::before, .icon-star::after { content: ""; position: absolute; inset: 13%; background: var(--gold-soft); border: 1px solid var(--gold-2); border-radius: 4px; z-index: -1; }
.icon-star::after { transform: rotate(45deg); }
.icon-star svg { width: 21px; height: 21px; }
.icon-star.sm { width: 40px; height: 40px; } .icon-star.sm svg { width: 16px; height: 16px; }
.icon-star.wine { color: #f6e2b0; } .icon-star.wine::before, .icon-star.wine::after { background: var(--wine); border-color: var(--wine-700); }

/* ------------------------------------------------------------------ Hero */
.hero { position: relative; overflow: hidden; color: #f8ead0; background: radial-gradient(800px 420px at 70% 20%, rgba(214, 180, 108, .22), transparent 60%), linear-gradient(160deg, #7a2440 0%, #5a1829 55%, #3a0f1a 100%); padding: 70px 0 150px; isolation: isolate; }
.hero::before { content: ""; position: absolute; inset: 0; background-image: var(--pattern-light); background-size: 80px; opacity: .13; z-index: -1; }
.hero .skyline { position: absolute; bottom: -1px; left: 0; width: 100%; height: 150px; color: var(--parchment); z-index: 0; --sky-cut: #6e1f35; }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .9fr); gap: 40px; align-items: center; }
.hero-date { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 8px; padding: 6px 14px; border-radius: 999px; border: 1px solid rgba(232, 207, 147, .45); background: rgba(255, 250, 241, .07); font-size: 13px; color: #f2dca8; margin-bottom: 20px; }
.hero-date svg { width: 15px; height: 15px; }
.hero-date b { color: #fff3d6; font-weight: 500; }
.hero h1 { color: #fff5e1; font-size: clamp(34px, 5.4vw, 60px); line-height: 1.25; margin-bottom: 14px; }
.hero h1 span { display: block; color: var(--gold-2); font-size: .58em; margin-top: 6px; }
.hero-lead { font-size: 17px; line-height: 1.9; color: #ecd9bd; max-width: 560px; margin-bottom: 26px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-notes { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 24px; font-size: 13px; color: #e6cfa6; }
.hero-notes span { display: inline-flex; align-items: center; gap: 6px; }
.hero-notes svg { width: 15px; height: 15px; color: var(--gold-2); }
.hero-medal { position: relative; display: grid; place-items: center; aspect-ratio: 1; max-width: 420px; width: 100%; margin-inline: auto; color: rgba(232, 207, 147, .75); }
.hero-medal .rosette-svg { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 140s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .hero-medal .rosette-svg { animation: none; } }
.hero-card { position: relative; width: 62%; text-align: center; padding: 22px 16px; border-radius: 22px; background: rgba(255, 250, 241, .95); color: var(--ink); border: 1px solid var(--gold); box-shadow: inset 0 0 0 4px #fffaf1, inset 0 0 0 5px var(--gold-3), 0 24px 40px -22px rgba(0, 0, 0, .6); }
.hero-card small { display: block; color: var(--gold-600); font-size: 12px; }
.hero-card b { display: block; font-family: var(--font-head); font-size: 24px; color: var(--wine); line-height: 1.3; margin: 2px 0 8px; }
.hero-card .hc-times { display: grid; gap: 6px; text-align: start; font-size: 13px; }
.hero-card .hc-times div { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 6px 10px; border-radius: 10px; background: var(--paper-2); border: 1px solid var(--line); }
.hero-card .hc-times span { display: inline-flex; align-items: center; gap: 5px; }
.hero-card .hc-times svg { width: 14px; height: 14px; color: var(--gold); }
.hero-card .hc-times em { font-style: normal; color: var(--ink-2); font-size: 12px; direction: rtl; }

/* page hero (inner pages) */
.page-hero { position: relative; overflow: hidden; isolation: isolate; color: #f8ead0; background: linear-gradient(160deg, #7a2440, #4d1526); padding: 48px 0 104px; text-align: center; }
.page-hero::before { content: ""; position: absolute; inset: 0; background-image: var(--pattern-light); background-size: 72px; opacity: .12; z-index: -1; }
.page-hero .skyline { position: absolute; bottom: -1px; left: 0; width: 100%; height: 96px; color: var(--parchment); --sky-cut: #6e1f35; }
.page-hero h1 { color: #fff4dc; font-size: clamp(30px, 4.6vw, 46px); margin-bottom: 8px; }
.page-hero p { color: #ecd9bd; max-width: 640px; margin: 0 auto; font-size: 16px; }
.crumbs { display: inline-flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px; font-size: 12.5px; color: #e2c894; margin-bottom: 10px; }
.crumbs a { color: #f2dca8; }
.crumbs svg { width: 13px; height: 13px; }

/* ------------------------------------------------------------------ Stats band */
.stats-band { position: relative; z-index: 3; margin-top: -78px; }
.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; padding: 8px; }
.stat { text-align: center; padding: 18px 12px; position: relative; }
.stat + .stat::before { content: ""; position: absolute; top: 20%; bottom: 20%; right: 0; width: 1px; background: linear-gradient(180deg, transparent, var(--gold-2), transparent); }
.stat .icon-star { margin: 0 auto 6px; }
.stat b { display: block; font-family: var(--font-head); font-size: clamp(30px, 3.6vw, 42px); color: var(--wine); line-height: 1.1; }
.stat span { font-size: 14px; color: var(--ink); font-weight: 500; }
.stat small { display: block; color: var(--ink-3); font-size: 12px; margin-top: 2px; }

/* ------------------------------------------------------------------ Grids & cards */
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.split { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 36px; align-items: start; }
.split.split-form { grid-template-columns: minmax(0, 1.5fr) minmax(0, .8fr); }

/* program cards — mihrab arch */
.arch-card { position: relative; display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--gold-2); border-radius: 200px 200px 20px 20px; padding: 46px 22px 22px; text-align: center; box-shadow: inset 0 0 0 4px var(--paper), inset 0 0 0 5px var(--gold-3), var(--shadow); transition: transform .2s, box-shadow .2s; color: var(--ink); }
.arch-card:hover { transform: translateY(-4px); box-shadow: inset 0 0 0 4px var(--paper), inset 0 0 0 5px var(--gold-2), var(--shadow-lg); }
.arch-card .icon-star { margin: 0 auto 10px; width: 62px; height: 62px; }
.arch-card .icon-star svg { width: 24px; height: 24px; }
.arch-card h3 { font-size: 24px; margin-bottom: 4px; }
.arch-card .ages { font-size: 12.5px; color: var(--gold-600); margin-bottom: 10px; }
.arch-card p { color: var(--ink-2); font-size: 14px; line-height: 1.8; flex: 1; }
.arch-card .more { display: inline-flex; align-items: center; justify-content: center; gap: 4px; font-size: 13.5px; color: var(--wine); font-weight: 500; }
.arch-card .more svg { width: 15px; height: 15px; }

.card-o { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow-sm); transition: border-color .2s, transform .2s; }
.card-o:hover { border-color: var(--gold-2); }
.card-o h3 { font-size: 21px; margin-bottom: 6px; }
.card-o p { color: var(--ink-2); font-size: 14px; line-height: 1.8; }
.card-row { display: flex; align-items: flex-start; gap: 14px; }

/* ------------------------------------------------------------------ Schedule teaser / table */
.table-wrap { overflow-x: auto; border-radius: var(--radius); }
.tbl { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 14px; }
.tbl th { text-align: start; font-weight: 500; font-size: 12.5px; color: var(--gold-600); padding: 12px 14px; background: var(--paper-2); border-bottom: 1px solid var(--line-gold); white-space: nowrap; }
.tbl td { padding: 13px 14px; border-bottom: 1px dashed var(--line); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tbody tr:hover td { background: #fffdf8; }
.c-name { display: flex; align-items: center; gap: 10px; }
.c-name b { font-family: var(--font-head); font-size: 19px; color: var(--wine); line-height: 1.2; }
.c-name small { display: block; color: var(--ink-3); font-size: 12px; }
.c-dot { width: 12px; height: 12px; transform: rotate(45deg); border-radius: 2px; flex-shrink: 0; background: var(--gold); box-shadow: 0 0 0 3px var(--paper), 0 0 0 4px var(--line-gold); }
.time-cell { white-space: nowrap; }
.time-cell small { display: block; color: var(--ink-3); font-size: 12px; }
.seats { display: flex; flex-direction: column; gap: 4px; min-width: 110px; }
.seats .bar { height: 6px; border-radius: 99px; background: var(--parchment-2); overflow: hidden; }
.seats .bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--gold), var(--wine)); }
.seats small { font-size: 12px; color: var(--ink-2); }

.period-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-bottom: 26px; }
.period-card { display: flex; align-items: center; gap: 14px; padding: 18px; }
.period-card h3 { font-size: 22px; margin: 0; }
.period-card p { margin: 0; color: var(--ink-2); font-size: 13.5px; }
.period-card .pc-time { margin-inline-start: auto; text-align: end; font-family: var(--font-head); font-size: 20px; color: var(--wine); white-space: nowrap; }
.period-card .pc-time small { display: block; font-family: var(--font); font-size: 12px; color: var(--ink-3); }

/* filters */
.filters { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 18px; }
.seg { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line-gold); }
.seg button { border: 0; background: transparent; padding: 7px 14px; border-radius: 999px; font-size: 13px; color: var(--ink-2); cursor: pointer; white-space: nowrap; }
.seg button:hover { color: var(--wine); }
.seg button.active { background: var(--wine); color: #fff; }
.search { position: relative; flex: 1 1 200px; max-width: 300px; }
.search svg { position: absolute; top: 50%; right: 12px; transform: translateY(-50%); width: 16px; height: 16px; color: var(--ink-3); pointer-events: none; }
.search .input { padding-inline-start: 36px; border-radius: 999px; }
.result-count { font-size: 13px; color: var(--ink-2); margin-inline-start: auto; }

/* ------------------------------------------------------------------ Honor board / competitions */
.honor { padding: 0; overflow: hidden; }
.honor-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 18px 22px; background: var(--wine); color: #f6e2b0; background-image: var(--pattern-light); background-size: 60px; background-blend-mode: soft-light; }
.honor-head h3 { color: #fff1d0; margin: 0; font-size: 22px; display: flex; align-items: center; gap: 8px; }
.honor-head h3 svg { color: var(--gold-2); }
.honor-head small { color: #e8cf93; font-size: 12px; }
.honor-list { list-style: none; margin: 0; padding: 8px 14px 14px; }
.honor-list li { display: flex; align-items: center; gap: 12px; padding: 10px 8px; border-bottom: 1px dashed var(--line); }
.honor-list li:last-child { border-bottom: 0; }
.rank { position: relative; isolation: isolate; width: 36px; height: 36px; display: grid; place-items: center; font-family: var(--font-head); font-weight: 700; font-size: 17px; color: var(--gold-600); flex-shrink: 0; }
.rank::before, .rank::after { content: ""; position: absolute; inset: 15%; border: 1px solid var(--gold-2); background: var(--paper-2); border-radius: 3px; z-index: -1; }
.rank::after { transform: rotate(45deg); }
.rank.r1 { color: #fff; } .rank.r1::before, .rank.r1::after { background: var(--gold); border-color: var(--gold-600); }
.rank.r2 { color: #fff; } .rank.r2::before, .rank.r2::after { background: #9a8f86; border-color: #7f746c; }
.rank.r3 { color: #fff; } .rank.r3::before, .rank.r3::after { background: #a8673a; border-color: #8a5230; }
.hl-name { flex: 1; min-width: 0; }
.hl-name b { display: block; font-weight: 500; font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hl-name small { color: var(--ink-3); font-size: 12px; }
.hl-pts { text-align: end; font-family: var(--font-head); font-size: 19px; color: var(--wine); white-space: nowrap; line-height: 1.1; }
.hl-pts small { display: block; font-family: var(--font); font-size: 11px; color: var(--ink-3); }

.comp-card { display: flex; flex-direction: column; gap: 10px; }
.comp-top { display: flex; align-items: flex-start; gap: 14px; }
.comp-top h3 { font-size: 22px; margin: 0 0 4px; }
.comp-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13px; color: var(--ink-2); }
.comp-meta span { display: inline-flex; align-items: center; gap: 5px; }
.comp-meta svg { width: 14px; height: 14px; color: var(--gold); }
.branches { display: flex; flex-wrap: wrap; gap: 6px; }
.podium { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 4px; }
.podium > div { text-align: center; padding: 12px 8px; border-radius: 14px; background: var(--paper-2); border: 1px solid var(--line); }
.podium .rank { margin: 0 auto 4px; }
.podium b { display: block; font-size: 13.5px; font-weight: 500; line-height: 1.4; }
.podium small { color: var(--ink-3); font-size: 11.5px; }
.countdown { display: flex; gap: 8px; }
.countdown div { min-width: 64px; text-align: center; padding: 8px; border-radius: 12px; background: var(--wine); color: #f6e2b0; }
.countdown b { display: block; font-family: var(--font-head); font-size: 26px; line-height: 1; color: #fff; }
.countdown small { font-size: 11px; }

/* ------------------------------------------------------------------ News & testimonials */
.news-card { display: flex; flex-direction: column; overflow: hidden; padding: 0; text-align: start; cursor: pointer; font: inherit; color: inherit; width: 100%; }
.news-top { position: relative; height: 130px; display: grid; place-items: center; background: linear-gradient(160deg, #7a2440, #4d1526); overflow: hidden; color: rgba(232, 207, 147, .85); }
.news-top::before { content: ""; position: absolute; inset: 0; background-image: var(--pattern-light); background-size: 56px; opacity: .2; }
.news-top.gold { background: linear-gradient(160deg, #c79a44, #96701f); color: rgba(255, 245, 220, .9); }
.news-top.olive { background: linear-gradient(160deg, #6d8d4a, #3f5a26); color: rgba(240, 236, 210, .9); }
.news-top svg { position: relative; width: 44px; height: 44px; }
.news-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.news-body h3 { font-size: 20px; margin: 0; line-height: 1.45; }
.news-body p { margin: 0; color: var(--ink-2); font-size: 13.5px; line-height: 1.8; flex: 1; }
.news-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 12.5px; color: var(--ink-3); }
.news-body .more { color: var(--wine); font-size: 13.5px; font-weight: 500; display: inline-flex; align-items: center; gap: 4px; }
.news-body .more svg { width: 15px; height: 15px; }

.quote { position: relative; padding: 26px 22px 20px; }
.quote > svg.q { position: absolute; top: -14px; right: 22px; width: 34px; height: 34px; padding: 7px; border-radius: 50%; background: var(--wine); color: var(--gold-2); }
.quote p { font-size: 15px; line-height: 1.95; color: var(--ink); margin-bottom: 14px; }
.quote footer { display: flex; align-items: center; gap: 10px; padding-top: 12px; border-top: 1px dashed var(--line); }
.quote footer b { display: block; font-size: 14px; font-weight: 500; }
.quote footer small { color: var(--ink-3); font-size: 12px; }
.mono { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--gold-soft); color: var(--wine); font-family: var(--font-head); font-weight: 700; font-size: 17px; border: 1px solid var(--gold-3); flex-shrink: 0; }

/* CTA band */
.cta-band { position: relative; overflow: hidden; isolation: isolate; border-radius: 28px; padding: 44px 36px; color: #f8ead0; background: linear-gradient(150deg, #7a2440, #46121f); border: 1px solid var(--gold); box-shadow: inset 0 0 0 6px #6e1f35, inset 0 0 0 7px rgba(214, 180, 108, .55), var(--shadow-lg); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: center; }
.cta-band::before { content: ""; position: absolute; inset: 0; background-image: var(--pattern-light); background-size: 64px; opacity: .12; z-index: -1; }
.cta-band h2 { color: #fff3d6; font-size: clamp(26px, 3.4vw, 36px); margin-bottom: 6px; }
.cta-band p { margin: 0; color: #ecd9bd; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* ------------------------------------------------------------------ Forms */
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 18px; }
.form-grid .full { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > label, .field > .label { font-size: 13.5px; font-weight: 500; color: var(--ink); }
.field > label .req { color: var(--red); }
.field .hint { font-size: 12px; color: var(--ink-3); }
.input, .select, .textarea { width: 100%; font: inherit; font-size: 14.5px; color: var(--ink); background: #fffdf8; border: 1px solid var(--line); border-radius: 12px; padding: 11px 14px; transition: border-color .15s, box-shadow .15s; min-width: 0; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(184, 137, 45, .18); }
.textarea { resize: vertical; min-height: 96px; }
.input[dir="ltr"] { text-align: right; }
.field.invalid .input, .field.invalid .select, .field.invalid .textarea { border-color: var(--red); box-shadow: 0 0 0 3px rgba(163, 42, 42, .1); }
.field .err { display: none; font-size: 12px; color: var(--red); }
.field.invalid .err { display: block; }
.choice-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.choice { position: relative; display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); background: #fffdf8; cursor: pointer; transition: .15s; min-width: 0; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice svg { width: 20px; height: 20px; color: var(--gold); flex-shrink: 0; }
.choice span { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.choice b { font-weight: 500; font-size: 14.5px; }
.choice small { font-size: 12px; color: var(--ink-3); }
.choice:has(input:checked) { border-color: var(--wine); background: var(--wine-soft); box-shadow: inset 0 0 0 1px var(--wine); }
.choice:has(input:checked) svg { color: var(--wine); }
.choice:has(input:focus-visible) { outline: 2px solid var(--gold); outline-offset: 2px; }
.check { display: flex; align-items: flex-start; gap: 10px; font-size: 13.5px; color: var(--ink-2); line-height: 1.7; cursor: pointer; }
.check input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--wine); flex-shrink: 0; }
.form-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 20px; padding-top: 18px; border-top: 1px dashed var(--line-gold); }
.form-actions .muted { font-size: 12.5px; margin-inline-start: auto; }
.form-title { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; padding-bottom: 14px; border-bottom: 1px dashed var(--line-gold); }
.form-title h2 { font-size: 26px; margin: 0; }
.form-title p { margin: 0; color: var(--ink-2); font-size: 13.5px; }
.form-section { font-family: var(--font-head); font-size: 19px; color: var(--wine); display: flex; align-items: center; gap: 8px; margin: 6px 0 -4px; }
.form-section::before { content: ""; width: 11px; height: 11px; background: var(--star-gold) center / contain no-repeat; }

/* steps list */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: s; display: flex; flex-direction: column; gap: 14px; }
.steps li { position: relative; padding-inline-start: 46px; counter-increment: s; font-size: 14px; color: var(--ink-2); line-height: 1.8; }
.steps li b { display: block; color: var(--ink); font-weight: 500; }
.steps li::before { content: counter(s, arabic-indic); position: absolute; right: 0; top: 0; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: var(--wine); color: #f6e2b0; font-family: var(--font-head); font-weight: 700; font-size: 17px; box-shadow: 0 0 0 3px var(--paper), 0 0 0 4px var(--gold-3); }
.ticks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--ink-2); line-height: 1.8; }
.ticks li::before { content: ""; width: 12px; height: 12px; margin-top: 7px; flex-shrink: 0; background: var(--star-gold) center / contain no-repeat; }

/* success */
.success-panel { text-align: center; padding: 34px 24px; }
.success-panel h2 { font-size: 30px; margin: 10px 0 6px; }
.ref-box { display: inline-flex; flex-direction: column; align-items: center; gap: 2px; padding: 12px 28px; margin: 14px 0; border-radius: 16px; border: 1px dashed var(--gold); background: var(--gold-soft); }
.ref-box small { font-size: 12px; color: var(--gold-600); }
.ref-box b { font-family: var(--font-head); font-size: 30px; color: var(--wine); letter-spacing: 1px; direction: ltr; }
.success-meta { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; max-width: 620px; margin: 6px auto 18px; text-align: center; }
.success-meta div { padding: 10px; border-radius: 12px; background: var(--paper-2); border: 1px solid var(--line); }
.success-meta small { display: block; font-size: 11.5px; color: var(--ink-3); }
.success-meta b { font-size: 14px; font-weight: 500; }

/* FAQ */
.faq { display: flex; flex-direction: column; gap: 10px; }
.faq details { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 0 18px; transition: border-color .2s; }
.faq details[open] { border-color: var(--gold-2); }
.faq summary { cursor: pointer; list-style: none; padding: 15px 0; font-weight: 500; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--font-head); font-size: 24px; color: var(--gold); line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 0 0 16px; color: var(--ink-2); font-size: 14px; line-height: 1.9; }

/* levels ladder */
.ladder { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.rung { position: relative; text-align: center; padding: 18px 10px 16px; border-radius: 18px; background: var(--paper); border: 1px solid var(--line); border-top: 4px solid var(--lc, var(--gold)); }
.rung .n { display: block; font-family: var(--font-head); font-size: 15px; color: var(--ink-3); }
.rung h3 { font-size: 22px; margin: 0 0 4px; color: var(--lc, var(--wine)); }
.rung p { font-size: 12.5px; color: var(--ink-2); line-height: 1.7; margin: 0 0 8px; }
.rung .plan { display: flex; flex-direction: column; gap: 3px; font-size: 12px; color: var(--ink-2); padding-top: 8px; border-top: 1px dashed var(--line); }
.rung .plan b { color: var(--ink); font-weight: 500; }

/* people */
.person-card { text-align: center; padding: 24px 16px; }
.person-card .mono { width: 64px; height: 64px; font-size: 24px; margin: 0 auto 10px; box-shadow: 0 0 0 4px var(--paper), 0 0 0 5px var(--gold-3); }
.person-card h3 { font-size: 20px; margin: 0 0 2px; }
.person-card small { color: var(--gold-600); font-size: 12.5px; }
.person-card p { font-size: 13px; color: var(--ink-2); margin: 8px 0 0; line-height: 1.7; }

/* timeline */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; top: 6px; bottom: 6px; right: 7px; width: 1px; background: var(--gold-2); }
.timeline li { position: relative; padding: 0 34px 20px 0; }
.timeline li::before { content: ""; position: absolute; right: 0; top: 4px; width: 15px; height: 15px; background: var(--star-gold) center / contain no-repeat; }
.timeline b { display: block; font-family: var(--font-head); font-size: 19px; color: var(--wine); }
.timeline p { margin: 0; color: var(--ink-2); font-size: 14px; }

/* map placeholder */
.map-box { position: relative; overflow: hidden; min-height: 320px; border-radius: var(--radius-lg); border: 1px solid var(--gold-2); background: #efe6d3; }
.map-box svg.map-svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.map-pin { position: absolute; top: 46%; left: 50%; transform: translate(-50%, -100%); display: flex; flex-direction: column; align-items: center; gap: 4px; }
.map-pin .pin { width: 46px; height: 46px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: var(--wine); display: grid; place-items: center; box-shadow: 0 10px 18px -8px rgba(0, 0, 0, .5), 0 0 0 4px rgba(255, 250, 241, .8); }
.map-pin .pin svg { transform: rotate(45deg); width: 22px; height: 22px; color: #f6e2b0; }
.map-pin span { margin-top: 6px; padding: 4px 12px; border-radius: 999px; background: var(--paper); border: 1px solid var(--gold-2); font-size: 12.5px; font-weight: 500; white-space: nowrap; box-shadow: var(--shadow); }
.map-actions { position: absolute; bottom: 14px; left: 14px; right: 14px; display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-start; }

.info-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.info-list li { display: flex; align-items: flex-start; gap: 12px; }
.info-list b { display: block; font-weight: 500; font-size: 14px; }
.info-list span { color: var(--ink-2); font-size: 13.5px; }

/* empty */
.empty { text-align: center; padding: 40px 16px; color: var(--ink-2); }
.empty .icon-star { margin: 0 auto 10px; }

/* ------------------------------------------------------------------ Footer */
.site-footer { position: relative; overflow: hidden; isolation: isolate; background: #241b18; color: #d9c8ad; margin-top: 72px; border-top: 3px double var(--gold); }
.footer-pattern { position: absolute; inset: 0; background-image: var(--pattern-light); background-size: 72px; opacity: .06; z-index: -1; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 30px; padding-top: 52px; padding-bottom: 34px; }
.site-footer h4 { font-size: 20px; color: #f6e2b0; margin-bottom: 14px; }
.site-footer p { font-size: 13.5px; line-height: 1.9; margin: 14px 0; color: #cdbb9e; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; font-size: 13.5px; }
.site-footer a { color: #e4d3b6; }
.site-footer a:hover { color: #fff; }
.site-footer li svg { width: 16px; height: 16px; color: var(--gold-2); flex-shrink: 0; margin-top: 3px; }
.f-contact li, .f-times li { display: flex; gap: 10px; align-items: flex-start; }
.f-times small { display: block; color: #a8977f; font-size: 12px; }
.f-contact { margin-bottom: 16px !important; }
.f-licence { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: #b9a78b; }
.f-licence svg { width: 15px; height: 15px; color: var(--gold-2); }
.site-footer .brand-mark { background: #3a1420; }
.footer-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding-top: 18px; padding-bottom: 22px; border-top: 1px solid rgba(214, 180, 108, .2); font-size: 12.5px; color: #a8977f; }
.f-powered { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.f-tarteel { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; border: 1px solid rgba(214, 180, 108, .4); }
.f-tarteel svg { width: 11px; height: 11px; color: var(--gold-2); }
.f-tarteel .f-tarteel-logo { width: 22px; height: 22px; object-fit: contain; background: #fbf5ea; padding: 2px; border-radius: 6px; }
.f-tarteel b { font-family: var(--font-head); color: #f6e2b0; font-size: 15px; }
.f-almgrat { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; }
.f-almgrat img { height: 22px; width: auto; filter: brightness(0) invert(1); opacity: .8; }

/* ------------------------------------------------------------------ Toast & modal (CP helpers from ../assets/js/app.js) */
.toast-wrap { position: fixed; z-index: 300; top: 18px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; gap: 8px; width: min(440px, calc(100vw - 24px)); pointer-events: none; }
.toast { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; border-radius: 16px; background: var(--ink); color: #f6ecd8; font-size: 13.5px; line-height: 1.6; box-shadow: var(--shadow-lg), inset 0 0 0 1px rgba(214, 180, 108, .45); animation: toastIn .25s ease; pointer-events: auto; }
.toast b { color: #f2d99c; }
.toast.hide { opacity: 0; transform: translateY(-6px); transition: .25s; }
@keyframes toastIn { from { opacity: 0; transform: translateY(-8px); } }
.t-icon { flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--olive); color: #fff; }
.t-icon svg { width: 15px; height: 15px; }
.toast.warning .t-icon { background: var(--amber); } .toast.error .t-icon { background: var(--red); } .toast.info .t-icon { background: var(--blue-ink); }
.modal-backdrop { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(43, 35, 32, .5); backdrop-filter: blur(3px); opacity: 0; transition: opacity .18s; }
.modal-backdrop.show { opacity: 1; }
.modal { position: relative; width: 100%; max-width: 620px; max-height: calc(100vh - 40px); display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--gold); border-radius: 24px; box-shadow: inset 0 0 0 5px var(--paper), inset 0 0 0 6px var(--gold-3), var(--shadow-lg); transform: translateY(10px) scale(.98); transition: transform .2s; }
.modal-backdrop.show .modal { transform: none; }
.modal.sm { max-width: 440px; } .modal.lg { max-width: 840px; }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 22px 12px; border-bottom: 1px dashed var(--line); }
.modal-head h3 { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 21px; color: var(--wine); min-width: 0; }
.modal-head h3 > span:last-child { min-width: 0; }
.mh-ic { position: relative; isolation: isolate; width: 38px; height: 38px; display: grid; place-items: center; color: var(--wine); flex-shrink: 0; }
.mh-ic::before, .mh-ic::after { content: ""; position: absolute; inset: 14%; background: var(--gold-soft); border: 1px solid var(--gold-2); border-radius: 3px; z-index: -1; }
.mh-ic::after { transform: rotate(45deg); }
.mh-ic svg { width: 17px; height: 17px; }
.btn-icon { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line); background: var(--paper); color: var(--ink-2); cursor: pointer; flex-shrink: 0; }
.btn-icon:hover { color: var(--wine); border-color: var(--gold-2); }
.modal-body { padding: 18px 22px; overflow-y: auto; font-size: 14.5px; line-height: 1.9; }
.modal-foot { display: flex; flex-wrap: wrap; gap: 8px; padding: 14px 22px 20px; border-top: 1px dashed var(--line); }
.success-box { text-align: center; padding: 6px 0; }
.success-mark { display: flex; justify-content: center; margin-bottom: 8px; }
.success-box h3 { font-size: 22px; color: var(--wine); margin-bottom: 4px; }
.seal { --ss: 58px; --gc: var(--gold); --gbg: var(--gold-soft); --gink: var(--gold-600); position: relative; isolation: isolate; display: inline-grid; place-items: center; width: var(--ss); height: var(--ss); flex-shrink: 0; }
.seal::before, .seal::after { content: ""; position: absolute; inset: 14%; background: var(--gbg); border: 1.5px solid var(--gc); border-radius: 4px; z-index: -1; }
.seal::after { transform: rotate(45deg); }
.seal > span { display: grid; place-items: center; width: 70%; height: 70%; border-radius: 50%; border: 1px dashed var(--gc); color: var(--gink); }
.seal > span svg { width: 50%; height: 50%; }
.seal-lg { --ss: 84px; }
.seal.g-excellent { --gc: var(--olive); --gbg: var(--olive-soft); --gink: var(--olive); }

/* ------------------------------------------------------------------ Responsive */
@media (max-width: 1180px) {
  .main-nav a { padding: 8px 8px; font-size: 13.5px; }
  .btn-portal .lbl-long { display: none; }
  .btn-portal .lbl-short { display: inline; }
}
@media (max-width: 1020px) {
  .main-nav { display: none; }
  .header-actions { margin-inline-start: auto; }
  .btn-burger { display: grid; }
  .btn-portal .lbl-long { display: inline; }
  .btn-portal .lbl-short { display: none; }
  .hero-grid, .split, .split.split-form { grid-template-columns: minmax(0, 1fr); }
  .hero-medal { max-width: 340px; }
  .grid-4, .ladder { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .f-about { grid-column: 1 / -1; }
  .ts-times { display: none; }
}
@media (max-width: 820px) {
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat:nth-child(3)::before { display: none; }
  .btn-portal .lbl-long { display: none; }
  .btn-portal .lbl-short { display: inline; }
  .cta-band { grid-template-columns: minmax(0, 1fr); padding: 34px 24px; }
  .tbl-cards thead { display: none; }
  .tbl-cards, .tbl-cards tbody, .tbl-cards tr, .tbl-cards td { display: block; width: 100%; }
  .tbl-cards tr { padding: 14px 16px; border-bottom: 1px dashed var(--line-gold); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px 12px; }
  .tbl-cards tr:last-child { border-bottom: 0; }
  .tbl-cards td { padding: 0; border: 0; }
  .tbl-cards td[data-label]::before { content: attr(data-label); display: block; font-size: 11px; color: var(--ink-3); }
  .tbl-cards td.td-main, .tbl-cards td.td-act { grid-column: 1 / -1; }
  .tbl-cards tbody tr:hover td { background: none; }
}
@media (max-width: 640px) {
  .container { padding-inline: 16px; }
  .sec { padding: 54px 0; }
  .header-in { min-height: 64px; gap: 8px; }
  .brand-mark { width: 40px; height: 40px; border-radius: 12px; }
  .brand-mark svg { width: 29px; height: 29px; }
  .brand-t b { font-size: 20px; }
  .brand-t small { font-size: 10.5px; }
  .btn-reg { display: none; }
  .ts-phone { display: none; }
  .topstrip-in { justify-content: center; }
  .grid-2, .grid-3, .grid-4, .period-cards, .form-grid, .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .ladder { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero { padding: 44px 0 120px; }
  .hero .skyline { height: 110px; }
  .hero-lead { font-size: 15.5px; }
  .hero-cta .btn { flex: 1 1 auto; }
  .hero-card { width: 72%; }
  .frame { padding: 18px; }
  .cartouche { padding: 6px 20px; gap: 10px; }
  .podium { grid-template-columns: minmax(0, 1fr); }
  .success-meta { grid-template-columns: minmax(0, 1fr); }
  .search { max-width: none; flex-basis: 100%; }
  .result-count { margin-inline-start: 0; }
  .modal-backdrop { align-items: flex-end; padding: 0; }
  .modal, .modal.sm, .modal.lg { max-width: none; max-height: 94vh; border-radius: 24px 24px 0 0; }
  .modal-head, .modal-body, .modal-foot { padding-inline: 16px; }
  .modal-foot .btn { flex: 1 1 auto; }
  .form-actions .muted { margin-inline-start: 0; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .period-card .pc-time { font-size: 17px; }
}
@media (max-width: 420px) {
  .btn-portal { width: 42px; height: 42px; padding: 0; border-radius: 12px; }
  .btn-portal .lbl-short, .btn-portal .lbl-long { display: none; }
  .brand-t small { display: none; }
  .choice-row { grid-template-columns: minmax(0, 1fr); }
  .tbl-cards tr { grid-template-columns: minmax(0, 1fr); }
  .countdown div { min-width: 0; flex: 1; }
}
