/* ─── VARIABLES ───────────────────────────────────────────────────────────── */
:root {
  --bg: #050810;
  --bg2: #0a0d1a;
  --surface: rgba(255,255,255,0.04);
  --surface2: rgba(255,255,255,0.07);
  --border: rgba(255,255,255,0.08);
  --border-accent: rgba(0,245,255,0.3);
  --cyan: #00f5ff;
  --purple: #7b2dff;
  --pink: #ff2d78;
  --text: #e8eaf0;
  --text-muted: #6b7280;
  --text-dim: #9ca3af;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 8px 40px rgba(0,0,0,0.6);
  --glow-cyan: 0 0 30px rgba(0,245,255,0.2);
  --glow-purple: 0 0 30px rgba(123,45,255,0.2);
  --font-display: 'Orbitron', sans-serif;
  --font-ui: 'Rajdhani', sans-serif;
  --font-body: 'Inter', sans-serif;
}

/* ─── RESET ───────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  background: var(--bg); color: var(--text); font-family: var(--font-body);
  line-height: 1.6; overflow-x: hidden; min-height: 100vh;
}
a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
.hidden { display: none !important; }

/* ─── BACKGROUNDS ─────────────────────────────────────────────────────────── */
.bg-grid {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image: linear-gradient(rgba(0,245,255,0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(0,245,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
}
.bg-glow { position: fixed; border-radius: 50%; pointer-events: none; z-index: 0; filter: blur(120px); opacity: 0.12; }
.glow-1 { width: 600px; height: 600px; background: var(--cyan); top: -200px; right: -100px; animation: glowDrift 12s ease-in-out infinite alternate; }
.glow-2 { width: 500px; height: 500px; background: var(--purple); bottom: -100px; left: -150px; animation: glowDrift 15s ease-in-out infinite alternate-reverse; }
@keyframes glowDrift { from { transform: translate(0,0) scale(1); } to { transform: translate(40px,30px) scale(1.1); } }
.particles { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.particle { position: absolute; width: 2px; height: 2px; border-radius: 50%; background: var(--cyan); opacity: 0; animation: particleFloat linear infinite; }
@keyframes particleFloat { 0% { transform: translateY(100vh) translateX(0); opacity: 0; } 10% { opacity: 0.6; } 90% { opacity: 0.3; } 100% { transform: translateY(-100px) translateX(var(--dx,30px)); opacity: 0; } }

/* ─── LAYOUT ──────────────────────────────────────────────────────────────── */
.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; position: relative; z-index: 1; }

/* ─── ERROR TOAST (FIXED GLOBAL) ─────────────────────────────────────────── */
.error-toast {
  position: fixed; top: 20px; right: 20px; z-index: 99999;
  display: flex; align-items: center; gap: 12px;
  padding: 16px 24px; border-radius: var(--radius-sm);
  background: rgba(255, 45, 120, 0.95); border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff; font-size: 0.95rem; font-weight: 500; font-family: var(--font-ui);
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  animation: fadeInDown 0.3s ease;
}
.error-toast.info { background: rgba(0, 245, 255, 0.95); color: #000; border-color: rgba(255,255,255,0.3); }
.error-toast i.fa-triangle-exclamation { color: #fff; }
.error-toast.info i.fa-triangle-exclamation { color: #000; }
.toast-close { color: inherit; font-size: 1rem; margin-left: auto; cursor: pointer; opacity: 0.8; }
.toast-close:hover { opacity: 1; }
@keyframes fadeInDown { from { transform: translateY(-20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

/* ─── NAVBAR ──────────────────────────────────────────────────────────────── */
.navbar { position: fixed; top: 0; left: 0; right: 0; z-index: 100; background: rgba(5,8,16,0.85); backdrop-filter: blur(20px); border-bottom: 1px solid var(--border); transition: box-shadow 0.3s; }
.navbar.scrolled { box-shadow: 0 4px 30px rgba(0,0,0,0.5); }
.nav-inner { max-width: 1100px; margin: 0 auto; padding: 0 24px; height: 68px; display: flex; align-items: center; }
.nav-logo { display: flex; align-items: center; gap: 10px; margin-right: 32px; }
.logo-icon { font-size: 1.4rem; color: var(--cyan); }
.logo-text { font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; letter-spacing: 1px; }
.logo-text .accent { color: var(--cyan); }

.nav-links { display: flex; gap: 8px; margin-right: auto; }
.nav-link { font-family: var(--font-ui); font-weight: 600; font-size: 0.95rem; padding: 6px 16px; border-radius: 8px; color: var(--text-dim); transition: color 0.2s, background 0.2s; letter-spacing: 0.5px; }
.nav-link:hover { color: var(--text); background: var(--surface2); }

.nav-actions { display: flex; align-items: center; gap: 12px; }
.lang-btn { display: flex; align-items: center; gap: 8px; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--border); color: var(--text); padding: 8px 16px; border-radius: 20px; font-family: var(--font-ui); font-weight: 700; font-size: 0.9rem; cursor: pointer; transition: all 0.3s; }
.lang-btn:hover { background: rgba(0, 245, 255, 0.1); border-color: var(--cyan); color: var(--cyan); box-shadow: var(--glow-cyan); }
.nav-profile { display: flex; align-items: center; gap: 12px; background: var(--surface2); padding: 4px 12px 4px 4px; border-radius: 30px; border: 1px solid var(--border); }
.nav-profile img { width: 36px; height: 36px; border-radius: 50%; border: 2px solid var(--cyan); }
.profile-info { display: flex; flex-direction: column; line-height: 1.2; }
.p-name { font-family: var(--font-ui); font-size: 0.9rem; font-weight: 700; color: #fff; }
.p-tier { font-size: 0.75rem; font-weight: bold; }
.badge-free { color: var(--pink); }
.badge-premium { color: #f1c40f; text-shadow: 0 0 10px rgba(241,196,15,0.5); }
.logout-icon { color: var(--text-muted); padding: 5px; margin-left: 8px; transition: color 0.3s; }
.logout-icon:hover { color: var(--pink); }

.nav-toggle { display: none; flex-direction: column; gap: 5px; padding: 6px; margin-left: 10px; }
.nav-toggle span { width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: 0.3s; }
.nav-mobile { display: none; padding: 12px 24px 20px; flex-direction: column; gap: 4px; border-top: 1px solid var(--border); background: rgba(5,8,16,0.98); position: absolute; top: 68px; left: 0; width: 100%; box-shadow: var(--shadow); }
.nav-mobile a { padding: 10px 16px; border-radius: 8px; font-family: var(--font-ui); font-weight: 600; color: var(--text-dim); transition: 0.2s; }
.nav-mobile a:hover { background: var(--surface2); color: var(--text); }
.nav-mobile.open { display: flex; }

/* ─── HERO ────────────────────────────────────────────────────────────────── */
.hero { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 120px 24px 80px; position: relative; z-index: 1; gap: 60px; flex-wrap: wrap; }
.hero-content { flex: 1; min-width: 300px; max-width: 580px; }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-ui); font-size: 0.85rem; font-weight: 600; letter-spacing: 1px; color: var(--cyan); border: 1px solid rgba(0,245,255,0.3); padding: 6px 16px; border-radius: 20px; background: rgba(0,245,255,0.06); margin-bottom: 28px; animation: fadeSlideUp 0.6s ease both; }
.hero-title { font-family: var(--font-display); font-weight: 900; font-size: clamp(2.2rem, 5vw, 4rem); line-height: 1.1; letter-spacing: 2px; margin-bottom: 24px; animation: fadeSlideUp 0.6s 0.1s ease both; }
.title-line { display: block; }
.accent-line { background: linear-gradient(90deg, var(--cyan), var(--purple)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero-sub { font-size: 1.05rem; color: var(--text-dim); margin-bottom: 32px; line-height: 1.7; animation: fadeSlideUp 0.6s 0.2s ease both; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 10px; animation: fadeSlideUp 0.6s 0.3s ease both; }
.stat-pill { display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); font-family: var(--font-ui); font-size: 0.85rem; font-weight: 600; color: var(--text-dim); transition: 0.2s; }
.stat-pill i { color: var(--cyan); }
.stat-pill:hover { border-color: var(--border-accent); color: var(--text); }
.hero-visual { flex: 1; min-width: 260px; max-width: 440px; display: flex; justify-content: center; animation: fadeSlideUp 0.6s 0.4s ease both; }
.wave-container { width: 100%; padding: 40px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); position: relative; overflow: hidden; }
.wave-container::before { content:''; position:absolute; inset:0; background: linear-gradient(135deg,rgba(0,245,255,0.04),rgba(123,45,255,0.04)); }
.wave-svg { width: 100%; }
.wave-line { stroke-dasharray: 1000; stroke-dashoffset: 1000; animation: drawWave 2s ease forwards 0.6s; }
@keyframes drawWave { to { stroke-dashoffset: 0; } }
@keyframes fadeSlideUp { from { opacity:0; transform:translateY(24px); } to { opacity:1; transform:translateY(0); } }

/* ─── TABS & UPLOAD UI ────────────────────────────────────────────────────── */
.input-tabs { display: flex; gap: 10px; margin-bottom: 20px; background: rgba(255, 255, 255, 0.03); padding: 5px; border-radius: 12px; }
.tab-btn { flex: 1; background: transparent; color: #888; border: none; padding: 12px; font-family: 'Rajdhani', sans-serif; font-size: 1rem; font-weight: 600; border-radius: 8px; cursor: pointer; transition: all 0.3s ease; }
.tab-btn.active { background: rgba(0, 245, 255, 0.1); color: #00f5ff; }
.upload-zone { border: 2px dashed rgba(255, 255, 255, 0.2); border-radius: 15px; padding: 40px 20px; text-align: center; cursor: pointer; transition: all 0.3s ease; background: rgba(0, 0, 0, 0.2); }
.upload-zone:hover { border-color: #7b2dff; background: rgba(123, 45, 255, 0.05); }
.upload-icon-wrap { font-size: 2.5rem; color: rgba(255, 255, 255, 0.6); margin-bottom: 15px; }
.upload-zone h4 { font-family: 'Rajdhani', sans-serif; font-size: 1.3rem; color: #fff; margin-bottom: 5px; word-break: break-all; }

/* ─── CONVERTER SECTION ───────────────────────────────────────────────────── */
.converter-section { padding: 100px 0; position: relative; z-index: 1; }
.section-header { text-align: center; margin-bottom: 56px; }
.section-tag { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-ui); font-size: 0.8rem; font-weight: 700; letter-spacing: 2px; color: var(--cyan); text-transform: uppercase; margin-bottom: 12px; }
.section-title { font-family: var(--font-display); font-size: clamp(1.8rem,3vw,2.8rem); font-weight: 900; letter-spacing: 2px; margin-bottom: 12px; }
.section-desc { color: var(--text-dim); font-size: 1rem; max-width: 480px; margin: 0 auto; }
.converter-card { max-width: 680px; margin: 0 auto; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 48px 40px; box-shadow: var(--shadow), var(--glow-cyan); position: relative; overflow: hidden; transition: box-shadow 0.3s; }
.converter-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, var(--cyan), var(--purple), var(--pink)); }
.converter-card:hover { box-shadow: var(--shadow), 0 0 60px rgba(0,245,255,0.15); }
.step { animation: fadeIn 0.4s ease; }
@keyframes fadeIn { from{opacity:0;transform:translateY(12px)} to{opacity:1;transform:translateY(0)} }
.input-group { display: flex; align-items: center; gap: 0; border: 1px solid var(--border); border-radius: var(--radius-sm); background: rgba(0,0,0,0.3); overflow: hidden; transition: border-color 0.2s, box-shadow 0.2s; margin-bottom: 16px; }
.input-group:focus-within { border-color: var(--border-accent); box-shadow: var(--glow-cyan); }
.input-icon { padding: 0 16px; color: var(--pink); font-size: 1.2rem; }
.url-input { flex: 1; padding: 16px 0; background: none; border: none; outline: none; font-family: var(--font-body); font-size: 0.95rem; color: var(--text); min-width: 0; }
.paste-btn { padding: 0 16px; height: 100%; color: var(--text-muted); font-size: 1rem; transition: color 0.2s; border-left: 1px solid var(--border); }
.paste-btn:hover { color: var(--cyan); }

/* ─── QUOTA WARNING ───────────────────────────────────────────────────────── */
.quota-warning {
  display: flex; align-items: flex-start; gap: 16px;
  background: rgba(255, 45, 120, 0.1); border: 1px solid var(--pink);
  padding: 16px 20px; border-radius: var(--radius-sm); margin-bottom: 24px;
  animation: fadeIn 0.4s ease;
}
.qw-icon { color: var(--pink); font-size: 1.6rem; margin-top: 2px; }
.qw-content h4 { font-family: var(--font-ui); font-size: 1.15rem; color: #fff; margin-bottom: 4px; }
.qw-content p { font-size: 0.9rem; color: var(--text-dim); line-height: 1.5; }
.qw-content a.accent { font-weight: 600; text-decoration: underline; cursor: pointer; transition: color 0.2s; }
.qw-content a.accent:hover { color: #fff; }

/* Buttons */
.btn-primary { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; padding: 16px; border-radius: var(--radius-sm); background: linear-gradient(135deg, var(--cyan), var(--purple)); color: #fff; font-family: var(--font-ui); font-size: 1.05rem; font-weight: 700; letter-spacing: 1px; position: relative; overflow: hidden; transition: transform 0.15s, box-shadow 0.15s; box-shadow: 0 4px 20px rgba(0,245,255,0.25); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(0,245,255,0.35); }
.btn-primary:active { transform: translateY(0); }
.btn-primary .btn-text { position: relative; z-index: 1; display: flex; align-items: center; gap: 8px; }
.btn-glow { position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent); transform: translateX(-100%); transition: transform 0.5s; }
.btn-primary:hover .btn-glow { transform: translateX(100%); }
.btn-secondary { display: flex; align-items: center; gap: 8px; padding: 14px 24px; border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--surface2); color: var(--text-dim); font-family: var(--font-ui); font-weight: 600; font-size: 0.95rem; transition: 0.2s; }
.btn-secondary:hover { border-color: var(--border-accent); color: var(--text); }
.btn-ghost { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; padding: 12px; border-radius: var(--radius-sm); color: var(--text-muted); font-family: var(--font-ui); font-size: 0.9rem; font-weight: 600; transition: 0.2s; margin-top: 8px; }
.btn-ghost:hover { color: var(--text); background: var(--surface2); }
.btn-download { display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; padding: 18px; border-radius: var(--radius-sm); background: linear-gradient(135deg, #00c853, #00e676); color: #000; font-family: var(--font-ui); font-size: 1.1rem; font-weight: 700; letter-spacing: 1px; position: relative; overflow: hidden; margin-bottom: 12px; box-shadow: 0 4px 20px rgba(0,200,83,0.3); transition: transform 0.15s, box-shadow 0.15s; }
.btn-download:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(0,200,83,0.4); }

.input-hint { text-align: center; font-size: 0.8rem; color: var(--text-muted); margin-top: 12px; }
.input-hint i { color: var(--cyan); }

/* Track Card & Progress */
.track-card { display: flex; gap: 20px; align-items: center; padding: 20px; border-radius: var(--radius-sm); background: rgba(0,0,0,0.3); border: 1px solid var(--border); margin-bottom: 24px; }
.track-thumb { position: relative; width: 90px; height: 90px; border-radius: 8px; overflow: hidden; flex-shrink: 0; }
.track-thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.4); display: flex; align-items: center; justify-content: center; color: white; font-size: 1.4rem; opacity: 0; transition: 0.2s; }
.track-thumb:hover .thumb-overlay { opacity: 1; }
.track-info { flex: 1; min-width: 0; }
.track-title { font-family: var(--font-ui); font-weight: 700; font-size: 1rem; margin-bottom: 4px; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.track-author { color: var(--text-muted); font-size: 0.85rem; margin-bottom: 10px; }
.track-meta { display: flex; gap: 12px; font-size: 0.8rem; color: var(--text-dim); }
.track-meta i { color: var(--cyan); }
.convert-actions { display: flex; gap: 12px; align-items: stretch; }
.convert-actions .btn-primary { flex: 1; }

.progress-display { text-align: center; padding: 20px 0; }
.progress-icon { position: relative; width: 80px; height: 80px; margin: 0 auto 24px; }
.spin-ring { position: absolute; inset: 0; border-radius: 50%; border: 3px solid var(--border); border-top-color: var(--cyan); border-right-color: var(--purple); animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.progress-icon i { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 1.6rem; color: var(--cyan); }
.progress-label { font-family: var(--font-display); font-size: 1.1rem; letter-spacing: 1px; margin-bottom: 8px; }
.progress-sub { color: var(--text-muted); font-size: 0.85rem; margin-bottom: 24px; }
.progress-bar-wrap { height: 6px; background: var(--border); border-radius: 3px; overflow: hidden; margin-bottom: 20px; }
.progress-bar { height: 100%; border-radius: 3px; background: linear-gradient(90deg,var(--cyan),var(--purple)); width: 0%; transition: width 0.5s ease; }
.progress-steps { display: flex; justify-content: center; gap: 24px; }
.pstep { font-family: var(--font-ui); font-size: 0.8rem; font-weight: 600; color: var(--text-muted); display: flex; align-items: center; gap: 6px; transition: color 0.3s; }
.pstep.active { color: var(--cyan); }
.pstep.done { color: #00c853; }
.done-display { text-align: center; padding: 20px 0; }
.done-icon { font-size: 4rem; color: #00c853; margin-bottom: 16px; animation: popIn 0.4s ease; }
@keyframes popIn { from{transform:scale(0.5);opacity:0} to{transform:scale(1);opacity:1} }
.done-title { font-family: var(--font-display); font-size: 1.5rem; letter-spacing: 1px; margin-bottom: 8px; }
.done-sub { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 28px; }

/* ─── PRICING CARDS ───────────────────────────────────────────────────────── */
.pricing-section { padding: 80px 0; background: linear-gradient(180deg, rgba(123,45,255,0.05), transparent); }
.pricing-grid { display: flex; justify-content: center; gap: 30px; flex-wrap: wrap; margin-top: 40px; }
.pricing-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 40px 30px; width: 100%; max-width: 340px; text-align: center; position: relative; transition: transform 0.3s, box-shadow 0.3s; }
.pricing-card:hover { transform: translateY(-10px); border-color: var(--cyan); box-shadow: var(--glow-cyan); }
.pricing-card.popular { border-color: var(--purple); box-shadow: var(--glow-purple); transform: scale(1.05); }
.pricing-card.popular:hover { transform: scale(1.05) translateY(-10px); }
.ribbon { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); background: linear-gradient(90deg, var(--pink), var(--purple)); color: white; font-family: var(--font-ui); font-size: 0.8rem; font-weight: bold; padding: 4px 16px; border-radius: 20px; box-shadow: 0 4px 15px rgba(255,45,120,0.4); }
.pricing-card h3 { font-family: var(--font-display); font-size: 1.2rem; color: var(--text-dim); margin-bottom: 15px; }
.price { font-family: var(--font-display); font-size: 2.5rem; font-weight: 900; color: #fff; margin-bottom: 30px; }
.features-list { list-style: none; text-align: left; margin-bottom: 30px; }
.features-list li { padding: 10px 0; color: var(--text); font-size: 0.95rem; border-bottom: 1px solid var(--border); }
.features-list i { color: #00c853; margin-right: 10px; }
.buy-btn { width: 100%; border-radius: 8px; }
.premium-time { font-size: 0.7rem; color: #f1c40f; margin-top: -2px; display: block; opacity: 0.8; }

/* ─── FEATURES ────────────────────────────────────────────────────────────── */
.features-section { padding: 80px 0; position: relative; z-index: 1; }
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px,1fr)); gap: 20px; }
.feature-card { padding: 32px 28px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s; }
.feature-card:hover { transform: translateY(-4px); border-color: var(--border-accent); box-shadow: var(--glow-cyan); }
.feat-icon { font-size: 1.8rem; color: var(--cyan); margin-bottom: 16px; }
.feature-card h3 { font-family: var(--font-ui); font-weight: 700; font-size: 1.1rem; margin-bottom: 10px; letter-spacing: 0.5px; }
.feature-card p { color: var(--text-muted); font-size: 0.88rem; line-height: 1.65; }

/* ─── HOW IT WORKS ────────────────────────────────────────────────────────── */
.howto-section { padding: 80px 0; position: relative; z-index: 1; }
.steps-row { display: flex; align-items: flex-start; gap: 0; flex-wrap: wrap; justify-content: center; }
.step-item { flex: 1; min-width: 200px; max-width: 280px; text-align: center; padding: 0 20px; }
.step-connector { flex: 0 0 60px; height: 2px; background: linear-gradient(90deg,var(--cyan),var(--purple)); margin-top: 36px; align-self: flex-start; }
.step-num { font-family: var(--font-display); font-size: 3rem; font-weight: 900; background: linear-gradient(135deg,var(--cyan),var(--purple)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; line-height: 1; margin-bottom: 16px; }
.step-body h3 { font-family: var(--font-ui); font-weight: 700; font-size: 1.05rem; margin-bottom: 8px; }
.step-body p { color: var(--text-muted); font-size: 0.85rem; line-height: 1.6; }

/* ─── MODAL CHECKOUT ──────────────────────────────────────────────────────── */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.8); backdrop-filter: blur(5px); display: flex; align-items: center; justify-content: center; z-index: 999; animation: fadeIn 0.3s ease; padding: 20px; }
.modal-content { background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius); padding: 30px; max-width: 450px; width: 100%; position: relative; box-shadow: 0 10px 40px rgba(0,0,0,0.8), var(--glow-cyan); }
.modal-close { position: absolute; top: 15px; right: 20px; color: var(--text-muted); font-size: 1.2rem; transition: 0.3s; }
.modal-close:hover { color: var(--pink); }
.modal-header { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; }
.modal-header i { font-size: 1.5rem; color: var(--cyan); }
.modal-title { font-family: var(--font-display); font-size: 1.3rem; }
.checkout-info { background: var(--surface); padding: 15px; border-radius: 8px; border-left: 3px solid var(--cyan); margin-bottom: 20px; font-family: var(--font-ui); font-size: 1.1rem; }
.modal-desc { font-size: 0.9rem; color: var(--text-dim); margin-bottom: 20px; line-height: 1.5; }
.checkout-options { display: flex; flex-direction: column; gap: 12px; }
.btn-discord { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; padding: 16px; border-radius: var(--radius-sm); background: #5865F2; color: #fff; font-family: var(--font-ui); font-size: 1.05rem; font-weight: 700; transition: transform 0.15s, box-shadow 0.15s; }
.btn-discord:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(88,101,242,0.4); }

/* ─── FOOTER & LEGAL ──────────────────────────────────────────────────────── */
.footer { padding: 60px 0 30px; border-top: 1px solid var(--border); position: relative; z-index: 1; }
.footer-top { display: flex; gap: 60px; flex-wrap: wrap; margin-bottom: 48px; }
.footer-brand { flex: 1; min-width: 220px; }
.footer-brand .nav-logo { margin-bottom: 12px; }
.footer-brand p { color: var(--text-muted); font-size: 0.85rem; line-height: 1.6; max-width: 260px; }
.footer-links { display: flex; gap: 60px; }
.link-col { display: flex; flex-direction: column; gap: 8px; }
.link-col h4 { font-family: var(--font-ui); font-weight: 700; font-size: 0.8rem; letter-spacing: 2px; text-transform: uppercase; color: var(--text-muted); margin-bottom: 4px; }
.link-col a { font-size: 0.88rem; color: var(--text-dim); transition: color 0.2s; }
.link-col a:hover { color: var(--cyan); }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 24px; display: flex; flex-direction: column; gap: 6px; }
.footer-bottom p { font-size: 0.8rem; color: var(--text-muted); }
.footer-disclaimer { font-size: 0.72rem !important; color: var(--text-muted); opacity: 0.6; }

.legal-page { padding: 120px 24px 80px; max-width: 800px; margin: 0 auto; position: relative; z-index: 1; }
.legal-page h1 { font-family: var(--font-display); font-size: 2.2rem; font-weight: 900; letter-spacing: 2px; margin-bottom: 8px; }
.legal-date { color: var(--text-muted); font-size: 0.85rem; margin-bottom: 48px; }
.legal-page h2 { font-family: var(--font-ui); font-size: 1.15rem; font-weight: 700; margin: 36px 0 12px; color: var(--cyan); }
.legal-page p, .legal-page li { color: var(--text-dim); font-size: 0.9rem; line-height: 1.75; margin-bottom: 12px; }
.legal-page ul { padding-left: 20px; }
.legal-page li { margin-bottom: 6px; }
.legal-page a { color: var(--cyan); }

.faq-item { border: 1px solid var(--border); border-radius: var(--radius-sm); margin-bottom: 12px; overflow: hidden; }
.faq-q { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; font-family: var(--font-ui); font-weight: 600; font-size: 0.95rem; cursor: pointer; transition: background 0.2s; gap: 12px; }
.faq-q:hover { background: var(--surface2); }
.faq-q i { color: var(--cyan); font-size: 0.8rem; transition: transform 0.3s; flex-shrink: 0; }
.faq-a { padding: 0 22px; max-height: 0; overflow: hidden; transition: max-height 0.3s ease, padding 0.3s; }
.faq-a p { color: var(--text-muted); font-size: 0.875rem; line-height: 1.7; }
.faq-item.open .faq-a { max-height: 200px; padding-bottom: 18px; }
.faq-item.open .faq-q i { transform: rotate(180deg); }

/* ─── 404 ─────────────────────────────────────────────────────────────────── */
.page-404 { min-height: 100vh; display: flex; align-items: center; justify-content: center; text-align: center; padding: 40px 24px; position: relative; z-index: 1; }
.page-404 .num { font-family: var(--font-display); font-size: 8rem; font-weight: 900; background: linear-gradient(135deg,var(--cyan),var(--purple)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; line-height: 1; margin-bottom: 16px; }

/* ─── RESPONSIVE ──────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  #navDesktopLinks { display: none; }
  .nav-actions { gap: 8px; } /* Tambahkan ini agar jarak tombol di Navbar HP lebih merapat */
  .lang-btn { padding: 6px 12px; font-size: 0.8rem; } /* Kecilkan sedikit tombol bahasa */
  .nav-logo { margin-right: auto; }
  .nav-toggle { display: flex; }
  .nav-profile .p-name { display: none; } /* Hide Name for compact look */
  .hero { flex-direction: column; text-align: center; }
  .hero-stats { justify-content: center; }
  .hero-actions { justify-content: center; }
  .hero-visual { max-width: 100%; }
  .converter-card { padding: 32px 20px; }
  .convert-actions { flex-direction: column; }
  .track-card { flex-direction: column; text-align: center; }
  .track-thumb { width: 120px; height: 120px; margin: 0 auto; }
  .steps-row { flex-direction: column; align-items: center; }
  .step-connector { display: none; }
  .footer-top { flex-direction: column; gap: 36px; }
  .footer-links { flex-direction: column; gap: 28px; }
}