/* ============================================
   SOUNDWAVE - MAIN CSS
   Dark Theme | Modern Design
   ============================================ */

/* ---------- CSS VARIABLES ---------- */
:root {
  --bg-primary:    #0a0a0f;
  --bg-secondary:  #12121a;
  --bg-card:       #1a1a28;
  --bg-card-hover: #202035;
  --bg-input:      #1e1e2e;
  --border-color:  rgba(255,255,255,0.08);
  --border-hover:  rgba(255,255,255,0.2);

  --text-primary:   #f0f0f8;
  --text-secondary: #9898b8;
  --text-muted:     #555570;

  --accent-orange: #FF6B35;
  --accent-red:    #E63946;
  --accent-blue:   #00B4D8;
  --accent-green:  #2DC653;
  --accent-purple: #9B5DE5;
  --accent-yellow: #F7B731;

  --player-height: 80px;
  --navbar-height: 64px;
  --sidebar-width: 220px;
  --radius:        12px;
  --radius-sm:     8px;
  --radius-lg:     18px;

  --shadow-sm:  0 2px 8px rgba(0,0,0,0.3);
  --shadow-md:  0 8px 32px rgba(0,0,0,0.4);
  --shadow-lg:  0 20px 60px rgba(0,0,0,0.6);
  --shadow-glow: 0 0 30px rgba(255,107,53,0.2);

  --transition: 0.2s ease;
  --font-main:  'Space Grotesk', sans-serif;
  --font-mono:  'DM Mono', monospace;
}

/* ---------- RESET & BASE ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-main);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  padding-top: var(--navbar-height);
  padding-bottom: var(--player-height);
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
input, textarea, select, button { font-family: var(--font-main); }
ul, ol { list-style: none; }

/* ---------- SCROLLBAR ---------- */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg-secondary); }
::-webkit-scrollbar-thumb { background: var(--border-hover); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent-orange); }

