/* ============================================================
   BBCFlash – High-Conversion Streaming Platform
   Dark luxury + gold accent aesthetic
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Space+Grotesk:wght@700&display=swap');

:root {
  --bg: #060608;
  --surface: #0c0c10;
  --surface-2: #12121a;
  --surface-3: #1a1a26;
  --border: rgba(255,255,255,0.06);
  --border-hover: rgba(255,255,255,0.12);
  --text: #f0f0f5;
  --text-muted: #8a8a9a;
  --text-dim: #5a5a6a;
  --gold: #f0c000;
  --gold-light: #ffd84d;
  --gold-dark: #c49b00;
  --gold-glow: rgba(240,192,0,0.15);
  --red: #ff3b5c;
  --green: #00d67e;
  --radius: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --container: 1280px;
  --header-h: 64px;
  --transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: var(--gold); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--gold-light); }
img { display: block; max-width: 100%; }
h1, h2, h3, h4 { font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 800; line-height: 1.2; color: var(--text); }
h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
h2 { font-size: clamp(1.4rem, 3vw, 1.8rem); }
h3 { font-size: 1.1rem; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px;
  border-radius: var(--radius);
  font-family: inherit; font-weight: 700; font-size: 14px;
  border: none; cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary, .btn.gold {
  background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 50%, var(--gold-dark) 100%);
  color: #000;
  box-shadow: 0 0 20px var(--gold-glow), 0 4px 12px rgba(0,0,0,0.3);
}
.btn-primary:hover, .btn.gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(240,192,0,0.3), 0 8px 24px rgba(0,0,0,0.4);
}

.btn-secondary {
  background: var(--surface-2);
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-secondary:hover {
  background: var(--surface-3);
  border-color: var(--border-hover);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }

.btn-sm { padding: 8px 14px; font-size: 13px; }
.btn-lg { padding: 16px 32px; font-size: 16px; }
.btn-block { width: 100%; }

/* pulse animation for main CTA */
@keyframes ctaPulse {
  0%, 100% { box-shadow: 0 0 20px var(--gold-glow), 0 4px 12px rgba(0,0,0,0.3); }
  50% { box-shadow: 0 0 40px rgba(240,192,0,0.25), 0 4px 12px rgba(0,0,0,0.3); }
}
.btn-cta {
  animation: ctaPulse 3s ease-in-out infinite;
}
.btn-cta:hover { animation: none; }

/* ============================================================
   LAYOUT
   ============================================================ */
.container { max-width: var(--container); margin: 0 auto; padding: 0 20px; }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(6,6,8,0.85);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border-bottom: 1px solid var(--border);
  height: var(--header-h);
}

.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: var(--header-h);
  max-width: var(--container); margin: 0 auto; padding: 0 20px;
}

