:root {
  --bg: #0B1A12;
  --panel: #12271B;
  --panel-2: #183526;
  --line: #1F3A2A;
  --line-2: #2E5440;
  --text: #F2F5EF;
  --text-2: #C9D4CC;
  --muted: #A9B8AD;
  --accent: #C6F24E;
  --accent-hover: #D7FA7A;
  --danger: #FF9A8A;
  --display: 'Barlow Condensed', 'Arial Narrow', Impact, sans-serif;
  --body: Inter, system-ui, -apple-system, 'Segoe UI', sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--body); font-size: 16px; line-height: 1.5; }
a { color: var(--accent); }
a:hover { color: var(--accent-hover); }
img { max-width: 100%; }
h1, h2, h3 { margin: 0 0 8px; line-height: 1.1; }
h1 { font-family: var(--display); font-weight: 800; font-size: 44px; }
h2 { font-family: var(--display); font-weight: 600; font-size: 30px; margin-bottom: 18px; }
h3 { font-size: 18px; }
p { margin: 0 0 12px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 520px; }
.section { padding-top: 40px; padding-bottom: 56px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.accent { color: var(--accent); font-weight: 600; }
.prewrap { white-space: pre-wrap; }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.inline { display: inline; margin: 0; }

/* Header & footer */
.site-header { border-bottom: 1px solid var(--line); }
.header-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding-top: 12px; padding-bottom: 12px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-family: var(--display); font-weight: 800; font-size: 28px; min-height: 44px; }
.brand:hover { color: var(--text); }
.brand em { font-style: normal; color: var(--accent); }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; }
.nav > a:not(.btn) { color: var(--muted); text-decoration: none; padding: 10px 2px; }
.nav > a:not(.btn):hover { color: var(--text); }
.site-footer { border-top: 1px solid var(--line); margin-top: 24px; }
.footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 24px; padding-bottom: 32px; color: var(--muted); font-size: 14px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 22px; border-radius: 10px; font: 600 16px var(--body); text-decoration: none; cursor: pointer; border: 1px solid transparent; }
.btn-sm { min-height: 40px; padding: 8px 16px; font-size: 15px; }
.btn-block { width: 100%; }
.btn-primary { background: var(--accent); color: var(--bg); }
.btn-primary:hover { background: var(--accent-hover); color: var(--bg); }
.btn-outline { background: none; color: var(--text); border-color: var(--line-2); }
.btn-outline:hover { border-color: var(--accent); color: var(--text); }
.btn-ghost { background: none; color: var(--text); border-color: var(--line-2); border-radius: 999px; }
.btn-link { background: none; border: none; color: var(--muted); text-decoration: underline; padding: 8px; min-height: 44px; font-weight: 500; }
.btn-link:hover { color: var(--text); }
.btn-link.danger { color: var(--danger); }
.btn:disabled { opacity: 0.6; cursor: wait; }
.pill { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--accent); color: var(--accent); border-radius: 10px; font-weight: 600; padding: 10px 18px; }
.pill::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }

/* Flash messages */
.flash { margin: 16px 0 0; padding: 12px 16px; border-radius: 10px; background: var(--panel-2); border: 1px solid var(--line-2); }
.flash-error { border-color: var(--danger); color: #FFD7CF; }

/* Home */
.hero { padding-top: 64px; padding-bottom: 48px; }
.hero h1 { font-size: clamp(44px, 8vw, 88px); line-height: 0.95; max-width: 820px; margin-bottom: 20px; }
.eyebrow { color: var(--accent); font-weight: 600; font-size: 14px; letter-spacing: 1.5px; text-transform: uppercase; }
.lead { color: var(--muted); font-size: 19px; max-width: 600px; margin-bottom: 28px; }
.band { border-top: 1px solid var(--line); }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 28px; padding-top: 48px; padding-bottom: 56px; }
.step-num { font-family: var(--display); font-weight: 800; font-size: 40px; color: var(--accent); }