/* ---------- TYPOGRAPHY ---------- */
h1, h2, h3, h4, h5, h6 { font-weight: 700; line-height: 1.2; }
h1 { font-size: clamp(1.8rem, 4vw, 3rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
h3 { font-size: 1.2rem; }

.gradient-text {
  background: linear-gradient(135deg, var(--accent-orange), var(--accent-red), var(--accent-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ---------- CONTAINER ---------- */
.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.container-fluid { max-width: 100%; padding: 0 24px; }

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--navbar-height);
  background: rgba(10,10,15,0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  z-index: 1000;
}
.navbar-inner {
  max-width: 1400px; margin: 0 auto; padding: 0 24px;
  height: 100%; display: flex; align-items: center; gap: 16px;
}
.navbar-brand {
  display: flex; align-items: center; gap: 10px;
  flex-shrink: 0;
}
.brand-name { font-size: 1.2rem; font-weight: 600; }
.brand-name strong { color: var(--accent-orange); }

.navbar-search {
  flex: 1; max-width: 500px;
  display: flex; align-items: center;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  padding: 0 16px; gap: 8px;
  transition: var(--transition);
}
.navbar-search:focus-within {
  border-color: var(--accent-orange);
  box-shadow: 0 0 0 3px rgba(255,107,53,0.15);
}
.navbar-search .search-icon { color: var(--text-muted); width: 16px; height: 16px; flex-shrink: 0; }
.navbar-search input {
  flex: 1; background: none; border: none; outline: none;
  color: var(--text-primary); font-size: 0.9rem; padding: 10px 0;
}
.navbar-search input::placeholder { color: var(--text-muted); }

.navbar-links { display: flex; align-items: center; gap: 8px; }
.navbar-links a {
  display: flex; align-items: center; gap: 6px;
  padding: 8px 14px; border-radius: var(--radius-sm);
  font-size: 0.875rem; font-weight: 500;
  color: var(--text-secondary);
  transition: var(--transition);
}
.navbar-links a:hover { color: var(--text-primary); background: var(--bg-card); }
.navbar-links a svg, .navbar-links a i { width: 16px; height: 16px; }
.btn-upload {
  background: linear-gradient(135deg, var(--accent-orange), #ff4f00) !important;
  color: white !important;
  padding: 8px 16px !important;
  border-radius: var(--radius-sm) !important;
  font-weight: 600 !important;
}
.btn-upload:hover { transform: translateY(-1px); box-shadow: var(--shadow-glow) !important; }

.navbar-user { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.cart-btn, .notif-btn {
  position: relative; background: none; border: none; cursor: pointer;
  padding: 8px; border-radius: var(--radius-sm);
  color: var(--text-secondary); transition: var(--transition);
}
.cart-btn:hover, .notif-btn:hover { color: var(--text-primary); background: var(--bg-card); }
.cart-btn i, .notif-btn i { width: 20px; height: 20px; }
.cart-badge, .notif-badge {
  position: absolute; top: 2px; right: 2px;
  background: var(--accent-orange); color: white;
  font-size: 0.65rem; font-weight: 700;
  min-width: 16px; height: 16px;
  border-radius: 8px; padding: 0 4px;
  display: flex; align-items: center; justify-content: center;
}

/* Dropdown */
.user-dropdown { position: relative; }
.user-avatar-btn {
  display: flex; align-items: center; gap: 8px;
  background: none; border: 1px solid var(--border-color);
  border-radius: 24px; padding: 4px 12px 4px 4px;
  cursor: pointer; transition: var(--transition);
  color: var(--text-primary); font-size: 0.875rem;
}
.user-avatar-btn:hover { border-color: var(--accent-orange); }
.user-avatar-btn i { width: 14px; height: 14px; color: var(--text-muted); }
.user-avatar-img { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; }

.dropdown-menu {
  position: absolute; top: calc(100% + 8px); right: 0;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  min-width: 220px;
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: all 0.2s ease;
  z-index: 100;
}
.user-dropdown.open .dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown-header {
  display: flex; align-items: center; gap: 10px; padding: 14px;
}
.dropdown-header img { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; }
.dropdown-header strong { display: block; font-size: 0.875rem; }
.dropdown-header small { color: var(--text-muted); font-size: 0.75rem; }
.dropdown-divider { height: 1px; background: var(--border-color); margin: 4px 0; }
.dropdown-menu a {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 16px; font-size: 0.875rem;
  color: var(--text-secondary); transition: var(--transition);
}
.dropdown-menu a:hover { color: var(--text-primary); background: var(--bg-card-hover); }
.dropdown-menu a i, .dropdown-menu a svg { width: 16px; height: 16px; }
.admin-link { color: var(--accent-orange) !important; }
.logout-link { color: var(--accent-red) !important; }

.btn-login {
  padding: 8px 16px; border-radius: var(--radius-sm);
  border: 1px solid var(--border-color); font-size: 0.875rem;
  color: var(--text-secondary); transition: var(--transition);
  background: none; cursor: pointer;
}
.btn-login:hover { border-color: var(--text-secondary); color: var(--text-primary); }
.btn-register {
  padding: 8px 16px; border-radius: var(--radius-sm);
  background: var(--accent-orange); color: white;
  font-size: 0.875rem; font-weight: 600;
  transition: var(--transition);
}
.btn-register:hover { background: #e85a25; transform: translateY(-1px); }

/* Mobile menu button */
.mobile-menu-btn { display: none; background: none; border: none; cursor: pointer; color: var(--text-primary); padding: 8px; }

/* ---------- FLASH MESSAGES ---------- */
.flash {
  position: fixed; top: calc(var(--navbar-height) + 12px); right: 20px;
  z-index: 999; max-width: 420px;
  display: flex; align-items: center; gap: 10px;
  padding: 14px 16px; border-radius: var(--radius);
  font-size: 0.875rem; font-weight: 500;
  box-shadow: var(--shadow-md);
  animation: slideIn 0.3s ease;
}
.flash i, .flash svg { width: 18px; height: 18px; flex-shrink: 0; }
.flash button { margin-left: auto; background: none; border: none; cursor: pointer; opacity: 0.7; }
.flash-success { background: #0d2e1a; border: 1px solid var(--accent-green); color: #5fffaa; }
.flash-error   { background: #2e0d0d; border: 1px solid var(--accent-red);   color: #ff7070; }
.flash-info    { background: #0d1f2e; border: 1px solid var(--accent-blue);  color: #70d0ff; }
@keyframes slideIn { from { opacity:0; transform: translateX(30px); } to { opacity:1; transform: translateX(0); } }

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 20px; border-radius: var(--radius-sm);
  font-size: 0.875rem; font-weight: 600; cursor: pointer;
  border: none; transition: all var(--transition);
  white-space: nowrap; text-align: center;
}
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn i, .btn svg { width: 16px; height: 16px; flex-shrink: 0; }
.btn-primary { background: linear-gradient(135deg, var(--accent-orange), #e85a25); color: white; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(255,107,53,0.35); }
.btn-accent  { background: var(--accent-purple); color: white; }
.btn-accent:hover { background: #8a4fd4; transform: translateY(-2px); }
.btn-ghost   { background: var(--bg-card); border: 1px solid var(--border-color); color: var(--text-secondary); }
.btn-ghost:hover { border-color: var(--border-hover); color: var(--text-primary); }
.btn-success { background: var(--accent-green); color: white; }
.btn-danger  { background: var(--accent-red); color: white; }
.btn-full    { width: 100%; justify-content: center; }
.btn-lg      { padding: 14px 28px; font-size: 1rem; border-radius: var(--radius); }
.btn-sm      { padding: 7px 14px; font-size: 0.8rem; }
.btn-xs      { padding: 5px 10px; font-size: 0.75rem; }
.btn-like.liked { color: var(--accent-red) !important; }

/* ============================================
   FORMS
   ============================================ */
.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.form-group label { font-size: 0.875rem; font-weight: 500; color: var(--text-secondary); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-section { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius); padding: 20px; margin-bottom: 20px; }
.form-section h3 { font-size: 1rem; margin-bottom: 16px; display: flex; align-items: center; gap: 8px; color: var(--text-secondary); }

input[type="text"], input[type="email"], input[type="password"],
input[type="number"], input[type="url"], input[type="date"],
textarea, select {
  background: var(--bg-input); border: 1px solid var(--border-color);
  border-radius: var(--radius-sm); color: var(--text-primary);
  padding: 10px 14px; font-size: 0.875rem; width: 100%;
  transition: var(--transition); outline: none;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--accent-orange);
  box-shadow: 0 0 0 3px rgba(255,107,53,0.12);
}
input::placeholder, textarea::placeholder { color: var(--text-muted); }
select option { background: var(--bg-card); }
textarea { resize: vertical; min-height: 80px; }

.input-wrap { position: relative; }
.input-icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--text-muted); pointer-events: none; }
.input-wrap input { padding-left: 40px; }
.pwd-toggle { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); background: none; border: none; cursor: pointer; color: var(--text-muted); }

/* Toggle switch */
.toggle-label { display: flex; align-items: center; gap: 10px; cursor: pointer; font-size: 0.875rem; user-select: none; }
.toggle-switch {
  width: 44px; height: 24px; border-radius: 12px;
  background: var(--bg-input); border: 1px solid var(--border-color);
  position: relative; flex-shrink: 0; transition: background 0.2s;
}
.toggle-switch::after {
  content: ''; width: 18px; height: 18px; border-radius: 50%;
  background: var(--text-muted); position: absolute; top: 2px; left: 2px;
  transition: transform 0.2s, background 0.2s;
}
.toggle-label input:checked + .toggle-switch { background: var(--accent-orange); border-color: var(--accent-orange); }
.toggle-label input:checked + .toggle-switch::after { transform: translateX(20px); background: white; }
.toggle-label input[type="checkbox"] { display: none; }
.checkbox-label { display: flex; align-items: flex-start; gap: 8px; font-size: 0.875rem; cursor: pointer; color: var(--text-secondary); }
.checkbox-label input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--accent-orange); flex-shrink: 0; margin-top: 2px; }

/* ============================================
   SECTION
   ============================================ */
.section { padding: 60px 0; }
.section-dark { background: var(--bg-secondary); }
.section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 28px; }
.section-header h2 { display: flex; align-items: center; gap: 10px; }
.section-header h2 i, .section-header h2 svg { width: 24px; height: 24px; color: var(--accent-orange); }
.see-all { display: flex; align-items: center; gap: 6px; color: var(--accent-orange); font-size: 0.875rem; font-weight: 500; }
.see-all i, .see-all svg { width: 16px; height: 16px; }

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative; overflow: hidden;
  padding: 80px 0;
  background: linear-gradient(180deg, #0d0d1a 0%, var(--bg-primary) 100%);
}
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.hero-orb {
  position: absolute; border-radius: 50%;
  filter: blur(80px); opacity: 0.15;
  animation: float 8s ease-in-out infinite;
}
.hero-orb-1 { width: 400px; height: 400px; background: var(--accent-orange); top: -100px; left: -100px; }
.hero-orb-2 { width: 300px; height: 300px; background: var(--accent-purple); top: 50px; right: 10%; animation-delay: -3s; }
.hero-orb-3 { width: 250px; height: 250px; background: var(--accent-blue); bottom: 0; left: 40%; animation-delay: -6s; }
@keyframes float { 0%,100% { transform: translate(0,0); } 33% { transform: translate(20px,-20px); } 66% { transform: translate(-10px,15px); } }

.hero-inner { position: relative; max-width: 1280px; margin: 0 auto; padding: 0 24px; display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255,107,53,0.15); border: 1px solid rgba(255,107,53,0.3);
  color: var(--accent-orange); padding: 6px 14px; border-radius: 20px;
  font-size: 0.8rem; font-weight: 600; margin-bottom: 20px;
}
.hero-badge i, .hero-badge svg { width: 14px; height: 14px; }
.hero-text h1 { margin-bottom: 16px; letter-spacing: -0.02em; }
.hero-text p { color: var(--text-secondary); font-size: 1.1rem; max-width: 480px; margin-bottom: 32px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 40px; }
.hero-stats { display: flex; gap: 32px; }
.hero-stats div { display: flex; flex-direction: column; }
.hero-stats strong { font-size: 1.5rem; font-weight: 700; color: var(--accent-orange); }
.hero-stats span { font-size: 0.8rem; color: var(--text-muted); }

/* Hero Visual */
.hero-visual { display: flex; justify-content: center; align-items: center; }
.hero-player-preview { width: 100%; max-width: 420px; }
.preview-card {
  background: var(--bg-card); border: 1px solid var(--border-color);
  border-radius: var(--radius-lg); padding: 24px;
  box-shadow: var(--shadow-lg);
}
.preview-cover {
  position: relative; border-radius: var(--radius); overflow: hidden;
  aspect-ratio: 1; margin-bottom: 16px; cursor: pointer;
}
.preview-cover-bg {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, var(--accent-orange), var(--accent-purple), var(--accent-blue));
  animation: gradShift 6s ease infinite;
}
@keyframes gradShift { 0%,100% { filter: hue-rotate(0deg); } 50% { filter: hue-rotate(60deg); } }
.preview-play-btn {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,0.3);
}
.preview-play-btn i, .preview-play-btn svg { width: 48px; height: 48px; color: white; }
.preview-waveform { display: flex; align-items: center; gap: 2px; height: 40px; margin-bottom: 12px; }
.wf-bar { flex: 1; background: var(--accent-orange); border-radius: 2px; opacity: 0.7; transition: height 0.5s ease; animation: barAnim 2s ease-in-out infinite; }
.wf-bar:nth-child(odd) { animation-delay: -0.5s; }
@keyframes barAnim { 0%,100% { opacity: 0.4; } 50% { opacity: 1; } }
.preview-info { display: flex; justify-content: space-between; align-items: center; }
.preview-info span:first-child { color: var(--text-secondary); font-size: 0.875rem; }
.preview-price { background: var(--accent-orange); color: white; padding: 4px 10px; border-radius: 20px; font-size: 0.8rem; font-weight: 700; }

/* ============================================
   GENRES GRID
   ============================================ */
.genres-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
}
.genre-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 20px 16px;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  transition: all var(--transition); text-align: center; cursor: pointer;
  position: relative; overflow: hidden;
}
.genre-card::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--genre-color, var(--accent-orange)), transparent);
  opacity: 0; transition: opacity var(--transition);
}
.genre-card:hover { border-color: var(--genre-color, var(--accent-orange)); transform: translateY(-4px); box-shadow: 0 10px 30px rgba(0,0,0,0.3); }
.genre-card:hover::before { opacity: 0.1; }
.genre-icon { font-size: 1.8rem; }
.genre-icon i, .genre-icon svg { width: 28px; height: 28px; color: var(--genre-color, var(--accent-orange)); }
.genre-name { font-size: 0.875rem; font-weight: 600; }
.genre-count { font-size: 0.75rem; color: var(--text-muted); }

/* ============================================
   TRACK CARDS
   ============================================ */
.tracks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
}
.tracks-grid-featured { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }

