/* ============================================================
   LAMTS — DARK / MARQUEE direction (v2)
   Bold, high-contrast, theatrical. Brand: reds + black + logo.
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Inter:wght@400;500;600;700&family=Jost:wght@400;500;600;700&family=Space+Grotesk:wght@500;600;700&display=swap');

:root {
  --red:        #E01D1D;
  --red-bright: #FF2A2A;
  --red-deep:   #C61919;
  --red-glow:   rgba(224,29,29,.55);

  --bg:      #0a0a0b;
  --surface: #141417;
  --surface-2:#1b1b20;
  --line:    #2a2a30;
  --text:    #f5f5f6;
  --muted:   #a0a0aa;

  --font-display: "Bebas Neue", "Arial Narrow", sans-serif;
  --font-ui:      "Space Grotesk", system-ui, sans-serif;
  --font-body:    "Inter", system-ui, -apple-system, sans-serif;

  --maxw: 1220px;
  --r: 14px;
}

* { box-sizing:border-box; }
html { scroll-behavior:smooth; }
body { margin:0; background:var(--bg); color:var(--text); font-family:var(--font-body); font-size:17px; line-height:1.6; -webkit-font-smoothing:antialiased; }
img { max-width:100%; display:block; }
a { color:var(--red-bright); text-decoration:none; }
a:hover { color:#fff; }

h1,h2,h3 { margin:0 0 .3em; font-family:var(--font-display); font-weight:400; letter-spacing:.01em; line-height:.94; }
h1 { font-size:clamp(56px, 9vw, 132px); }
h2 { font-size:clamp(40px, 6vw, 76px); }
h3 { font-family:var(--font-ui); font-weight:600; font-size:21px; letter-spacing:-.01em; line-height:1.15; }
p { margin:0 0 1em; color:var(--muted); }

.container { max-width:var(--maxw); margin:0 auto; padding:0 28px; }
.section { padding:104px 0; }
.eyebrow { font-family:var(--font-ui); font-weight:600; font-size:13px; letter-spacing:.22em; text-transform:uppercase; color:var(--red-bright); display:inline-block; margin-bottom:18px; }
.lede { font-size:20px; color:#d4d4d8; max-width:60ch; }

/* marquee bulb divider */
.marquee { display:flex; gap:14px; justify-content:center; padding:18px 0; }
.marquee i { width:9px; height:9px; border-radius:50%; background:var(--red); box-shadow:0 0 10px var(--red-glow); display:block; }
.marquee i:nth-child(2n){ background:#3a1414; box-shadow:none; }

/* Buttons */
.btn { display:inline-flex; align-items:center; gap:9px; font-family:var(--font-ui); font-weight:600; font-size:15px; letter-spacing:.02em;
  padding:14px 28px; border-radius:8px; border:1.5px solid transparent; cursor:pointer; transition:.16s ease; text-transform:uppercase; }
.btn:hover { transform:translateY(-2px); }
.btn--primary { background:var(--red); color:#fff; box-shadow:0 0 0 rgba(224,29,29,0); }
.btn--primary:hover { background:var(--red-bright); color:#fff; box-shadow:0 8px 30px var(--red-glow); }
.btn--outline { background:transparent; color:#fff; border-color:var(--line); }
.btn--outline:hover { border-color:#fff; }
.btn--sm { padding:9px 18px; font-size:13px; }
.btn--block { width:100%; justify-content:center; }

/* Header */
.site-header { position:sticky; top:0; z-index:50; background:rgba(10,10,11,.72); backdrop-filter:blur(14px) saturate(160%); border-bottom:1px solid var(--line); }
.site-header .container { display:flex; align-items:center; justify-content:space-between; height:80px; }
.brand { display:flex; align-items:center; gap:13px; }
.brand svg { width:44px; height:auto; }
.brand img { height:50px; width:auto; display:block; border-radius:3px; }
.admin-side .brand img, .site-footer .brand img { height:42px; }
.brand .wm { font-family:'Jost',sans-serif; font-weight:600; font-size:15px; letter-spacing:.05em; line-height:1.04; color:#fff; text-transform:uppercase; }
.brand .wm small { display:block; font-family:'Jost',sans-serif; font-weight:500; font-size:9px; letter-spacing:.34em; text-transform:uppercase; color:var(--muted); margin-top:4px; }
.nav { display:flex; align-items:center; gap:30px; }
.nav a { color:var(--muted); font-family:var(--font-ui); font-weight:500; font-size:15px; }
.nav a:hover, .nav a.active { color:#fff; }

/* HERO — split: text left, full photo right (no overlay on the image) */
.hero { position:relative; border-bottom:1px solid var(--line); background:var(--bg); overflow:hidden; }
.hero__inner { max-width:var(--maxw); margin:0 auto; padding:76px 28px; min-height:78vh;
  display:grid; grid-template-columns:1.04fr 1fr; gap:52px; align-items:center; }
.hero__copy { position:relative; z-index:2; }
.hero h1 { text-transform:uppercase; }
.hero h1 .accent { color:var(--red-bright); }
.hero .lede { margin:24px 0 32px; }
.hero .cta-row { display:flex; gap:14px; flex-wrap:wrap; }
.hero .meta { margin-top:30px; display:flex; gap:26px; flex-wrap:wrap; font-family:var(--font-ui); font-size:14px; color:var(--muted); }
.hero .meta b { color:#fff; font-weight:600; }
.hero .meta .num { font-family:var(--font-display); font-size:30px; color:var(--red-bright); line-height:1; margin-right:8px; }
.hero__photo { position:relative; border-radius:18px; overflow:hidden; aspect-ratio:4/3.2; border:1px solid var(--line); box-shadow:0 30px 80px rgba(0,0,0,.65); }
.hero__photo img { width:100%; height:100%; object-fit:cover; object-position:center 20%; }
.hero__photo::after { content:""; position:absolute; inset:0; background:linear-gradient(to top, rgba(8,8,9,.72), transparent 42%); }
.hero__photo .cap { position:absolute; left:18px; bottom:16px; right:18px; z-index:2; }
.hero__photo .cap .chip { display:inline-block; background:var(--red); color:#fff; font-family:var(--font-ui); font-weight:600; font-size:12px; letter-spacing:.03em; padding:5px 12px; border-radius:999px; }

/* section head */
.shead { display:flex; align-items:flex-end; justify-content:space-between; gap:20px; margin-bottom:44px; }
.shead h2 { text-transform:uppercase; }
.shead .eyebrow { margin-bottom:10px; }

/* Course cards */
.grid3 { display:grid; grid-template-columns:repeat(3,1fr); gap:24px; }
.ccard { background:var(--surface); border:1px solid var(--line); border-radius:var(--r); overflow:hidden; display:flex; flex-direction:column; transition:.2s ease; position:relative; }
.ccard:hover { border-color:var(--red); transform:translateY(-4px); box-shadow:0 20px 50px rgba(0,0,0,.5), 0 0 0 1px var(--red); }
.ccard__media { aspect-ratio:16/10; position:relative; background:#000; overflow:hidden; }
.ccard__media img { width:100%; height:100%; object-fit:cover; transition:.3s ease; }
.ccard:hover .ccard__media img { transform:scale(1.05); }
.ccard__media::after { content:""; position:absolute; inset:0; background:linear-gradient(to top, rgba(10,10,11,.95), rgba(10,10,11,.1) 55%); }
.ccard__media--poster img { object-position:center 18%; }
.ccard__tag { position:absolute; top:14px; left:14px; z-index:3; font-family:var(--font-ui); font-weight:600; font-size:11px; letter-spacing:.06em; text-transform:uppercase; padding:6px 12px; border-radius:999px; }
.tag--red { background:var(--red); color:#fff; }
.tag--ghost { background:rgba(0,0,0,.6); color:#fff; border:1px solid rgba(255,255,255,.25); backdrop-filter:blur(4px); }
.tag--amber { background:#facc15; color:#1a1a1a; }
.ccard__ml { position:absolute; left:18px; bottom:16px; right:18px; z-index:3; font-family:var(--font-display); font-size:30px; color:#fff; line-height:.92; text-transform:uppercase; }
.ccard__body { padding:20px 22px 22px; display:flex; flex-direction:column; gap:12px; flex:1; }
.ccard__title { font-family:var(--font-ui); font-weight:600; font-size:20px; color:#fff; margin:0; }
.ccard__meta { display:flex; flex-direction:column; gap:6px; font-size:14.5px; color:var(--muted); }
.ccard__meta b { color:#e4e4e7; font-weight:600; }
.ccard__foot { margin-top:auto; padding-top:14px; border-top:1px solid var(--line); display:flex; align-items:center; justify-content:space-between; }
.price { font-family:var(--font-display); font-size:26px; color:#fff; letter-spacing:.02em; }
.price small { font-family:var(--font-body); font-size:12px; color:var(--muted); }

/* Spotlight feature */
.spotlight { background:linear-gradient(180deg, var(--surface), var(--bg)); border-top:1px solid var(--line); border-bottom:1px solid var(--line); position:relative; overflow:hidden; }
.spotlight::before { content:""; position:absolute; top:-30%; left:50%; transform:translateX(-50%); width:60%; height:120%;
  background:radial-gradient(50% 50% at 50% 50%, rgba(224,29,29,.16), transparent 70%); pointer-events:none; }
.spotlight .inner { position:relative; z-index:2; text-align:center; max-width:760px; margin:0 auto; }
.spotlight h2 { text-transform:uppercase; }
.spotlight .cta-row { display:flex; gap:14px; justify-content:center; flex-wrap:wrap; margin-top:8px; }

/* Faculty */
.fac { display:grid; grid-template-columns:repeat(4,1fr); gap:22px; }
.fcard { background:var(--surface); border:1px solid var(--line); border-radius:var(--r); overflow:hidden; transition:.2s; }
.fcard:hover { border-color:var(--red); }
.fcard .ph { aspect-ratio:1/1; width:100%; object-fit:cover; object-position:center top; filter:grayscale(.4); transition:.3s; }
.fcard:hover .ph { filter:grayscale(0); }
.fcard .info { padding:14px 16px; }
.fcard h3 { font-size:18px; margin:0 0 2px; }
.fcard p { margin:0; font-size:13px; color:var(--red-bright); font-family:var(--font-ui); font-weight:500; letter-spacing:.02em; }

/* Features */
.feat { display:grid; grid-template-columns:repeat(3,1fr); gap:1px; background:var(--line); border:1px solid var(--line); border-radius:var(--r); overflow:hidden; }
.feat > div { background:var(--bg); padding:36px 30px; }
.feat .ic { font-family:var(--font-display); font-size:34px; color:var(--red-bright); line-height:1; margin-bottom:12px; }
.feat h3 { margin-bottom:8px; }
.feat p { margin:0; font-size:15px; }

/* Footer */
.site-footer { background:#060607; border-top:1px solid var(--line); padding:64px 0 34px; color:var(--muted); }
.site-footer a { color:#d4d4d8; }
.site-footer a:hover { color:#fff; }
.fgrid { display:grid; grid-template-columns:2fr 1fr 1fr 1.2fr; gap:34px; }
.site-footer h3 { font-family:var(--font-ui); color:#fff; font-size:16px; text-transform:uppercase; letter-spacing:.05em; margin-bottom:14px; }
.fine { border-top:1px solid var(--line); margin-top:40px; padding-top:22px; font-size:13px; display:flex; justify-content:space-between; gap:16px; flex-wrap:wrap; color:#71717a; }

/* ============================================================
   Inner pages (catalog / class detail / dashboard)
   ============================================================ */
.page-hero { padding:54px 0 40px; border-bottom:1px solid var(--line); background:linear-gradient(180deg,var(--surface),var(--bg)); position:relative; overflow:hidden; }
.page-hero::before { content:""; position:absolute; top:-40%; right:-5%; width:45%; height:160%; background:radial-gradient(50% 50% at 50% 50%, rgba(224,29,29,.14), transparent 70%); pointer-events:none; }
.page-hero .container { position:relative; z-index:2; }
.page-hero h1 { text-transform:uppercase; }
.page-hero p { max-width:62ch; }

.pill { display:inline-block; font-family:var(--font-ui); font-weight:600; font-size:11px; letter-spacing:.04em; text-transform:uppercase; padding:4px 11px; border-radius:999px; }
.pill--red { background:var(--red); color:#fff; }
.pill--soft { background:rgba(224,29,29,.14); color:#ff9d9d; }
.pill--amber { background:#facc15; color:#1a1a1a; }
.pill--gray { background:#26262b; color:var(--muted); }

/* Filters */
.filters { display:flex; gap:12px; flex-wrap:wrap; align-items:center; margin-bottom:36px; }
.filters select, .filters input { font-family:var(--font-ui); font-size:14px; padding:11px 14px; border:1px solid var(--line); border-radius:8px; background:var(--surface); color:var(--text); }
.filters .spacer { flex:1; }

/* Class detail */
.detail-banner { position:relative; border-radius:var(--r); overflow:hidden; aspect-ratio:21/8; border:1px solid var(--line); margin:0 0 36px; background:#000; }
.detail-banner img { width:100%; height:100%; object-fit:cover; object-position:center 30%; }
.detail-banner::after { content:""; position:absolute; inset:0; background:linear-gradient(to top, rgba(10,10,11,.7), rgba(10,10,11,.05) 60%); }
.detail-grid { display:grid; grid-template-columns:1fr 380px; gap:44px; align-items:start; }
.detail-meta { list-style:none; padding:0; margin:18px 0 0; display:flex; flex-wrap:wrap; gap:10px 28px; color:var(--muted); font-size:15px; }
.detail-meta b { color:#fff; }
.tabs { display:flex; border-bottom:1px solid var(--line); margin:6px 0 24px; }
.tab { font-family:var(--font-ui); font-weight:600; font-size:15px; padding:13px 22px; cursor:pointer; color:var(--muted); border-bottom:2px solid transparent; margin-bottom:-1px; }
.tab.active { color:#fff; border-color:var(--red); }
.detail-grid h3 { color:#fff; margin-top:28px; }
.detail-grid h3:first-child { margin-top:0; }
.detail-grid ul { color:var(--muted); padding-left:20px; }
.detail-grid li { margin-bottom:6px; }

/* Enroll box */
.enroll-box { border:1px solid var(--line); border-radius:var(--r); padding:24px; background:var(--surface); position:sticky; top:100px; }
.enroll-box h3 { color:#fff; margin:0 0 4px; }
.ptype { border:1px solid var(--line); border-radius:10px; padding:16px; margin-bottom:12px; cursor:pointer; transition:.15s; background:var(--bg); }
.ptype:hover { border-color:var(--red); }
.ptype.selected { border-color:var(--red); box-shadow:0 0 0 1px var(--red) inset; }
.ptype.full { opacity:.55; }
.ptype--link { display:block; text-decoration:none; transition:.15s ease; }
.ptype--link:hover { border-color:var(--red); background:rgba(224,29,29,.06); text-decoration:none; }
.ptype__cta { font-family:var(--font-ui); font-weight:700; font-size:14px; color:var(--red-bright); margin-top:12px; letter-spacing:.01em; }
.ptype__row { display:flex; justify-content:space-between; align-items:center; gap:10px; }
.ptype__name { font-family:var(--font-ui); font-weight:600; font-size:18px; color:#fff; }
.ptype__price { font-family:var(--font-display); font-size:26px; color:#fff; letter-spacing:.02em; }
.seats { height:7px; border-radius:999px; background:#26262b; overflow:hidden; margin:12px 0 6px; }
.seats > span { display:block; height:100%; background:var(--red); }
.seats-text { font-size:13px; color:var(--muted); }
.plan-note { font-size:13px; background:rgba(224,29,29,.12); color:#ffb3b3; border:1px solid rgba(224,29,29,.28); padding:9px 12px; border-radius:8px; margin-top:10px; }
.enroll-fine { font-size:12px; color:var(--muted); text-align:center; margin-top:12px; }

/* Dashboard */
.dash-grid { display:grid; grid-template-columns:1fr 340px; gap:30px; align-items:start; }
.panel { border:1px solid var(--line); border-radius:var(--r); padding:24px; margin-bottom:24px; background:var(--surface); }
.panel h3 { color:#fff; margin:0 0 16px; }
.stat-row { display:grid; grid-template-columns:repeat(3,1fr); gap:16px; margin-bottom:26px; }
.stat { background:var(--surface); border:1px solid var(--line); border-radius:var(--r); padding:22px; }
.stat .num { font-family:var(--font-display); font-size:42px; color:var(--red-bright); line-height:.95; }
.stat .lbl { font-family:var(--font-ui); font-size:12px; letter-spacing:.08em; text-transform:uppercase; color:var(--muted); margin-top:6px; }
table.history { width:100%; border-collapse:collapse; font-size:14.5px; }
table.history th { text-align:left; font-family:var(--font-ui); text-transform:uppercase; letter-spacing:.06em; font-size:11px; color:var(--muted); padding:10px 12px; border-bottom:1px solid var(--line); font-weight:600; }
table.history td { padding:13px 12px; border-bottom:1px solid var(--line); color:#d4d4d8; }
table.history tr:last-child td { border-bottom:none; }
.progress { height:9px; border-radius:999px; background:#26262b; overflow:hidden; }
.progress > span { display:block; height:100%; background:var(--red); }
.list-row { display:flex; align-items:center; gap:16px; padding:15px 0; border-bottom:1px solid var(--line); }
.list-row:last-child { border-bottom:none; }
.list-row b { color:#fff; }
.thumb { width:62px; height:62px; border-radius:10px; overflow:hidden; flex:none; background:#000; }
.thumb img { width:100%; height:100%; object-fit:cover; }

@media (max-width:900px){
  .detail-grid, .dash-grid { grid-template-columns:1fr; }
  .enroll-box { position:static; }
  .stat-row { grid-template-columns:1fr; }
}

/* mockup banner */
.mock-banner { background:#000; color:#fff; text-align:center; font-size:12.5px; padding:7px 12px; letter-spacing:.03em; border-bottom:1px solid var(--line); }
.mock-banner b { color:var(--red-bright); }

@media (max-width:980px){
  .hero__inner { grid-template-columns:1fr; gap:36px; min-height:0; padding:56px 28px; }
  .hero__photo { aspect-ratio:16/10; }
  .grid3, .feat { grid-template-columns:1fr; }
  .fac { grid-template-columns:repeat(2,1fr); }
  .nav { display:none; }
  .fgrid { grid-template-columns:1fr 1fr; }
}
@media (max-width:600px){ .fac, .fgrid { grid-template-columns:1fr; } .shead { flex-direction:column; align-items:flex-start; } }

/* ============================================================
   ADMIN — Edit Class screen (staff side)
   ============================================================ */
.admin { display:grid; grid-template-columns:248px 1fr; min-height:100vh; }
.admin-side { background:#0b0b0d; border-right:1px solid var(--line); padding:22px 16px; position:sticky; top:0; height:100vh; overflow:auto; }
.admin-side .brand { padding:4px 8px 18px; }
.admin-side .brand .wm { font-size:20px; }
.admin-cat { font-family:var(--font-ui); font-size:11px; letter-spacing:.12em; text-transform:uppercase; color:#5f5f68; margin:18px 12px 8px; }
.admin-nav a { display:flex; align-items:center; gap:11px; padding:10px 12px; border-radius:9px; color:var(--muted); font-family:var(--font-ui); font-weight:500; font-size:14.5px; margin-bottom:2px; }
.admin-nav a:hover { background:var(--surface); color:#fff; }
.admin-nav a.active { background:rgba(224,29,29,.14); color:#fff; box-shadow:inset 2px 0 0 var(--red); }
.admin-main { padding:26px 38px 60px; max-width:1180px; }
.admin-bar { display:flex; align-items:center; justify-content:space-between; gap:18px; margin-bottom:8px; }
.admin-bar .crumb { font-family:var(--font-ui); font-size:13px; color:var(--muted); }
.admin-bar h1 { font-size:40px; text-transform:uppercase; margin:4px 0 0; }
.admin-actions { display:flex; gap:10px; }

.form-grid { display:grid; grid-template-columns:1fr 320px; gap:28px; align-items:start; margin-top:24px; }
.block { background:var(--surface); border:1px solid var(--line); border-radius:var(--r); padding:24px; margin-bottom:22px; }
.block > h3 { color:#fff; margin:0 0 4px; }
.block > .sub { font-size:13.5px; color:var(--muted); margin:0 0 18px; }

label.f { display:block; font-family:var(--font-ui); font-weight:600; font-size:13px; color:#d0d0d6; margin:0 0 7px; letter-spacing:.02em; }
.f-input, .f-select, .f-text { width:100%; background:var(--bg); border:1px solid var(--line); border-radius:8px; color:var(--text); font-family:var(--font-body); font-size:15px; padding:11px 13px; }
.f-input:focus, .f-select:focus, .f-text:focus { outline:none; border-color:var(--red); }
.f-text { min-height:104px; resize:vertical; }
.f-help { font-size:12.5px; color:var(--muted); margin-top:7px; }
.mb { margin-bottom:18px; }
.f-row { display:grid; gap:16px; margin-bottom:18px; }
.f-row.two { grid-template-columns:1fr 1fr; }
.f-row.three { grid-template-columns:1fr 1fr 1fr; }

/* image upload */
.imgfield { display:flex; gap:18px; align-items:stretch; }
.imgfield .preview { width:200px; aspect-ratio:16/10; border-radius:10px; overflow:hidden; border:1px solid var(--line); background:#000; flex:none; }
.imgfield .preview img { width:100%; height:100%; object-fit:cover; }
.dropzone { flex:1; border:1.5px dashed #3a3a42; border-radius:10px; padding:18px; display:flex; flex-direction:column; justify-content:center; text-align:center; color:var(--muted); font-size:14px; }
.dropzone b { color:#fff; }
.dropzone .row { display:flex; gap:10px; justify-content:center; margin-top:12px; }

/* segmented control */
.seg { display:inline-flex; border:1px solid var(--line); border-radius:9px; overflow:hidden; }
.seg button { background:var(--bg); color:var(--muted); border:none; padding:11px 20px; font-family:var(--font-ui); font-weight:600; font-size:14px; cursor:pointer; }
.seg button.active { background:var(--red); color:#fff; }

/* toggle switch */
.switch { display:inline-flex; align-items:center; gap:12px; cursor:pointer; }
.switch .track { width:46px; height:26px; border-radius:999px; background:#3a3a42; position:relative; transition:.15s; flex:none; }
.switch .track::after { content:""; position:absolute; top:3px; left:3px; width:20px; height:20px; border-radius:50%; background:#fff; transition:.15s; }
.switch.on .track { background:var(--red); }
.switch.on .track::after { left:23px; }
.switch .lbl { font-family:var(--font-ui); font-weight:600; font-size:14.5px; color:#fff; }

/* CSS-only toggle (real checkbox, no JS) */
.toggle { display:inline-flex; align-items:center; gap:12px; cursor:pointer; }
.toggle input { position:absolute; opacity:0; width:0; height:0; }
.toggle .track { width:46px; height:26px; border-radius:999px; background:#3a3a42; position:relative; transition:.15s; flex:none; }
.toggle .track::after { content:""; position:absolute; top:3px; left:3px; width:20px; height:20px; border-radius:50%; background:#fff; transition:.15s; }
.toggle input:checked + .track { background:var(--red); }
.toggle input:checked + .track::after { left:23px; }
.toggle .lbl { font-family:var(--font-ui); font-weight:600; font-size:14.5px; color:#fff; }
.toggle-row { padding:14px 0; border-bottom:1px solid var(--line); }
.toggle-row:last-child { border-bottom:none; }
.toggle-row .f-help { margin-left:58px; margin-top:6px; }

/* admin flash + file input */
.flash { background:rgba(34,197,94,.14); border:1px solid rgba(34,197,94,.4); color:#86efac; padding:12px 16px; border-radius:10px; margin-bottom:20px; font-size:14px; }
input[type=file].f-input { padding:9px; }

/* attendance (mobile-friendly tap targets) */
.att-row { display:flex; align-items:center; justify-content:space-between; gap:14px; padding:14px 6px; border-bottom:1px solid var(--line); flex-wrap:wrap; }
.att-row:last-child { border-bottom:none; }
.att-name { min-width:140px; }
.att-opts { display:flex; gap:8px; }
.att-opt { position:relative; display:inline-flex; align-items:center; justify-content:center; min-width:78px; padding:11px 14px; border:1.5px solid var(--line); border-radius:10px; font-family:var(--font-ui); font-weight:600; font-size:14px; color:var(--muted); cursor:pointer; user-select:none; }
.att-opt input { position:absolute; opacity:0; width:0; height:0; }
.att-opt:has(input:checked).att-present { background:rgba(34,197,94,.16); border-color:#22c55e; color:#86efac; }
.att-opt:has(input:checked).att-absent { background:rgba(224,29,29,.16); border-color:var(--red); color:#ff9d9d; }
.att-opt:has(input:checked).att-late { background:#fbf0db22; border-color:#facc15; color:#facc15; }
@media (max-width:600px){ .att-opt { min-width:0; flex:1; } .att-opts { width:100%; } }

/* print (rosters) */
@media print {
  body { background:#fff; color:#000; }
  .admin { display:block; }
  .admin-side, .no-print, .att-opts input { display:none !important; }
  .admin-main { padding:0; max-width:100%; }
  .block { border:none; background:#fff; box-shadow:none; padding:0; }
  .print-head { display:block !important; }
  table.history th, table.history td { color:#000 !important; border-color:#999 !important; }
  .pill { border:1px solid #999; color:#000 !important; background:#fff !important; }
  a { color:#000; text-decoration:none; }
}

/* price-type rows */
.ptype-row { display:grid; grid-template-columns:1.5fr 1fr 1fr auto; gap:12px; align-items:end; margin-bottom:12px; }
.ptype-row .del { background:transparent; border:1px solid var(--line); color:var(--muted); border-radius:8px; padding:11px 13px; cursor:pointer; height:43px; }
.ptype-row .del:hover { border-color:var(--red); color:#fff; }
.addrow { background:transparent; border:1px dashed #3a3a42; color:#fff; border-radius:8px; padding:11px 16px; font-family:var(--font-ui); font-weight:600; font-size:14px; cursor:pointer; }
.addrow:hover { border-color:var(--red); }

/* chips */
.chips { display:flex; flex-wrap:wrap; gap:8px; }
.chip-sel { background:rgba(224,29,29,.14); color:#fff; border:1px solid rgba(224,29,29,.4); border-radius:999px; padding:7px 12px; font-size:13px; font-family:var(--font-ui); font-weight:500; display:inline-flex; gap:8px; align-items:center; }
.chip-sel .x { color:#ff9d9d; cursor:pointer; }
.chip-add { background:var(--bg); color:var(--muted); border:1px dashed #3a3a42; border-radius:999px; padding:7px 12px; font-size:13px; cursor:pointer; }

/* sessions list */
.sess { display:flex; align-items:center; gap:12px; padding:10px 0; border-bottom:1px solid var(--line); font-size:14.5px; color:#d4d4d8; }
.sess:last-of-type { border-bottom:none; }
.sess .n { font-family:var(--font-display); font-size:20px; color:var(--red-bright); width:30px; }

/* publish rail */
.pub { background:var(--surface); border:1px solid var(--line); border-radius:var(--r); padding:22px; position:sticky; top:24px; }
.pub h3 { color:#fff; margin:0 0 16px; }
.pub .line { display:flex; align-items:center; justify-content:space-between; padding:11px 0; border-bottom:1px solid var(--line); font-size:14px; color:var(--muted); }
.pub .line:last-of-type { border-bottom:none; }
.pub .line b { color:#fff; font-weight:600; }
.status-dot { display:inline-block; width:8px; height:8px; border-radius:50%; background:#22c55e; margin-right:7px; }
.status-dot.draft { background:#facc15; }
.mini { margin-top:16px; border:1px solid var(--line); border-radius:10px; overflow:hidden; }
.mini img { width:100%; aspect-ratio:16/9; object-fit:cover; display:block; }
.mini .cap { padding:10px 12px; font-family:var(--font-ui); font-weight:600; font-size:13px; color:#fff; }

/* Admin mobile chrome (hidden on desktop) */
.admin-mobtop { display:none; }
.admin-overlay { display:none; }

@media (max-width:980px){
  .admin { grid-template-columns:1fr; }
  /* Top bar with hamburger */
  .admin-mobtop { display:flex; align-items:center; gap:12px; position:fixed; top:0; left:0; right:0; height:56px; padding:0 14px; background:#0b0b0d; border-bottom:1px solid var(--line); z-index:60; }
  .burger { background:none; border:1px solid var(--line); color:#fff; width:42px; height:42px; border-radius:9px; font-size:20px; line-height:1; cursor:pointer; }
  .admin-mobtop__brand { display:flex; align-items:center; gap:9px; color:#fff; text-decoration:none; font-family:var(--font-ui); font-weight:700; letter-spacing:.04em; }
  .admin-mobtop__brand img { height:26px; }
  .admin-mobtop__brand span { color:#86868f; font-size:11px; letter-spacing:.18em; text-transform:uppercase; }
  /* Sidebar becomes a slide-in drawer */
  .admin-side { display:block; position:fixed; top:0; left:0; height:100vh; width:264px; transform:translateX(-100%); transition:transform .25s ease; z-index:80; }
  .admin-side.amopen { transform:translateX(0); box-shadow:0 0 50px rgba(0,0,0,.7); }
  .admin-overlay.amshow { display:block; position:fixed; inset:0; background:rgba(0,0,0,.55); z-index:70; }
  .admin-main { padding:74px 16px 54px; }
  .form-grid { grid-template-columns:1fr; }
  .f-row.two, .f-row.three, .ptype-row { grid-template-columns:1fr; }
}

/* Wide admin tables scroll horizontally instead of overflowing the viewport */
@media (max-width:720px){
  .admin-main table { display:block; overflow-x:auto; -webkit-overflow-scrolling:touch; white-space:nowrap; }
  /* Row-action menu becomes a bottom sheet so it isn't clipped by the scrolling table */
  .rowmenu-body { position:fixed; left:50%; right:auto; top:auto; bottom:18px; transform:translateX(-50%); width:90vw; max-width:340px; }
}

/* ===== Class form: meeting-date rows + instructor chips ===== */
.sess-head, .sess-row { display:grid; grid-template-columns:1.1fr 1.3fr 1.3fr auto; gap:8px; align-items:center; }
.sess-head { margin-bottom:6px; }
.sess-row { margin-bottom:8px; }
.chips { display:flex; flex-wrap:wrap; gap:8px; margin-top:4px; min-height:8px; }
.chip { display:inline-flex; align-items:center; gap:8px; background:#26262b; border:1px solid #34343b; border-radius:999px; padding:6px 8px 6px 14px; font-size:14px; font-weight:500; }
.chip-x { background:#3a3a42; color:#fff; border:none; width:20px; height:20px; border-radius:50%; cursor:pointer; line-height:1; font-size:14px; }
.chip-x:hover { background:var(--red); }
.rlink { color:inherit; text-decoration:none; border-bottom:1px solid transparent; }
.rlink:hover { border-bottom-color:var(--red); }

/* ===== Admin calendar ===== */
.cal-grid { display:grid; grid-template-columns:repeat(7, 1fr); gap:6px; }
.cal-dow { text-align:center; font:600 11px Inter,sans-serif; letter-spacing:.08em; text-transform:uppercase; color:#86868f; padding:4px 0; }
.cal-cell { min-height:96px; background:#1a1a1f; border:1px solid #2a2a30; border-radius:8px; padding:6px; overflow:hidden; }
.cal-empty { background:transparent; border:none; }
.cal-day { font:600 13px Inter,sans-serif; color:#9a9aa3; margin-bottom:4px; }
.cal-ev { display:block; background:#2a1414; border-left:3px solid var(--red); border-radius:4px; padding:4px 6px; margin-bottom:4px; font-size:12px; line-height:1.25; color:#f3d6d6; text-decoration:none; }
.cal-ev b { color:#fff; display:block; font-weight:600; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.cal-ev:hover { background:#3a1a1a; }
.cal-ev--draft { opacity:.5; border-left-color:#6b7280; }
.cal-loc { display:block; color:#b9b9c2; font-size:11px; }
@media (max-width: 720px) {
  .sess-head, .sess-row { grid-template-columns:1fr; }
  .cal-cell { min-height:60px; }
  .cal-ev b { white-space:normal; }
}

/* ===== Terms & Release agreement checkbox (checkout / pay) ===== */
.agree { display:flex; gap:9px; align-items:flex-start; font-size:13px; color:var(--muted); margin:14px 0 4px; line-height:1.45; }
.agree input { margin-top:2px; flex:none; width:16px; height:16px; accent-color:var(--red); }
.agree a { color:#ff9d9d; text-decoration:underline; }

/* ===== Student record: summary header + tabs ===== */
.srec-head { display:flex; justify-content:space-between; align-items:center; gap:24px; flex-wrap:wrap; background:#16161a; border:1px solid #26262c; border-radius:14px; padding:20px 24px; margin-top:8px; }
.srec-id { display:flex; align-items:center; gap:16px; }
.srec-av { width:64px; height:64px; border-radius:50%; object-fit:cover; flex:none; }
.srec-av--ph { display:flex; align-items:center; justify-content:center; background:#2a1414; color:#ff9d9d; font:700 22px 'Space Grotesk',sans-serif; }
.srec-stats { display:flex; gap:10px; flex-wrap:wrap; }
.stat-chip { background:#1c1c22; border:1px solid #2c2c34; border-radius:10px; padding:10px 16px; min-width:92px; text-align:center; }
.sc-num { font:700 22px 'Space Grotesk',sans-serif; line-height:1; }
.sc-lbl { font-size:11px; letter-spacing:.06em; text-transform:uppercase; color:#86868f; margin-top:5px; }
.srec-actions { display:flex; gap:10px; margin:16px 0 4px; flex-wrap:wrap; }

.rtabs { display:flex; gap:4px; border-bottom:1px solid #2a2a30; margin:8px 0 20px; }
.rtab { background:none; border:none; border-bottom:2px solid transparent; color:#9a9aa3; font:600 14px Inter,sans-serif; padding:10px 16px; cursor:pointer; margin-bottom:-1px; }
.rtab:hover { color:#fff; }
.rtab.active { color:#fff; border-bottom-color:var(--red); }

.bill-stats { display:grid; grid-template-columns:1fr 1fr; gap:14px; margin-bottom:18px; }

/* Compact row-action dropdown in tables */
.rowmenu { position:relative; display:inline-block; }
.rowmenu > summary { list-style:none; cursor:pointer; display:inline-block; padding:5px 12px; border:1px solid #34343b; border-radius:7px; font-size:13px; color:#cfcfd6; background:#1c1c22; }
.rowmenu > summary::-webkit-details-marker { display:none; }
.rowmenu[open] > summary { border-color:var(--red); color:#fff; }
.rowmenu-body { position:absolute; right:0; top:calc(100% + 6px); z-index:10; width:230px; background:#1c1c22; border:1px solid #34343b; border-radius:10px; padding:12px; box-shadow:0 12px 30px rgba(0,0,0,.55); display:flex; flex-direction:column; gap:12px; text-align:left; }
@media (max-width: 720px) {
  .srec-head { flex-direction:column; align-items:flex-start; }
  .bill-stats { grid-template-columns:1fr; }
}

/* ===== Public class page: instructor cards in the tabbed panel ===== */
.inst-card { display:flex; gap:18px; align-items:flex-start; margin-bottom:24px; }
.inst-card__img { width:88px; height:88px; border-radius:50%; object-fit:cover; flex:none; }
.inst-card p { color:var(--muted); line-height:1.6; }

/* Briefly highlight a Billing panel when its header button is clicked */
.flash-hl { animation: flashHl 1.4s ease-out; }
@keyframes flashHl { 0%,30% { box-shadow:0 0 0 2px var(--red); } 100% { box-shadow:0 0 0 2px transparent; } }

/* Payment-plan option editor: installment rows */
.pt-inst { display:grid; grid-template-columns:72px minmax(170px,1fr) 88px 40px; gap:10px; align-items:center; margin-bottom:8px; }
.pt-inst--head { margin-bottom:4px; }
.pt-inst--head span { font-family:var(--font-ui); font-size:11px; letter-spacing:.06em; text-transform:uppercase; color:#86868f; }
@media (max-width:560px){ .pt-inst { grid-template-columns:1fr 1fr; } .pt-inst--head { display:none; } }

/* Payment-plan selection cards */
.plan-opt { display:block; background:var(--surface); border:1px solid var(--line); border-radius:12px; padding:18px 20px; margin-bottom:14px; cursor:pointer; transition:.15s ease; }
.plan-opt:hover { border-color:var(--red); }
.plan-opt:has(input:checked) { border-color:var(--red); box-shadow:0 0 0 1px var(--red); }
.plan-opt__dep { margin-top:12px; padding-top:10px; border-top:1px solid var(--line); font-size:14px; color:var(--muted); }
.plan-opt__dep b { color:#fff; }

/* Homepage newsletter signup band */
.signup-band { background:linear-gradient(180deg, #141417, #0c0c0e); border-top:1px solid var(--line); border-bottom:1px solid var(--line); }
.signup-form { display:flex; gap:12px; max-width:480px; margin:0 auto; }
.signup-form .f-input { flex:1; }
.signup-thanks { font-family:var(--font-ui); font-weight:600; font-size:18px; color:#86efac; background:rgba(134,239,172,.08); border:1px solid rgba(134,239,172,.3); border-radius:10px; padding:16px; max-width:480px; margin:0 auto; }
@media (max-width:560px){ .signup-form { flex-direction:column; } }

/* Footer newsletter signup */
.foot-signup { display:flex; gap:8px; max-width:300px; margin-top:16px; }
.foot-signup .f-input { flex:1; padding:9px 12px; font-size:14px; }

/* Footer social icons */
.social { display:flex; gap:14px; margin-top:16px; }
.social a { color:var(--muted); display:inline-flex; transition:.15s ease; }
.social a:hover { color:#fff; transform:translateY(-2px); }

/* Homepage testimonials marquee */
.testimonials .shead { margin-bottom:34px; }
.tmwrap { overflow:hidden; -webkit-mask-image:linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image:linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.tmtrack { display:flex; gap:22px; width:max-content; padding:6px 22px; animation:tmscroll 60s linear infinite; }
.tmwrap:hover .tmtrack { animation-play-state:paused; }
.tmcard { flex:none; width:380px; background:var(--surface); border:1px solid var(--line); border-radius:16px; padding:28px 30px; display:flex; flex-direction:column; }
.tmcard::before { content:"\201C"; font-family:Georgia,serif; font-size:60px; line-height:.2; color:var(--red); margin-bottom:14px; display:block; }
.tmquote { margin:0; font-size:18px; line-height:1.6; color:#e9e9ec; font-style:normal; }
.tmcap { margin-top:20px; display:flex; flex-direction:column; gap:2px; }
.tmauthor { font-family:var(--font-ui); font-weight:600; color:#fff; }
.tmrole { color:var(--muted); font-size:14px; }
@keyframes tmscroll { from { transform:translateX(0); } to { transform:translateX(-50%); } }
@media (prefers-reduced-motion: reduce){ .tmwrap { overflow-x:auto; } .tmtrack { animation:none; } }
@media (max-width:560px){ .tmcard { width:84vw; } }

/* ===== Admin list rows + bar: mobile reflow ===== */
@media (max-width:640px){
  .admin-bar { flex-wrap:wrap; align-items:flex-start; gap:12px; }
  .admin-bar h1 { font-size:30px; }
  .admin-actions { flex-wrap:wrap; }
  /* List rows: keep thumb + text on top, drop the action buttons to a full-width row below */
  .list-row { flex-wrap:wrap; align-items:flex-start; }
  .list-row > :last-child { flex-basis:100%; justify-content:flex-start !important; margin-top:10px; }
}
