/* =====================================================================
   IMPACTER 4 — Premium Theme
   Deep midnight navy · luminous teal + gold (from the IMPACTER 4 artwork)
   glassmorphism · RTL/LTR
   ===================================================================== */

:root {
    --bg:        #020b1e;
    --bg-2:      #071838;
    --panel:     rgba(255, 255, 255, 0.045);
    --panel-2:   rgba(255, 255, 255, 0.07);
    --border:    rgba(255, 255, 255, 0.10);
    --border-2:  rgba(255, 255, 255, 0.18);
    --text:      #eaf3f8;
    --muted:     #94abc2;
    --muted-2:   #5d7591;

    --gold:      #e8b54a;   /* primary brand accent = IMPACTER gold */
    --gold-2:    #c8922c;
    --cyan:      #3fd8d0;   /* secondary = luminous teal */
    --teal:      #22b8c4;
    --violet:    #8ee8e2;   /* soft aqua */
    --orange:    #f3c766;   /* call-to-action accent (bright gold) */
    --orange-2:  #d9a23a;
    --danger:    #f87171;
    --success:   #34d399;
    --warning:   #fbbf24;

    --grad-gold: linear-gradient(135deg, #f6d888 0%, #e8b54a 55%, #c8922c 100%);
    --grad-cta:  linear-gradient(135deg, #f8dc8c 0%, #e8b54a 55%, #d39a32 100%);
    --grad-hero: linear-gradient(120deg, #3fd8d0 0%, #9fe7d9 38%, #f3d07a 70%, #e8b54a 100%);

    --radius:    18px;
    --radius-sm: 12px;
    --shadow:    0 30px 80px -30px rgba(0, 0, 0, 0.75);
    --shadow-glow: 0 0 0 1px var(--border), 0 24px 60px -28px rgba(63, 216, 208, 0.35);

    --maxw: 1180px;
    --header-h: 96px;
    --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- Reset ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }
*::selection { background: var(--gold); color: #0a1626; }
[hidden] { display: none !important; }

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

body {
    background: var(--bg);
    color: var(--text);
    font-family: 'Sora', system-ui, sans-serif;
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}
html[lang="ar"] body { font-family: 'Tajawal', system-ui, sans-serif; }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
button, input, select, textarea { font-family: inherit; color: inherit; }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 22px; }
.site-main { position: relative; z-index: 1; min-height: 60vh; }

/* ---------- Static background: deep navy / indigo like the IMPACTER 4 artwork ---------- */
.bg-aurora {
    position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none;
    background:
        radial-gradient(1100px 700px at 50% 18%, rgba(22,52,110,.55), transparent 70%),
        radial-gradient(900px 600px at 85% 100%, rgba(14,36,86,.45), transparent 70%),
        radial-gradient(800px 500px at 0% 70%, rgba(10,30,72,.40), transparent 70%),
        var(--bg);
}


/* ---------- Header / Nav ---------- */
.site-header {
    position: sticky; top: 0; z-index: 100;
    height: var(--header-h);
    display: flex; align-items: center;
    backdrop-filter: blur(14px);
    background: rgba(2,11,30,.55);
    border-bottom: 1px solid transparent;
    transition: background .3s, border-color .3s;
}
.site-header.scrolled {
    background: rgba(2,11,30,.85);
    border-bottom-color: var(--border);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 18px; }

.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark { display: grid; place-items: center; filter: drop-shadow(0 4px 12px rgba(63,216,208,.35)); }
/* Official IMPACTER 4 logo */
.brand-logo { flex-shrink: 0; }
.site-logo, .site-logo img { display: block; height: 74px; width: auto; }
.nav-menu > a { white-space: nowrap; }
.site-logo img { filter: drop-shadow(0 0 .6px rgba(235,250,250,.95)) drop-shadow(0 0 .6px rgba(235,250,250,.7)) drop-shadow(0 0 12px rgba(63,216,208,.30)); }
.site-logo-footer, .site-logo-footer img { height: 110px; }
@media (max-width: 1240px) { .site-logo, .site-logo img { height: 60px; } .nav-menu > a { padding-inline: 10px; } }
@media (max-width: 820px)  { .site-logo, .site-logo img { height: 56px; } .site-logo-footer, .site-logo-footer img { height: 80px; } }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-text strong { font-size: 1.05rem; letter-spacing: .14em; background: var(--grad-gold); -webkit-background-clip: text; background-clip: text; color: transparent; }
.brand-text small { font-size: .66rem; color: var(--muted); letter-spacing: .02em; }

.nav-menu { display: flex; align-items: center; gap: 6px; }
.nav-menu > a {
    padding: 9px 14px; border-radius: 10px; font-size: .92rem; color: var(--muted);
    transition: color .2s, background .2s; position: relative;
}
.nav-menu > a:hover { color: var(--text); }
.nav-menu > a.active { color: var(--text); }
.nav-menu > a.active::after {
    content: ''; position: absolute; inset-inline: 14px; bottom: 2px; height: 2px;
    background: var(--grad-gold); border-radius: 2px;
}
.nav-actions { display: flex; align-items: center; gap: 10px; margin-inline-start: 8px; }

.lang-switch {
    display: inline-flex; align-items: center; gap: 7px; padding: 8px 12px;
    border: 1px solid var(--border); border-radius: 10px; font-size: .82rem; color: var(--muted);
    transition: all .2s;
}
.lang-switch:hover { color: var(--text); border-color: var(--border-2); background: var(--panel); }

/* user menu */
.user-menu { position: relative; }
.user-chip {
    display: inline-flex; align-items: center; gap: 9px; cursor: pointer;
    background: var(--panel); border: 1px solid var(--border); border-radius: 999px;
    padding: 5px 12px 5px 5px; transition: border-color .2s;
}
.user-chip:hover { border-color: var(--border-2); }
.avatar {
    width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
    background: var(--grad-gold); color: #0a1626; font-weight: 800; font-size: .9rem;
}
.user-name { font-size: .85rem; max-width: 130px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-dropdown {
    position: absolute; inset-inline-end: 0; top: calc(100% + 10px); min-width: 210px;
    background: #0b2140; border: 1px solid var(--border); border-radius: 14px; padding: 8px;
    box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: all .22s var(--ease); z-index: 50;
}
.user-menu.open .user-dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.ud-role { display: block; font-size: .7rem; color: var(--gold); padding: 6px 12px; letter-spacing: .04em; text-transform: uppercase; }
.user-dropdown a { display: block; padding: 10px 12px; border-radius: 9px; font-size: .9rem; color: var(--muted); transition: background .2s, color .2s; }
.user-dropdown a:hover { background: var(--panel-2); color: var(--text); }
.user-dropdown a.danger:hover { color: var(--danger); }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: .3s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav backdrop (only active when body.nav-open) */
.nav-backdrop { position: fixed; inset: 0; z-index: 89; background: rgba(2,8,18,.55); opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .3s; }
body.nav-open .nav-backdrop { opacity: 1; visibility: visible; pointer-events: auto; }
.nav-close { display: none; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 9px;
    padding: 13px 26px; border-radius: 12px; border: 1px solid transparent;
    font-weight: 600; font-size: .95rem; cursor: pointer; transition: transform .18s var(--ease), box-shadow .25s, background .25s, border-color .25s;
    white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-sm { padding: 9px 16px; font-size: .85rem; border-radius: 10px; }
.btn-lg { padding: 16px 34px; font-size: 1.02rem; }
.btn-block { width: 100%; }

.btn-gold { background: var(--grad-cta); color: #1b1204; box-shadow: 0 14px 34px -14px rgba(232,181,74,.7); }
.btn-gold:hover { box-shadow: 0 20px 44px -14px rgba(232,181,74,.95); }
.btn-cyan { background: linear-gradient(135deg,#3fd8d0,#1fa9b8); color: #0a1626; box-shadow: 0 14px 34px -14px rgba(63,216,208,.7); }
.btn-ghost { background: var(--panel); border-color: var(--border); color: var(--text); }
.btn-ghost:hover { border-color: var(--border-2); background: var(--panel-2); }
.btn-outline { background: transparent; border-color: var(--border-2); color: var(--text); }
.btn-outline:hover { background: var(--panel); }
.btn-danger { background: rgba(248,113,113,.14); border-color: rgba(248,113,113,.4); color: #fca5a5; }
.btn-danger:hover { background: rgba(248,113,113,.22); }
.btn-success { background: rgba(52,211,153,.16); border-color: rgba(52,211,153,.45); color: #6ee7b7; }
.btn-success:hover { background: rgba(52,211,153,.26); }
.btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; }

/* ---------- Flash messages ---------- */
.flash-stack { position: relative; z-index: 5; margin-top: 18px; display: grid; gap: 10px; }
.flash {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 13px 18px; border-radius: 12px; border: 1px solid var(--border);
    background: var(--panel-2); backdrop-filter: blur(8px); animation: slideDown .4s var(--ease);
}
.flash-success { border-color: rgba(52,211,153,.4); background: rgba(52,211,153,.12); }
.flash-error   { border-color: rgba(248,113,113,.4); background: rgba(248,113,113,.12); }
.flash-warning { border-color: rgba(251,191,36,.4); background: rgba(251,191,36,.12); }
.flash-x { background: none; border: 0; font-size: 1.3rem; color: var(--muted); cursor: pointer; line-height: 1; }
@keyframes slideDown { from { opacity: 0; transform: translateY(-14px); } to { opacity: 1; transform: translateY(0); } }

/* ---------- Section helpers ---------- */
.section { padding: 92px 0; position: relative; }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 54px; }
.kicker {
    display: inline-flex; align-items: center; gap: 8px; padding: 7px 16px; border-radius: 999px;
    border: 1px solid var(--border); background: var(--panel); color: var(--gold);
    font-size: .76rem; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 18px;
}
.kicker::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 10px var(--gold); }
h1, h2, h3 { line-height: 1.15; letter-spacing: -.01em; }
.section-title { font-size: clamp(1.9rem, 4vw, 2.9rem); font-weight: 800; }
.section-title .accent { background: var(--grad-hero); -webkit-background-clip: text; background-clip: text; color: transparent; }
.section-sub { color: var(--muted); margin-top: 14px; font-size: 1.05rem; }
.serif { font-family: 'Cormorant Garamond', serif; }

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

/* =====================================================================
   HERO
   ===================================================================== */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; overflow: hidden; }
.hero-video {
    position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
    z-index: 0; opacity: .45;
}
.hero::after {
    content: ''; position: absolute; inset: 0; z-index: 1;
    background:
        radial-gradient(1000px 700px at 50% 30%, transparent, rgba(2,11,30,.55) 70%),
        linear-gradient(180deg, rgba(2,11,30,.4) 0%, rgba(2,11,30,.2) 35%, var(--bg) 100%);
}
.hero-inner { position: relative; z-index: 2; text-align: center; padding: 120px 0 80px; width: 100%; }
.hero-kicker {
    display: inline-flex; align-items: center; gap: 10px; padding: 8px 18px; border-radius: 999px;
    border: 1px solid var(--border-2); background: rgba(255,255,255,.04); backdrop-filter: blur(6px);
    color: var(--gold); font-size: .82rem; letter-spacing: .12em; margin-bottom: 26px;
    animation: fadeUp .8s var(--ease) both;
}
.hero h1 {
    font-size: clamp(2.8rem, 8vw, 6rem); font-weight: 700; letter-spacing: .02em; line-height: 1.05;
    margin-top: -6px; animation: fadeUp .8s .25s var(--ease) both;
}
.hero h1 .grad { background: var(--grad-hero); -webkit-background-clip: text; background-clip: text; color: transparent; }
.grad-gold-text {
    background: linear-gradient(180deg, #fff1c4 0%, #f3d07a 38%, #e8b54a 62%, #b9822a 100%);
    -webkit-background-clip: text; background-clip: text; color: transparent;
    filter: drop-shadow(0 6px 26px rgba(232,181,74,.28));
}
.hero-mark-cal {
    display: block; color: var(--gold); font-size: clamp(.78rem, 1.6vw, 1.05rem);
    letter-spacing: .55em; text-transform: uppercase; margin-bottom: 14px; padding-inline-start: .55em;
    animation: fadeUp .8s var(--ease) both;
}
html[lang="ar"] .hero-mark-cal { letter-spacing: .08em; padding: 0; font-size: clamp(1rem, 2vw, 1.25rem); }
.hero-when { display: flex; flex-direction: column; align-items: center; gap: 4px; animation: fadeUp .8s .1s var(--ease) both; }
.hero-date { font-size: clamp(1.8rem, 5vw, 3.1rem); font-weight: 500; color: #8eeee8; text-shadow: 0 0 28px rgba(63,216,208,.35); }
.hero-venue { color: #f0cd7a; font-size: clamp(1rem, 2.2vw, 1.35rem); letter-spacing: .06em; }
.hero-four { width: clamp(130px, 22vw, 230px); margin: 18px auto 0; animation: fadeUp .9s .15s var(--ease) both; }
/* The glowing "4" + particle waves cut from the IMPACTER 4 artwork (transparent WebP) */
.hero-four-art {
    position: relative; z-index: -1; width: min(100vw, 1500px); margin: -34px 0 -96px; margin-inline: calc(50% - min(50vw, 750px));
    pointer-events: none; animation: fourIn 1.4s .1s var(--ease) both;
}
.hero-four-art img { width: 100%; height: auto; display: block; transform: scale(1.12); transform-origin: 50% 55%; }
@keyframes fourIn { from { opacity: 0; transform: scale(.96); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
.hero-four svg { width: 100%; height: auto; overflow: visible; filter: drop-shadow(0 0 18px rgba(63,216,208,.35)); }
.four-path { stroke-dasharray: 720; stroke-dashoffset: 720; animation: drawFour 2.6s .3s var(--ease) forwards, fourPulse 4.5s 3s ease-in-out infinite; }
.four-path-2 { animation-delay: .7s, 3.4s; }
@keyframes drawFour { to { stroke-dashoffset: 0; } }
@keyframes fourPulse { 0%,100% { opacity: 1; } 50% { opacity: .65; } }
.hero-edition { color: #8eeee8; font-size: clamp(1.05rem, 2.4vw, 1.6rem); font-weight: 500; margin-top: 8px; animation: fadeUp .8s .3s var(--ease) both; }
.hero-tagline {
    color: #cfe7ef; font-size: clamp(.95rem, 1.8vw, 1.2rem); margin-top: 6px; animation: fadeUp .8s .35s var(--ease) both;
}
.hero-divider {
    width: min(520px, 80%); height: 2px; margin: 22px auto 16px;
    background: radial-gradient(closest-side, #f6d888, rgba(232,181,74,.35) 60%, transparent);
    animation: fadeUp .8s .4s var(--ease) both;
}
.hero-icons { display: flex; justify-content: center; gap: 46px; color: var(--gold); margin-bottom: 30px; opacity: .9; animation: fadeUp .8s .45s var(--ease) both; }
.hero-meta {
    display: flex; flex-wrap: wrap; gap: 14px 26px; justify-content: center; margin: 30px 0 36px;
    color: var(--muted); font-size: .95rem; animation: fadeUp .8s .3s var(--ease) both;
}
.hero-meta span { display: inline-flex; align-items: center; gap: 9px; }
.hero-meta svg { color: var(--gold); }
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; animation: fadeUp .8s .4s var(--ease) both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }

/* Countdown */
.countdown { margin-top: 54px; animation: fadeUp .8s .5s var(--ease) both; }
.countdown-label { color: var(--muted); font-size: .82rem; letter-spacing: .22em; text-transform: uppercase; margin-bottom: 16px; }
.countdown-grid { display: inline-flex; gap: 14px; flex-wrap: wrap; justify-content: center; }
.cd-cell {
    min-width: 92px; padding: 18px 14px; border-radius: 16px;
    background: rgba(255,255,255,.045); border: 1px solid var(--border); backdrop-filter: blur(10px);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
}
.cd-num {
    font-size: clamp(1.9rem, 5vw, 2.8rem); font-weight: 800; line-height: 1;
    background: var(--grad-gold); -webkit-background-clip: text; background-clip: text; color: transparent;
    font-variant-numeric: tabular-nums;
}
.cd-unit { font-size: .72rem; color: var(--muted); letter-spacing: .12em; text-transform: uppercase; margin-top: 8px; }
.scroll-hint { position: absolute; bottom: 26px; inset-inline: 0; z-index: 2; display: grid; place-items: center; color: var(--muted-2); }
.scroll-hint .mouse { width: 24px; height: 38px; border: 2px solid var(--border-2); border-radius: 14px; position: relative; }
.scroll-hint .mouse::after { content: ''; position: absolute; top: 7px; inset-inline: 0; margin: auto; width: 4px; height: 7px; border-radius: 2px; background: var(--gold); animation: wheel 1.6s infinite; }
@keyframes wheel { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(10px); } }

/* =====================================================================
   CARDS / GRID SECTIONS
   ===================================================================== */
.glass {
    background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius);
    backdrop-filter: blur(12px); box-shadow: var(--shadow);
}
.card-grid { display: grid; gap: 22px; }
.cols-2 { grid-template-columns: repeat(2, 1fr); }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-4 { grid-template-columns: repeat(4, 1fr); }

.about-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 26px; align-items: stretch; }
.vm-card { padding: 30px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--panel); position: relative; overflow: hidden; }
.vm-card::before { content: ''; position: absolute; inset-block: 0; inset-inline-start: 0; width: 4px; background: var(--grad-gold); }
.vm-card h3 { font-size: 1.35rem; margin-bottom: 10px; }
.vm-card p { color: var(--muted); }
.vm-icon { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 16px; background: rgba(232,181,74,.12); color: var(--gold); }

/* feature/explore cards */
.feature {
    padding: 28px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--panel);
    transition: transform .3s var(--ease), border-color .3s, background .3s; position: relative; overflow: hidden;
}
.feature:hover { transform: translateY(-6px); border-color: var(--border-2); background: var(--panel-2); }
.feature .f-icon { width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 18px;
    background: linear-gradient(135deg, rgba(232,181,74,.18), rgba(63,216,208,.14)); color: var(--gold); }
.feature h3 { font-size: 1.15rem; margin-bottom: 8px; }
.feature p { color: var(--muted); font-size: .92rem; }

/* themes */
.theme-tile {
    position: relative; padding: 30px 26px; min-height: 150px; border-radius: var(--radius);
    border: 1px solid var(--border); overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end;
    transition: transform .3s var(--ease), border-color .3s;
}
.theme-tile:hover { transform: translateY(-6px); border-color: var(--border-2); }
.theme-tile::before { content: ''; position: absolute; inset: 0; opacity: .16; transition: opacity .3s; }
.theme-tile:hover::before { opacity: .28; }
.theme-tile .num { font-family: 'Cormorant Garamond', serif; font-size: 2.4rem; color: var(--gold); opacity: .55; line-height: 1; }
.theme-tile h3 { font-size: 1.18rem; margin-top: 8px; position: relative; }
.theme-tile:nth-child(1)::before { background: radial-gradient(circle at 20% 0%, #e8b54a, transparent 70%); }
.theme-tile:nth-child(2)::before { background: radial-gradient(circle at 20% 0%, #3fd8d0, transparent 70%); }
.theme-tile:nth-child(3)::before { background: radial-gradient(circle at 20% 0%, #22b8c4, transparent 70%); }
.theme-tile:nth-child(4)::before { background: radial-gradient(circle at 20% 0%, #8ee8e2, transparent 70%); }
.theme-tile:nth-child(5)::before { background: radial-gradient(circle at 20% 0%, #6fc8f0, transparent 70%); }
.theme-tile:nth-child(6)::before { background: radial-gradient(circle at 20% 0%, #f3c766, transparent 70%); }

/* audience */
.aud-card { padding: 26px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--panel); text-align: center; transition: transform .3s var(--ease); }
.aud-card:hover { transform: translateY(-6px); }
.aud-card .a-icon { width: 64px; height: 64px; margin: 0 auto 16px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, rgba(63,216,208,.18), rgba(142,232,226,.16)); color: var(--cyan); }
.aud-card h3 { font-size: 1rem; }

/* stats */
.stats-band { border-block: 1px solid var(--border); background: rgba(255,255,255,.02); }
.stats-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 18px; padding: 46px 0; }
.stat { text-align: center; }
.stat .num { font-size: clamp(2rem,5vw,3rem); font-weight: 800; background: var(--grad-hero); -webkit-background-clip: text; background-clip: text; color: transparent; font-variant-numeric: tabular-nums; }
.stat .lbl { color: var(--muted); font-size: .88rem; margin-top: 6px; letter-spacing: .04em; }

/* =====================================================================
   TICKET LOOKUP (home)
   ===================================================================== */
.lookup-wrap { max-width: 720px; margin: 0 auto; padding: 38px; text-align: center; position: relative; }
.lookup-form { display: flex; gap: 12px; margin-top: 24px; }
.lookup-form input {
    flex: 1; padding: 15px 18px; border-radius: 12px; border: 1px solid var(--border-2);
    background: rgba(0,0,0,.25); color: var(--text); font-size: 1rem; letter-spacing: .06em; text-transform: uppercase;
}
.lookup-form input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(232,181,74,.15); }
.lookup-result { margin-top: 22px; }

/* =====================================================================
   FORMS / AUTH
   ===================================================================== */
.auth-wrap { min-height: calc(100vh - var(--header-h)); display: grid; place-items: center; padding: 60px 20px; }
.auth-card { width: 100%; max-width: 460px; padding: 42px; border-radius: 22px; }
.auth-card.wide { max-width: 580px; }
.auth-head { text-align: center; margin-bottom: 28px; }
.auth-head h1 { font-size: 1.8rem; margin-bottom: 8px; }
.auth-head p { color: var(--muted); font-size: .95rem; }

.field { margin-bottom: 16px; }
.field label { display: block; font-size: .85rem; color: var(--muted); margin-bottom: 8px; }
.field label .opt { color: var(--muted-2); font-size: .78rem; }
.input, .field input, .field select, .field textarea {
    width: 100%; padding: 13px 15px; border-radius: 11px; border: 1px solid var(--border-2);
    background: rgba(0,0,0,.25); color: var(--text); font-size: .96rem; transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus, .input:focus {
    outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(232,181,74,.14);
}
.field .hint { font-size: .78rem; color: var(--muted-2); margin-top: 6px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.auth-foot { text-align: center; margin-top: 22px; color: var(--muted); font-size: .9rem; }
.auth-foot a { color: var(--gold); font-weight: 600; }
.page-head { text-align: center; padding: 130px 0 30px; }
.page-head h1 { font-size: clamp(2rem,5vw,3rem); font-weight: 800; }
.page-head p { color: var(--muted); margin-top: 12px; }

/* =====================================================================
   PRICING / TICKET TYPES
   ===================================================================== */
.pricing-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; align-items: stretch; }
.price-card {
    position: relative; display: flex; flex-direction: column; padding: 30px 26px;
    border-radius: 20px; border: 1px solid var(--border); background: var(--panel);
    transition: transform .3s var(--ease), border-color .3s, box-shadow .3s;
}
.price-card:hover { transform: translateY(-8px); border-color: var(--border-2); box-shadow: var(--shadow); }
.price-card.featured { border-color: rgba(232,181,74,.5); box-shadow: 0 30px 70px -34px rgba(232,181,74,.45); }
.price-badge { position: absolute; top: 16px; inset-inline-end: 16px; font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; padding: 5px 12px; border-radius: 999px; background: var(--grad-gold); color: #0a1626; font-weight: 700; }
.price-icon { width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 18px; font-weight: 800; color: #0a1626; }
.price-name { font-size: 1.2rem; font-weight: 700; }
.price-amount { font-size: 2.4rem; font-weight: 800; margin: 14px 0 6px; font-variant-numeric: tabular-nums; }
.price-amount small { font-size: .9rem; color: var(--muted); font-weight: 500; }
.perks { list-style: none; margin: 20px 0 26px; display: grid; gap: 11px; }
.perks li { display: flex; gap: 10px; align-items: flex-start; color: var(--muted); font-size: .9rem; }
.perks li svg { flex: none; margin-top: 2px; color: var(--teal); }
.price-card .btn { margin-top: auto; }

/* =====================================================================
   MY TICKETS — animated frame  ★ KEY FEATURE
   ===================================================================== */
.tickets-rail { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px,1fr)); gap: 28px; }

.aframe { position: relative; border-radius: 24px; padding: 2px; overflow: hidden; isolation: isolate; }
.aframe::before {
    content: ''; position: absolute; inset: -60%; z-index: 0;
    background: conic-gradient(from 0deg,
        var(--accent, #e8b54a), #3fd8d0, #8ee8e2, #e8b54a, var(--accent, #e8b54a));
    animation: aspin 6s linear infinite;
}
.aframe::after {
    content: ''; position: absolute; inset: 1px; z-index: 1; border-radius: 22px;
    background: radial-gradient(120% 120% at 50% 0%, rgba(255,255,255,.05), transparent 60%), #081a32;
}
.aframe > * { position: relative; z-index: 2; }
@keyframes aspin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .aframe::before { animation: none; } }

.ticket-card { padding: 0; border-radius: 22px; overflow: hidden; }
.ticket-top {
    position: relative; padding: 22px 24px; color: #0a1626;
    background: var(--tg, linear-gradient(135deg,#e8b54a,#c8922c));
}
.ticket-top::after { content: ''; position: absolute; bottom: -11px; inset-inline: 0; height: 22px;
    background-image: radial-gradient(circle 11px at 11px 0, transparent 11px, var(--tg-dot,#081a32) 11px); background-size: 26px 22px; background-position: -3px 0; }
.ticket-type-name { font-size: 1.3rem; font-weight: 800; }
.ticket-type-sub { font-size: .8rem; opacity: .8; letter-spacing: .14em; text-transform: uppercase; }
.ticket-body { padding: 22px 24px 24px; }
.ticket-row { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px dashed var(--border); }
.ticket-row:last-of-type { border-bottom: 0; }
.ticket-row .k { color: var(--muted); font-size: .82rem; }
.ticket-row .v { font-weight: 600; font-size: .92rem; text-align: end; }
.ticket-code-chip { font-family: 'Sora', monospace; letter-spacing: .12em; }

/* status pill */
.pill { display: inline-flex; align-items: center; gap: 7px; padding: 6px 13px; border-radius: 999px; font-size: .78rem; font-weight: 600; border: 1px solid transparent; }
.pill::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 8px currentColor; }
.pill.review    { color: var(--warning); background: rgba(251,191,36,.12); border-color: rgba(251,191,36,.3); }
.pill.confirmed { color: var(--success); background: rgba(52,211,153,.12); border-color: rgba(52,211,153,.3); }
.pill.rejected  { color: var(--danger);  background: rgba(248,113,113,.12); border-color: rgba(248,113,113,.3); }
.pill.checked_in{ color: var(--cyan);    background: rgba(63,216,208,.12);  border-color: rgba(63,216,208,.3); }

.status-note { margin-top: 14px; padding: 12px 14px; border-radius: 12px; background: rgba(255,255,255,.03); border: 1px solid var(--border); color: var(--muted); font-size: .85rem; }

/* =====================================================================
   BADGE / QR
   ===================================================================== */
.badge-wrap { max-width: 440px; margin: 0 auto; }
.badge {
    border-radius: 24px; overflow: hidden; background: #081a32; border: 1px solid var(--border-2);
    box-shadow: var(--shadow); text-align: center;
}
.badge-header { padding: 22px; background: var(--grad-hero); color: #0a1626; }
.badge-header .bh-title { font-weight: 800; font-size: 1.1rem; letter-spacing: .04em; }
.badge-header .bh-sub { font-size: .78rem; opacity: .85; }
.badge-body { padding: 28px 24px; }
.qr-box { width: 230px; height: 230px; margin: 0 auto 18px; padding: 14px; background: #fff; border-radius: 18px; display: grid; place-items: center; }
.qr-box img, .qr-box canvas { width: 100%; height: 100%; }
.badge-name { font-size: 1.4rem; font-weight: 800; }
.badge-meta { color: var(--muted); font-size: .9rem; margin-top: 4px; }
.badge-code { margin-top: 14px; font-family: monospace; letter-spacing: .18em; color: var(--gold); font-size: 1.05rem; }
.badge-foot { padding: 14px; border-top: 1px dashed var(--border); color: var(--muted); font-size: .8rem; }

/* =====================================================================
   DASHBOARD
   ===================================================================== */
.dash-layout { display: grid; grid-template-columns: 250px 1fr; gap: 26px; padding: 110px 0 60px; align-items: start; }
.dash-side { position: sticky; top: calc(var(--header-h) + 20px); padding: 18px; border-radius: 18px; min-width: 0; }
.dash-side .ds-user { display: flex; align-items: center; gap: 12px; padding: 10px 8px 18px; border-bottom: 1px solid var(--border); margin-bottom: 14px; }
.dash-side .ds-user .avatar { width: 42px; height: 42px; font-size: 1.1rem; }
.dash-nav { display: grid; gap: 4px; }
.dash-nav a { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 11px; color: var(--muted); font-size: .92rem; transition: background .2s, color .2s; }
.dash-nav a:hover { background: var(--panel-2); color: var(--text); }
.dash-nav a.active { background: rgba(232,181,74,.12); color: var(--gold); }
.dash-nav a svg { flex: none; }
.dash-main { min-width: 0; }
.dash-title { font-size: 1.8rem; font-weight: 800; margin-bottom: 6px; }
.dash-subtitle { color: var(--muted); margin-bottom: 28px; }

.kpi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px,1fr)); gap: 16px; margin-bottom: 30px; }
.kpi { padding: 20px; border-radius: 16px; border: 1px solid var(--border); background: var(--panel); position: relative; overflow: hidden; }
.kpi .kpi-ic { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; margin-bottom: 14px; }
.kpi .kpi-val { font-size: 1.9rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.kpi .kpi-lbl { color: var(--muted); font-size: .82rem; margin-top: 2px; }

/* tables */
.panel { border-radius: 18px; border: 1px solid var(--border); background: var(--panel); overflow: hidden; }
.panel-head { padding: 18px 22px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.panel-head h2 { font-size: 1.15rem; }
.table-scroll { overflow-x: auto; }
table.data { width: 100%; border-collapse: collapse; min-width: 640px; }
table.data th, table.data td { padding: 14px 18px; text-align: start; font-size: .9rem; border-bottom: 1px solid var(--border); }
table.data th { color: var(--muted); font-weight: 600; font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; background: rgba(255,255,255,.02); }
table.data tr:last-child td { border-bottom: 0; }
table.data tbody tr { transition: background .2s; }
table.data tbody tr:hover { background: rgba(255,255,255,.02); }
.cell-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.empty-state { padding: 60px 20px; text-align: center; color: var(--muted); }
.empty-state svg { color: var(--muted-2); margin-bottom: 14px; }

/* review item */
.review-card { display: grid; grid-template-columns: 120px 1fr auto; gap: 18px; padding: 18px; border-radius: 16px; border: 1px solid var(--border); background: var(--panel); align-items: center; }
.receipt-thumb { width: 120px; height: 120px; border-radius: 12px; overflow: hidden; border: 1px solid var(--border-2); background: #000; display: grid; place-items: center; }
.receipt-thumb img { width: 100%; height: 100%; object-fit: cover; }
.receipt-thumb a.pdf { color: var(--gold); font-size: .8rem; text-align: center; padding: 8px; }
.review-info h3 { font-size: 1.05rem; }
.review-info .meta { color: var(--muted); font-size: .85rem; margin-top: 4px; display: grid; gap: 3px; }
.review-actions { display: grid; gap: 8px; min-width: 150px; }

/* badge tag for roles/status in tables */
.tag { display: inline-flex; padding: 4px 10px; border-radius: 8px; font-size: .76rem; border: 1px solid var(--border); background: var(--panel-2); }
.tag.admin { color: var(--gold); border-color: rgba(232,181,74,.35); }
.tag.reviewer { color: var(--cyan); border-color: rgba(63,216,208,.35); }
.tag.scanner { color: var(--violet); border-color: rgba(142,232,226,.35); }
.tag.attendee { color: var(--muted); }
.tag.active { color: var(--success); }
.tag.suspended { color: var(--danger); }

/* =====================================================================
   SCANNER
   ===================================================================== */
.scanner-wrap { max-width: 560px; margin: 0 auto; }
#reader { border-radius: 18px; overflow: hidden; border: 1px solid var(--border-2); background: #000; }
#reader video { border-radius: 18px; }
.scan-feedback { margin-top: 18px; padding: 18px; border-radius: 14px; border: 1px solid var(--border); background: var(--panel); text-align: center; min-height: 64px; transition: all .3s; }
.scan-feedback.ok { border-color: rgba(52,211,153,.5); background: rgba(52,211,153,.12); }
.scan-feedback.warn { border-color: rgba(251,191,36,.5); background: rgba(251,191,36,.12); }
.scan-feedback.bad { border-color: rgba(248,113,113,.5); background: rgba(248,113,113,.12); }
.scan-feedback h3 { font-size: 1.1rem; }
.divider-or { display: flex; align-items: center; gap: 14px; margin: 24px 0; color: var(--muted-2); font-size: .85rem; }
.divider-or::before, .divider-or::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.scan-list { margin-top: 26px; display: grid; gap: 8px; }
.scan-list .item { display: flex; justify-content: space-between; padding: 11px 16px; border-radius: 11px; border: 1px solid var(--border); background: var(--panel); font-size: .88rem; }

/* =====================================================================
   CERTIFICATE
   ===================================================================== */
.cert-stage { padding: 110px 0 70px; }
.certificate {
    position: relative; max-width: 920px; margin: 0 auto; aspect-ratio: 1.414 / 1;
    background: linear-gradient(160deg, #0d2747, #081a32); color: var(--text);
    border-radius: 14px; overflow: hidden; box-shadow: var(--shadow);
    border: 1px solid var(--border-2);
}
.certificate .cert-border { position: absolute; inset: 18px; border: 2px solid var(--gold-2); border-radius: 8px; opacity: .5; }
.certificate .cert-border::before { content: ''; position: absolute; inset: 7px; border: 1px solid rgba(232,181,74,.3); border-radius: 5px; }
.cert-inner { position: relative; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 7% 9%; z-index: 2; }
.cert-seal { position: absolute; bottom: 8%; inset-inline-end: 10%; width: 92px; height: 92px; border-radius: 50%; display: grid; place-items: center; background: var(--grad-gold); color: #0a1626; font-weight: 800; font-size: .7rem; text-align: center; box-shadow: 0 10px 30px -8px rgba(232,181,74,.6); }
.cert-logo { margin-bottom: 14px; }
.cert-kicker { letter-spacing: .3em; text-transform: uppercase; font-size: .8rem; color: var(--gold); }
.cert-h1 { font-family: 'Cormorant Garamond', serif; font-size: clamp(1.8rem, 5vw, 3.2rem); margin: 6px 0 18px; }
.cert-certifies { color: var(--muted); font-size: clamp(.85rem,2vw,1rem); }
.cert-name { font-family: 'Cormorant Garamond', serif; font-size: clamp(1.8rem,5vw,3rem); color: var(--gold); margin: 10px 0; border-bottom: 1px solid var(--border-2); padding-bottom: 10px; }
.cert-body { color: var(--muted); max-width: 70%; font-size: clamp(.82rem,2vw,1rem); }
.cert-foot { position: absolute; bottom: 9%; inset-inline-start: 10%; text-align: start; }
.cert-foot .sig { font-family: 'Cormorant Garamond', serif; font-size: 1.4rem; color: var(--text); }
.cert-foot .sig-l { font-size: .75rem; color: var(--muted); border-top: 1px solid var(--border-2); padding-top: 6px; margin-top: 4px; }
.cert-vcode { position: absolute; top: 7%; inset-inline-end: 9%; font-size: .72rem; color: var(--muted); }
.cert-vcode b { color: var(--gold); letter-spacing: .1em; }
.cert-actions { display: flex; gap: 12px; justify-content: center; margin-top: 26px; }

/* =====================================================================
   MISC
   ===================================================================== */
.muted-line { display: flex; align-items: center; gap: 9px; color: var(--muted); margin-bottom: 10px; font-size: .9rem; }
.text-center { text-align: center; }
.mt-2 { margin-top: 14px; } .mt-4 { margin-top: 28px; }
.flex-between { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.notice { padding: 16px 18px; border-radius: 12px; border: 1px solid var(--border); background: var(--panel); color: var(--muted); }

/* =====================================================================
   FOOTER
   ===================================================================== */
.site-footer { position: relative; z-index: 1; margin-top: 60px; border-top: 1px solid var(--border); background: rgba(2,11,30,.6); backdrop-filter: blur(10px); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1.2fr; gap: 40px; padding: 56px 0 36px; }
.footer-brand p { color: var(--muted); margin: 16px 0; max-width: 320px; font-size: .92rem; }
.socials { display: flex; gap: 10px; }
.socials a { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; border: 1px solid var(--border); color: var(--muted); transition: all .2s; }
.socials a:hover { color: var(--gold); border-color: var(--gold); transform: translateY(-3px); }
.footer-col h4 { font-size: .95rem; margin-bottom: 16px; }
.footer-col a { display: block; color: var(--muted); padding: 5px 0; font-size: .9rem; transition: color .2s; }
.footer-col a:hover { color: var(--gold); }
.footer-bottom { display: flex; justify-content: space-between; gap: 6px 14px; padding: 22px; color: var(--muted-2); font-size: .82rem; flex-wrap: wrap; }

/* =====================================================================
   ADMIN CONTENT PAGES (settings, CRUD, stats, speakers, agenda)
   ===================================================================== */
.dash-nav-sec { font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted-2); padding: 16px 14px 6px; }
.dash-nav-sec:empty { padding: 6px; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-grid .full { grid-column: 1 / -1; }
.panel-body { padding: 22px; }
.panel + .panel { margin-top: 20px; }
.stack { display: grid; gap: 16px; }

.check-row { display: flex; align-items: center; gap: 10px; padding: 10px 0; }
.check-row input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--gold); }

.swatch { width: 22px; height: 22px; border-radius: 6px; border: 1px solid var(--border-2); display: inline-block; vertical-align: middle; }

/* speakers */
.sp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px,1fr)); gap: 20px; }
.sp-card { text-align: center; padding: 26px 18px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--panel); transition: transform .3s var(--ease); }
.sp-card:hover { transform: translateY(-6px); border-color: var(--border-2); }
.sp-photo { width: 96px; height: 96px; border-radius: 50%; margin: 0 auto 14px; object-fit: cover; background: linear-gradient(135deg,#e8b54a,#3fd8d0); display: grid; place-items: center; font-size: 2rem; font-weight: 800; color: #0a1626; border: 2px solid var(--border-2); overflow: hidden; }
.sp-photo img { width: 100%; height: 100%; object-fit: cover; }
.sp-name { font-weight: 700; font-size: 1.05rem; }
.sp-title { color: var(--gold); font-size: .85rem; margin-top: 3px; }
.sp-org { color: var(--muted); font-size: .82rem; }
.sp-kind { display: inline-block; margin-top: 10px; font-size: .7rem; padding: 3px 10px; border-radius: 999px; border: 1px solid var(--border); color: var(--muted); }

/* agenda */
.agenda-day { margin-bottom: 28px; }
.agenda-day h3 { font-size: 1.15rem; margin-bottom: 14px; display: inline-flex; gap: 10px; align-items: center; padding: 8px 16px; border-radius: 999px; background: var(--panel); border: 1px solid var(--border); }
.ag-item { display: grid; grid-template-columns: 130px 1fr auto; gap: 16px; align-items: center; padding: 16px 18px; border-radius: 14px; border: 1px solid var(--border); background: var(--panel); margin-bottom: 10px; transition: border-color .2s; }
.ag-item:hover { border-color: var(--border-2); }
.ag-time { font-variant-numeric: tabular-nums; color: var(--gold); font-weight: 600; font-size: .9rem; }
.ag-title { font-weight: 600; }
.ag-loc { color: var(--muted); font-size: .84rem; margin-top: 3px; }

/* charts */
.chart-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px,1fr)); gap: 20px; }
.chart-card { padding: 22px; border-radius: 18px; border: 1px solid var(--border); background: var(--panel); }
.chart-card h3 { font-size: 1rem; margin-bottom: 16px; }
.chart-card canvas { max-height: 300px; }

/* inline mini form for CRUD edit rows */
.crud-form { display: grid; gap: 12px; }
details.crud { border: 1px solid var(--border); border-radius: 14px; background: var(--panel); margin-bottom: 14px; overflow: hidden; }
details.crud > summary { padding: 14px 18px; cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; align-items: center; }
details.crud > summary::-webkit-details-marker { display: none; }
details.crud[open] > summary { border-bottom: 1px solid var(--border); }
details.crud .panel-body { padding: 18px; }

/* =====================================================================
   RESPONSIVE
   ===================================================================== */
@media (max-width: 980px) {
    .about-grid { grid-template-columns: 1fr; }
    .cols-4, .pricing-grid, .stats-grid { grid-template-columns: repeat(2,1fr); }
    .cols-3 { grid-template-columns: repeat(2,1fr); }
    /* Dashboard: turn the side rail into a compact horizontal tab bar */
    .dash-layout { grid-template-columns: minmax(0, 1fr); gap: 18px; padding-top: 94px; }
    .dash-side { position: static; padding: 12px 12px 6px; min-width: 0; }
    .dash-side .ds-user { padding-bottom: 12px; margin-bottom: 10px; }
    .dash-nav { grid-auto-flow: column; grid-auto-columns: max-content; overflow-x: auto; gap: 6px; padding-bottom: 8px; scrollbar-width: thin; }
    .dash-nav a { white-space: nowrap; padding: 10px 14px; }
    .dash-nav-sec { display: none; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
    /* backdrop-filter on the header would trap the fixed drawer inside the header
       box; drop it on mobile so the drawer is positioned against the viewport. */
    .site-header, .site-header.scrolled { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(6,18,36,.97); }
    .nav-toggle { display: flex; }
    .nav-close { display: inline-flex; flex-direction: column; gap: 5px; align-self: flex-start; background: var(--panel); border: 1px solid var(--border); border-radius: 10px; cursor: pointer; padding: 11px; margin-bottom: 6px; }
    .nav-close span { width: 22px; height: 2px; background: var(--text); border-radius: 2px; }
    .nav-close:hover { background: var(--panel-2); }
    .nav-menu {
        position: fixed; top: 0; bottom: 0; inset-inline-end: 0; width: min(330px, 88vw); height: 100dvh;
        flex-direction: column; align-items: stretch; gap: 4px; padding: calc(var(--header-h) + 16px) 22px 30px;
        background: #081a32; border-inline-start: 1px solid var(--border);
        box-shadow: -20px 0 60px -20px rgba(0,0,0,.6);
        transform: translateX(var(--menu-shift, 110%)); transition: transform .35s var(--ease); z-index: 95; overflow-y: auto; overscroll-behavior: contain;
    }
    html[dir="rtl"] .nav-menu { --menu-shift: -110%; box-shadow: 20px 0 60px -20px rgba(0,0,0,.6); }
    .nav-menu.open { transform: translateX(0); }
    .nav-menu > a { padding: 13px 14px; border-radius: 10px; }
    .nav-menu > a:hover { background: var(--panel-2); }
    .nav-actions { flex-direction: column; align-items: stretch; margin: 12px 0 0; padding-top: 14px; border-top: 1px solid var(--border); }
    .user-menu { width: 100%; }
    .user-chip { width: 100%; justify-content: flex-start; }
    .user-dropdown { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; background: transparent; border: 0; max-height: 0; overflow: hidden; padding: 0; transition: max-height .3s var(--ease); }
    .user-menu.open .user-dropdown { max-height: 340px; padding: 6px 0 2px; }
    .user-chip svg:last-child { transition: transform .3s; }
    .user-menu.open .user-chip svg:last-child { transform: rotate(180deg); }
}
@media (max-width: 640px) {
    .container { padding-inline: 16px; }
    .section { padding: 64px 0; }
    .cols-4, .cols-3, .cols-2, .pricing-grid, .stats-grid, .footer-grid { grid-template-columns: 1fr; }
    .field-row, .form-grid { grid-template-columns: 1fr; }
    .ag-item { grid-template-columns: 1fr; gap: 6px; }
    .lookup-form { flex-direction: column; }
    .review-card { grid-template-columns: 1fr; text-align: center; }
    .receipt-thumb { margin: 0 auto; }
    .hero-cta { flex-direction: column; }
    .hero-cta .btn { width: 100%; }
    .auth-card { padding: 28px 22px; }
    .footer-bottom { flex-direction: column; text-align: center; }
    /* tighter top spacing on small screens */
    .page-head { padding-top: 100px; padding-bottom: 18px; }
    .dash-layout { padding-top: 88px; }
    .dash-title { font-size: 1.5rem; }
    .kpi-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .kpi { padding: 16px; }
    .kpi .kpi-val { font-size: 1.6rem; }
    .panel-head { padding: 16px; }
    .review-actions { min-width: 0; }
    /* keep the review status filter chips from forcing overflow */
    .panel-head .cell-actions { width: 100%; }
}
@media (max-width: 380px) {
    .kpi-grid { grid-template-columns: 1fr; }
    .cd-cell { min-width: 70px; padding: 14px 10px; }
}

/* =====================================================================
   PRINT (badge + certificate)
   ===================================================================== */

/* ---------- Registration dropdown (nav) ---------- */
.reg-menu { position: relative; }
.reg-toggle { display: inline-flex; align-items: center; gap: 6px; }
.reg-toggle svg { transition: transform .25s var(--ease); }
.reg-menu.open .reg-toggle svg { transform: rotate(180deg); }
.reg-dropdown {
    position: absolute; top: calc(100% + 10px); inset-inline-end: 0; min-width: 310px; z-index: 120;
    background: #0b2140; border: 1px solid var(--border-2); border-radius: 14px; padding: 8px;
    box-shadow: 0 24px 60px -20px rgba(0,0,0,.7);
    opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .2s, transform .2s, visibility .2s;
}
.reg-menu.open .reg-dropdown { opacity: 1; visibility: visible; transform: none; }
.reg-dropdown a {
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    padding: 11px 12px; border-radius: 9px; font-size: .92rem; color: var(--text); transition: background .2s, color .2s;
}
.reg-dropdown a:hover { background: var(--panel-2); color: var(--gold); }
.reg-dropdown a span:first-child { white-space: nowrap; }
.soon-badge {
    display: inline-block; padding: 6px 14px; border-radius: 999px; font-size: .78rem; font-weight: 700; letter-spacing: .08em;
    color: #0a1626; background: var(--grad-cta); box-shadow: 0 8px 22px -10px rgba(232,181,74,.8); white-space: nowrap;
}
.soon-badge.sm { padding: 3px 9px; font-size: .64rem; letter-spacing: .06em; }

/* ---------- Registration pages ---------- */
.reg-card { padding: 34px; border-radius: 22px; }
.reg-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; margin-bottom: 10px; }
.reg-grid .full { grid-column: 1 / -1; }
.field label .req { color: var(--gold); margin-inline-start: 3px; }
.reg-soon, .reg-done { text-align: center; padding: 56px 30px; }
.reg-soon h2, .reg-done h2 { font-size: clamp(1.5rem, 3.5vw, 2.1rem); margin: 18px 0 10px; }
.reg-soon .soon-badge { font-size: 1rem; padding: 9px 22px; }
.reg-done-icon { width: 76px; height: 76px; margin: 0 auto; border-radius: 50%; display: grid; place-items: center; color: #0a1626; background: var(--grad-hero); }
.reg-code { display: inline-block; margin: 10px 0 16px; padding: 12px 22px; border-radius: 14px; font-size: 1.5rem; font-weight: 700; letter-spacing: .12em; color: var(--gold); border: 1px dashed rgba(232,181,74,.5); background: rgba(232,181,74,.06); }
.muted { color: var(--muted); }
.reg-done .muted { margin-bottom: 20px; }
.reg-choice { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 30px 26px; border-radius: 20px; transition: transform .3s var(--ease), border-color .3s; }
.reg-choice:hover { transform: translateY(-4px); border-color: rgba(232,181,74,.45); }
.reg-choice h3 { font-size: 1.25rem; }
.reg-choice p { color: var(--muted); font-size: .92rem; flex: 1; }
.reg-choice .soon-badge { position: absolute; top: 18px; inset-inline-end: 18px; }
.reg-choice-icon { width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center; color: var(--gold); background: linear-gradient(135deg, rgba(63,216,208,.16), rgba(232,181,74,.16)); }
.reg-choice-go { color: var(--cyan); font-weight: 600; font-size: .92rem; }
html[dir="rtl"] .reg-choice-go { direction: rtl; }
.radio-group { display: flex; flex-wrap: wrap; gap: 8px; }
.radio-pill { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border: 1px solid var(--border); border-radius: 999px; cursor: pointer; }
.radio-pill input { accent-color: var(--gold); }
.reg-detail dt { color: var(--muted); font-size: .8rem; margin-top: 12px; }
.reg-detail dd { white-space: pre-wrap; }
@media (max-width: 820px) {
    .reg-menu { width: 100%; }
    .reg-toggle { width: 100%; justify-content: center; }
    .reg-dropdown { position: static; min-width: 0; margin-top: 8px; box-shadow: none; display: none; opacity: 1; visibility: visible; transform: none; }
    .reg-menu.open .reg-dropdown { display: block; }
}
@media (max-width: 640px) {
    .reg-grid { grid-template-columns: 1fr; }
    .reg-card { padding: 24px 18px; }
}


/* =====================================================================
   App-like mobile shell (inspired by native apps):
   - inner pages: top app bar with back arrow + page title
   - every page: fixed bottom tab bar (menu · register · home · account · language)
   ===================================================================== */
.app-bar, .tab-bar { display: none; }
.explore-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.explore-tile {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; text-align: center;
    padding: 26px 14px; border-radius: 18px; min-height: 140px;
    background: var(--panel); border: 1px solid var(--border);
    transition: transform .3s var(--ease), border-color .3s, background .3s;
}
.explore-tile:hover { transform: translateY(-4px); border-color: rgba(232,181,74,.45); background: var(--panel-2); }
.et-icon { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; color: var(--gold);
    background: linear-gradient(135deg, rgba(63,216,208,.16), rgba(232,181,74,.16)); box-shadow: inset 0 0 0 1px rgba(255,255,255,.06); }
.et-label { font-weight: 600; font-size: .95rem; line-height: 1.35; }
@media (max-width: 1100px) { .explore-grid { grid-template-columns: repeat(4, 1fr); } }

@media (max-width: 820px) {
    body { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
    .nav-toggle { display: none !important; }        /* the tab bar's Menu button opens the drawer */

    /* No header bar on phones: inner pages use the app bar, the home page shows the
       big logo in the hero. The header element stays (height 0) so the drawer still works. */
    .site-header, .site-header.scrolled { height: 0; border: 0; background: transparent !important; position: static; }
    .site-header .brand { display: none; }
    .hero-logo { display: block; width: min(92vw, 460px); margin: 0 auto 26px; animation: fadeUp .8s var(--ease) both; }
    .hero-logo-img, .hero-logo-img img { display: block; width: 100%; height: auto; }
    .hero-logo-img img { filter: drop-shadow(0 0 .7px rgba(235,250,250,.95)) drop-shadow(0 0 .7px rgba(235,250,250,.7)) drop-shadow(0 0 18px rgba(63,216,208,.30)); }
    body.is-home .hero { min-height: auto; }
    body.is-home .hero-inner { padding-top: calc(28px + env(safe-area-inset-top)); }
    .app-bar {
        display: grid; grid-template-columns: 52px 1fr 52px; align-items: center;
        position: sticky; top: 0; z-index: 90; height: 62px; padding: 0 6px;
        background: rgba(8,22,42,.97); border-bottom: 1px solid var(--border);
        box-shadow: 0 10px 30px -18px rgba(0,0,0,.8);
    }
    .app-back, .app-logo { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; color: var(--text); }
    .app-back:active { background: var(--panel-2); }
    html[dir="rtl"] .app-back svg { transform: scaleX(-1); }
    .app-title { text-align: center; font-size: 1.15rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    body.is-inner .page-head { padding-top: 26px; padding-bottom: 6px; }
    body.is-inner .page-head h1 { font-size: 1.55rem; }
    body.is-inner .dash-layout { padding-top: 18px; }
    body.is-inner .auth-wrap { min-height: auto; padding-top: 28px; }

    /* Bottom tab bar */
    .tab-bar {
        display: grid; grid-template-columns: repeat(5, 1fr); align-items: end;
        position: fixed; inset-inline: 0; bottom: 0; z-index: 110;
        padding: 6px 4px calc(8px + env(safe-area-inset-bottom));
        background: rgba(7,17,32,.97); border-top: 1px solid var(--border);
        box-shadow: 0 -12px 34px -16px rgba(0,0,0,.85);
        -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
    }
    .tab {
        display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 6px 2px;
        background: none; border: 0; color: var(--muted); font: inherit; font-size: .68rem; cursor: pointer;
        -webkit-tap-highlight-color: transparent; transition: color .2s;
    }
    .tab svg { transition: transform .2s; }
    .tab:active svg { transform: scale(.88); }
    .tab.active, .tab:hover { color: var(--gold); }
    .tab-home-btn {
        display: grid; place-items: center; width: 56px; height: 56px; margin-top: -26px; border-radius: 50%;
        color: #0a1626; background: var(--grad-cta);
        box-shadow: 0 10px 26px -8px rgba(232,181,74,.75), 0 0 0 5px rgba(7,17,32,.97);
    }
    .tab-home.active .tab-home-btn { box-shadow: 0 10px 26px -6px rgba(232,181,74,.95), 0 0 0 5px rgba(7,17,32,.97), 0 0 22px rgba(63,216,208,.35); }
    body.nav-open .tab-bar { z-index: 80; }

    .explore-grid { grid-template-columns: repeat(3, 1fr); gap: 12px; }
    .sp-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 12px; }
    .sp-card { padding: 18px 10px !important; }
    .sp-card .sp-photo { width: 76px; height: 76px; }
    .sp-name { font-size: .92rem; }
    .stats-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 14px; }
    .countdown-grid { flex-wrap: nowrap; gap: 8px; width: 100%; }
    .countdown-grid .cd-cell { flex: 1; min-width: 0; padding: 12px 4px; }
    .explore-tile { min-height: 112px; padding: 18px 8px; gap: 10px; border-radius: 16px; }
    .et-icon { width: 48px; height: 48px; border-radius: 14px; }
    .et-label { font-size: .8rem; }
}
@media (max-width: 380px) { .explore-grid { grid-template-columns: repeat(2, 1fr); } }


/* ---------- Mobile home: full-screen "sections" with a next arrow ---------- */
.sec-next, .sec-next-wrap { display: none; }
.hero-screen { display: contents; }
@media (max-width: 820px) {
    body.is-home .scroll-hint { display: none; }
    .hero-screen {
        min-height: calc(100svh - 104px - env(safe-area-inset-bottom));
        display: flex; flex-direction: column; align-items: center; justify-content: center;
        padding: 14px 0 6px;
    }
    body.is-home .hero-inner { padding-top: 0; padding-bottom: 30px; }
    .hero-logo { width: min(64vw, 270px); margin: 0 auto 12px; }
    .hero-mark-cal { margin-bottom: 6px; font-size: .78rem; }
    .hero-date { font-size: clamp(1.5rem, 7vw, 1.9rem); }
    .hero-venue { font-size: 1rem; }
    .hero-four { width: clamp(70px, 12svh, 112px); margin-top: 8px; }
    .hero-four-art { width: 100vw; margin: -14px 0 -34px; margin-inline: calc(50% - 50vw); }
    .hero-four-art img { max-height: 26svh; object-fit: contain; margin: 0 auto; width: auto; max-width: 100%; transform: scale(1.45); transform-origin: 50% 55%; }
    .hero-logo { width: min(58vw, 240px); margin-bottom: 8px; }
    .hero h1 { font-size: clamp(1.9rem, 9vw, 2.4rem); margin-top: -2px; }
    .hero-edition { font-size: 1rem; margin-top: 4px; }
    .hero-tagline { font-size: .88rem; margin-top: 2px; }
    .hero-divider { margin: 12px auto 10px; }
    .hero-icons { gap: 38px; margin-bottom: 14px; }
    .hero-icons svg { width: 24px; height: 24px; }
    .hero-cta { width: 100%; gap: 10px; }
    .hero-cta .btn-lg { padding-block: 11px; }
    .sec-next {
        display: grid; place-items: center; width: 44px; height: 44px; margin: 14px auto 0; border-radius: 50%;
        color: var(--gold); border: 1px solid rgba(232,181,74,.45); background: rgba(232,181,74,.08);
        animation: secBounce 2s ease-in-out infinite;
    }
    .sec-next-wrap { display: block; padding: 0 0 26px; }
    .sec-next-wrap .sec-next { margin-top: 0; }
    .countdown { margin-top: 0; padding-top: 34px; }
    @keyframes secBounce { 0%,100% { transform: translateY(0); } 50% { transform: translateY(6px); } }
}
@media (max-width: 820px) and (max-height: 860px) {
    .hero-screen { padding-top: 8px; }
    .hero-icons, .hero-divider { display: none; }
    .hero-logo { width: min(48vw, 200px); margin-bottom: 6px; }
    .hero-mark-cal { font-size: .72rem; margin-bottom: 2px; }
    .hero-date { font-size: 1.45rem; }
    .hero-venue { font-size: .92rem; }
    .hero-four-art { margin: -10px 0 -26px; }
    .hero-four-art img { max-height: 22svh; }
    .hero h1 { font-size: 2rem; }
    .hero-edition { font-size: .9rem; line-height: 1.4; }
    .hero-tagline { font-size: .8rem; margin-bottom: 10px; }
    .hero-cta { gap: 8px; }
    .hero-cta .btn-lg { padding-block: 10px; font-size: 1rem; }
    .sec-next { width: 38px; height: 38px; margin-top: 8px; }
}
@media (max-width: 820px) and (max-height: 680px) {
    .hero-four-art img { max-height: 17svh; }
    .hero-four-art { margin: -6px 0 -18px; }
    .hero-logo { width: min(42vw, 170px); }
    .hero-edition { display: none; }
    .hero-cta .btn-lg { padding-block: 9px; }
}


/* ---------- Floating action pills under the hero (Contact · Install app) ---------- */
.hero-float-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 14px; }
.float-pill {
    display: inline-flex; align-items: center; gap: 8px; padding: 11px 20px; border-radius: 999px;
    font: inherit; font-size: .9rem; font-weight: 600; cursor: pointer; white-space: nowrap;
    background: rgba(10,26,58,.85); border: 1px solid var(--border-2);
    box-shadow: 0 14px 30px -12px rgba(0,0,0,.75), inset 0 1px 0 rgba(255,255,255,.06);
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
    transition: transform .2s, border-color .2s, background .2s;
}
.float-pill:active { transform: scale(.96); }
.float-contact { color: var(--gold); border-color: rgba(232,181,74,.45); }
.float-contact:hover { background: rgba(232,181,74,.12); }
.install-btn { color: #8eeee8; border-color: rgba(63,216,208,.45); }
.install-btn:hover { background: rgba(63,216,208,.14); }
@media (max-width: 820px) {
    .hero-float-row { margin-top: 12px; gap: 10px; flex-wrap: nowrap; }
    .float-pill { padding: 10px 16px; font-size: .85rem; }
    .hero-screen { min-height: calc(100svh - 84px - env(safe-area-inset-bottom)); }
}
@media (max-width: 820px) and (max-height: 860px) {
    .hero-float-row { margin-top: 8px; }
    .float-pill { padding: 8px 14px; font-size: .8rem; }
}
.install-sheet { position: fixed; inset: 0; z-index: 200; display: grid; place-items: end center; background: rgba(1,6,18,.7); padding: 16px; }
.install-sheet[hidden] { display: none !important; }
.install-card {
    width: min(440px, 100%); margin-bottom: calc(84px + env(safe-area-inset-bottom)); padding: 26px 22px 20px; border-radius: 22px; text-align: center;
    background: #0a1a3a; border: 1px solid var(--border-2); box-shadow: 0 30px 80px -20px rgba(0,0,0,.8);
    animation: fadeUp .35s var(--ease) both;
}
.install-card img { margin: 0 auto 12px; border-radius: 16px; }
.install-card h3 { margin-bottom: 12px; }
.install-card ol { text-align: start; padding-inline-start: 22px; margin-bottom: 18px; color: var(--muted); display: grid; gap: 8px; }
.install-card ol svg { display: inline; vertical-align: middle; color: var(--cyan); }


/* ---------- Poster-style hero (logo → when/where → 4 → name → register) ---------- */
@media (min-width: 821px) { .hero-logo { display: block; width: min(440px, 70vw); margin: 0 auto 18px; animation: fadeUp .8s var(--ease) both; } }
.hero-logo-img, .hero-logo-img img { display: block; width: 100%; height: auto; }
.hero-logo-img img { filter: drop-shadow(0 0 .7px rgba(235,250,250,.95)) drop-shadow(0 0 .7px rgba(235,250,250,.7)) drop-shadow(0 0 18px rgba(63,216,208,.30)); }
.hero-venue { display: inline-flex; align-items: center; gap: 7px; }
.hero-venue svg { color: var(--gold); }
.hero-register { min-width: min(340px, 100%); }
.hero-screen > .install-btn { margin: 14px auto 0; }

/* ---------- Floating "Contact us" button ---------- */
.fab-stack { position: fixed; z-index: 105; bottom: 24px; inset-inline-end: 22px; display: flex; align-items: center; gap: 10px; flex-direction: row-reverse; }
.fab-install {
    display: inline-flex; align-items: center; gap: 8px; height: 50px; padding: 0 16px; border-radius: 999px; cursor: pointer;
    font: inherit; font-weight: 700; color: #8eeee8; background: rgba(10,26,58,.92); border: 1px solid rgba(63,216,208,.5);
    box-shadow: 0 14px 30px -12px rgba(0,0,0,.8), 0 0 0 4px rgba(2,11,30,.55);
}
.fab-install[hidden] { display: none; }
.fab-install:active { transform: scale(.95); }
.fab-contact {
    display: inline-flex; align-items: center; gap: 10px; height: 56px; padding: 0 18px 0 16px; border-radius: 999px;
    color: #0a1626; background: var(--grad-cta); font-weight: 700;
    box-shadow: 0 16px 34px -10px rgba(232,181,74,.7), 0 0 0 4px rgba(2,11,30,.55);
    transition: transform .2s var(--ease), box-shadow .2s;
}
.fab-contact:hover { transform: translateY(-2px); }
.fab-contact:active { transform: scale(.95); }
@media (max-width: 820px) {
    .fab-stack { bottom: calc(92px + env(safe-area-inset-bottom)); inset-inline-end: 14px; }
    .fab-install { width: 52px; height: 52px; padding: 0; justify-content: center; border-radius: 50%; }
    .fab-install .fab-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
    .fab-contact { width: 52px; height: 52px; padding: 0; justify-content: center; border-radius: 50%; }
    .fab-contact .fab-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
    .hero-register { width: 100%; }
}


/* ---------- Mobile hero: the "4" art fills the free space between venue and name ---------- */
@media (max-width: 820px) {
    .hero-screen { justify-content: flex-start; min-height: calc(100svh - 118px - env(safe-area-inset-bottom)); padding-top: 18px; }
    .hero-four-art { flex: 1 1 24svh; min-height: 17svh; position: relative; width: 100vw; margin: 6px 0 2px; margin-inline: calc(50% - 50vw); }
    .hero-four-art picture { position: absolute; inset: -4% 0; display: flex; align-items: center; justify-content: center; }
    .hero-four-art img { height: 100%; max-height: none; width: auto; max-width: none; transform: scale(1.18); transform-origin: 50% 50%; }
}


/* ---------- Desktop: the tech "4" artwork, centred ---------- */
@media (min-width: 821px) {
    .hero-four-art { width: min(560px, 46vw); margin: 0 auto -40px; }
    .hero-four-art img { width: 100%; height: auto; transform: scale(1.12); transform-origin: 50% 50%; }
}


/* ---------- Date & venue chips under the name ---------- */
.hero-when-row { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin: 16px 0 14px; animation: fadeUp .8s .4s var(--ease) both; }
.when-chip {
    display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 999px;
    background: rgba(10,26,58,.75); border: 1px solid rgba(232,181,74,.35); color: #eaf3f8; font-weight: 600; font-size: .98rem;
}
.when-chip svg { color: var(--gold); flex-shrink: 0; }
@media (max-width: 820px) {
    .hero-when-row { gap: 8px; margin: 10px 0 10px; flex-wrap: nowrap; }
    .when-chip { padding: 7px 12px; font-size: .82rem; gap: 6px; white-space: nowrap; }
    .when-chip svg { width: 16px; height: 16px; }
}


/* ---------- Static star field (background) ---------- */
.bg-aurora::before, .bg-aurora::after { content: ''; position: absolute; inset: 0; pointer-events: none; }
.bg-aurora::before {
    background-image:
        radial-gradient(1px 1px at 12% 18%, rgba(255,255,255,.85), transparent 60%),
        radial-gradient(1px 1px at 27% 72%, rgba(255,255,255,.7), transparent 60%),
        radial-gradient(1.5px 1.5px at 41% 33%, rgba(142,238,232,.9), transparent 60%),
        radial-gradient(1px 1px at 58% 84%, rgba(255,255,255,.75), transparent 60%),
        radial-gradient(1.5px 1.5px at 66% 12%, rgba(246,216,136,.9), transparent 60%),
        radial-gradient(1px 1px at 79% 46%, rgba(255,255,255,.8), transparent 60%),
        radial-gradient(1px 1px at 88% 78%, rgba(142,238,232,.75), transparent 60%),
        radial-gradient(1.5px 1.5px at 6% 54%, rgba(255,255,255,.7), transparent 60%),
        radial-gradient(1px 1px at 50% 58%, rgba(255,255,255,.6), transparent 60%),
        radial-gradient(1px 1px at 94% 26%, rgba(255,255,255,.8), transparent 60%);
    background-size: 320px 320px;
    opacity: .9;
}
.bg-aurora::after {
    background-image:
        radial-gradient(1px 1px at 20% 40%, rgba(255,255,255,.55), transparent 60%),
        radial-gradient(1px 1px at 70% 65%, rgba(255,255,255,.5), transparent 60%),
        radial-gradient(2px 2px at 35% 90%, rgba(246,216,136,.7), transparent 60%),
        radial-gradient(1px 1px at 85% 10%, rgba(142,238,232,.6), transparent 60%),
        radial-gradient(2px 2px at 55% 22%, rgba(255,255,255,.65), transparent 60%);
    background-size: 530px 470px;
    opacity: .8;
}
.stats-band { background: transparent; }
.countdown { margin: 0 auto 30px; padding-top: 40px; text-align: center; }

/* ---------- Mobile: every home section is its own full screen ---------- */
@media (max-width: 820px) {
    html:has(body.is-home) { scroll-snap-type: y mandatory; scroll-padding-top: 0; }
    html { scroll-padding-top: 0; }
    body.is-home .hero { min-height: 0; }
    body.is-home .hero, body.is-home .home-sec { scroll-snap-align: start; scroll-snap-stop: always; }
    body.is-home .hero-screen { min-height: calc(100svh - 76px - env(safe-area-inset-bottom)); padding-bottom: 40px; }
    body.is-home .hero-inner { padding-bottom: 0; }
    .home-sec { min-height: calc(100svh - 76px - env(safe-area-inset-bottom)); display: flex; flex-direction: column; justify-content: center; border: 0 !important; padding: 20px 0 !important; }
    #statsSection .countdown { padding-top: 0; margin-bottom: 34px; }
    #statsSection .sec-next-wrap { padding: 26px 0 0; }
}


/* ---------- Hero key visual (single artwork) ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hero-key { width: min(860px, 92vw); margin: 0 auto 6px; animation: fourIn 1.2s .05s var(--ease) both; }
.hero-key img { width: 100%; height: auto; display: block; }
@media (max-width: 820px) {
    body.is-home .hero-screen { justify-content: center; }
    .hero-key { width: 100vw; margin: 0 0 14px; margin-inline: calc(50% - 50vw); flex: 0 1 auto; }
    .hero-key img { width: 100%; max-height: 58svh; object-fit: contain; }
    body.is-home .hero { overflow: hidden; }
}


/* ---------- Mobile hero = full poster (desktop keeps the key visual) ---------- */
.hero-poster { display: none; }
.hero-poster-bg { display: none; }
@media (max-width: 820px) {
    body.is-home {
        /* poster width that always leaves room for date/venue + Register + arrow on any phone */
        --pw: min(100vw, calc((100svh - 76px - 214px - env(safe-area-inset-bottom)) / 1.14));
    }
    body.is-home .hero-key { display: none; }
    .hero-poster { display: block; width: var(--pw); margin: 0 auto; flex: 0 0 auto; }
    .hero-poster img {
        display: block; width: 100%; height: auto;
        -webkit-mask-image: linear-gradient(to right, transparent 0, #000 6%, #000 94%, transparent 100%), linear-gradient(to bottom, transparent 0, #000 4%, #000 92%, transparent 100%);
        -webkit-mask-composite: source-in; mask-image: linear-gradient(to right, transparent 0, #000 6%, #000 94%, transparent 100%), linear-gradient(to bottom, transparent 0, #000 4%, #000 92%, transparent 100%);
        mask-composite: intersect;
        animation: fourIn 1s var(--ease) both;
    }
    body.is-home .hero-screen { padding-top: 0; justify-content: center; }
    body.is-home .hero-when-row { position: relative; z-index: 2; margin-top: calc(var(--pw) * -0.36); }
}


/* ---------- Mobile first screen: poster + scroll arrow ---------- */
@media (max-width: 820px) {
    body.is-home { --pw: min(100vw, calc((100svh - 76px - 96px - env(safe-area-inset-bottom)) / 1.5)); }
    body.is-home .hero-when-row, body.is-home .hero-cta { display: none; }
    body.is-home .hero-poster img { -webkit-mask-image: none; mask-image: none; border-radius: 0; }
    body.is-home .hero-screen .sec-next { margin-top: 14px; }
}


/* ---------- Mobile first screen = full-screen poster ---------- */
@media (max-width: 820px) {
    body.is-home { --hh: calc(100svh - 76px - env(safe-area-inset-bottom)); }
    body.is-home .hero-inner { padding: 0 !important; max-width: none; }
    body.is-home .hero-screen {
        position: relative; display: block; height: var(--hh); min-height: 0 !important; padding: 0 !important; overflow: hidden;
        margin-inline: calc(50% - 50vw); width: 100vw;
        background: linear-gradient(180deg, #03325a 0%, #04223c 50%, #001a34 100%);
    }
    body.is-home .hero-poster { position: absolute; inset: 0; width: auto; margin: 0; display: flex; align-items: center; justify-content: center; }
    /* Poster stretched edge-to-edge on every phone (cover): only empty sky/sea is cropped;
       the focus point keeps the logo, title, date and venue in view. */
    body.is-home .hero-poster .hero-poster-img {
        position: absolute; inset: 0; width: 100%; height: 100%; max-width: none;
        object-fit: cover; object-position: 50% 38%;
        -webkit-mask-image: none; mask-image: none;
    }
    body.is-home .hero-poster .hero-poster-bg { display: none; }
    body.is-home .hero-screen .sec-next {
        position: absolute; left: 50%; bottom: 86px; margin: 0; transform: translateX(-50%); z-index: 3;
        background: rgba(2,11,30,.55); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
        animation: secBounceX 2s ease-in-out infinite;
    }
    @keyframes secBounceX { 0%,100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 6px); } }
    body.is-home .hero-screen > *:not(.hero-poster):not(.sec-next) { display: none; }
}

/* ---------- Minimal footer: copyright + conference name only ---------- */
.site-footer .footer-bottom { flex-direction: column; align-items: center; text-align: center; gap: 4px; padding: 26px 22px; }
@media (max-width: 820px) { .site-footer .footer-bottom { padding: 22px 22px 82px; } }

/* ---------- Multi-step registration (Hackathon) ---------- */
.reg-wizard { scroll-margin-top: 90px; }
.wiz-progress { margin-bottom: 16px; }
.wiz-progress-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 8px; }
.wiz-step-label { font-weight: 800; font-size: 1.05rem; color: var(--text); }
.wiz-step-count { font-size: .82rem; color: var(--muted); white-space: nowrap; }
.wiz-bar { height: 6px; border-radius: 99px; background: rgba(255,255,255,.08); overflow: hidden; }
.wiz-bar span { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--grad-cta); transition: width .35s var(--ease); }
.wiz-step { border: 0; margin: 0; min-width: 0; }
.wiz-step[hidden] { display: none !important; }
.wiz-head { display: flex; align-items: center; gap: 12px; width: 100%; padding: 0 0 16px; margin-bottom: 18px; border-bottom: 1px solid var(--border); font-size: 1.2rem; font-weight: 800; }
.wiz-num { display: grid; place-items: center; width: 34px; height: 34px; flex: 0 0 auto; border-radius: 50%; color: #0a1626; background: var(--grad-cta); font-size: .95rem; }
.wiz-note { color: var(--muted); margin: -4px 0 16px; }
.wiz-nav { display: flex; gap: 10px; justify-content: space-between; margin-top: 18px; }
.wiz-nav .btn { min-width: 120px; }
.wiz-nav [data-wiz="next"], .wiz-nav [type="submit"] { margin-inline-start: auto; }
.field > .label { display: block; margin-bottom: 8px; font-weight: 600; font-size: .92rem; }
.radio-group.stack { flex-direction: column; align-items: stretch; }
.radio-group.stack .radio-pill { border-radius: 14px; padding: 12px 14px; }
.field .radio-pill, .radio-pill { display: flex; flex-direction: row; align-items: center; gap: 10px; margin: 0; text-align: start; font-weight: 500; }
.radio-pill input[type=radio] { width: 18px; height: 18px; flex: 0 0 auto; margin: 0; padding: 0; }
.hk-manual { white-space: normal; text-align: center; height: auto; min-height: 46px; padding-block: 10px; max-width: 100%; }
.radio-pill:has(input:checked) { border-color: var(--gold); background: rgba(232,181,74,.1); }
.radio-other { flex-wrap: wrap; }
.radio-other .other-input { flex: 1 1 160px; min-width: 0; padding: 7px 10px; border-radius: 10px; border: 1px solid var(--border); background: rgba(255,255,255,.04); color: var(--text); font: inherit; }
.word-count { margin-top: 6px; font-size: .8rem; color: var(--muted); text-align: end; }
.word-count.over { color: #ff7a7a; font-weight: 700; }
.hk-hero { padding: 22px 18px; margin-bottom: 18px; border-radius: 16px; text-align: center; background: linear-gradient(135deg, #050b18, #0b1b33); border: 1px solid rgba(232,181,74,.35); }
.hk-hero-title { font-family: Georgia, 'Times New Roman', serif; font-weight: 700; font-size: clamp(1.7rem, 6vw, 2.6rem); line-height: 1.1; background: linear-gradient(180deg, #f6dc9a, #c9953b); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hk-hero-sub { margin-top: 8px; color: #7fe3f0; font-weight: 600; font-size: clamp(.9rem, 3.4vw, 1.1rem); }
.hk-lead { color: var(--muted); line-height: 1.8; margin-bottom: 14px; }
.hk-manual { margin-bottom: 18px; }
.hk-terms-title { font-size: 1.05rem; margin-bottom: 10px; }
.hk-terms { padding-inline-start: 22px; display: grid; gap: 8px; color: var(--muted); line-height: 1.7; font-size: .93rem; }
.hk-terms li::marker { color: var(--gold); font-weight: 700; }
.uploader-list { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 8px; }
.uploader.invalid .uploader-add { border-color: #ff7a7a; }
.up-item { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 4px 10px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--border); background: rgba(255,255,255,.03); }
.up-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .9rem; }
.up-size { font-size: .78rem; color: var(--muted); }
.up-del { width: 28px; height: 28px; border-radius: 50%; border: 0; background: rgba(255,255,255,.08); color: var(--text); font-size: 1.1rem; line-height: 1; cursor: pointer; }
.up-bar { grid-column: 1 / -1; height: 4px; border-radius: 99px; background: rgba(255,255,255,.08); overflow: hidden; }
.up-bar span { display: block; height: 100%; width: 0; background: var(--grad-cta); transition: width .2s; }
.up-item.done .up-bar span { width: 100%; background: #3fd8a0; }
.up-msg { grid-column: 1 / -1; font-size: .8rem; color: #ff7a7a; }
.up-msg:empty { display: none; }
.up-item.failed { border-color: rgba(255,122,122,.5); }

/* ---------- Account: programme submissions + status chips ---------- */
.applicant-box { display: flex; align-items: center; gap: 12px; padding: 12px 16px; margin-bottom: 16px; border-radius: 16px; border: 1px solid rgba(63,216,208,.3); background: rgba(63,216,208,.07); }
.applicant-box > div { display: flex; flex-direction: column; min-width: 0; }
.applicant-box small { color: var(--muted); font-size: .75rem; }
.applicant-box bdi { color: var(--muted); font-size: .85rem; overflow: hidden; text-overflow: ellipsis; }
.applicant-av { display: grid; place-items: center; width: 42px; height: 42px; flex: 0 0 auto; border-radius: 50%; color: #0a1626; font-weight: 800; background: var(--grad-cta); }
input.is-locked { opacity: .75; cursor: not-allowed; background-image: none; }
.my-subs { margin-bottom: 34px; }
.my-account-bar { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 22px; padding-bottom: 16px; border-bottom: 1px solid var(--border); color: var(--muted); font-size: .9rem; }
.my-subs-title { font-size: 1.25rem; margin-bottom: 14px; }
.my-subs-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px; }
.my-sub { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: 18px; }
.my-sub-icon { display: grid; place-items: center; width: 46px; height: 46px; flex: 0 0 auto; border-radius: 14px; color: var(--gold); background: rgba(232,181,74,.12); }
.my-sub-body { flex: 1; min-width: 0; }
.my-sub-body h3 { font-size: 1rem; margin: 0 0 6px; }
.my-sub-meta { font-size: .8rem; color: var(--muted); margin-top: 6px; }
.reg-status { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px; font-size: .8rem; font-weight: 700; color: #3fd8d0; background: rgba(63,216,208,.12); border: 1px solid rgba(63,216,208,.35); }
.reg-status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.reg-status.st-review { color: #e8b54a; background: rgba(232,181,74,.12); border-color: rgba(232,181,74,.35); }
.reg-status.st-accepted { color: #4ade80; background: rgba(74,222,128,.12); border-color: rgba(74,222,128,.35); }
.reg-status.st-rejected { color: #ff7a7a; background: rgba(255,122,122,.12); border-color: rgba(255,122,122,.35); }
.reg-done .reg-status { margin-bottom: 10px; }

/* ---------- Desktop first screen = full-width artwork ---------- */
.hero-desk { display: none; }
@media (min-width: 821px) {
    /* never taller than the artwork itself at full width, so narrow/portrait screens show it whole */
    body.is-home .hero { min-height: 0; height: min(calc(100vh - var(--header-h)), calc(100vw * 941 / 1672)); align-items: flex-end; }
    body.is-home .hero::after, body.is-home .hero-video { display: none; }
    .hero-desk { display: block; position: absolute; inset: 0; z-index: 0; overflow: hidden; background: #062440; }
    /* The artwork is always shown whole (no cropping); any spare space is filled
       with a soft, blurred copy of the same image. */
    .hero-desk-bg { position: absolute; inset: -40px; width: calc(100% + 80px); height: calc(100% + 80px); object-fit: cover; filter: blur(28px) brightness(.75) saturate(1.1); }
    .hero-desk-img { position: relative; display: block; width: auto; max-width: 100%; height: 100%; margin: 0 auto; object-fit: contain;
        -webkit-mask-image: linear-gradient(to right, transparent 0, #000 5%, #000 95%, transparent 100%);
        mask-image: linear-gradient(to right, transparent 0, #000 5%, #000 95%, transparent 100%); }
    @media (min-aspect-ratio: 1672/1035) { .hero-desk-img { -webkit-mask-image: linear-gradient(to right, transparent 0, #000 5%, #000 95%, transparent 100%); } }
    body.is-home .hero-inner { padding: 0 0 22px; }
    body.is-home .hero-key, body.is-home .hero-when-row, body.is-home .hero-cta { display: none; }
}

/* ---------- Mobile: countdown + stats screen (stars, sized to fill the screen) ---------- */
@media (max-width: 820px) {
    body.is-home #statsSection {
        position: relative; isolation: isolate; overflow: hidden;
        height: calc(100svh - 76px - env(safe-area-inset-bottom)); min-height: 0;
        justify-content: flex-start; padding: 0 !important;
        background: radial-gradient(120% 70% at 50% 0%, rgba(40,90,170,.28), transparent 60%),
                    radial-gradient(90% 60% at 50% 100%, rgba(63,216,208,.10), transparent 70%);
    }
    body.is-home #statsSection::before {
        content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
        background: url("../img/stars-mobile.svg") center / cover no-repeat;
    }
    body.is-home #statsSection > .container {
        flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; justify-content: space-evenly;
        padding-top: min(5svh, 40px);
    }
    #statsSection .countdown { margin: 0; padding: 0; }
    #statsSection .countdown-label { font-size: min(3.7vw, 2.1svh); letter-spacing: .2em; margin-bottom: min(2.4svh, 20px); }
    #statsSection .countdown-grid { gap: min(2.4vw, 12px); }
    #statsSection .countdown-grid .cd-cell { padding: min(2.6svh, 22px) 2px; border-radius: min(5vw, 22px); }
    #statsSection .cd-num { font-size: min(11.5vw, 7.2svh); line-height: 1.05; }
    #statsSection .cd-unit { font-size: min(2.7vw, 1.7svh); letter-spacing: .1em; margin-top: min(1svh, 8px); }
    #statsSection .stats-grid { gap: min(4.5svh, 40px) 10px !important; margin: 0; }
    #statsSection .stat .num { font-size: min(12vw, 7.8svh); line-height: 1.05; white-space: nowrap; }
    #statsSection .stat .lbl { font-size: min(4.6vw, 2.6svh); margin-top: min(1svh, 8px); }
    body.is-home #statsSection .sec-next-wrap { flex: 0 0 auto; padding: 0 0 calc(18px + min(2svh, 16px)); }
}

/* ---------- Frosted-glass pop-ups (Contact + mobile Menu) ---------- */
.glass-pop {
    position: fixed; inset: 0; z-index: 210; display: grid; grid-template-columns: minmax(0, 420px); justify-content: center; align-content: end;
    padding: 16px 14px calc(96px + env(safe-area-inset-bottom));
    background: rgba(4,10,22,.35); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
    opacity: 0; transition: opacity .25s;
}
.glass-pop.show { opacity: 1; }
.glass-pop[hidden] { display: none !important; }
.glass-card {
    position: relative; width: 100%; min-width: 0; padding: 22px 18px 18px; border-radius: 26px;
    color: #fff; background: rgba(150,158,172,.22);
    -webkit-backdrop-filter: blur(26px) saturate(170%); backdrop-filter: blur(26px) saturate(170%);
    border: 1px solid rgba(255,255,255,.18);
    box-shadow: 0 30px 70px -20px rgba(0,0,0,.7), inset 0 1px 0 rgba(255,255,255,.18);
    transform: translateY(24px) scale(.96); transition: transform .32s var(--ease);
}
.glass-pop.show .glass-card { transform: none; }
.glass-card h3 { margin: 0 0 14px; font-size: 1.15rem; text-align: center; }
.glass-x {
    position: absolute; top: 12px; inset-inline-end: 12px; width: 34px; height: 34px; display: grid; place-items: center;
    border-radius: 50%; border: 0; color: #fff; background: rgba(255,255,255,.14); cursor: pointer;
}
.glass-list { display: grid; gap: 8px; margin-bottom: 14px; }
.glass-row {
    display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; min-width: 0;
    color: #fff; text-decoration: none; background: rgba(255,255,255,.09); border: 1px solid rgba(255,255,255,.1);
    transition: background .2s;
}
.glass-row:active, .glass-row:hover { background: rgba(255,255,255,.16); }
.gr-ic { flex: 0 0 auto; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; color: #0a1626; background: var(--grad-cta); }
.gr-txt { display: flex; flex-direction: column; min-width: 0; font-weight: 600; font-size: .95rem; }
.gr-txt small { font-weight: 500; font-size: .75rem; color: rgba(255,255,255,.7); }
.gr-txt bdi, .gr-txt span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (min-width: 641px) { .glass-pop { align-content: center; padding-bottom: 16px; } }

@media (max-width: 640px) {
    /* Mobile menu = frosted pop-up above the tab bar instead of a side drawer */
    .nav-menu, html[dir="rtl"] .nav-menu {
        top: auto; bottom: calc(92px + env(safe-area-inset-bottom)); inset-inline: 12px; width: auto; height: auto;
        max-height: calc(100dvh - 130px); padding: 16px; border-radius: 26px; gap: 6px;
        display: grid; grid-template-columns: 1fr 1fr;
        background: rgba(150,158,172,.22);
        -webkit-backdrop-filter: blur(26px) saturate(170%); backdrop-filter: blur(26px) saturate(170%);
        border: 1px solid rgba(255,255,255,.18);
        box-shadow: 0 30px 70px -20px rgba(0,0,0,.7), inset 0 1px 0 rgba(255,255,255,.18);
        transform: translateY(24px) scale(.96); opacity: 0; visibility: hidden;
        transition: transform .32s var(--ease), opacity .25s, visibility .25s;
    }
    .nav-menu.open, html[dir="rtl"] .nav-menu.open { transform: none; opacity: 1; visibility: visible; }
    .nav-menu .nav-close { display: none; }
    .nav-menu > a {
        padding: 13px 10px; border-radius: 16px; text-align: center; color: #fff; font-weight: 600;
        background: rgba(255,255,255,.09); border: 1px solid rgba(255,255,255,.1);
    }
    .nav-menu > a.active { background: rgba(232,181,74,.22); border-color: rgba(232,181,74,.45); }
    .nav-menu > a.active::after { display: none; }
    .nav-menu .nav-actions { grid-column: 1 / -1; border-top-color: rgba(255,255,255,.14); }
    body.nav-open .fab-stack { opacity: 0; pointer-events: none; }
    .nav-backdrop { background: rgba(4,10,22,.35); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
}

@media print {
    .site-header, .site-footer, .bg-aurora, .no-print, .flash-stack { display: none !important; }
    body { background: #fff; color: #000; }
    .certificate { box-shadow: none; }
    .cert-stage, .badge-wrap { padding: 0; }
}