.track-card {
  background: var(--bg-card); border: 1px solid var(--border-color);
  border-radius: var(--radius); overflow: hidden;
  transition: all var(--transition);
}
.track-card:hover { transform: translateY(-4px); border-color: var(--border-hover); box-shadow: var(--shadow-md); }
.track-card-cover { position: relative; aspect-ratio: 1; overflow: hidden; }
.track-card-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease; }
.track-card:hover .track-card-cover img { transform: scale(1.05); }
.track-card-overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.6);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity var(--transition);
  flex-direction: column; gap: 10px;
}
.track-card:hover .track-card-overlay { opacity: 1; }
.tc-play-btn {
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--accent-orange); border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: transform var(--transition); color: white;
}
.tc-play-btn:hover { transform: scale(1.1); }
.tc-play-btn i, .tc-play-btn svg { width: 22px; height: 22px; }
.tc-actions { display: flex; gap: 8px; }
.tc-action-btn {
  background: rgba(255,255,255,0.1); border: none; border-radius: 50%;
  width: 36px; height: 36px; cursor: pointer; color: white;
  display: flex; align-items: center; justify-content: center; transition: var(--transition);
}
.tc-action-btn:hover { background: rgba(255,255,255,0.25); }
.tc-action-btn i, .tc-action-btn svg { width: 16px; height: 16px; }
.track-price-badge {
  position: absolute; top: 10px; right: 10px;
  background: var(--accent-orange); color: white;
  padding: 3px 8px; border-radius: 12px; font-size: 0.75rem; font-weight: 700;
}
.track-free-label {
  position: absolute; top: 10px; right: 10px;
  background: var(--accent-green); color: white;
  padding: 3px 8px; border-radius: 12px; font-size: 0.65rem; font-weight: 700;
}
.featured-badge {
  position: absolute; top: 10px; left: 10px;
  background: var(--accent-yellow); color: #000;
  padding: 3px 8px; border-radius: 12px; font-size: 0.7rem; font-weight: 700;
}
.track-card-body { padding: 14px; }
.track-card-title { font-size: 0.9rem; font-weight: 600; display: block; margin-bottom: 4px; transition: color var(--transition); }
.track-card-title:hover { color: var(--accent-orange); }
.track-card-artist { font-size: 0.8rem; color: var(--text-muted); display: flex; align-items: center; gap: 4px; margin-bottom: 8px; }
.verified-icon { width: 12px !important; height: 12px !important; color: var(--accent-blue); }
.track-genre-tag {
  display: inline-block; font-size: 0.7rem; padding: 2px 8px;
  border-radius: 10px; background: rgba(255,107,53,0.15);
  color: var(--genre-color, var(--accent-orange));
  border: 1px solid rgba(255,107,53,0.2); margin-bottom: 8px;
}
.track-card-stats { display: flex; align-items: center; gap: 10px; font-size: 0.75rem; color: var(--text-muted); margin-bottom: 10px; flex-wrap: wrap; }
.track-card-stats span { display: flex; align-items: center; gap: 4px; }
.track-card-stats i, .track-card-stats svg { width: 12px; height: 12px; }
.btn-buy-card { width: 100%; justify-content: center; padding: 8px; font-size: 0.8rem; background: rgba(255,107,53,0.15); border: 1px solid rgba(255,107,53,0.3); color: var(--accent-orange); border-radius: var(--radius-sm); }
.btn-buy-card:hover { background: var(--accent-orange); color: white; }
.btn-download-card { width: 100%; justify-content: center; padding: 8px; font-size: 0.8rem; background: rgba(45,198,83,0.15); border: 1px solid rgba(45,198,83,0.3); color: var(--accent-green); border-radius: var(--radius-sm); }
.btn-download-card:hover { background: var(--accent-green); color: white; }

/* ============================================
   TRACK LIST
   ============================================ */
.tracks-list { display: flex; flex-direction: column; gap: 4px; }
.track-list-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 14px; border-radius: var(--radius-sm);
  transition: background var(--transition); cursor: pointer;
}
.track-list-item:hover { background: var(--bg-card); }
.track-rank { width: 24px; text-align: center; font-size: 0.875rem; color: var(--text-muted); font-family: var(--font-mono); flex-shrink: 0; }
.track-play-mini {
  width: 32px; height: 32px; border-radius: 50%;
  background: none; border: 1px solid var(--border-color);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: var(--text-muted); flex-shrink: 0; transition: all var(--transition);
}
.track-play-mini:hover { background: var(--accent-orange); border-color: var(--accent-orange); color: white; }
.track-play-mini i, .track-play-mini svg { width: 14px; height: 14px; }
.track-list-cover { width: 44px; height: 44px; border-radius: var(--radius-sm); object-fit: cover; flex-shrink: 0; }
.track-list-info { flex: 1; min-width: 0; }
.track-list-title { font-size: 0.875rem; font-weight: 500; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.track-list-artist { font-size: 0.75rem; color: var(--text-muted); }
.track-genre-badge { font-size: 0.7rem; padding: 2px 8px; border-radius: 10px; background: rgba(255,107,53,0.1); color: var(--genre-color, var(--accent-orange)); white-space: nowrap; }
.track-plays { font-size: 0.75rem; color: var(--text-muted); display: flex; align-items: center; gap: 4px; white-space: nowrap; }
.track-plays i, .track-plays svg { width: 12px; height: 12px; }
.track-duration { font-size: 0.75rem; color: var(--text-muted); font-family: var(--font-mono); white-space: nowrap; min-width: 40px; text-align: right; }
.btn-buy-sm { padding: 5px 10px; font-size: 0.75rem; background: rgba(255,107,53,0.15); border: 1px solid rgba(255,107,53,0.3); color: var(--accent-orange); border-radius: 6px; cursor: pointer; display: flex; align-items: center; gap: 4px; white-space: nowrap; transition: var(--transition); }
.btn-buy-sm:hover { background: var(--accent-orange); color: white; }
.btn-buy-sm i, .btn-buy-sm svg { width: 12px; height: 12px; }
.track-free-badge { font-size: 0.7rem; padding: 3px 8px; border-radius: 10px; background: rgba(45,198,83,0.1); color: var(--accent-green); white-space: nowrap; }

/* ============================================
   ARTISTS GRID
   ============================================ */
.artists-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 16px; }
.artist-card {
  background: var(--bg-card); border: 1px solid var(--border-color);
  border-radius: var(--radius); padding: 24px 16px;
  text-align: center; display: flex; flex-direction: column; align-items: center; gap: 8px;
  transition: all var(--transition);
}
.artist-card:hover { transform: translateY(-4px); border-color: var(--accent-orange); }
.artist-avatar-wrap { position: relative; margin-bottom: 4px; }
.artist-avatar { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; border: 2px solid var(--border-color); }
.artist-card:hover .artist-avatar { border-color: var(--accent-orange); }
.verified-badge {
  position: absolute; bottom: 0; right: 0;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--accent-blue); border: 2px solid var(--bg-card);
  display: flex; align-items: center; justify-content: center;
}
.verified-badge i, .verified-badge svg { width: 10px; height: 10px; color: white; }
.artist-card strong { font-size: 0.875rem; }
.artist-card > span { font-size: 0.75rem; color: var(--text-muted); }
.artist-stats { display: flex; gap: 12px; font-size: 0.75rem; color: var(--text-muted); }
.artist-stats span { display: flex; align-items: center; gap: 3px; }
.artist-stats i, .artist-stats svg { width: 12px; height: 12px; }

/* ============================================
   CTA SECTION
   ============================================ */
.cta-section { background: linear-gradient(135deg, rgba(255,107,53,0.1), rgba(155,93,229,0.1)); }
.cta-box {
  background: var(--bg-card); border: 1px solid var(--border-color);
  border-radius: var(--radius-lg); padding: 48px;
  display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: center;
}
.cta-content h2 { margin-bottom: 12px; }
.cta-content p { color: var(--text-secondary); margin-bottom: 24px; max-width: 500px; }
.cta-features { display: flex; flex-direction: column; gap: 12px; min-width: 220px; }
.cta-features div { display: flex; align-items: center; gap: 8px; font-size: 0.875rem; }
.cta-features i, .cta-features svg { width: 16px; height: 16px; color: var(--accent-green); }

/* ============================================
   GLOBAL AUDIO PLAYER
   ============================================ */
