/* ============================================
   STORYVERSE — MAIN STYLESHEET
   Dark editorial luxury aesthetic
   ============================================ */

:root {
  --ink: #0d0b0f;
  --ink-soft: #1a1620;
  --ink-mid: #2d2636;
  --surface: #f5f0eb;
  --surface-warm: #ede5da;
  --gold: #c9a84c;
  --gold-light: #e8c96b;
  --crimson: #c0392b;
  --violet: #7b4f9e;
  --teal: #2a9d8f;
  --text: #1a1620;
  --text-muted: #6b6275;
  --text-light: #a09aa8;
  --white: #ffffff;
  --card-bg: #ffffff;
  --border: #e0d8d0;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 4px 24px rgba(13,11,15,0.08);
  --shadow-lg: 0 12px 48px rgba(13,11,15,0.16);
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'DM Sans', sans-serif;
  --font-mono: 'Space Mono', monospace;
  --transition: 0.25s cubic-bezier(0.4,0,0.2,1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--surface);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
}

/* ---- UTILITIES ---- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }
.hidden { display: none !important; }
.centered { text-align: center; }

/* ---- NAV ---- */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(13,11,15,0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(201,168,76,0.15);
  transition: var(--transition);
}
.nav-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 2rem;
  display: flex; align-items: center; gap: 2rem; height: 68px;
}
.logo {
  font-family: var(--font-display);
  font-size: 1.6rem; font-weight: 900;
  color: var(--white); text-decoration: none;
  letter-spacing: -0.02em;
}
.logo span { color: var(--gold); }
.nav-links { display: flex; gap: 2rem; flex: 1; margin-left: 2rem; }
.nav-links a {
  color: rgba(255,255,255,0.7); text-decoration: none;
  font-size: 0.9rem; font-weight: 500; letter-spacing: 0.03em;
  transition: var(--transition);
}
.nav-links a:hover { color: var(--gold); }
.nav-actions { display: flex; gap: 0.75rem; margin-left: auto; }
.btn-ghost {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.25);
  color: var(--white);
  padding: 0.5rem 1.25rem;
  border-radius: 8px;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.875rem;
  transition: var(--transition);
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }
.btn-primary {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  border: none;
  color: var(--ink);
  padding: 0.55rem 1.4rem;
  border-radius: 8px;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 700;
  transition: var(--transition);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 4px 16px rgba(201,168,76,0.4); }
.btn-primary.full { width: 100%; padding: 0.875rem; font-size: 1rem; }
.btn-primary.large { padding: 0.875rem 2.5rem; font-size: 1.05rem; }
.nav-hamburger {
  display: none; background: none; border: none;
  color: var(--white); font-size: 1.5rem; cursor: pointer;
  margin-left: auto;
}

/* ---- HERO ---- */
.hero {
  min-height: 100vh;
  background: var(--ink);
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden; padding: 100px 2rem 4rem;
  gap: 4rem;
}
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.orb {
  position: absolute; border-radius: 50%;
  filter: blur(80px); opacity: 0.25;
}
.orb1 { width: 500px; height: 500px; background: var(--violet); top: -100px; left: -100px; animation: drift 8s ease-in-out infinite alternate; }
.orb2 { width: 400px; height: 400px; background: var(--gold); bottom: -100px; right: -100px; animation: drift 10s ease-in-out infinite alternate-reverse; }
.orb3 { width: 300px; height: 300px; background: var(--teal); top: 50%; left: 40%; animation: drift 7s ease-in-out infinite alternate; }
@keyframes drift { to { transform: translate(40px, 30px); } }

