/* ========== DJSPOTYX - Liquid Gradient Design System ========== */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Outfit:wght@300;400;500;600;700&display=swap');

:root,
[data-theme="dark"] {
  /* Liquid Gradient Theme */
  --bg-dark: #0d0d11;
  --bg-card: rgba(255, 255, 255, 0.04);
  --bg-card-hover: rgba(255, 255, 255, 0.07);
  --bg-input: rgba(255, 255, 255, 0.05);
  --border: rgba(255, 255, 255, 0.08);
  /* Color theme system — everything derives from --theme-hue */
  --theme-hue: 263; /* violet by default */
  --theme-primary: hsl(var(--theme-hue), 77%, 55%);
  --theme-glow: hsla(var(--theme-hue), 77%, 55%, 0.25);
  --theme-secondary: hsl(calc(var(--theme-hue) + 30), 85%, 60%);
  --theme-tertiary: hsl(calc(var(--theme-hue) + 120), 80%, 60%);

  --border-glow: hsl(var(--theme-hue), 77%, 55%);
  --primary: hsl(var(--theme-hue), 77%, 55%);
  --primary-hover: hsl(var(--theme-hue), 77%, 45%);
  --primary-glow: hsla(var(--theme-hue), 77%, 55%, 0.25);
  --accent: #34d399;
  --accent-glow: rgba(52, 211, 153, 0.25);
  --spotify-green: #1db954;
  --text: #e8eaed;
  --text-dim: rgba(255, 255, 255, 0.45);
  --text-bright: #ffffff;
  --danger: #f87171;
  --warning: #fbbf24;
  --gradient-primary: linear-gradient(135deg, hsl(var(--theme-hue), 77%, 55%), hsl(calc(var(--theme-hue) + 30), 85%, 60%), hsl(calc(var(--theme-hue) + 120), 80%, 60%));
  --gradient-dark: linear-gradient(180deg, #0d0d11 0%, #13131a 100%);
  --shadow-glow: 0 0 40px hsla(var(--theme-hue), 77%, 55%, 0.12);
  --shadow-card: 0 4px 30px rgba(0, 0, 0, 0.3);
  --surface: rgba(255, 255, 255, 0.03);
  --text-secondary: rgba(255, 255, 255, 0.45);
  --navbar-bg: rgba(13, 13, 17, 0.8);
  --navbar-bg-scrolled: rgba(13, 13, 17, 0.95);
  --navbar-border: rgba(255, 255, 255, 0.06);
  --loading-overlay-bg: rgba(13, 13, 17, 0.85);
  --mobile-overlay-bg: rgba(0, 0, 0, 0.6);
  --input-placeholder: rgba(255, 255, 255, 0.25);
  --divider-subtle: rgba(255, 255, 255, 0.06);
  --chatbot-input-bg: rgba(0, 0, 0, 0.3);

  /* Unified spacing system */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;

  /* Unified radius system */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-full: 9999px;
}

/* ========== Color Theme Presets ========== */
[data-color-theme="violet"] { --theme-hue: 263; }
[data-color-theme="fuchsia"] { --theme-hue: 293; }
[data-color-theme="cyan"] { --theme-hue: 190; }
[data-color-theme="emerald"] { --theme-hue: 160; }
[data-color-theme="amber"] { --theme-hue: 38; }
[data-color-theme="rose"] { --theme-hue: 350; }
[data-color-theme="blue"] { --theme-hue: 220; }
[data-color-theme="red"] { --theme-hue: 0; }

/* ========== Light Theme ========== */
[data-theme="light"] {
  --bg-dark: #f0f2f5;
  --bg-card: #ffffff;
  --bg-card-hover: #f5f3ff;
  --bg-input: #f1f5f9;
  --border: #d4d4e0;
  --border-glow: hsl(var(--theme-hue), 77%, 55%);
  --primary: hsl(var(--theme-hue), 77%, 45%);
  --primary-hover: hsl(var(--theme-hue), 77%, 38%);
  --primary-glow: hsla(var(--theme-hue), 77%, 45%, 0.2);
  --accent: #059669;
  --accent-glow: rgba(5, 150, 105, 0.2);
  --spotify-green: #1db954;
  --text: #1e293b;
  --text-dim: #64748b;
  --text-bright: #0f172a;
  --danger: #dc2626;
  --warning: #d97706;
  --gradient-primary: linear-gradient(135deg, hsl(var(--theme-hue), 77%, 45%), #059669);
  --gradient-dark: linear-gradient(180deg, #f0f2f5 0%, #ffffff 100%);
  --shadow-glow: 0 0 30px hsla(var(--theme-hue), 77%, 45%, 0.1);
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.08);
  --surface: #f8fafc;
  --text-secondary: #64748b;
  --navbar-bg: rgba(255, 255, 255, 0.85);
  --navbar-bg-scrolled: rgba(255, 255, 255, 0.95);
  --navbar-border: rgba(212, 212, 224, 0.8);
  --loading-overlay-bg: rgba(240, 242, 245, 0.85);
  --mobile-overlay-bg: rgba(0, 0, 0, 0.3);
  --input-placeholder: #94a3b8;
  --divider-subtle: rgba(0, 0, 0, 0.06);
  --chatbot-input-bg: rgba(241, 245, 249, 0.8);
}

/* Light mode overrides for elements with hardcoded dark colors */
[data-theme="light"] .bg-animation {
  background:
    radial-gradient(ellipse 80% 60% at 20% 50%, hsla(var(--theme-hue), 77%, 45%, 0.05) 0%, transparent 50%),
    radial-gradient(ellipse 60% 80% at 80% 20%, hsla(calc(var(--theme-hue) + 30), 85%, 60%, 0.04) 0%, transparent 50%),
    radial-gradient(ellipse 70% 50% at 50% 80%, hsla(calc(var(--theme-hue) + 120), 80%, 60%, 0.03) 0%, transparent 50%);
}

[data-theme="light"] .navbar {
  background: var(--navbar-bg);
  border-bottom-color: var(--navbar-border);
}
[data-theme="light"] .navbar.scrolled {
  background: var(--navbar-bg-scrolled);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .loading-overlay {
  background: var(--loading-overlay-bg);
}

[data-theme="light"] .mobile-menu-overlay {
  background: var(--mobile-overlay-bg);
}

[data-theme="light"] .form-group input::placeholder,
[data-theme="light"] .url-input::placeholder {
  color: var(--input-placeholder);
}

[data-theme="light"] .mobile-menu-links .mobile-nav-divider,
[data-theme="light"] .mobile-menu-links .mobile-nav-user {
  border-bottom-color: var(--divider-subtle);
}
[data-theme="light"] .mobile-menu-links .mobile-nav-logout {
  border-top-color: var(--divider-subtle);
}

[data-theme="light"] .chatbot-input-area {
  background: var(--chatbot-input-bg);
}

[data-theme="light"] .chatbot-suggestions {
  border-top-color: var(--divider-subtle);
}

[data-theme="light"] .chatbot-window {
  box-shadow: 0 10px 50px rgba(0, 0, 0, 0.15), 0 0 30px rgba(124, 58, 237, 0.08);
}

[data-theme="light"] .auth-showcase {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.06) 0%, rgba(5, 150, 105, 0.04) 50%, rgba(124, 58, 237, 0.03) 100%);
}

[data-theme="light"] .auth-form-side {
  background: rgba(255, 255, 255, 0.8);
}

[data-theme="light"] .auth-stat {
  background: rgba(0, 0, 0, 0.02);
  border-color: rgba(124, 58, 237, 0.15);
}

[data-theme="light"] .auth-feature-item {
  background: rgba(0, 0, 0, 0.02);
  border-color: rgba(124, 58, 237, 0.1);
}

[data-theme="light"] .auth-compare-table {
  background: rgba(0, 0, 0, 0.02);
}

[data-theme="light"] .auth-plan-chip {
  background: rgba(0, 0, 0, 0.03);
  border-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .sidebar-banner {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.06), rgba(248, 250, 252, 0.9));
}

[data-theme="light"] .stat-box {
  background: rgba(0, 0, 0, 0.03);
}

[data-theme="light"] .referral-item {
  border-bottom-color: var(--divider-subtle);
}

[data-theme="light"] .compare-row {
  border-bottom-color: var(--divider-subtle);
}

[data-theme="light"] .ranking-table tbody tr {
  border-bottom-color: var(--divider-subtle);
}

[data-theme="light"] .online-user-item {
  border-bottom-color: var(--divider-subtle);
}

[data-theme="light"] .promo-popup-code-section {
  background: rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .promo-urgent-timer-box {
  background: rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .chart-stat {
  background: rgba(0, 0, 0, 0.03);
}

[data-theme="light"] .charts-row:hover {
  background: rgba(0, 0, 0, 0.03);
}

[data-theme="light"] .charts-row-top {
  background: rgba(255, 165, 0, 0.06);
}
[data-theme="light"] .charts-row-top:hover {
  background: rgba(255, 165, 0, 0.1);
}

[data-theme="light"] .splash-screen {
  background: var(--bg-dark);
}

[data-theme="light"] .king-badge {
  color: #1a1a2e !important;
}
[data-theme="light"] .btn-king {
  color: #1a1a2e !important;
}
[data-theme="light"] .ranking-badge-king {
  color: #1a1a2e !important;
}

[data-theme="light"] .pricing-card.immortal {
  background: linear-gradient(180deg, rgba(180, 20, 0, 0.08) 0%, var(--bg-card) 40%, rgba(255, 60, 0, 0.05) 100%);
}

[data-theme="light"] .promo-code-section {
  border-top-color: var(--divider-subtle);
}

/* ========== Theme Toggle Button ========== */
.theme-toggle {
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 8px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1.1rem;
  line-height: 1;
  padding: 0;
  color: var(--text);
  position: relative;
  overflow: hidden;
}
.theme-toggle:hover {
  border-color: var(--primary);
  background: hsla(var(--theme-hue), 77%, 55%, 0.1);
  transform: scale(1.05);
}
.theme-toggle .theme-icon {
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
}
.theme-toggle:active .theme-icon {
  transform: rotate(30deg) scale(0.9);
}

[data-theme="light"] .theme-toggle {
  background: var(--bg-input);
}
[data-theme="light"] .theme-toggle:hover {
  background: rgba(124, 58, 237, 0.08);
}

/* ========== Splash Screen ========== */
.splash-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-dark);
  z-index: 99999;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

.splash-screen.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.splash-logo {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 3rem;
  font-weight: 900;
  letter-spacing: 6px;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: splash-text 1.5s ease-out;
  margin-bottom: 1.5rem;
}

.splash-logo span {
  -webkit-text-fill-color: var(--accent);
}

@keyframes splash-text {
  0% { opacity: 0; transform: scale(0.8) translateY(20px); letter-spacing: 20px; }
  60% { opacity: 1; }
  100% { transform: scale(1) translateY(0); letter-spacing: 6px; }
}

.splash-bar {
  width: 200px;
  height: 3px;
  background: var(--bg-card);
  border-radius: var(--radius-full);
  overflow: hidden;
  position: relative;
}

.splash-bar::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 40%;
  background: var(--gradient-primary);
  border-radius: var(--radius-full);
  animation: splash-load 1.2s ease-in-out infinite;
}

@keyframes splash-load {
  0% { left: -40%; }
  100% { left: 100%; }
}

.splash-tagline {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--text-dim);
  letter-spacing: 2px;
  text-transform: uppercase;
  animation: splash-fade 1s 0.5s both;
}

@keyframes splash-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ========== Section Reveal Animations ========== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ========== Unified Page Container ========== */
.page-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem var(--space-xl) var(--space-xl);
  position: relative;
  z-index: 1;
}

.page-container--narrow {
  max-width: 700px;
}

.page-container--wide {
  max-width: 1100px;
}

/* ========== Unified Page Header ========== */
.page-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  color: var(--accent);
  margin-bottom: var(--space-lg);
  font-size: 1.5rem;
  letter-spacing: 2px;
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.page-title--with-desc {
  margin-bottom: var(--space-sm);
}

.page-desc {
  color: var(--text-dim);
  margin-bottom: var(--space-xl);
  font-size: 0.95rem;
}

/* ========== Unified Card System ========== */
.card {
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  padding: var(--space-xl);
  margin-bottom: var(--space-xl);
  transition: border-color 0.3s, box-shadow 0.3s, background 0.3s;
}

.card:hover {
  border-color: hsla(var(--theme-hue), 77%, 55%, 0.15);
  box-shadow: 0 4px 30px hsla(var(--theme-hue), 77%, 55%, 0.06);
  background: rgba(255, 255, 255, 0.06);
}

.card-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-bottom: var(--space-md);
  color: var(--text-bright);
}

/* Card variants */
.card--success {
  background: rgba(6, 214, 160, 0.08);
  border-color: rgba(6, 214, 160, 0.3);
}

.card--error {
  background: rgba(239, 68, 68, 0.08);
  border-color: rgba(239, 68, 68, 0.3);
}

.card--highlight {
  background: linear-gradient(135deg, hsla(var(--theme-hue), 77%, 55%, 0.1), hsla(calc(var(--theme-hue) + 30), 85%, 60%, 0.06));
  border-color: hsla(var(--theme-hue), 77%, 55%, 0.2);
}

/* ========== Unified Section Label ========== */
.section-label {
  display: block;
  font-weight: 600;
  color: var(--text-bright);
  margin-bottom: 0.75rem;
}

.section-label--dim {
  color: var(--text-dim);
  font-weight: 500;
  font-size: 0.85rem;
}

/* ========== Utility: Info Box ========== */
.info-box {
  background: var(--bg-input);
  border-radius: var(--radius-md);
  padding: var(--space-md);
}

/* ========== Utility: Flex Row ========== */
.flex-row {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.flex-between {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* ========== Utility: Result Box ========== */
.result-box {
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  text-align: center;
}

.result-box--success {
  background: rgba(6, 214, 160, 0.1);
  border: 1px solid rgba(6, 214, 160, 0.3);
}

.result-box--error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.result-icon {
  font-size: 2.5rem;
  margin-bottom: var(--space-sm);
}

/* ========== Page Transitions ========== */
.page.active {
  display: block;
  animation: page-enter 0.4s ease;
}

@keyframes page-enter {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Outfit', sans-serif;
  background: var(--bg-dark);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 60% at 20% 40%, hsla(var(--theme-hue), 77%, 55%, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse 60% 80% at 80% 20%, hsla(calc(var(--theme-hue) + 30), 85%, 60%, 0.06) 0%, transparent 60%),
    radial-gradient(ellipse 70% 50% at 60% 80%, hsla(calc(var(--theme-hue) + 120), 80%, 60%, 0.05) 0%, transparent 60%);
}

body::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
}

/* ========== Animated Background ========== */
.bg-animation {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 60% at 10% 30%, hsla(var(--theme-hue), 77%, 55%, 0.12) 0%, transparent 55%),
    radial-gradient(ellipse 60% 80% at 85% 15%, hsla(calc(var(--theme-hue) + 30), 85%, 60%, 0.08) 0%, transparent 55%),
    radial-gradient(ellipse 70% 50% at 50% 85%, rgba(56, 189, 248, 0.07) 0%, transparent 55%),
    radial-gradient(circle at 30% 70%, rgba(52, 211, 153, 0.05) 0%, transparent 40%);
  animation: mesh-drift 20s ease-in-out infinite alternate;
}

@keyframes mesh-drift {
  0% { filter: hue-rotate(0deg); }
  50% { filter: hue-rotate(8deg); }
  100% { filter: hue-rotate(-5deg); }
}

/* ========== Typography ========== */
h1, h2, h3, h4, h5, h6, .brand {
  font-family: 'Plus Jakarta Sans', sans-serif;
}

/* ========== Sidebar ========== */
.sidebar {
  position: fixed;
  left: 0; top: 0; bottom: 0;
  width: 240px;
  background: rgba(13, 13, 17, 0.97);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  flex-direction: column;
  z-index: 100;
  overflow-y: auto;
  overflow-x: hidden;
  transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1), width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.sidebar::after {
  content: '';
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: 1px;
  background: linear-gradient(180deg, transparent 0%, hsla(var(--theme-hue), 77%, 55%, 0.4) 30%, hsla(calc(var(--theme-hue) + 30), 85%, 60%, 0.4) 50%, rgba(56, 189, 248, 0.3) 70%, transparent 100%);
  opacity: 0.6;
}
.sidebar::-webkit-scrollbar { width: 4px; }
.sidebar::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }

/* Collapse toggle button — always visible, sits flush at the right edge */
.sidebar-collapse-btn {
  position: absolute;
  top: 16px;
  right: 8px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-dim);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  z-index: 105;
  transition: all 0.25s;
  opacity: 0.7;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.sidebar:hover .sidebar-collapse-btn { opacity: 1; }
.sidebar-collapse-btn:hover {
  background: hsla(var(--theme-hue), 77%, 55%, 0.25);
  border-color: hsla(var(--theme-hue), 77%, 55%, 0.5);
  color: #fff;
  transform: scale(1.08);
}

/* Sidebar links: prevent label overflow (was causing "Distribu", "Downloc" cut-offs) */
.sidebar-link span:not(.sidebar-link-icon) {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}
.sidebar-link { min-width: 0; }

/* Collapsed sidebar state (desktop only) */
.sidebar.sidebar-collapsed { width: 64px; }
.sidebar.sidebar-collapsed .sidebar-collapse-btn { right: 50%; transform: translateX(50%); top: 8px; }
.sidebar.sidebar-collapsed .sidebar-collapse-btn:hover { transform: translateX(50%) scale(1.08); }
.sidebar.sidebar-collapsed .sidebar-header { padding: 56px 8px 12px; }
.sidebar.sidebar-collapsed .sidebar-header .brand-text { display: none; }
.sidebar.sidebar-collapsed .sidebar-header .brand { justify-content: center; }
.sidebar.sidebar-collapsed .sidebar-header .brand img,
.sidebar.sidebar-collapsed .sidebar-header .brand-logo { width: 36px !important; height: 36px !important; }

/* Collapsed: links become uniform 44x44 squares centered */
.sidebar.sidebar-collapsed .sidebar-link {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0;
  margin: 4px auto;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: transparent !important;
  color: var(--text-dim) !important;
}
.sidebar.sidebar-collapsed .sidebar-link:hover {
  background: rgba(255,255,255,0.06) !important;
  color: #fff !important;
}
.sidebar.sidebar-collapsed .sidebar-link.active {
  background: hsla(var(--theme-hue), 77%, 55%, 0.18) !important;
  color: hsl(var(--theme-hue), 77%, 65%) !important;
}
.sidebar.sidebar-collapsed .sidebar-link span:not(.sidebar-link-icon),
.sidebar.sidebar-collapsed .sidebar-link .sidebar-badge { display: none; }
.sidebar.sidebar-collapsed .sidebar-link-icon {
  width: auto;
  font-size: 1.25rem;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Collapsed: section dividers + labels */
.sidebar.sidebar-collapsed .sidebar-section-label {
  font-size: 0;
  padding: 6px 0;
  margin: 4px 0;
}
.sidebar.sidebar-collapsed .sidebar-section-label::after {
  content: '';
  display: block;
  width: 28px;
  height: 1px;
  background: var(--border);
  margin: 0 auto;
}
.sidebar.sidebar-collapsed .sidebar-divider { margin: 8px auto; width: 32px; }

/* Collapsed: footer */
.sidebar.sidebar-collapsed .sidebar-footer { padding: 8px 4px; }
.sidebar.sidebar-collapsed .sidebar-footer .lang-select { display: none; }
.sidebar.sidebar-collapsed .sidebar-user-info {
  justify-content: center;
  padding: 8px 0;
  margin: 4px auto;
  width: 44px;
}
.sidebar.sidebar-collapsed .sidebar-user-info span:last-child { display: none; }
.sidebar.sidebar-collapsed .sidebar-footer .sidebar-link { font-size: 0; }
.sidebar.sidebar-collapsed .sidebar-footer .sidebar-link .sidebar-link-icon { font-size: 1.2rem; }

/* Content offset when collapsed */
.sidebar-collapsed ~ .page.active,
.sidebar-collapsed ~ #page-dashboard,
.sidebar-collapsed ~ .page-container { margin-left: 64px; }

.sidebar-header {
  padding: 1.25rem 50px 1rem 1.25rem; /* extra right padding to clear the collapse button */
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
  position: relative;
}
.sidebar-header .brand { font-size: 1.3rem; display: flex; align-items: center; gap: 8px; }
.sidebar-header .brand span {
  background: linear-gradient(135deg, hsl(var(--theme-hue), 77%, 55%), hsl(calc(var(--theme-hue) + 30), 85%, 60%));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.sidebar-nav {
  flex: 1;
  padding: 0.5rem 0;
  overflow-y: auto;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 20px;
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  font-family: 'Outfit', sans-serif;
  border-radius: 10px;
  margin: 2px 10px;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  border-left: 2px solid transparent;
  cursor: pointer;
  background: none;
  border-right: none;
  border-top: none;
  border-bottom: none;
  width: calc(100% - 20px);
  text-align: left;
}
.sidebar-link:hover {
  color: rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.05);
}
.sidebar-link-active {
  color: #fff !important;
  background: linear-gradient(135deg, hsla(var(--theme-hue), 77%, 55%, 0.15), hsla(calc(var(--theme-hue) + 30), 85%, 60%, 0.08)) !important;
  border-left-color: hsl(var(--theme-hue), 77%, 55%);
  box-shadow: 0 2px 12px hsla(var(--theme-hue), 77%, 55%, 0.1);
  font-weight: 600;
}
.sidebar-link-icon { font-size: 1.05rem; width: 22px; text-align: center; flex-shrink: 0; }

.sidebar-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.06), transparent);
  margin: 8px 20px;
}

.sidebar-section-label {
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: rgba(255, 255, 255, 0.25);
  padding: 16px 20px 6px;
  font-family: 'Plus Jakarta Sans', sans-serif;
}

.sidebar-footer {
  flex-shrink: 0;
  border-top: 1px solid var(--border);
  padding: 0.75rem 0;
}

.sidebar-user-info {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  margin: 8px 10px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.sidebar-user-info .user-plan {
  font-size: 0.6rem;
  padding: 2px 8px;
  border-radius: 6px;
  font-weight: 700;
  letter-spacing: 0.5px;
  background: linear-gradient(135deg, hsl(var(--theme-hue), 77%, 55%), hsl(calc(var(--theme-hue) + 30), 85%, 60%));
  color: #fff;
}
.sidebar-user-info span:last-child {
  font-weight: 600;
  color: var(--text-bright);
  font-size: 0.88rem;
}
.sidebar-footer .sidebar-link { font-size: 0.84rem; padding: 7px 20px; }
.sidebar-footer .lang-select { margin: 4px 20px; width: calc(100% - 40px); }

/* Mobile top bar */
.mobile-topbar {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 56px;
  background: rgba(13, 13, 17, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  z-index: 10001;
  align-items: center;
  padding: 0 16px;
  justify-content: space-between;
}
.mobile-topbar .brand { font-size: 1.15rem; }
.mobile-topbar-right { display: flex; align-items: center; gap: 0.4rem; }

.sidebar-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  padding: 6px;
  transition: all 0.3s;
}
.sidebar-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s;
}
.sidebar-toggle:hover { border-color: var(--primary); }
.sidebar-toggle:hover span { background: var(--primary); }

