/* ═══════════════════════════════════════════════════════════════════
   Athletes Launch — TikTok Sandbox Demo
   Design System & Styles
   ═══════════════════════════════════════════════════════════════════ */

/* ── CSS Custom Properties (mirrors BRAND tokens from mobile app) ─── */
:root {
  /* Brand Colors */
  --gold: #edd714;
  --gold-warm: #f5a623;
  --gold-glow: rgba(237, 215, 20, 0.15);
  --gold-border: rgba(237, 215, 20, 0.25);

  /* Surfaces */
  --surface-0: #0a0a0a;
  --surface-1: #141414;
  --surface-2: #1e1e1e;
  --surface-3: #252525;
  --surface-4: #2f2f2f;

  /* Text */
  --text-primary: #ffffff;
  --text-secondary: #a0a0a0;
  --text-tertiary: #606060;

  /* Borders */
  --border: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.15);

  /* Semantic */
  --success: #22C55E;
  --warning: #F59E0B;
  --error: #EF4444;
  --info: #3B82F6;

  /* TikTok Brand */
  --tiktok-red: #FF0050;
  --tiktok-cyan: #25F4EE;
  --tiktok-black: #010101;

  /* Gradients */
  --gradient-gold: linear-gradient(135deg, #edd714, #f5a623);
  --gradient-card: linear-gradient(180deg, #1a1a1a, #0f0f0f);
  --gradient-tiktok: linear-gradient(135deg, #FF0050, #25F4EE);
  --gradient-hero: linear-gradient(180deg, rgba(237, 215, 20, 0.08) 0%, transparent 60%);

  /* Spacing */
  --sp-xs: 4px;
  --sp-sm: 8px;
  --sp-md: 16px;
  --sp-lg: 24px;
  --sp-xl: 32px;
  --sp-2xl: 48px;
  --sp-3xl: 64px;

  /* Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
  --shadow-gold: 0 4px 20px rgba(237, 215, 20, 0.2);

  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  /* Transitions */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --duration-fast: 150ms;
  --duration-normal: 250ms;
  --duration-slow: 400ms;
}

/* ── Reset & Base ─────────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-sans);
  background-color: var(--surface-0);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

a {
  color: var(--gold);
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-out);
}

a:hover {
  color: var(--gold-warm);
}

img {
  max-width: 100%;
  display: block;
}

/* ── Typography ───────────────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.1rem; }

.text-secondary { color: var(--text-secondary); }
.text-tertiary { color: var(--text-tertiary); }
.text-gold { color: var(--gold); }
.text-center { text-align: center; }

/* ── Layout ───────────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--sp-lg);
}

.container--narrow {
  max-width: 720px;
}

.container--wide {
  max-width: 1400px;
}

/* ── Navigation Bar ───────────────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: var(--sp-md) var(--sp-lg);
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border);
  transition: background var(--duration-normal) var(--ease-out);
}

.navbar__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar__logo {
  display: flex;
  align-items: center;
  gap: var(--sp-sm);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
}

.navbar__logo img {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
}

.navbar__badge {
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  background: var(--gold-glow);
  color: var(--gold);
  border: 1px solid var(--gold-border);
}

.navbar__actions {
  display: flex;
  align-items: center;
  gap: var(--sp-md);
}

.navbar__user {
  display: flex;
  align-items: center;
  gap: var(--sp-sm);
}

.navbar__avatar {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  border: 2px solid var(--gold);
  object-fit: cover;
}

.navbar__username {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
}

/* ── Buttons ──────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-sm);
  padding: var(--sp-sm) var(--sp-lg);
  border-radius: var(--radius-md);
  border: none;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--duration-normal) var(--ease-out);
  white-space: nowrap;
  user-select: none;
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0);
  transition: background var(--duration-fast);
}

.btn:hover::after {
  background: rgba(255, 255, 255, 0.08);
}

.btn:active {
  transform: scale(0.97);
}

.btn--primary {
  background: var(--gradient-gold);
  color: #000;
  box-shadow: var(--shadow-gold);
}

.btn--primary:hover {
  box-shadow: 0 6px 24px rgba(237, 215, 20, 0.35);
  transform: translateY(-1px);
}

.btn--tiktok {
  background: var(--gradient-tiktok);
  color: #fff;
  font-size: 1rem;
  padding: var(--sp-md) var(--sp-xl);
}

.btn--tiktok:hover {
  box-shadow: 0 6px 24px rgba(255, 0, 80, 0.3);
  transform: translateY(-1px);
}

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

.btn--outline:hover {
  border-color: var(--gold-border);
  color: var(--gold);
}

.btn--ghost {
  background: transparent;
  color: var(--text-secondary);
  padding: var(--sp-xs) var(--sp-sm);
}

.btn--ghost:hover {
  color: var(--text-primary);
}

.btn--danger {
  background: rgba(239, 68, 68, 0.15);
  color: var(--error);
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.btn--danger:hover {
  background: rgba(239, 68, 68, 0.25);
}

.btn--lg {
  padding: var(--sp-md) var(--sp-2xl);
  font-size: 1.05rem;
  border-radius: var(--radius-lg);
}

.btn--sm {
  padding: var(--sp-xs) var(--sp-md);
  font-size: 0.8rem;
  border-radius: var(--radius-sm);
}

.btn--loading {
  pointer-events: none;
  opacity: 0.7;
}

.btn__spinner {
  width: 18px;
  height: 18px;
  border: 2px solid transparent;
  border-top-color: currentColor;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ── Cards ────────────────────────────────────────────────────────── */
.card {
  background: var(--gradient-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--sp-lg);
  transition: all var(--duration-normal) var(--ease-out);
}

.card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-md);
}

