/* ===========================================================================
   TEAM MACATTACK — cinematic design system
   Black / red / white. Dark, high-contrast, fight-night aesthetic.
   =========================================================================== */

:root {
    --black:      #0a0a0b;
    --ink:        #101013;
    --panel:      #16161a;
    --panel-2:    #1d1d22;
    --line:       rgba(255,255,255,.08);
    --white:      #f6f6f7;
    --muted:      #a7a7ad;
    --muted-2:    #6f6f77;

    --red:        #e11d2a;
    --red-bright: #ff2330;
    --red-deep:   #9c0f18;
    --gold:       #e9b949;

    --radius:     14px;
    --radius-sm:  9px;
    --maxw:       1200px;
    --gutter:     clamp(1.1rem, 4vw, 2.5rem);

    --shadow:     0 30px 60px -20px rgba(0,0,0,.7);
    --shadow-red: 0 18px 50px -12px rgba(225,29,42,.5);

    --font-display: 'Anton', 'Oswald', Impact, sans-serif;
    --font-head:    'Oswald', 'Arial Narrow', sans-serif;
    --font-body:    'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;

    --ease: cubic-bezier(.22,.61,.36,1);
}

/* ---- Reset ------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }   /* ensure the hidden attribute always wins over display rules */
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    font-family: var(--font-body);
    background: var(--black);
    color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
input, textarea, select { font: inherit; }

/* Subtle film grain + vignette over the whole page for a cinematic feel. */
body::before {
    content: "";
    position: fixed; inset: 0; z-index: 9998; pointer-events: none;
    background:
        radial-gradient(120% 120% at 50% 0%, transparent 55%, rgba(0,0,0,.55) 100%);
    mix-blend-mode: multiply;
}
body::after {
    content: "";
    position: fixed; inset: 0; z-index: 9999; pointer-events: none; opacity: .05;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---- Typography -------------------------------------------------------- */
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 700; line-height: 1.04; letter-spacing: .01em; }
.display {
    font-family: var(--font-display);
    text-transform: uppercase;
    letter-spacing: .005em;
    line-height: .92;
}
.h-xxl { font-size: clamp(2.8rem, 8vw, 6.5rem); }
.h-xl  { font-size: clamp(2.2rem, 5.5vw, 4rem); }
.h-lg  { font-size: clamp(1.7rem, 3.6vw, 2.6rem); }
.eyebrow {
    font-family: var(--font-head);
    text-transform: uppercase;
    letter-spacing: .32em;
    font-size: .78rem;
    color: var(--red);
    font-weight: 600;
    display: inline-flex; align-items: center; gap: .6rem;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--red); display: inline-block; }
.text-red { color: var(--red); }
.muted { color: var(--muted); }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--muted); max-width: 60ch; }

/* ---- Layout ------------------------------------------------------------ */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(4rem, 9vw, 8rem); position: relative; }
.section--tight { padding-block: clamp(2.5rem, 5vw, 4rem); }
.section-head { max-width: 62ch; margin-bottom: 3rem; }
.section-head.center { margin-inline: auto; text-align: center; }
.grid { display: grid; gap: 1.5rem; }
.bg-ink { background: var(--ink); }
.bg-panel { background: var(--panel); }
.divider { height: 1px; background: var(--line); border: 0; }

/* ---- Buttons ----------------------------------------------------------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
    padding: .95rem 1.7rem;
    font-family: var(--font-head); font-weight: 600; text-transform: uppercase;
    letter-spacing: .08em; font-size: .92rem;
    border-radius: var(--radius-sm);
    transition: transform .25s var(--ease), background .25s, box-shadow .25s, color .25s;
    will-change: transform;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--red); color: #fff; box-shadow: var(--shadow-red); }
.btn-primary:hover { background: var(--red-bright); }
.btn-ghost { border: 1px solid rgba(255,255,255,.25); color: #fff; }
.btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,.06); }
.btn-dark { background: var(--panel-2); color: #fff; border: 1px solid var(--line); }
.btn-dark:hover { background: #26262c; }
.btn-block { width: 100%; }
.btn-sm { padding: .6rem 1.1rem; font-size: .8rem; }
.btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; }

/* ---- Header / nav ------------------------------------------------------ */
.site-header {
    position: fixed; inset: 0 0 auto 0; z-index: 1000;
    transition: background .35s, backdrop-filter .35s, border-color .35s, padding .35s;
    border-bottom: 1px solid transparent;
}
.site-header.scrolled {
    background: rgba(10,10,11,.82);
    backdrop-filter: blur(14px) saturate(140%);
    border-bottom-color: var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; height: 78px; }
