/* ============================================================
   SOUND VAULT — style.css
   Aesthetic: Editorial Dark — monospace accents, tight grid,
              high-contrast type, no decorative clutter
   Fonts: DM Mono (code/numbers) + DM Sans (UI) + Instrument Serif (hero)
   Palette: Near-black bg, off-white text, electric lime accent
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=DM+Mono:ital,wght@0,300;0,400;0,500;1,400&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,400&family=Instrument+Serif:ital@0;1&display=swap');

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }

/* ── VARIABLES ── */
:root {
  --bg:        #0c0c0c;
  --bg2:       #111111;
  --surface:   #161616;
  --card:      #1a1a1a;
  --card-hi:   #202020;
  --border:    #2a2a2a;
  --border-hi: #3d3d3d;

  --accent:    #c8f135;
  --accent-dim:#a8cc20;
  --accent-glow: rgba(200,241,53,0.08);

  --red:       #ff4444;
  --amber:     #f5a623;
  --blue:      #4da6ff;

  --text:      #efefef;
  --text-mid:  #888888;
  --text-muted:#444444;

  --font-head: 'Instrument Serif', serif;
  --font-body: 'DM Sans', sans-serif;
  --font-mono: 'DM Mono', monospace;

  --radius:    6px;
  --radius-lg: 10px;
  --radius-xl: 14px;
  --shadow:    0 2px 16px rgba(0,0,0,0.6);
  --transition: 0.15s ease;
}

/* ── BASE ── */
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.6;
  overflow-x: hidden;
}

/* Subtle scanline texture */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(255,255,255,0.008) 2px,
    rgba(255,255,255,0.008) 4px
  );
  pointer-events: none;
  z-index: 0;
}

body > * { position: relative; z-index: 1; }

/* ── LAYOUT ── */
.wrap {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 32px;
}
.wrap-sm { max-width: 560px; margin: 0 auto; padding: 0 24px; }

/* ── TYPOGRAPHY ── */
h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 400;
  line-height: 1.1;
}
h1 { font-size: clamp(2.4rem, 5.5vw, 4rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
h3 { font-size: 1.2rem; }
h4 { font-size: 0.9rem; font-family: var(--font-body); font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }

.text-accent { color: var(--accent); }
.text-red    { color: var(--red); }
.text-muted  { color: var(--text-muted); font-size: 0.875rem; }
.mono        { font-family: var(--font-mono); }

/* ── HEADER ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(12,12,12,0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 0;
  height: 56px;
}
.logo-mark {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
  margin-right: 32px;
}
.logo-icon {
  width: 28px;
  height: 28px;
  background: var(--accent);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
/* SVG waveform icon inside logo */
.logo-icon svg { display: block; }
.logo-text {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text);
  letter-spacing: 0.01em;
}
.logo-text span { color: var(--accent); }

nav.main-nav {
  display: flex;
  align-items: center;
  gap: 0;
}
nav.main-nav a {
  display: flex;
  align-items: center;
  height: 56px;
  padding: 0 16px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-mid);
  transition: color var(--transition);
  border-right: 1px solid transparent;
}
nav.main-nav a:first-child { border-left: 1px solid var(--border); }
nav.main-nav a { border-right: 1px solid var(--border); }
nav.main-nav a:hover { color: var(--text); background: rgba(255,255,255,0.02); }
nav.main-nav a.active { color: var(--accent); }

.nav-cta {
  background: var(--accent) !important;
  color: var(--bg) !important;
  font-weight: 600 !important;
  border-color: var(--accent) !important;
}
.nav-cta:hover { background: var(--accent-dim) !important; color: var(--bg) !important; }

