/* ============================================================
   RAPSTARZ — Main Stylesheet
   Dark hip-hop aesthetic, gold/purple accents
   ============================================================ */

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

:root {
  --gold:    #FFD700;
  --gold-2:  #FFA500;
  --purple:  #7B2FBE;
  --purple-2:#9B59B6;
  --dark:    #0A0A0F;
  --dark-2:  #111118;
  --dark-3:  #18181F;
  --dark-4:  #22222C;
  --border:  rgba(255,255,255,0.08);
  --text:    #F0F0F5;
  --text-2:  #A0A0B0;
  --text-3:  #606070;
  --radius:  12px;
  --radius-lg: 20px;
  --shadow:  0 4px 32px rgba(0,0,0,0.5);
  --glow-gold: 0 0 40px rgba(255,215,0,0.15);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', 'Space Grotesk', sans-serif;
  background: var(--dark);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ---- SCROLLBAR ---- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--dark-2); }
::-webkit-scrollbar-thumb { background: var(--purple); border-radius: 3px; }

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(10,10,15,0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s;
}
.nav-inner {
  max-width: 1200px; margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex; align-items: center; gap: 32px;
}
.logo {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 28px; letter-spacing: 2px;
  color: var(--text); text-decoration: none;
  display: flex; align-items: center; gap: 4px;
}
.logo-star { color: var(--gold); font-size: 22px; }
.logo-accent { color: var(--gold); }
.nav-links {
  display: flex; gap: 28px; list-style: none; margin-left: auto;
}
.nav-links a {
  color: var(--text-2); text-decoration: none;
  font-size: 14px; font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--gold); }
.btn-nav {
  padding: 8px 20px;
  background: linear-gradient(135deg, var(--gold), var(--gold-2));
  color: #000; font-weight: 700; font-size: 13px;
  border-radius: 8px; text-decoration: none;
  transition: opacity 0.2s, transform 0.2s;
  white-space: nowrap;
}
.btn-nav:hover { opacity: 0.9; transform: translateY(-1px); }
.hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px;
}
.hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--text); border-radius: 2px;
  transition: all 0.3s;
}
.mobile-menu {
  display: none; flex-direction: column; gap: 0;
  border-top: 1px solid var(--border);
  background: var(--dark-2);
}
.mobile-menu a {
  padding: 14px 24px; color: var(--text-2);
  text-decoration: none; font-size: 15px;
  border-bottom: 1px solid var(--border);
  transition: color 0.2s, background 0.2s;
}
.mobile-menu a:hover { color: var(--gold); background: var(--dark-3); }
.mobile-menu.open { display: flex; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  min-height: 100vh;
  display: flex; align-items: center;
  padding: 100px 24px 60px;
  position: relative; overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; pointer-events: none;
}
.hero-grid {
  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-glow {
  position: absolute; border-radius: 50%; filter: blur(80px);
}
.glow-1 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(123,47,190,0.3), transparent 70%);
  top: -100px; right: 10%;
}
.glow-2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(255,215,0,0.12), transparent 70%);
  bottom: 0; left: 5%;
}
.hero-content {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 60px; align-items: center; width: 100%;
  position: relative; z-index: 1;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,215,0,0.1);
  border: 1px solid rgba(255,215,0,0.3);
  color: var(--gold); font-size: 13px; font-weight: 600;
  padding: 6px 14px; border-radius: 100px;
  margin-bottom: 20px; width: fit-content;
}
.badge-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--gold);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.3); }
}
.hero-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(52px, 7vw, 88px);
  line-height: 1.0; letter-spacing: 2px;
  color: var(--text); margin-bottom: 20px;
}
.gradient-text {
  background: linear-gradient(135deg, var(--gold), var(--gold-2), var(--purple-2));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-sub {
  font-size: 18px; color: var(--text-2); line-height: 1.7;
  margin-bottom: 36px; max-width: 500px;
}
.hero-cta {
  display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 48px;
}
.btn-primary {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 28px;
  background: linear-gradient(135deg, var(--gold), var(--gold-2));
  color: #000; font-weight: 700; font-size: 15px;
  border-radius: var(--radius); text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 20px rgba(255,215,0,0.3);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(255,215,0,0.4);
}
.btn-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px;
  border: 1px solid var(--border);
  color: var(--text); font-weight: 600; font-size: 15px;
  border-radius: var(--radius); text-decoration: none;
  transition: border-color 0.2s, background 0.2s;
}
.btn-ghost:hover { border-color: var(--gold); background: rgba(255,215,0,0.05); }
.hero-stats {
  display: flex; align-items: center; gap: 24px;
}
.stat { display: flex; flex-direction: column; gap: 2px; }
.stat-num {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 28px; color: var(--gold); letter-spacing: 1px;
}
.stat-label { font-size: 12px; color: var(--text-3); text-transform: uppercase; letter-spacing: 1px; }
.stat-divider { width: 1px; height: 40px; background: var(--border); }