.brand {
  display: flex; align-items: center; gap: 10px;
  color: var(--text); text-decoration: none; font-weight: 800;
  font-size: 18px; letter-spacing: -0.02em;
}
.brand img { height: 32px; }
.brand span { background: linear-gradient(135deg, #fff 30%, var(--gold)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

.menu {
  display: flex; align-items: center; gap: 6px;
}
.menu a, .menu button {
  color: var(--text-muted); background: none; border: none;
  text-decoration: none; cursor: pointer;
  font-family: inherit; font-size: 14px; font-weight: 600;
  padding: 8px 14px; border-radius: 10px;
  transition: all var(--transition);
}
.menu a:hover, .menu button:hover {
  color: var(--text); background: var(--surface-2);
}
.menu .btn-primary { color: #000; }
.menu .btn-primary:hover { color: #000; background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 100%); }

.btn-link { padding: 0; background: none; border: none; color: var(--text-muted); cursor: pointer; font-family: inherit; font-size: 14px; font-weight: 600; }
.btn-link:hover { color: var(--text); }

/* ============================================================
   FLASH MESSAGES
   ============================================================ */
.flash {
  padding: 14px 18px;
  border-radius: var(--radius);
  margin: 16px 0;
  font-size: 14px; font-weight: 600;
  display: flex; align-items: center; gap: 10px;
  animation: slideDown 0.3s ease;
}
.flash.success {
  background: rgba(0,214,126,0.08);
  border: 1px solid rgba(0,214,126,0.2);
  color: var(--green);
}
.flash.error {
  background: rgba(255,59,92,0.08);
  border: 1px solid rgba(255,59,92,0.2);
  color: var(--red);
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; flex-wrap: wrap;
  padding: 40px 0 24px;
}
.hero-content { max-width: 680px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}
.eyebrow::before {
  content: '';
  width: 20px; height: 2px;
  background: var(--gold);
  border-radius: 2px;
}

.hero h1 { margin-bottom: 10px; }
.hero .muted { color: var(--text-muted); font-size: 16px; line-height: 1.6; max-width: 540px; }

/* ============================================================
   SECTION HEADINGS
   ============================================================ */
.section {
  margin: 32px 0 40px;
}

.section-header {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
  margin-bottom: 20px;
}
.section-header h2 { margin: 0; }
.section-header .muted { color: var(--text-muted); font-size: 14px; margin-top: 2px; }

/* ============================================================
   VIDEO GRID
   ============================================================ */
.grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
}

@media (min-width: 1100px) { .grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 768px) and (max-width: 1099px) { .grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 767px) { .grid { grid-template-columns: repeat(2, 1fr); gap: 12px; } }
@media (max-width: 420px) { .grid { grid-template-columns: 1fr; } }

/* ============================================================
   VIDEO CARDS
   ============================================================ */
.video-card {
  display: block;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-decoration: none;
  color: var(--text);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}
.video-card:hover {
  transform: translateY(-4px);
  border-color: rgba(240,192,0,0.2);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 0 40px var(--gold-glow);
}

.video-card .thumb {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: #000;
}
.video-card .thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.video-card:hover .thumb img {
  transform: scale(1.05);
}

/* Hover preview video */
.hover-preview {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
}
.video-card:hover .hover-preview[style*="display: block"] {
  opacity: 1;
}

.video-card .card-body {
  padding: 12px 14px 14px;
}

.video-card .title {
  font-size: 14px; font-weight: 700; line-height: 1.3;
  color: var(--text);
  margin: 0 0 4px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

.video-card .meta {
  font-size: 12px; color: var(--text-dim);
}

/* premium badge on card */
.badge-premium {
  position: absolute; top: 10px; left: 10px;
  background: linear-gradient(135deg, var(--gold-light), var(--gold-dark));
  color: #000;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px; font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
  z-index: 2;
}

/* locked premium overlay */
.video-card.locked .thumb img {
  filter: blur(12px) brightness(0.4);
  transform: scale(1.1);
}
.video-card.locked:hover .thumb img {
  filter: blur(14px) brightness(0.35);
  transform: scale(1.15);
}

.locked-overlay {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center;
  padding: 20px;
  z-index: 3;
  background: radial-gradient(ellipse at center, rgba(0,0,0,0.2), rgba(0,0,0,0.6));
}
.locked-overlay .lock-icon {
  width: 44px; height: 44px;
  background: rgba(0,0,0,0.5);
  border: 2px solid var(--gold);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 10px;
  font-size: 18px;
}
.locked-overlay .lock-text {
  font-size: 12px; font-weight: 700;
  color: rgba(255,255,255,0.9);
  margin-bottom: 8px;
}
.locked-overlay .btn {
  font-size: 12px;
  padding: 8px 16px;
}

/* free tag */
.badge-free {
  position: absolute; top: 10px; left: 10px;
  background: rgba(0,214,126,0.15);
  border: 1px solid rgba(0,214,126,0.3);
  color: var(--green);
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px; font-weight: 700;
  text-transform: uppercase;
  z-index: 2;
}

/* ============================================================
   CARDS / PANELS
   ============================================================ */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
}

/* ============================================================
   FORMS
   ============================================================ */
.field, .textarea, select {
  width: 100%;
  padding: 14px 16px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text);
  font-family: inherit; font-size: 14px;
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}
.field:focus, .textarea:focus, select:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-glow);
}
.textarea { min-height: 120px; resize: vertical; }
select { cursor: pointer; }

.field::placeholder, .textarea::placeholder { color: var(--text-dim); }