.sidebar-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--mobile-overlay-bg);
  z-index: 150;
  backdrop-filter: blur(4px);
}
.sidebar-overlay.active { display: block; }

/* Old navbar — hidden */
.navbar { display: none !important; }

/* Language Selector */
.lang-select {
  background: var(--bg-input);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.3rem 0.5rem;
  font-size: 0.8rem;
  cursor: pointer;
  outline: none;
  margin-left: 0.5rem;
}
.lang-select:hover {
  border-color: var(--primary);
}
.lang-select option {
  background: var(--bg-card);
  color: var(--text);
}

.brand {
  font-size: 1.5rem;
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-decoration: none;
  letter-spacing: 2px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.brand-logo {
  height: 32px;
  width: auto;
  -webkit-text-fill-color: initial;
}

.brand span {
  -webkit-text-fill-color: var(--accent);
}

/* Hero logo */
.hero-logo {
  width: 120px;
  height: auto;
  margin: 0 auto 1rem;
  display: block;
  filter: drop-shadow(0 0 20px rgba(6, 214, 160, 0.4));
  animation: heroLogoPulse 3s ease-in-out infinite;
}
@keyframes heroLogoPulse {
  0%, 100% { filter: drop-shadow(0 0 20px rgba(6, 214, 160, 0.4)); }
  50% { filter: drop-shadow(0 0 30px hsla(var(--theme-hue), 77%, 55%, 0.6)); }
}

/* Splash logo */
.splash-logo-img {
  width: 80px;
  height: auto;
  margin-bottom: 1rem;
  animation: splashLogoSpin 1.2s ease-out;
}
@keyframes splashLogoSpin {
  0% { transform: scale(0.3) rotate(-180deg); opacity: 0; }
  100% { transform: scale(1) rotate(0deg); opacity: 1; }
}

.nav-right-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-links {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.nav-links a, .nav-links button {
  font-family: 'Outfit', sans-serif;
  font-size: 0.9rem;
  color: var(--text-dim);
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  transition: all 0.3s;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-links a:hover, .nav-links button:hover {
  color: var(--text-bright);
  background: var(--bg-card-hover);
}

.nav-user {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Ferramentas dropdown */
.nav-dropdown { position: relative; }
.nav-dropdown-trigger { cursor: pointer; }
.nav-dropdown-menu {
  display: none; position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 0.4rem 0; min-width: 160px; z-index: 1000; margin-top: 0.5rem;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}
.nav-dropdown-menu.open { display: block; }
.nav-dropdown-menu a {
  display: block; padding: 0.5rem 1rem; color: var(--text); font-size: 0.85rem;
  text-decoration: none; white-space: nowrap; transition: background 0.15s;
}
.nav-dropdown-menu a:hover { background: rgba(139,92,246,0.15); color: var(--accent); }

/* Mobile tools section */
.mobile-nav-section-title {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.75rem 1rem; color: var(--accent); font-weight: 600; font-size: 0.9rem;
  cursor: pointer; border-top: 1px solid var(--border); margin-top: 0.25rem;
}
.mobile-nav-section-title:hover { background: rgba(139,92,246,0.1); }
.mobile-nav-tools a { padding-left: 2rem !important; font-size: 0.85rem; }

.nav-user .user-plan {
  font-size: 0.7rem;
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.plan-free {
  background: rgba(148, 163, 184, 0.15);
  color: var(--text-dim);
  border: 1px solid var(--border);
}

.plan-premium {
  background: hsla(var(--theme-hue), 77%, 55%, 0.2);
  color: var(--primary);
  border: 1px solid var(--primary);
  animation: glow-pulse 2s ease-in-out infinite;
}

@keyframes glow-pulse {
  0%, 100% { box-shadow: 0 0 5px var(--primary-glow); }
  50% { box-shadow: 0 0 15px var(--primary-glow); }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.08); opacity: 0.85; }
}

/* ========== Old mobile menu (replaced by sidebar) ========== */
.hamburger, .mobile-menu-overlay, .mobile-menu { display: none !important; }

/* ========== Buttons ========== */
.btn {
  font-family: 'Plus Jakarta Sans', sans-serif;
  padding: 0.75rem 1.5rem;
  border-radius: 12px;
  border: none;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: linear-gradient(135deg, hsl(var(--theme-hue), 77%, 55%), hsl(calc(var(--theme-hue) + 30), 85%, 60%));
  color: white;
  box-shadow: 0 4px 15px var(--primary-glow);
}

.btn-primary:hover {
  background: linear-gradient(135deg, hsl(var(--theme-hue), 77%, 45%), #c026d3);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px var(--primary-glow);
}

.btn-primary::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
  transition: left 0.5s ease;
}

.btn-primary:hover::after {
  left: 100%;
}

.btn-accent {
  background: var(--accent);
  color: var(--bg-dark);
  box-shadow: 0 4px 15px var(--accent-glow);
}

.btn-accent:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px var(--accent-glow);
}

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

.btn-outline:hover {
  border-color: var(--primary);
  background: hsla(var(--theme-hue), 77%, 55%, 0.1);
}

.btn-spotify {
  background: var(--spotify-green);
  color: white;
}

.btn-spotify:hover {
  background: #1ed760;
  transform: translateY(-2px);
}

.btn-lg {
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
  border-radius: 12px;
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
}

.btn-block {
  width: 100%;
  justify-content: center;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
}

/* ========== Landing Page ========== */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 2rem 2rem 2rem;
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: 4rem;
  font-weight: 900;
  letter-spacing: 4px;
  margin-bottom: 1rem;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: title-glow 3s ease-in-out infinite alternate;
}

@keyframes title-glow {
  0% { filter: drop-shadow(0 0 10px var(--primary-glow)); }
  100% { filter: drop-shadow(0 0 30px var(--primary-glow)); }
}

.hero .subtitle {
  font-size: 1.3rem;
  color: var(--text-dim);
  margin-bottom: 0.5rem;
  max-width: 600px;
}

.hero .tagline {
  font-size: 1rem;
  color: var(--accent);
  margin-bottom: 2.5rem;
  font-weight: 500;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  margin-bottom: 3rem;
}

.hero-visual {
  margin-top: 3rem;
  width: 100%;
  max-width: 700px;
}

.demo-input-container {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: var(--shadow-glow);
}

.demo-input-row {
  display: flex;
  gap: 0.75rem;
}

.demo-input {
  flex: 1;
  padding: 1rem 1.25rem;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text-dim);
  font-size: 0.95rem;
  font-family: 'Outfit', sans-serif;
}

/* ========== Features Section ========== */
.features {
  padding: 2rem 2rem;
  position: relative;
  z-index: 1;
}

.section-title {
  text-align: center;
  font-size: 2.2rem;
  margin-bottom: 3rem;
  letter-spacing: 2px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-primary);
  opacity: 0;
  transition: opacity 0.3s;
}

.feature-card:hover {
  border-color: var(--primary);
  transform: translateY(-6px);
  box-shadow: var(--shadow-glow);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  display: inline-block;
  transition: transform 0.3s;
}

.feature-card:hover .feature-icon {
  transform: scale(1.15) rotate(-5deg);
}

.feature-card h3 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1rem;
  margin-bottom: 0.5rem;
  letter-spacing: 1px;
}

.feature-card p {
  color: var(--text-dim);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* ========== Pricing Section ========== */
.pricing {
  padding: 2rem 2rem;
  position: relative;
  z-index: 1;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  max-width: 800px;
  margin: 0 auto;
}

.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}

.pricing-card.featured {
  border-color: var(--primary);
  box-shadow: var(--shadow-glow);
}

.pricing-card.featured::before {
  content: 'POPULAR';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gradient-primary);
  color: white;
  padding: 0.3rem 1.5rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  font-family: 'Plus Jakarta Sans', sans-serif;
  letter-spacing: 2px;
}

.pricing-card h3 {
  font-size: 1.3rem;
  letter-spacing: 2px;
  margin-bottom: 1rem;
}

.pricing-price {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 3rem;
  font-weight: 900;
  margin-bottom: 0.5rem;
}

.pricing-price span {
  font-size: 1rem;
  color: var(--text-dim);
  font-weight: 400;
}

.pricing-promo-desc {
  color: var(--accent);
  font-weight: bold;
  margin: -0.5rem 0 1rem;
  font-size: 0.95rem;
}

.pricing-features {
  list-style: none;
  margin: 1.5rem 0 2rem;
  text-align: left;
}

.pricing-features li {
  padding: 0.5rem 0;
  color: var(--text-dim);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.pricing-features li .check {
  color: var(--accent);
  font-weight: bold;
}

.pricing-features li .cross {
  color: var(--danger);
}

/* ========== Auth Pages — Split Layout ========== */
.auth-container {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem 2rem 2rem;
  position: relative;
  z-index: 1;
}

.auth-split {
  display: flex;
  width: 100%;
  max-width: 1200px;
  min-height: calc(100vh - 8rem);
  gap: 0;
  padding: 4rem 0 2rem;
  align-items: stretch;
}

/* ---- Showcase (left) ---- */
.auth-showcase {
  flex: 1.15;
  background: linear-gradient(135deg, rgba(139,92,246,0.08) 0%, rgba(6,214,160,0.06) 50%, rgba(139,92,246,0.04) 100%);
  border: 1px solid rgba(139,92,246,0.15);
  border-radius: var(--radius-xl) 0 0 var(--radius-xl);
  padding: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.auth-showcase::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 30% 40%, rgba(139,92,246,0.12) 0%, transparent 50%),
              radial-gradient(circle at 70% 60%, rgba(6,214,160,0.08) 0%, transparent 50%);
  animation: auth-bg-drift 15s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes auth-bg-drift {
  0% { transform: translate(0, 0) rotate(0deg); }
  100% { transform: translate(3%, 2%) rotate(2deg); }
}

.auth-showcase-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 480px;
}

/* Brand */
.auth-brand {
  text-align: center;
  margin-bottom: 2rem;
}

.auth-brand-logo {
  font-size: 3rem;
  display: block;
  margin-bottom: 0.5rem;
  animation: auth-logo-pulse 3s ease-in-out infinite;
}

@keyframes auth-logo-pulse {
  0%, 100% { transform: scale(1); filter: drop-shadow(0 0 8px rgba(139,92,246,0.4)); }
  50% { transform: scale(1.08); filter: drop-shadow(0 0 20px rgba(139,92,246,0.6)); }
}

.auth-brand-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 2rem;
  letter-spacing: 3px;
  color: var(--text-bright);
  margin-bottom: 0.3rem;
}

.auth-brand-accent {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.auth-brand-tagline {
  color: var(--text-dim);
  font-size: 0.9rem;
}

/* Stats row */
.auth-stats-row {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.auth-stat {
  text-align: center;
  background: rgba(255,255,255,0.03);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(139,92,246,0.15);
  border-radius: 14px;
  padding: 0.8rem 1.2rem;
  min-width: 100px;
  transition: transform 0.3s, border-color 0.3s;
}

.auth-stat:hover {
  transform: translateY(-3px);
  border-color: rgba(139,92,246,0.4);
}

.auth-stat-number {
  display: block;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.auth-stat-label {
  display: block;
  font-size: 0.72rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 0.2rem;
}

/* Features grid */
.auth-features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 1.75rem;
}

.auth-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  background: rgba(255,255,255,0.025);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(139,92,246,0.1);
  border-radius: 12px;
  padding: 0.7rem 0.8rem;
  transition: all 0.3s;
  animation: auth-feature-in 0.6s ease backwards;
}

.auth-feature-item:nth-child(1) { animation-delay: 0.1s; }
.auth-feature-item:nth-child(2) { animation-delay: 0.2s; }
.auth-feature-item:nth-child(3) { animation-delay: 0.3s; }
.auth-feature-item:nth-child(4) { animation-delay: 0.4s; }
.auth-feature-item:nth-child(5) { animation-delay: 0.5s; }
.auth-feature-item:nth-child(6) { animation-delay: 0.6s; }

@keyframes auth-feature-in {
  from { opacity: 0; transform: translateX(-15px); }
  to { opacity: 1; transform: translateX(0); }
}

.auth-feature-item:hover {
  border-color: rgba(139,92,246,0.35);
  background: rgba(139,92,246,0.06);
  transform: translateY(-2px);
}

.auth-feature-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.auth-feature-item strong {
  display: block;
  font-size: 0.82rem;
  color: var(--text-bright);
  margin-bottom: 0.1rem;
}

.auth-feature-item p {
  font-size: 0.72rem;
  color: var(--text-dim);
  margin: 0;
  line-height: 1.3;
}

/* Comparison table */
.auth-comparison {
  margin-bottom: 1.5rem;
}

.auth-comparison h3 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.85rem;
  letter-spacing: 1px;
  text-align: center;
  color: var(--text-bright);
  margin-bottom: 0.75rem;
}

.auth-compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.78rem;
  background: rgba(0,0,0,0.15);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(139,92,246,0.1);
}

.auth-compare-table thead th {
  padding: 0.6rem 0.7rem;
  text-align: center;
  color: var(--text-dim);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.7rem;
  letter-spacing: 0.5px;
  border-bottom: 1px solid rgba(139,92,246,0.15);
  background: rgba(139,92,246,0.05);
}

.auth-compare-table thead th:first-child {
  text-align: left;
}

.auth-compare-table tbody td {
  padding: 0.5rem 0.7rem;
  text-align: center;
  color: var(--text);
  border-bottom: 1px solid rgba(255,255,255,0.03);
}

.auth-compare-table tbody td:first-child {
  text-align: left;
  color: var(--text-dim);
}

.auth-compare-table tbody tr:last-child td {
  border-bottom: none;
}

.auth-compare-table tbody tr:hover {
  background: rgba(139,92,246,0.04);
}

.auth-compare-us {
  color: var(--accent) !important;
  font-weight: 700;
  font-size: 1rem;
}

.auth-compare-them {
  color: var(--danger) !important;
  opacity: 0.7;
}

/* Plan chips */
.auth-plans-preview {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
}

.auth-plan-chip {
  font-size: 0.7rem;
  padding: 0.35rem 0.75rem;
  border-radius: 20px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  color: var(--text-dim);
  font-weight: 500;
  white-space: nowrap;
  transition: all 0.3s;
}

.auth-plan-chip:hover { transform: translateY(-1px); }

.auth-plan-premium {
  border-color: rgba(139,92,246,0.35);
  color: var(--primary);
  background: rgba(139,92,246,0.08);
}

.auth-plan-king {
  border-color: rgba(251,191,36,0.35);
  color: #fbbf24;
  background: rgba(251,191,36,0.08);
}

.auth-plan-immortal {
  border-color: rgba(239,68,68,0.35);
  color: #ef4444;
  background: rgba(239,68,68,0.08);
  animation: auth-immortal-glow 2s ease-in-out infinite;
}

@keyframes auth-immortal-glow {
  0%, 100% { box-shadow: 0 0 4px rgba(239,68,68,0.2); }
  50% { box-shadow: 0 0 12px rgba(239,68,68,0.35); }
}

/* ---- Form side (right) ---- */
.auth-form-side {
  flex: 0.85;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: rgba(18,18,26,0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-left: none;
  border-radius: 0 var(--radius-xl) var(--radius-xl) 0;
}

.auth-form-side .auth-card {
  max-width: 400px;
  border: none;
  box-shadow: none;
  background: transparent;
  padding: 0;
}

.auth-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 3rem;
  width: 100%;
  max-width: 440px;
  box-shadow: var(--shadow-card);
  animation: auth-card-in 0.5s ease;
}

@keyframes auth-card-in {
  from { opacity: 0; transform: translateY(20px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.auth-card h2 {
  text-align: center;
  font-size: 1.8rem;
  letter-spacing: 2px;
  margin-bottom: 0.5rem;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.auth-card .auth-subtitle {
  text-align: center;
  color: var(--text-dim);
  margin-bottom: 2rem;
  font-size: 0.9rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-bottom: 0.4rem;
  font-weight: 500;
}

.form-group input, .form-group select {
  width: 100%;
  padding: 0.85rem 1rem;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-size: 0.95rem;
  font-family: 'Outfit', sans-serif;
  transition: border-color 0.3s;
}

.form-group input:focus, .form-group select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

.form-group input::placeholder {
  color: var(--input-placeholder);
}

.form-error {
  color: var(--danger);
  font-size: 0.85rem;
  margin-top: 0.5rem;
  display: none;
}

.form-error.visible {
  display: block;
}

.auth-footer {
  text-align: center;
  margin-top: 1.5rem;
  color: var(--text-dim);
  font-size: 0.9rem;
}

.auth-footer a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
}

.auth-footer a:hover {
  text-decoration: underline;
}

.auth-forgot {
  text-align: center;
  margin-top: 1rem;
  margin-bottom: -0.5rem;
}

.auth-forgot a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.2s;
}

.auth-forgot a:hover {
  color: var(--primary);
  text-decoration: underline;
}

/* ========== Dashboard ========== */
.dashboard {
  padding: 2rem 2rem 2rem;
  max-width: 1000px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.dashboard-header {
  margin-bottom: 2rem;
}

.dashboard-header h1 {
  font-size: 1.8rem;
  letter-spacing: 2px;
}

.dashboard-header p {
  color: var(--text-dim);
  margin-top: 0.3rem;
}

/* URL Input Section */
.url-section {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-card);
  transition: border-color 0.3s;
}

.url-section:focus-within {
  border-color: var(--primary);
  box-shadow: var(--shadow-glow);
}

.url-input-row {
  display: flex;
  gap: 0.75rem;
}

.url-input {
  flex: 1;
  padding: 1rem 1.25rem;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text);
  font-size: 1rem;
  font-family: 'Outfit', sans-serif;
  transition: all 0.3s;
}

.url-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

.url-input::placeholder {
  color: var(--input-placeholder);
}

/* Playlist Preview */
.playlist-preview {
  display: none;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-card);
  animation: slideDown 0.3s ease;
}

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

.playlist-preview.visible {
  display: block;
}

.preview-header {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.preview-image {
  width: 120px;
  height: 120px;
  border-radius: 12px;
  object-fit: cover;
  border: 2px solid var(--border);
}

.preview-info {
  flex: 1;
}

.preview-info .type-badge {
  font-size: 0.7rem;
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  background: rgba(29, 185, 84, 0.15);
  color: var(--spotify-green);
  border: 1px solid var(--spotify-green);
  display: inline-block;
  margin-bottom: 0.5rem;
}

.preview-info h2 {
  font-size: 1.5rem;
  letter-spacing: 1px;
  margin-bottom: 0.3rem;
}

.preview-info p {
  color: var(--text-dim);
  font-size: 0.9rem;
}

.preview-info .track-count {
  color: var(--accent);
  font-weight: 600;
}

/* Download Options */
.download-options {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: flex-end;
  margin-bottom: 1.5rem;
  padding: 1.5rem;
  background: var(--bg-input);
  border-radius: 12px;
}

.option-group {
  flex: 1;
  min-width: 150px;
}

.option-group label {
  display: block;
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-bottom: 0.3rem;
  font-weight: 500;
}

.option-group select, .option-group input {
  width: 100%;
  padding: 0.7rem 0.8rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-size: 0.9rem;
  font-family: 'Outfit', sans-serif;
}

.option-group select:focus, .option-group input:focus {
  outline: none;
  border-color: var(--primary);
}

.batch-info {
  background: hsla(var(--theme-hue), 77%, 55%, 0.1);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1rem;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
  color: var(--text-dim);
}

.batch-info strong {
  color: var(--primary);
}

/* Track List */
.track-list {
  max-height: 400px;
  overflow-y: auto;
  margin-bottom: 1rem;
}

.track-list::-webkit-scrollbar {
  width: 6px;
}

.track-list::-webkit-scrollbar-track {
  background: var(--bg-input);
  border-radius: 3px;
}

.track-list::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 3px;
}

.track-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  transition: background 0.2s;
}

.track-item:hover {
  background: var(--bg-input);
}

.track-number {
  font-size: 0.85rem;
  color: var(--text-dim);
  width: 30px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.track-cover {
  width: 44px;
  height: 44px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
}

.track-cover-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-input);
  color: var(--text-dim);
  font-size: 1.2rem;
}

/* Preview play button */
.btn-preview {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: hsla(var(--theme-hue), 77%, 55%, 0.2);
  color: var(--primary);
  cursor: pointer;
  font-size: 0.7rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s;
}
.btn-preview:hover {
  background: var(--primary);
  color: white;
  transform: scale(1.1);
}
.btn-preview.playing {
  background: var(--accent);
  color: white;
  animation: preview-pulse 1s ease-in-out infinite;
}
@keyframes preview-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(6, 214, 160, 0.3); }
  50% { box-shadow: 0 0 8px 4px rgba(6, 214, 160, 0.15); }
}

.track-details {
  flex: 1;
  min-width: 0;
}

.track-details .track-name {
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.track-details .track-artist {
  font-size: 0.85rem;
  color: var(--text-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.track-status {
  font-size: 0.85rem;
  min-width: 100px;
  text-align: right;
  white-space: nowrap;
}

.track-status.pending { color: var(--text-dim); }
.track-status.downloading { color: var(--warning); }
.track-status.completed { color: var(--accent); }
.track-status.error { color: var(--danger); }

/* Progress Bar */
/* Speed indicator for free users */
.speed-indicator {
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: 10px;
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
}

.speed-slow { color: var(--warning); }

.speed-upgrade {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  white-space: nowrap;
}

.speed-upgrade:hover { text-decoration: underline; }

.progress-section {
  display: none;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-card);
}

.progress-section.visible {
  display: block;
  animation: slideDown 0.3s ease;
}

.progress-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.progress-header h3 {
  font-size: 1.1rem;
  letter-spacing: 1px;
}

.progress-stats {
  font-size: 0.9rem;
  color: var(--text-dim);
}

.progress-stats strong {
  color: var(--accent);
}

.progress-eta {
  display: inline-block;
  margin-left: 0.8rem;
  padding: 2px 10px;
  background: hsla(var(--theme-hue), 77%, 55%, 0.12);
  border: 1px solid hsla(var(--theme-hue), 77%, 55%, 0.25);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--primary);
  letter-spacing: 0.3px;
  animation: etaPulse 2s ease-in-out infinite;
}

@keyframes etaPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

.progress-bar-container {
  background: var(--bg-input);
  border-radius: 10px;
  height: 12px;
  overflow: hidden;
  margin-bottom: 1rem;
}

.progress-bar {
  height: 100%;
  background: var(--gradient-primary);
  border-radius: 10px;
  transition: width 0.5s ease;
  width: 0%;
  position: relative;
}

.progress-bar::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.progress-current {
  font-size: 0.9rem;
  color: var(--text-dim);
  margin-bottom: 1.5rem;
}

.progress-current span {
  color: var(--text);
  font-weight: 500;
}

.download-complete {
  display: none;
  text-align: center;
  padding: 1rem;
}

.download-complete.visible {
  display: block;
}

.download-complete-title {
  color: var(--accent);
  font-family: 'Plus Jakarta Sans', sans-serif;
  letter-spacing: 2px;
  margin-bottom: 0.5rem;
}

.download-hint {
  color: var(--text-dim);
  font-size: 0.85rem;
  margin-bottom: 1rem;
  line-height: 1.4;
}

.download-hint strong {
  color: var(--accent);
}

/* ========== Quality Comparison Player ========== */
.quality-comparison {
  margin-top: 1.5rem;
  padding: 1.5rem;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(30, 30, 50, 0.9), rgba(20, 20, 40, 0.95));
  border: 2px solid transparent;
  background-clip: padding-box;
  position: relative;
}
.quality-comparison::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--accent), hsl(var(--theme-hue), 77%, 55%), #f59e0b);
  z-index: -1;
}
.quality-title {
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
  text-align: center;
}
.quality-players {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 1.25rem;
}
.quality-player {
  flex: 1;
  max-width: 220px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1.25rem 1rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: transform 0.2s;
}
.quality-player:hover {
  transform: translateY(-2px);
}
.quality-standard {
  border-color: rgba(255, 255, 255, 0.1);
}
.quality-premium {
  border-color: #f59e0b;
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.25), 0 0 40px rgba(245, 158, 11, 0.1);
  background: rgba(245, 158, 11, 0.06);
}
.quality-label {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
}
.quality-premium .quality-label {
  color: #f59e0b;
}
.quality-sublabel {
  font-size: 0.75rem;
  color: var(--text-dim);
  margin-top: -0.25rem;
}
.quality-play-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  font-size: 1.2rem;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.25rem;
}
.quality-play-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--accent);
  transform: scale(1.08);
}
.quality-play-btn.playing {
  background: var(--accent);
  border-color: var(--accent);
  color: #000;
}
.quality-play-btn-premium {
  border-color: rgba(245, 158, 11, 0.4);
  background: rgba(245, 158, 11, 0.1);
}
.quality-play-btn-premium:hover {
  border-color: #f59e0b;
  background: rgba(245, 158, 11, 0.2);
  box-shadow: 0 0 15px rgba(245, 158, 11, 0.3);
}
.quality-play-btn-premium.playing {
  background: #f59e0b;
  border-color: #f59e0b;
  color: #000;
}
.quality-cta-text {
  text-align: center;
  color: var(--text-dim);
  font-size: 0.85rem;
  margin-bottom: 1rem;
  line-height: 1.4;
}
@media (max-width: 600px) {
  .quality-players {
    flex-direction: column;
    align-items: center;
  }
  .quality-player {
    max-width: 100%;
    width: 100%;
  }
}