#userMenuEl {
  display: flex;
  align-items: center;
  gap: 0;
  margin-left: auto;
}
.avatar-chip {
  display: flex;
  align-items: center;
  gap: 9px;
  height: 56px;
  padding: 0 16px;
  border-left: 1px solid var(--border);
  cursor: pointer;
  transition: background var(--transition);
  font-size: 0.875rem;
  font-weight: 500;
}
.avatar-chip:hover { background: rgba(255,255,255,0.03); }
.avatar-circle {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.75rem;
  color: var(--bg);
  flex-shrink: 0;
}
.avatar-name { color: var(--text); }

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 20px;
  border-radius: var(--radius);
  font-weight: 500;
  font-size: 0.875rem;
  font-family: var(--font-body);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
  text-decoration: none;
}
.btn-primary {
  background: var(--accent);
  color: var(--bg);
  border-color: var(--accent);
}
.btn-primary:hover {
  background: var(--accent-dim);
  border-color: var(--accent-dim);
}
.btn-secondary {
  background: transparent;
  color: var(--text);
  border-color: var(--border-hi);
}
.btn-secondary:hover {
  border-color: var(--text-mid);
  background: rgba(255,255,255,0.03);
}
.btn-ghost {
  background: transparent;
  color: var(--text-mid);
  border-color: var(--border);
  padding: 7px 14px;
  font-size: 0.8rem;
}
.btn-ghost:hover { border-color: var(--border-hi); color: var(--text); }
.btn-danger {
  background: transparent;
  color: var(--red);
  border-color: rgba(255,68,68,0.3);
}
.btn-danger:hover { background: rgba(255,68,68,0.06); }
.btn-sm { padding: 5px 12px; font-size: 0.78rem; }
.btn-lg { padding: 12px 28px; font-size: 0.95rem; }
.btn:disabled { opacity: 0.35; cursor: not-allowed; transform: none !important; pointer-events: none; }

/* ── INPUTS ── */
.input {
  width: 100%;
  padding: 10px 13px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 0.875rem;
  font-family: var(--font-body);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}
.input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(200,241,53,0.12);
}
.input::placeholder { color: var(--text-muted); }
.input-lg { padding: 13px 16px; font-size: 0.95rem; }

select.input {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23555' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 11px center;
  padding-right: 32px;
  -webkit-appearance: none;
  appearance: none;
}
textarea.input { resize: vertical; min-height: 88px; }

.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 6px;
  font-family: var(--font-mono);
}
.field-hint { font-size: 0.775rem; color: var(--text-muted); margin-top: 5px; line-height: 1.5; }
.field-error { font-size: 0.775rem; color: var(--red); margin-top: 5px; }

/* ── PANELS / CARDS ── */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  transition: border-color var(--transition);
}
.card:hover { border-color: var(--border-hi); }

.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
}

/* ── BADGES ── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 3px;
  font-size: 0.68rem;
  font-family: var(--font-mono);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1px solid transparent;
}
.badge-ok     { background: rgba(200,241,53,0.08); color: var(--accent); border-color: rgba(200,241,53,0.2); }
.badge-broken { background: rgba(255,68,68,0.08);  color: var(--red);    border-color: rgba(255,68,68,0.2); }
.badge-forced { background: rgba(77,166,255,0.08); color: var(--blue);   border-color: rgba(77,166,255,0.2); }
.badge-new    { background: rgba(245,166,35,0.08); color: var(--amber);  border-color: rgba(245,166,35,0.2); }
.badge-backup { background: rgba(255,255,255,0.04); color: var(--text-mid); border-color: var(--border); }

/* ── TAGS ── */
.tag-chip {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 3px;
  font-size: 0.72rem;
  font-family: var(--font-mono);
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  color: var(--text-mid);
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
  user-select: none;
}
.tag-chip:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-glow); }
.tag-chip.active { background: var(--accent-glow); border-color: rgba(200,241,53,0.3); color: var(--accent); }