label .small, .label-text {
  display: block;
  font-size: 13px; font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 6px;
}

/* ============================================================
   SUBSCRIPTION / PRICING
   ============================================================ */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 12px;
}

.plan-card {
  position: relative;
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px 16px;
  background: var(--surface-2);
  cursor: pointer;
  transition: all var(--transition);
}
.plan-card:hover {
  border-color: var(--border-hover);
  background: var(--surface-3);
}
.plan-card.selected, .plan-card:has(input:checked) {
  border-color: var(--gold);
  background: rgba(240,192,0,0.04);
  box-shadow: 0 0 20px var(--gold-glow);
}
.plan-card input[type="radio"] {
  position: absolute;
  opacity: 0; width: 0; height: 0;
}
.plan-card .plan-name {
  font-weight: 800; font-size: 16px;
  color: var(--text);
}
.plan-card .plan-duration {
  font-size: 13px; color: var(--text-muted);
  margin-top: 2px;
}
.plan-card .plan-price {
  font-size: 24px; font-weight: 800;
  color: var(--gold);
  margin-top: 10px;
}
.plan-card .plan-price span {
  font-size: 14px; color: var(--text-muted); font-weight: 600;
}

/* popular badge */
.plan-card .popular-tag {
  position: absolute; top: -10px; right: 12px;
  background: var(--gold);
  color: #000;
  font-size: 10px; font-weight: 800;
  padding: 3px 10px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ============================================================
   SPLIT LAYOUT
   ============================================================ */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
}

/* ============================================================
   SUPPORT / TICKET SYSTEM
   ============================================================ */
.support-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
}

.ticket-thread {
  display: flex; flex-direction: column; gap: 14px;
  max-height: 520px; overflow-y: auto;
  padding-right: 8px;
  scrollbar-width: thin;
  scrollbar-color: var(--surface-3) transparent;
}

.message-bubble {
  max-width: 80%;
  padding: 14px 18px;
  border-radius: 18px;
  position: relative;
  animation: fadeInUp 0.2s ease;
}
.message-bubble.user {
  margin-left: auto;
  background: linear-gradient(135deg, rgba(240,192,0,0.08), rgba(240,192,0,0.03));
  border: 1px solid rgba(240,192,0,0.15);
  border-bottom-right-radius: 6px;
}
.message-bubble.admin {
  margin-right: auto;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-bottom-left-radius: 6px;
}
.message-meta {
  font-size: 12px; color: var(--text-dim); margin-bottom: 6px;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   BADGES
   ============================================================ */
.badge {
  display: inline-flex; align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px; font-weight: 700;
}
.badge { background: var(--surface-3); color: var(--text-muted); border: 1px solid var(--border); }
.badge.open { background: rgba(240,192,0,0.1); color: var(--gold); border-color: rgba(240,192,0,0.2); }
.badge.completed { background: rgba(0,214,126,0.1); color: var(--green); border-color: rgba(0,214,126,0.2); }
.badge.closed { background: var(--surface-2); color: var(--text-dim); }

/* ============================================================
   TABLES
   ============================================================ */
table { width: 100%; border-collapse: collapse; }
th {
  text-align: left;
  padding: 12px 14px;
  font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--text-dim);
  border-bottom: 1px solid var(--border);
}
td {
  padding: 14px;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}
tr:hover td { background: rgba(255,255,255,0.02); }
td a { color: var(--gold); font-weight: 600; }

/* ============================================================
   CATEGORY CARDS
   ============================================================ */
.category-card {
  display: block;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  text-decoration: none; color: var(--text);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}
.category-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), transparent);
  opacity: 0;
  transition: opacity var(--transition);
}
.category-card:hover {
  border-color: rgba(240,192,0,0.2);
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}
.category-card:hover::before { opacity: 1; }
.category-card h3 { margin: 0 0 8px; color: var(--text); }
.category-card .stats { font-size: 13px; color: var(--text-muted); }
.category-card .stats strong { color: var(--gold); }

/* ============================================================
   AUTH PAGES
   ============================================================ */