/* ========== Upgrade Banner ========== */
.premium-banner {
  background: linear-gradient(135deg, rgba(6, 214, 160, 0.15), hsla(var(--theme-hue), 77%, 55%, 0.1));
  border: 1px solid var(--accent);
  border-radius: 16px;
  padding: 1.5rem 2rem;
  margin-bottom: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
}

.premium-banner-content {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.premium-banner-icon {
  font-size: 2rem;
}

.premium-banner h3 {
  color: var(--accent);
  font-family: 'Plus Jakarta Sans', sans-serif;
  letter-spacing: 1px;
  margin-bottom: 0.25rem;
}

.premium-banner p {
  color: var(--text-dim);
  font-size: 0.9rem;
}

/* Referral Section */
.referral-section {
  background: linear-gradient(135deg, rgba(255, 193, 7, 0.1), hsla(var(--theme-hue), 77%, 55%, 0.1));
  border: 1px solid rgba(255, 193, 7, 0.3);
  border-radius: 16px;
  padding: 1.5rem 2rem;
  margin-bottom: 2rem;
}

.referral-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.referral-icon {
  font-size: 2.5rem;
}

.referral-header h3 {
  color: #ffc107;
  font-family: 'Plus Jakarta Sans', sans-serif;
  letter-spacing: 1px;
  margin-bottom: 0.25rem;
  font-size: 1rem;
}

.referral-header p {
  color: var(--text-dim);
  font-size: 0.9rem;
}

.referral-code-box {
  margin-bottom: 1.5rem;
}

.referral-code-box label {
  display: block;
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-bottom: 0.5rem;
}

.referral-code-row {
  display: flex;
  gap: 0.5rem;
  max-width: 400px;
}

.referral-code-input {
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.6rem 1rem;
  color: #ffc107;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.1rem;
  letter-spacing: 2px;
  flex: 1;
  cursor: pointer;
}

.referral-stats-row {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
}

.stat-box {
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  padding: 1rem;
  text-align: center;
  flex: 1;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.stat-box:hover {
  border-color: hsla(var(--theme-hue), 77%, 55%, 0.15);
  box-shadow: 0 4px 20px hsla(var(--theme-hue), 77%, 55%, 0.06);
}

.stat-num {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  color: #ffc107;
  font-family: 'Plus Jakarta Sans', sans-serif;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-dim);
}

.referral-list h4 {
  font-size: 0.9rem;
  color: var(--text-dim);
  margin-bottom: 0.5rem;
}

.referral-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.referral-username {
  font-weight: 500;
}

.referral-status {
  font-size: 0.85rem;
}

.referral-status.completed {
  color: var(--accent);
}

.referral-status.pending {
  color: var(--text-dim);
}

.referral-empty {
  color: var(--text-dim);
  font-size: 0.9rem;
  text-align: center;
  padding: 1rem 0;
}

/* Premium Ranking */
.ranking-section {
  background: linear-gradient(135deg, hsla(var(--theme-hue), 77%, 55%, 0.1), rgba(6, 214, 160, 0.1));
  border: 1px solid hsla(var(--theme-hue), 77%, 55%, 0.3);
  border-radius: 16px;
  padding: 1.5rem 2rem;
  margin-bottom: 2rem;
}

.ranking-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.ranking-icon {
  font-size: 2.5rem;
}

.ranking-header h3 {
  color: var(--primary);
  font-family: 'Plus Jakarta Sans', sans-serif;
  letter-spacing: 1px;
  margin-bottom: 0.25rem;
  font-size: 1rem;
}

.ranking-header p {
  color: var(--text-dim);
  font-size: 0.9rem;
}

.ranking-table-wrapper {
  overflow-x: auto;
}

.ranking-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.ranking-table thead th {
  background: hsla(var(--theme-hue), 77%, 55%, 0.15);
  color: var(--primary);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.75rem;
  letter-spacing: 1px;
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 2px solid hsla(var(--theme-hue), 77%, 55%, 0.3);
}

.ranking-table thead th:first-child {
  border-radius: 8px 0 0 0;
  text-align: center;
  width: 50px;
}

.ranking-table tbody tr {
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: background 0.2s;
}

.ranking-table tbody tr:hover {
  background: hsla(var(--theme-hue), 77%, 55%, 0.08);
}

.ranking-table tbody td {
  padding: 0.65rem 1rem;
  color: var(--text);
}

.ranking-table tbody td:first-child {
  text-align: center;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
}

.ranking-rank-1 { color: #ffd700 !important; font-size: 1.1rem; }
.ranking-rank-2 { color: #c0c0c0 !important; }
.ranking-rank-3 { color: #cd7f32 !important; }

.ranking-badge {
  display: inline-block;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  font-size: 0.7rem;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
  letter-spacing: 1px;
}

.ranking-badge-immortal {
  background: linear-gradient(135deg, #cc0000, #ff4400, #ff6600) !important;
  text-shadow: 0 1px 3px rgba(0,0,0,0.4);
  box-shadow: 0 0 10px rgba(255, 50, 0, 0.3);
}

.ranking-empty {
  text-align: center;
  color: var(--text-dim);
  padding: 1.5rem;
  font-size: 0.9rem;
}

/* Dashboard 3-column layout with sticky sidebars */
.dashboard-layout {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  position: relative;
}

.dashboard-center {
  flex: 1;
  min-width: 0;
}

.sidebar-left, .sidebar-right {
  width: 220px;
  flex-shrink: 0;
  position: sticky;
  top: 80px;
  align-self: flex-start;
}

.sidebar-banner {
  background: linear-gradient(135deg, hsla(var(--theme-hue), 77%, 55%, 0.12), rgba(30, 30, 60, 0.9));
  border: 1px solid hsla(var(--theme-hue), 77%, 55%, 0.3);
  border-radius: 14px;
  padding: 1.25rem 1rem;
  text-align: center;
}

.sidebar-banner-icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.sidebar-banner h3 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.9rem;
  letter-spacing: 1px;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.sidebar-banner p {
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-bottom: 0.75rem;
}

.sidebar-perks {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem 0;
  text-align: left;
}

.sidebar-perks li {
  font-size: 0.8rem;
  padding: 0.25rem 0;
  color: var(--text-secondary);
}

.sidebar-perks li::first-letter {
  color: var(--accent);
}

/* Sidebar comparison */
.sidebar-compare {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.compare-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 0.5rem;
  font-size: 0.75rem;
  padding: 0.3rem 0;
  border-bottom: 1px solid var(--divider-subtle);
}

.compare-row span:first-child {
  text-align: left;
  color: var(--text-secondary);
}

.compare-row .dim {
  color: var(--text-dim);
  text-align: center;
  min-width: 30px;
}

.compare-row .hl {
  color: var(--accent);
  font-weight: 700;
  text-align: center;
  min-width: 30px;
}

/* Hide sidebars on mobile — show inline banner instead */
@media (max-width: 1024px) {
  .dashboard-layout {
    flex-direction: column;
  }
  .sidebar-left, .sidebar-right {
    width: 100%;
    position: static;
  }
  .sidebar-left {
    order: 2;
  }
  .sidebar-right {
    order: 3;
  }
  .dashboard-center {
    order: 1;
  }
}

/* Inline upgrade reminders */
.inline-upgrade {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: linear-gradient(135deg, hsla(var(--theme-hue), 77%, 55%, 0.15), rgba(255, 193, 7, 0.1));
  border: 1px solid hsla(var(--theme-hue), 77%, 55%, 0.3);
  border-radius: 10px;
  padding: 0.75rem 1.25rem;
  margin-top: 1rem;
  font-size: 0.9rem;
}

/* Promo code input */
.promo-code-section {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255,255,255,0.1);
}

/* Urgent promo banner */
.promo-urgent-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.12), rgba(245, 158, 11, 0.12));
  border: 2px solid rgba(239, 68, 68, 0.5);
  border-radius: 12px;
  padding: 0.85rem 1.25rem;
  margin-bottom: 0.75rem;
  animation: promo-pulse 2.5s ease-in-out infinite;
}
@keyframes promo-pulse {
  0%, 100% { border-color: rgba(239, 68, 68, 0.5); }
  50% { border-color: rgba(245, 158, 11, 0.8); box-shadow: 0 0 15px rgba(245, 158, 11, 0.15); }
}
.promo-urgent-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: 1;
}
.promo-urgent-icon {
  font-size: 1.6rem;
  flex-shrink: 0;
  animation: promo-shake 1.5s ease-in-out infinite;
}
@keyframes promo-shake {
  0%, 100% { transform: rotate(0deg) scale(1); }
  25% { transform: rotate(-5deg) scale(1.05); }
  75% { transform: rotate(5deg) scale(1.05); }
}
.promo-urgent-text {
  flex: 1;
  font-size: 0.85rem;
  line-height: 1.4;
}
.promo-urgent-text strong {
  color: #f59e0b;
  font-size: 0.9rem;
  display: block;
  margin-bottom: 0.15rem;
  letter-spacing: 0.5px;
}
.promo-urgent-timer-box {
  flex-shrink: 0;
  text-align: center;
  background: rgba(0,0,0,0.3);
  border-radius: 8px;
  padding: 0.4rem 0.75rem;
  min-width: 100px;
}
.promo-urgent-timer-label {
  font-size: 0.65rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.1rem;
}
.promo-urgent-timer {
  font-family: 'Plus Jakarta Sans', monospace;
  font-size: 1.1rem;
  font-weight: 700;
  color: #ef4444;
  white-space: nowrap;
  letter-spacing: 2px;
}

/* Compare table improvements */
.compare-price-row td {
  padding-top: 0.85rem !important;
  border-top: 2px solid var(--border);
}
.promo-code-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.promo-code-input {
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-bright);
  padding: 0.5rem 0.75rem;
  font-size: 0.9rem;
  width: 180px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.promo-code-info {
  margin-top: 0.5rem;
  padding: 0.6rem 0.75rem;
  background: rgba(6, 214, 160, 0.08);
  border: 1px solid rgba(6, 214, 160, 0.25);
  border-radius: 8px;
  font-size: 0.85rem;
  color: var(--text);
  line-height: 1.5;
}
.promo-code-input:focus {
  border-color: var(--primary);
  outline: none;
}
.promo-code-hint {
  color: var(--text-dim);
  font-size: 0.8rem;
}

/* History status */
.status-ok { color: var(--accent); }
.status-err { color: var(--danger); }
.status-pen { color: var(--warning); }

.history-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  margin-bottom: 0.5rem;
}
.history-name {
  font-weight: 600;
  margin-bottom: 0.25rem;
}
.history-meta {
  font-size: 0.8rem;
  color: var(--text-dim);
}

/* Checkbox label */
.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  cursor: pointer;
  font-size: 0.85rem;
  color: var(--text-dim);
  line-height: 1.4;
}
.checkbox-label input[type="checkbox"] {
  margin-top: 2px;
  accent-color: var(--accent);
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}
.checkbox-label a {
  color: var(--accent);
  text-decoration: underline;
}

/* Legal pages */
.legal-content {
  background: var(--surface);
  border-radius: 16px;
  padding: 2rem;
  border: 1px solid var(--border);
  line-height: 1.7;
}
.legal-content h3 {
  color: var(--accent);
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}
.legal-content p {
  color: var(--text-dim);
  margin-bottom: 0.75rem;
}
.legal-content ul {
  color: var(--text-dim);
  padding-left: 1.5rem;
  margin-bottom: 0.75rem;
}
.legal-content li {
  margin-bottom: 0.4rem;
}

.upgrade-banner {
  background: linear-gradient(135deg, hsla(var(--theme-hue), 77%, 55%, 0.2), rgba(6, 214, 160, 0.15));
  border: 1px solid var(--primary);
  border-radius: 16px;
  padding: 1.5rem 2rem;
  margin-bottom: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  animation: banner-pulse 3s ease-in-out infinite;
  position: relative;
  overflow: hidden;
}

.upgrade-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(from 0deg, transparent, hsla(var(--theme-hue), 77%, 55%, 0.1), transparent, rgba(6, 214, 160, 0.1), transparent);
  animation: banner-rotate 6s linear infinite;
  z-index: 0;
}

.upgrade-banner > * { position: relative; z-index: 1; }

@keyframes banner-pulse {
  0%, 100% { border-color: var(--primary); box-shadow: 0 0 20px hsla(var(--theme-hue), 77%, 55%, 0.15); }
  50% { border-color: var(--accent); box-shadow: 0 0 30px rgba(6, 214, 160, 0.2); }
}

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

.upgrade-banner-content {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex: 1;
}

.upgrade-banner-icon {
  font-size: 2rem;
  min-width: 48px;
  text-align: center;
}

.upgrade-banner h3 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1rem;
  letter-spacing: 1px;
  margin-bottom: 0.3rem;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.upgrade-banner p {
  color: var(--text-dim);
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
}

.upgrade-perks {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  font-size: 0.8rem;
  color: var(--accent);
}

.btn-glow {
  animation: glow-pulse 2s ease-in-out infinite;
  font-weight: 700;
  letter-spacing: 1px;
}

@keyframes glow-pulse {
  0%, 100% { box-shadow: 0 0 10px var(--primary-glow); }
  50% { box-shadow: 0 0 25px var(--primary-glow), 0 0 50px hsla(var(--theme-hue), 77%, 55%, 0.15); }
}

/* Pricing badge */
.pricing-badge {
  position: absolute;
  top: -1px;
  right: -1px;
  background: var(--gradient-primary);
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 0.4rem 1rem;
  border-radius: 0 16px 0 12px;
}