/* ── HERO ── */
.hero {
  border-bottom: 1px solid var(--border);
  padding: 64px 0 48px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 600px; height: 100%;
  background: radial-gradient(ellipse at 80% 50%, rgba(200,241,53,0.04) 0%, transparent 60%);
  pointer-events: none;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
  padding: 5px 12px;
  border: 1px solid rgba(200,241,53,0.2);
  border-radius: 3px;
  background: rgba(200,241,53,0.04);
}
.hero-eyebrow::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse-dot 2s ease infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}
.hero h1 { margin-bottom: 16px; }
.hero h1 em { font-style: italic; color: var(--accent); }
.hero-sub {
  font-size: 1rem;
  color: var(--text-mid);
  max-width: 520px;
  margin-bottom: 36px;
  line-height: 1.65;
}

/* Search bar */
.search-bar {
  display: flex;
  gap: 0;
  max-width: 640px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.search-bar:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(200,241,53,0.1);
}
.search-bar input {
  flex: 1;
  background: transparent;
  border: none;
  padding: 13px 16px;
  font-size: 0.9rem;
  color: var(--text);
  outline: none;
}
.search-bar input::placeholder { color: var(--text-muted); }
.search-bar button {
  padding: 0 22px;
  background: var(--accent);
  border: none;
  color: var(--bg);
  font-size: 0.875rem;
  font-weight: 600;
  font-family: var(--font-body);
  cursor: pointer;
  border-left: 1px solid var(--accent);
  transition: background var(--transition);
  white-space: nowrap;
}
.search-bar button:hover { background: var(--accent-dim); }

/* Hero category pills */
.hero-cats {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 24px;
}
.hero-cat-btn {
  padding: 5px 14px;
  border-radius: 3px;
  font-size: 0.8rem;
  font-family: var(--font-mono);
  font-weight: 400;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-mid);
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}
.hero-cat-btn:hover { border-color: var(--border-hi); color: var(--text); }
.hero-cat-btn.active { background: var(--accent); border-color: var(--accent); color: var(--bg); font-weight: 600; }

/* ── STAT STRIP ── */
.stat-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 32px;
}
.stat-item {
  padding: 20px 24px;
  border-right: 1px solid var(--border);
}
.stat-item:last-child { border-right: none; }
.stat-val {
  font-family: var(--font-mono);
  font-size: 1.6rem;
  font-weight: 500;
  color: var(--text);
  line-height: 1;
  margin-bottom: 6px;
}
.stat-lbl {
  font-size: 0.72rem;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

/* ── SIDEBAR ── */
.sidebar-section {
  margin-bottom: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.sidebar-title {
  display: flex;
  align-items: center;
  padding: 11px 14px;
  font-size: 0.68rem;
  font-family: var(--font-mono);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.cat-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px 14px;
  font-size: 0.85rem;
  color: var(--text-mid);
  transition: all var(--transition);
  border-bottom: 1px solid var(--border);
  background: var(--card);
}
.cat-link:last-child { border-bottom: none; }
.cat-link:hover { color: var(--text); background: var(--card-hi); }
.cat-link.active { color: var(--accent); background: rgba(200,241,53,0.04); }
.cat-link .cat-count {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* ── SOUND LIST ── */
.sound-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: center;
  padding: 16px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--card);
  margin-bottom: 8px;
  transition: border-color var(--transition), background var(--transition);
}
.sound-item:hover { border-color: var(--border-hi); background: var(--card-hi); }

.sound-title {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  display: block;
  margin-bottom: 4px;
  transition: color var(--transition);
}
.sound-title:hover { color: var(--accent); }

.sound-sub {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}
.sound-sub a { color: var(--text-muted); transition: color var(--transition); }
.sound-sub a:hover { color: var(--accent); }
.sound-sub .dot { opacity: 0.25; }

.sound-tags { display: flex; gap: 5px; flex-wrap: wrap; margin-top: 6px; }

.sound-meta { min-width: 0; }

.sound-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  flex-wrap: wrap;
  justify-content: flex-end;
}

/* ── AUDIO PLAYER (inline) ── */
.player-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 6px 10px;
  min-width: 240px;
}
.player-wrap audio { display: none; }