.auth-wrapper {
  max-width: 440px;
  margin: 60px auto;
}
.auth-wrapper .card { text-align: center; }
.auth-wrapper h1 { margin-bottom: 6px; }
.auth-wrapper .auth-sub { color: var(--text-muted); margin-bottom: 24px; font-size: 15px; }
.auth-wrapper form { display: grid; gap: 14px; text-align: left; }

/* ============================================================
   ACCOUNT PAGE
   ============================================================ */
.account-card { max-width: 600px; }
.account-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.account-row:last-child { border-bottom: none; }
.account-label { font-size: 13px; color: var(--text-muted); font-weight: 600; }
.account-value { font-size: 15px; font-weight: 700; }
.premium-active { color: var(--green); }
.premium-inactive { color: var(--text-dim); }

/* ============================================================
   ADMIN LAYOUT
   ============================================================ */
.admin-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.admin-nav { display: flex; gap: 8px; flex-wrap: wrap; }

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}
.metric-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  text-align: center;
}
.metric-card .metric-value {
  font-size: 32px; font-weight: 800;
  color: var(--gold);
  margin-bottom: 4px;
}
.metric-card .metric-label {
  font-size: 13px; font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ============================================================
   ROW HELPERS
   ============================================================ */
.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.muted { color: var(--text-muted); }
.small { font-size: 13px; }
.top-cta { font-weight: 700; }

/* ============================================================
   COUNTDOWN / URGENCY BAR
   ============================================================ */
.urgency-bar {
  background: linear-gradient(90deg, rgba(240,192,0,0.12), rgba(255,59,92,0.08));
  border-bottom: 1px solid rgba(240,192,0,0.15);
  padding: 10px 20px;
  text-align: center;
  font-size: 13px; font-weight: 700;
  color: var(--gold);
}
.urgency-bar strong { color: var(--red); }

/* ============================================================
   CTA BANNER (used on home page)
   ============================================================ */
.cta-banner {
  background: linear-gradient(135deg, var(--surface-2), var(--surface));
  border: 1px solid rgba(240,192,0,0.1);
  border-radius: var(--radius-xl);
  padding: 40px;
  text-align: center;
  margin: 40px 0;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: radial-gradient(circle at 30% 40%, var(--gold-glow), transparent 50%);
  pointer-events: none;
}
.cta-banner h2 { position: relative; margin-bottom: 10px; }
.cta-banner p { position: relative; color: var(--text-muted); margin-bottom: 20px; max-width: 480px; margin-left: auto; margin-right: auto; }
.cta-banner .btn { position: relative; }

/* ============================================================
   SOCIAL PROOF STRIP
   ============================================================ */
.proof-strip {
  display: flex; justify-content: center; gap: 40px; flex-wrap: wrap;
  padding: 16px 0;
  margin: 16px 0;
}
.proof-item {
  text-align: center;
}
.proof-item .proof-num {
  font-size: 28px; font-weight: 800; color: var(--gold);
}
.proof-item .proof-label {
  font-size: 12px; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.06em; font-weight: 700;
}

/* ============================================================
   EMPTY STATE
   ============================================================ */
.empty-state {
  text-align: center;
  padding: 48px 20px;
  color: var(--text-muted);
}
.empty-state p { margin-bottom: 16px; }

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.fade-in { animation: fadeIn 0.4s ease; }

/* stagger children */
.stagger > * {
  opacity: 0;
  animation: fadeInUp 0.4s ease forwards;
}
.stagger > *:nth-child(1) { animation-delay: 0.05s; }
.stagger > *:nth-child(2) { animation-delay: 0.1s; }
.stagger > *:nth-child(3) { animation-delay: 0.15s; }
.stagger > *:nth-child(4) { animation-delay: 0.2s; }
.stagger > *:nth-child(5) { animation-delay: 0.25s; }
.stagger > *:nth-child(6) { animation-delay: 0.3s; }
.stagger > *:nth-child(7) { animation-delay: 0.35s; }
.stagger > *:nth-child(8) { animation-delay: 0.4s; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
  .hero { padding: 24px 0 16px; }
  .hero h1 { font-size: 1.6rem; }
  .nav { padding: 0 14px; }
  .menu { gap: 4px; }
  .menu a, .menu button { padding: 6px 10px; font-size: 13px; }
  .card { padding: 18px; }
  .split { gap: 16px; }
  .proof-strip { gap: 24px; }
  .cta-banner { padding: 28px 20px; }
  .section { margin: 20px 0 28px; }
  table { font-size: 13px; }
  th, td { padding: 10px 8px; }
}

@media (max-width: 480px) {
  .menu .hide-mobile { display: none; }
  .pricing-grid { grid-template-columns: 1fr 1fr; }
}

/* ============================================================
   SCROLLBAR
   ============================================================ */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--surface-3); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-dim); }