/* Upgrade buttons side by side */
.upgrade-buttons {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.promo-btn {
  background: linear-gradient(135deg, #ff9800, #f44336) !important;
  border-color: #ff9800 !important;
}
.promo-btn small {
  display: block;
  font-size: 0.7em;
  opacity: 0.9;
}
.promo-link {
  color: #ff9800 !important;
  font-weight: bold;
}
.inline-upgrade-btns {
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
}

.pricing-card { position: relative; }

.pricing-card.promo {
  border-color: #ff9800;
  background: linear-gradient(135deg, var(--surface), rgba(255, 152, 0, 0.08));
}
.promo-badge {
  background: linear-gradient(135deg, #ff9800, #f44336) !important;
}

/* ===== KING PLAN — Gold Theme ===== */
.pricing-card.king {
  border-color: #ffd700;
}
.pricing-card.king::before {
  background: linear-gradient(90deg, #ffd700, #ffaa00, #ffd700);
}
.king-badge {
  background: linear-gradient(135deg, #ffd700, #ffaa00) !important;
  color: #1a1a2e !important;
}
.king-title {
  color: #ffd700 !important;
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}
.king-check {
  color: #ffd700 !important;
}
.king-price {
  color: #ffd700 !important;
}
.btn-king {
  background: linear-gradient(135deg, #ffd700, #ffaa00) !important;
  color: #1a1a2e !important;
  font-weight: 700;
  border: none;
  text-shadow: none;
  box-shadow: 0 0 15px rgba(255, 215, 0, 0.3);
}
.btn-king:hover {
  box-shadow: 0 0 25px rgba(255, 215, 0, 0.5);
  transform: translateY(-2px);
}
.plan-king {
  color: #ffd700 !important;
  text-shadow: 0 0 8px rgba(255, 215, 0, 0.4);
}
.ranking-badge-king {
  background: linear-gradient(135deg, #ffd700, #ffaa00) !important;
  color: #1a1a2e !important;
}

/* ===== IMMORTAL PLAN — Fire Theme ===== */
.pricing-card.immortal {
  border-color: #ff2222;
  background: linear-gradient(180deg, rgba(180, 20, 0, 0.15) 0%, var(--bg-card) 40%, rgba(255, 60, 0, 0.08) 100%);
  box-shadow: 0 0 30px rgba(255, 50, 0, 0.15), inset 0 1px 0 rgba(255, 100, 0, 0.2);
  overflow: hidden;
  position: relative;
}
.pricing-card.immortal::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, #ff2222, #ff8800, #ff2222, #ff8800);
  background-size: 200% 100%;
  animation: immortal-border-glow 2s linear infinite;
}
.pricing-card.immortal::after {
  content: '';
  position: absolute;
  bottom: -20px; left: 0; right: 0;
  height: 80px;
  background: linear-gradient(0deg, rgba(255, 60, 0, 0.06) 0%, transparent 100%);
  pointer-events: none;
}
.pricing-card.immortal:hover {
  transform: translateY(-6px);
  box-shadow: 0 0 50px rgba(255, 50, 0, 0.3), 0 10px 40px rgba(0,0,0,0.5);
  border-color: #ff4400;
}

@keyframes immortal-border-glow {
  0% { background-position: 0% 0%; }
  100% { background-position: 200% 0%; }
}

.immortal-badge {
  background: linear-gradient(135deg, #ff2222, #ff6600, #ff2222) !important;
  background-size: 200% 100% !important;
  animation: immortal-badge-pulse 3s ease infinite !important;
  text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}
@keyframes immortal-badge-pulse {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.immortal-title {
  color: #ff4444 !important;
  text-shadow: 0 0 20px rgba(255, 50, 0, 0.4);
  font-family: 'Plus Jakarta Sans', sans-serif;
}

.immortal-price {
  color: #ff4444 !important;
  text-shadow: 0 0 15px rgba(255, 50, 0, 0.3);
}

.immortal-check {
  color: #ff4444 !important;
}

.btn-immortal {
  background: linear-gradient(135deg, #cc0000, #ff4400, #ff6600) !important;
  background-size: 200% 100% !important;
  border: 1px solid #ff4400 !important;
  color: white !important;
  font-weight: 700;
  letter-spacing: 1px;
  text-shadow: 0 1px 3px rgba(0,0,0,0.4);
  box-shadow: 0 0 20px rgba(255, 50, 0, 0.3);
  animation: immortal-btn-glow 3s ease infinite;
  transition: all 0.3s ease;
}
.btn-immortal:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 35px rgba(255, 50, 0, 0.5), 0 5px 20px rgba(0,0,0,0.3);
  background-position: 100% 0% !important;
}
@keyframes immortal-btn-glow {
  0%, 100% { box-shadow: 0 0 20px rgba(255, 50, 0, 0.3); }
  50% { box-shadow: 0 0 35px rgba(255, 50, 0, 0.5), 0 0 60px rgba(255, 80, 0, 0.15); }
}

/* Immortal banner */
.immortal-banner {
  background: linear-gradient(135deg, rgba(180, 20, 0, 0.15), rgba(255, 60, 0, 0.08));
  border: 1px solid #ff3333;
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  margin-bottom: var(--space-xl);
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 0 30px rgba(255, 50, 0, 0.1);
  animation: immortal-banner-pulse 4s ease infinite;
}
@keyframes immortal-banner-pulse {
  0%, 100% { box-shadow: 0 0 30px rgba(255, 50, 0, 0.1); }
  50% { box-shadow: 0 0 45px rgba(255, 50, 0, 0.2); }
}
.immortal-fire-icon {
  font-size: 2rem;
  animation: immortal-fire 1.5s ease infinite;
}
@keyframes immortal-fire {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.15) rotate(5deg); }
}

/* Comparison table immortal column */
.immortal-col {
  color: #ff4444;
  font-weight: 600;
  background: rgba(255, 50, 0, 0.05);
}
thead .immortal-col {
  background: linear-gradient(135deg, rgba(255, 30, 0, 0.2), rgba(255, 80, 0, 0.1));
  text-shadow: 0 0 10px rgba(255, 50, 0, 0.3);
}

/* Immortal badge in navbar/ranking */
.plan-immortal {
  color: #ff4444 !important;
  text-shadow: 0 0 8px rgba(255, 50, 0, 0.4);
}

.pricing-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)) !important;
}

/* Plan Comparison Table */
.plan-compare {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.compare-table th,
.compare-table td {
  padding: 0.75rem 1rem;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.compare-table th {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.8rem;
  letter-spacing: 1px;
  color: var(--text-dim);
}

.compare-table th.highlight {
  color: var(--accent);
  background: rgba(6, 214, 160, 0.05);
}

.compare-table td:first-child {
  text-align: left;
  color: var(--text);
}

.compare-table td.dim { color: var(--text-dim); }

.compare-table td.highlight {
  color: var(--accent);
  background: rgba(6, 214, 160, 0.05);
}

.compare-table tbody tr:last-child td { border-bottom: none; }

/* ========== Loading Spinner ========== */
.spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--loading-overlay-bg);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 200;
  display: none;
}

.loading-overlay.visible {
  display: flex;
}

.loading-content {
  text-align: center;
}

.loading-content .spinner {
  width: 40px;
  height: 40px;
  border-width: 3px;
  margin-bottom: 1rem;
}

/* ========== Toast Notifications ========== */
.toast-container {
  position: fixed;
  top: 80px;
  right: 20px;
  z-index: 300;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.toast {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem 1.5rem;
  box-shadow: var(--shadow-card);
  animation: slideIn 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 300px;
}

.toast.success { border-color: var(--accent); }
.toast.error { border-color: var(--danger); }
.toast.warning { border-color: var(--warning); }

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

/* ========== Footer ========== */
/* ==================== LANDING PAGE SECTIONS ==================== */
.landing-section { padding: 3rem 2rem; max-width: 1100px; margin: 0 auto; }
.section-subtitle { text-align: center; color: var(--text-dim); font-size: 0.95rem; margin-top: -0.5rem; margin-bottom: 2rem; }

/* Platforms */
.platform-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.platform-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 1.8rem 1.2rem; text-align: center; transition: transform 0.3s, box-shadow 0.3s;
  position: relative; overflow: hidden;
}
.platform-card:hover { transform: translateY(-6px); box-shadow: 0 12px 30px rgba(139,92,246,0.15); }
.platform-icon { font-size: 2.5rem; margin-bottom: 0.8rem; }
.platform-card h3 { font-size: 1.2rem; margin-bottom: 0.4rem; }
.platform-card p { font-size: 0.85rem; color: var(--text-dim); line-height: 1.5; }
.platform-tag { display: inline-block; margin-top: 0.6rem; font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; padding: 3px 10px; border-radius: 999px; }
.spotify-card { border-top: 3px solid #1db954; }
.spotify-card .platform-tag { background: rgba(29,185,84,0.15); color: #1db954; }
.youtube-card { border-top: 3px solid #ff0000; }
.youtube-card .platform-tag { background: rgba(255,0,0,0.1); color: #ff0000; }
.soundcloud-card { border-top: 3px solid #ff5500; }
.soundcloud-card .platform-tag { background: rgba(255,85,0,0.1); color: #ff5500; }

/* Tools Grid */
.tools-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.tool-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 1.5rem; transition: transform 0.3s, box-shadow 0.3s; position: relative;
}
.tool-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(139,92,246,0.12); }
.tool-icon-wrap {
  width: 48px; height: 48px; border-radius: 12px; display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; color: #fff; margin-bottom: 1rem;
}
.tool-card h3 { font-size: 1rem; margin-bottom: 0.4rem; }
.tool-card p { font-size: 0.82rem; color: var(--text-dim); line-height: 1.5; }
.tool-badge { display: inline-block; margin-top: 0.6rem; font-size: 0.65rem; font-weight: 700; text-transform: uppercase; padding: 2px 8px; border-radius: 999px; background: rgba(139,92,246,0.1); color: var(--primary); }
.premium-tool { background: rgba(139,92,246,0.15); color: var(--primary); }
.free-tool { background: rgba(5,150,105,0.15); color: var(--accent); }

/* Comparison Table */
.comparison-table { max-width: 800px; margin: 0 auto; overflow-x: auto; }
.comparison-table table { width: 100%; border-collapse: collapse; }
.comparison-table th, .comparison-table td { padding: 0.8rem 1rem; text-align: left; border-bottom: 1px solid var(--border); font-size: 0.88rem; }
.comparison-table thead th { font-weight: 700; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-dim); }
.comparison-table .highlight-col { background: rgba(139,92,246,0.08); color: var(--primary); font-weight: 700; border-radius: 0; }
.comparison-table thead .highlight-col { background: var(--primary); color: #fff; border-radius: 8px 8px 0 0; }
.comparison-table .good { color: var(--accent); font-weight: 600; }
.comparison-table .bad { color: var(--text-dim); }

/* Testimonials */
.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; max-width: 1000px; margin: 0 auto; }
.testimonial-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 1.5rem; position: relative;
}
.testimonial-stars { font-size: 1rem; margin-bottom: 0.6rem; }
.testimonial-card p { font-size: 0.88rem; color: var(--text); font-style: italic; line-height: 1.5; margin-bottom: 0.8rem; }
.testimonial-author { font-size: 0.8rem; font-weight: 700; color: var(--primary); }

/* CTA Banner */
.landing-cta {
  text-align: center; padding: 3rem 2rem; margin: 2rem auto; max-width: 800px;
  background: linear-gradient(135deg, rgba(139,92,246,0.1), rgba(5,150,105,0.08));
  border: 1px solid rgba(139,92,246,0.2); border-radius: var(--radius-lg);
}
.landing-cta h2 { font-size: 1.6rem; margin-bottom: 0.5rem; }
.landing-cta p { color: var(--text-dim); margin-bottom: 1.5rem; }

/* Responsive Landing */
@media (max-width: 768px) {
  .platform-grid { grid-template-columns: 1fr; }
  .tools-grid { grid-template-columns: 1fr 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .comparison-table th, .comparison-table td { padding: 0.5rem 0.6rem; font-size: 0.8rem; }
  .landing-section { padding: 2rem 1rem; }
  .landing-cta { padding: 2rem 1rem; }
  .landing-cta h2 { font-size: 1.2rem; }
}
@media (max-width: 480px) {
  .tools-grid { grid-template-columns: 1fr; }
}

.footer {
  text-align: center;
  padding: 2rem;
  color: var(--text-dim);
  font-size: 0.85rem;
  border-top: 1px solid var(--border);
  position: relative;
  z-index: 1;
}

.footer a {
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.2s;
}

.footer a:hover {
  color: var(--primary);
}

.footer-links {
  margin-top: 0.5rem;
  font-size: 0.8rem;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.footer-sep {
  color: var(--border);
  user-select: none;
}

.dashboard-footer {
  text-align: center;
  padding: 2rem 0 1rem;
  margin-top: 3rem;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
}
.dashboard-footer a {
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.2s;
}
.dashboard-footer a:hover {
  color: var(--accent);
}
.dashboard-footer .footer-sep {
  margin: 0 0.5rem;
}

/* ========== Upsell Grid ========== */
.upsell-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.5rem;
  text-align: left;
}

.upsell-col {
  padding: 1rem;
  border-radius: var(--radius-md);
}

.upsell-col h4 {
  margin-bottom: 0.5rem;
  font-size: 0.85rem;
}

.upsell-col ul {
  list-style: none;
  font-size: 0.85rem;
  line-height: 1.8;
}

.upsell-col--free {
  background: var(--bg-card);
}

.upsell-col--free h4 {
  color: var(--text-dim);
}

.upsell-col--free ul {
  color: var(--text-dim);
}

.upsell-col--premium {
  background: hsla(var(--theme-hue), 77%, 55%, 0.1);
  border: 1px solid var(--primary);
}

.upsell-col--premium h4 {
  color: var(--primary);
}

.upsell-col--premium ul {
  color: var(--text);
}

/* ========== Converter Platform Icon ========== */
.converter-platform-icon {
  font-size: 2rem;
  flex-shrink: 0;
}

/* ========== Desktop sidebar guarantee ========== */
@media (min-width: 769px) {
  .sidebar { left: 0 !important; }
  .mobile-topbar { display: none !important; }
  .sidebar-overlay { display: none !important; }
  .sidebar-collapse-btn { display: flex; }
}
/* Hide collapse btn on mobile */
@media (max-width: 768px) {
  .sidebar-collapse-btn { display: none !important; }
}

/* ========== Responsive ========== */
@media (max-width: 768px) {
  /* Sidebar → hidden, slide from left on toggle */
  .sidebar { left: -260px; z-index: 200; width: 260px; }
  .sidebar.active { left: 0; }
  .mobile-topbar { display: flex; }
  .page.active { margin-left: 0; padding-top: 56px; }
  .dashboard, .page-container, .hero { margin-left: 0 !important; padding-top: 70px; }
  .page-container { padding: 1rem !important; }
  .dashboard { padding: 1rem !important; }

  .hero h1 { font-size: 2rem; }
  .hero .subtitle { font-size: 1rem; }
  .hero-cta { flex-direction: column; align-items: center; }
  .brand { font-size: 1.1rem; }
  .lang-select { font-size: 0.75rem; padding: 0.25rem 0.4rem; }

  .demo-input-row { flex-direction: column; }
  .url-input-row { flex-direction: column; }
  .url-input { font-size: 0.9rem; }

  .preview-header { flex-direction: column; align-items: center; text-align: center; }
  .preview-image { width: 100px; height: 100px; }
  .download-options { flex-direction: column; }

  .upgrade-banner { flex-direction: column; text-align: center; padding: 1rem; }
  .upgrade-banner-content { flex-direction: column; }
  .upgrade-perks { flex-direction: column; align-items: flex-start; gap: 0.4rem; }
  .upgrade-perks span { font-size: 0.85rem; }

  .premium-banner { flex-direction: column; text-align: center; padding: 1rem; }
  .premium-banner-content { flex-direction: column; }

  .referral-header { flex-direction: column; text-align: center; }
  .referral-section { padding: 1rem; }
  .referral-stats-row { flex-direction: column; }
  .referral-code-row { max-width: 100%; }

  .ranking-header { flex-direction: column; text-align: center; }
  .ranking-section { padding: 1rem; }
  .ranking-table { font-size: 0.78rem; }
  .ranking-table thead th, .ranking-table tbody td { padding: 0.5rem 0.35rem; }

  .pricing-grid { grid-template-columns: 1fr; }
  .pricing-card { padding: 1.5rem; }

  .admin-stats { grid-template-columns: repeat(2, 1fr); }
  .admin-tabs { flex-wrap: wrap; }
  .admin-table { font-size: 0.8rem; }
  .admin-table th, .admin-table td { padding: 0.5rem 0.4rem; }

  .history-item { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
  .ticket-header { flex-direction: column; align-items: flex-start; gap: 0.5rem; }

  /* Dashboard spacing */
  .dashboard { padding: 1rem; }
  .dashboard-header h1 { font-size: 1.5rem; }
  .dashboard-header { margin-bottom: 1rem; }

  /* Auth pages — mobile: stack vertically */
  .auth-split {
    flex-direction: column;
    padding: 1rem 0 1rem;
    min-height: auto;
  }
  .auth-showcase {
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    padding: 1.5rem;
  }
  .auth-form-side {
    border-radius: 0 0 var(--radius-xl) var(--radius-xl);
    border-left: 1px solid var(--border);
    border-top: none;
    padding: 1.5rem;
  }
  .auth-features-grid {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
  .auth-stats-row {
    gap: 0.75rem;
  }
  .auth-stat {
    padding: 0.6rem 0.8rem;
    min-width: 80px;
  }
  .auth-stat-number {
    font-size: 1rem;
  }
  .auth-brand-title {
    font-size: 1.5rem;
  }
  .auth-brand-logo {
    font-size: 2.2rem;
  }
  .auth-compare-table {
    font-size: 0.72rem;
  }
  .auth-card { padding: 1.5rem; }
  .auth-form-side .auth-card { padding: 0; }
  .features { padding: 3rem 1rem; }
  .pricing { padding: 3rem 1rem; }

  /* Unified page container mobile */
  .page-container { padding: 1rem; }
  .page-title { font-size: 1.2rem; }

  /* Upsell grid mobile */
  .upsell-grid { grid-template-columns: 1fr; }

  /* Promo banner mobile */
  .promo-urgent-banner { flex-direction: column; text-align: center; gap: 0.75rem; padding: 0.75rem; }
  .promo-urgent-left { flex-direction: column; }
  .promo-urgent-text { font-size: 0.85rem; }

  /* Inline upgrade mobile */
  .inline-upgrade { flex-direction: column; text-align: center; font-size: 0.85rem; }

  /* Footer mobile */
  .footer { padding: 1rem; font-size: 0.8rem; }
  .footer-links { flex-wrap: wrap; justify-content: center; gap: 0.5rem; }

  /* Plan comparison table */
  .plan-compare-table { font-size: 0.8rem; }
  .plan-compare-table th, .plan-compare-table td { padding: 0.5rem 0.4rem; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 1.5rem; letter-spacing: 1px; }
  .hero .subtitle { font-size: 0.9rem; }
  .brand { font-size: 1rem; }
  .dashboard-header h1 { font-size: 1.2rem; }
  .btn { padding: 0.6rem 1rem; font-size: 0.85rem; }
  .upgrade-banner-btns { flex-direction: column; gap: 0.5rem; }
  .upgrade-banner-btns .btn { width: 100%; }
  .pricing-card { margin: 0 -0.5rem; }
  .admin-stats { grid-template-columns: 1fr; }
  .ranking-table thead th:nth-child(5), .ranking-table tbody td:nth-child(5) { display: none; }
}

/* ========== Admin Panel ========== */
.admin-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1rem; margin-bottom: 2rem; }
.admin-stat-card { background: var(--bg-card); border-radius: 12px; padding: 1.5rem; text-align: center; border: 1px solid var(--border); }
.admin-stat-number { font-size: 2rem; font-weight: bold; color: var(--accent); font-family: 'Plus Jakarta Sans'; }
.admin-stat-label { color: var(--text-dim); font-size: 0.85rem; margin-top: 0.25rem; }

/* Online indicator */
.online-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #06d6a0;
  animation: online-pulse 1.5s ease-in-out infinite;
  margin-right: 4px;
  vertical-align: middle;
}
@keyframes online-pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(6, 214, 160, 0.4); }
  50% { opacity: 0.7; box-shadow: 0 0 8px 4px rgba(6, 214, 160, 0.2); }
}
.online-card { border-color: rgba(6, 214, 160, 0.3) !important; }
.admin-online-list {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
}
.admin-online-list h4 {
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
  color: var(--accent);
}
.online-users-grid {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.online-user-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.3rem 0;
  font-size: 0.85rem;
  border-bottom: 1px solid var(--divider-subtle);
}
.online-user-item:last-child { border-bottom: none; }
.admin-tabs { display: flex; gap: 0.5rem; margin-bottom: 1.5rem; }
.admin-tab { background: var(--bg-card); border: 1px solid var(--border); border-radius: 8px; padding: 0.6rem 1.5rem; color: var(--text); cursor: pointer; font-family: 'Outfit', sans-serif; font-size: 0.9rem; transition: all 0.3s; }
.admin-tab.active { background: var(--accent); border-color: var(--accent); color: var(--bg-dark); font-weight: 600; }
.admin-tab:hover:not(.active) { border-color: var(--primary); background: rgba(139,92,246,0.1); }
.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th, .admin-table td { padding: 0.75rem; text-align: left; border-bottom: 1px solid var(--border); }
.admin-table th { color: var(--accent); font-size: 0.8rem; text-transform: uppercase; }
.admin-table tr:hover { background: rgba(139,92,246,0.05); }

/* Admin filters */
.admin-filters {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.admin-filters-left {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.admin-search-input {
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  width: 150px;
  padding: 0.3rem 0.5rem;
  font-size: 0.85rem;
  font-family: 'Outfit', sans-serif;
  transition: border-color 0.3s;
}
.admin-search-input:focus {
  outline: none;
  border-color: var(--primary);
}

/* Admin Users Controls */
.admin-users-controls { margin-bottom: 1rem; }
.admin-users-search-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.admin-users-search-input {
  width: 250px !important;
  padding: 0.5rem 0.75rem !important;
  font-size: 0.9rem !important;
}
.admin-select {
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  padding: 0.5rem 0.75rem;
  font-size: 0.85rem;
  font-family: 'Outfit', sans-serif;
  cursor: pointer;
  transition: border-color 0.3s;
}
.admin-select:focus { outline: none; border-color: var(--primary); }
.admin-select option { background: var(--bg-card); color: var(--text); }
.admin-users-count {
  color: var(--text-dim);
  font-size: 0.85rem;
  margin-left: auto;
  white-space: nowrap;
}

/* Admin Pagination */
.admin-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}
.admin-pagination .btn { min-width: 36px; text-align: center; }
.admin-pagination .btn-primary { background: var(--primary); color: #fff; border-color: var(--primary); }
.admin-pagination .btn:disabled { opacity: 0.3; cursor: not-allowed; }
.admin-page-dots { color: var(--text-dim); font-size: 0.9rem; padding: 0 0.25rem; }

/* Admin Plan Selector */
.admin-plan-actions { display: flex; align-items: center; gap: 0.3rem; }
.admin-plan-select { padding: 0.25rem 0.4rem !important; font-size: 0.8rem !important; min-width: 110px; }
.btn-danger-outline {
  color: var(--danger) !important;
  border-color: var(--danger) !important;
}
.btn-danger-outline:hover {
  background: rgba(239, 68, 68, 0.1) !important;
}

/* Admin Chart */
.admin-chart-section {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.5rem;
}
.admin-chart-container {
  position: relative;
  height: 250px;
}
.admin-chart-summary {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.chart-stat {
  text-align: center;
  padding: 0.5rem;
  background: rgba(255,255,255,0.03);
  border-radius: 8px;
}
.chart-stat-value {
  font-family: 'Plus Jakarta Sans', monospace;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-bright);
}
.chart-stat-label {
  font-size: 0.75rem;
  color: var(--text-dim);
  margin-top: 0.15rem;
}

/* ========== Support ========== */
.ticket-card { background: var(--bg-card); border-radius: 12px; padding: 1.25rem; margin-bottom: 1rem; border: 1px solid var(--border); transition: border-color 0.3s; }
.ticket-card:hover { border-color: var(--primary); }
.ticket-unread-card { border-color: var(--accent); box-shadow: 0 0 12px rgba(6, 214, 160, 0.15); }
.ticket-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.5rem; }
.ticket-status { padding: 0.2rem 0.6rem; border-radius: 20px; font-size: 0.75rem; font-weight: bold; }
.ticket-status.open { background: rgba(255,193,7,0.2); color: #ffc107; }
.ticket-status.replied { background: rgba(76,175,80,0.2); color: #4caf50; }
.ticket-status.waiting { background: rgba(255,152,0,0.2); color: #ff9800; }
.ticket-status.closed { background: rgba(158,158,158,0.2); color: #9e9e9e; }
.ticket-unread { background: var(--accent); color: #000; font-size: 0.7rem; font-weight: 700; padding: 0.15rem 0.5rem; border-radius: 10px; margin-right: 0.5rem; animation: ticket-unread-pulse 2s ease infinite; }
@keyframes ticket-unread-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.7; } }
.ticket-reply { background: rgba(139,92,246,0.1); border-left: 3px solid var(--accent); padding: 0.75rem 1rem; margin-top: 0.75rem; border-radius: 0 8px 8px 0; }

/* Conversation thread */
.ticket-conversation { display: flex; flex-direction: column; gap: 0.75rem; max-height: 500px; overflow-y: auto; padding: 0.5rem 0; }
.ticket-msg { padding: 0.75rem 1rem; border-radius: 12px; max-width: 85%; word-wrap: break-word; }
.ticket-msg p { margin: 0; white-space: pre-wrap; }
.ticket-msg-user { background: hsla(var(--theme-hue), 77%, 55%, 0.1); border: 1px solid hsla(var(--theme-hue), 77%, 55%, 0.2); align-self: flex-end; border-radius: 12px 12px 4px 12px; }
.ticket-msg-admin { background: rgba(6, 214, 160, 0.08); border: 1px solid rgba(6, 214, 160, 0.15); align-self: flex-start; border-radius: 12px 12px 12px 4px; }
.ticket-msg-header { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 0.4rem; font-size: 0.8rem; }
.ticket-msg-header strong { color: var(--text); }
.ticket-msg-header span { color: var(--text-dim); font-size: 0.75rem; }
.ticket-read-badge { display: block; font-size: 0.7rem; color: var(--accent); margin-top: 0.3rem; text-align: right; }
.ticket-unread-badge { display: block; font-size: 0.7rem; color: var(--text-dim); margin-top: 0.3rem; text-align: right; }

/* Screenshot upload */
.screenshot-upload-area {
  border: 2px dashed var(--border);
  border-radius: 12px;
  padding: 1rem;
  cursor: pointer;
  transition: all 0.3s;
  text-align: center;
}
.screenshot-upload-area:hover {
  border-color: var(--primary);
  background: hsla(var(--theme-hue), 77%, 55%, 0.05);
}
.screenshot-preview-empty {
  color: var(--text-dim);
  padding: 1.5rem 0;
  font-size: 0.9rem;
}

/* ========== History ========== */
.history-item { background: var(--bg-card); border-radius: 12px; padding: 1rem 1.25rem; margin-bottom: 0.75rem; border: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; }
.history-name { font-weight: bold; }
.history-meta { color: var(--text-dim); font-size: 0.85rem; }

/* ========== Page Visibility ========== */
.page { display: none; }
.page.active { display: block; }
@media (min-width: 769px) {
  .page.active { margin-left: 240px; transition: margin-left 0.3s cubic-bezier(0.4, 0, 0.2, 1); }
}

/* ========== Alerts ========== */
.alert {
  padding: 1rem 1.25rem;
  border-radius: 10px;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  display: none;
}

.alert.visible { display: block; }
.alert-error { background: rgba(239, 68, 68, 0.1); border: 1px solid var(--danger); color: var(--danger); }
.alert-success { background: rgba(6, 214, 160, 0.1); border: 1px solid var(--accent); color: var(--accent); }
.alert-warning { background: rgba(245, 158, 11, 0.1); border: 1px solid var(--warning); color: var(--warning); }

/* Equalizer animation for downloading state */
.eq-bars {
  display: inline-flex;
  gap: 2px;
  height: 16px;
  align-items: flex-end;
}
.eq-bars span {
  width: 3px;
  background: var(--primary);
  border-radius: 2px;
  animation: eq 0.8s ease-in-out infinite;
}
.eq-bars span:nth-child(1) { animation-delay: 0s; }
.eq-bars span:nth-child(2) { animation-delay: 0.15s; }
.eq-bars span:nth-child(3) { animation-delay: 0.3s; }

@keyframes eq {
  0%, 100% { height: 4px; }
  50% { height: 16px; }
}

/* ========== Donations ========== */
.donation-amount-btn {
  min-width: 60px;
  font-size: 1.1rem;
  font-weight: 700;
  font-family: 'Plus Jakarta Sans', sans-serif;
}
.donation-amount-btn.active {
  background: var(--accent) !important;
  border-color: var(--accent) !important;
  color: var(--bg-dark) !important;
}

/* ========== Star Rating ========== */
#starRating .star {
  transition: transform 0.15s, color 0.15s;
  display: inline-block;
  user-select: none;
}
#starRating .star:hover {
  transform: scale(1.2);
}

/* ========== Forum ========== */
.forum-cat-btn {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-dim);
  border-radius: 20px;
  padding: 0.3rem 0.8rem;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.2s;
}
.forum-cat-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}
.forum-cat-btn:hover:not(.active) {
  border-color: var(--primary);
  color: var(--text);
}

/* ========== Converter ========== */
.converter-card {
  transition: all 0.3s ease;
}
.converter-card.drag-over {
  border-color: var(--primary) !important;
  background: hsla(var(--theme-hue), 77%, 55%, 0.05) !important;
  transform: scale(1.01);
  box-shadow: var(--shadow-glow);
}
.converter-card:hover {
  border-color: var(--text-dim) !important;
}

.converter-format-btn {
  background: var(--bg-input);
  border: 2px solid var(--border);
  color: var(--text-dim);
  border-radius: 12px;
  padding: 0.7rem 1.2rem;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  position: relative;
}
.converter-format-btn.active {
  border-color: var(--primary);
  background: hsla(var(--theme-hue), 77%, 55%, 0.15);
  color: var(--primary);
  box-shadow: 0 0 12px hsla(var(--theme-hue), 77%, 55%, 0.2);
}
.converter-format-btn:hover:not(.active) {
  border-color: var(--primary);
  color: var(--text);
}
.converter-format-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.converter-premium-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  background: var(--gradient-primary);
  color: white;
  font-size: 0.6rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 8px;
  letter-spacing: 0.5px;
}

.converter-quality-btn {
  background: var(--bg-input);
  border: 2px solid var(--border);
  color: var(--text-dim);
  border-radius: 10px;
  padding: 0.6rem 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
}
.converter-quality-btn.active {
  border-color: var(--accent);
  background: rgba(6, 214, 160, 0.15);
  color: var(--accent);
  box-shadow: 0 0 12px rgba(6, 214, 160, 0.2);
}
.converter-quality-btn:hover:not(.active):not(:disabled) {
  border-color: var(--accent);
  color: var(--text);
}
.converter-quality-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}
.converter-quality-btn .lock-icon {
  margin-left: 4px;
  font-size: 0.75rem;
}

.converter-progress-bar-container {
  position: relative;
}
.converter-progress-bar {
  position: relative;
  overflow: hidden;
}
.converter-progress-glow {
  position: absolute;
  top: 0;
  right: 0;
  width: 60px;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  animation: converterGlow 1.5s infinite;
}
@keyframes converterGlow {
  0% { transform: translateX(-60px); }
  100% { transform: translateX(60px); }
}

.converter-start-btn {
  position: relative;
  overflow: hidden;
}
.converter-start-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
  transition: left 0.5s;
}
.converter-start-btn:hover::before {
  left: 100%;
}

.converter-limits .limit-badge {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.converter-limits .limit-badge .label {
  color: var(--text-dim);
}
.converter-limits .limit-badge .value {
  color: var(--text-bright);
  font-weight: 600;
}

.converter-file-info {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.converter-file-icon {
  font-size: 2.5rem;
  width: 60px;
  height: 60px;
  background: var(--bg-input);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.converter-file-details {
  flex: 1;
  min-width: 0;
}
.converter-file-name {
  font-weight: 600;
  color: var(--text-bright);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 0.3rem;
}
.converter-file-meta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.8rem;
  color: var(--text-dim);
}
.converter-file-remove {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: var(--danger);
  border-radius: 8px;
  padding: 0.4rem 0.8rem;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.2s;
}
.converter-file-remove:hover {
  background: rgba(239, 68, 68, 0.2);
}

.converter-source-tab {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-dim);
  border-radius: 10px;
  padding: 0.6rem 1.2rem;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.converter-source-tab.active {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}
.converter-source-tab:hover:not(.active) {
  border-color: var(--primary);
  color: var(--text);
}
.converter-source-tab[data-source="youtube"].active {
  background: #ff0000;
  border-color: #ff0000;
}
.converter-source-tab[data-source="soundcloud"].active {
  background: #ff5500;
  border-color: #ff5500;
}

@media (max-width: 768px) {
  .converter-format-buttons,
  .converter-quality-buttons {
    justify-content: center;
    gap: 0.4rem;
  }
  .converter-format-btn {
    padding: 0.5rem 0.8rem;
    font-size: 0.8rem;
  }
  .converter-quality-btn {
    padding: 0.5rem 0.7rem;
    font-size: 0.8rem;
  }
  .converter-file-info {
    flex-direction: column;
    text-align: center;
    padding: 1rem;
  }
  .converter-file-meta {
    justify-content: center;
  }
  .converter-source-tabs {
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.4rem;
  }
  .converter-source-tab {
    padding: 0.5rem 0.8rem;
    font-size: 0.8rem;
  }
  .converter-limits {
    flex-wrap: wrap;
    justify-content: center;
  }
  .converter-limits .limit-badge {
    font-size: 0.75rem;
    padding: 0.35rem 0.7rem;
  }
}

/* ========== AI Chatbot Widget ========== */
.chatbot-fab {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, hsl(var(--theme-hue), 77%, 55%), #06d6a0);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 900;
  box-shadow: 0 4px 20px hsla(var(--theme-hue), 77%, 55%, 0.4);
  transition: all 0.3s;
}

.chatbot-fab:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 30px hsla(var(--theme-hue), 77%, 55%, 0.6);
}

.chatbot-fab-icon {
  font-size: 1.6rem;
  transition: transform 0.3s;
}

.chatbot-fab.open .chatbot-fab-icon {
  transform: rotate(90deg);
}

.chatbot-fab-label {
  position: absolute;
  right: 70px;
  white-space: nowrap;
  background: var(--bg-card);
  color: var(--text);
  padding: 8px 14px;
  border-radius: 10px;
  font-size: 0.8rem;
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
  border: 1px solid var(--border);
  pointer-events: none;
  animation: chatbot-label-show 8s ease-in-out forwards;
}

.chatbot-fab-label::after {
  content: '';
  position: absolute;
  right: -6px;
  top: 50%;
  transform: translateY(-50%);
  border: 6px solid transparent;
  border-left-color: var(--bg-card);
}

@keyframes chatbot-label-show {
  0% { opacity: 0; transform: translateX(10px); }
  10% { opacity: 1; transform: translateX(0); }
  80% { opacity: 1; transform: translateX(0); }
  100% { opacity: 0; transform: translateX(10px); }
}

.chatbot-fab.open .chatbot-fab-label {
  display: none;
}

.chatbot-fab-pulse {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: linear-gradient(135deg, hsl(var(--theme-hue), 77%, 55%), #06d6a0);
  animation: chatbot-pulse 2s ease-in-out infinite;
  z-index: -1;
}

.chatbot-fab.open .chatbot-fab-pulse {
  animation: none;
}

@keyframes chatbot-pulse {
  0% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.3); opacity: 0; }
  100% { transform: scale(1); opacity: 0; }
}

.chatbot-window {
  position: fixed;
  bottom: 100px;
  right: 24px;
  width: 380px;
  max-width: calc(100vw - 32px);
  height: 520px;
  max-height: calc(100vh - 140px);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  z-index: 901;
  display: none;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5), 0 0 30px hsla(var(--theme-hue), 77%, 55%, 0.15);
  animation: chatbot-slide-up 0.3s ease;
}