/* Cards */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.grid-videos { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.card { display: block; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; color: var(--text); text-decoration: none; }
.card:hover { border-color: var(--line-2); color: var(--text); }
.card-body { padding: 14px 16px 18px; }
.card-title { font-weight: 600; font-size: 17px; }
.card-meta { display: flex; justify-content: space-between; margin-top: 12px; font-size: 14px; }
.creator-banner { height: 110px; background: var(--panel-2); display: flex; align-items: flex-end; padding: 0 16px; }
.creator-card .card-body { padding-top: 34px; }
.avatar { width: 64px; height: 64px; border-radius: 50%; background: var(--line-2); border: 3px solid var(--panel); display: flex; align-items: center; justify-content: center; font-family: var(--display); font-weight: 800; font-size: 24px; color: var(--accent); margin-bottom: -30px; }
.avatar-lg { width: 112px; height: 112px; font-size: 40px; border: 4px solid var(--bg); margin: 0; }

.thumb { position: relative; aspect-ratio: 16 / 9; background: var(--panel-2); display: flex; align-items: center; justify-content: center; }
.thumb { overflow: hidden; }
.thumb-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.thumb-shade { position: absolute; inset: 0; background: rgba(11, 26, 18, 0.62); }
.thumb > .play, .thumb > .locked, .thumb > #thumb-empty { position: relative; z-index: 1; }
.thumb > .badge { z-index: 2; }
.thumb-preview { border-radius: 12px; border: 1px solid var(--line-2); }
.thumb-img[hidden] { display: none; }
.mini-thumb { width: 64px; aspect-ratio: 16 / 9; border-radius: 6px; background: var(--panel-2); overflow: hidden; flex: none; }
.mini-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.badge { position: absolute; top: 10px; left: 10px; background: var(--accent); color: var(--bg); font-size: 12px; font-weight: 600; border-radius: 6px; padding: 3px 8px; }
.play { width: 56px; height: 56px; border-radius: 50%; background: var(--accent); position: relative; }
.play::after { content: ""; position: absolute; left: 22px; top: 17px; border-left: 16px solid var(--bg); border-top: 11px solid transparent; border-bottom: 11px solid transparent; }
.locked { display: flex; flex-direction: column; align-items: center; gap: 8px; color: var(--text-2); font-size: 14px; font-weight: 500; }
.lock-icon { width: 22px; height: 16px; border-radius: 3px; background: var(--text-2); position: relative; margin-top: 10px; }
.lock-icon::before { content: ""; position: absolute; left: 4px; top: -11px; width: 10px; height: 12px; border: 3px solid var(--text-2); border-bottom: none; border-radius: 8px 8px 0 0; }
.lock-lg { transform: scale(1.6); margin-bottom: 12px; }

/* Creator profile */
.profile-banner { height: 160px; background: var(--panel-2); }
.profile-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px; }
.profile-banner + .wrap .profile-head { margin-top: -56px; }
.profile-id { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 18px; }
.profile-name { margin: 0; line-height: 1; }
.bio { color: var(--text-2); max-width: 680px; margin-top: 20px; }