.global-player {
  position: fixed; bottom: 0; left: 0; right: 0;
  height: var(--player-height);
  background: rgba(12,12,20,0.97);
  backdrop-filter: blur(20px);
  border-top: 1px solid var(--border-color);
  z-index: 900;
  display: grid; grid-template-columns: 280px 1fr 200px;
  align-items: center; padding: 0 24px; gap: 20px;
}
.player-left { display: flex; align-items: center; gap: 12px; min-width: 0; }
.player-cover { width: 48px; height: 48px; border-radius: var(--radius-sm); object-fit: cover; flex-shrink: 0; }
.player-info { flex: 1; min-width: 0; }
.player-title { font-size: 0.875rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.player-artist { font-size: 0.75rem; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.player-like { background: none; border: none; cursor: pointer; color: var(--text-muted); padding: 6px; flex-shrink: 0; }
.player-like:hover { color: var(--accent-red); }
.player-like i, .player-like svg { width: 16px; height: 16px; }

.player-center { display: flex; flex-direction: column; gap: 8px; align-items: center; }
.player-controls { display: flex; align-items: center; gap: 8px; }
.ctrl-btn {
  background: none; border: none; cursor: pointer;
  color: var(--text-secondary); padding: 6px;
  border-radius: var(--radius-sm); transition: all var(--transition);
  display: flex; align-items: center; justify-content: center;
}
.ctrl-btn:hover { color: var(--text-primary); background: var(--bg-card); }
.ctrl-btn i, .ctrl-btn svg { width: 18px; height: 18px; }
.play-btn {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--accent-orange) !important; color: white !important;
}
.play-btn:hover { transform: scale(1.1); background: #e85a25 !important; }

.player-progress { display: flex; align-items: center; gap: 10px; width: 100%; max-width: 500px; }
.time-current, .time-total { font-size: 0.7rem; color: var(--text-muted); font-family: var(--font-mono); white-space: nowrap; }
.progress-bar {
  flex: 1; height: 4px; background: var(--bg-input);
  border-radius: 2px; position: relative; cursor: pointer;
}
.progress-bar:hover { height: 6px; }
.progress-fill { height: 100%; background: var(--accent-orange); border-radius: 2px; width: 0%; transition: width 0.1s linear; }
.progress-thumb {
  width: 12px; height: 12px; border-radius: 50%;
  background: white; position: absolute;
  top: 50%; transform: translateY(-50%);
  left: 0%; margin-left: -6px;
  opacity: 0; transition: opacity var(--transition);
}
.progress-bar:hover .progress-thumb { opacity: 1; }

.player-right { display: flex; align-items: center; gap: 4px; justify-content: flex-end; }
.volume-control { display: flex; align-items: center; gap: 6px; }
.volume-slider {
  width: 80px; height: 4px; accent-color: var(--accent-orange);
  cursor: pointer;
}

/* ============================================
   TRACK PAGE
   ============================================ */
.track-page { padding: 40px 0 60px; }
.track-page-layout { display: grid; grid-template-columns: 1fr 320px; gap: 32px; }
.track-hero { display: grid; grid-template-columns: 280px 1fr; gap: 28px; margin-bottom: 32px; }
.track-hero-cover { border-radius: var(--radius); overflow: hidden; aspect-ratio: 1; position: relative; }
.track-hero-cover img { width: 100%; height: 100%; object-fit: cover; }
.track-featured-ribbon {
  position: absolute; top: 12px; left: 12px;
  background: var(--accent-yellow); color: #000;
  padding: 4px 10px; border-radius: 6px; font-size: 0.75rem; font-weight: 700;
  display: flex; align-items: center; gap: 4px;
}
.track-genre-link { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.genre-pill { display: inline-flex; align-items: center; padding: 4px 12px; border-radius: 14px; font-size: 0.8rem; font-weight: 500; background: rgba(255,107,53,0.15); color: var(--genre-color, var(--accent-orange)); border: 1px solid rgba(255,107,53,0.25); }
.free-pill { background: rgba(45,198,83,0.15); color: var(--accent-green); border: 1px solid rgba(45,198,83,0.25); padding: 4px 12px; border-radius: 14px; font-size: 0.8rem; }
.track-main-title { font-size: clamp(1.4rem, 3vw, 2rem); margin-bottom: 12px; letter-spacing: -0.02em; }
.track-artist-link { display: inline-flex; align-items: center; gap: 8px; color: var(--text-secondary); font-size: 0.875rem; margin-bottom: 20px; }
.track-artist-link img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; }
.track-artist-link:hover { color: var(--accent-orange); }

/* Waveform Player */
.track-player-wrap { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius); padding: 16px; margin-bottom: 16px; }
.track-player-controls { display: flex; align-items: center; gap: 12px; }
.play-main-btn {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--accent-orange); border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center; color: white;
  flex-shrink: 0; transition: all var(--transition);
}
.play-main-btn:hover { transform: scale(1.08); background: #e85a25; }
.play-main-btn i, .play-main-btn svg { width: 20px; height: 20px; }
.play-main-btn.playing i { display: none; }
.player-time-wrap { flex: 1; display: flex; align-items: center; gap: 10px; }
.waveform-container { flex: 1; position: relative; height: 60px; cursor: pointer; }
#waveform-canvas { width: 100%; height: 100%; }
.waveform-progress { position: absolute; inset: 0; background: rgba(255,107,53,0.2); border-right: 2px solid var(--accent-orange); width: 0%; pointer-events: none; }
.preview-indicator { position: absolute; top: 0; bottom: 0; width: 2px; background: rgba(255,255,255,0.3); }
.preview-indicator span { position: absolute; top: -20px; left: 4px; font-size: 0.65rem; white-space: nowrap; color: var(--text-muted); }
.preview-notice { font-size: 0.75rem; color: var(--text-muted); display: flex; align-items: center; gap: 6px; margin-top: 8px; }
.preview-notice i, .preview-notice svg { width: 14px; height: 14px; color: var(--accent-orange); }

.track-stats-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; font-size: 0.8rem; color: var(--text-muted); margin-bottom: 12px; }
.track-stats-row span { display: flex; align-items: center; gap: 4px; }
.track-stats-row i, .track-stats-row svg { width: 14px; height: 14px; }
.track-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.tag-pill { display: inline-block; background: var(--bg-card); border: 1px solid var(--border-color); padding: 3px 10px; border-radius: 12px; font-size: 0.75rem; color: var(--text-secondary); transition: var(--transition); }
.tag-pill:hover { border-color: var(--accent-orange); color: var(--accent-orange); }
.track-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.btn-buy-main { background: var(--accent-orange) !important; }
.track-license { font-size: 0.8rem; color: var(--text-muted); display: flex; align-items: center; gap: 6px; }
.track-license i, .track-license svg { width: 14px; height: 14px; }
.track-description { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius); padding: 20px; margin-bottom: 28px; }
.track-description h3 { margin-bottom: 10px; font-size: 0.875rem; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 0.05em; }
.track-description p { color: var(--text-secondary); font-size: 0.875rem; line-height: 1.7; }