.chatbot-window.open {
  display: flex;
}

@keyframes chatbot-slide-up {
  from { opacity: 0; transform: translateY(20px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.chatbot-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  background: linear-gradient(135deg, hsla(var(--theme-hue), 77%, 55%, 0.2), rgba(6, 214, 160, 0.15));
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.chatbot-header-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.chatbot-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, hsl(var(--theme-hue), 77%, 55%), #06d6a0);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}

.chatbot-header-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-bright);
  letter-spacing: 1px;
}

.chatbot-header-status {
  font-size: 0.75rem;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.chatbot-online-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  display: inline-block;
  animation: online-pulse 1.5s ease-in-out infinite;
}

.chatbot-close {
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0;
  line-height: 1;
  transition: color 0.2s;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.chatbot-close:hover {
  color: var(--danger);
  background: rgba(239, 68, 68, 0.1);
}

.chatbot-messages {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  scroll-behavior: smooth;
}

.chatbot-messages::-webkit-scrollbar {
  width: 5px;
}
.chatbot-messages::-webkit-scrollbar-track {
  background: transparent;
}
.chatbot-messages::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 10px;
}

.chatbot-msg {
  display: flex;
  gap: 0.5rem;
  max-width: 90%;
  animation: chatbot-msg-in 0.3s ease;
}

@keyframes chatbot-msg-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.chatbot-msg.bot {
  align-self: flex-start;
}

.chatbot-msg.user {
  align-self: flex-end;
  flex-direction: row-reverse;
}

.chatbot-msg-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.chatbot-msg.bot .chatbot-msg-avatar {
  background: linear-gradient(135deg, hsla(var(--theme-hue), 77%, 55%, 0.3), rgba(6, 214, 160, 0.2));
}

.chatbot-msg.user .chatbot-msg-avatar {
  background: hsla(var(--theme-hue), 77%, 55%, 0.2);
}

.chatbot-msg-bubble {
  padding: 0.7rem 1rem;
  border-radius: 16px;
  font-size: 0.88rem;
  line-height: 1.5;
  word-break: break-word;
}

.chatbot-msg.bot .chatbot-msg-bubble {
  background: var(--bg-input);
  color: var(--text);
  border-bottom-left-radius: 4px;
}

.chatbot-msg.user .chatbot-msg-bubble {
  background: linear-gradient(135deg, hsl(var(--theme-hue), 77%, 55%), hsl(var(--theme-hue), 77%, 45%));
  color: white;
  border-bottom-right-radius: 4px;
}

.chatbot-msg-bubble strong {
  color: var(--accent);
}

.chatbot-msg.user .chatbot-msg-bubble strong {
  color: #a5f3fc;
}

.chatbot-typing {
  display: flex;
  gap: 4px;
  padding: 0.7rem 1rem;
  align-items: center;
}

.chatbot-typing span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--text-dim);
  animation: chatbot-typing-dot 1.2s ease-in-out infinite;
}

.chatbot-typing span:nth-child(2) { animation-delay: 0.2s; }
.chatbot-typing span:nth-child(3) { animation-delay: 0.4s; }

@keyframes chatbot-typing-dot {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30% { transform: translateY(-6px); opacity: 1; }
}

.chatbot-suggestions {
  display: flex;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  overflow-x: auto;
  flex-shrink: 0;
  border-top: 1px solid var(--divider-subtle);
}

.chatbot-suggestions::-webkit-scrollbar {
  height: 0;
}

.chatbot-suggestions button {
  white-space: nowrap;
  background: var(--bg-input);
  border: 1px solid var(--border);
  color: var(--text-dim);
  border-radius: 20px;
  padding: 0.35rem 0.85rem;
  font-size: 0.78rem;
  cursor: pointer;
  transition: all 0.2s;
  flex-shrink: 0;
  font-family: 'Outfit', sans-serif;
}

.chatbot-suggestions button:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: hsla(var(--theme-hue), 77%, 55%, 0.1);
}

.chatbot-input-area {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border-top: 1px solid var(--border);
  background: var(--chatbot-input-bg);
  flex-shrink: 0;
}

.chatbot-input {
  flex: 1;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 0.6rem 1rem;
  color: var(--text);
  font-size: 0.88rem;
  outline: none;
  font-family: 'Outfit', sans-serif;
  transition: border-color 0.2s;
}

.chatbot-input:focus {
  border-color: var(--primary);
}

.chatbot-input::placeholder {
  color: var(--text-dim);
}

.chatbot-send {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, hsl(var(--theme-hue), 77%, 55%), #06d6a0);
  border: none;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  flex-shrink: 0;
}

.chatbot-send:hover {
  transform: scale(1.1);
  box-shadow: 0 2px 12px hsla(var(--theme-hue), 77%, 55%, 0.4);
}

.chatbot-send:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* Mobile chatbot */
@media (max-width: 768px) {
  .chatbot-fab {
    bottom: 16px;
    right: 16px;
    width: 54px;
    height: 54px;
  }
  .chatbot-fab-icon { font-size: 1.4rem; }
  .chatbot-window {
    bottom: 0;
    right: 0;
    width: 100%;
    max-width: 100%;
    height: 100%;
    max-height: 100%;
    border-radius: 0;
    border: none;
  }
  .chatbot-header {
    padding-top: max(1rem, env(safe-area-inset-top));
  }
}

/* ========== Promo Popup ========== */
.promo-popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(6px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: promo-fade-in 0.4s ease;
}
@keyframes promo-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
.promo-popup {
  background: var(--bg-card);
  border: 1px solid var(--primary);
  border-radius: var(--radius-xl);
  padding: var(--space-lg) var(--space-md);
  max-width: 400px;
  width: 90%;
  text-align: center;
  position: relative;
  animation: promo-slide-in 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 0 40px rgba(157, 78, 221, 0.3), var(--shadow-lg);
}
@keyframes promo-slide-in {
  from { opacity: 0; transform: translateY(30px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.promo-popup-close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.6rem;
  cursor: pointer;
  transition: color 0.2s;
  line-height: 1;
}
.promo-popup-close:hover { color: var(--text); }
.promo-popup-icon {
  font-size: 2rem;
  margin-bottom: var(--space-xs);
  animation: promo-bounce 1s ease infinite alternate;
}
@keyframes promo-bounce {
  from { transform: translateY(0); }
  to { transform: translateY(-8px); }
}
.promo-popup-title {
  font-family: 'Plus Jakarta Sans', monospace;
  color: var(--accent);
  font-size: 1rem;
  margin-bottom: var(--space-xs);
  letter-spacing: 1px;
}
.promo-popup-desc {
  color: var(--text-secondary);
  font-size: 0.82rem;
  line-height: 1.4;
  margin-bottom: var(--space-sm);
}
.promo-popup-platforms {
  display: flex;
  justify-content: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
  flex-wrap: wrap;
}
.promo-platform-badge {
  background: rgba(157, 78, 221, 0.15);
  border: 1px solid rgba(157, 78, 221, 0.3);
  border-radius: var(--radius-full);
  padding: 6px 14px;
  font-size: 0.85rem;
  color: var(--text);
}
.promo-popup-code-section {
  background: rgba(0, 0, 0, 0.3);
  border-radius: var(--radius-md);
  padding: var(--space-sm);
  margin-bottom: var(--space-sm);
}
.promo-popup-discount {
  color: var(--accent);
  font-weight: 600;
  font-size: 0.82rem;
  margin-bottom: var(--space-xs);
}
.promo-popup-code {
  background: rgba(157, 78, 221, 0.2);
  border: 2px dashed var(--primary);
  border-radius: var(--radius-md);
  padding: 6px 14px;
  font-family: 'Plus Jakarta Sans', monospace;
  font-size: 1rem;
  color: var(--accent);
  letter-spacing: 3px;
  cursor: pointer;
  transition: background 0.2s;
  display: inline-block;
}
.promo-popup-code:hover {
  background: rgba(157, 78, 221, 0.35);
}
.promo-copied {
  font-size: 0.8rem;
  color: var(--success, #4ade80);
  letter-spacing: 0;
}
.promo-popup-cta {
  width: 100%;
  font-size: 0.9rem;
  padding: 10px;
  margin-top: var(--space-xs);
}

/* ========== Hot Charts ========== */
.charts-period-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}
.charts-period-tab {
  padding: 0.6rem 1.4rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-dim);
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.2s ease;
}
.charts-period-tab:hover {
  border-color: var(--primary);
  color: var(--text-bright);
}
.charts-period-tab.active {
  background: var(--gradient-primary);
  color: #fff;
  border-color: transparent;
  font-weight: 600;
}

/* Trending Now */
.charts-trending {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  margin-bottom: 1.5rem;
}
.charts-section-title {
  font-size: 1rem;
  color: var(--text-bright);
  margin-bottom: 0.75rem;
}
.charts-trending-list {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  padding-bottom: 0.25rem;
}
.charts-trending-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg-input);
  border-radius: var(--radius-md);
  padding: 0.5rem 0.75rem;
  white-space: nowrap;
  flex-shrink: 0;
  font-size: 0.85rem;
}
.charts-trending-rank {
  font-weight: 700;
  color: var(--accent);
  font-size: 0.8rem;
}
.charts-trending-name {
  font-weight: 600;
  color: var(--text-bright);
}
.charts-trending-artist {
  color: var(--text-dim);
}
.charts-trending-count {
  color: var(--primary);
  font-weight: 600;
}

/* Charts Table */
.charts-container {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.charts-table {
  width: 100%;
  border-collapse: collapse;
}
.charts-table thead {
  background: var(--bg-input);
}
.charts-table th {
  padding: 0.75rem 1rem;
  text-align: left;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-dim);
  font-weight: 600;
}
.charts-th-rank { width: 60px; text-align: center; }
.charts-th-count { width: 100px; text-align: center; }

.charts-row {
  border-bottom: 1px solid var(--border);
  transition: background 0.15s ease;
}
.charts-row:hover {
  background: rgba(255, 255, 255, 0.03);
}
.charts-row:last-child {
  border-bottom: none;
}
.charts-row-top {
  background: rgba(255, 165, 0, 0.04);
}
.charts-row-top:hover {
  background: rgba(255, 165, 0, 0.08);
}

.charts-rank {
  padding: 0.75rem 1rem;
  text-align: center;
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--text-dim);
}
.charts-rank-gold {
  color: #ffd700;
  text-shadow: 0 0 12px rgba(255, 215, 0, 0.5);
  font-size: 1.5rem;
}
.charts-rank-silver {
  color: #c0c0c0;
  text-shadow: 0 0 10px rgba(192, 192, 192, 0.4);
  font-size: 1.4rem;
}
.charts-rank-bronze {
  color: #cd7f32;
  text-shadow: 0 0 10px rgba(205, 127, 50, 0.4);
  font-size: 1.35rem;
}

.charts-track {
  padding: 0.75rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.charts-track-name {
  font-weight: 600;
  color: var(--text-bright);
  font-size: 0.95rem;
}
.charts-track-album {
  font-size: 0.8rem;
  color: var(--text-dim);
}
.charts-artist {
  padding: 0.75rem 1rem;
  color: var(--text);
  font-size: 0.9rem;
}
.charts-count {
  padding: 0.75rem 1rem;
  text-align: center;
  font-weight: 700;
  color: var(--primary);
  font-size: 1rem;
}

.charts-fire {
  display: inline-block;
  animation: chartsFire 0.6s ease-in-out infinite alternate;
  filter: drop-shadow(0 0 4px rgba(255, 120, 0, 0.6));
}
@keyframes chartsFire {
  from { transform: scale(1); }
  to { transform: scale(1.15); }
}

/* Mobile responsive */
@media (max-width: 640px) {
  .charts-table th:nth-child(3),
  .charts-table td.charts-artist {
    display: none;
  }
  .charts-rank { font-size: 1.1rem; padding: 0.5rem; }
  .charts-rank-gold { font-size: 1.3rem; }
  .charts-rank-silver { font-size: 1.2rem; }
  .charts-rank-bronze { font-size: 1.15rem; }
  .charts-track { padding: 0.5rem; }
  .charts-count { padding: 0.5rem; font-size: 0.85rem; }
}

/* ========== Download Stats Grid ========== */
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-md); margin: var(--space-lg) 0; }
.stat-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: var(--space-lg); text-align: center; }
.stat-number { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 1.5rem; color: var(--accent); margin-bottom: var(--space-xs); }
.stat-label { color: var(--text-dim); font-size: 0.85rem; }

/* ========== Stems / Vocal Remover ========== */
.stems-upgrade-banner {
  text-align: center;
  padding: 3rem 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.stems-lock-icon { font-size: 3rem; margin-bottom: 1rem; }
.stems-upgrade-banner h3 { color: var(--accent); margin-bottom: 0.5rem; }
.stems-upgrade-banner p { color: var(--text-dim); margin-bottom: 1.5rem; max-width: 400px; margin-left: auto; margin-right: auto; }

.stems-modes {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  justify-content: center;
}
.stems-mode-btn {
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.2rem 1.5rem;
  cursor: pointer;
  text-align: center;
  transition: all 0.3s;
  flex: 1;
  max-width: 250px;
}
.stems-mode-btn:hover { border-color: var(--primary); }
.stems-mode-btn.active { border-color: var(--accent); background: hsla(var(--theme-hue), 77%, 55%, 0.1); }
.stems-mode-icon { display: block; font-size: 1.5rem; margin-bottom: 0.5rem; }
.stems-mode-label { display: block; font-weight: 700; color: var(--text); font-size: 1rem; }
.stems-mode-desc { display: block; color: var(--text-dim); font-size: 0.8rem; margin-top: 0.25rem; }

.stems-upload-area {
  border: 2px dashed var(--border);
  border-radius: var(--radius-lg);
  padding: 3rem 2rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s;
  background: var(--bg-card);
}
.stems-upload-area:hover, .stems-upload-area.drag-over {
  border-color: var(--accent);
  background: hsla(var(--theme-hue), 77%, 55%, 0.05);
}
.stems-upload-icon { font-size: 3rem; margin-bottom: 1rem; }
.stems-upload-text { color: var(--text); font-weight: 600; margin-bottom: 0.5rem; }
.stems-upload-hint { color: var(--text-dim); font-size: 0.85rem; margin-bottom: 1rem; }

.stems-processing {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
}
.stems-processing-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.stems-processing-header h4 { color: var(--accent); margin: 0; }
.stems-progress-bar {
  width: 100%;
  height: 8px;
  background: var(--bg-input);
  border-radius: 99px;
  overflow: hidden;
  margin-bottom: 0.75rem;
}
.stems-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, hsl(var(--theme-hue), 77%, 55%), hsl(calc(var(--theme-hue) + 30), 85%, 60%), #38bdf8);
  border-radius: 99px;
  transition: width 0.5s ease;
}
.stems-progress-text { color: var(--text-dim); font-size: 0.85rem; text-align: center; }

.stems-results { margin-top: 1.5rem; }
.stems-results-title { text-align: center; color: var(--accent); margin-bottom: 1.5rem; }
.stems-results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}
.stems-result-card {
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  text-align: center;
  transition: border-color 0.3s;
}
.stems-result-card:hover { transform: translateY(-2px); }
.stems-result-icon { font-size: 1.1rem; font-weight: 700; margin-bottom: 0.5rem; }
.stems-result-size { color: var(--text-dim); font-size: 0.8rem; margin-bottom: 0.75rem; }
.stems-audio-player {
  width: 100%;
  height: 36px;
  margin-bottom: 0.75rem;
  border-radius: 8px;
}
.stems-download-btn { width: 100%; }

@media (max-width: 640px) {
  .stems-modes { flex-direction: column; }
  .stems-mode-btn { max-width: 100%; }
  .stems-results-grid { grid-template-columns: 1fr; }
}

/* ========== Setlist Builder ========== */
.setlist-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.25rem; }
.setlist-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1rem; margin-top: 1.5rem; }
.setlist-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 1.25rem; cursor: pointer; transition: all 0.3s;
}
.setlist-card:hover { border-color: var(--primary); transform: translateY(-2px); box-shadow: 0 4px 20px rgba(139,92,246,0.15); }
.setlist-card-top { display: flex; justify-content: space-between; align-items: start; margin-bottom: 0.75rem; }
.setlist-card-name { font-size: 1.05rem; font-weight: 700; color: var(--text); margin: 0; }
.setlist-card-count { color: var(--accent); font-size: 0.85rem; font-weight: 600; white-space: nowrap; }
.setlist-card-meta { display: flex; justify-content: space-between; color: var(--text-dim); font-size: 0.8rem; }
.setlist-empty { text-align: center; padding: 3rem 1rem; color: var(--text-dim); }
.setlist-empty-icon { font-size: 3rem; margin-bottom: 1rem; }
.setlist-empty h3 { color: var(--text); margin-bottom: 0.5rem; }

/* Editor */
.setlist-editor-header { display: flex; align-items: start; gap: 1rem; margin-bottom: 1.5rem; }
.setlist-editor-title { flex: 1; }
.setlist-editable-name {
  font-size: 1.4rem; font-weight: 700; color: var(--text); outline: none; border-bottom: 2px solid transparent;
  transition: border-color 0.3s; padding: 0.1rem 0; margin: 0; min-width: 100px;
}
.setlist-editable-name:focus { border-bottom-color: var(--accent); }
.setlist-editable-desc {
  color: var(--text-dim); font-size: 0.9rem; outline: none; border-bottom: 1px solid transparent;
  transition: border-color 0.3s; padding: 0.1rem 0; margin-top: 0.25rem; min-height: 1.2em;
}
.setlist-editable-desc:focus { border-bottom-color: var(--border); }
.setlist-editable-desc:empty::before { content: attr(data-placeholder); color: var(--text-dim); opacity: 0.5; }