/* Video page */
.video-wrap { max-width: 960px; }
.back { display: inline-block; color: var(--muted); text-decoration: none; padding: 10px 0; margin-bottom: 8px; }
.back:hover { color: var(--text); }
.player { width: 100%; aspect-ratio: 16 / 9; background: #000; border-radius: 14px; display: block; }
.player-locked { position: relative; overflow: hidden; }
.player-locked > :not(.thumb-img):not(.thumb-shade) { position: relative; z-index: 1; }
.player-locked { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; text-align: center; padding: 24px; background: var(--panel); border: 1px solid var(--line); }
.video-title { margin-top: 24px; font-size: 40px; }

/* Forms */
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 24px; }
.field { display: flex; flex-direction: column; gap: 6px; border: none; margin: 0; padding: 0; }
.field label, .field legend { font-size: 14px; color: var(--text-2); padding: 0; }
.field .muted.small { margin: 0; }
input[type="text"], input[type="email"], input[type="password"], input[type="number"], textarea {
  background: var(--bg); border: 1px solid var(--line-2); border-radius: 10px; color: var(--text);
  padding: 12px 14px; font: 16px var(--body); min-height: 48px; width: 100%;
}
select { background: var(--bg); border: 1px solid var(--line-2); border-radius: 10px; color: var(--text); padding: 12px 14px; font: 16px var(--body); min-height: 48px; }
.payouts-panel form.row { align-items: flex-end; }
input[type="file"] { color: var(--text-2); font: 15px var(--body); }
textarea { resize: vertical; }
.choice { display: flex; align-items: center; gap: 10px; min-height: 44px; color: var(--text); font-size: 16px; cursor: pointer; }
.choice input { width: 20px; height: 20px; accent-color: var(--accent); }
.price-row { display: flex; justify-content: space-between; align-items: baseline; font-weight: 600; }
.price { font-family: var(--display); font-weight: 800; font-size: 32px; color: var(--accent); }
.dashed { border: 1px dashed var(--line-2); border-radius: 10px; padding: 16px; color: var(--muted); font-size: 14px; text-align: center; }
.video-check { margin: 4px 0 0; padding: 10px 12px; border-radius: 8px; font-size: 14px; border: 1px solid var(--line-2); color: var(--text-2); }
.video-check.ok { color: var(--accent); }
.video-check.bad { border-color: #F2B84E; color: #FFE2A8; background: rgba(242, 184, 78, 0.08); }
.video-check[hidden] { display: none; }
progress { width: 100%; height: 10px; accent-color: var(--accent); }

/* Studio */
.payouts-panel { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 28px; }
.payouts-panel > div { flex: 1 1 380px; }
.payouts-panel p { margin: 0; }
.payouts-todo { border-color: var(--accent); }
.studio-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 24px; margin-top: 28px; }
.video-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.video-list li { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.video-list-title { font-weight: 600; color: var(--text); text-decoration: none; flex: 1 1 200px; }
.video-list-title:hover { color: var(--accent); }

/* Screen-reader-only text */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* Photos & banners */
.avatar { overflow: hidden; position: relative; z-index: 1; }
.avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.creator-banner { position: relative; }
.profile-id { align-items: flex-start; }
.profile-id > div:last-child { margin-top: 64px; }
.creator-banner > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.profile-banner { position: relative; overflow: hidden; }
.profile-banner > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.profile-id .avatar-lg { position: relative; z-index: 1; }
/* Bio preview on cards: keeps the creator's line breaks, shows the first 3 lines. */
.card-bio { margin: 8px 0 0; color: var(--text-2); font-size: 14px; line-height: 1.4; white-space: pre-line;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden; }
.images-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.image-uploader { display: flex; flex-direction: column; gap: 12px; }
.avatar-preview { width: 112px; height: 112px; border-radius: 50%; background: var(--panel-2); border: 1px solid var(--line-2); overflow: hidden; display: flex; align-items: center; justify-content: center; text-align: center; }
.banner-preview { aspect-ratio: 15 / 4; border-radius: 10px; background: var(--panel-2); border: 1px solid var(--line-2); overflow: hidden; display: flex; align-items: center; justify-content: center; }
.avatar-preview img, .banner-preview img { width: 100%; height: 100%; object-fit: cover; display: block; }
.avatar-preview img[hidden], .banner-preview img[hidden] { display: none; }
.section-tight { margin-top: 24px; }

/* Home: search & filters */
.browse-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; margin-bottom: 14px; }
.browse-head h2 { margin: 0; }
.search { display: flex; gap: 8px; flex: 1 1 280px; max-width: 420px; }
.search input { flex: 1; min-width: 0; min-height: 44px; padding: 10px 14px; }
input[type="search"] { background: var(--bg); border: 1px solid var(--line-2); border-radius: 10px; color: var(--text); font: 16px var(--body); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.chip { display: inline-flex; align-items: center; min-height: 40px; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--text-2); text-decoration: none; font-size: 15px; }
.chip:hover { border-color: var(--accent); color: var(--text); }
.chip-on { background: var(--accent); border-color: var(--accent); color: var(--bg); font-weight: 600; }
.chip-on:hover { color: var(--bg); }
.empty { border: 1px dashed var(--line-2); border-radius: 16px; padding: 40px 20px; text-align: center; color: var(--text-2); }
.creator-pitch { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; border-top: 1px solid var(--line); }
.creator-pitch > div { flex: 1 1 420px; }
.creator-pitch p { margin: 0; max-width: 620px; }

/* Footer */
.footer-grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px 40px; padding-top: 28px; padding-bottom: 36px; }
.footer-grid > div { flex: 1 1 280px; max-width: 460px; }
.brand-sm { font-size: 22px; min-height: 0; margin-bottom: 8px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 4px 20px; align-items: flex-start; }
.footer-links a { color: var(--text-2); text-decoration: none; padding: 8px 0; }
.footer-links a:hover { color: var(--accent); }