.grid-overlay {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
}
.hero-content { max-width: 580px; position: relative; z-index: 1; }
.hero-tag {
  display: inline-block;
  background: rgba(201,168,76,0.12);
  border: 1px solid rgba(201,168,76,0.3);
  color: var(--gold);
  padding: 0.3rem 1rem;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  margin-bottom: 1.5rem;
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 900;
  line-height: 1.0;
  color: var(--white);
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
}
.hero-title em { color: var(--gold); font-style: italic; }
.hero-sub {
  color: rgba(255,255,255,0.65);
  font-size: 1.1rem;
  max-width: 440px;
  margin-bottom: 2.5rem;
}
.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 3rem; }
.btn-hero {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--ink); border: none;
  padding: 0.875rem 2rem; border-radius: 10px;
  font-family: var(--font-body); font-size: 1rem; font-weight: 700;
  cursor: pointer; transition: var(--transition);
}
.btn-hero:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(201,168,76,0.5); }
.btn-hero-ghost {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.3);
  color: var(--white);
  padding: 0.875rem 2rem; border-radius: 10px;
  font-family: var(--font-body); font-size: 1rem;
  cursor: pointer; transition: var(--transition);
  position:relative;
  z-index:999;
}
.btn-hero-ghost:hover { border-color: var(--gold); color: var(--gold);   cursor: pointer; transition: var(--transition);
  position:relative;
  z-index:999;}
.hero-stats { display: flex; gap: 2.5rem; }
.stat { displrelative ay: flex; flex-direction: column; }
.stat-num { font-family: var(--font-mono); font-size: 1.6rem; font-weight: 700; color: var(--gold); }
.stat-lbl { font-size: 0.8rem; color: rgba(255,255,255,0.5); letter-spacing: 0.05em; }

