/* ============================================================
   CS2.VIDEO v2 — Main Stylesheet
   ============================================================ */

:root {
  --green: #1D9E75;
  --green-light: #E1F5EE;
  --green-dark: #0F6E56;
  --black: #0a0a0a;
  --dark: #111;
  --dark2: #181818;
  --dark3: #222;
  --border: rgba(255,255,255,0.08);
  --border-light: rgba(255,255,255,0.14);
  --text: #f0f0f0;
  --text-muted: rgba(240,240,240,0.5);
  --text-dim: rgba(240,240,240,0.28);
  --font-display: 'Barlow Condensed', sans-serif;
  --font-body: 'Barlow', sans-serif;
  --radius: 10px;
  --radius-lg: 16px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background: var(--black); color: var(--text); font-family: var(--font-body); font-size: 16px; line-height: 1.6; min-height: 100vh; }
.container { max-width: 960px; margin: 0 auto; padding: 0 24px; }

/* ---- NAV ---- */
.nav { position: sticky; top: 0; z-index: 100; background: rgba(10,10,10,0.92); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); }
.nav-inner { max-width: 960px; margin: 0 auto; padding: 0 24px; height: 60px; display: flex; align-items: center; justify-content: space-between; }
.dash-top-tabs { display: flex; align-items: center; justify-content: center; gap: 8px; }
.dash-top-tab { display: inline-flex; align-items: center; justify-content: center; min-width: 92px; height: 34px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--border); background: rgba(255,255,255,0.03); color: var(--text-muted); text-decoration: none; font-family: var(--font-display); font-size: 13px; font-weight: 800; letter-spacing: 0.07em; transition: background 0.15s, color 0.15s, border-color 0.15s, transform 0.1s; }
.dash-top-tab:hover { color: var(--text); border-color: var(--border-light); background: var(--dark3); }
.dash-top-tab.active { color: #fff; border-color: rgba(29,158,117,0.55); background: rgba(29,158,117,0.16); box-shadow: inset 0 0 0 1px rgba(29,158,117,0.08); }
.logo { font-family: var(--font-display); font-size: 22px; font-weight: 800; letter-spacing: 0.02em; color: var(--text); text-decoration: none; }
.logo span { color: var(--green); }
.nav-right { display: flex; align-items: center; gap: 16px; }
.nav-link { font-size: 14px; color: var(--text-muted); text-decoration: none; transition: color 0.15s; }
.nav-link:hover { color: var(--text); }
.btn-nav { background: var(--green); color: #fff; font-family: var(--font-display); font-size: 14px; font-weight: 700; letter-spacing: 0.04em; padding: 8px 18px; border-radius: 8px; text-decoration: none; transition: opacity 0.15s; }
.btn-nav:hover { opacity: 0.85; }

/* ---- BUTTONS ---- */
.btn-primary { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--green); color: #fff; font-family: var(--font-display); font-size: 16px; font-weight: 700; letter-spacing: 0.04em; padding: 11px 22px; border-radius: var(--radius); border: none; cursor: pointer; text-decoration: none; transition: opacity 0.15s, transform 0.1s; white-space: nowrap; }
.btn-primary:hover { opacity: 0.88; }
.btn-primary:active { transform: scale(0.98); }
.btn-primary.large { font-size: 18px; padding: 14px 32px; }
.btn-primary.full { width: 100%; }

.btn-ghost { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: transparent; color: var(--text); font-family: var(--font-display); font-size: 16px; font-weight: 600; letter-spacing: 0.04em; padding: 11px 20px; border-radius: var(--radius); border: 1px solid var(--border-light); cursor: pointer; text-decoration: none; transition: background 0.15s; }
.btn-ghost:hover { background: var(--dark3); }
.btn-ghost.small { font-size: 13px; padding: 7px 14px; }
.btn-ghost.full { width: 100%; }

.link-green { color: var(--green); text-decoration: none; }
.link-green:hover { text-decoration: underline; }

/* ---- HERO ---- */
.hero { position: relative; padding: 100px 0 80px; overflow: hidden; text-align: center; }
.hero-bg { position: absolute; inset: 0; background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(29,158,117,0.12) 0%, transparent 70%); pointer-events: none; }
.hero-label { display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--green); border: 1px solid rgba(29,158,117,0.3); padding: 5px 14px; border-radius: 100px; margin-bottom: 24px; }
.hero-title { font-family: var(--font-display); font-size: clamp(52px, 8vw, 88px); font-weight: 800; line-height: 0.95; letter-spacing: -0.01em; margin-bottom: 24px; }
.hero-sub { max-width: 520px; margin: 0 auto 36px; color: var(--text-muted); font-size: 17px; line-height: 1.6; }
.hero-cta { display: flex; flex-direction: column; align-items: center; gap: 12px; justify-content: center; margin-bottom: 20px; }
.btn-primary.hero-main-cta { min-width: min(340px, 88vw); min-height: 62px; padding: 0 42px; border-radius: 16px; font-size: 24px; font-weight: 800; line-height: 1; letter-spacing: 0.065em; box-shadow: 0 16px 36px rgba(29,158,117,0.24), inset 0 0 0 1px rgba(255,255,255,0.12); }
.btn-primary.hero-main-cta svg { width: 22px; height: 22px; }
.hero-secondary-cta { min-width: 210px; min-height: 42px; font-size: 15px; padding: 0 22px; color: var(--text-muted); }
.hero-secondary-cta:hover { color: var(--text); }
.hero-free-badge { font-size: 13px; color: var(--text-muted); }
.hero-free-badge span { background: var(--dark2); border: 1px solid var(--border); padding: 6px 14px; border-radius: 100px; }