/* Stats */
.setlist-stats {
  display: flex; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 1.5rem;
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1rem 1.25rem;
}
.setlist-stat { text-align: center; flex: 1; min-width: 70px; }
.setlist-stat-val { display: block; font-family: 'Plus Jakarta Sans', sans-serif; font-size: 1.1rem; color: var(--accent); font-weight: 700; }
.setlist-stat-label { display: block; font-size: 0.7rem; color: var(--text-dim); text-transform: uppercase; margin-top: 0.1rem; }
.setlist-actions {
  display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1rem;
  padding: 0.75rem 1rem; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg);
}
.setlist-actions .btn { font-size: 0.8rem; }
@media (max-width: 640px) { .setlist-actions { gap: 0.35rem; } .setlist-actions .btn { font-size: 0.72rem; padding: 0.35rem 0.6rem; } }

/* ZIP download progress bar */
.setlist-dl-bar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 9999;
  display: flex; justify-content: center; padding: 0 1rem 1rem;
  pointer-events: none;
}
.setlist-dl-bar-inner {
  pointer-events: all; width: 100%; max-width: 500px;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 1rem 1.25rem;
  box-shadow: 0 -4px 24px rgba(0,0,0,0.5);
}
.setlist-dl-bar-header {
  display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.5rem;
  font-size: 0.85rem; color: var(--text);
}
.setlist-dl-bar-close {
  background: none; border: none; color: var(--text-dim); font-size: 1.1rem; cursor: pointer; padding: 0.2rem;
}
.setlist-dl-bar-close:hover { color: #ff4444; }
.setlist-dl-bar-track {
  font-size: 0.8rem; color: var(--accent); margin-bottom: 0.5rem;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.setlist-dl-bar-progress {
  height: 6px; background: rgba(255,255,255,0.1); border-radius: 3px; overflow: hidden;
}
.setlist-dl-bar-fill {
  height: 100%; background: linear-gradient(90deg, var(--accent), #06d6a0);
  border-radius: 3px; transition: width 0.4s ease;
}
.setlist-dl-bar-info {
  display: flex; justify-content: space-between; margin-top: 0.4rem;
  font-size: 0.75rem; color: var(--text-dim);
}

/* Tracks list */
.setlist-tracks-container { margin-bottom: 1.5rem; }
.setlist-tracks-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.75rem; }
.setlist-tracks-header h3 { margin: 0; font-size: 1rem; color: var(--text); }
.setlist-tracks-empty { text-align: center; padding: 2rem; color: var(--text-dim); background: var(--bg-card); border: 1px dashed var(--border); border-radius: var(--radius-lg); }

/* Track item */
.setlist-track-item {
  display: flex; align-items: center; gap: 0.6rem; padding: 0.75rem 0.85rem;
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-md);
  margin-bottom: 0.35rem; cursor: grab; transition: all 0.2s;
}
.setlist-track-item:hover { border-color: var(--primary); }
.setlist-track-item.dragging { opacity: 0.4; }
.setlist-track-item.drag-over { border-color: var(--accent); box-shadow: 0 0 0 2px rgba(139,92,246,0.3); }
.setlist-track-num { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 0.85rem; color: var(--text-dim); min-width: 24px; text-align: center; }
.setlist-track-grip { color: var(--text-dim); font-size: 0.9rem; cursor: grab; user-select: none; opacity: 0.4; }
.setlist-track-info { flex: 1; min-width: 0; }
.setlist-track-name { font-weight: 600; font-size: 0.9rem; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.setlist-track-artist { font-size: 0.8rem; color: var(--text-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.setlist-track-tags { display: flex; gap: 0.3rem; flex-wrap: wrap; flex-shrink: 0; }
.setlist-track-remove { background: none; border: none; color: var(--text-dim); font-size: 1.2rem; cursor: pointer; padding: 0 0.3rem; transition: color 0.2s; }
.setlist-track-remove:hover { color: #ef4444; }

/* Tags */
.sl-tag { font-size: 0.65rem; padding: 0.15rem 0.4rem; border-radius: 4px; font-weight: 600; white-space: nowrap; }
.sl-tag-bpm { background: rgba(139,92,246,0.15); color: #a78bfa; }
.sl-tag-key { background: rgba(6,214,160,0.15); color: #06d6a0; }
.sl-tag-camelot { background: rgba(251,191,36,0.15); color: #fbbf24; }
.sl-tag-energy { background: rgba(249,115,22,0.15); color: #f97316; }
.sl-tag-dur { background: rgba(100,116,139,0.15); color: #94a3b8; }

/* Transition indicator */
.setlist-transition {
  display: flex; align-items: center; gap: 0.5rem; padding: 0.2rem 0.75rem;
  margin: 0.15rem 0 0.15rem 1.5rem; font-size: 0.75rem; border-left: 3px solid var(--border);
}
.setlist-bpm-diff { color: var(--text-dim); font-size: 0.7rem; }

/* Library panel */
.setlist-library-filters { display: flex; gap: 0.5rem; margin-bottom: 0.75rem; flex-wrap: wrap; }
.setlist-library-filters .admin-search-input { flex: 1; min-width: 180px; }
.setlist-library-list { max-height: 400px; overflow-y: auto; }
.setlist-lib-item {
  display: flex; align-items: center; gap: 0.6rem; padding: 0.5rem 0.75rem;
  border-bottom: 1px solid var(--border); transition: background 0.2s;
}
.setlist-lib-item:hover { background: rgba(139,92,246,0.05); }
.setlist-lib-info { flex: 1; min-width: 0; }
.setlist-lib-name { display: block; font-weight: 600; font-size: 0.85rem; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.setlist-lib-artist { display: block; font-size: 0.75rem; color: var(--text-dim); }
.setlist-lib-tags { display: flex; gap: 0.25rem; flex-shrink: 0; }

/* Suggestions */
.setlist-suggestions, .setlist-add-panel {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 1.25rem; margin-top: 1rem;
}
.setlist-suggest-desc { color: var(--text-dim); font-size: 0.85rem; margin-bottom: 0.75rem; }
.setlist-suggest-item {
  display: flex; align-items: center; gap: 0.6rem; padding: 0.5rem 0.75rem;
  border-bottom: 1px solid var(--border);
}
.setlist-suggest-score { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 1rem; font-weight: 700; min-width: 32px; text-align: center; }

/* Modal */
.modal-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.6); z-index: 9999; display: flex; align-items: center; justify-content: center; }
.modal-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.5rem; width: 90%; }
.modal-card h3 { margin-bottom: 1rem; }

@media (max-width: 640px) {
  .setlist-grid { grid-template-columns: 1fr; }
  .setlist-track-tags { display: none; }
  .setlist-stats { gap: 0.5rem; padding: 0.75rem; }
  .setlist-stat-val { font-size: 0.9rem; }
}

/* ==================== MARKETPLACE ==================== */
/* Marketplace Hero */
.mkt-hero {
  background: linear-gradient(135deg, rgba(139,92,246,0.15) 0%, rgba(5,150,105,0.1) 50%, rgba(139,92,246,0.08) 100%);
  border: 1px solid rgba(139,92,246,0.2);
  border-radius: var(--radius-lg);
  padding: 2rem 2.5rem;
  text-align: center;
  margin-bottom: 1.5rem;
}
.mkt-hero h2 { font-size: 1.8rem; margin-bottom: 0.3rem; }
.mkt-hero p { color: var(--text-dim); font-size: 1rem; margin-bottom: 1.2rem; }
.mkt-hero-stats { display: flex; justify-content: center; gap: 2.5rem; }
.mkt-hero-stat { display: flex; flex-direction: column; align-items: center; }
.mkt-hero-stat strong { font-size: 1.5rem; color: var(--primary); }
.mkt-hero-stat span { font-size: 0.75rem; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.5px; }

/* Tutorial */
.mkt-tutorial {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  position: relative;
}
.mkt-tutorial h3 { margin-bottom: 1rem; font-size: 1.1rem; }
.mkt-tutorial-close { position: absolute; top: 0.5rem; right: 0.75rem; background: none; border: none; color: var(--text-dim); font-size: 1.3rem; cursor: pointer; }
.mkt-tutorial-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.mkt-tutorial-step {
  text-align: center;
  padding: 1rem 0.5rem;
  background: rgba(139,92,246,0.05);
  border: 1px solid rgba(139,92,246,0.1);
  border-radius: var(--radius-lg);
}
.mkt-step-icon { font-size: 2rem; margin-bottom: 0.5rem; }
.mkt-tutorial-step h4 { font-size: 0.85rem; margin-bottom: 0.3rem; color: var(--primary); }
.mkt-tutorial-step p { font-size: 0.75rem; color: var(--text-dim); line-height: 1.4; }

/* Category Chips */
.mkt-categories { display: flex; gap: 0.5rem; justify-content: center; flex-wrap: wrap; margin-bottom: 1.5rem; }
.mkt-cat-chip {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.4rem 1rem;
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 600;
  transition: all 0.2s;
}
.mkt-cat-chip:hover { border-color: var(--primary); color: var(--primary); transform: translateY(-1px); }
.mkt-cat-chip.active { background: var(--primary); color: #fff; border-color: var(--primary); box-shadow: 0 2px 12px rgba(139,92,246,0.3); }

/* Upload category multi-select chips */
.mkt-cat-chips-select { display: flex; flex-direction: row; flex-wrap: wrap; gap: 0.4rem; padding: 0.5rem; background: var(--bg-dark); border: 1px solid var(--border); border-radius: 12px; width: 100%; box-sizing: border-box; }
.mkt-cat-chip-sel { display: inline-flex; align-items: center; background: var(--bg-card); border: 1px solid var(--border); color: var(--text); padding: 0.3rem 0.7rem; border-radius: 999px; cursor: pointer; font-size: 0.72rem; font-weight: 600; transition: all 0.2s; white-space: nowrap; flex-shrink: 0; }
.mkt-cat-chip-sel:hover { border-color: var(--primary); color: var(--primary); }
.mkt-cat-chip-sel.selected { background: var(--primary); color: #fff; border-color: var(--primary); box-shadow: 0 2px 8px rgba(139,92,246,0.3); }

/* Tabs */
.mkt-tabs-wrapper { margin-bottom: 1.5rem; }
.mkt-tabs { display: flex; gap: 0.5rem; justify-content: center; flex-wrap: wrap; }
.mkt-tab { background: var(--bg-card); border: 1px solid var(--border); color: var(--text); padding: 0.55rem 1.2rem; border-radius: var(--radius); cursor: pointer; font-size: 0.85rem; font-weight: 600; transition: all 0.2s; }
.mkt-tab:hover { border-color: var(--primary); color: var(--primary); }
.mkt-tab.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.mkt-tab-admin { color: var(--accent); border-color: var(--accent); }
.mkt-tab-admin.active { background: var(--accent); }

.mkt-panel { display: none; }
.mkt-panel.active { display: block; }

/* Empty State */
.mkt-empty-state { text-align: center; padding: 3rem 1rem; }
.mkt-empty-icon { font-size: 3rem; margin-bottom: 0.5rem; }
.mkt-empty-state h3 { font-size: 1.1rem; margin-bottom: 0.3rem; }
.mkt-empty-state p { color: var(--text-dim); font-size: 0.9rem; }

/* Upload Wrapper */
.mkt-upload-wrapper { display: grid; grid-template-columns: 280px 1fr; gap: 1.5rem; }

/* Upload Tips */
.mkt-upload-tips {
  background: linear-gradient(135deg, rgba(5,150,105,0.08), rgba(139,92,246,0.05));
  border: 1px solid rgba(5,150,105,0.15);
  border-radius: var(--radius-lg);
  padding: 1.2rem;
  height: fit-content;
  position: sticky;
  top: 80px;
}
.mkt-upload-tips h4 { margin-bottom: 0.8rem; font-size: 0.95rem; }
.mkt-upload-tips ul { list-style: none; padding: 0; margin: 0; }
.mkt-upload-tips li { font-size: 0.8rem; color: var(--text-dim); margin-bottom: 0.6rem; line-height: 1.4; padding-left: 0.2rem; }

/* Dropzone */
.mkt-upload-dropzone {
  border: 2px dashed var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s;
  margin-top: 0.5rem;
}
.mkt-upload-dropzone:hover { border-color: var(--primary); background: rgba(139,92,246,0.03); }
.mkt-upload-dropzone.has-file { border-color: var(--accent); background: rgba(5,150,105,0.05); }
.mkt-dropzone-icon { font-size: 2.5rem; margin-bottom: 0.5rem; }
.mkt-upload-dropzone p { margin: 0; font-size: 0.9rem; }
.mkt-upload-dropzone small { color: var(--text-dim); font-size: 0.75rem; }

.mkt-layout { display: grid; grid-template-columns: 220px 1fr; gap: 1.5rem; }

/* Sidebar */
.mkt-sidebar { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.2rem; height: fit-content; position: sticky; top: 80px; }
.mkt-sidebar h4 { margin-bottom: 1rem; font-size: 0.95rem; }
.mkt-filter-group { margin-bottom: 1rem; }
.mkt-filter-group label { display: block; font-size: 0.8rem; font-weight: 600; color: var(--text-dim); margin-bottom: 0.3rem; text-transform: uppercase; letter-spacing: 0.5px; }
.mkt-filter-group select, .mkt-filter-group input { width: 100%; padding: 0.4rem 0.6rem; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); color: var(--text); font-size: 0.85rem; }

/* Grid */
.mkt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1rem; }
.mkt-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; cursor: pointer; transition: transform 0.2s, box-shadow 0.2s; }
.mkt-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px hsla(var(--theme-hue), 77%, 55%, 0.15); }
.mkt-card-cover { height: 160px; background-size: cover; background-position: center; background-color: var(--bg); }
.mkt-card-body { padding: 0.8rem; }
.mkt-card-category { display: inline-block; font-size: 0.65rem; font-weight: 700; text-transform: uppercase; color: #fff; padding: 2px 8px; border-radius: 999px; letter-spacing: 0.5px; }
.mkt-card-title { font-size: 0.95rem; font-weight: 700; margin: 0.4rem 0 0.2rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mkt-card-seller { font-size: 0.75rem; color: var(--text-dim); }
.mkt-card-meta { display: flex; justify-content: space-between; align-items: center; margin-top: 0.4rem; font-size: 0.8rem; }
.mkt-card-stars { color: #fbbf24; }
.mkt-card-size { color: var(--text-dim); font-size: 0.75rem; }
.mkt-card-footer { display: flex; justify-content: space-between; align-items: center; margin-top: 0.5rem; padding-top: 0.5rem; border-top: 1px solid var(--border); }
.mkt-card-price { font-size: 1.1rem; font-weight: 700; color: var(--primary); }
.mkt-card-sales { font-size: 0.75rem; color: var(--text-dim); }
.mkt-card-status { display: inline-block; font-size: 0.65rem; font-weight: 700; text-transform: uppercase; color: #000; padding: 2px 8px; border-radius: 999px; }

/* Pagination */
.mkt-pagination { display: flex; justify-content: center; gap: 0.5rem; margin-top: 1.5rem; }
.mkt-page-btn { background: var(--bg-card); border: 1px solid var(--border); color: var(--text); padding: 0.4rem 0.8rem; border-radius: var(--radius); cursor: pointer; }
.mkt-page-btn.active { background: var(--primary); color: #fff; border-color: var(--primary); }

/* Empty state */
.mkt-empty { text-align: center; padding: 3rem; color: var(--text-dim); }

/* Upload form */
.mkt-upload-form { max-width: 600px; margin: 0 auto; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.5rem; }
.mkt-upload-form h3 { margin-bottom: 0.5rem; }

/* Upload price grid (desktop: 4 cols) */
.mkt-upload-price-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 1rem; }
/* Edit modal grid (desktop: 3 cols) */
.mkt-edit-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 1rem; }

/* Earnings card */
.mkt-earnings-card { background: linear-gradient(135deg, var(--primary), #a855f7); border-radius: var(--radius-lg); padding: 1.2rem 1.5rem; display: flex; justify-content: space-between; align-items: center; color: #fff; margin-bottom: 1.5rem; }
.mkt-earnings-card span { font-size: 0.85rem; opacity: 0.9; }
.mkt-earnings-card strong { font-size: 1.5rem; }

/* Modal */
.mkt-modal-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.7); z-index: 10000; display: flex; align-items: center; justify-content: center; padding: 1rem; }
.mkt-modal { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); max-width: 700px; width: 100%; max-height: 85vh; overflow-y: auto; position: relative; padding: 1.5rem; }
.mkt-modal-close { position: absolute; top: 0.5rem; right: 0.75rem; background: none; border: none; color: var(--text-dim); font-size: 1.5rem; cursor: pointer; z-index: 2; }

/* Detail */
.mkt-detail-hero { display: flex; gap: 1.5rem; margin-bottom: 1.5rem; }
.mkt-detail-cover { width: 200px; height: 200px; border-radius: var(--radius-lg); object-fit: cover; flex-shrink: 0; }
.mkt-detail-info { flex: 1; }
.mkt-detail-info h2 { margin: 0.5rem 0 0.3rem; font-size: 1.3rem; }
.mkt-detail-seller { color: var(--text-dim); font-size: 0.85rem; }
.mkt-detail-stars { color: #fbbf24; margin: 0.3rem 0; }
.mkt-detail-desc { margin: 0.6rem 0; font-size: 0.9rem; color: var(--text-dim); }
.mkt-detail-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0.5rem 0; }
.mkt-tag { background: hsla(var(--theme-hue), 77%, 55%, 0.15); color: var(--primary); padding: 2px 10px; border-radius: 999px; font-size: 0.75rem; font-weight: 600; }
.mkt-detail-price-row { display: flex; align-items: center; gap: 1rem; margin-top: 0.75rem; }
.mkt-detail-price { font-size: 1.5rem; font-weight: 800; color: var(--primary); }
.mkt-detail-sales { color: var(--text-dim); font-size: 0.85rem; }
.mkt-detail-actions { margin-top: 1rem; }
.mkt-detail-preview { margin-bottom: 1.5rem; }
.mkt-detail-preview h4 { margin-bottom: 0.5rem; }

/* Reviews in detail */
.mkt-detail-reviews h4 { margin-bottom: 0.75rem; }
.mkt-review { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 0.75rem; margin-bottom: 0.5rem; }
.mkt-review-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.3rem; }
.mkt-review-header span { color: #fbbf24; }
.mkt-review p { font-size: 0.85rem; color: var(--text-dim); }
.mkt-review-form { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--border); }
.mkt-review-form h5 { margin-bottom: 0.5rem; }

/* Admin card */
.mkt-admin-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1rem; margin-bottom: 0.75rem; }

/* Responsive */
@media (max-width: 768px) {
  .mkt-hero { padding: 1.5rem 1rem; }
  .mkt-hero h2 { font-size: 1.3rem; }
  .mkt-hero-stats { gap: 1.5rem; }
  .mkt-tutorial-steps { grid-template-columns: 1fr 1fr; }
  .mkt-layout { grid-template-columns: 1fr; }
  .mkt-sidebar { position: static; }
  .mkt-upload-wrapper { grid-template-columns: 1fr; }
  .mkt-upload-tips { position: static; }
  .mkt-detail-hero { flex-direction: column; align-items: center; text-align: center; }
  .mkt-detail-cover { width: 150px; height: 150px; }
  .mkt-detail-tags { justify-content: center; }
  .mkt-detail-price-row { justify-content: center; }
  .mkt-detail-actions { text-align: center; }
  .mkt-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
  .mkt-card-cover { height: 120px; }
}

@media (max-width: 480px) {
  .mkt-tutorial-steps { grid-template-columns: 1fr; }
  .mkt-tabs { gap: 0.3rem; }
  .mkt-tab { padding: 0.4rem 0.8rem; font-size: 0.75rem; }
  .mkt-grid { grid-template-columns: 1fr 1fr; gap: 0.5rem; }
  .mkt-card-cover { height: 100px; }
  .mkt-categories { gap: 0.3rem; }
  .mkt-cat-chip { padding: 0.3rem 0.7rem; font-size: 0.75rem; }
  .mkt-earnings-card { flex-direction: column; gap: 0.5rem; text-align: center; }
}

/* ==================== DJ PROFILE PAGE ==================== */
.djprofile-wrapper {
  max-width: 720px;
  margin: 0 auto;
  padding: 1rem 0 3rem;
}

.djprofile-card {
  text-align: center;
  padding: 2.5rem 1.5rem 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
}
.djprofile-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 100px;
  background: var(--gradient-primary);
  opacity: 0.15;
}

.djprofile-avatar {
  width: 80px; height: 80px;
  border-radius: 50%;
  background: var(--gradient-primary);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 2rem; font-weight: 800;
  color: #fff;
  margin: 0 auto 1rem;
  position: relative;
  z-index: 1;
  box-shadow: 0 4px 20px var(--primary-glow);
}

.djprofile-username {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.8rem;
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
  position: relative;
  z-index: 1;
}

.djprofile-plan-badge {
  display: inline-block;
  padding: 0.25rem 1rem;
  border-radius: 999px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  position: relative;
  z-index: 1;
}
.plan-badge-free { background: rgba(148,163,184,0.15); color: var(--text-dim); border: 1px solid var(--text-dim); }
.plan-badge-premium { background: rgba(139,92,246,0.15); color: var(--primary); border: 1px solid var(--primary); }
.plan-badge-king { background: rgba(245,158,11,0.15); color: #f59e0b; border: 1px solid #f59e0b; }
.plan-badge-immortal { background: rgba(239,68,68,0.15); color: #ef4444; border: 1px solid #ef4444; animation: immortalPulse 2s ease-in-out infinite; }
@keyframes immortalPulse { 0%,100% { box-shadow: 0 0 8px rgba(239,68,68,0.3); } 50% { box-shadow: 0 0 20px rgba(239,68,68,0.6); } }

.djprofile-member-since {
  color: var(--text-dim);
  font-size: 0.85rem;
  margin-top: 0.75rem;
  position: relative;
  z-index: 1;
}

.djprofile-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.djprofile-stat {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.25rem 0.75rem;
  text-align: center;
  transition: border-color 0.2s;
}
.djprofile-stat:hover { border-color: var(--primary); }

.djprofile-stat-value {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-bright);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.djprofile-stat-label {
  font-size: 0.7rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 0.25rem;
}

.djprofile-section {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-top: 1.25rem;
}

.djprofile-section-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-bright);
}

/* Top Artists bars */
.djprofile-bars { display: flex; flex-direction: column; gap: 0.6rem; }
.djprofile-bar-row { display: flex; align-items: center; gap: 0.75rem; }
.djprofile-bar-label { width: 120px; font-size: 0.8rem; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex-shrink: 0; }
.djprofile-bar-track { flex: 1; height: 10px; background: rgba(139,92,246,0.1); border-radius: 999px; overflow: hidden; }
.djprofile-bar-fill { height: 100%; background: var(--gradient-primary); border-radius: 999px; transition: width 0.6s ease; }
.djprofile-bar-count { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 0.75rem; color: var(--text-dim); min-width: 30px; text-align: right; }

/* BPM Distribution chart */
.djprofile-bpm-chart {
  display: flex;
  align-items: flex-end;
  gap: 0.5rem;
  height: 120px;
  padding-top: 0.5rem;
}
.djprofile-bpm-bar {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  height: 100%;
}
.djprofile-bpm-fill {
  width: 100%;
  background: var(--gradient-primary);
  border-radius: 4px 4px 0 0;
  min-height: 4px;
  transition: height 0.6s ease;
}
.djprofile-bpm-label {
  font-size: 0.65rem;
  color: var(--text-dim);
  margin-top: 0.4rem;
  white-space: nowrap;
}

/* Recent Activity */
.djprofile-activity { display: flex; flex-direction: column; gap: 0; }
.djprofile-activity-item {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--text);
}
.djprofile-activity-item:last-child { border-bottom: none; }
.djprofile-activity-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--primary);
  flex-shrink: 0;
  box-shadow: 0 0 6px var(--primary-glow);
}

/* Extra stats */
.djprofile-extra-stats { text-align: center; }
.djprofile-extra-stat { font-size: 0.9rem; color: var(--text-dim); }
.djprofile-extra-val { font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 700; color: var(--text-bright); font-size: 1.1rem; }

/* Share */
.djprofile-share { text-align: center; margin-top: 1.5rem; }

/* 404 profile */
.profile-404, .profile-error {
  text-align: center;
  padding: 4rem 1rem;
}
.profile-404-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
}
.profile-404 h2, .profile-error h2 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
  color: var(--text-bright);
}
.profile-404 p, .profile-error p {
  color: var(--text-dim);
  margin-bottom: 1.5rem;
}