/* Comments */
.track-comments { }
.track-comments h3 { display: flex; align-items: center; gap: 8px; margin-bottom: 20px; }
.track-comments h3 i, .track-comments h3 svg { width: 20px; height: 20px; color: var(--accent-orange); }
.comment-form { display: flex; gap: 12px; margin-bottom: 24px; }
.comment-input-wrap { flex: 1; display: flex; flex-direction: column; gap: 8px; }
.comment-input-wrap textarea { border-radius: var(--radius-sm); }
.comment-input-wrap .btn { align-self: flex-end; }
.comment-avatar { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.comment-item { display: flex; gap: 12px; margin-bottom: 16px; }
.comment-body { flex: 1; background: var(--bg-card); border-radius: var(--radius-sm); padding: 12px 14px; }
.comment-header { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.comment-username { font-size: 0.875rem; font-weight: 600; }
.comment-time { font-size: 0.75rem; color: var(--text-muted); margin-left: auto; }
.comment-time-link { background: rgba(255,107,53,0.15); color: var(--accent-orange); border: none; border-radius: 4px; padding: 1px 6px; font-size: 0.7rem; cursor: pointer; }
.comment-body p { font-size: 0.875rem; color: var(--text-secondary); }
.comment-login-prompt { color: var(--text-muted); font-size: 0.875rem; }
.comment-login-prompt a { color: var(--accent-orange); }
.new-comment { animation: slideIn 0.3s ease; }

/* Sidebar */
.track-page-sidebar { }
.sidebar-section { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius); padding: 20px; margin-bottom: 20px; }
.sidebar-section h3 { font-size: 0.875rem; font-weight: 600; margin-bottom: 16px; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 0.05em; }
.sidebar-track-item { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--border-color); }
.sidebar-track-item:last-of-type { border-bottom: none; }
.sidebar-play-btn { background: none; border: none; cursor: pointer; color: var(--text-muted); width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: all var(--transition); }
.sidebar-play-btn:hover { background: var(--accent-orange); color: white; }
.sidebar-play-btn i, .sidebar-play-btn svg { width: 12px; height: 12px; }
.sidebar-track-item img { width: 40px; height: 40px; border-radius: 6px; object-fit: cover; }
.sidebar-track-info { flex: 1; min-width: 0; }
.sidebar-track-info a { font-size: 0.8rem; font-weight: 500; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidebar-track-info span { font-size: 0.7rem; color: var(--text-muted); }
.sidebar-price { font-size: 0.75rem; font-weight: 600; color: var(--accent-orange); white-space: nowrap; }
.share-buttons { display: flex; flex-direction: column; gap: 8px; }
.share-btn { display: flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: var(--radius-sm); font-size: 0.8rem; font-weight: 500; border: none; cursor: pointer; transition: var(--transition); }
.share-btn i, .share-btn svg { width: 16px; height: 16px; }
.share-twitter { background: rgba(29,161,242,0.15); color: #1da1f2; border: 1px solid rgba(29,161,242,0.25); }
.share-twitter:hover { background: #1da1f2; color: white; }
.share-facebook { background: rgba(66,103,178,0.15); color: #4267b2; border: 1px solid rgba(66,103,178,0.25); }
.share-facebook:hover { background: #4267b2; color: white; }
.share-copy { background: var(--bg-input); color: var(--text-secondary); border: 1px solid var(--border-color); }
.share-copy:hover { background: var(--bg-card-hover); }

/* ============================================
   UPLOAD PAGE
   ============================================ */
.upload-page { padding: 40px 0 60px; }
.page-header { margin-bottom: 32px; }
.page-header h1 { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.page-header h1 i, .page-header h1 svg { color: var(--accent-orange); }
.page-header p { color: var(--text-secondary); }
.upload-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }

.drop-zone {
  background: var(--bg-card); border: 2px dashed var(--border-color);
  border-radius: var(--radius); padding: 32px; text-align: center;
  cursor: pointer; transition: all var(--transition); margin-bottom: 16px; min-height: 180px;
  display: flex; align-items: center; justify-content: center;
}
.drop-zone:hover, .drop-zone.dragging { border-color: var(--accent-orange); background: rgba(255,107,53,0.05); }
.drop-zone-inner { pointer-events: none; }
.drop-icon { width: 60px; height: 60px; border-radius: 50%; background: rgba(255,107,53,0.15); display: flex; align-items: center; justify-content: center; margin: 0 auto 12px; }
.drop-icon i, .drop-icon svg { width: 28px; height: 28px; color: var(--accent-orange); }
.drop-zone h3 { margin-bottom: 6px; }
.drop-zone p { color: var(--text-muted); font-size: 0.875rem; margin-bottom: 16px; }
.drop-zone-cover { min-height: 120px; }
.drop-zone-cover i, .drop-zone-cover svg { width: 28px; height: 28px; color: var(--text-muted); margin-bottom: 8px; }
.drop-zone-cover span { display: block; font-size: 0.875rem; font-weight: 500; margin-bottom: 4px; }
.drop-zone-cover small { color: var(--text-muted); font-size: 0.75rem; }
#cover-preview-img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius-sm); }

.audio-file-info { display: flex; align-items: center; gap: 12px; padding: 12px; background: var(--bg-input); border-radius: var(--radius-sm); text-align: left; }
.audio-file-info i, .audio-file-info svg { width: 24px; height: 24px; color: var(--accent-orange); flex-shrink: 0; }
.audio-file-info div { flex: 1; }
.audio-file-info strong { font-size: 0.875rem; display: block; }
.audio-file-info span { font-size: 0.75rem; color: var(--text-muted); }
.clear-btn { background: none; border: none; cursor: pointer; color: var(--text-muted); }
.clear-btn:hover { color: var(--accent-red); }
.upload-progress { height: 4px; background: var(--bg-input); border-radius: 2px; margin-top: 8px; overflow: hidden; }
.upload-progress-bar { height: 100%; background: var(--accent-orange); border-radius: 2px; width: 0%; transition: width 0.3s ease; }

.price-toggle-group { display: flex; flex-direction: column; gap: 16px; }
.download-type-selector { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.radio-card {
  background: var(--bg-input); border: 2px solid var(--border-color);
  border-radius: var(--radius-sm); padding: 14px; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center;
  transition: all var(--transition);
}
.radio-card input[type="radio"] { display: none; }
.radio-card i, .radio-card svg { width: 20px; height: 20px; color: var(--text-muted); }
.radio-card strong { font-size: 0.875rem; }
.radio-card span { font-size: 0.75rem; color: var(--text-muted); }
.radio-card.active, .radio-card:has(input:checked) { border-color: var(--accent-orange); background: rgba(255,107,53,0.1); }
.radio-card.active i, .radio-card.active svg { color: var(--accent-orange); }
.visibility-selector { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.price-input-wrap { position: relative; }
.price-symbol { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--text-muted); }
.price-input-wrap input { padding-left: 28px; }
.upload-submit-btn { margin-top: 8px; }

/* ============================================
   CART & CHECKOUT
   ============================================ */
.cart-page, .checkout-page { padding: 40px 0 60px; }
.cart-layout, .checkout-layout { display: grid; grid-template-columns: 1fr 360px; gap: 28px; align-items: start; }
.cart-item {
  display: flex; align-items: center; gap: 14px;
  background: var(--bg-card); border: 1px solid var(--border-color);
  border-radius: var(--radius); padding: 14px; margin-bottom: 10px;
  transition: all var(--transition);
}
.cart-item:hover { border-color: var(--border-hover); }
.cart-item-cover { width: 60px; height: 60px; border-radius: var(--radius-sm); object-fit: cover; flex-shrink: 0; }
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-type { margin-bottom: 4px; }
.cart-item-title { font-size: 0.9rem; font-weight: 600; display: block; }
.cart-item-artist { font-size: 0.8rem; color: var(--text-muted); }
.cart-item-price { font-size: 1rem; font-weight: 700; color: var(--accent-orange); white-space: nowrap; }
.cart-remove-btn { background: none; border: none; cursor: pointer; color: var(--text-muted); padding: 6px; border-radius: var(--radius-sm); transition: var(--transition); }
.cart-remove-btn:hover { color: var(--accent-red); background: rgba(230,57,70,0.1); }
.cart-remove-btn i, .cart-remove-btn svg { width: 16px; height: 16px; }
.cart-summary { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius); padding: 24px; position: sticky; top: 80px; }
.cart-summary h3 { margin-bottom: 16px; }
.coupon-form { display: flex; gap: 8px; margin-bottom: 10px; }
.coupon-form input { flex: 1; }
.coupon-result { padding: 8px 12px; border-radius: var(--radius-sm); font-size: 0.8rem; margin-bottom: 10px; }
.coupon-ok { background: rgba(45,198,83,0.1); border: 1px solid rgba(45,198,83,0.3); color: var(--accent-green); }
.coupon-error { background: rgba(230,57,70,0.1); border: 1px solid rgba(230,57,70,0.3); color: var(--accent-red); }
.summary-lines { margin-bottom: 20px; display: flex; flex-direction: column; gap: 10px; }
.summary-line { display: flex; justify-content: space-between; font-size: 0.875rem; color: var(--text-secondary); }
.total-line { border-top: 1px solid var(--border-color); padding-top: 10px; color: var(--text-primary); font-weight: 700; font-size: 1rem; }
.discount-amount { color: var(--accent-green); }
.payment-badges { display: flex; align-items: center; gap: 10px; margin-top: 14px; font-size: 0.75rem; color: var(--text-muted); justify-content: center; flex-wrap: wrap; }
.payment-badges i, .payment-badges svg { width: 14px; height: 14px; color: var(--accent-green); }

/* Checkout */
.checkout-summary { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius); padding: 24px; }
.checkout-summary h3 { margin-bottom: 16px; }
.checkout-item { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border-color); }
.checkout-item img { width: 50px; height: 50px; border-radius: var(--radius-sm); object-fit: cover; }
.checkout-item-info { flex: 1; }
.checkout-item-info strong { display: block; font-size: 0.875rem; }
.checkout-item-info span { font-size: 0.75rem; color: var(--text-muted); }
.checkout-item-price { font-weight: 700; color: var(--accent-orange); white-space: nowrap; }
.checkout-totals { padding-top: 12px; display: flex; flex-direction: column; gap: 8px; }
.checkout-totals div { display: flex; justify-content: space-between; font-size: 0.875rem; color: var(--text-secondary); }
.checkout-totals .total-row { border-top: 1px solid var(--border-color); padding-top: 10px; }
.text-green { color: var(--accent-green); }

.checkout-payment { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius); padding: 24px; }
.payment-tabs { display: flex; gap: 8px; margin-bottom: 24px; flex-wrap: wrap; }
.payment-tab { flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 16px; background: var(--bg-input); border: 1px solid var(--border-color); border-radius: var(--radius-sm); cursor: pointer; font-size: 0.8rem; font-weight: 500; color: var(--text-secondary); transition: all var(--transition); }
.payment-tab:hover { border-color: var(--border-hover); }
.payment-tab.active { background: rgba(255,107,53,0.1); border-color: var(--accent-orange); color: var(--accent-orange); }
.payment-tab i, .payment-tab svg { width: 16px; height: 16px; }
.coupon-row { display: flex; gap: 8px; margin-bottom: 12px; }
.coupon-row input { flex: 1; }
.stripe-field { background: var(--bg-input); border: 1px solid var(--border-color); border-radius: var(--radius-sm); padding: 10px 14px; }
.secure-note { font-size: 0.75rem; color: var(--text-muted); display: flex; align-items: center; gap: 6px; margin-top: 10px; justify-content: center; }
.secure-note i, .secure-note svg { width: 14px; height: 14px; color: var(--accent-green); }
.wallet-pay-info { display: flex; flex-direction: column; gap: 16px; }
.wallet-balance-display { display: flex; align-items: center; gap: 14px; background: var(--bg-input); border-radius: var(--radius-sm); padding: 16px; }
.wallet-balance-display i, .wallet-balance-display svg { width: 28px; height: 28px; color: var(--accent-orange); }
.wallet-balance-display strong { display: block; font-size: 0.875rem; color: var(--text-secondary); }
.wallet-balance-display span { font-size: 1.2rem; font-weight: 700; color: var(--accent-orange); }

/* ============================================
   SUCCESS PAGE
   ============================================ */
.success-page { padding: 80px 0; }
.success-card { max-width: 600px; margin: 0 auto; background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius-lg); padding: 48px; text-align: center; }
.success-icon { width: 80px; height: 80px; border-radius: 50%; background: rgba(45,198,83,0.15); border: 2px solid var(--accent-green); display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; }
.success-icon i, .success-icon svg { width: 36px; height: 36px; color: var(--accent-green); }
.success-card h1 { margin-bottom: 10px; }
.success-card > p { color: var(--text-secondary); margin-bottom: 28px; }
.success-items { text-align: left; margin-bottom: 28px; display: flex; flex-direction: column; gap: 12px; }
.success-item { background: var(--bg-input); border-radius: var(--radius-sm); padding: 14px; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.success-download { display: flex; align-items: center; gap: 10px; }
.success-download small { color: var(--text-muted); font-size: 0.75rem; }
.success-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ============================================
   DASHBOARD
   ============================================ */
.dashboard-page { padding: 32px 0 60px; }
.dashboard-layout { display: grid; grid-template-columns: var(--sidebar-width) 1fr; gap: 28px; align-items: start; }
.dashboard-sidebar { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius); overflow: hidden; position: sticky; top: 80px; }
.dash-nav { padding: 8px; display: flex; flex-direction: column; gap: 2px; }
.dash-nav-item { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--radius-sm); font-size: 0.875rem; color: var(--text-secondary); transition: all var(--transition); }
.dash-nav-item i, .dash-nav-item svg { width: 16px; height: 16px; flex-shrink: 0; }
.dash-nav-item:hover { background: var(--bg-card-hover); color: var(--text-primary); }
.dash-nav-item.active { background: rgba(255,107,53,0.15); color: var(--accent-orange); }
.dash-nav-divider { height: 1px; background: var(--border-color); margin: 6px 0; }
.dash-nav-upload { background: rgba(255,107,53,0.1); color: var(--accent-orange); font-weight: 600; margin-top: 4px; }
.dash-nav-upload:hover { background: rgba(255,107,53,0.2); }

