/* Ported from Envy Central's theme.css -- same tokens/components, primary
   color swapped from blue to purple (Firman's ask 2026-09-12). Variable
   names kept identical (--blue/--blue-soft/--blue-deep) even though they
   now hold purple values, so every future ported component/page needs
   zero find-replace of variable NAMES, only values here ever change. */
:root {
  --bg-0: #070a14;
  --bg-1: #0c1220;
  --panel: rgba(28, 40, 64, 0.55);
  --panel-border: rgba(167, 139, 250, 0.16);
  --blue: #8b5cf6;
  --blue-soft: #c4b5fd;
  --blue-deep: #6d28d9;
  --accent-2: #22d3ee;
  --text: #f2f5fb;
  --dim: #8b98b8;
  --danger: #f87171;
  --amber: #fbbf24;
  --success: #34d399;
  --font-head: "Space Grotesk", "Segoe UI", sans-serif;
  --font-body: "Inter", "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background:
    radial-gradient(1100px 700px at 15% -10%, rgba(139,92,246,0.16), transparent 60%),
    radial-gradient(900px 600px at 100% 0%, rgba(34,211,238,0.10), transparent 55%),
    var(--bg-0);
  color: var(--text);
  font-family: var(--font-body);
  min-height: 100vh;
}
a { color: inherit; }

.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark {
  width: 30px; height: 30px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--blue), var(--accent-2));
  box-shadow: 0 0 16px rgba(139,92,246,0.5);
  flex-shrink: 0;
}
.brand-word { font-family: var(--font-head); font-weight: 700; font-size: 16px; letter-spacing: 0.04em; }
.brand-word span { color: var(--blue-soft); }

.panel {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 16px;
}

.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field label { font-size: 12.5px; color: var(--dim); font-weight: 600; }
.field input {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--panel-border);
  border-radius: 10px;
  padding: 11px 13px;
  color: var(--text);
  font-size: 14px;
  font-family: var(--font-body);
  outline: none;
}
.field input:focus { border-color: var(--blue); }

/* Shared select/textarea styling -- unlike Envy Central (where each page
   defined its own local .themed), this lives in the shared theme file
   once since Crossfaded's pages increasingly need it. */
select.themed, textarea.themed {
  background: rgba(255,255,255,0.04); border: 1px solid var(--panel-border); border-radius: 10px;
  padding: 11px 13px; color: var(--text); font-size: 14px; font-family: var(--font-body); width: 100%;
}

.btn-solid {
  background: linear-gradient(135deg, var(--blue), var(--blue-deep));
  color: #fff;
  border: none;
  padding: 11px 16px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  font-family: var(--font-body);
  cursor: pointer;
  width: 100%;
}
.btn-solid:disabled { opacity: 0.6; cursor: default; }
.btn-solid:hover:not(:disabled) { filter: brightness(1.08); }

.btn-ghost-sm { background: transparent; border: 1px solid var(--panel-border); color: var(--dim); padding: 9px 14px; border-radius: 9px; font-size: 13px; cursor: pointer; font-family: var(--font-body); }

.error-text { color: var(--danger); font-size: 12.5px; min-height: 16px; margin-top: -4px; margin-bottom: 12px; }

/* Mobile-first baseline (Firman's ask 2026-09-12: PWA, installable,
   optimised for mobile since the DJ side is web-only) -- a comfortable
   tap-target size and no horizontal scroll by default. Desktop layouts
   opt UP via min-width queries in each page's own <style>, not the other
   way around. */
input, button, select, textarea { font-size: 16px; } /* iOS Safari zooms in on focus below 16px */