/* Info pages */
.prose { max-width: 760px; }
.prose h1 { font-size: clamp(38px, 6vw, 56px); margin-bottom: 16px; }
.prose h2 { font-family: var(--body); font-weight: 600; font-size: 21px; margin: 32px 0 8px; }
.prose p, .prose li { color: var(--text-2); }
.prose ul { padding-left: 22px; }
.prose li { margin-bottom: 6px; }
.prose strong { color: var(--text); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 16px 0; font-weight: 600; font-size: 17px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0 0 16px; }

/* Reports */
.report-link { margin-top: 28px; font-size: 14px; }
.report-link a { color: var(--muted); }
.choice-top { align-items: flex-start; }
.choice-top input { margin-top: 3px; flex: none; }
.badge-warn { left: auto; right: 10px; background: #F2B84E; }

/* Admin */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; margin: 20px 0 10px; }
.stat { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; display: flex; flex-direction: column; gap: 4px; }
.stat-num { font-family: var(--display); font-weight: 800; font-size: 34px; line-height: 1; }
.stat-num.warn, .badge-inline.warn { color: #F2B84E; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; }
.table { width: 100%; border-collapse: collapse; font-size: 15px; }
.table th, .table td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th { color: var(--muted); font-weight: 600; font-size: 13px; text-transform: uppercase; letter-spacing: 0.5px; background: var(--panel); }
.table tr:last-child td { border-bottom: none; }
.table a { color: var(--text); }
.table a:hover { color: var(--accent); }
.table .actions { white-space: nowrap; }
.table .actions .btn-link { padding: 6px 8px; min-height: 36px; }
.nowrap { white-space: nowrap; }
.badge-inline { font-weight: 600; }

@media (max-width: 600px) {
  h1 { font-size: 36px; }
  .video-title { font-size: 30px; }
  .avatar-lg { width: 88px; height: 88px; font-size: 32px; }
}

/* ===================== Visual polish ===================== */
:root {
  --pitch: #17583A;
  --pitch-lines: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 200' preserveAspectRatio='xMidYMid slice'%3E%3Cg fill='none' stroke='%23F2F5EF' stroke-opacity='.28' stroke-width='3'%3E%3Crect x='12' y='12' width='576' height='176'/%3E%3Cline x1='300' y1='12' x2='300' y2='188'/%3E%3Ccircle cx='300' cy='100' r='38'/%3E%3Crect x='12' y='50' width='60' height='100'/%3E%3Crect x='528' y='50' width='60' height='100'/%3E%3C/g%3E%3C/svg%3E");
  --stripes: repeating-linear-gradient(90deg, rgba(255,255,255,.045) 0 48px, transparent 48px 96px);
  --shadow: 0 10px 30px rgba(0, 0, 0, .35);
}

/* Sticky, slightly see-through header */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(11, 26, 18, .88); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }

/* Hero */
.hero-band { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero-band::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 70% at 85% 30%, rgba(198, 242, 78, .10), transparent 70%); pointer-events: none; }
.hero { position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); align-items: center; gap: 48px; padding-top: 72px; padding-bottom: 72px; }
.hero h1 { font-size: clamp(46px, 6.4vw, 84px); }
.accent-text { color: var(--accent); }
.btn-lg { min-height: 54px; padding: 14px 28px; font-size: 17px; }
.btn-primary { box-shadow: 0 6px 20px rgba(198, 242, 78, .18); }
.hero-counts { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 26px 0 0; color: var(--muted); font-size: 15px; }
.hero-counts span { display: inline-flex; align-items: center; gap: 6px; }
.hero-counts span + span::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--line-2); margin-right: 16px; }
.hero-counts strong { color: var(--text); }
.hero-art { display: flex; justify-content: center; }
.hero-board { width: 100%; max-width: 520px; height: auto; border-radius: 22px; box-shadow: var(--shadow), 0 0 0 1px rgba(255,255,255,.06); transform: rotate(-2deg); }
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 36px; padding-top: 48px; padding-bottom: 48px; }
  .hero-board { transform: none; max-width: 460px; }
}

/* Section labels */
.eyebrow { margin-bottom: 10px; }
.band { background: linear-gradient(180deg, rgba(18, 39, 27, .6), transparent); padding-top: 56px; }
.band .eyebrow { margin-bottom: 0; }
.band .steps { padding-top: 20px; }