.player-btn {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--accent);
  border: none;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: background var(--transition);
  color: var(--bg);
  font-size: 10px;
}
.player-btn:hover { background: var(--accent-dim); }

.player-progress {
  flex: 1;
  height: 3px;
  background: var(--border);
  border-radius: 2px;
  cursor: pointer;
  position: relative;
  overflow: visible;
}
.player-progress-bar {
  height: 100%;
  background: var(--accent);
  border-radius: 2px;
  transition: width 0.1s linear;
  pointer-events: none;
}
.player-time {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-muted);
  white-space: nowrap;
  flex-shrink: 0;
}

/* ── SECTION TITLE ── */
.section-title {
  font-size: 0.68rem;
  font-family: var(--font-mono);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 14px;
}

/* ── PAGER ── */
.pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  border-top: 1px solid var(--border);
  margin-top: 8px;
}
.pager-info {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
}
.pager-btns { display: flex; gap: 6px; }

/* ── AUTH PAGES ── */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.auth-card {
  width: 100%;
  max-width: 420px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 40px;
}
.auth-logo { text-align: center; margin-bottom: 28px; }
.auth-title {
  font-family: var(--font-head);
  font-size: 1.7rem;
  font-weight: 400;
  text-align: center;
  margin-bottom: 6px;
}
.auth-sub { text-align: center; color: var(--text-muted); font-size: 0.85rem; margin-bottom: 28px; }
.auth-divider {
  display: flex; align-items: center; gap: 12px;
  margin: 20px 0; font-size: 0.75rem; color: var(--text-muted);
  font-family: var(--font-mono);
}
.auth-divider::before, .auth-divider::after {
  content: ''; flex: 1; height: 1px; background: var(--border);
}
.auth-footer { text-align: center; margin-top: 20px; font-size: 0.85rem; color: var(--text-muted); }
.auth-footer a { color: var(--accent); }

/* ── UPLOAD PAGE ── */
.upload-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 24px;
  align-items: start;
}
.preview-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 20px;
  position: sticky;
  top: 72px;
}
.preview-idle {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 10px; padding: 40px 20px;
  border: 1px dashed var(--border); border-radius: var(--radius-lg);
  text-align: center; color: var(--text-muted);
}
.preview-idle-icon {
  width: 40px; height: 40px;
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.preview-idle-icon svg { opacity: 0.3; }

/* ── PROFILE PAGE ── */
.profile-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 40px 0;
}
.profile-info { display: flex; align-items: center; gap: 20px; }
.profile-avatar {
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: 1.4rem; font-weight: 500;
  color: var(--bg); flex-shrink: 0;
}
.profile-details h2 { font-family: var(--font-head); font-size: 1.6rem; margin-bottom: 4px; }

/* ── TOAST ── */
.toast-wrap {
  position: fixed; bottom: 20px; right: 20px;
  z-index: 9999; display: flex; flex-direction: column; gap: 6px; pointer-events: none;
}
.toast {
  padding: 11px 16px;
  background: var(--card);
  border: 1px solid var(--border-hi);
  border-radius: var(--radius);
  font-size: 0.82rem; font-family: var(--font-mono);
  display: flex; align-items: center; gap: 10px;
  animation: slideInRight 0.2s ease, fadeOut 0.3s ease 2.7s forwards;
  pointer-events: all;
  min-width: 180px; max-width: 280px;
}
.toast.success { border-color: rgba(200,241,53,0.3); color: var(--accent); }
.toast.error   { border-color: rgba(255,68,68,0.3); color: var(--red); }
@keyframes slideInRight { from { transform: translateX(100%); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes fadeOut { to { opacity: 0; transform: translateX(16px); } }

/* ── MODAL ── */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.75);
  backdrop-filter: blur(4px); z-index: 1000;
  display: flex; align-items: center; justify-content: center; padding: 24px;
  animation: fadeInOverlay 0.15s ease;
}
@keyframes fadeInOverlay { from { opacity: 0; } }
.modal-card {
  background: var(--surface); border: 1px solid var(--border-hi);
  border-radius: var(--radius-xl); padding: 28px;
  width: 100%; max-width: 520px; max-height: 90vh; overflow-y: auto;
  animation: slideUpModal 0.18s ease;
}
@keyframes slideUpModal { from { transform: translateY(16px); opacity: 0; } }
.modal-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.modal-close {
  width: 30px; height: 30px;
  background: transparent; border: 1px solid var(--border);
  border-radius: var(--radius); cursor: pointer; font-size: 12px;
  color: var(--text-muted); display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); transition: all var(--transition);
}
.modal-close:hover { border-color: var(--red); color: var(--red); }