/* ---- SECTIONS ---- */
.how, .formats, .pricing { padding: 80px 0; border-top: 1px solid var(--border); }
.section-label { font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--green); margin-bottom: 12px; }
.section-title { font-family: var(--font-display); font-size: clamp(32px, 5vw, 48px); font-weight: 800; line-height: 1; margin-bottom: 48px; }

/* STEPS */
.steps-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.step-card { background: var(--dark2); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px 20px; }
.step-num { font-family: var(--font-display); font-size: 44px; font-weight: 800; color: rgba(29,158,117,0.2); line-height: 1; margin-bottom: 12px; }
.step-card h3 { font-family: var(--font-display); font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.step-card p { font-size: 13px; color: var(--text-muted); line-height: 1.6; }

/* FORMATS */
.formats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.format-card { background: var(--dark2); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 32px 28px; }
.format-card.featured { border-color: rgba(29,158,117,0.4); }
.format-tag { display: inline-block; font-family: var(--font-display); font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; padding: 4px 12px; border-radius: 100px; margin-bottom: 16px; }
.format-tag.clean { background: rgba(255,255,255,0.06); color: var(--text-muted); }
.format-tag.viral { background: rgba(29,158,117,0.15); color: var(--green); }
.format-card h3 { font-family: var(--font-display); font-size: 22px; font-weight: 700; line-height: 1.2; margin-bottom: 12px; }
.format-card p { font-size: 14px; color: var(--text-muted); line-height: 1.6; margin-bottom: 20px; }
.format-list { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.format-list li { font-size: 14px; color: var(--text-muted); padding-left: 18px; position: relative; }
.format-list li::before { content: '✓'; position: absolute; left: 0; color: var(--green); font-weight: 700; }

/* PRICING */
.pricing-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 560px; }
.price-card { background: var(--dark2); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 32px 28px; position: relative; }
.price-card.featured { border-color: rgba(29,158,117,0.4); }
.price-badge { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; background: var(--green); color: #fff; padding: 4px 14px; border-radius: 100px; white-space: nowrap; }
.price-name { font-family: var(--font-display); font-size: 18px; font-weight: 700; margin-bottom: 8px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.08em; }
.price-amount { font-family: var(--font-display); font-size: 52px; font-weight: 800; line-height: 1; margin-bottom: 24px; }
.price-amount span { font-size: 18px; font-weight: 400; color: var(--text-muted); }
.price-features { list-style: none; display: flex; flex-direction: column; gap: 10px; margin-bottom: 28px; }
.price-features li { font-size: 14px; color: var(--text-muted); padding-left: 18px; position: relative; }
.price-features li::before { content: '✓'; position: absolute; left: 0; color: var(--green); font-weight: 700; }

/* FOOTER */
.footer { border-top: 1px solid var(--border); padding: 32px 0; }
.footer-inner { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.footer p { font-size: 13px; color: var(--text-dim); flex: 1; }
.footer a { font-size: 13px; color: var(--text-muted); text-decoration: none; }

/* ============================================================
   AUTH PAGE
   ============================================================ */
.auth-page { background: var(--black); }
.auth-main { display: flex; align-items: center; justify-content: center; min-height: calc(100vh - 60px); padding: 40px 24px; }
.auth-card { background: var(--dark2); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 40px 36px; width: 100%; max-width: 480px; display: flex; flex-direction: column; gap: 0; }

/* Step indicator */
.step-indicator { display: flex; align-items: center; gap: 0; margin-bottom: 28px; }
.step-pip { width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--border-light); background: var(--dark3); display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; color: var(--text-muted); flex-shrink: 0; }
.step-pip.active { border-color: var(--green); color: var(--green); background: rgba(29,158,117,0.1); }
.step-pip.done { border-color: var(--green); background: var(--green); color: #fff; }
.step-line { flex: 1; height: 1px; background: var(--border); margin: 0 8px; }
.step-line.active { background: var(--green); }

.auth-card h1 { font-family: var(--font-display); font-size: 26px; font-weight: 700; margin-bottom: 10px; }
.auth-desc { font-size: 14px; color: var(--text-muted); line-height: 1.6; margin-bottom: 24px; }
.auth-note { font-size: 12px; color: var(--text-dim); text-align: center; }

/* Steam user row */
.auth-steam-user { display: flex; align-items: center; gap: 12px; background: var(--dark3); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 14px; margin-bottom: 24px; }
.steam-avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--green); display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-size: 16px; font-weight: 700; color: #fff; flex-shrink: 0; }
.steam-name { font-size: 14px; font-weight: 500; }
.steam-id { font-size: 11px; color: var(--text-dim); }
.connected-badge { margin-left: auto; font-size: 12px; color: var(--green); background: rgba(29,158,117,0.1); border: 1px solid rgba(29,158,117,0.2); padding: 4px 10px; border-radius: 100px; white-space: nowrap; }

/* Auth code how-to */
.authcode-how { background: var(--dark3); border-radius: var(--radius); padding: 16px 18px; margin-bottom: 20px; }
.authcode-how-title { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 12px; }
.authcode-steps { display: flex; flex-direction: column; gap: 10px; }
.authcode-step { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; color: var(--text-muted); }
.authcode-step strong { color: var(--text); }

.authcode-input-wrap { margin-bottom: 16px; }
.htf-num { width: 20px; height: 20px; border-radius: 50%; background: var(--dark2); border: 1px solid var(--border-light); font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: var(--text); }

/* Steam button */
.btn-steam { display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; background: #1b2838; color: #c7d5e0; font-family: var(--font-display); font-size: 17px; font-weight: 700; letter-spacing: 0.04em; padding: 14px 24px; border-radius: var(--radius); border: 1px solid rgba(103,193,245,0.15); cursor: pointer; text-decoration: none; transition: background 0.15s; margin-bottom: 14px; }
.btn-steam:hover { background: #213249; }

.spinner { width: 16px; height: 16px; border: 2px solid rgba(199,213,224,0.2); border-top-color: #c7d5e0; border-radius: 50%; animation: spin 0.7s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Inputs */
.sc-input { width: 100%; background: var(--dark3); border: 1px solid var(--border-light); border-radius: var(--radius); padding: 12px 16px; font-family: 'Courier New', monospace; font-size: 14px; color: var(--text); outline: none; transition: border-color 0.15s; box-sizing: border-box; }
.sc-input::placeholder { color: var(--text-dim); }
.sc-input:focus { border-color: rgba(29,158,117,0.5); }
.sc-input.valid { border-color: var(--green); }
.sc-input.invalid { border-color: #e24b4a; }
.sc-validation { font-size: 13px; min-height: 18px; margin-top: 5px; }
.sc-validation.error { color: #e24b4a; }
.sc-validation.success { color: var(--green); }
.sc-field-label { font-size: 11px; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 6px; }

/* ============================================================
   DASHBOARD
   ============================================================ */
.dash-page { background: var(--black); }
.dash-main { padding: 32px 0 80px; }

.profile-menu { position: relative; }
.user-pill { display: flex; align-items: center; gap: 10px; background: var(--dark3); border: 1px solid var(--border); border-radius: 100px; padding: 5px 12px 5px 6px; }
.user-pill-button { color: var(--text); cursor: pointer; font-family: var(--font-body); }
.user-pill-button:hover { border-color: var(--border-light); background: #252525; }
.user-avatar { width: 28px; height: 28px; border-radius: 50%; background: var(--green); display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-size: 13px; font-weight: 700; color: #fff; overflow: hidden; }
#userName { font-size: 14px; font-weight: 500; }
.user-caret { color: var(--text-muted); font-size: 11px; margin-left: 2px; }
.profile-dropdown { position: absolute; right: 0; top: calc(100% + 10px); min-width: 210px; display: none; flex-direction: column; gap: 4px; background: var(--dark2); border: 1px solid var(--border-light); border-radius: 14px; padding: 8px; box-shadow: 0 18px 50px rgba(0,0,0,0.45); z-index: 300; }
.profile-menu.open .profile-dropdown { display: flex; }
.profile-dropdown button { width: 100%; text-align: left; background: transparent; border: 0; color: var(--text); padding: 10px 12px; border-radius: 10px; font-family: var(--font-body); font-size: 13px; cursor: pointer; }
.profile-dropdown button:hover { background: var(--dark3); }

/* Credits bar */
.credits-bar { display: flex; align-items: center; gap: 20px; background: var(--dark2); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 16px 20px; margin-bottom: 28px; flex-wrap: wrap; }
.credits-info { display: flex; align-items: center; gap: 14px; }
.credits-label { font-size: 13px; color: var(--text-muted); }
.credits-dots { display: flex; gap: 6px; }
.credit-dot { width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--green); }
.credit-dot.available { background: var(--green); }
.credit-dot.used { background: transparent; border-color: var(--border-light); }
.credits-reset { font-size: 13px; color: var(--text-dim); }
.btn-upgrade { margin-left: auto; font-size: 13px; font-weight: 600; color: var(--green); text-decoration: none; background: rgba(29,158,117,0.08); border: 1px solid rgba(29,158,117,0.2); padding: 6px 14px; border-radius: 100px; transition: background 0.15s; white-space: nowrap; }
.btn-upgrade:hover { background: rgba(29,158,117,0.15); }

/* Empty matches state */
.empty-matches { text-align: center; padding: 80px 24px; border: 1px dashed var(--border-light); border-radius: var(--radius-lg); background: var(--dark2); }
.empty-matches-icon { font-size: 48px; margin-bottom: 16px; }
.empty-matches h3 { font-family: var(--font-display); font-size: 26px; font-weight: 700; margin-bottom: 10px; }
.empty-matches p { font-size: 15px; color: var(--text-muted); margin-bottom: 28px; max-width: 380px; margin-left: auto; margin-right: auto; }

/* Matches section */
.matches-section { margin-bottom: 40px; }
.matches-header { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 16px; gap: 12px; flex-wrap: wrap; }
.matches-header h2 { font-family: var(--font-display); font-size: 22px; font-weight: 700; margin-bottom: 2px; }
.matches-sub { font-size: 13px; color: var(--text-muted); }
.matches-live-badge { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--text-muted); background: var(--dark3); border: 1px solid var(--border); padding: 7px 13px; border-radius: 100px; white-space: nowrap; }
.matches-refresh-btn { cursor: pointer; font-family: var(--font-body); transition: background 0.15s, border-color 0.15s, color 0.15s; }
.matches-refresh-btn:hover { background: #252525; border-color: var(--border-light); color: var(--text); }
.matches-refresh-btn.loading { pointer-events: none; opacity: 0.75; }
.refresh-icon { width: 13px; height: 13px; border: 2px solid rgba(29,158,117,0.35); border-top-color: var(--green); border-radius: 50%; display: inline-block; position: relative; flex-shrink: 0; }
.refresh-icon::after { content: ''; position: absolute; right: -3px; top: -1px; width: 0; height: 0; border-left: 4px solid var(--green); border-top: 3px solid transparent; border-bottom: 3px solid transparent; transform: rotate(35deg); }
.matches-refresh-btn.loading .refresh-icon { animation: spin 0.9s linear infinite; }
.live-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); animation: pulse 1.5s ease-in-out infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.3; } }

/* Match cards */
.matches-list { display: flex; flex-direction: column; gap: 8px; }
.match-card { background: var(--dark2); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 16px 20px; display: grid; grid-template-columns: 100px 1fr auto; align-items: center; gap: 20px; transition: border-color 0.15s; }
.match-card:hover { border-color: var(--border-light); }
.match-card.no-credits { opacity: 0.5; }
.match-map { font-family: var(--font-display); font-size: 20px; font-weight: 700; }
.match-date { font-size: 12px; color: var(--text-dim); margin-top: 2px; }
.match-mid { display: flex; flex-direction: column; gap: 6px; }
.match-score-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.match-result { font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 100px; }
.match-result.win { background: rgba(29,158,117,0.12); color: var(--green); border: 1px solid rgba(29,158,117,0.2); }
.match-result.loss { background: rgba(226,75,74,0.1); color: #e24b4a; border: 1px solid rgba(226,75,74,0.2); }
.match-mode { font-size: 12px; color: var(--text-dim); }
.match-stats { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.stat-item { font-size: 13px; color: var(--text-muted); }
.stat-item strong { color: var(--text); }
.stat-sep { color: var(--text-dim); }
.stat-item.kd strong { color: var(--text); }
.stat-item.kd.good strong { color: var(--green); }
.stat-item.kd.bad strong { color: #e24b4a; }

.btn-redeem { display: flex; align-items: center; gap: 6px; font-family: var(--font-display); font-size: 15px; font-weight: 700; padding: 10px 18px; background: var(--green); color: #fff; border: none; border-radius: var(--radius); cursor: pointer; white-space: nowrap; transition: opacity 0.15s; }
.btn-redeem:hover { opacity: 0.85; }
.no-credits-msg { font-size: 12px; color: var(--text-dim); text-align: center; line-height: 1.5; }
.no-credits-msg a { color: var(--green); text-decoration: none; }

/* Ready clips */
.ready-section { margin-bottom: 40px; }
.ready-list { display: flex; flex-direction: column; gap: 10px; }

/* Feed placeholder */
.feed-section { margin-top: 28px; padding-top: 4px; }
.feed-card { display: flex; align-items: center; justify-content: space-between; gap: 18px; background: var(--dark2); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 22px 24px; }
.feed-card h2 { font-family: var(--font-display); font-size: 24px; font-weight: 800; margin-bottom: 4px; }
.feed-card p { color: var(--text-muted); font-size: 14px; }
.feed-pill { display: inline-flex; align-items: center; justify-content: center; white-space: nowrap; border-radius: 999px; border: 1px solid rgba(29,158,117,0.32); color: var(--green); background: rgba(29,158,117,0.10); padding: 6px 12px; font-size: 12px; font-weight: 700; }
.ready-card { background: var(--dark2); border: 1px solid rgba(29,158,117,0.25); border-radius: var(--radius-lg); padding: 16px 20px; display: flex; align-items: center; gap: 16px; }
.ready-thumb { width: 44px; height: 78px; background: var(--dark3); border-radius: 6px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.play-btn-circle { width: 28px; height: 28px; border-radius: 50%; background: rgba(29,158,117,0.8); display: flex; align-items: center; justify-content: center; }
.ready-info { flex: 1; }
.ready-title { font-family: var(--font-display); font-size: 17px; font-weight: 700; margin-bottom: 4px; }
.ready-meta { font-size: 13px; color: var(--text-muted); }

/* ============================================================
   MODALS
   ============================================================ */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.82); display: flex; align-items: center; justify-content: center; z-index: 200; padding: 24px; opacity: 0; pointer-events: none; transition: opacity 0.2s; }
.modal-overlay.open { opacity: 1; pointer-events: all; }
.modal { background: var(--dark2); border: 1px solid var(--border-light); border-radius: var(--radius-lg); width: 100%; max-width: 540px; max-height: 85vh; overflow-y: auto; padding: 28px; }
.modal.modal-wide { max-width: 640px; }
.modal.modal-center { text-align: center; }
.modal-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.modal-header h3 { font-family: var(--font-display); font-size: 22px; font-weight: 700; }
.modal-close { background: transparent; border: 1px solid var(--border); color: var(--text-muted); width: 32px; height: 32px; border-radius: 50%; cursor: pointer; font-size: 14px; display: flex; align-items: center; justify-content: center; transition: background 0.15s; flex-shrink: 0; }
.modal-close:hover { background: var(--dark3); }
.modal-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 20px; }

/* Redeem modal */
.redeem-match-card { display: flex; align-items: center; gap: 12px; background: var(--dark3); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 16px; margin-bottom: 16px; font-size: 14px; color: var(--text-muted); flex-wrap: wrap; }
.redeem-date { color: var(--text-dim); margin-left: auto; font-size: 12px; }
.redeem-desc { font-size: 14px; color: var(--text-muted); line-height: 1.6; }
.redeem-desc strong { color: var(--text); }

/* Scanning modal */
.scanning-anim { width: 72px; height: 72px; position: relative; margin: 0 auto 20px; display: flex; align-items: center; justify-content: center; }
.scanning-ring { position: absolute; inset: 0; border-radius: 50%; border: 2px solid transparent; border-top-color: var(--green); animation: spin 1s linear infinite; }
.scanning-icon { font-size: 28px; }
.scanning-title { font-family: var(--font-display); font-size: 22px; font-weight: 700; margin-bottom: 8px; }
.scanning-sub { font-size: 14px; color: var(--text-muted); margin-bottom: 20px; min-height: 40px; }
.scanning-progress { background: var(--dark3); border-radius: 100px; height: 4px; overflow: hidden; }
.scanning-bar { height: 100%; background: var(--green); border-radius: 100px; width: 0; transition: width 0.3s ease; }

/* Demo download instructions panel (shown when waiting_for_demo) */
.demo-needed { display: none; margin-top: 24px; padding: 20px; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.1); border-radius: 10px; text-align: center; }
.demo-needed .demo-needed-hint { font-size: 14px; color: var(--text-muted); margin: 0 0 16px; line-height: 1.6; }
.demo-needed .demo-needed-sub { font-size: 13px; color: var(--text-dim, #666); margin: 14px 0 0; line-height: 1.5; }
.demo-needed .demo-needed-auto { font-size: 12px; color: var(--text-dim, #666); margin: 8px 0 0; opacity: 0.65; }

/* Plays modal */
.plays-desc { font-size: 14px; color: var(--text-muted); margin-bottom: 16px; }
.plays-list { display: flex; flex-direction: column; gap: 8px; }
.play-row { display: flex; align-items: center; gap: 14px; background: var(--dark3); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; cursor: pointer; transition: border-color 0.15s, background 0.15s; }
.play-row:hover { border-color: var(--border-light); background: #2a2a2a; }
.play-type-badge { font-family: var(--font-display); font-size: 13px; font-weight: 700; letter-spacing: 0.06em; padding: 4px 12px; border-radius: 100px; border: 1px solid transparent; white-space: nowrap; }
.play-info { flex: 1; }
.play-title { font-family: var(--font-display); font-size: 17px; font-weight: 700; margin-bottom: 3px; }
.play-meta { font-size: 12px; color: var(--text-muted); }
.play-select-arrow { color: var(--text-dim); font-size: 18px; }

/* Format choice modal */
.format-choice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.format-choice { background: var(--dark3); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px 20px; cursor: pointer; transition: border-color 0.15s; }
.format-choice:hover { border-color: var(--border-light); }
.format-choice.featured { border-color: rgba(29,158,117,0.3); }
.format-choice.featured:hover { border-color: rgba(29,158,117,0.6); }
.format-choice-tag { display: inline-block; font-family: var(--font-display); font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; padding: 4px 12px; border-radius: 100px; margin-bottom: 12px; }
.format-choice-tag.clean { background: rgba(255,255,255,0.06); color: var(--text-muted); }
.format-choice-tag.viral { background: rgba(29,158,117,0.15); color: var(--green); }
.format-choice p { font-size: 13px; color: var(--text-muted); line-height: 1.5; margin-bottom: 16px; }
.format-choose-btn { font-size: 13px; font-weight: 600; color: var(--text); }

/* Queued modal */
.queued-icon { width: 60px; height: 60px; border-radius: 50%; background: rgba(29,158,117,0.15); border: 1px solid rgba(29,158,117,0.3); display: flex; align-items: center; justify-content: center; font-size: 24px; color: var(--green); margin: 0 auto 16px; }
.queued-title { font-family: var(--font-display); font-size: 24px; font-weight: 700; margin-bottom: 10px; }
.queued-sub { font-size: 14px; color: var(--text-muted); margin-bottom: 12px; }
.queued-eta { font-size: 13px; color: var(--green); background: rgba(29,158,117,0.08); border: 1px solid rgba(29,158,117,0.15); padding: 6px 16px; border-radius: 100px; display: inline-block; margin-bottom: 20px; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 700px) {
  .steps-grid { grid-template-columns: 1fr 1fr; }
  .formats-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .match-card { grid-template-columns: 1fr; gap: 12px; }
  .format-choice-grid { grid-template-columns: 1fr; }
  .credits-bar { flex-wrap: wrap; gap: 12px; }
  .btn-upgrade { margin-left: 0; }
  .auth-card { padding: 28px 20px; }
}


@media (max-width: 720px) {
  .app-nav .nav-inner { height: auto; min-height: 60px; grid-template-columns: 1fr auto; grid-template-areas: "logo profile" "tabs tabs"; padding-top: 10px; padding-bottom: 10px; row-gap: 10px; }
  .app-nav .logo { grid-area: logo; }
  .app-nav .nav-right { grid-area: profile; }
  .app-nav .dash-top-tabs { grid-area: tabs; justify-content: flex-start; overflow-x: auto; padding-bottom: 2px; }
  .app-nav .dash-top-tab { min-width: 92px; flex: 0 0 auto; }
  .feed-card { align-items: flex-start; flex-direction: column; }
}


/* ============================================================
   PROFESSIONAL DASHBOARD PAGES PATCH
   Real top-level pages: Matches / My Videos / Feed
   ============================================================ */
.app-nav .nav-inner { max-width: 1120px; height: 64px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 22px; justify-content: normal; }
.dash-top-tabs {
  justify-content: center;
  gap: 3px;
  width: fit-content;
  justify-self: center;
  padding: 4px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.035);
  border-radius: 14px;
}
.dash-top-tab {
  min-width: 112px;
  height: 38px;
  padding: 0 18px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: rgba(240,240,240,0.52);
  letter-spacing: 0.075em;
  font-size: 12px;
  box-shadow: none;
}
.dash-top-tab:hover { background: rgba(255,255,255,0.06); color: #fff; border-color: transparent; }
.dash-top-tab.active {
  background: #f2f5f2;
  color: #0a0a0a;
  border-color: transparent;
  box-shadow: 0 8px 24px rgba(0,0,0,0.22);
}
.dashboard-container { max-width: 980px; }
.page-hero { margin: 32px 0 24px; }
.page-kicker {
  color: var(--green);
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.13em;
  margin-bottom: 10px;
}
.page-title-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.page-title-row h1 {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 58px);
  line-height: 0.95;
  font-weight: 800;
  letter-spacing: -0.015em;
  margin: 0 0 10px;
}
.page-title-row p { color: var(--text-muted); max-width: 560px; font-size: 15px; line-height: 1.55; }
.page-action { flex: 0 0 auto; height: 42px; }
.matches-header { align-items: flex-end; }
.videos-page-section { display: block; margin-top: 14px; }
.empty-videos-card {
  width: 100%;
  min-height: 260px;
  border: 1px dashed rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.025);
  border-radius: var(--radius-lg);
  padding: 40px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 12px;
  text-align: center;
}
.empty-videos-icon {
  width: 54px;
  height: 54px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(29,158,117,0.12);
  color: var(--green);
  font-size: 20px;
}
.empty-videos-card h3 { font-family: var(--font-display); font-size: 24px; line-height: 1; }
.empty-videos-card p { color: var(--text-muted); max-width: 430px; font-size: 14px; }
.ready-status.error { color: #ff7373; }

/* MY VIDEOS */
.video-group { margin-bottom: 26px; }
.video-group-title { font-family: var(--font-display); font-size: 18px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--text); margin-bottom: 12px; }
.video-card-list { display: grid; gap: 12px; }
.video-card { display: grid; grid-template-columns: 88px 1fr; gap: 16px; align-items: stretch; background: var(--dark2); border: 1px solid var(--border); border-radius: 8px; padding: 14px; }
.video-card.ready { border-color: rgba(29,158,117,0.24); }
.video-card.error { border-color: rgba(255,115,115,0.22); }
.video-thumb { position: relative; width: 88px; aspect-ratio: 9 / 16; border: 1px solid var(--border); border-radius: 6px; background: linear-gradient(180deg, #222831, #111418); display: flex; align-items: center; justify-content: center; color: var(--text); cursor: pointer; overflow: hidden; padding: 0; }
.video-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.video-card.rendering .video-thumb { cursor: default; }
.video-thumb-icon { position: relative; z-index: 1; width: 34px; height: 34px; border-radius: 50%; background: rgba(29,158,117,0.82); display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 700; box-shadow: 0 8px 22px rgba(0,0,0,0.35); }
.video-thumb-icon.play-icon-css::before { content: ''; display: block; width: 0; height: 0; border-top: 7px solid transparent; border-bottom: 7px solid transparent; border-left: 11px solid #fff; margin-left: 3px; }
.video-card.error .video-thumb-icon { background: rgba(255,115,115,0.16); color: #ff9a9a; }
.video-card.rendering .video-thumb-icon::after { content: ''; width: 22px; height: 22px; border: 2px solid rgba(255,255,255,0.16); border-top-color: var(--green); border-radius: 50%; animation: spin 0.8s linear infinite; }
.video-card-main { min-width: 0; display: flex; flex-direction: column; gap: 12px; justify-content: center; }
.video-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.video-card h3 { font-family: var(--font-display); font-size: 21px; line-height: 1.1; margin: 0 0 6px; overflow-wrap: anywhere; }
.video-card p { color: var(--text-muted); font-size: 14px; margin: 0; }
.video-status { flex-shrink: 0; border-radius: 999px; padding: 5px 10px; font-size: 12px; font-weight: 700; border: 1px solid var(--border); color: var(--text-muted); }
.video-status.ready { color: var(--green); border-color: rgba(29,158,117,0.34); background: rgba(29,158,117,0.08); }
.video-status.rendering { color: #d6a21d; border-color: rgba(214,162,29,0.32); background: rgba(214,162,29,0.08); }
.video-status.error { color: #ff9a9a; border-color: rgba(255,115,115,0.28); background: rgba(255,115,115,0.08); }
.video-card-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.video-btn { display: inline-flex; align-items: center; justify-content: center; min-width: 108px; height: 38px; border-radius: 7px; font-family: var(--font-display); font-size: 14px; font-weight: 700; letter-spacing: 0.03em; cursor: pointer; }
.video-btn.primary { border: 1px solid rgba(29,158,117,0.55); background: var(--green); color: #fff; }
.video-btn.secondary { border: 1px solid var(--border-light); background: transparent; color: var(--text); }
.video-btn.disabled { border: 1px solid var(--border); background: var(--dark3); color: var(--text-muted); cursor: default; }
.video-details { margin: 2px 0 0; padding: 10px; border: 1px solid var(--border); border-radius: 6px; background: var(--dark3); color: var(--text-muted); font-size: 12px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
.preview-modal { width: fit-content; max-width: 96vw; max-height: 94vh; overflow: visible; padding: 22px 22px 14px; background: #11151b; box-shadow: 0 28px 80px rgba(0,0,0,0.58); }
.preview-modal .modal-header { align-items: flex-start; gap: 18px; margin-bottom: 14px; }
.preview-modal .modal-header h3 { font-size: 24px; line-height: 1.05; margin: 0; }
.preview-subtitle { color: var(--text-muted); font-size: 14px; margin: 7px 0 0; }
.preview-close { border-radius: 999px; font-family: Arial, sans-serif; font-weight: 700; line-height: 1; }
.preview-video-shell { position: relative; width: min(92vw, 520px); max-width: min(92vw, 960px); max-height: 78vh; margin: 0 auto; background: #000; border: 1px solid var(--border); border-radius: 8px; display: flex; align-items: center; justify-content: center; }
.preview-video-shell.horizontal { max-width: min(92vw, 960px); }
.preview-video-shell.vertical { max-width: min(92vw, 520px); }
.preview-video-shell video { width: 100%; height: 100%; max-width: 100%; max-height: 78vh; object-fit: contain; background: #000; display: block; border-radius: 8px; }
.preview-error { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--text-muted); background: rgba(5,6,8,0.88); font-size: 14px; text-align: center; padding: 20px; }
.preview-modal-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 8px; padding-bottom: 0; }

@media (max-width: 640px) {
  .video-card { grid-template-columns: 68px 1fr; padding: 12px; gap: 12px; }
  .video-thumb { width: 68px; }
  .video-card-top { flex-direction: column; gap: 8px; }
  .video-btn { min-width: 96px; }
  .preview-modal-actions { flex-direction: column; }
}
.error-text { color: #ff7373 !important; }
.feed-page-grid { display: grid; grid-template-columns: 1.1fr 1fr 1fr; gap: 16px; margin-top: 22px; }
.feed-feature-card {
  min-height: 230px;
  border: 1px solid rgba(29,158,117,0.22);
  background: linear-gradient(180deg, rgba(29,158,117,0.10), rgba(255,255,255,0.025));
  border-radius: var(--radius-lg);
  padding: 24px;
}
.feed-feature-card.muted { border-color: var(--border); background: rgba(255,255,255,0.025); }
.feed-feature-icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: rgba(29,158,117,0.14);
  color: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  margin-bottom: 18px;
}
.feed-feature-card h2 { font-family: var(--font-display); font-size: 24px; line-height: 1; margin-bottom: 10px; }
.feed-feature-card p { color: var(--text-muted); font-size: 14px; line-height: 1.55; }
.feed-pill {
  align-self: flex-start;
  background: rgba(29,158,117,0.12);
  border: 1px solid rgba(29,158,117,0.28);
  color: var(--green);
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: 0.08em;
  font-size: 12px;
  padding: 8px 13px;
  text-transform: uppercase;
}
@media (max-width: 760px) {
  .app-nav .nav-inner { grid-template-columns: 1fr auto; height: auto; padding-top: 12px; padding-bottom: 12px; }
  .dash-top-tabs { grid-column: 1 / -1; justify-self: stretch; overflow-x: auto; width: 100%; }
  .dash-top-tab { flex: 1; min-width: 94px; }
  .page-title-row { flex-direction: column; align-items: flex-start; }
  .page-action { width: 100%; justify-content: center; }
  .feed-page-grid { grid-template-columns: 1fr; }
}


/* Matches pagination */
.matches-load-more-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
}
.matches-load-more-btn {
  min-width: 210px;
  justify-content: center;
}
.matches-load-more-btn.loading {
  pointer-events: none;
  opacity: 0.72;
}
.matches-count-hint {
  color: var(--text-dim);
  font-size: 12px;
}

@media (max-width: 560px) {
  .btn-primary.hero-main-cta { min-width: 100%; min-height: 58px; padding: 0 24px; font-size: 22px; }
  .btn-primary.hero-main-cta svg { width: 20px; height: 20px; }
  .hero-secondary-cta { width: 100%; }
}

/* ============================================================
   INDEX HERO SIDE VIDEO PREVIEWS
   Keeps the current CS2.VIDEO palette; only adds the favicon link in HTML.
   ============================================================ */
.hero-with-videos {
  padding: 84px 0 76px;
}
.hero-shell {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100vw - 48px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(150px, 210px) minmax(420px, 1fr) minmax(150px, 210px);
  align-items: center;
  gap: clamp(18px, 3vw, 42px);
}
.hero-content {
  text-align: center;
  min-width: 0;
}
.hero-video-card {
  align-self: center;
  justify-self: center;
  width: min(100%, 210px);
  display: flex;
  flex-direction: column;
  align-items: center;
  opacity: 0.96;
}
.hero-video-card-left {
  transform: none;
}
.hero-video-card-right {
  transform: none;
}
.hero-video-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 10px;
  padding: 6px 10px;
  border: 1px solid rgba(29,158,117,0.28);
  background: rgba(29,158,117,0.09);
  color: var(--text);
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}
.hero-video-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 18px rgba(29,158,117,0.8);
}
.hero-phone-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 16;
  overflow: hidden;
  border-radius: 18px;
  background: #050505;
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow:
    0 24px 60px rgba(0,0,0,0.42),
    0 0 0 1px rgba(29,158,117,0.06),
    inset 0 1px 0 rgba(255,255,255,0.08);
}
.hero-phone-frame::before {
  content: '';
  position: absolute;
  inset: 8px 34% auto;
  height: 4px;
  border-radius: 999px;
  background: rgba(255,255,255,0.16);
  z-index: 2;
}
.hero-phone-frame video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #000;
}

.hero-sound-toggle {
  position: absolute;
  right: 9px;
  bottom: 9px;
  z-index: 3;
  width: 24px;
  height: 24px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: rgba(0,0,0,0.38);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0.94;
  backdrop-filter: blur(6px);
  transition: opacity 0.15s ease, background 0.15s ease, transform 0.12s ease;
}
.hero-sound-toggle:hover {
  opacity: 1;
  background: rgba(0,0,0,0.58);
}
.hero-sound-toggle:active {
  transform: scale(0.94);
}
.sound-icon {
  width: 16px;
  height: 16px;
  color: #fff;
  display: block;
  overflow: visible;
}
.sound-speaker {
  fill: currentColor;
}
.sound-line {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.35;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.sound-icon-on {
  display: none;
}
.hero-sound-toggle[aria-pressed="true"] .sound-icon-muted {
  display: none;
}
.hero-sound-toggle[aria-pressed="true"] .sound-icon-on {
  display: block;
}
.hero-video-caption {
  margin-top: 10px;
  max-width: 190px;
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.35;
  text-align: center;
}

@media (max-width: 980px) {
  .hero-shell {
    grid-template-columns: 1fr;
    width: min(720px, calc(100vw - 40px));
  }
  .hero-content {
    order: 1;
  }
  .hero-video-card {
    width: min(42vw, 180px);
  }
  .hero-video-card-left,
  .hero-video-card-right {
    transform: none;
  }
  .hero-video-card-left {
    order: 2;
    justify-self: start;
    margin-left: 8%;
    margin-top: 28px;
  }
  .hero-video-card-right {
    order: 3;
    justify-self: end;
    margin-right: 8%;
    margin-top: -54%;
  }
}

@media (max-width: 620px) {
  .hero-with-videos {
    padding: 72px 0 62px;
  }
  .hero-shell {
    width: min(100%, calc(100vw - 32px));
  }
  .hero-video-card {
    width: min(46vw, 150px);
  }
  .hero-video-caption {
    display: none;
  }
  .hero-video-card-left {
    margin-left: 0;
    margin-top: 24px;
  }
  .hero-video-card-right {
    margin-right: 0;
    margin-top: -50%;
  }
}