/* ============================================================
   FOCUS
   ============================================================ */
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}
.testimonial-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: all 0.3s ease;
}
.testimonial-card:hover {
  border-color: rgba(240,192,0,0.15);
  transform: translateY(-2px);
}
.testimonial-stars {
  color: var(--gold);
  font-size: 18px;
  letter-spacing: 2px;
  margin-bottom: 12px;
}
.testimonial-text {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
  margin-bottom: 16px;
  font-style: italic;
}
.testimonial-author {
  display: flex; align-items: center; gap: 12px;
}
.testimonial-avatar {
  width: 40px; height: 40px;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: #000;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 16px;
}
.mini-testimonial {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
}

/* ============================================================
   COUNTDOWN TIMER
   ============================================================ */
.countdown-bar {
  background: linear-gradient(135deg, rgba(255,59,92,0.08), rgba(240,192,0,0.08));
  border: 1px solid rgba(255,59,92,0.15);
  border-radius: var(--radius-lg);
  padding: 16px 24px;
  margin-bottom: 24px;
}
.countdown-inner {
  display: flex; align-items: center; justify-content: center;
  gap: 16px; flex-wrap: wrap;
  font-size: 15px; font-weight: 700;
  color: var(--text);
}
.countdown-timer {
  display: flex; align-items: center; gap: 4px;
}
.cd-block {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px 14px;
  text-align: center;
  min-width: 60px;
}
.cd-block span {
  display: block;
  font-size: 24px; font-weight: 800;
  color: var(--red);
  font-variant-numeric: tabular-nums;
}
.cd-block small {
  font-size: 11px; color: var(--text-dim);
  text-transform: uppercase; letter-spacing: 0.05em;
}
.cd-sep {
  font-size: 24px; font-weight: 800; color: var(--text-dim);
}

/* ============================================================
   EMAIL CAPTURE POPUP
   ============================================================ */
.email-popup {
  position: fixed; inset: 0;
  z-index: 2000;
  display: flex; align-items: center; justify-content: center;
  animation: fadeIn 0.3s ease;
}
.email-popup-backdrop {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(4px);
}
.email-popup-box {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 36px;
  max-width: 460px; width: 90%;
  box-shadow: 0 40px 100px rgba(0,0,0,0.6), 0 0 60px var(--gold-glow);
  animation: popIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.email-popup-close {
  position: absolute; top: 14px; right: 14px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text-muted);
  width: 32px; height: 32px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 14px;
  transition: all var(--transition);
}
.email-popup-close:hover {
  background: var(--surface-3); color: var(--text);
}