.dashboard-welcome { display: flex; align-items: center; gap: 16px; margin-bottom: 28px; }
.welcome-avatar img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; border: 2px solid var(--accent-orange); }
.dashboard-welcome h1 { font-size: 1.5rem; margin-bottom: 4px; }
.dashboard-welcome p { color: var(--text-secondary); font-size: 0.875rem; }

.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 28px; }
.stat-card {
  background: var(--bg-card); border: 1px solid var(--border-color);
  border-radius: var(--radius); padding: 20px; display: flex; flex-direction: column; gap: 8px; position: relative; overflow: hidden; transition: var(--transition);
}
.stat-card:hover { transform: translateY(-2px); border-color: var(--border-hover); }
.stat-icon { width: 36px; height: 36px; border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; }
.stat-icon i, .stat-icon svg { width: 18px; height: 18px; }
.stat-primary .stat-icon { background: rgba(255,107,53,0.15); color: var(--accent-orange); }
.stat-blue .stat-icon { background: rgba(0,180,216,0.15); color: var(--accent-blue); }
.stat-green .stat-icon { background: rgba(45,198,83,0.15); color: var(--accent-green); }
.stat-purple .stat-icon { background: rgba(155,93,229,0.15); color: var(--accent-purple); }
.stat-orange .stat-icon { background: rgba(247,183,49,0.15); color: var(--accent-yellow); }
.stat-wallet .stat-icon { background: rgba(255,107,53,0.15); color: var(--accent-orange); }
.stat-value { font-size: 1.5rem; font-weight: 700; letter-spacing: -0.02em; }
.stat-label { font-size: 0.75rem; color: var(--text-muted); }
.stat-cta { position: absolute; top: 16px; right: 16px; font-size: 0.75rem; color: var(--accent-orange); font-weight: 500; }
.dashboard-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 28px; }
.dashboard-widget { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius); padding: 20px; }
.widget-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.widget-header h3 { font-size: 0.9rem; display: flex; align-items: center; gap: 8px; }
.widget-header h3 i, .widget-header h3 svg { width: 16px; height: 16px; color: var(--accent-orange); }
.widget-header a { font-size: 0.8rem; color: var(--accent-orange); }
.widget-track-row { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--border-color); }
.widget-track-row:last-child { border-bottom: none; }
.widget-track-cover { width: 38px; height: 38px; border-radius: var(--radius-sm); object-fit: cover; }
.widget-track-info { flex: 1; min-width: 0; }
.widget-track-info a { font-size: 0.8rem; font-weight: 500; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.widget-track-info span { font-size: 0.7rem; color: var(--text-muted); }
.empty-mini { text-align: center; padding: 20px; color: var(--text-muted); font-size: 0.875rem; }
.empty-mini a { margin-top: 10px; display: inline-flex; }
.widget-sale-row { display: flex; align-items: center; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--border-color); }
.widget-sale-row:last-child { border-bottom: none; }
.widget-sale-info strong { display: block; font-size: 0.8rem; }
.widget-sale-info span { font-size: 0.7rem; color: var(--text-muted); }
.sale-amount { color: var(--accent-green); font-weight: 600; font-size: 0.875rem; white-space: nowrap; }
.quick-actions { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.quick-action-btn { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 20px; background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius); transition: all var(--transition); text-align: center; }
.quick-action-btn:hover { border-color: var(--accent-orange); background: rgba(255,107,53,0.05); }
.quick-action-btn i, .quick-action-btn svg { width: 22px; height: 22px; color: var(--accent-orange); }
.quick-action-btn span { font-size: 0.8rem; color: var(--text-secondary); }

/* ============================================
   ADMIN PANEL
   ============================================ */