.card--highlight {
  border-color: var(--gold-border);
  background: linear-gradient(180deg, rgba(237, 215, 20, 0.04) 0%, #0f0f0f 100%);
}

.card--tiktok {
  border-color: rgba(255, 0, 80, 0.2);
  background: linear-gradient(180deg, rgba(255, 0, 80, 0.04) 0%, #0f0f0f 100%);
}

.card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--sp-md);
}

.card__title {
  font-size: 1rem;
  font-weight: 600;
}

.card__subtitle {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-top: var(--sp-xs);
}

/* ── Status Badges ────────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge--success {
  background: rgba(34, 197, 94, 0.15);
  color: var(--success);
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.badge--warning {
  background: rgba(245, 158, 11, 0.15);
  color: var(--warning);
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.badge--error {
  background: rgba(239, 68, 68, 0.15);
  color: var(--error);
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.badge--info {
  background: rgba(59, 130, 246, 0.15);
  color: var(--info);
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.badge--tiktok {
  background: rgba(255, 0, 80, 0.15);
  color: var(--tiktok-red);
  border: 1px solid rgba(255, 0, 80, 0.3);
}

/* ── Inputs & Forms ───────────────────────────────────────────────── */
.form-group {
  margin-bottom: var(--sp-lg);
}

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: var(--sp-sm);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: var(--sp-md);
  background: var(--surface-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  transition: all var(--duration-fast) var(--ease-out);
  outline: none;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-glow);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--text-tertiary);
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
  line-height: 1.5;
}

.form-hint {
  font-size: 0.75rem;
  color: var(--text-tertiary);
  margin-top: var(--sp-xs);
}

.form-char-count {
  text-align: right;
  font-size: 0.75rem;
  color: var(--text-tertiary);
  margin-top: var(--sp-xs);
}

.form-char-count--warn {
  color: var(--warning);
}

.form-char-count--error {
  color: var(--error);
}

/* ── Toggle Switch ────────────────────────────────────────────────── */
.toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--sp-md);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-out);
  user-select: none;
}

.toggle:hover {
  border-color: var(--border-hover);
}

.toggle__info {
  flex: 1;
}

.toggle__label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
}

.toggle__description {
  font-size: 0.75rem;
  color: var(--text-tertiary);
  margin-top: 2px;
}

.toggle__switch {
  position: relative;
  width: 44px;
  height: 24px;
  background: var(--surface-4);
  border-radius: var(--radius-full);
  transition: background var(--duration-fast) var(--ease-out);
  flex-shrink: 0;
  margin-left: var(--sp-md);
}

.toggle__switch::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  background: var(--text-secondary);
  border-radius: 50%;
  transition: all var(--duration-fast) var(--ease-spring);
}

.toggle--active .toggle__switch {
  background: var(--gold);
}

.toggle--active .toggle__switch::after {
  transform: translateX(20px);
  background: #000;
}

/* ── Select Buttons (Privacy, Post Mode) ──────────────────────────── */
.select-group {
  display: flex;
  gap: var(--sp-sm);
  flex-wrap: wrap;
}

.select-btn {
  padding: var(--sp-sm) var(--sp-md);
  background: var(--surface-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-out);
  display: flex;
  align-items: center;
  gap: var(--sp-xs);
}

.select-btn:hover {
  border-color: var(--border-hover);
  color: var(--text-primary);
}

.select-btn--active {
  background: var(--gold-glow);
  border-color: var(--gold-border);
  color: var(--gold);
}