@keyframes popIn {
  from { opacity: 0; transform: scale(0.9) translateY(20px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

/* ============================================================
   REFERRAL PAGE
   ============================================================ */
.referral-link-box {
  display: flex; gap: 10px; align-items: center;
}
.referral-link-box .field {
  flex: 1;
  background: var(--surface-2);
  font-family: monospace;
  font-size: 13px;
}

.referral-steps {
  display: grid; gap: 14px;
}
.ref-step {
  display: flex; align-items: flex-start; gap: 14px;
}
.ref-step-num {
  width: 36px; height: 36px;
  background: var(--gold-glow);
  border: 1px solid rgba(240,192,0,0.2);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 14px;
  color: var(--gold);
  flex-shrink: 0;
}

.referral-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.ref-stat {
  text-align: center;
  padding: 16px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.ref-stat-num {
  font-size: 28px; font-weight: 800; color: var(--text);
}
.ref-stat-label {
  font-size: 12px; color: var(--text-dim);
  text-transform: uppercase; letter-spacing: 0.06em;
  font-weight: 700; margin-top: 2px;
}

/* ============================================================
   TRUST SIGNALS
   ============================================================ */
.trust-signals {
  display: flex; justify-content: center;
  gap: 16px; flex-wrap: wrap;
  font-size: 13px; color: var(--text-muted); font-weight: 600;
}

/* ============================================================
   PLAN SAVINGS LINE
   ============================================================ */
.plan-savings {
  font-size: 12px;
  color: var(--green);
  font-weight: 700;
  margin-top: 4px;
}

/* ============================================================
   HEADER SEARCH BAR
   ============================================================ */
.header-search {
  display: flex; gap: 8px; align-items: center;
  flex: 0 1 380px;
}
.header-search input {
  flex: 1;
  height: 40px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  padding: 0 14px;
  font-family: inherit; font-size: 14px;
  outline: none;
  transition: border-color var(--transition);
}
.header-search input:focus { border-color: var(--gold); }

/* ============================================================
   SEARCH PAGE INLINE BAR
   ============================================================ */
.search-bar-inline { margin-bottom: 16px; }
.search-inline-form {
  display: flex; gap: 10px; align-items: center; flex-wrap: wrap;
}
.search-inline-form .field { flex: 1; min-width: 200px; }

.pagination {
  display: flex; gap: 12px; align-items: center; justify-content: center;
  margin: 24px 0;
}

/* ============================================================
   WATCH PAGE LAYOUT
   ============================================================ */
.watch-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 24px;
  margin-top: 16px;
}

.watch-player {
  position: relative;
  background: #000;
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.watch-player video {
  width: 100%;
  aspect-ratio: 16/9;
  display: block;
  background: #000;
}

.watch-locked {
  position: relative;
  aspect-ratio: 16/9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #000;
}
.watch-locked img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: blur(24px) brightness(0.25);
  transform: scale(1.1);
}
.watch-locked-overlay {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center; padding: 24px;
}

.watch-info {
  padding: 18px 0;
}
.watch-meta {
  display: flex; gap: 12px; align-items: center; flex-wrap: wrap;
  margin-top: 6px;
}

/* RELATED VIDEOS SIDEBAR */
.watch-sidebar {
  position: sticky; top: calc(var(--header-h) + 40px);
  align-self: start;
}

.related-list {
  display: flex; flex-direction: column; gap: 12px;
}
.related-card {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 12px;
  align-items: center;
  text-decoration: none; color: var(--text);
  padding: 6px;
  border-radius: var(--radius);
  transition: background var(--transition);
}
.related-card:hover { background: var(--surface-2); }

.related-thumb {
  position: relative;
  aspect-ratio: 16/9;
  border-radius: 8px;
  overflow: hidden;
  background: #000;
}
.related-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.related-lock {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,0.6);
  font-size: 20px;
}

.related-title {
  font-size: 13px; font-weight: 700; line-height: 1.3;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  margin: 0;
}
.related-meta {
  font-size: 12px; color: var(--text-dim); margin-top: 3px;
}

/* ============================================================
   MOBILE HAMBURGER
   ============================================================ */
.hamburger {
  display: none;
  flex-direction: column; gap: 4px;
  background: none; border: none;
  padding: 8px; cursor: pointer;
  z-index: 10;
}
.hamburger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.2s ease;
}

.mobile-right { display: none; }
.mobile-search { display: none; }

/* ============================================================
   MOBILE DRAWER
   ============================================================ */
.drawer {
  position: fixed;
  top: 0; left: 0; bottom: 0;
  width: 85%; max-width: 320px;
  background: var(--bg);
  border-right: 1px solid var(--border);
  transform: translateX(-100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1100;
  overflow-y: auto;
}
.drawer.open { transform: translateX(0); }

.drawer-backdrop {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 1095;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.drawer-backdrop.show {
  opacity: 1;
  pointer-events: auto;
}

.drawer-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 18px;
  border-bottom: 1px solid var(--border);
}
.drawer-close {
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text);
  width: 32px; height: 32px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 14px;
}

.drawer-body {
  display: flex; flex-direction: column;
  padding: 12px;
}
.drawer-body a {
  padding: 14px 14px;
  border-radius: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 600; font-size: 15px;
  transition: background var(--transition);
}
.drawer-body a:hover { background: var(--surface-2); }

/* ============================================================
   DESKTOP / MOBILE VISIBILITY
   ============================================================ */
.desktop-only { display: flex; }
.mobile-only { display: none !important; }

/* ============================================================
   RESPONSIVE: TABLET
   ============================================================ */
@media (max-width: 1024px) {
  .watch-layout {
    grid-template-columns: 1fr;
  }
  .watch-sidebar {
    position: static;
  }
  .related-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  }
  .related-card {
    grid-template-columns: 120px 1fr;
  }
}