.admin-page { padding: 0; }
.admin-layout { display: grid; grid-template-columns: 240px 1fr; min-height: calc(100vh - var(--navbar-height) - var(--player-height)); }
.admin-sidebar { background: var(--bg-secondary); border-right: 1px solid var(--border-color); padding: 16px 8px; }
.admin-sidebar-header { display: flex; align-items: center; gap: 8px; padding: 12px 16px; margin-bottom: 8px; font-weight: 700; color: var(--accent-orange); border-bottom: 1px solid var(--border-color); }
.admin-sidebar-header i, .admin-sidebar-header svg { width: 18px; height: 18px; }
.admin-nav { display: flex; flex-direction: column; gap: 2px; }
.admin-nav a { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: var(--radius-sm); font-size: 0.85rem; color: var(--text-secondary); transition: all var(--transition); }
.admin-nav a:hover { background: var(--bg-card); color: var(--text-primary); }
.admin-nav a.active { background: rgba(255,107,53,0.15); color: var(--accent-orange); }
.admin-nav a i, .admin-nav a svg { width: 16px; height: 16px; flex-shrink: 0; }
.admin-nav-divider { height: 1px; background: var(--border-color); margin: 8px 0; }
.admin-badge { background: var(--accent-orange); color: white; font-size: 0.65rem; font-weight: 700; padding: 2px 6px; border-radius: 8px; margin-left: auto; }
.admin-main { padding: 28px; overflow: auto; }
.admin-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.admin-header h1 { display: flex; align-items: center; gap: 10px; font-size: 1.4rem; }
.admin-header h1 i, .admin-header h1 svg { color: var(--accent-orange); }
.admin-date { font-size: 0.8rem; color: var(--text-muted); }
.admin-stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 24px; }
.admin-stat-card { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius); padding: 20px; display: flex; align-items: center; gap: 14px; }
.asc-icon { width: 44px; height: 44px; border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.asc-icon i, .asc-icon svg { width: 22px; height: 22px; }
.asc-blue { background: rgba(0,180,216,0.15); color: var(--accent-blue); }
.asc-purple { background: rgba(155,93,229,0.15); color: var(--accent-purple); }
.asc-green { background: rgba(45,198,83,0.15); color: var(--accent-green); }
.asc-orange { background: rgba(255,107,53,0.15); color: var(--accent-orange); }
.asc-data strong { display: block; font-size: 1.4rem; font-weight: 700; }
.asc-data span { font-size: 0.75rem; color: var(--text-muted); }
.admin-widget { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius); padding: 20px; margin-bottom: 20px; }
.admin-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
.admin-table th { padding: 10px 12px; text-align: left; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-muted); border-bottom: 1px solid var(--border-color); font-weight: 600; }
.admin-table td { padding: 10px 12px; border-bottom: 1px solid var(--border-color); }
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover td { background: var(--bg-card-hover); }
.table-track-info { display: flex; align-items: center; gap: 10px; }
.table-track-info img { width: 36px; height: 36px; border-radius: 6px; object-fit: cover; }
.table-actions { display: flex; gap: 6px; }
.admin-user-row { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--border-color); }
.admin-user-row:last-child { border-bottom: none; }
.admin-user-avatar { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; }
.admin-user-row div { flex: 1; }
.admin-user-row strong { display: block; font-size: 0.8rem; }
.admin-user-row span { font-size: 0.75rem; color: var(--text-muted); }
.admin-filter-stats { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.filter-stat { padding: 6px 14px; border-radius: var(--radius-sm); font-size: 0.8rem; font-weight: 500; background: var(--bg-input); border: 1px solid var(--border-color); color: var(--text-secondary); transition: var(--transition); }
.filter-stat:hover, .filter-stat.active { background: rgba(255,107,53,0.15); border-color: var(--accent-orange); color: var(--accent-orange); }
.filter-green.active { background: rgba(45,198,83,0.1); border-color: var(--accent-green); color: var(--accent-green); }
.filter-orange.active { background: rgba(247,183,49,0.1); border-color: var(--accent-yellow); color: var(--accent-yellow); }
.filter-red.active { background: rgba(230,57,70,0.1); border-color: var(--accent-red); color: var(--accent-red); }
.admin-search-bar { display: flex; gap: 8px; margin-bottom: 16px; }
.admin-search-bar input { max-width: 300px; }

/* ============================================
   STATUS BADGES
   ============================================ */
.status-badge { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 10px; font-size: 0.72rem; font-weight: 600; }
.status-approved { background: rgba(45,198,83,0.15); color: var(--accent-green); border: 1px solid rgba(45,198,83,0.3); }
.status-pending  { background: rgba(247,183,49,0.15); color: var(--accent-yellow); border: 1px solid rgba(247,183,49,0.3); }
.status-rejected { background: rgba(230,57,70,0.15); color: var(--accent-red); border: 1px solid rgba(230,57,70,0.3); }
.status-completed{ background: rgba(45,198,83,0.15); color: var(--accent-green); border: 1px solid rgba(45,198,83,0.3); }
.status-draft    { background: rgba(152,152,184,0.15); color: var(--text-secondary); border: 1px solid var(--border-color); }
.badge { display: inline-block; padding: 2px 8px; border-radius: 8px; font-size: 0.7rem; font-weight: 600; }
.badge-track { background: rgba(0,180,216,0.15); color: var(--accent-blue); }
.badge-album { background: rgba(155,93,229,0.15); color: var(--accent-purple); }
.role-badge { display: inline-block; padding: 3px 8px; border-radius: 8px; font-size: 0.7rem; font-weight: 600; }
.role-admin  { background: rgba(230,57,70,0.15); color: var(--accent-red); }
.role-artist { background: rgba(255,107,53,0.15); color: var(--accent-orange); }
.role-user   { background: rgba(152,152,184,0.15); color: var(--text-secondary); }
.free-tag { background: rgba(45,198,83,0.15); color: var(--accent-green); padding: 2px 8px; border-radius: 8px; font-size: 0.75rem; }

/* ============================================
   AUTH PAGES
   ============================================ */
.auth-page { padding: 0; background: var(--bg-primary); min-height: 100vh; }
.auth-container { display: grid; grid-template-columns: 1fr 1fr; min-height: 100vh; }
.auth-visual {
  background: linear-gradient(135deg, #0d0d1a 0%, #160d1f 50%, #0d1a1f 100%);
  padding: 60px; display: flex; flex-direction: column; justify-content: center;
  position: relative; overflow: hidden;
}
.auth-orb {
  position: absolute; width: 400px; height: 400px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,107,53,0.3), transparent);
  top: -100px; left: -100px; filter: blur(60px);
  animation: float 8s ease-in-out infinite;
}
.auth-brand { position: relative; z-index: 1; margin-bottom: 48px; }
.auth-brand svg { margin-bottom: 16px; }
.auth-brand h2 { font-size: 2rem; margin-bottom: 8px; }
.auth-brand p { color: var(--text-secondary); }
.auth-features { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 16px; }
.auth-features div { display: flex; align-items: center; gap: 10px; font-size: 0.875rem; color: var(--text-secondary); background: rgba(255,255,255,0.05); padding: 12px 16px; border-radius: var(--radius-sm); border: 1px solid rgba(255,255,255,0.08); }
.auth-features span { font-size: 1.1rem; }
.auth-form-panel { background: var(--bg-secondary); display: flex; align-items: center; justify-content: center; padding: 40px; overflow-y: auto; }
.auth-form-wrap { width: 100%; max-width: 420px; }
.auth-back { color: var(--text-muted); font-size: 0.85rem; display: inline-flex; align-items: center; gap: 6px; margin-bottom: 32px; transition: color var(--transition); }
.auth-back:hover { color: var(--text-primary); }
.auth-form-wrap h1 { font-size: 1.8rem; margin-bottom: 6px; }
.auth-subtitle { color: var(--text-secondary); margin-bottom: 24px; font-size: 0.9rem; }
.auth-form { display: flex; flex-direction: column; gap: 4px; margin-bottom: 20px; }
.forgot-link { float: right; font-size: 0.75rem; color: var(--accent-orange); font-weight: 400; }
.auth-divider { text-align: center; position: relative; margin: 16px 0; color: var(--text-muted); font-size: 0.8rem; }
.auth-divider::before { content: ''; position: absolute; top: 50%; left: 0; right: 0; height: 1px; background: var(--border-color); }
.auth-divider span { background: var(--bg-secondary); padding: 0 12px; position: relative; }
.auth-switch { text-align: center; font-size: 0.875rem; color: var(--text-secondary); }
.auth-switch a { color: var(--accent-orange); font-weight: 600; }
.alert { padding: 12px 16px; border-radius: var(--radius-sm); font-size: 0.875rem; margin-bottom: 16px; }
.alert-error { background: rgba(230,57,70,0.1); border: 1px solid rgba(230,57,70,0.3); color: #ff7070; }
.alert-success { background: rgba(45,198,83,0.1); border: 1px solid rgba(45,198,83,0.3); color: #5fffaa; }
.account-type-selector { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 20px; }
.account-type { background: var(--bg-input); border: 2px solid var(--border-color); border-radius: var(--radius-sm); padding: 16px; cursor: pointer; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 6px; transition: all var(--transition); }
.account-type:hover { border-color: var(--border-hover); }
.account-type.active { border-color: var(--accent-orange); background: rgba(255,107,53,0.1); }
.account-type svg, .account-type i { color: var(--text-muted); }
.account-type.active svg, .account-type.active i { color: var(--accent-orange); }
.account-type strong { font-size: 0.875rem; }
.account-type span { font-size: 0.75rem; color: var(--text-muted); }
.demo-accounts { margin-top: 20px; text-align: center; }
.demo-accounts p { font-size: 0.75rem; color: var(--text-muted); margin-bottom: 8px; }
.demo-btn { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius-sm); padding: 6px 14px; font-size: 0.75rem; color: var(--text-secondary); cursor: pointer; margin: 0 4px; transition: var(--transition); }
.demo-btn:hover { border-color: var(--accent-orange); color: var(--accent-orange); }

/* ============================================
   WALLET PAGE
   ============================================ */
.wallet-page { padding: 40px 0 60px; }
.wallet-layout { display: grid; grid-template-columns: 1fr 360px; gap: 28px; }
.wallet-balance-card { background: linear-gradient(135deg, #1a1a28, #20202f); border: 1px solid var(--border-color); border-radius: var(--radius-lg); padding: 32px; margin-bottom: 24px; position: relative; overflow: hidden; }
.wallet-balance-card::before { content: ''; position: absolute; top: -50px; right: -50px; width: 200px; height: 200px; border-radius: 50%; background: radial-gradient(circle, rgba(255,107,53,0.2), transparent); }
.wallet-label { font-size: 0.875rem; color: var(--text-muted); margin-bottom: 8px; }
.wallet-amount { font-size: 3rem; font-weight: 700; letter-spacing: -0.03em; color: var(--accent-orange); margin-bottom: 20px; }
.wallet-stats { display: flex; gap: 24px; }
.wallet-stat strong { display: block; font-size: 1rem; font-weight: 600; }
.wallet-stat span { font-size: 0.75rem; color: var(--text-muted); }

/* ============================================
   MODAL
   ============================================ */
.modal { position: fixed; inset: 0; z-index: 10000; display: flex; align-items: center; justify-content: center; }
.modal-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.8); }
.modal-box { position: relative; background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius-lg); padding: 28px; width: 90%; max-width: 480px; display: flex; flex-direction: column; gap: 14px; }
.modal-box h3 { margin-bottom: 4px; }
.embed-code { font-family: var(--font-mono); font-size: 0.8rem; background: var(--bg-input); border: 1px solid var(--border-color); padding: 12px; border-radius: var(--radius-sm); resize: none; height: 80px; color: var(--text-secondary); }