@media (max-width: 640px) {
  .djprofile-stats-grid { grid-template-columns: repeat(2, 1fr); }
  .djprofile-username { font-size: 1.4rem; }
  .djprofile-stat-value { font-size: 1rem; }
  .djprofile-bar-label { width: 80px; font-size: 0.7rem; }
  .djprofile-bpm-label { font-size: 0.55rem; }
}

/* ==================== GENRE LANDING PAGE ==================== */
.genre-wrapper {
  max-width: 800px;
  margin: 0 auto;
  padding: 1rem 0 3rem;
}

.genre-hero {
  text-align: center;
  padding: 3rem 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
}
.genre-hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--gradient-primary);
  opacity: 0.06;
}

.genre-hero-emoji {
  font-size: 3.5rem;
  margin-bottom: 0.75rem;
  position: relative;
  z-index: 1;
}

.genre-hero-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 2.2rem;
  font-weight: 900;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.75rem;
  position: relative;
  z-index: 1;
}

.genre-hero-desc {
  color: var(--text-dim);
  font-size: 1rem;
  line-height: 1.6;
  max-width: 600px;
  margin: 0 auto 1rem;
  position: relative;
  z-index: 1;
}

.genre-hero-bpm {
  display: inline-block;
  padding: 0.4rem 1.25rem;
  border-radius: 999px;
  background: rgba(139,92,246,0.12);
  border: 1px solid var(--primary);
  color: var(--primary);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  position: relative;
  z-index: 1;
}

/* Genre stats bar */
.genre-stats-bar {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.25rem;
  padding: 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.genre-stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  min-width: 80px;
}

.genre-stat-val {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-bright);
}

.genre-stat-lbl {
  font-size: 0.65rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* SEO content */
.genre-seo-content {
  margin-top: 1.25rem;
  padding: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.genre-seo-content p {
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* Genre section */
.genre-section {
  margin-top: 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}

.genre-section-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-bright);
}

/* Track list */
.genre-tracks-list { display: flex; flex-direction: column; }
.genre-track-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--border);
  transition: background 0.2s;
}
.genre-track-row:last-child { border-bottom: none; }
.genre-track-row:hover { background: rgba(139,92,246,0.04); }

.genre-track-rank {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-dim);
  min-width: 28px;
  text-align: center;
}

.genre-track-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.genre-track-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.genre-track-artist {
  font-size: 0.75rem;
  color: var(--text-dim);
}

.genre-track-tags {
  display: flex;
  gap: 0.3rem;
  flex-shrink: 0;
}

.genre-tag {
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  font-size: 0.65rem;
  font-weight: 600;
  background: rgba(139,92,246,0.1);
  color: var(--primary);
  border: 1px solid rgba(139,92,246,0.2);
  white-space: nowrap;
}
.genre-tag-energy {
  background: rgba(6,214,160,0.1);
  color: var(--accent);
  border-color: rgba(6,214,160,0.2);
}

.genre-track-downloads {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.7rem;
  color: var(--text-dim);
  min-width: 30px;
  text-align: right;
}

/* Popular keys */
.genre-keys {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.genre-key-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  padding: 0.75rem 1rem;
  background: rgba(139,92,246,0.08);
  border: 1px solid rgba(139,92,246,0.2);
  border-radius: var(--radius-md);
  min-width: 70px;
}

.genre-key-name {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
}

.genre-key-count {
  font-size: 0.65rem;
  color: var(--text-dim);
}

/* CTA */
.genre-cta {
  text-align: center;
  margin-top: 1.5rem;
  padding: 2.5rem 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
}
.genre-cta::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--gradient-primary);
  opacity: 0.05;
}
.genre-cta h3 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-bright);
  margin-bottom: 0.5rem;
  position: relative;
  z-index: 1;
}
.genre-cta p {
  color: var(--text-dim);
  font-size: 0.9rem;
  margin-bottom: 1.25rem;
  position: relative;
  z-index: 1;
}
.genre-cta .btn { position: relative; z-index: 1; }

/* Related genres */
.genre-related {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.75rem;
}

.genre-related-card {
  display: block;
  padding: 1rem;
  background: rgba(139,92,246,0.05);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: all 0.2s;
}
.genre-related-card:hover {
  border-color: var(--primary);
  background: rgba(139,92,246,0.1);
  transform: translateY(-2px);
}
.genre-related-card h4 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.3rem;
}
.genre-related-card p {
  font-size: 0.7rem;
  color: var(--text-dim);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (max-width: 640px) {
  .genre-hero-title { font-size: 1.6rem; }
  .genre-hero-desc { font-size: 0.85rem; }
  .genre-hero { padding: 2rem 1rem; }
  .genre-stats-bar { gap: 0.5rem; padding: 1rem; }
  .genre-stat-val { font-size: 0.95rem; }
  .genre-track-tags { display: none; }
  .genre-related { grid-template-columns: 1fr; }
  .genre-cta h3 { font-size: 1rem; }
}

/* ==================== BLOG PAGES ==================== */

/* Breadcrumb */
.blog-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  font-size: 0.85rem;
  color: var(--text-dim);
}
.blog-breadcrumb a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s;
}
.blog-breadcrumb a:hover { color: var(--accent); }
.blog-breadcrumb-sep { color: var(--text-dim); opacity: 0.5; }
.blog-breadcrumb-current { color: var(--text); }

/* Blog Index Grid */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

/* Blog Card */
.blog-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  cursor: pointer;
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.2s;
  display: flex;
  flex-direction: column;
}
.blog-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-glow);
  transform: translateY(-2px);
}
.blog-card-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}
.blog-card-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  font-size: 0.8rem;
}
.blog-card-category {
  background: var(--primary);
  color: #fff;
  padding: 0.15rem 0.6rem;
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.blog-card-date {
  color: var(--text-dim);
}
.blog-card-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-bright);
  margin-bottom: 0.5rem;
  line-height: 1.4;
}
.blog-card-excerpt {
  color: var(--text-dim);
  font-size: 0.9rem;
  line-height: 1.6;
  flex: 1;
  margin-bottom: 1rem;
}
.blog-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border);
  padding-top: 0.75rem;
}
.blog-card-read {
  color: var(--primary);
  font-weight: 600;
  font-size: 0.85rem;
  transition: color 0.2s;
}
.blog-card:hover .blog-card-read { color: var(--accent); }
.blog-card-time {
  color: var(--text-dim);
  font-size: 0.8rem;
}

/* Blog Article */
.blog-article {
  margin-bottom: 2rem;
}
.blog-article h1 {
  font-family: 'Outfit', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-bright);
  margin-bottom: 1.5rem;
  line-height: 1.3;
}
.blog-article h2 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-bright);
  margin: 2.5rem 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--border);
}
.blog-article h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-bright);
  margin: 1.5rem 0 0.5rem;
}
.blog-article p {
  color: var(--text);
  line-height: 1.8;
  margin-bottom: 1rem;
  font-size: 0.95rem;
}
.blog-article-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  font-size: 0.85rem;
  color: var(--text-dim);
}
.blog-article-lead {
  font-size: 1.1rem !important;
  color: var(--text) !important;
  line-height: 1.8 !important;
  border-left: 3px solid var(--primary);
  padding-left: 1rem;
  margin-bottom: 2rem !important;
}

/* Table of Contents */
.blog-toc {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  margin-bottom: 2rem;
}
.blog-toc h3 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.85rem;
  color: var(--accent);
  margin: 0 0 0.75rem;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.blog-toc ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.blog-toc li {
  margin-bottom: 0.4rem;
}
.blog-toc a {
  color: var(--primary);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
}
.blog-toc a:hover { color: var(--accent); }

/* Blog Lists */
.blog-list {
  padding-left: 1.5rem;
  margin-bottom: 1.5rem;
}
.blog-list li {
  color: var(--text);
  line-height: 1.8;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}
.blog-list-ordered { list-style-type: decimal; }

/* Blog Steps */
.blog-steps {
  margin: 1.5rem 0 2rem;
}
.blog-step {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding: 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: border-color 0.3s;
}
.blog-step:hover {
  border-color: var(--primary);
}
.blog-step-number {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: #fff;
}
.blog-step-content h3 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
}
.blog-step-content p {
  margin: 0;
  font-size: 0.9rem;
}
.blog-step-content .blog-list {
  margin-top: 0.5rem;
  margin-bottom: 0;
}

/* Code Block */
.blog-code-block {
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  margin-top: 0.75rem;
  overflow-x: auto;
}
.blog-code-block code {
  font-family: 'Courier New', monospace;
  font-size: 0.85rem;
  color: var(--accent);
  word-break: break-all;
}

/* Comparison Table */
.blog-comparison-table {
  overflow-x: auto;
  margin: 1rem 0 2rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
}
.blog-comparison-table table {
  width: 100%;
  border-collapse: collapse;
}
.blog-comparison-table th {
  background: var(--bg-card);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.75rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--accent);
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 2px solid var(--border);
}
.blog-comparison-table td {
  padding: 0.7rem 1rem;
  font-size: 0.9rem;
  color: var(--text);
  border-bottom: 1px solid var(--border);
}
.blog-comparison-table tr:last-child td { border-bottom: none; }
.blog-table-highlight {
  background: hsla(var(--theme-hue), 77%, 55%, 0.08) !important;
}
.blog-table-highlight td { font-weight: 600; }
.blog-check { color: #4ade80 !important; font-weight: 600; }
.blog-check::before { content: '\2713 '; }
.blog-warn { color: var(--warning) !important; }
.blog-warn::before { content: '\26A0 '; }
.blog-cross { color: var(--danger) !important; }
.blog-cross::before { content: '\2717 '; }

/* Features Grid */
.blog-features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
  margin: 1rem 0 2rem;
}
.blog-feature {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  transition: border-color 0.3s, transform 0.2s;
}
.blog-feature:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
}
.blog-feature-icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}
.blog-feature h3 {
  font-size: 1rem;
  margin: 0 0 0.5rem;
  color: var(--text-bright);
}
.blog-feature p {
  font-size: 0.85rem;
  margin: 0;
  color: var(--text-dim);
  line-height: 1.5;
}

/* Artists Grid */
.blog-artists-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
  margin: 1rem 0 2rem;
}
.blog-artist-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  transition: border-color 0.3s;
}
.blog-artist-card:hover { border-color: var(--primary); }
.blog-artist-card h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 1rem;
  color: var(--text-bright);
  margin: 0 0 0.5rem;
}
.blog-artist-card p {
  font-size: 0.85rem;
  color: var(--text-dim);
  margin: 0 0 0.5rem;
  line-height: 1.5;
}
.blog-artist-bpm {
  display: inline-block;
  background: var(--bg-input);
  color: var(--accent);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.7rem;
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-full);
  letter-spacing: 0.5px;
}

/* Tracks List */
.blog-tracks-list {
  margin: 1rem 0 2rem;
}
.blog-track-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 0.5rem;
  transition: border-color 0.2s;
}
.blog-track-item:hover { border-color: var(--primary); }
.blog-track-num {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.85rem;
  color: var(--primary);
  font-weight: 700;
  min-width: 24px;
  text-align: center;
}
.blog-track-name {
  font-size: 0.9rem;
  color: var(--text);
}

/* CTA Box */
.blog-cta-box {
  background: linear-gradient(135deg, hsla(var(--theme-hue), 77%, 55%, 0.15), rgba(6, 214, 160, 0.1));
  border: 1px solid var(--primary);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
  margin: 2rem 0;
}
.blog-cta-box h3 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.2rem;
  color: var(--text-bright);
  margin: 0 0 0.5rem;
  letter-spacing: 1px;
}
.blog-cta-box p {
  color: var(--text-dim);
  margin: 0 0 1.5rem;
  font-size: 0.95rem;
}
.blog-cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}
.blog-cta-buttons .btn {
  min-width: 160px;
}
.btn-outline {
  background: transparent;
  border: 1px solid var(--primary);
  color: var(--primary);
  padding: 0.7rem 1.5rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  font-size: 0.9rem;
}
.btn-outline:hover {
  background: var(--primary);
  color: #fff;
}

/* FAQ Accordion */
.blog-faq {
  margin: 1rem 0 2rem;
}
.blog-faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: 0.5rem;
  overflow: hidden;
  transition: border-color 0.3s;
}
.blog-faq-item:hover { border-color: hsla(var(--theme-hue), 77%, 55%, 0.3); }
.blog-faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  background: var(--bg-card);
  border: none;
  color: var(--text-bright);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  transition: background 0.2s;
}
.blog-faq-question:hover { background: var(--bg-card-hover); }
.blog-faq-question::after {
  content: '+';
  font-size: 1.3rem;
  color: var(--primary);
  flex-shrink: 0;
  margin-left: 1rem;
  transition: transform 0.3s;
}
.blog-faq-item.open .blog-faq-question::after {
  content: '\2212';
  transform: rotate(180deg);
}
.blog-faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
  padding: 0 1.25rem;
  background: var(--bg-card);
}
.blog-faq-item.open .blog-faq-answer {
  max-height: 500px;
  padding: 0 1.25rem 1rem;
}
.blog-faq-answer p {
  margin: 0;
  color: var(--text-dim);
  line-height: 1.7;
  font-size: 0.9rem;
}

/* Related Articles */
.blog-related {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 2px solid var(--border);
}
.blog-related h2 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1rem;
  color: var(--accent);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
  border-bottom: none;
  padding-bottom: 0;
}
.blog-related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}
.blog-related-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  cursor: pointer;
  transition: border-color 0.3s, transform 0.2s;
}
.blog-related-card:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
}
.blog-related-icon {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}
.blog-related-card h4 {
  font-size: 0.9rem;
  color: var(--text-bright);
  margin: 0 0 0.5rem;
  line-height: 1.4;
}

/* Blog Responsive */
@media (max-width: 768px) {
  .blog-grid { grid-template-columns: 1fr; }
  .blog-article h1 { font-size: 1.5rem; }
  .blog-article h2 { font-size: 1.15rem; }
  .blog-features-grid { grid-template-columns: 1fr; }
  .blog-artists-grid { grid-template-columns: 1fr; }
  .blog-related-grid { grid-template-columns: 1fr; }
  .blog-step { flex-direction: column; gap: 0.75rem; }
  .blog-cta-buttons { flex-direction: column; align-items: center; }
  .blog-comparison-table { font-size: 0.8rem; }
  .blog-comparison-table th,
  .blog-comparison-table td { padding: 0.5rem 0.6rem; }
}

/* ==================== AI Mastering ==================== */
.mastering-upgrade-banner {
  text-align: center;
  padding: 3rem 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.mastering-lock-icon { font-size: 3rem; margin-bottom: 1rem; }
.mastering-upgrade-banner h3 { color: var(--accent); margin-bottom: 0.5rem; }
.mastering-upgrade-banner p { color: var(--text-dim); margin-bottom: 1.5rem; max-width: 400px; margin-left: auto; margin-right: auto; }

.mastering-upload-zone {
  border: 2px dashed var(--border);
  border-radius: var(--radius-lg);
  padding: 3rem 1.5rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  background: var(--bg-card);
}
.mastering-upload-zone:hover, .mastering-upload-zone.drag-over {
  border-color: var(--accent);
  background: hsla(var(--theme-hue), 77%, 55%, 0.05);
  box-shadow: 0 0 20px hsla(var(--theme-hue), 77%, 55%, 0.15);
}
.mastering-upload-icon { font-size: 3rem; margin-bottom: 1rem; }
.mastering-upload-text { color: var(--text); font-weight: 600; margin-bottom: 0.5rem; }
.mastering-upload-hint { color: var(--text-dim); font-size: 0.85rem; margin-bottom: 1rem; }

.mastering-file-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--accent);
  border-radius: var(--radius-lg);
  color: var(--text);
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.mastering-section-title {
  color: var(--text);
  font-size: 1rem;
  font-weight: 700;
  margin: 1.5rem 0 0.75rem;
}

.mastering-presets {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.mastering-preset-card {
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
}
.mastering-preset-card:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
}
.mastering-preset-card.active {
  border-color: var(--accent);
  background: hsla(var(--theme-hue), 77%, 55%, 0.1);
  box-shadow: 0 0 15px hsla(var(--theme-hue), 77%, 55%, 0.2);
}
.mastering-preset-icon { display: block; font-size: 2rem; margin-bottom: 0.5rem; }
.mastering-preset-card h4 { color: var(--text); font-size: 1rem; margin: 0 0 0.5rem; }
.mastering-preset-card p { color: var(--text-dim); font-size: 0.8rem; margin: 0; line-height: 1.4; }

.mastering-format {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}
.mastering-format label { color: var(--text); font-weight: 600; font-size: 0.9rem; }
.mastering-format-select {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
}

.mastering-btn {
  width: 100%;
  font-size: 1.1rem;
  padding: 0.85rem;
  margin-bottom: 1.5rem;
}

.mastering-progress {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}
.mastering-progress-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.mastering-progress-header h4 { color: var(--accent); margin: 0; }
.mastering-progress-bar {
  width: 100%;
  height: 8px;
  background: var(--bg);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 0.75rem;
}
.mastering-progress-fill {
  height: 100%;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transition: width 0.4s ease;
  animation: masteringPulse 2s ease-in-out infinite;
}
@keyframes masteringPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}
.mastering-progress-text { color: var(--text-dim); font-size: 0.85rem; text-align: center; margin: 0; }

.mastering-result { margin-bottom: 1.5rem; }
.mastering-result-title { text-align: center; color: var(--accent); margin-bottom: 1.5rem; }

.mastering-comparison {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.mastering-compare-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
}
.mastering-compare-card h4 { margin: 0 0 0.75rem; font-size: 0.95rem; color: var(--text); }
.mastering-compare-after { border-color: var(--accent); }
.mastering-compare-card audio { border-radius: 8px; }

.mastering-result-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

@media (max-width: 768px) {
  .mastering-presets { grid-template-columns: 1fr; }
  .mastering-comparison { grid-template-columns: 1fr; }
  .mastering-result-actions { flex-direction: column; align-items: stretch; }
}

/* ========== WhatsApp Share ========== */
.btn-whatsapp {
  background: #25D366;
  color: #fff;
  border: none;
  font-weight: 600;
}

.btn-whatsapp:hover {
  background: #1da851;
  color: #fff;
}

/* ========== Ads removed ========== */

/* Hide 728x90 on mobile */
@media (max-width: 768px) {
  .ad-728 { display: none !important; }
  .ad-block-btns { flex-direction: column; align-items: center; }
}

/* ========== Settings Page ========== */

.settings-section {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin-bottom: 1rem;
}

.settings-section h3 {
  margin: 0 0 1rem 0;
  font-size: 1rem;
  color: var(--text);
}

.settings-color-options {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.settings-color-swatch {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 3px solid transparent;
  cursor: pointer;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
  padding: 0;
  outline: none;
}

.settings-color-swatch:hover {
  transform: scale(1.15);
  box-shadow: 0 0 12px rgba(255,255,255,0.15);
}

.settings-color-swatch.active {
  border-color: var(--text-bright);
  box-shadow: 0 0 16px rgba(255,255,255,0.2);
  transform: scale(1.1);
}

.settings-danger-zone {
  margin-top: 2rem;
  padding: 1.5rem;
  border: 1px solid var(--danger);
  border-radius: var(--radius-md);
  background: rgba(239, 68, 68, 0.05);
}

.settings-toggle {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 26px;
  flex-shrink: 0;
}

.settings-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.settings-toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 26px;
  transition: background 0.3s, border-color 0.3s;
}

.settings-toggle-slider:before {
  content: '';
  position: absolute;
  height: 20px;
  width: 20px;
  left: 2px;
  bottom: 2px;
  background: var(--text-dim);
  border-radius: 50%;
  transition: transform 0.3s, background 0.3s;
}

.settings-toggle input:checked + .settings-toggle-slider {
  background: var(--primary);
  border-color: var(--primary);
}

.settings-toggle input:checked + .settings-toggle-slider:before {
  transform: translateX(22px);
  background: var(--text-bright);
}

@media (max-width: 768px) {
  .settings-color-options {
    gap: 0.5rem;
  }
  .settings-color-swatch {
    width: 36px;
    height: 36px;
  }
}