/* ============================================================
   RESPONSIVE: MOBILE
   ============================================================ */
@media (max-width: 768px) {
  /* Show mobile elements */
  .mobile-only { display: flex !important; }
  .desktop-only { display: none !important; }

  .hamburger { display: flex; }
  .mobile-right { display: flex; align-items: center; }

  /* Mobile search under header */
  .mobile-search {
    display: block !important;
    padding: 8px 14px;
    border-bottom: 1px solid var(--border);
    background: var(--bg);
  }
  .mobile-search form {
    display: flex; gap: 8px;
  }
  .mobile-search input {
    flex: 1;
    height: 40px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    padding: 0 12px;
    font-family: inherit; font-size: 14px;
    outline: none;
  }

  /* Header */
  .nav {
    height: 56px;
    padding: 0 12px;
  }
  .brand img { height: 24px; }
  .brand span { font-size: 16px; }

  /* Layout */
  .hero { padding: 20px 0 12px; }
  .hero h1 { font-size: 1.4rem; }
  .container { padding: 0 14px; }
  .card { padding: 16px; }
  .split { grid-template-columns: 1fr; gap: 16px; }

  /* Watch page */
  .watch-layout { grid-template-columns: 1fr; gap: 16px; }
  .watch-player video { border-radius: 8px; }
  .related-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .related-card {
    grid-template-columns: 1fr;
  }
  .related-thumb { aspect-ratio: 16/9; }
  .related-info { padding: 4px 0; }

  /* Video grid */
  .grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }

  /* Tables scroll */
  .card:has(table) { overflow-x: auto; }
  table { min-width: 500px; }

  /* Proof strip */
  .proof-strip { gap: 16px; }
  .proof-item .proof-num { font-size: 22px; }

  /* Testimonials */
  .testimonials-grid { grid-template-columns: 1fr; }

  /* Countdown */
  .countdown-inner { flex-direction: column; gap: 8px; }

  /* Pricing */
  .pricing-grid { grid-template-columns: 1fr 1fr; }

  /* CTA banner */
  .cta-banner { padding: 24px 16px; }

  /* Search bar */
  .search-inline-form { flex-direction: column; }
  .search-inline-form .field { max-width: 100% !important; }

  /* Urgency bar */
  .urgency-bar { font-size: 12px; padding: 8px 12px; }

  /* Footer */
  footer { margin-top: 32px !important; }
}

/* ============================================================
   RESPONSIVE: SMALL PHONES
   ============================================================ */