/* ============================================
   EMPTY STATE
   ============================================ */
.empty-state { text-align: center; padding: 80px 20px; }
.empty-icon { width: 80px; height: 80px; border-radius: 50%; background: var(--bg-card); border: 1px solid var(--border-color); display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; }
.empty-icon i, .empty-icon svg { width: 36px; height: 36px; color: var(--text-muted); }
.empty-state h2 { margin-bottom: 10px; }
.empty-state p { color: var(--text-secondary); margin-bottom: 24px; }

/* ============================================
   FOOTER
   ============================================ */
.site-footer { background: var(--bg-secondary); border-top: 1px solid var(--border-color); padding: 48px 0 0; margin-top: 40px; }
.footer-inner { max-width: 1280px; margin: 0 auto; padding: 0 24px; display: grid; grid-template-columns: 1fr 2fr; gap: 48px; margin-bottom: 40px; }
.footer-brand { display: flex; flex-direction: column; gap: 8px; }
.footer-brand span { font-size: 1.1rem; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.footer-brand p { font-size: 0.8rem; color: var(--text-muted); line-height: 1.6; max-width: 220px; }
.footer-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.footer-links h4 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-muted); margin-bottom: 12px; }
.footer-links a { display: block; font-size: 0.875rem; color: var(--text-secondary); margin-bottom: 8px; transition: color var(--transition); }
.footer-links a:hover { color: var(--accent-orange); }
.footer-bottom { border-top: 1px solid var(--border-color); padding: 16px 24px; max-width: 1280px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; }
.footer-bottom p { font-size: 0.8rem; color: var(--text-muted); }
.footer-social { display: flex; gap: 10px; }
.footer-social a { width: 32px; height: 32px; border-radius: 50%; background: var(--bg-card); border: 1px solid var(--border-color); display: flex; align-items: center; justify-content: center; color: var(--text-muted); transition: all var(--transition); }
.footer-social a:hover { border-color: var(--accent-orange); color: var(--accent-orange); }
.footer-social a i, .footer-social a svg { width: 14px; height: 14px; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .track-page-layout, .checkout-layout, .cart-layout { grid-template-columns: 1fr; }
  .track-hero { grid-template-columns: 1fr; }
  .dashboard-layout { grid-template-columns: 1fr; }
  .dashboard-sidebar { position: static; }
  .admin-layout { grid-template-columns: 1fr; }
  .admin-sidebar { display: none; }
  .admin-stats-grid { grid-template-columns: 1fr 1fr; }
  .cta-box { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .navbar-links, .navbar-search { display: none; }
  .mobile-menu-btn { display: flex; }
  .upload-layout { grid-template-columns: 1fr; }
  .auth-container { grid-template-columns: 1fr; }
  .auth-visual { display: none; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .quick-actions { grid-template-columns: 1fr 1fr; }
  .dashboard-grid-2 { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .global-player { grid-template-columns: 1fr; grid-template-rows: auto auto; height: auto; padding: 10px 16px; gap: 10px; }
  .player-right { display: none; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-links { grid-template-columns: 1fr 1fr; }
  .admin-stats-grid { grid-template-columns: 1fr 1fr; }
  .genres-grid { grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); }
  .tracks-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
}
@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr; }
  .quick-actions { grid-template-columns: 1fr 1fr; }
  .admin-stats-grid { grid-template-columns: 1fr; }
  h1 { font-size: 1.6rem; }
}

/* ============================================
   TOAST NOTIFICATION
   ============================================ */
.toast-container { position: fixed; bottom: calc(var(--player-height) + 16px); right: 20px; z-index: 9999; display: flex; flex-direction: column; gap: 8px; pointer-events: none; }
.toast { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius-sm); padding: 12px 16px; font-size: 0.875rem; display: flex; align-items: center; gap: 8px; box-shadow: var(--shadow-md); animation: toastIn 0.3s ease; min-width: 200px; }
.toast-success { border-color: var(--accent-green); color: var(--accent-green); }
.toast-error { border-color: var(--accent-red); color: var(--accent-red); }
.toast-info { border-color: var(--accent-blue); color: var(--accent-blue); }
@keyframes toastIn { from { opacity:0; transform: translateX(30px); } to { opacity:1; transform: translateX(0); } }
@keyframes toastOut { from { opacity:1; transform: translateX(0); } to { opacity:0; transform: translateX(30px); } }

/* Settings admin */
.settings-section { background: var(--bg-secondary); border: 1px solid var(--border-color); border-radius: var(--radius); padding: 24px; margin-bottom: 20px; }
.settings-section h3 { display: flex; align-items: center; gap: 8px; margin-bottom: 20px; color: var(--accent-orange); font-size: 1rem; }
.settings-section h3 i, .settings-section h3 svg { width: 18px; height: 18px; }
.admin-settings-form { max-width: 900px; }

/* Library Grid */
.library-grid { display: flex; flex-direction: column; gap: 10px; }
.library-item { display: flex; align-items: center; gap: 14px; background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius); padding: 14px; }
.library-cover { width: 56px; height: 56px; border-radius: var(--radius-sm); object-fit: cover; flex-shrink: 0; }
.library-info { flex: 1; }
.library-info strong { display: block; font-size: .875rem; }
.library-info span { font-size: .75rem; color: var(--text-muted); }
.library-info small { font-size: .7rem; color: var(--text-muted); }
.library-actions { flex-shrink: 0; }

/* ============================================
   LANGUAGE SWITCHER
   ============================================ */
.lang-switcher { position: relative; }
.lang-btn {
  display: flex; align-items: center; gap: 5px;
  background: var(--bg-card); border: 1px solid var(--border-color);
  border-radius: var(--radius-sm); padding: 6px 10px;
  cursor: pointer; color: var(--text-secondary); font-size: .8rem;
  transition: var(--transition);
}
.lang-btn:hover { border-color: var(--border-hover); color: var(--text-primary); }
.lang-btn i { width: 12px; height: 12px; }
.lang-flag { font-size: .95rem; line-height: 1; }
.lang-code { font-weight: 600; font-size: .75rem; }
.lang-menu {
  position: absolute; top: calc(100% + 6px); right: 0;
  background: var(--bg-card); border: 1px solid var(--border-color);
  border-radius: var(--radius-sm); overflow: hidden;
  min-width: 130px; box-shadow: var(--shadow-md);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: all .18s ease; z-index: 200;
}
.lang-switcher.open .lang-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.lang-option {
  display: flex; align-items: center; gap: 8px;
  padding: 9px 14px; font-size: .82rem; color: var(--text-secondary);
  transition: var(--transition);
}
.lang-option:hover { background: var(--bg-card-hover); color: var(--text-primary); }
.lang-option.active { color: var(--accent-orange); font-weight: 600; background: rgba(255,107,53,.06); }