/* How it works */
.step { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 22px; position: relative; }
.step-icon { width: 46px; height: 46px; border-radius: 12px; background: rgba(198, 242, 78, .12); display: flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.step-icon svg { width: 24px; height: 24px; fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.step .step-num { position: absolute; top: 18px; right: 22px; font-size: 30px; color: var(--line-2); }

/* Default pitch banners when a creator hasn't uploaded one */
.creator-banner, .profile-banner { background-color: var(--pitch); background-image: var(--pitch-lines), var(--stripes); background-size: cover, auto; background-position: center; }
.profile-banner { height: 200px; }
.thumb { background-color: #143D29; background-image: var(--stripes); }

/* Cards: lift on hover */
.card { transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
.card:hover { transform: translateY(-4px); border-color: rgba(198, 242, 78, .45); box-shadow: var(--shadow); }
.card .card-title { font-size: 18px; }
.creator-card .avatar { box-shadow: 0 4px 14px rgba(0, 0, 0, .35); }
.play { box-shadow: 0 6px 18px rgba(0, 0, 0, .4); transition: transform .18s ease; }
.video-card:hover .play { transform: scale(1.08); }

/* Position chips & search */
.chip { transition: border-color .15s ease, color .15s ease, background .15s ease; }
.search input:focus, input:focus, textarea:focus, select:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px rgba(198, 242, 78, .18); }

/* Coach pitch panel */
.creator-pitch { background: var(--panel); border: 1px solid var(--line); border-radius: 22px; padding: 36px; margin-top: 56px; margin-bottom: 56px; background-image: var(--stripes); }

/* Panels feel a bit softer */
.panel { box-shadow: 0 1px 0 rgba(255,255,255,.03) inset; }

@media (prefers-reduced-motion: reduce) {
  .card, .play, .chip { transition: none; }
  .card:hover { transform: none; }
  .hero-board { transform: none; }
  html { scroll-behavior: auto; }
}
[id] { scroll-margin-top: 84px; }

/* Account settings */
.settings-title { margin-top: 44px; }
.panel h3 { margin: 0; }
.btn-danger { background: none; color: var(--danger); border-color: rgba(255, 154, 138, .5); }
.btn-danger:hover { background: rgba(255, 154, 138, .1); color: var(--danger); border-color: var(--danger); }
.danger-zone { border-color: rgba(255, 154, 138, .3); }

/* Admin go-live checklist */
.checklist { list-style: none; padding: 0; margin: 16px 0; display: grid; gap: 10px; }
.check { display: flex; gap: 14px; align-items: flex-start; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
.check-mark { flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 14px; border: 2px solid var(--muted); color: var(--muted); }
.check-ok .check-mark { background: var(--accent); border-color: var(--accent); color: #0B1A12; }
.check-warn .check-mark { border-color: #F2C94E; color: #F2C94E; }
.check-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.check-actions form { margin: 0; }
.check .small { overflow-wrap: anywhere; }

/* Notification bell */
.nav > a.bell { position: relative; display: inline-flex; align-items: center; padding: 8px 4px; }
.bell-count { position: absolute; top: 2px; right: -6px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
  background: var(--accent); color: #0B1A12; font-size: 11px; font-weight: 700; line-height: 18px; text-align: center; }

/* Views & likes */
.card-stats { margin-top: 6px; }
.video-meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; }
.video-meta p { margin: 0; }
.like-btn { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line);
  background: none; color: var(--text); font: inherit; font-weight: 600; cursor: pointer; text-decoration: none; min-height: 40px; }
.like-btn svg { fill: none; }
.like-btn:hover { border-color: var(--accent); }
.like-btn.liked { border-color: var(--accent); color: var(--accent); }
.like-btn.liked svg { fill: currentColor; }
.like-count { color: var(--muted); font-weight: 500; }
.like-btn.liked .like-count { color: inherit; }
.like-static { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); }
.like-static svg { fill: none; }

/* Notifications */
.notes { list-style: none; padding: 0; margin: 20px 0; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.notes li + li { border-top: 1px solid var(--line); }
.note { display: flex; align-items: center; gap: 14px; padding: 14px 16px; color: var(--text); text-decoration: none; }
a.note:hover { background: rgba(255, 255, 255, .04); }
.notes li.unread { background: rgba(198, 242, 78, .06); }
.note-icon { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  background: var(--panel); border: 1px solid var(--line); font-size: 15px; color: var(--muted); }
.note-subscriber, .note-like { color: var(--accent); }
.note-text { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; overflow-wrap: anywhere; }
.note-new { flex: none; font-size: 12px; font-weight: 700; color: var(--accent); }

/* Analytics */
.range-tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.range-tabs a { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); text-decoration: none; font-weight: 600; }
.range-tabs a:hover { color: var(--text); }
.range-tabs a[aria-current="page"] { background: var(--accent); border-color: var(--accent); color: #0B1A12; }
.stat-sub { font-size: 12px; }
.chart-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 16px; margin-bottom: 12px; }
.chart-title { font-size: 20px; margin: 0 0 10px; }
.chart { width: 100%; height: auto; display: block; overflow: visible; }
.chart .grid { stroke: var(--line); stroke-width: 1; }
.chart .axis { fill: var(--muted); font-size: 14px; font-family: var(--body); }
.chart .bar-hit { fill: transparent; }
.chart .bar-fill { fill: var(--accent); }
.chart .bar:hover .bar-hit { fill: rgba(255, 255, 255, .05); }
.chart .bar:hover .bar-fill { fill: var(--accent-hover); }
.chart-table { margin-top: 8px; }
.chart-table summary { cursor: pointer; color: var(--muted); font-size: 14px; }
.chart-table .table { margin-top: 8px; }
.table .num { text-align: right; white-space: nowrap; }
.chart-grid { margin-top: 24px; }
@media (max-width: 600px) {
  .chart-grid { grid-template-columns: 1fr; }
  .chart .axis { font-size: 20px; }
}

/* Comments */
.comments { margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--line); }
.comments-title { font-size: 24px; margin: 0 0 14px; }
.comment-form { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.comment-form textarea { width: 100%; resize: vertical; min-height: 80px; }
.comment-form-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.field-error { color: var(--danger); margin: 0; font-size: 14px; }
.comment-list { list-style: none; margin: 0; padding: 0; }
.comment { padding: 14px 0; border-top: 1px solid var(--line); scroll-margin-top: 84px; }
.comment:target { background: rgba(198, 242, 78, .06); border-radius: 10px; padding-left: 10px; padding-right: 10px; }
.comment-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.comment-author { font-weight: 600; overflow-wrap: anywhere; }
.coach-badge { font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 2px 8px; border-radius: 999px; background: var(--accent); color: #0B1A12; }
.comment-body { margin: 6px 0 4px; overflow-wrap: anywhere; }
.comment-actions { display: flex; gap: 14px; align-items: center; }
.comment-actions a { color: var(--muted); }
.comment-actions .btn-link { padding: 0; color: var(--muted); }
.quote { margin: 0 0 16px; padding: 12px 16px; border-left: 3px solid var(--line); background: var(--panel); border-radius: 8px; overflow-wrap: anywhere; }

/* Video format warnings */
.flash[hidden] { display: none; }
.video-warn { flex-basis: 100%; order: 10; font-size: 14px; color: #FFE2A8; }
.video-file-panel { margin-bottom: 20px; }
.video-file-panel form { max-width: 520px; }

/* Coach sort */
.search { flex-wrap: wrap; max-width: 600px; }
.search input { flex: 1 1 200px; }
.sort-select { min-height: 44px; padding: 8px 12px; flex: 0 1 auto; }

/* Payout restart option */
.restart-payouts { flex-basis: 100%; margin-top: 4px; }
.restart-payouts summary { cursor: pointer; color: var(--muted); font-size: 14px; }
.restart-payouts form { margin-top: 10px; }

/* Cloudflare Stream player */
.player-frame { position: relative; overflow: hidden; }
.player-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-processing { color: var(--muted); }

/* ===================== Clean & modern refresh ===================== */
:root {
  --bg: #0A1711;
  --panel: #10221A;
  --panel-2: #152C21;
  --line: #1E3A2B;
  --line-2: #2B4F3C;
  --display: 'Inter Display', Inter, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --body: Inter, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --shadow: 0 22px 50px -20px rgba(0, 0, 0, .9);
}
body { -webkit-font-smoothing: antialiased; font-optical-sizing: auto; }
h1 { font-weight: 700; letter-spacing: -0.035em; }
h2 { font-weight: 700; letter-spacing: -0.03em; font-size: 32px; }
.stat-num, .price, .step-num { font-weight: 700; letter-spacing: -0.02em; }

/* Header */
.site-header { background: rgba(10, 23, 17, .82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.brand { font-weight: 700; font-size: 25px; letter-spacing: -0.03em; }
.brand-sm { font-size: 21px; }

/* Buttons */
.btn { border-radius: 12px; }
.btn-outline { background: rgba(255, 255, 255, .02); }
.btn-primary { box-shadow: 0 10px 26px -10px rgba(198, 242, 78, .6); }
.btn-primary:hover { transform: translateY(-1px); }
.btn { transition: background .15s ease, border-color .15s ease, transform .15s ease; }

/* Hero */
.hero-band::before { background: radial-gradient(800px 420px at 85% 10%, rgba(198, 242, 78, .09), transparent 65%), radial-gradient(700px 400px at 0% 100%, rgba(48, 140, 90, .16), transparent 65%); }
.hero { gap: 56px; padding-top: 76px; padding-bottom: 88px; }
.hero h1 { font-size: clamp(42px, 5.6vw, 66px); line-height: 1.02; letter-spacing: -0.04em; margin-bottom: 18px; }
.accent-text { background: linear-gradient(90deg, var(--accent), #8FE07A); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { color: var(--text-2); font-size: 18px; line-height: 1.6; max-width: 480px; }
.hero-pill { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 20px; padding: 5px 12px 5px 5px; border: 1px solid var(--line); border-radius: 999px; background: var(--panel); color: var(--text-2); font-size: 13px; font-weight: 600; }
.hero-pill span { background: var(--accent); color: var(--bg); font-size: 11px; font-weight: 700; letter-spacing: .03em; padding: 3px 8px; border-radius: 999px; }
.proof { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 14px; margin-top: 32px; color: var(--muted); font-size: 15px; }
.proof strong { color: var(--text); font-weight: 600; }
.faces { display: flex; }
.avatar.face { width: 34px; height: 34px; font-size: 13px; border: 2px solid var(--bg); margin: 0 0 0 -9px; color: var(--text); background: var(--line-2); }
.avatar.face:first-child { margin-left: 0; }

.hero-feature-wrap { position: relative; display: block; padding: 20px 10px 30px; }
.hero-feature { display: block; color: var(--text); text-decoration: none; background: var(--panel); border: 1px solid var(--line); border-radius: 22px; padding: 12px; box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .85); transform: rotate(1deg); transition: transform .25s ease, border-color .25s ease; }
.hero-feature:hover { transform: rotate(0deg) translateY(-4px); border-color: rgba(198, 242, 78, .4); color: var(--text); }
.hero-feature .thumb { border-radius: 14px; }
.hero-feature-meta { display: flex; gap: 12px; align-items: center; padding: 14px 6px 6px; }
.hero-feature-title { font-weight: 600; font-size: 17px; line-height: 1.3; }
.avatar.avatar-sm { width: 42px; height: 42px; font-size: 15px; margin: 0; flex: none; border-width: 2px; }
.float { position: absolute; z-index: 3; display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: rgba(16, 34, 26, .94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid var(--line-2); border-radius: 14px; font-size: 13px; color: var(--text); text-decoration: none; box-shadow: 0 14px 30px -10px rgba(0, 0, 0, .75); }
.float > span:last-child { display: flex; flex-direction: column; line-height: 1.35; }
.float strong { font-size: 14px; font-weight: 600; }
a.float:hover { border-color: var(--accent); color: var(--text); }
.float-icon { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: rgba(198, 242, 78, .14); color: var(--accent); font-size: 13px; }
.float-top { top: 0; right: -6px; }
.float-bottom { bottom: -14px; left: -18px; }
@media (max-width: 900px) {
  .hero-feature { transform: none; }
  .float-top { right: 0; }
  .float-bottom { left: 0; }
}

/* Video pictures: a drawn pitch shows until there's a real thumbnail */
.thumb { background: radial-gradient(120% 85% at 50% 120%, #2F8F4E, #1C5B33 55%, #0F2E1C 100%); isolation: isolate; }
.thumb::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, transparent calc(50% - 1px), rgba(255,255,255,.3) calc(50% - 1px), rgba(255,255,255,.3) calc(50% + 1px), transparent calc(50% + 1px)), repeating-linear-gradient(90deg, rgba(255,255,255,.045) 0 40px, transparent 40px 80px); transform: perspective(300px) rotateX(48deg) scale(1.6); transform-origin: 50% 100%; }
.thumb::after { content: ""; position: absolute; z-index: -1; left: 50%; top: 64%; width: 34%; aspect-ratio: 2 / 1; border: 2px solid rgba(255,255,255,.28); border-radius: 50%; transform: translate(-50%, -50%); }
.thumb-img { z-index: 0; }
.thumb > .play, .thumb > .locked, .thumb > .tag, .thumb > .duration, .thumb > .badge { z-index: 2; }
.creator-card .thumb::before, .creator-card .thumb::after, .hero-feature .thumb::before, .hero-feature .thumb::after { pointer-events: none; }
.tag { position: absolute; top: 10px; left: 10px; display: inline-flex; align-items: center; gap: 5px; padding: 4px 9px; border-radius: 999px; background: rgba(0, 0, 0, .62); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); color: var(--text-2); font-size: 12px; font-weight: 600; }
.tag-free { background: var(--accent); color: var(--bg); }
.duration { position: absolute; right: 10px; bottom: 10px; padding: 3px 7px; border-radius: 6px; background: rgba(0, 0, 0, .72); color: #fff; font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; }
.creator-card .play, .hero-feature .play, .video-card .play { width: 54px; height: 54px; background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .3); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); transition: background .18s ease, transform .18s ease; }
.creator-card .play::after, .hero-feature .play::after, .video-card .play::after { left: 20px; top: 16px; border-left-color: #fff; border-left-width: 15px; border-top-width: 10px; border-bottom-width: 10px; }
.creator-card:hover .play, .hero-feature:hover .play, .video-card:hover .play { background: var(--accent); border-color: var(--accent); transform: scale(1.06); }
.creator-card:hover .play::after, .hero-feature:hover .play::after, .video-card:hover .play::after { border-left-color: var(--bg); }
.thumb-shade { z-index: 1; }

/* Cards */
.grid { gap: 22px; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); }
.card { border-radius: 18px; }
.card:hover { transform: translateY(-6px); border-color: rgba(198, 242, 78, .45); box-shadow: var(--shadow), 0 0 0 4px rgba(198, 242, 78, .06); }
.creator-card { display: flex; flex-direction: column; }
.creator-card .card-body { padding: 0 18px 18px; display: flex; flex-direction: column; flex: 1; }
.avatar.card-avatar { width: 52px; height: 52px; font-size: 19px; margin: -26px 0 0; border: 3px solid var(--panel); position: relative; z-index: 3; color: var(--text); }
.name-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 10px; }
.name-row .card-title { font-size: 17px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pos-pill { flex: none; font-size: 12px; font-weight: 600; color: var(--text-2); background: var(--panel-2); border: 1px solid var(--line-2); padding: 3px 9px; border-radius: 999px; }
.creator-card .card-bio { color: var(--muted); -webkit-line-clamp: 2; line-clamp: 2; margin-top: 8px; }
.card-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: auto; padding-top: 13px; border-top: 1px solid var(--line); font-size: 13px; }
.creator-card .card-bio + .card-foot, .name-row + .card-foot { margin-top: 14px; }
.flag { color: var(--accent); font-weight: 600; }
.card-price { font-family: var(--display); font-weight: 700; font-size: 18px; color: var(--text); white-space: nowrap; }
.card-price small { font-family: var(--body); font-size: 13px; font-weight: 500; color: var(--muted); }
.card-price.free { color: var(--accent); }

/* Browse controls */
.section-sub { margin: 4px 0 0; }
.browse-head { align-items: flex-end; margin-bottom: 20px; }
.chip { background: var(--panel); border-color: var(--line); font-weight: 500; font-size: 14px; }
.chip-on { background: var(--text); border-color: var(--text); color: var(--bg); }
.chip-on:hover { color: var(--bg); border-color: var(--text); }
input[type="search"], .search input, select { background: var(--panel); border-color: var(--line); border-radius: 12px; }

/* Panels, steps and the coach pitch */
.panel, .step, .stat, .check { border-radius: 18px; }
.creator-pitch { background-image: radial-gradient(500px 220px at 100% 0%, rgba(198, 242, 78, .08), transparent 70%); }
.step-icon { border-radius: 12px; }
.profile-banner + .wrap .avatar-lg { box-shadow: 0 10px 30px rgba(0, 0, 0, .5); }

@media (prefers-reduced-motion: reduce) {
  .hero-feature, .hero-feature:hover, .btn-primary:hover { transform: none; }
  .creator-card .play, .hero-feature .play, .video-card .play { transition: none; }
}