@media (max-width: 420px) {
  .grid { grid-template-columns: 1fr; }
  .related-list { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .referral-stats { grid-template-columns: 1fr; }
  .proof-strip { flex-direction: column; gap: 12px; }
}



/* ============================================================
   YOUTUBE-STYLE TAGS BAR
   ============================================================ */
.tags-bar {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 14px 0;
  margin-bottom: 4px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.tags-bar::-webkit-scrollbar { display: none; }

.tag-chip {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  text-decoration: none;
  transition: all var(--transition);
  cursor: pointer;
  flex-shrink: 0;
}
.tag-chip:hover {
  background: var(--surface-3);
  border-color: var(--border-hover);
  color: var(--text);
}
.tag-chip.active {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
}

@media (max-width: 768px) {
  .tags-bar {
    padding: 10px 0;
    gap: 6px;
  }
  .tag-chip {
    padding: 6px 12px;
    font-size: 13px;
  }
}

/* ============================================================
   SORT TABS
   ============================================================ */
.sort-tabs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 0 0 16px;
  margin-bottom: 4px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.sort-tabs::-webkit-scrollbar { display: none; }

.sort-tab {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 10px 18px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  text-decoration: none;
  transition: all var(--transition);
  cursor: pointer;
  flex-shrink: 0;
}
.sort-tab:hover {
  background: var(--surface-2);
  border-color: var(--border-hover);
  color: var(--text);
}
.sort-tab.active {
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: #000;
  border-color: var(--gold);
  box-shadow: 0 0 16px var(--gold-glow);
}

@media (max-width: 768px) {
  .sort-tabs { gap: 4px; padding-bottom: 12px; }
  .sort-tab { padding: 8px 12px; font-size: 13px; }
}

/* ============================================================
   VIDEO CARD ENHANCEMENTS
   ============================================================ */

/* HOT badge — top right */
.badge-hot {
  position: absolute;
  top: 10px;
  right: 10px;
  background: linear-gradient(135deg, #ff3b5c, #ff6b3b);
  color: #fff;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  box-shadow: 0 4px 12px rgba(255,59,92,0.4);
  z-index: 2;
  animation: hotPulse 2s ease-in-out infinite;
}
@keyframes hotPulse {
  0%, 100% { box-shadow: 0 4px 12px rgba(255,59,92,0.4); }
  50% { box-shadow: 0 4px 20px rgba(255,59,92,0.6); }
}

/* Thumbnail stats bar — bottom left */
.thumb-stats {
  position: absolute;
  bottom: 8px;
  left: 8px;
  display: flex;
  gap: 6px;
  z-index: 2;
}
.thumb-stat {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  color: rgba(255,255,255,0.9);
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
}

/* Duration badge — bottom right */
.badge-duration {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(0,0,0,0.8);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  color: #fff;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  z-index: 2;
  letter-spacing: 0.03em;
}

/* Category pill + meta row */
.card-meta-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  flex-wrap: wrap;
}
.category-pill {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--surface-3);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
  line-height: 1.4;
}
.card-meta-row .meta {
  font-size: 11px;
  color: var(--text-dim);
}

/* Locked overlay hides stats */
.video-card.locked .thumb-stats,
.video-card.locked .badge-hot,
.video-card.locked .badge-duration {
  display: none;
}

/* ============================================================
   PAGINATION
   ============================================================ */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 32px 0 16px;
  flex-wrap: wrap;
}
.page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 10px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: all var(--transition);
  cursor: pointer;
}
.page-link:hover {
  background: var(--surface-2);
  border-color: var(--border-hover);
  color: var(--text);
}
.page-link.active {
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: #000;
  border-color: var(--gold);
  box-shadow: 0 0 12px var(--gold-glow);
  cursor: default;
}
.page-link.disabled {
  opacity: 0.3;
  cursor: not-allowed;
  pointer-events: none;
}
.page-link.page-ellipsis {
  background: transparent;
  border-color: transparent;
  cursor: default;
  min-width: 30px;
}
.page-link.page-arrow {
  font-size: 16px;
  font-weight: 800;
}

@media (max-width: 768px) {
  .pagination { gap: 4px; margin: 24px 0 12px; }
  .page-link { min-width: 36px; height: 36px; font-size: 13px; }
}

/* ============================================================
   ADMIN PANEL STYLES
   ============================================================ */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
  margin-bottom: 8px;
}
.metric-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  text-align: center;
  transition: border-color var(--transition);
}
.metric-card:hover { border-color: var(--border-hover); }
.metric-value {
  font-size: 28px;
  font-weight: 800;
  color: var(--gold);
  line-height: 1.2;
}
.metric-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.admin-nav {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  align-items: center;
}

.account-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}
.account-row:last-child { border-bottom: none; }
.account-label { color: var(--text-muted); font-weight: 600; }
.account-value { font-weight: 700; color: var(--text); }

@media (max-width: 768px) {
  .metrics-grid { grid-template-columns: repeat(2, 1fr); }
  .metric-value { font-size: 22px; }
  .admin-nav { gap: 4px; }
  .admin-nav .btn { padding: 6px 10px; font-size: 12px; }
}