/* ── FILTER BAR ── */
.filter-bar {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  padding: 10px 14px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); margin-bottom: 14px;
}
.filter-bar .filter-group { display: flex; align-items: center; gap: 6px; }
.filter-lbl {
  font-size: 0.68rem; font-weight: 500; font-family: var(--font-mono);
  color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.08em; white-space: nowrap;
}

/* ── LOADING / SKELETON ── */
.skeleton {
  background: linear-gradient(90deg, var(--surface) 25%, var(--card-hi) 50%, var(--surface) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
  border-radius: 4px;
}
@keyframes shimmer { to { background-position: -200% 0; } }
.loading-spinner {
  width: 16px; height: 16px;
  border: 1.5px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.65s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── EMPTY STATE ── */
.empty-state {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 10px; padding: 60px 20px; text-align: center;
}
.empty-icon {
  width: 48px; height: 48px; border: 1px solid var(--border);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  margin-bottom: 4px;
}
.empty-title { font-family: var(--font-head); font-size: 1.2rem; color: var(--text-mid); }
.empty-sub { font-family: var(--font-mono); font-size: 0.75rem; color: var(--text-muted); }

/* ── FOOTER ── */
.site-footer {
  margin-top: 80px;
  border-top: 1px solid var(--border);
  padding: 40px 0 28px;
  background: var(--bg2);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 32px;
}
.footer-col h4 {
  font-size: 0.68rem; font-weight: 500; font-family: var(--font-mono);
  text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--text-muted); margin-bottom: 14px;
}
.footer-links { display: flex; flex-direction: column; gap: 9px; }
.footer-links a { font-size: 0.85rem; color: var(--text-muted); transition: color var(--transition); }
.footer-links a:hover { color: var(--text); }
.footer-bottom {
  padding-top: 20px; border-top: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  font-family: var(--font-mono); font-size: 0.72rem; color: var(--text-muted);
}

/* ── TABS ── */
.tabs { display: flex; gap: 0; border-bottom: 1px solid var(--border); margin-bottom: 20px; }
.tab {
  padding: 10px 18px; font-size: 0.85rem; font-weight: 500;
  color: var(--text-muted); border-bottom: 2px solid transparent;
  cursor: pointer; transition: all var(--transition); margin-bottom: -1px;
}
.tab:hover { color: var(--text); }
.tab.active { color: var(--accent); border-bottom-color: var(--accent); }

/* ── UTILITY ── */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }
.mt-2 { margin-top: 8px; }
.mt-4 { margin-top: 16px; }
.mb-4 { margin-bottom: 16px; }
.mb-6 { margin-bottom: 24px; }
.w-full { width: 100%; }
.divider { height: 1px; background: var(--border); margin: 20px 0; }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .upload-grid { grid-template-columns: 1fr; }
  .preview-panel { position: static; }
  .stat-strip { grid-template-columns: repeat(2,1fr); }
  .stat-item:nth-child(2) { border-right: none; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .header-inner { gap: 0; }
  nav.main-nav a:not(.nav-cta) { display: none; }
  .hero { padding: 40px 0 32px; }
  .stat-strip { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .sound-item { grid-template-columns: 1fr; }
  .sound-actions { justify-content: flex-start; }
}