/* ── Progress Bar ─────────────────────────────────────────────────── */
.progress {
  width: 100%;
  height: 6px;
  background: var(--surface-3);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.progress__bar {
  height: 100%;
  background: var(--gradient-gold);
  border-radius: var(--radius-full);
  transition: width var(--duration-slow) var(--ease-out);
  width: 0%;
}

.progress__bar--tiktok {
  background: var(--gradient-tiktok);
}

/* ── Video Grid ───────────────────────────────────────────────────── */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: var(--sp-md);
}

.video-card {
  position: relative;
  aspect-ratio: 9 / 16;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface-2);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all var(--duration-normal) var(--ease-out);
}

.video-card:hover {
  border-color: var(--gold-border);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.video-card__thumbnail {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-card__overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--sp-md);
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.85));
}

.video-card__title {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-primary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: var(--sp-xs);
}

.video-card__stats {
  display: flex;
  gap: var(--sp-md);
  font-size: 0.7rem;
  color: var(--text-secondary);
}

.video-card__stat {
  display: flex;
  align-items: center;
  gap: 3px;
}

/* ── Profile Card ─────────────────────────────────────────────────── */
.profile-card {
  display: flex;
  align-items: center;
  gap: var(--sp-lg);
  padding: var(--sp-lg);
  background: var(--gradient-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.profile-card__avatar {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-full);
  border: 3px solid var(--gold);
  object-fit: cover;
  flex-shrink: 0;
}

.profile-card__info {
  flex: 1;
}

.profile-card__name {
  font-size: 1.25rem;
  font-weight: 700;
}

.profile-card__handle {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-top: 2px;
}

.profile-card__stats {
  display: flex;
  gap: var(--sp-xl);
  margin-top: var(--sp-md);
}

.profile-card__stat-value {
  font-size: 1.1rem;
  font-weight: 700;
}

.profile-card__stat-label {
  font-size: 0.7rem;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ── Hero Section ─────────────────────────────────────────────────── */
.hero {
  padding: calc(80px + var(--sp-3xl)) 0 var(--sp-3xl);
  text-align: center;
  background: var(--gradient-hero);
  position: relative;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-border), transparent);
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-sm);
  padding: var(--sp-xs) var(--sp-md);
  background: var(--gold-glow);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--sp-lg);
}

.hero__title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: var(--sp-lg);
  background: linear-gradient(135deg, var(--text-primary) 0%, var(--gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto var(--sp-xl);
  line-height: 1.7;
}

.hero__actions {
  display: flex;
  justify-content: center;
  gap: var(--sp-md);
  flex-wrap: wrap;
}

/* ── Feature Cards Row ────────────────────────────────────────────── */
.features {
  padding: var(--sp-3xl) 0;
}

.features__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--sp-lg);
  margin-top: var(--sp-xl);
}

.feature-card {
  padding: var(--sp-xl);
  background: var(--gradient-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: all var(--duration-normal) var(--ease-out);
}

.feature-card:hover {
  border-color: var(--gold-border);
  transform: translateY(-4px);
}

.feature-card__icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: var(--sp-md);
}

.feature-card__icon--gold {
  background: var(--gold-glow);
  color: var(--gold);
}

.feature-card__icon--tiktok {
  background: rgba(255, 0, 80, 0.15);
  color: var(--tiktok-red);
}

.feature-card__title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: var(--sp-sm);
}

.feature-card__desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ── Upload Zone ──────────────────────────────────────────────────── */
.upload-zone {
  border: 2px dashed var(--border-hover);
  border-radius: var(--radius-lg);
  padding: var(--sp-3xl) var(--sp-xl);
  text-align: center;
  cursor: pointer;
  transition: all var(--duration-normal) var(--ease-out);
  background: var(--surface-1);
}

.upload-zone:hover,
.upload-zone--dragover {
  border-color: var(--gold);
  background: var(--gold-glow);
}

.upload-zone__icon {
  font-size: 3rem;
  color: var(--text-tertiary);
  margin-bottom: var(--sp-md);
}

.upload-zone__text {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: var(--sp-xs);
}

.upload-zone__hint {
  font-size: 0.8rem;
  color: var(--text-tertiary);
}

.upload-zone--has-file {
  border-style: solid;
  border-color: var(--success);
}

/* ── Section Headers ──────────────────────────────────────────────── */
.section-header {
  margin-bottom: var(--sp-xl);
}

.section-header__eyebrow {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--sp-xs);
}

.section-header__title {
  font-size: 1.5rem;
  font-weight: 700;
}

.section-header__desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-top: var(--sp-xs);
}

/* ── Status / Token Indicator ─────────────────────────────────────── */
.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