/* ==================== BEAT MAKER / STEP SEQUENCER ==================== */
.bm-genre-bar {
  display: flex; gap: 0.5rem; justify-content: center; flex-wrap: wrap;
  margin-bottom: 1rem;
}
.bm-genre-btn {
  background: var(--bg-card); border: 1px solid var(--border); color: var(--text);
  padding: 0.45rem 1rem; border-radius: var(--radius); cursor: pointer;
  font-size: 0.82rem; font-weight: 600; transition: all 0.2s;
}
.bm-genre-btn:hover { border-color: var(--primary); color: var(--primary); }
.bm-genre-btn.active { background: var(--primary); color: #fff; border-color: var(--primary); }

.bm-transport {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 0.75rem;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 0.75rem 1rem; margin-bottom: 1rem;
}
.bm-transport-left { display: flex; gap: 0.5rem; align-items: center; }
.bm-transport-right { display: flex; gap: 0.5rem; align-items: center; }
.bm-btn {
  background: var(--bg); border: 1px solid var(--border); color: var(--text);
  padding: 0.4rem 0.9rem; border-radius: var(--radius); cursor: pointer;
  font-size: 0.82rem; font-weight: 600; transition: all 0.2s;
}
.bm-btn:hover { border-color: var(--primary); color: var(--primary); }
.bm-btn-play { background: var(--primary); color: #fff; border-color: var(--primary); }
.bm-btn-play:hover { background: hsl(var(--theme-hue), 77%, 45%); }
.bm-btn-export { background: var(--accent); color: #fff; border-color: var(--accent); }
.bm-btn-export:hover { opacity: 0.9; }
.bm-bpm-label { font-size: 0.8rem; font-weight: 700; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.5px; }
.bm-bpm-slider { width: 120px; accent-color: var(--primary); }
.bm-bpm-value { font-size: 1rem; font-weight: 700; color: var(--primary); min-width: 32px; text-align: center; }

.bm-grid-wrapper {
  overflow-x: auto; margin-bottom: 1rem;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 0.75rem;
}
.bm-grid { min-width: 700px; }
.bm-row {
  display: flex; align-items: center; gap: 2px; margin-bottom: 2px;
}
.bm-row-header { margin-bottom: 4px; }
.bm-row-label {
  width: 70px; min-width: 70px; font-size: 0.72rem; font-weight: 700;
  color: var(--text-dim); display: flex; align-items: center; gap: 4px;
  white-space: nowrap;
}
.bm-row-dot {
  width: 8px; height: 8px; border-radius: 50%; display: inline-block; flex-shrink: 0;
}
.bm-row-controls {
  display: flex; align-items: center; gap: 3px; min-width: 100px; width: 100px;
}
.bm-row-controls-spacer { min-width: 100px; width: 100px; }
.bm-vol-slider { width: 50px; accent-color: var(--primary); }
.bm-mute-btn, .bm-solo-btn {
  width: 20px; height: 20px; border-radius: 3px; border: 1px solid var(--border);
  background: var(--bg); color: var(--text-dim); font-size: 0.6rem; font-weight: 800;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: all 0.15s; padding: 0;
}
.bm-mute-btn:hover { border-color: #ef4444; color: #ef4444; }
.bm-mute-btn.active { background: #ef4444; color: #fff; border-color: #ef4444; }
.bm-solo-btn:hover { border-color: #eab308; color: #eab308; }
.bm-solo-btn.active { background: #eab308; color: #000; border-color: #eab308; }

.bm-cell {
  width: 28px; height: 28px; min-width: 28px;
  background: var(--bg); border: 1px solid var(--border);
  border-radius: 4px; cursor: pointer; transition: all 0.1s;
  position: relative;
}
.bm-cell:hover { border-color: var(--primary); transform: scale(1.1); }
.bm-cell.active { border-color: transparent; }
.bm-cell.bm-cell-bar { border-left: 2px solid var(--text-dim); }
.bm-cell.bm-cell-header {
  background: transparent; border: none; cursor: default;
  font-size: 0.6rem; color: var(--text-dim); text-align: center;
  display: flex; align-items: center; justify-content: center;
  font-weight: 600;
}
.bm-cell.bm-cell-header:hover { transform: none; }
.bm-cell.bm-step-active {
  outline: 2px solid var(--primary);
  outline-offset: -1px;
  box-shadow: 0 0 10px rgba(139,92,246,0.4);
}

.bm-export-bar {
  display: flex; align-items: center; gap: 1rem; flex-wrap: wrap;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 0.75rem 1rem;
}
.bm-export-hint { font-size: 0.75rem; color: var(--text-dim); }

@media (max-width: 768px) {
  .bm-transport { flex-direction: column; align-items: stretch; }
  .bm-transport-left, .bm-transport-right { justify-content: center; }
  .bm-genre-bar { gap: 0.35rem; }
  .bm-genre-btn { font-size: 0.72rem; padding: 0.35rem 0.7rem; }
  .bm-row-label { width: 55px; min-width: 55px; font-size: 0.65rem; }
  .bm-row-controls { min-width: 80px; width: 80px; }
  .bm-row-controls-spacer { min-width: 80px; width: 80px; }
  .bm-cell { width: 24px; height: 24px; min-width: 24px; }
  .bm-vol-slider { width: 36px; }
}

/* ========== Nav Settings Gear Button ========== */
.nav-settings-btn {
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 1.2rem;
  cursor: pointer;
  padding: 4px;
  transition: color 0.2s;
}
.nav-settings-btn:hover { color: var(--primary); }

/* ========== Distribution Page ========== */
.distribution-policy {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.5rem;
}
.distribution-policy[open] {
  border-color: var(--primary);
  box-shadow: 0 0 20px hsla(var(--theme-hue), 77%, 55%, 0.1);
}
.distribution-price {
  display: inline-block;
  background: linear-gradient(135deg, #f59e0b, #f97316);
  color: #000;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 6px;
  font-size: 0.95rem;
}
.distribution-success {
  text-align: center;
  padding: 3rem 1.5rem;
  background: linear-gradient(135deg, rgba(6, 214, 160, 0.08), rgba(16, 185, 129, 0.04));
  border: 1px solid rgba(6, 214, 160, 0.3);
  border-radius: 16px;
}
.distribution-success h2 {
  color: var(--accent);
  font-size: 1.5rem;
}
#page-distribution .page-container {
  max-width: 720px;
}
#page-distribution .form-group {
  margin-bottom: 1.25rem;
}
#page-distribution .form-group label {
  display: block;
  margin-bottom: 0.4rem;
  font-weight: 500;
  color: var(--text);
}
#page-distribution .form-group small {
  display: block;
  margin-top: 0.3rem;
  font-size: 0.78rem;
}

/* ===== Distribution Wizard ===== */
.dist-wizard-progress {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin: 1.5rem 0 2rem;
  padding: 0 1rem;
}
.dist-wizard-step {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  opacity: 0.4;
  transition: all 0.4s ease;
}
.dist-wizard-step.active, .dist-wizard-step.completed {
  opacity: 1;
}
.dist-step-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--surface);
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  transition: all 0.4s ease;
  flex-shrink: 0;
}
.dist-wizard-step.active .dist-step-num {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  box-shadow: 0 0 15px hsla(var(--theme-hue), 77%, 55%, 0.4);
}
.dist-wizard-step.completed .dist-step-num {
  background: var(--accent);
  border-color: var(--accent);
  color: #000;
}
.dist-step-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-dim);
  white-space: nowrap;
}
.dist-wizard-step.active .dist-step-label {
  color: var(--text);
}
.dist-wizard-connector {
  flex: 1;
  height: 2px;
  background: var(--border);
  margin: 0 0.5rem;
  min-width: 20px;
  max-width: 60px;
  transition: background 0.4s ease;
}
.dist-wizard-connector.completed {
  background: var(--accent);
}

/* Wizard Panels */
.dist-wizard-panel {
  display: none;
  animation: distFadeIn 0.4s ease;
}
.dist-wizard-panel.active {
  display: block;
}
@keyframes distFadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Step Tip */
.dist-step-tip {
  background: linear-gradient(135deg, hsla(var(--theme-hue), 77%, 55%, 0.1), hsla(var(--theme-hue), 77%, 55%, 0.05));
  border: 1px solid hsla(var(--theme-hue), 77%, 55%, 0.2);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
  color: var(--text-dim);
  line-height: 1.5;
}

/* Price Banner */
.dist-price-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(135deg, rgba(6, 214, 160, 0.1), hsla(var(--theme-hue), 77%, 55%, 0.08));
  border: 1px solid rgba(6, 214, 160, 0.3);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
  position: sticky;
  top: 70px;
  z-index: 10;
  backdrop-filter: blur(8px);
}
.dist-price-banner-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.dist-price-count {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
}
.dist-price-total {
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--accent);
}

/* Track Cards */
.dist-track-card {
  background: var(--surface);
  border: 1px solid var(--accent);
  border-radius: 14px;
  padding: 1.25rem;
  margin-bottom: 1rem;
  animation: distSlideIn 0.4s ease;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.dist-track-card:hover {
  box-shadow: 0 4px 20px hsla(var(--theme-hue), 77%, 55%, 0.1);
}
@keyframes distSlideIn {
  from { opacity: 0; transform: translateY(-10px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.dist-track-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}
.dist-track-title {
  font-weight: 700;
  font-size: 1rem;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.dist-track-remove {
  background: none;
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #ef4444;
  border-radius: 8px;
  padding: 4px 10px;
  font-size: 0.75rem;
  cursor: pointer;
  transition: all 0.2s;
}
.dist-track-remove:hover {
  background: rgba(239, 68, 68, 0.15);
  border-color: #ef4444;
}

/* Add Track Button */
.dist-add-track-btn {
  width: 100%;
  padding: 1.25rem;
  border: 2px dashed var(--border);
  border-radius: 14px;
  background: transparent;
  color: var(--text-dim);
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  transition: all 0.3s ease;
  margin-bottom: 1rem;
}
.dist-add-track-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(6, 214, 160, 0.05);
  transform: translateY(-2px);
}

/* Review Summary */
.dist-review-summary {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.5rem;
}
.dist-review-section {
  margin-bottom: 1.25rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border);
}
.dist-review-section:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}
.dist-review-label {
  font-size: 0.75rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.3rem;
}
.dist-review-value {
  font-weight: 600;
  color: var(--text);
  font-size: 0.95rem;
}
.dist-review-track {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.dist-review-track:last-child { border-bottom: none; }
.dist-review-track-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
}
.dist-review-price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
}
.dist-review-price-total {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--accent);
}

/* Pay Button */
.dist-pay-btn {
  background: linear-gradient(135deg, #06d6a0, #059669);
  border: none;
  color: #000;
  font-weight: 800;
  font-size: 1.1rem;
  padding: 1rem 2rem;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  letter-spacing: 0.3px;
  box-shadow: 0 4px 15px rgba(6, 214, 160, 0.3);
}
.dist-pay-btn:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(6, 214, 160, 0.4);
}
.dist-pay-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* Mobile */
@media (max-width: 600px) {
  .dist-step-label { display: none; }
  .dist-wizard-progress { gap: 0; }
  .dist-price-banner { flex-direction: column; gap: 0.5rem; text-align: center; }
  .dist-price-banner-left { justify-content: center; }
  .dist-pay-btn { width: 100%; font-size: 1rem; }
  .dist-track-header { flex-wrap: wrap; gap: 0.5rem; }
}

/* Cover Generator */
.cover-color-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.2s, border-color 0.2s;
}
.cover-color-btn:hover { transform: scale(1.15); }
.cover-color-btn.active { border-color: #fff; box-shadow: 0 0 10px rgba(255,255,255,0.3); }

/* ==================== DOWNLOADS PAGE ==================== */

/* Source Tabs */
.dl-source-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}
.dl-source-tab {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.2rem;
  border-radius: var(--radius-md);
  border: 2px solid var(--border);
  background: var(--bg-card);
  color: var(--text-dim);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s;
}
.dl-source-tab:hover {
  border-color: var(--primary);
  color: var(--text-bright);
}
.dl-source-tab.active {
  border-color: var(--primary);
  background: hsla(var(--theme-hue), 77%, 55%, 0.12);
  color: var(--text-bright);
  box-shadow: 0 0 12px hsla(var(--theme-hue), 77%, 55%, 0.15);
}
.dl-tab-icon {
  font-size: 1.1rem;
}

/* Download Cards */
.dl-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.5rem;
}
.dl-card-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.dl-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: #fff;
  flex-shrink: 0;
}
.dl-card-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-bright);
  margin: 0;
}
.dl-card-desc {
  font-size: 0.85rem;
  color: var(--text-dim);
  margin: 0.2rem 0 0;
}
.dl-input-row {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.dl-input-row .url-input {
  flex: 1;
}

/* Preview Card */
.dl-preview-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--bg-input);
  border-radius: 12px;
  padding: 1rem;
  margin-bottom: 1rem;
}
.dl-preview-img {
  width: 80px;
  height: 80px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}
.dl-preview-info {
  flex: 1;
  min-width: 0;
}
.dl-preview-type {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 1px;
  padding: 2px 8px;
  border-radius: 20px;
  background: var(--primary);
  color: #fff;
  margin-bottom: 0.3rem;
}
.dl-preview-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-bright);
  margin: 0.2rem 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dl-preview-meta {
  font-size: 0.85rem;
  color: var(--text-dim);
  margin: 0;
}

/* Download Options */
.dl-options-row {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}
.dl-option {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.dl-option label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-dim);
}
.dl-select, .dl-input {
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--bg-input);
  color: var(--text);
  font-size: 0.9rem;
  min-width: 100px;
}
.dl-start-btn {
  width: 100%;
  font-size: 1.05rem;
  padding: 0.8rem;
}

/* Track List with Progress */
.dl-track-list {
  margin-top: 1rem;
  max-height: 400px;
  overflow-y: auto;
  border: 1px solid var(--border);
  border-radius: 12px;
}
.dl-track-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: background 0.2s;
}
.dl-track-item:last-child {
  border-bottom: none;
}
.dl-track-item:hover {
  background: hsla(var(--theme-hue), 77%, 55%, 0.05);
}
.dl-track-num {
  width: 28px;
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-dim);
  font-weight: 600;
  flex-shrink: 0;
}
.dl-track-cover {
  width: 40px;
  height: 40px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
}
.dl-track-cover-ph {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-input);
  color: var(--text-dim);
  font-size: 1.2rem;
}
.dl-track-info {
  flex: 1;
  min-width: 0;
}
.dl-track-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-bright);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dl-track-artist {
  font-size: 0.8rem;
  color: var(--text-dim);
}

/* Per-Track Progress Bar */
.dl-track-progress-wrap {
  width: 80px;
  flex-shrink: 0;
}
.dl-track-progress-bar {
  height: 6px;
  background: var(--bg-input);
  border-radius: 3px;
  overflow: hidden;
}
.dl-track-progress-fill {
  height: 100%;
  width: 0%;
  border-radius: 3px;
  background: var(--text-dim);
  transition: width 0.5s ease;
}
.dl-track-progress-fill.dl-track-downloading {
  background: var(--primary);
  animation: dlPulse 1.5s infinite;
}
.dl-track-progress-fill.dl-track-completed {
  background: var(--accent);
}
.dl-track-progress-fill.dl-track-error {
  background: var(--danger);
}
@keyframes dlPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* Track Status Labels */
.dl-track-status {
  width: 90px;
  text-align: right;
  font-size: 0.78rem;
  flex-shrink: 0;
}
.dl-status-pending { color: var(--text-dim); }
.dl-status-downloading { color: var(--primary); display: flex; align-items: center; gap: 4px; justify-content: flex-end; }
.dl-status-completed { color: var(--accent); font-weight: 600; }
.dl-status-error { color: var(--danger); }

/* Overall Progress Section */
.dl-progress-section {
  margin-top: 1.5rem;
}
.dl-progress-card {
  background: var(--bg-card);
  border: 2px solid var(--primary);
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 0 20px hsla(var(--theme-hue), 77%, 55%, 0.1);
}
.dl-progress-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}
.dl-progress-header h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-bright);
  margin: 0;
}
.dl-progress-stats {
  font-size: 0.9rem;
  color: var(--text-dim);
}
.dl-progress-stats strong {
  color: var(--accent);
  font-size: 1.1rem;
}
.dl-progress-bar-wrap {
  margin-bottom: 1rem;
}
.dl-progress-bar-bg {
  height: 14px;
  background: var(--bg-input);
  border-radius: 7px;
  overflow: hidden;
  position: relative;
}
.dl-progress-bar-fill {
  height: 100%;
  width: 0%;
  border-radius: 7px;
  background: var(--gradient-primary);
  transition: width 0.5s ease;
  position: relative;
  box-shadow: 0 0 10px hsla(var(--theme-hue), 77%, 55%, 0.3);
}
.dl-progress-bar-fill::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  animation: dlShimmer 2s infinite;
}
@keyframes dlShimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}
.dl-progress-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.5rem;
}
.dl-progress-pct {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--primary);
  font-family: 'Plus Jakarta Sans', monospace, sans-serif;
}
.dl-progress-eta {
  font-size: 0.85rem;
  color: var(--text-dim);
}

/* Download Complete */
.dl-complete-card {
  text-align: center;
  padding: 1.5rem 0 0.5rem;
}
.dl-complete-card h3 {
  color: var(--accent);
  font-size: 1.2rem;
  margin: 0.5rem 0;
}
.dl-complete-card p {
  color: var(--text-dim);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}
.dl-complete-icon {
  font-size: 2.5rem;
  color: var(--accent);
}
.dl-complete-error .dl-complete-icon {
  color: var(--danger);
}
.dl-complete-error h3 {
  color: var(--danger);
}

/* Batch Info & Upgrade Reminder */
.dl-batch-info {
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
  font-size: 0.85rem;
  color: var(--text);
  line-height: 1.5;
}
.dl-upgrade-reminder {
  background: linear-gradient(135deg, hsla(var(--theme-hue), 77%, 55%, 0.08), rgba(6, 214, 160, 0.05));
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
  font-size: 0.85rem;
  color: var(--text);
}

/* ==================== HERO VIDEO (Landing Page) ==================== */
.hero-video {
  margin: 2rem auto 1.5rem;
  max-width: 640px;
  width: 100%;
}
.hero-video-wrap {
  border-radius: 16px;
  overflow: hidden;
  border: 2px solid var(--border);
  background: #000;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 0 20px hsla(var(--theme-hue), 77%, 55%, 0.15);
}
.hero-video-player {
  width: 100%;
  height: auto;
  display: block;
  max-height: 360px;
  object-fit: contain;
}

/* ==================== AUTH VIDEO SECTION (Login/Register) ==================== */
.auth-video-section {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.auth-video-section.auth-video-top {
  margin: 0 0 1rem;
  padding: 0;
  border-top: none;
  width: 100%;
  max-width: 400px;
}
.auth-video-caption {
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-dim);
  margin: 0.5rem 0 0;
  font-weight: 600;
}
.auth-video-wrap {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #000;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}
.auth-video {
  width: 100%;
  height: auto;
  display: block;
  max-height: 220px;
  object-fit: contain;
}

/* ==================== DOWNLOADS PAGE MOBILE ==================== */
@media (max-width: 768px) {
  .dl-source-tabs {
    gap: 0.35rem;
  }
  .dl-source-tab {
    padding: 0.5rem 0.8rem;
    font-size: 0.8rem;
    flex: 1;
    justify-content: center;
    text-align: center;
  }
  .dl-tab-icon {
    display: none;
  }
  .dl-card {
    padding: 1rem;
  }
  .dl-card-header {
    gap: 0.75rem;
    margin-bottom: 1rem;
  }
  .dl-card-icon {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }
  .dl-card-title {
    font-size: 1rem;
  }
  .dl-input-row {
    flex-direction: column;
    gap: 0.5rem;
  }
  .dl-preview-card {
    flex-direction: column;
    text-align: center;
  }
  .dl-preview-img {
    width: 60px;
    height: 60px;
  }
  .dl-options-row {
    flex-direction: column;
    gap: 0.5rem;
  }
  .dl-option {
    width: 100%;
  }
  .dl-select, .dl-input {
    width: 100%;
  }
  .dl-track-item {
    padding: 0.5rem 0.6rem;
    gap: 0.5rem;
  }
  .dl-track-cover {
    width: 32px;
    height: 32px;
  }
  .dl-track-progress-wrap {
    width: 50px;
  }
  .dl-track-status {
    width: 70px;
    font-size: 0.7rem;
  }
  .dl-track-name {
    font-size: 0.8rem;
  }
  .dl-track-artist {
    font-size: 0.72rem;
  }
  .dl-progress-header {
    flex-direction: column;
    gap: 0.3rem;
    align-items: flex-start;
  }
  .dl-progress-pct {
    font-size: 1rem;
  }

  /* Auth video mobile */
  .auth-video-section {
    margin-top: 1rem;
    padding-top: 1rem;
  }
  .auth-video-section.auth-video-top {
    margin: 0 0 0.75rem;
    padding: 0;
  }
  .auth-video {
    max-height: 180px;
  }

  /* Hero video mobile */
  .hero-video {
    margin: 1.5rem auto 1rem;
  }
  .hero-video-player {
    max-height: 220px;
  }

  /* Marketplace upload price grid */
  .mkt-upload-price-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
  }

  /* Marketplace edit modal grid */
  .mkt-edit-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  /* Marketplace modal */
  .mkt-modal-content {
    max-width: 95vw !important;
    padding: 1rem !important;
    max-height: 90vh;
    overflow-y: auto;
  }

  /* Marketplace card price promo styling */
  .mkt-card-price {
    font-size: 0.85rem;
  }
  .mkt-card-footer {
    flex-direction: column;
    gap: 0.3rem;
    align-items: flex-start;
  }

  /* Marketplace categories scroll */
  .mkt-categories {
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .mkt-categories::-webkit-scrollbar { display: none; }

  /* Marketplace filters */
  .mkt-filter-row {
    flex-direction: column;
    gap: 0.5rem;
  }

  /* Download track number hidden on small screens */
  .dl-track-num {
    display: none;
  }
}

@media (max-width: 480px) {
  /* Marketplace upload price grid - single column on very small */
  .mkt-upload-price-grid {
    grid-template-columns: 1fr;
  }

  /* Download tabs smaller */
  .dl-source-tab {
    padding: 0.4rem 0.5rem;
    font-size: 0.72rem;
  }

  /* Marketplace card improvements */
  .mkt-card-title {
    font-size: 0.82rem;
  }
  .mkt-card-seller {
    font-size: 0.68rem;
  }
  .mkt-card-body {
    padding: 0.5rem;
  }

  /* Marketplace detail */
  .mkt-detail-cover {
    width: 120px;
    height: 120px;
  }
  .mkt-detail-info h2 {
    font-size: 1.05rem;
  }
  .mkt-detail-price {
    font-size: 1.2rem;
  }

  /* Downloads preview compact */
  .dl-preview-img {
    width: 50px;
    height: 50px;
  }
  .dl-preview-name {
    font-size: 0.9rem;
  }
  .dl-track-cover {
    display: none;
  }
  .dl-track-progress-wrap {
    width: 40px;
  }
}

/* ========== Liquid Gradient Utility Classes ========== */

/* Gradient text */
.text-gradient {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Glass card effect */
.glass {
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

/* Glow border on hover */
.glow-border {
  position: relative;
  transition: box-shadow 0.3s ease;
}
.glow-border:hover {
  box-shadow: 0 0 20px var(--theme-glow), 0 0 40px hsla(var(--theme-hue), 77%, 55%, 0.06);
}

/* Gradient border effect */
.gradient-border {
  position: relative;
  border: none !important;
}
.gradient-border::before {
  content: '';
  position: absolute;
  inset: 0;
  padding: 1px;
  border-radius: inherit;
  background: linear-gradient(135deg, hsla(var(--theme-hue), 77%, 55%, 0.3), hsla(calc(var(--theme-hue) + 30), 85%, 60%, 0.2), rgba(56, 189, 248, 0.2));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

/* Animated blob for backgrounds */
@keyframes blob-float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(30px, -50px) scale(1.1); }
  50% { transform: translate(-20px, 20px) scale(0.9); }
  75% { transform: translate(20px, 40px) scale(1.05); }
}

.liquid-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.15;
  animation: blob-float 15s ease-in-out infinite;
  pointer-events: none;
}

/* Shimmer loading effect */
@keyframes liquid-shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.shimmer {
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.06) 50%, transparent 100%);
  background-size: 200% 100%;
  animation: liquid-shimmer 2s infinite;
}

/* Focus glow for inputs */
input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: hsla(var(--theme-hue), 77%, 55%, 0.4) !important;
  box-shadow: 0 0 0 3px hsla(var(--theme-hue), 77%, 55%, 0.1), 0 0 20px hsla(var(--theme-hue), 77%, 55%, 0.06);
  background: rgba(255, 255, 255, 0.06) !important;
}

/* Smooth scrollbar styling */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.18);
}

/* ========== Stat-box mobile wrap fix ========== */
@media (max-width: 600px) {
  .referral-stats-row, #downloadStats { flex-wrap: wrap; }
  .stat-box { flex: 1 1 calc(50% - 0.5rem); min-width: 120px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 360px) {
  .stat-box { flex: 1 1 100%; }
  .stats-grid { grid-template-columns: 1fr; }
}

/* ========== Quick access grid mobile ========== */
@media (max-width: 500px) {
  .quick-access-grid { grid-template-columns: 1fr; }
}

/* ========== Banner mobile offset ========== */
@media (max-width: 768px) {
  .new-design-banner { top: 56px !important; }
}