/* HERO VISUAL */
.hero-visual { position: relative; z-index: 1; flex-shrink: 0; }
.book-stack { position: relative; width: 300px; height: 380px; }
.book {
  position: absolute;
  width: 200px; height: 280px;
  border-radius: 8px 16px 16px 8px;
  padding: 1.5rem 1.25rem;
  display: flex; flex-direction: column; justify-content: flex-end;
  box-shadow: var(--shadow-lg);
}
.book span {
  font-family: var(--font-mono); font-size: 0.65rem;
  letter-spacing: 0.1em; opacity: 0.7;
  text-transform: uppercase; margin-bottom: 0.5rem;
}
.book em {
  font-family: var(--font-display); font-size: 1.1rem;
  font-weight: 700; line-height: 1.2; font-style: italic;
}
.b1 { background: linear-gradient(135deg, #2d1f4a, #5b3a7e); color: white; top: 0; left: 0; transform: rotate(-6deg); }
.b2 { background: linear-gradient(135deg, #1a3a3a, #2a7d6f); color: white; top: 40px; left: 50px; transform: rotate(2deg); }
.b3 { background: linear-gradient(135deg, #3a1a1a, #8b2e2e); color: white; top: 20px; left: 100px; transform: rotate(-2deg); }
.player-mini {
  position: absolute; bottom: 0; left: -20px; right: -20px;
  background: rgba(13,11,15,0.95);
  border: 1px solid rgba(201,168,76,0.25);
  border-radius: 14px;
  padding: 1rem 1.25rem;
  display: flex; align-items: center; gap: 1rem;
  backdrop-filter: blur(16px);
}
.play-icon {
  width: 36px; height: 36px;
  background: var(--gold);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--ink); font-size: 0.75rem;
  flex-shrink: 0; cursor: pointer;
}
.play-info b { display: block; color: white; font-size: 0.75rem; }
.play-info span { color: rgba(255,255,255,0.5); font-size: 0.7rem; }
.waveform { display: flex; align-items: center; gap: 3px; margin-left: auto; }
.waveform span {
  display: block; width: 3px; background: var(--gold);
  border-radius: 2px; opacity: 0.7;
  animation: wave 1.2s ease-in-out infinite alternate;
}
.waveform span:nth-child(1) { height: 8px; animation-delay: 0s; }
.waveform span:nth-child(2) { height: 18px; animation-delay: 0.1s; }
.waveform span:nth-child(3) { height: 12px; animation-delay: 0.2s; }
.waveform span:nth-child(4) { height: 22px; animation-delay: 0.3s; }
.waveform span:nth-child(5) { height: 10px; animation-delay: 0.4s; }
.waveform span:nth-child(6) { height: 16px; animation-delay: 0.5s; }
.waveform span:nth-child(7) { height: 20px; animation-delay: 0.6s; }
.waveform span:nth-child(8) { height: 8px; animation-delay: 0.7s; }
@keyframes wave { from { transform: scaleY(0.5); } to { transform: scaleY(1.2); } }

/* ---- SECTIONS ---- */
.section-featured, .how-it-works, .pricing-teaser, .creator-cta {
  padding: 6rem 0;
}
.section-featured { background: var(--surface); }
.how-it-works { background: var(--ink); color: var(--white); }
.pricing-teaser { background: var(--surface-warm); }
.creator-cta { background: var(--ink-soft); color: var(--white); }

.section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 2.5rem; }
.section-head h2 { font-family: var(--font-display); font-size: 2rem; font-weight: 700; }
.see-all { color: var(--gold); text-decoration: none; font-size: 0.9rem; font-weight: 500; }
.section-title { font-family: var(--font-display); font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 700; margin-bottom: 1rem; }
.section-sub { color: var(--text-muted); font-size: 1.05rem; margin-bottom: 3rem; }

/* STORY CARDS */
.stories-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.5rem; }
.story-card {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  cursor: pointer;
}
.story-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.story-thumb {
  height: 180px;
  background: linear-gradient(135deg, #2d1f4a, #5b3a7e);
  position: relative;
  display: flex; align-items: flex-end; padding: 1rem;
}
.story-thumb.t2 { background: linear-gradient(135deg, #1a3a3a, #2a7d6f); }
.story-thumb.t3 { background: linear-gradient(135deg, #3a2510, #8b5a2e); }
.story-thumb.t4 { background: linear-gradient(135deg, #1a1a3a, #2e2e8b); }
.story-genre {
  background: rgba(0,0,0,0.4); backdrop-filter: blur(8px);
  color: white; font-size: 0.7rem; padding: 0.2rem 0.6rem;
  border-radius: 100px; letter-spacing: 0.06em;
}
.story-body { padding: 1.25rem; }
.story-title { font-family: var(--font-display); font-size: 1.1rem; font-weight: 700; margin-bottom: 0.4rem; line-height: 1.3; }
.story-author { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 0.75rem; }
.story-meta { display: flex; align-items: center; justify-content: space-between; }
.story-episodes { font-size: 0.78rem; color: var(--text-muted); }
.story-rating { display: flex; align-items: center; gap: 0.3rem; font-size: 0.8rem; font-weight: 600; color: var(--gold); }
.story-price { font-family: var(--font-mono); font-size: 0.8rem; font-weight: 700; color: var(--ink); }

/* STEPS */
.steps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 2rem; }
.step { padding: 2rem; border: 1px solid rgba(255,255,255,0.08); border-radius: var(--radius-lg); }
.step-num { font-family: var(--font-mono); font-size: 2.5rem; color: var(--gold); opacity: 0.5; margin-bottom: 1rem; }
.step h3 { font-family: var(--font-display); font-size: 1.3rem; margin-bottom: 0.75rem; color: var(--white); }
.step p { color: rgba(255,255,255,0.6); font-size: 0.95rem; }

/* PRICING */
.plans-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.25rem; margin-bottom: 2rem; }
.plan-card {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  border: 2px solid var(--border);
  transition: var(--transition);
}
.plan-card:hover { border-color: var(--gold); transform: translateY(-2px); }
.featured-plan { border-color: var(--gold); background: var(--ink); color: var(--white); }
.plan-badge { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; color: var(--text-muted); text-transform: uppercase; margin-bottom: 0.75rem; }
.featured-plan .plan-badge { color: var(--gold); }
.plan-price { font-family: var(--font-display); font-size: 2.2rem; font-weight: 900; margin-bottom: 1.5rem; color: var(--ink); }
.featured-plan .plan-price { color: var(--white); }
.plan-price span { font-size: 1rem; font-weight: 400; color: var(--text-muted); }
.featured-plan .plan-price span { color: rgba(255,255,255,0.5); }
.plan-card ul { list-style: none; margin-bottom: 2rem; display: flex; flex-direction: column; gap: 0.6rem; }
.plan-card li { font-size: 0.875rem; color: var(--text-muted); }
.featured-plan li { color: rgba(255,255,255,0.7); }
.plan-card li:first-child { color: var(--text); font-weight: 500; }
.featured-plan li:first-child { color: var(--white); }
.btn-plan {
  width: 100%; padding: 0.75rem;
  background: var(--surface-warm);
  border: 2px solid var(--border);
  border-radius: 10px;
  font-family: var(--font-body); font-size: 0.9rem; font-weight: 600;
  cursor: pointer; transition: var(--transition);
  color: var(--text);
}
.btn-plan:hover { border-color: var(--gold); background: rgba(201,168,76,0.1); }
.btn-plan-featured {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  border-color: transparent; color: var(--ink);
}
.btn-plan-featured:hover { transform: none; box-shadow: 0 4px 16px rgba(201,168,76,0.5); }
.payg-note { text-align: center; color: var(--text-muted); font-size: 0.9rem; }
.payg-note a { color: var(--gold); text-decoration: none; }

/* CREATOR CTA */
.cta-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.cta-text h2 { font-family: var(--font-display); font-size: clamp(2rem, 4vw, 3rem); font-weight: 900; line-height: 1.1; margin-bottom: 1.25rem; color: var(--white); }
.cta-text p { color: rgba(255,255,255,0.65); font-size: 1.05rem; margin-bottom: 2rem; }
.earnings-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(201,168,76,0.25);
  border-radius: 20px;
  padding: 2.5rem;
  text-align: center;
}
.earnings-label { font-size: 0.8rem; color: var(--gold); letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 0.5rem; }
.earnings-amount { font-family: var(--font-display); font-size: 4rem; font-weight: 900; color: var(--gold); line-height: 1; }
.earnings-sub { color: rgba(255,255,255,0.6); font-size: 0.9rem; margin-top: 0.5rem; }
.earnings-divider { width: 40px; height: 2px; background: var(--gold); margin: 1.5rem auto; opacity: 0.3; }
.earnings-features { display: flex; flex-direction: column; gap: 0.5rem; }
.earnings-features span { color: rgba(255,255,255,0.6); font-size: 0.85rem; }

/* FOOTER */
.footer { background: var(--ink); border-top: 1px solid rgba(255,255,255,0.06); padding: 4rem 0 2rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; margin-bottom: 3rem; }
.footer-brand .logo { margin-bottom: 0.75rem; display: block; }
.footer-brand p { color: rgba(255,255,255,0.45); font-size: 0.875rem; }
.footer-links h4 { color: var(--white); font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 1rem; }
.footer-links a { display: block; color: rgba(255,255,255,0.45); text-decoration: none; font-size: 0.875rem; margin-bottom: 0.5rem; transition: var(--transition); }
.footer-links a:hover { color: var(--gold); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.06); padding-top: 2rem; }
.footer-bottom p { color: rgba(255,255,255,0.3); font-size: 0.8rem; text-align: center; }

/* ---- MODALS ---- */
.modal-overlay {
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(0,0,0,0.7); backdrop-filter: blur(8px);
  display: none; align-items: center; justify-content: center;
  padding: 1rem;
}
.modal-overlay.active { display: flex; }
.modal {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  width: 100%; max-width: 460px;
  position: relative;
  animation: modalIn 0.25s cubic-bezier(0.4,0,0.2,1);
  max-height: 90vh; overflow-y: auto;
}
.modal-wide { max-width: 560px; }
@keyframes modalIn { from { opacity: 0; transform: scale(0.95) translateY(10px); } to { opacity: 1; transform: none; } }
.modal-close {
  position: absolute; top: 1.25rem; right: 1.25rem;
  background: none; border: none; font-size: 1.1rem;
  cursor: pointer; color: var(--text-muted); width: 32px; height: 32px;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
}
.modal-close:hover { background: var(--surface); color: var(--text); }
.modal h2 { font-family: var(--font-display); font-size: 1.75rem; font-weight: 700; margin-bottom: 0.25rem; }
.modal-sub { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 1.75rem; }
.form-group { margin-bottom: 1.25rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group label { display: block; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.04em; color: var(--text); margin-bottom: 0.4rem; text-transform: uppercase; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 0.7rem 1rem;
  background: var(--surface); border: 2px solid var(--border);
  border-radius: 8px; font-family: var(--font-body); font-size: 0.95rem;
  color: var(--text); transition: var(--transition);
  outline: none;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  border-color: var(--gold);
}
.modal-switch { text-align: center; margin-top: 1.25rem; font-size: 0.875rem; color: var(--text-muted); }
.modal-switch a { color: var(--gold); text-decoration: none; font-weight: 600; }
.modal-legal { font-size: 0.75rem; color: var(--text-light); text-align: center; margin-top: 1rem; }
.modal-legal a { color: var(--gold); }
.form-error {
  background: #fef2f2; border: 1px solid #fca5a5;
  color: #dc2626; padding: 0.75rem 1rem; border-radius: 8px;
  font-size: 0.875rem; margin-bottom: 1rem;
}

/* ---- DASHBOARD SHARED ---- */
.dashboard-layout { display: flex; min-height: 100vh; padding-top: 68px; }
.sidebar {
  width: 260px; background: var(--ink); flex-shrink: 0;
  position: fixed; top: 68px; bottom: 0; left: 0;
  overflow-y: auto; padding: 1.5rem 0;
  border-right: 1px solid rgba(255,255,255,0.06);
  z-index: 100;
}
.sidebar-user { padding: 1rem 1.5rem 2rem; border-bottom: 1px solid rgba(255,255,255,0.06); }
.sidebar-avatar {
  width: 48px; height: 48px; border-radius: 50%;
  background: linear-gradient(135deg, var(--violet), var(--gold));
  display: flex; align-items: center; justify-content: center;
  color: white; font-weight: 700; font-size: 1.1rem;
  margin-bottom: 0.75rem;
}
.sidebar-name { color: var(--white); font-weight: 600; font-size: 0.95rem; }
.sidebar-role { color: var(--gold); font-size: 0.75rem; letter-spacing: 0.06em; text-transform: uppercase; }
.sidebar-nav { padding: 1rem 0; }
.sidebar-nav a {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.7rem 1.5rem;
  color: rgba(255,255,255,0.55); text-decoration: none;
  font-size: 0.9rem; transition: var(--transition);
  border-left: 3px solid transparent;
}
.sidebar-nav a:hover, .sidebar-nav a.active {
  color: var(--white); background: rgba(255,255,255,0.04);
  border-left-color: var(--gold);
}
.sidebar-nav a .nav-icon { width: 18px; text-align: center; opacity: 0.7; }
.sidebar-section { padding: 0.5rem 1.5rem; font-size: 0.65rem; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,0.25); margin-top: 1.25rem; }
.main-content { flex: 1; margin-left: 260px; padding: 2rem 2.5rem; background: var(--surface); }
.page-header { margin-bottom: 2rem; }
.page-header h1 { font-family: var(--font-display); font-size: 2rem; font-weight: 700; margin-bottom: 0.25rem; }
.page-header p { color: var(--text-muted); }

/* STATS ROW */
.stats-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1.25rem; margin-bottom: 2rem; }
.stat-card {
  background: var(--white); border-radius: var(--radius); padding: 1.5rem;
  border: 1px solid var(--border); position: relative; overflow: hidden;
}
.stat-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
}
.stat-card-label { font-size: 0.75rem; color: var(--text-muted); letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 0.5rem; }
.stat-card-value { font-family: var(--font-display); font-size: 2rem; font-weight: 700; color: var(--ink); line-height: 1; }
.stat-card-sub { font-size: 0.8rem; color: var(--text-muted); margin-top: 0.3rem; }
.stat-card-icon { position: absolute; top: 1rem; right: 1.25rem; font-size: 1.5rem; opacity: 0.15; }

/* TABLE */
.data-table { width: 100%; border-collapse: collapse; background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.data-table th { background: var(--ink); color: var(--white); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em; padding: 0.875rem 1.25rem; text-align: left; }
.data-table td { padding: 0.875rem 1.25rem; border-bottom: 1px solid var(--border); font-size: 0.875rem; }
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: var(--surface); }
.badge {
  display: inline-flex; align-items: center;
  padding: 0.2rem 0.7rem; border-radius: 100px;
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.04em;
}
.badge-green { background: #dcfce7; color: #16a34a; }
.badge-yellow { background: #fef9c3; color: #ca8a04; }
.badge-red { background: #fee2e2; color: #dc2626; }
.badge-blue { background: #dbeafe; color: #2563eb; }
.badge-purple { background: #f3e8ff; color: #9333ea; }

/* WALLET CARD */
.wallet-card {
  background: linear-gradient(135deg, var(--ink), var(--ink-mid));
  border-radius: var(--radius-lg); padding: 2rem;
  color: white; margin-bottom: 1.5rem; position: relative; overflow: hidden;
}
.wallet-card::after {
  content: ''; position: absolute; right: -40px; top: -40px;
  width: 200px; height: 200px; border-radius: 50%;
  background: rgba(201,168,76,0.1);
}
.wallet-balance-label { font-size: 0.8rem; color: rgba(255,255,255,0.5); letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 0.25rem; }
.wallet-balance { font-family: var(--font-display); font-size: 3rem; font-weight: 900; color: var(--gold); }
.wallet-actions { display: flex; gap: 0.75rem; margin-top: 1.5rem; }
.btn-wallet {
  padding: 0.5rem 1.25rem;
  border-radius: 8px; font-size: 0.875rem; cursor: pointer;
  font-family: var(--font-body); font-weight: 600; transition: var(--transition);
}
.btn-wallet-primary { background: var(--gold); border: none; color: var(--ink); }
.btn-wallet-ghost { background: transparent; border: 1px solid rgba(255,255,255,0.2); color: white; }

/* EPISODE PLAYER */
.episode-player {
  background: var(--ink);
  border-radius: var(--radius-lg);
  padding: 2rem;
  color: white;
  margin-bottom: 2rem;
}
.player-title { font-family: var(--font-display); font-size: 1.5rem; margin-bottom: 0.25rem; }
.player-meta { color: rgba(255,255,255,0.5); font-size: 0.85rem; margin-bottom: 1.5rem; }
.player-controls { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.25rem; }
.player-btn {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--gold); border: none; color: var(--ink);
  font-size: 1.1rem; cursor: pointer; transition: var(--transition);
  display: flex; align-items: center; justify-content: center;
}
.player-btn.secondary { background: rgba(255,255,255,0.1); color: white; width: 36px; height: 36px; font-size: 0.9rem; }
.player-progress { flex: 1; position: relative; height: 4px; background: rgba(255,255,255,0.15); border-radius: 2px; cursor: pointer; }
.player-progress-fill { height: 100%; background: var(--gold); border-radius: 2px; transition: width 0.1s; }
.player-time { color: rgba(255,255,255,0.5); font-size: 0.8rem; font-family: var(--font-mono); }
.voice-selector { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.voice-btn {
  padding: 0.35rem 0.875rem;
  border-radius: 100px;
  border: 1px solid rgba(255,255,255,0.15);
  background: transparent; color: rgba(255,255,255,0.6);
  font-size: 0.8rem; cursor: pointer; transition: var(--transition);
}
.voice-btn.active { background: var(--gold); border-color: var(--gold); color: var(--ink); font-weight: 600; }
.transcript-area {
  background: rgba(255,255,255,0.04);
  border-radius: 12px; padding: 1.25rem;
  font-size: 0.875rem; line-height: 1.8;
  color: rgba(255,255,255,0.7); max-height: 200px; overflow-y: auto;
  margin-top: 1rem;
}
.transcript-area .highlight { color: var(--gold); font-weight: 500; }

/* RATING */
.rating-stars { display: flex; gap: 0.2rem; cursor: pointer; }
.star { font-size: 1.2rem; color: #d1d5db; transition: var(--transition); }
.star.filled { color: var(--gold); }

/* UPLOAD FORM */
.upload-zone {
  border: 2px dashed var(--border);
  border-radius: var(--radius-lg);
  padding: 3rem 2rem;
  text-align: center;
  cursor: pointer; transition: var(--transition);
  background: var(--surface);
}
.upload-zone:hover { border-color: var(--gold); background: rgba(201,168,76,0.04); }
.upload-icon { font-size: 2.5rem; margin-bottom: 1rem; opacity: 0.4; }
.upload-zone h3 { font-size: 1rem; font-weight: 600; margin-bottom: 0.5rem; }
.upload-zone p { font-size: 0.85rem; color: var(--text-muted); }

/* CARD CONTAINERS */
.card {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
}
.card-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
}
.card-header h3 { font-family: var(--font-display); font-size: 1.1rem; font-weight: 700; }
.card-body { padding: 1.5rem; }

/* NOTIFICATION TOAST */
.toast {
  position: fixed; bottom: 2rem; right: 2rem; z-index: 9999;
  background: var(--ink); color: white;
  padding: 1rem 1.5rem;
  border-radius: 12px; border-left: 4px solid var(--gold);
  box-shadow: var(--shadow-lg); font-size: 0.9rem;
  transform: translateX(200%); transition: transform 0.3s cubic-bezier(0.4,0,0.2,1);
  max-width: 360px;
}
.toast.show { transform: translateX(0); }
.toast.success { border-left-color: var(--teal); }
.toast.error { border-left-color: var(--crimson); }

/* SECURE BADGE */
.secure-badge {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-size: 0.72rem; color: var(--text-muted);
  background: var(--surface); padding: 0.25rem 0.6rem;
  border-radius: 6px; border: 1px solid var(--border);
}

/* RESPONSIVE */
@media (max-width: 1024px) {
  .hero { flex-direction: column; text-align: center; }
  .hero-stats { justify-content: center; }
  .hero-cta { justify-content: center; }
  .hero-sub { margin: 0 auto 2.5rem; }
  .cta-inner { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .sidebar { transform: translateX(-100%); transition: transform 0.3s; }
  .sidebar.open { transform: none; }
  .main-content { margin-left: 0; padding: 1.25rem; }
  .form-row { grid-template-columns: 1fr; }
  .plans-row { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
}

.logo-container {
   position: relative;
   display: inline-block;
 }

 .lines-container {
   position: absolute;
   bottom: -10px;
   left: 0;
   width: 100%;
   height: 20px;
   overflow: hidden;
 }


 .color-line {
   position: absolute;
   height: 3px;
   width: 100%;
   animation: moveUpDown 2s ease-in-out infinite;
 }

 @keyframes moveUpDown {

   0%,
   100% {
     transform: translateY(0px);
     opacity: 0.3;
   }

   50% {
     transform: translateY(15px);
     opacity: 1;
   }
 }

 .line1 {
   animation-delay: 0s;
   background: linear-gradient(90deg, #ff0000, #ff7f00, #ffff00, #00ff00, #0000ff, #4b0082, #9400d3);
   top: 0;
 }

 .line2 {
   animation-delay: 0.3s;
   background: linear-gradient(90deg, #ff6b6b, #4ecdc4, #45b7d1, #96ceb4, #ffeaa7, #dfe6e9);
   top: 2px;
 }

 .line3 {
   animation-delay: 0.6s;
   background: linear-gradient(90deg, #a8e6cf, #d4a5a5, #ff8c94, #ffaaa5, #ffd3b5, #c7ceea);
   top: 4px;
 }

 .line4 {
   animation-delay: 0.9s;
   background: linear-gradient(90deg, #f6d365, #fda085, #fbc2eb, #a6c1ee, #84fab0, #8fd3f4);
   top: 6px;
 }

 .line5 {
   animation-delay: 1.2s;
   background: linear-gradient(90deg, #ff9a9e, #fad0c4, #fad0c4, #ffdde1, #ee9ca7, #ffdde1);
   top: 8px;
 }

 .line6 {
   animation-delay: 1.5s;
   background: linear-gradient(90deg, #667eea, #764ba2, #f093fb, #f5576c, #4facfe, #00f2fe);
   top: 10px;
 }

 /* Additional random lines that appear/disappear */
 .random-line {
   position: absolute;
   height: 2px;
   animation: randomMove 1.5s ease-in-out infinite, fadeInOut 1.5s ease-in-out infinite;
   opacity: 0;
   z-index:-1;
 }

 @keyframes randomMove {
   0% {
     transform: translateY(0px) translateX(-100%);
   }

   50% {
     transform: translateY(calc(var(--random-y, 10px) * 1px)) translateX(0%);
   }

   100% {
     transform: translateY(0px) translateX(100%);
   }
 }

 @keyframes fadeInOut {

   0%,
   100% {
     opacity: 0;
   }

   50% {
     opacity: 1;
   }
 }

 a {
   text-decoration: none;
 }

 span,
 subset,
 super {
   color: white;
 }

 .logo {
   display: inline-block;
   position: relative;
 }