.brand { display: inline-flex; align-items: center; gap: .7rem; font-family: var(--font-display); text-transform: uppercase; font-size: 1.35rem; letter-spacing: .02em; }
.brand img { height: 42px; width: auto; }
.brand .brand-mac { color: #fff; }
.brand .brand-attack { color: var(--red); }
.nav-links { display: flex; align-items: center; gap: 1.6rem; }
.nav-links a {
    font-family: var(--font-head); text-transform: uppercase; letter-spacing: .08em;
    font-size: .82rem; color: var(--muted); font-weight: 500; position: relative; padding: .3rem 0;
    transition: color .2s;
}
.nav-links a::after {
    content: ""; position: absolute; left: 0; bottom: -2px; height: 2px; width: 0; background: var(--red); transition: width .25s var(--ease);
}
.nav-links a:hover, .nav-links a.active { color: #fff; }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-cta { display: flex; align-items: center; gap: .8rem; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; padding: .5rem; }
.nav-toggle span { width: 26px; height: 2px; background: #fff; transition: transform .3s, opacity .3s; }
.nav-mobile { display: none; } /* hidden by default; only shown via .open inside the mobile breakpoint */

@media (max-width: 940px) {
    .nav-links, .nav-cta .btn-ghost { display: none; }
    .nav-toggle { display: flex; }
    .nav-mobile {
        position: fixed; inset: 78px 0 0 0; background: rgba(10,10,11,.98); backdrop-filter: blur(14px);
        border-bottom: 1px solid var(--line); padding: 1.2rem var(--gutter) 2rem; display: none; flex-direction: column; gap: .4rem; z-index: 999;
        overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain;
    }
    .nav-mobile.open { display: flex; }
    .nav-mobile a { padding: .9rem 0; font-family: var(--font-head); text-transform: uppercase; letter-spacing: .06em; border-bottom: 1px solid var(--line); color: var(--muted); }
    .nav-mobile a:last-of-type { border-bottom: 0; }
}

/* ---- Hero -------------------------------------------------------------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; overflow: hidden; }
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media img, .hero-media video { width: 100%; height: 100%; object-fit: cover; }
.hero-media::after {
    content: ""; position: absolute; inset: 0;
    background:
        linear-gradient(180deg, rgba(10,10,11,.5) 0%, rgba(10,10,11,.15) 40%, rgba(10,10,11,.85) 88%, var(--black) 100%),
        linear-gradient(90deg, rgba(10,10,11,.7) 0%, transparent 60%);
}
.hero-inner { padding-block: clamp(5rem, 12vh, 9rem); max-width: 60ch; }
.hero h1 { margin: 1.2rem 0 1.4rem; }
.hero .lead { color: #d8d8db; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.2rem; }
.hero-scroll { position: absolute; bottom: 1.6rem; left: 50%; translate: -50% 0; color: var(--muted); font-size: .72rem; letter-spacing: .3em; text-transform: uppercase; display: flex; flex-direction: column; align-items: center; gap: .5rem; }
.hero-scroll::after { content: ""; width: 1px; height: 38px; background: linear-gradient(var(--red), transparent); animation: scrollPulse 1.8s var(--ease) infinite; }
@keyframes scrollPulse { 0%,100%{opacity:.3; transform:scaleY(.5)} 50%{opacity:1; transform:scaleY(1)} }

/* ---- Stat strip -------------------------------------------------------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border-block: 1px solid var(--line); }
.stat { background: var(--black); padding: 2rem var(--gutter); text-align: center; }
.stat .num { font-family: var(--font-display); font-size: clamp(2.2rem,4vw,3.4rem); color: #fff; line-height: 1; }
.stat .num .unit { color: var(--red); }
.stat .label { color: var(--muted); text-transform: uppercase; letter-spacing: .15em; font-size: .72rem; margin-top: .5rem; }
@media (max-width: 720px){ .stats { grid-template-columns: repeat(2,1fr); } }

/* ---- Cards ------------------------------------------------------------- */
.card {
    background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
    overflow: hidden; transition: transform .35s var(--ease), border-color .35s, box-shadow .35s;
    position: relative;
}
.card:hover { transform: translateY(-6px); border-color: rgba(225,29,42,.4); box-shadow: var(--shadow); }
.card-media { aspect-ratio: 16/10; overflow: hidden; position: relative; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.card:hover .card-media img { transform: scale(1.06); }
.card-body { padding: 1.4rem 1.5rem 1.6rem; }
.card-body h3 { font-size: 1.35rem; margin-bottom: .5rem; }
.card-tag {
    position: absolute; top: 1rem; left: 1rem; z-index: 2;
    background: var(--red); color: #fff; font-family: var(--font-head); text-transform: uppercase;
    letter-spacing: .08em; font-size: .72rem; font-weight: 600; padding: .35rem .7rem; border-radius: 6px;
}
.card-tag.muted-tag { background: rgba(0,0,0,.7); border: 1px solid var(--line); }

/* service / feature card */
.feature { padding: 2rem; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(180deg, var(--panel), var(--ink)); transition: transform .35s var(--ease), border-color .35s; }
.feature:hover { transform: translateY(-6px); border-color: rgba(225,29,42,.45); }
.feature .icon { width: 54px; height: 54px; display: grid; place-items: center; border-radius: 12px; background: rgba(225,29,42,.12); color: var(--red); margin-bottom: 1.2rem; }
.feature .icon svg { width: 26px; height: 26px; }
.feature h3 { font-size: 1.4rem; margin-bottom: .6rem; }

/* date badge */
.date-badge { display: inline-flex; flex-direction: column; align-items: center; background: var(--black); border: 1px solid var(--line); border-radius: 10px; padding: .5rem .8rem; line-height: 1; min-width: 64px; }
.date-badge .d { font-family: var(--font-display); font-size: 1.6rem; }
.date-badge .m { color: var(--red); text-transform: uppercase; font-size: .72rem; letter-spacing: .15em; margin-top: .25rem; }

/* ---- Event row (detail / list variants) -------------------------------- */
.event-row { display: grid; grid-template-columns: auto 1fr auto; gap: 1.5rem; align-items: center; padding: 1.4rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); transition: border-color .3s, transform .3s; }
.event-row:hover { border-color: rgba(225,29,42,.4); transform: translateX(4px); }
.event-row .meta h3 { font-size: 1.3rem; }
.event-row .meta .sub { color: var(--muted); font-size: .9rem; margin-top: .2rem; }
@media (max-width: 680px){ .event-row { grid-template-columns: 1fr; text-align: left; } }

/* ---- Pricing / membership tiers ---------------------------------------- */
.tier { display: flex; flex-direction: column; padding: 2rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); position: relative; }
.tier.featured { border-color: var(--red); background: linear-gradient(180deg, rgba(225,29,42,.1), var(--panel)); box-shadow: var(--shadow-red); }
.tier .badge-pop { position: absolute; top: -12px; left: 50%; translate: -50% 0; background: var(--red); color: #fff; font-family: var(--font-head); text-transform: uppercase; letter-spacing: .1em; font-size: .7rem; padding: .3rem .8rem; border-radius: 20px; }
.tier h3 { font-size: 1.5rem; }
.tier .price { font-family: var(--font-display); font-size: 3rem; margin: .6rem 0; }
.tier .price span { font-family: var(--font-body); font-size: 1rem; color: var(--muted); }
.tier ul { display: flex; flex-direction: column; gap: .7rem; margin: 1.2rem 0 1.8rem; }
.tier li { display: flex; gap: .6rem; color: var(--muted); }
.tier li::before { content: "✕"; color: var(--muted-2); }
.tier li.on { color: var(--white); }
.tier li.on::before { content: "✓"; color: var(--red); }
.tier .btn { margin-top: auto; }

/* ---- Gallery ----------------------------------------------------------- */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px,1fr)); gap: 1rem; grid-auto-flow: dense; }
.gallery-item { position: relative; overflow: hidden; border-radius: var(--radius-sm); cursor: pointer; aspect-ratio: 1; }
.gallery-item.tall { grid-row: span 2; aspect-ratio: 1/2; }
.gallery-item.wide { grid-column: span 2; aspect-ratio: 2/1; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease), filter .4s; }
.gallery-item:hover img { transform: scale(1.07); filter: brightness(1.05); }
.gallery-item .play { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(0,0,0,.25); color:#fff; }
.gallery-item .play svg { width: 56px; height: 56px; filter: drop-shadow(0 4px 12px rgba(0,0,0,.6)); }

/* lightbox */
.lightbox { position: fixed; inset: 0; z-index: 2000; background: rgba(5,5,6,.95); display: none; align-items: center; justify-content: center; padding: 4vw; }
.lightbox.open { display: flex; }
.lightbox img, .lightbox video { max-width: 92vw; max-height: 88vh; border-radius: 10px; box-shadow: var(--shadow); }
.lightbox-close { position: absolute; top: 1.4rem; right: 1.6rem; font-size: 2rem; color: #fff; }

/* ---- Prose (policy / text pages) -------------------------------------- */
.prose { line-height: 1.7; }
.prose h2 { font-family: var(--font-head); font-size: 1.4rem; margin-bottom: .6rem; }
.prose p { margin: 0 0 1rem; color: #d8d8db; }
.prose ul { margin: 0 0 1rem 1.1rem; display: flex; flex-direction: column; gap: .5rem; }
.prose li { color: #d8d8db; }
.prose a { color: var(--red); }

/* ---- Membership banner (training timetable) --------------------------- */
.member-banner { padding: .8rem 1.1rem; border: 1px solid var(--line); border-left: 3px solid var(--red); border-radius: var(--radius-sm); background: var(--panel); font-size: .9rem; }

/* ---- Admin: sessions & attendees list --------------------------------- */
.sess-list { display: flex; flex-direction: column; gap: .5rem; }
.sess-row { border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--panel); overflow: hidden; }
.sess-row > summary { list-style: none; cursor: pointer; display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; padding: .8rem 1.05rem; }
.sess-row > summary::-webkit-details-marker { display: none; }
.sess-row > summary::before { content: "▸"; color: var(--muted); transition: transform .2s var(--ease); }
.sess-row[open] > summary::before { transform: rotate(90deg); }
.sess-row > summary:hover { background: var(--panel-2); }
.sess-row[open] > summary { border-bottom: 1px solid var(--line); }
.sess-when { min-width: 150px; font-weight: 600; font-size: .9rem; }
.sess-class { font-weight: 600; flex: 1 1 150px; }
.sess-coach { font-size: .85rem; }
.sess-stats { display: flex; gap: .4rem; margin-left: auto; }
.tag-121 { display: inline-block; background: var(--red); color: #fff; font-size: .58rem; text-transform: uppercase; letter-spacing: .06em; padding: .1rem .4rem; border-radius: 20px; vertical-align: middle; }
.sess-detail { padding: .8rem 1.05rem 1rem; }
@media (max-width: 640px) {
    .sess-coach { width: 100%; order: 3; }
    .sess-stats { margin-left: 0; }
}

/* ---- Live-stream countdown -------------------------------------------- */
.countdown { display: flex; gap: .7rem; justify-content: center; margin: 1.4rem 0 1rem; }
.cd-unit { min-width: 64px; padding: .7rem .4rem; background: var(--panel-2); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.cd-unit span { display: block; font-family: var(--font-head); font-size: 1.7rem; color: #fff; line-height: 1; }
.cd-unit small { display: block; margin-top: .4rem; font-size: .62rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }

/* ---- Confirm dialog --------------------------------------------------- */
.confirm-modal { position: fixed; inset: 0; z-index: 2100; background: rgba(5,5,6,.7); backdrop-filter: blur(4px); display: none; align-items: center; justify-content: center; padding: 1.5rem; }
.confirm-modal.open { display: flex; }
.confirm-box { width: 100%; max-width: 420px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; box-shadow: var(--shadow); animation: confirmIn .2s var(--ease); }
.confirm-msg { margin: 0 0 1.4rem; color: #fff; line-height: 1.5; }
.confirm-actions { display: flex; justify-content: flex-end; gap: .6rem; }
@keyframes confirmIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

/* ---- Coaches ----------------------------------------------------------- */
.coach { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 3/4; }
.coach img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.coach:hover img { transform: scale(1.05); }
.coach-info { position: absolute; inset: auto 0 0 0; padding: 1.4rem; background: linear-gradient(transparent, rgba(0,0,0,.9)); }
.coach-info h3 { font-size: 1.3rem; }
.coach-info .role { color: var(--red); text-transform: uppercase; letter-spacing: .12em; font-size: .74rem; font-family: var(--font-head); }

/* ---- Sponsor strip ----------------------------------------------------- */
.sponsors { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 2.5rem 4rem; }
.sponsor-item { position: relative; display: inline-flex; align-items: center; }
.sponsors img { height: 46px; width: auto; opacity: .6; filter: grayscale(1) brightness(1.6); transition: opacity .3s, filter .3s; }
.sponsor-item:hover img { opacity: 1; filter: none; }
.sponsor-name { font-family: var(--font-head); text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-size: 1.1rem; transition: color .3s; }
.sponsor-item:hover .sponsor-name { color: #fff; }
/* Hover popover with sponsor info */
.sponsor-pop { position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%); width: 260px; max-width: 78vw; margin-bottom: 14px; background: var(--panel-2); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 1rem 1.1rem; box-shadow: var(--shadow); text-align: left; opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .2s var(--ease), transform .2s var(--ease); z-index: 200; }
.sponsor-item:hover .sponsor-pop, .sponsor-item:focus-within .sponsor-pop { opacity: 1; visibility: visible; pointer-events: auto; transform: translateX(-50%) translateY(-4px); }
/* invisible bridge — lets the cursor travel from the logo into the popover without it closing */
.sponsor-pop::before { content: ""; position: absolute; top: 100%; left: 0; right: 0; height: 22px; }
.sponsor-pop strong { display: block; color: #fff; font-family: var(--font-head); font-size: 1.05rem; }
.sponsor-pop p { color: var(--muted); font-size: .82rem; margin: .4rem 0 0; line-height: 1.45; }
.sponsor-pop .sp-line a { color: var(--red); }
.sponsor-pop a.sp-web { display: inline-block; margin-top: .7rem; color: var(--red); font-size: .82rem; font-family: var(--font-head); }
.sponsor-pop::after { content: ""; position: absolute; top: 100%; left: 50%; transform: translateX(-50%); border: 7px solid transparent; border-top-color: var(--panel-2); }

/* ---- CTA band ---------------------------------------------------------- */
.cta-band { position: relative; overflow: hidden; border-radius: var(--radius); padding: clamp(2.5rem,6vw,4.5rem); text-align: center; background:
    radial-gradient(80% 120% at 50% 0%, rgba(225,29,42,.35), transparent 60%), linear-gradient(180deg, var(--panel-2), var(--ink)); border: 1px solid var(--line); }
.cta-band h2 { margin-bottom: 1rem; }

/* ---- Forms ------------------------------------------------------------- */
.field { margin-bottom: 1.2rem; }
.field label { display: block; font-family: var(--font-head); text-transform: uppercase; letter-spacing: .1em; font-size: .76rem; color: var(--muted); margin-bottom: .5rem; }
.input, .textarea, .select {
    width: 100%; padding: .9rem 1rem; background: var(--ink); border: 1px solid var(--line);
    border-radius: var(--radius-sm); color: #fff; transition: border-color .2s, background .2s;
}
.input:focus, .textarea:focus, .select:focus { outline: none; border-color: var(--red); background: #131316; }
.textarea { min-height: 140px; resize: vertical; }
.field .err { color: #ff6b73; font-size: .82rem; margin-top: .4rem; }
.input.has-error, .textarea.has-error { border-color: #ff6b73; }
.form-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.6rem,4vw,2.6rem); }
.form-narrow { max-width: 460px; margin-inline: auto; }

/* ---- Flash messages ---------------------------------------------------- */
.flashes { position: fixed; top: 92px; right: 1.2rem; z-index: 1500; display: flex; flex-direction: column; gap: .6rem; max-width: 360px; }
.flash { padding: .9rem 1.1rem; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--panel-2); box-shadow: var(--shadow); font-size: .92rem; animation: flashIn .4s var(--ease); border-left: 3px solid var(--muted); cursor: pointer; }
@media (max-width: 600px) {
    .flashes { top: 76px; right: .6rem; left: .6rem; max-width: none; }
}
.flash.success { border-left-color: #2fbf71; }
.flash.error { border-left-color: var(--red); }
.flash.info { border-left-color: #3b82f6; }
@keyframes flashIn { from { opacity: 0; transform: translateX(20px); } }

/* ---- Badges / pills ---------------------------------------------------- */
.pill { display: inline-flex; align-items: center; gap: .4rem; padding: .3rem .7rem; border-radius: 20px; font-size: .74rem; font-family: var(--font-head); text-transform: uppercase; letter-spacing: .08em; border: 1px solid var(--line); }
.pill.live { background: rgba(225,29,42,.15); color: var(--red); border-color: rgba(225,29,42,.4); }
.pill.live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--red); animation: livePulse 1.4s infinite; }
@keyframes livePulse { 0%,100%{opacity:1} 50%{opacity:.25} }
.pill.upcoming { color: var(--gold); border-color: rgba(233,185,73,.35); }
.pill.past { color: var(--muted); }

/* ---- PPV player gate --------------------------------------------------- */
.player { aspect-ratio: 16/9; background: #000; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.player iframe { width: 100%; height: 100%; border: 0; }
.player-locked { display: grid; place-items: center; text-align: center; gap: 1rem; padding: 2rem; background: radial-gradient(60% 80% at 50% 30%, rgba(225,29,42,.18), var(--ink)); }
.player-locked .lock { width: 60px; height: 60px; color: var(--red); }

/* ---- Footer ------------------------------------------------------------ */
.site-footer { background: var(--ink); border-top: 1px solid var(--line); padding-block: 4rem 2rem; margin-top: 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2.5rem; }
.footer-grid h4 { font-family: var(--font-head); text-transform: uppercase; letter-spacing: .12em; font-size: .82rem; color: var(--muted); margin-bottom: 1.1rem; }
.footer-grid a { display: block; color: var(--muted); padding: .25rem 0; transition: color .2s; }
.footer-grid a:hover { color: #fff; }
.footer-brand p { color: var(--muted); margin: 1rem 0 1.4rem; max-width: 34ch; }
.socials { display: flex; gap: .8rem; }
.socials a { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 10px; color: var(--muted); transition: all .25s; }
.socials a:hover { color: #fff; border-color: var(--red); background: rgba(225,29,42,.12); transform: translateY(-3px); }
.socials svg { width: 20px; height: 20px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-top: 3rem; padding-top: 1.6rem; border-top: 1px solid var(--line); color: var(--muted-2); font-size: .84rem; }
.hashtag { font-family: var(--font-head); letter-spacing: .1em; color: var(--red); }
@media (max-width: 820px){ .footer-grid { grid-template-columns: 1fr 1fr; } }

/* ---- Page hero (interior pages) ---------------------------------------- */
.page-hero { position: relative; padding-block: clamp(8rem, 16vh, 12rem) clamp(3rem,6vw,5rem); overflow: hidden; }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(80% 100% at 70% 0%, rgba(225,29,42,.22), transparent 55%), var(--ink); }
.page-hero .breadcrumb { color: var(--muted); font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 1rem; }
.page-hero .breadcrumb a:hover { color: #fff; }

/* ---- Prose ------------------------------------------------------------- */
.prose { max-width: 70ch; }
.prose p { margin-bottom: 1.2rem; color: #d2d2d6; }
.prose h2, .prose h3 { margin: 2rem 0 1rem; }

/* ---- Account / admin shell -------------------------------------------- */
.shell { display: grid; grid-template-columns: 250px 1fr; gap: 0; min-height: 100svh; padding-top: 78px; }
.shell-side { border-right: 1px solid var(--line); background: var(--ink); padding: 1.6rem 1rem; position: sticky; top: 78px; align-self: start; height: calc(100svh - 78px); }
.shell-side h5 { font-family: var(--font-head); text-transform: uppercase; letter-spacing: .14em; font-size: .72rem; color: var(--muted-2); padding: .8rem 1rem .4rem; }
.shell-side a { display: flex; align-items: center; gap: .7rem; padding: .7rem 1rem; border-radius: 9px; color: var(--muted); font-size: .92rem; transition: background .2s, color .2s; }
.shell-side a:hover { background: var(--panel); color: #fff; }
.shell-side a.active { background: rgba(225,29,42,.14); color: #fff; }
.shell-main { padding: 2rem clamp(1.2rem,3vw,2.5rem); }
.shell-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 2rem; }
@media (max-width: 860px){ .shell { grid-template-columns: 1fr; } .shell-side { position: static; height: auto; display: flex; flex-wrap: wrap; gap: .4rem; } .shell-side h5 { width: 100%; } }

/* stat cards (dashboards) */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px,1fr)); gap: 1rem; }
.kpi { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; }
.kpi .v { font-family: var(--font-display); font-size: 2.2rem; }
.kpi .k { color: var(--muted); text-transform: uppercase; letter-spacing: .1em; font-size: .72rem; }

/* tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
table.data { width: 100%; border-collapse: collapse; min-width: 560px; }
table.data th, table.data td { text-align: left; padding: .9rem 1rem; border-bottom: 1px solid var(--line); font-size: .92rem; }
table.data th { font-family: var(--font-head); text-transform: uppercase; letter-spacing: .08em; font-size: .74rem; color: var(--muted); background: var(--ink); }
table.data tr:last-child td { border-bottom: 0; }
table.data tr:hover td { background: rgba(255,255,255,.02); }

/* ---- Schedule grid ----------------------------------------------------- */
.schedule { display: grid; gap: .8rem; }
.schedule-row { display: grid; grid-template-columns: 120px 1fr auto; gap: 1rem; align-items: center; padding: 1rem 1.2rem; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--panel); }
.schedule-row .time { font-family: var(--font-head); color: var(--red); }
.schedule-row .full { color: var(--muted-2); font-size: .8rem; }
@media (max-width:620px){ .schedule-row { grid-template-columns: 1fr; } }

/* ---- Admin bookings calendar ------------------------------------------ */
.cal { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.cal-head { display: grid; grid-template-columns: repeat(7, 1fr); background: var(--ink); }
.cal-head div { padding: .6rem; text-align: center; font-family: var(--font-head); text-transform: uppercase; letter-spacing: .08em; font-size: .7rem; color: var(--muted); border-bottom: 1px solid var(--line); }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); }
.cal-cell { min-height: 108px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: .4rem; }
.cal-cell:nth-child(7n) { border-right: 0; }
.cal-cell.empty { background: rgba(255,255,255,.015); }
.cal-cell.today { background: rgba(225,29,42,.07); }
.cal-day { font-family: var(--font-head); color: var(--muted); font-size: .82rem; }
.cal-cell.today .cal-day { color: var(--red); }
.cal-ev { display: flex; gap: .35rem; align-items: center; background: var(--panel-2); border: 1px solid var(--line); border-radius: 6px; padding: .22rem .4rem; margin-top: .3rem; font-size: .68rem; transition: border-color .2s; }
.cal-ev:hover { border-color: var(--red); }
.cal-ev.full { opacity: .55; }
.cal-ev .t { color: var(--red); font-weight: 600; }
.cal-ev .n { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--white); }
.cal-ev .c { color: var(--muted); }
@media (max-width: 760px) { .cal-cell { min-height: 68px; } .cal-ev .n { display: none; } }

/* ---- Global floating music player -------------------------------------- */
.mac-player { position: fixed; inset: auto 0 0 0; z-index: 1600; display: grid; grid-template-columns: minmax(140px, 1fr) auto 2.4fr auto auto; align-items: center; gap: clamp(.8rem, 2vw, 1.6rem); padding: .6rem clamp(.8rem, 3vw, 1.6rem); background: rgba(12,12,14,.97); backdrop-filter: blur(16px); border-top: 1px solid var(--line); transform: translateY(100%); transition: transform .35s var(--ease); }
.mac-player.show { transform: none; }
.mp-now { display: flex; align-items: center; gap: .7rem; min-width: 0; }
.mp-art-wrap { position: relative; flex: none; display: inline-block; }
.mp-art { width: 44px; height: 44px; border-radius: 7px; object-fit: contain; background: var(--ink); border: 1px solid var(--line); display: block; }
.mp-artist-badge { position: absolute; bottom: -5px; right: -5px; width: 24px; height: 24px; border-radius: 50%; object-fit: cover; border: 2px solid #0c0c0e; background: var(--ink); }
.mp-art-expand { position: absolute; inset: 0; display: grid; place-items: center; border-radius: 7px; background: rgba(0,0,0,.55); color: #fff; font-size: 1.1rem; opacity: 0; transition: opacity .2s; }
.mp-art-wrap:hover .mp-art-expand, .mp-art-wrap:focus-visible .mp-art-expand { opacity: 1; }

/* Expanded "now playing" overlay */
.mp-expand { position: fixed; inset: 0; z-index: 1500; display: grid; place-items: center; padding: 1.5rem; background: rgba(6,6,8,.82); backdrop-filter: blur(10px); opacity: 0; transition: opacity .25s var(--ease); }
.mp-expand.show { opacity: 1; }
.mp-expand-card { position: relative; width: 100%; max-width: 380px; text-align: center; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem 1.8rem 1.8rem; box-shadow: var(--shadow); transform: translateY(14px) scale(.98); transition: transform .25s var(--ease); }
.mp-expand.show .mp-expand-card { transform: none; }
.mp-expand-close { position: absolute; top: .8rem; right: 1rem; color: var(--muted); font-size: 1.6rem; line-height: 1; }
.mp-expand-close:hover { color: #fff; }
.mp-expand-art-wrap { position: relative; display: inline-block; }
.mp-expand-art { width: 240px; height: 240px; max-width: 70vw; max-height: 70vw; border-radius: var(--radius-sm); object-fit: contain; background: var(--ink); border: 1px solid var(--line); }
.mp-expand-badge { position: absolute; bottom: -10px; right: -10px; width: 64px; height: 64px; border-radius: 50%; object-fit: cover; border: 3px solid var(--panel); background: var(--ink); }
.mp-expand-genre { display: inline-block; margin-top: 1.4rem; font-size: .68rem; text-transform: uppercase; letter-spacing: .12em; color: var(--red); border: 1px solid rgba(225,29,42,.4); border-radius: 999px; padding: .2rem .8rem; }
.mp-expand-title { font-family: var(--font-display); font-size: 1.6rem; margin: .8rem 0 .2rem; line-height: 1.1; }
.mp-expand-artist { color: var(--muted); margin: 0; }
.mp-expand-controls { display: flex; align-items: center; justify-content: center; gap: 1.6rem; margin-top: 1.6rem; }
.mp-expand-controls button { color: #fff; font-size: 1.2rem; opacity: .85; }
.mp-expand-controls button:hover { opacity: 1; }
.mp-meta { display: flex; flex-direction: column; min-width: 0; }
.mp-title { font-family: var(--font-head); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mp-artist { color: var(--muted); font-size: .78rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mp-controls { display: flex; align-items: center; gap: .9rem; }
.mp-controls button { color: #fff; font-size: 1rem; opacity: .85; transition: opacity .2s; }
.mp-controls button:hover { opacity: 1; }
.mp-toggle { width: 42px; height: 42px; border-radius: 50%; background: var(--red); display: grid; place-items: center; box-shadow: var(--shadow-red); }
.mp-wave-wrap { display: flex; align-items: center; gap: .7rem; min-width: 0; }
.mp-wave { flex: 1; min-width: 0; cursor: pointer; }
.mp-time { color: var(--muted); font-size: .74rem; font-variant-numeric: tabular-nums; }
.mp-vol { display: flex; align-items: center; gap: .5rem; }
.mp-vol input { -webkit-appearance: none; appearance: none; width: 84px; height: 4px; background: var(--line); border-radius: 4px; outline: none; }
.mp-vol input::-webkit-slider-thumb { -webkit-appearance: none; width: 12px; height: 12px; border-radius: 50%; background: var(--red); cursor: pointer; }
.mp-vol input::-moz-range-thumb { width: 12px; height: 12px; border: 0; border-radius: 50%; background: var(--red); cursor: pointer; }
.mp-close { color: var(--muted); font-size: 1.4rem; line-height: 1; }
.mp-close:hover { color: #fff; }
@media (max-width: 820px) {
    .mac-player { grid-template-columns: 1fr auto auto; gap: .8rem; }
    .mp-wave-wrap, .mp-vol { display: none; }
}

/* ---- Training Hub ----------------------------------------------------- */
.hub-filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.6rem; }
.hub-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.4rem; }
.hub-card { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--panel); transition: border-color .2s, transform .2s; }
.hub-card:hover { border-color: rgba(225,29,42,.5); transform: translateY(-3px); }
.hub-thumb { position: relative; aspect-ratio: 16 / 9; background: var(--ink); overflow: hidden; }
.hub-thumb img { width: 100%; height: 100%; object-fit: cover; }
.hub-thumb-ph { width: 100%; height: 100%; display: grid; place-items: center; font-size: 2rem; color: var(--muted-2); }
.hub-type { position: absolute; top: .6rem; left: .6rem; font-size: .62rem; text-transform: uppercase; letter-spacing: .1em; font-family: var(--font-head); background: var(--red); color: #fff; padding: .2rem .55rem; border-radius: 4px; }
.hub-dur { position: absolute; bottom: .6rem; right: .6rem; font-size: .7rem; background: rgba(0,0,0,.7); color: #fff; padding: .15rem .5rem; border-radius: 4px; }
.hub-cardbody { padding: 1rem 1.1rem 1.2rem; }
.hub-cat { font-size: .64rem; text-transform: uppercase; letter-spacing: .12em; color: var(--red); }
.hub-title { font-family: var(--font-head); font-size: 1.15rem; margin: .35rem 0 0; line-height: 1.2; }
.hub-excerpt { color: var(--muted); font-size: .85rem; line-height: 1.5; margin: .5rem 0 0; }
.lesson-video { aspect-ratio: 16 / 9; background: #000; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.lesson-video video { width: 100%; height: 100%; display: block; }
.lesson-hero-img { width: 100%; border-radius: var(--radius); border: 1px solid var(--line); }
.lesson-body { margin-top: 1.8rem; font-size: 1.05rem; line-height: 1.7; color: var(--white); }
.lesson-body p { margin-bottom: 1.1rem; }

/* ---- Reveal-on-scroll animations -------------------------------------- */
[data-reveal] { opacity: 0; transform: translateY(30px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
[data-reveal].in { opacity: 1; transform: none; }
[data-reveal-delay="1"] { transition-delay: .08s; }
[data-reveal-delay="2"] { transition-delay: .16s; }
[data-reveal-delay="3"] { transition-delay: .24s; }
[data-reveal-delay="4"] { transition-delay: .32s; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto; }
    [data-reveal] { opacity: 1; transform: none; }
}

/* ---- Utilities --------------------------------------------------------- */
.cols-2 { grid-template-columns: repeat(2, 1fr); }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px){ .cols-3, .cols-4 { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 640px){ .cols-2, .cols-3, .cols-4 { grid-template-columns: 1fr; } }
.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem,5vw,4rem); align-items: center; }
.split.reverse > :first-child { order: 2; }
@media (max-width: 860px){ .split, .split.reverse > :first-child { grid-template-columns: 1fr; order: 0; } }
.mt-1{margin-top:.5rem}.mt-2{margin-top:1rem}.mt-3{margin-top:1.6rem}.mt-4{margin-top:2.5rem}.mt-5{margin-top:3.75rem}
.mb-2{margin-bottom:1rem}.mb-3{margin-bottom:1.6rem}
.text-center{text-align:center}.flex{display:flex}.gap{gap:1rem}.items-center{align-items:center}.justify-between{justify-content:space-between}.flex-wrap{flex-wrap:wrap}
.rounded-img { border-radius: var(--radius); overflow: hidden; }
.tilt { box-shadow: var(--shadow); }
.empty-state { text-align: center; padding: 3rem 1rem; color: var(--muted); border: 1px dashed var(--line); border-radius: var(--radius); }