/* HERO VISUAL */
.hero-visual { display: flex; justify-content: center; align-items: center; }
.waveform-card {
  background: var(--dark-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  width: 100%; max-width: 420px;
  box-shadow: var(--shadow), var(--glow-gold);
}
.wf-header {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 20px;
}
.wf-dot {
  width: 12px; height: 12px; border-radius: 50%;
}
.wf-dot.red { background: #FF5F57; }
.wf-dot.yellow { background: #FFBD2E; }
.wf-dot.green { background: #28CA41; }
.wf-title {
  font-size: 13px; color: var(--text-2);
  margin-left: 8px; font-family: monospace;
}
.waveform {
  height: 80px; display: flex; align-items: center;
  margin-bottom: 20px; overflow: hidden;
}
.wf-bars {
  display: flex; align-items: center; gap: 3px;
  height: 100%; width: 100%;
}
.wf-bar {
  flex: 1; border-radius: 2px;
  background: linear-gradient(to top, var(--purple), var(--gold));
  animation: wfAnim 1.2s ease-in-out infinite;
  min-height: 4px;
}
@keyframes wfAnim {
  0%, 100% { transform: scaleY(0.3); }
  50% { transform: scaleY(1); }
}
.wf-meta {
  display: flex; gap: 16px; font-size: 13px;
}
.wf-bpm, .wf-key, .wf-vibe {
  background: var(--dark-4); padding: 6px 12px;
  border-radius: 8px; color: var(--text-2);
}
.wf-bpm strong, .wf-key strong, .wf-vibe strong { color: var(--gold); }

/* ============================================================
   SECTIONS COMMON
   ============================================================ */
.section-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
}
.section-label {
  font-size: 12px; font-weight: 700; letter-spacing: 3px;
  text-transform: uppercase; color: var(--gold);
  margin-bottom: 12px;
}
.section-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(36px, 5vw, 56px);
  letter-spacing: 1px; margin-bottom: 16px;
}
.section-sub {
  font-size: 17px; color: var(--text-2);
  max-width: 560px; margin-bottom: 48px;
}

/* ============================================================
   FEATURES
   ============================================================ */
.features {
  padding: 100px 24px;
  background: var(--dark-2);
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}
.feature-card {
  background: var(--dark-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}
.feature-card:hover {
  border-color: rgba(255,215,0,0.3);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.4), 0 0 20px rgba(255,215,0,0.08);
}
.feature-icon {
  width: 52px; height: 52px;
  background: linear-gradient(135deg, rgba(123,47,190,0.3), rgba(255,215,0,0.1));
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.feature-icon svg { width: 26px; height: 26px; stroke: var(--gold); }
.feature-card h3 {
  font-size: 18px; font-weight: 700; margin-bottom: 10px;
}
.feature-card p { font-size: 14px; color: var(--text-2); line-height: 1.7; }

/* ============================================================
   HOW IT WORKS
   ============================================================ */
.how-it-works {
  padding: 100px 24px;
}
.steps {
  display: flex; align-items: flex-start; gap: 24px;
  flex-wrap: wrap;
}
.step {
  flex: 1; min-width: 240px;
  background: var(--dark-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
}
.step-num {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 48px; color: var(--purple);
  line-height: 1; margin-bottom: 16px;
  opacity: 0.8;
}
.step h3 { font-size: 20px; font-weight: 700; margin-bottom: 10px; }
.step p { font-size: 14px; color: var(--text-2); line-height: 1.7; }
.step-arrow {
  font-size: 28px; color: var(--text-3);
  align-self: center; padding-top: 16px;
}

/* ============================================================
   APP SECTION
   ============================================================ */
.app-section {
  padding: 100px 24px;
  background: var(--dark-2);
}
.app-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
}
.app-panel {
  background: var(--dark-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.panel-header {
  display: flex; align-items: center; gap: 10px;
  padding: 18px 24px;
  border-bottom: 1px solid var(--border);
  font-size: 14px; font-weight: 700;
  background: var(--dark-4);
  color: var(--text-2);
}
.panel-header svg { width: 18px; height: 18px; stroke: var(--gold); }

/* UPLOAD ZONE */
.upload-zone {
  margin: 24px;
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 36px 24px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.3s, background 0.3s;
}
.upload-zone:hover, .upload-zone.drag-over {
  border-color: var(--gold);
  background: rgba(255,215,0,0.04);
}
.upload-icon {
  width: 56px; height: 56px; margin: 0 auto 16px;
  background: rgba(123,47,190,0.2);
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
}
.upload-icon svg { width: 28px; height: 28px; stroke: var(--gold); }
.upload-title { font-size: 16px; font-weight: 600; margin-bottom: 6px; }
.upload-sub { font-size: 13px; color: var(--text-3); margin-bottom: 16px; }
.btn-upload {
  padding: 8px 20px;
  background: rgba(123,47,190,0.3);
  border: 1px solid rgba(123,47,190,0.5);
  color: var(--text); font-size: 13px; font-weight: 600;
  border-radius: 8px; cursor: pointer;
  transition: background 0.2s;
}
.btn-upload:hover { background: rgba(123,47,190,0.5); }

/* AUDIO INFO */
.audio-info {
  margin: 0 24px 24px;
  background: var(--dark-4);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
}
.audio-info-row {
  display: flex; justify-content: space-between;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  font-size: 13px;
}
.audio-info-row:last-of-type { border-bottom: none; }
.ai-label { color: var(--text-3); }
.ai-val { color: var(--text); font-weight: 600; }
.bpm-val { color: var(--gold); }

/* OR DIVIDER */
.or-divider {
  display: flex; align-items: center; gap: 12px;
  margin: 0 24px 20px;
  color: var(--text-3); font-size: 12px;
}
.or-divider::before, .or-divider::after {
  content: ''; flex: 1; height: 1px; background: var(--border);
}

/* FORM GROUPS */
.form-group { margin: 0 24px 20px; }
.form-group label {
  display: block; font-size: 13px; font-weight: 600;
  color: var(--text-2); margin-bottom: 8px;
}
.optional { color: var(--text-3); font-weight: 400; }
.required { color: var(--gold); }
.form-group input[type="text"],
.form-group input[type="password"],
.form-group textarea,
.form-group select {
  width: 100%;
  background: var(--dark-4);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 14px; font-family: inherit;
  padding: 10px 14px;
  transition: border-color 0.2s;
  outline: none;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--gold);
}
.form-group textarea { resize: vertical; }
.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23606070' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}
.field-hint {
  font-size: 12px; color: var(--text-3); margin-top: 6px;
}
.field-hint a { color: var(--gold); text-decoration: none; }
.field-hint a:hover { text-decoration: underline; }

/* API KEY */
.api-key-wrap { position: relative; }
.api-key-wrap input { padding-right: 44px; }
.btn-eye {
  position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
  background: none; border: none; cursor: pointer; color: var(--text-3);
  display: flex; align-items: center;
  transition: color 0.2s;
}
.btn-eye:hover { color: var(--gold); }
.btn-eye svg { width: 18px; height: 18px; }

/* GENRE GRID */
.genre-grid {
  display: flex; flex-wrap: wrap; gap: 8px;
}
.genre-btn {
  padding: 6px 14px;
  background: var(--dark-4);
  border: 1px solid var(--border);
  color: var(--text-2); font-size: 13px; font-weight: 500;
  border-radius: 100px; cursor: pointer;
  transition: all 0.2s;
}
.genre-btn:hover { border-color: var(--gold); color: var(--gold); }
.genre-btn.active {
  background: rgba(255,215,0,0.15);
  border-color: var(--gold);
  color: var(--gold);
}

/* STRUCTURE OPTIONS */
.structure-options {
  display: flex; flex-wrap: wrap; gap: 12px;
}
.check-opt {
  display: flex; align-items: center; gap: 6px;
  font-size: 13px; color: var(--text-2); cursor: pointer;
}
.check-opt input[type="checkbox"] {
  width: 16px; height: 16px; cursor: pointer;
  accent-color: var(--gold);
}

/* GENERATE BUTTON */
.btn-generate {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: calc(100% - 48px); margin: 0 24px 24px;
  padding: 14px;
  background: linear-gradient(135deg, var(--gold), var(--gold-2));
  color: #000; font-weight: 800; font-size: 16px;
  border: none; border-radius: var(--radius);
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, opacity 0.2s;
  box-shadow: 0 4px 20px rgba(255,215,0,0.3);
}
.btn-generate svg { width: 20px; height: 20px; }
.btn-generate:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(255,215,0,0.4);
}
.btn-generate:disabled {
  opacity: 0.5; cursor: not-allowed; transform: none;
}

/* OUTPUT PANEL */
.output-panel { min-height: 600px; display: flex; flex-direction: column; }
.output-actions {
  display: flex; gap: 8px; margin-left: auto;
}
.btn-action {
  display: flex; align-items: center; gap: 6px;
  padding: 6px 12px;
  background: var(--dark-3);
  border: 1px solid var(--border);
  color: var(--text-2); font-size: 12px; font-weight: 600;
  border-radius: 8px; cursor: pointer;
  transition: all 0.2s;
}
.btn-action svg { width: 14px; height: 14px; }
.btn-action:hover { border-color: var(--gold); color: var(--gold); }

/* EMPTY STATE */
.output-empty {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 60px 24px; text-align: center;
}
.empty-icon {
  width: 80px; height: 80px; margin: 0 auto 20px;
  opacity: 0.15;
}
.empty-icon svg { width: 80px; height: 80px; stroke: var(--text); }
.output-empty p { font-size: 16px; color: var(--text-2); }
.empty-sub { font-size: 13px; color: var(--text-3); margin-top: 6px; }

/* LOADING */
.output-loading {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 60px 24px; gap: 24px;
}
.loading-bars {
  display: flex; align-items: flex-end; gap: 5px; height: 48px;
}
.loading-bars span {
  width: 8px; border-radius: 4px;
  background: linear-gradient(to top, var(--purple), var(--gold));
  animation: loadBar 1s ease-in-out infinite;
}
.loading-bars span:nth-child(1) { animation-delay: 0s; }
.loading-bars span:nth-child(2) { animation-delay: 0.1s; }
.loading-bars span:nth-child(3) { animation-delay: 0.2s; }
.loading-bars span:nth-child(4) { animation-delay: 0.3s; }
.loading-bars span:nth-child(5) { animation-delay: 0.4s; }
@keyframes loadBar {
  0%, 100% { height: 12px; }
  50% { height: 48px; }
}
.loading-text { font-size: 15px; color: var(--text-2); }

/* LYRICS OUTPUT */
.lyrics-output {
  flex: 1; padding: 24px; overflow-y: auto;
}
.lyric-section { margin-bottom: 28px; }
.lyric-section-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 12px;
}
.lyric-section-title {
  font-size: 11px; font-weight: 800; letter-spacing: 2px;
  text-transform: uppercase; color: var(--gold);
  display: flex; align-items: center; gap: 8px;
}
.lyric-section-title::before {
  content: ''; display: block;
  width: 20px; height: 2px; background: var(--gold);
}
.btn-copy-section {
  padding: 4px 10px;
  background: none;
  border: 1px solid var(--border);
  color: var(--text-3); font-size: 11px;
  border-radius: 6px; cursor: pointer;
  transition: all 0.2s;
}
.btn-copy-section:hover { border-color: var(--gold); color: var(--gold); }
.lyric-text {
  font-size: 15px; line-height: 2.0;
  color: var(--text); white-space: pre-wrap;
  font-family: 'Space Grotesk', sans-serif;
}
.lyric-divider {
  height: 1px; background: var(--border); margin: 24px 0;
}

/* ============================================================
   HISTORY
   ============================================================ */
.history-section {
  padding: 60px 24px;
}
.history-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 24px;
}
.history-header h2 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 32px; letter-spacing: 1px;
}
.btn-ghost-sm {
  padding: 6px 14px;
  background: none;
  border: 1px solid var(--border);
  color: var(--text-2); font-size: 13px;
  border-radius: 8px; cursor: pointer;
  transition: all 0.2s;
}
.btn-ghost-sm:hover { border-color: #ff4444; color: #ff4444; }
.history-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}
.history-card {
  background: var(--dark-3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  cursor: pointer;
  transition: border-color 0.2s, transform 0.2s;
}
.history-card:hover {
  border-color: rgba(255,215,0,0.3);
  transform: translateY(-2px);
}
.history-card-title {
  font-weight: 700; font-size: 15px; margin-bottom: 6px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.history-card-meta {
  font-size: 12px; color: var(--text-3); margin-bottom: 12px;
}
.history-card-preview {
  font-size: 13px; color: var(--text-2); line-height: 1.6;
  display: -webkit-box; -webkit-line-clamp: 3;
  -webkit-box-orient: vertical; overflow: hidden;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  padding: 48px 24px;
  border-top: 1px solid var(--border);
  text-align: center;
}
.footer-inner { max-width: 1200px; margin: 0 auto; }
.footer-logo {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 32px; letter-spacing: 2px;
  display: flex; align-items: center; justify-content: center; gap: 4px;
  margin-bottom: 12px;
}
.footer-tagline {
  font-size: 15px; color: var(--text-2); margin-bottom: 8px;
}
.footer-copy { font-size: 13px; color: var(--text-3); }

/* ============================================================
   TOAST
   ============================================================ */
.toast {
  position: fixed; bottom: 24px; right: 24px; z-index: 9999;
  background: var(--dark-4);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 20px;
  font-size: 14px; font-weight: 600;
  color: var(--text);
  transform: translateY(80px); opacity: 0;
  transition: transform 0.3s, opacity 0.3s;
  pointer-events: none;
  max-width: 320px;
}
.toast.show {
  transform: translateY(0); opacity: 1;
}
.toast.success { border-color: #28CA41; color: #28CA41; }
.toast.error   { border-color: #FF5F57; color: #FF5F57; }
.toast.info    { border-color: var(--gold); color: var(--gold); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-badge { margin: 0 auto 20px; }
  .hero-sub { margin: 0 auto 36px; }
  .hero-cta { justify-content: center; }
  .hero-stats { justify-content: center; }
  .hero-visual { display: none; }
  .app-layout { grid-template-columns: 1fr; }
  .steps { flex-direction: column; }
  .step-arrow { transform: rotate(90deg); align-self: center; }
  .nav-links { display: none; }
  .btn-nav { display: none; }
  .hamburger { display: flex; }
}

@media (max-width: 600px) {
  .features-grid { grid-template-columns: 1fr; }
  .hero { padding: 80px 16px 40px; }
  .features, .how-it-works, .app-section { padding: 60px 16px; }
  .section-inner { padding: 0 16px; }
}

/* ============================================================
   AUDIO PLAYER CUSTOM
   ============================================================ */
audio {
  filter: invert(0.8) hue-rotate(180deg);
  border-radius: 8px;
}

/* ============================================================
   AUTH MODAL
   ============================================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(6px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-box {
  background: #13131f;
  border: 1px solid rgba(245, 197, 24, 0.2);
  border-radius: 16px;
  padding: 40px 36px;
  width: 100%;
  max-width: 420px;
  position: relative;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: none;
  border: none;
  color: #666;
  font-size: 1.6rem;
  cursor: pointer;
  line-height: 1;
  transition: color 0.2s;
}
.modal-close:hover { color: #fff; }

.modal-logo {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.6rem;
  letter-spacing: 0.05em;
  color: #fff;
  text-align: center;
  margin-bottom: 20px;
}

.modal-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
  text-align: center;
}

.modal-sub {
  color: #888;
  font-size: 0.9rem;
  text-align: center;
  margin-bottom: 24px;
  line-height: 1.5;
}

.modal-error {
  background: rgba(255, 80, 80, 0.12);
  border: 1px solid rgba(255, 80, 80, 0.3);
  color: #ff6b6b;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 0.88rem;
  margin-bottom: 16px;
}

.modal-switch {
  text-align: center;
  color: #666;
  font-size: 0.88rem;
  margin-top: 16px;
}
.modal-switch a {
  color: #f5c518;
  text-decoration: none;
  font-weight: 600;
}
.modal-switch a:hover { text-decoration: underline; }

/* ============================================================
   NAV AUTH BUTTONS
   ============================================================ */
.nav-auth {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-user {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-username {
  color: #f5c518;
  font-weight: 600;
  font-size: 0.9rem;
}

.btn-nav-ghost {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ccc;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}
.btn-nav-ghost:hover {
  border-color: #f5c518;
  color: #f5c518;
}

/* ============================================================
   GUEST NOTICE
   ============================================================ */
.guest-notice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: rgba(245, 197, 24, 0.08);
  border: 1px solid rgba(245, 197, 24, 0.2);
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 0.88rem;
  color: #bbb;
  margin-bottom: 8px;
  line-height: 1.5;
}
.guest-notice svg { flex-shrink: 0; margin-top: 2px; color: #f5c518; }
.guest-notice a { color: #f5c518; font-weight: 600; text-decoration: none; }
.guest-notice a:hover { text-decoration: underline; }
.guest-notice strong { color: #f5c518; }

@media (max-width: 640px) {
  .nav-auth { gap: 6px; }
  .btn-nav-ghost { padding: 6px 10px; font-size: 0.82rem; }
  .modal-box { padding: 28px 20px; }
}