.status-dot--connected {
  background: var(--success);
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.5);
}

.status-dot--expired {
  background: var(--error);
  box-shadow: 0 0 8px rgba(239, 68, 68, 0.5);
}

.status-dot--refreshing {
  background: var(--warning);
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* ── Upload Progress ──────────────────────────────────────────────── */
.upload-progress {
  padding: var(--sp-lg);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.upload-progress__status {
  display: flex;
  align-items: center;
  gap: var(--sp-sm);
  margin-bottom: var(--sp-md);
  font-size: 0.9rem;
  font-weight: 600;
}

.upload-progress__message {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-top: var(--sp-sm);
}

/* ── Footer ───────────────────────────────────────────────────────── */
.footer {
  padding: var(--sp-xl) 0;
  border-top: 1px solid var(--border);
  margin-top: var(--sp-3xl);
}

.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--sp-md);
}

.footer__text {
  font-size: 0.8rem;
  color: var(--text-tertiary);
}

.footer__links {
  display: flex;
  gap: var(--sp-lg);
}

.footer__link {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.footer__link:hover {
  color: var(--gold);
}

/* ── Modals ───────────────────────────────────────────────────────── */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: var(--sp-lg);
  animation: fadeIn var(--duration-normal) var(--ease-out);
}

.modal-backdrop--visible {
  display: flex;
}

.modal {
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--sp-xl);
  max-width: 500px;
  width: 100%;
  animation: slideUp var(--duration-normal) var(--ease-spring);
}

.modal__title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: var(--sp-md);
}

.modal__actions {
  display: flex;
  justify-content: flex-end;
  gap: var(--sp-sm);
  margin-top: var(--sp-lg);
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

/* ── Toast Notifications ──────────────────────────────────────────── */
.toast-container {
  position: fixed;
  top: 80px;
  right: var(--sp-lg);
  z-index: 300;
  display: flex;
  flex-direction: column;
  gap: var(--sp-sm);
}

.toast {
  padding: var(--sp-md) var(--sp-lg);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  animation: slideIn var(--duration-normal) var(--ease-spring);
  display: flex;
  align-items: center;
  gap: var(--sp-sm);
  min-width: 300px;
  max-width: 450px;
}

.toast--success { border-left: 3px solid var(--success); }
.toast--error { border-left: 3px solid var(--error); }
.toast--info { border-left: 3px solid var(--info); }
.toast--warning { border-left: 3px solid var(--warning); }

.toast__text {
  font-size: 0.85rem;
  flex: 1;
}

.toast__close {
  background: none;
  border: none;
  color: var(--text-tertiary);
  cursor: pointer;
  font-size: 1.2rem;
  padding: 0;
  line-height: 1;
}

@keyframes slideIn {
  from { opacity: 0; transform: translateX(100px); }
  to { opacity: 1; transform: translateX(0); }
}

/* ── Loading States ───────────────────────────────────────────────── */
.skeleton {
  background: linear-gradient(90deg, var(--surface-2) 25%, var(--surface-3) 50%, var(--surface-2) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.loading-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 10, 0.9);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 500;
}

.loading-spinner {
  width: 48px;
  height: 48px;
  border: 3px solid var(--surface-3);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-bottom: var(--sp-md);
}

/* ── Responsive ───────────────────────────────────────────────────── */
@media (max-width: 768px) {
  h1 { font-size: 1.75rem; }
  h2 { font-size: 1.35rem; }
  
  .container { padding: 0 var(--sp-md); }
  
  .hero { padding: calc(70px + var(--sp-xl)) 0 var(--sp-xl); }
  .hero__subtitle { font-size: 0.95rem; }
  
  .features__grid { grid-template-columns: 1fr; }
  
  .video-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: var(--sp-sm); }
  
  .profile-card { flex-direction: column; text-align: center; }
  .profile-card__stats { justify-content: center; }
  
  .navbar__badge { display: none; }
  
  .footer__inner { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .hero__actions { flex-direction: column; align-items: center; }
  .select-group { flex-direction: column; }
}

/* ── Utility Classes ──────────────────────────────────────────────── */
.hidden { display: none !important; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-sm { gap: var(--sp-sm); }
.gap-md { gap: var(--sp-md); }
.gap-lg { gap: var(--sp-lg); }
.mt-sm { margin-top: var(--sp-sm); }
.mt-md { margin-top: var(--sp-md); }
.mt-lg { margin-top: var(--sp-lg); }
.mt-xl { margin-top: var(--sp-xl); }
.mb-md { margin-bottom: var(--sp-md); }
.mb-lg { margin-bottom: var(--sp-lg); }
.w-full { width: 100%; }
