/* ============================================================
   SoundHire — design tokens
   Palette: deep stage-black background, warm spotlight amber
   accent, cool console-cyan for status/secondary info.
   Type: Space Grotesk (display) / Inter (body) / JetBrains Mono (specs, prices, refs)
   Signature: animated EQ-bar mark, "channel strip" item cards
   ============================================================ */
:root {
  --bg: #0c0f14;
  --panel: #141922;
  --panel-raised: #1a2029;
  --border: #262e3b;
  --border-soft: #1e2530;
  --text: #f2f3f5;
  --muted: #9aa3b2;
  --muted-dim: #6b7381;
  --amber: #e8a33d;
  --amber-dim: #7a5a26;
  --cyan: #4fd1c5;
  --red: #e1554f;
  --radius: 10px;
  --shadow: 0 10px 30px rgba(0,0,0,0.35);
  --font-display: 'Space Grotesk', 'Segoe UI', sans-serif;
  --font-body: 'Inter', 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'Courier New', monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; margin: 0 0 .5em; letter-spacing: -0.01em; }
.mono { font-family: var(--font-mono); }
.muted { color: var(--muted); }

:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

/* ---------- Brand mark: EQ bars ---------- */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text);
}
.brand-mark {
  display: inline-flex;
  align-items: flex-end;
  gap: 3px;
  height: 20px;
}
.brand-mark.small { height: 14px; }
.brand-mark .bar {
  width: 4px;
  background: var(--amber);
  border-radius: 2px;
  animation: eq 1.1s ease-in-out infinite;
}
.brand-mark.small .bar { width: 3px; }
.brand-logo {
  height: 28px;
  width: auto;
  object-fit: contain;
}
.brand-logo.small { height: 18px; }
.brand-mark .b1 { height: 40%; animation-delay: -0.9s; }
.brand-mark .b2 { height: 80%; animation-delay: -0.6s; }
.brand-mark .b3 { height: 100%; animation-delay: -0.3s; }
.brand-mark .b4 { height: 65%; animation-delay: -0.15s; }
.brand-mark .b5 { height: 45%; animation-delay: 0s; }
@keyframes eq {
  0%, 100% { transform: scaleY(0.4); }
  50% { transform: scaleY(1); }
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(12,15,20,0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border-soft);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 66px; }
.site-nav { display: flex; gap: 28px; }
.site-nav a { color: var(--muted); font-size: 0.92rem; font-weight: 500; transition: color .15s; }
.site-nav a:hover { color: var(--amber); }

/* ---------- Hero ---------- */
.hero {
  padding: 84px 0 64px;
  border-bottom: 1px solid var(--border-soft);
  position: relative;
  overflow: hidden;
}
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; }
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--cyan);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: inline-flex; align-items: center; gap: 8px;
  margin-bottom: 18px;
}
.eyebrow::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 3px rgba(79,209,197,0.15); }
.hero h1 { font-size: clamp(2.1rem, 4.2vw, 3.4rem); line-height: 1.05; margin-bottom: 20px; }
.hero h1 .accent { color: var(--amber); }
.hero p.lead { color: var(--muted); font-size: 1.08rem; max-width: 46ch; margin-bottom: 32px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }

.waveform {
  height: 220px;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 24px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.waveform .col { flex: 1; display: flex; flex-direction: column-reverse; gap: 3px; height: 100%; }
.waveform .cell { width: 100%; border-radius: 1px; background: var(--border); }
.waveform .cell.lit { background: var(--amber); }
.waveform .cell.lit-cyan { background: var(--cyan); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 24px;
  border-radius: 7px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .12s ease, background .15s ease, border-color .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--amber); color: #1a1305; }
.btn-primary:hover { background: #f0b158; }
.btn-outline { background: transparent; border-color: var(--border); color: var(--text); }
.btn-outline:hover { border-color: var(--amber); color: var(--amber); }
.btn-block { width: 100%; }
.btn-small { padding: 8px 14px; font-size: 0.85rem; }
.btn-danger { background: transparent; border-color: var(--red); color: var(--red); }
.btn-danger:hover { background: var(--red); color: #fff; }

/* ---------- Sections ---------- */
section { padding: 64px 0; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 32px; gap: 20px; flex-wrap: wrap; }
.section-head p { color: var(--muted); margin: 6px 0 0; }

/* ---------- Function cards ---------- */
.func-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.func-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  transition: border-color .15s, transform .15s;
}
.func-card:hover { border-color: var(--amber-dim); transform: translateY(-2px); }
.func-card .num { font-family: var(--font-mono); color: var(--muted-dim); font-size: 0.8rem; }
.func-card h3 { margin: 10px 0 6px; font-size: 1.1rem; }
.func-card p { color: var(--muted); font-size: 0.9rem; margin: 0; }

/* ---------- Catalog / item cards (channel-strip styling) ---------- */
.catalog-filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 28px; }
.filter-chip {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--muted);
  cursor: pointer;
  background: transparent;
}
.filter-chip.active, .filter-chip:hover { border-color: var(--amber); color: var(--amber); }

.item-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.item-card {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--border);
  border-left: 3px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-left-color .15s;
}
.item-card:hover { border-left-color: var(--amber); }
.item-card .cat {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--cyan);
}
.item-card h4 { margin: 0; font-size: 1.02rem; }
.item-card .desc { color: var(--muted); font-size: 0.87rem; flex-grow: 1; }
.item-card .price-row { display: flex; align-items: baseline; justify-content: space-between; border-top: 1px dashed var(--border); padding-top: 12px; }
.item-card .price { font-family: var(--font-mono); font-size: 1.1rem; color: var(--amber); }
.item-card .unit { font-size: 0.75rem; color: var(--muted-dim); }
.item-card .stock-badge { font-family: var(--font-mono); font-size: 0.72rem; color: var(--muted-dim); }
.item-card .stock-badge.out { color: var(--red); }
.qty-control { display: flex; align-items: center; gap: 10px; }
.qty-control button {
  width: 30px; height: 30px; border-radius: 6px; border: 1px solid var(--border);
  background: var(--panel-raised); color: var(--text); font-size: 1rem; cursor: pointer;
}
.qty-control button:hover { border-color: var(--amber); }
.qty-control input {
  width: 46px; text-align: center; background: transparent; border: none; color: var(--text);
  font-family: var(--font-mono); font-size: 0.95rem;
}

/* ---------- Forms ---------- */
.form-panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 0.85rem; color: var(--muted); font-weight: 500; }
.field .hint { font-size: 0.76rem; color: var(--muted-dim); }
input[type=text], input[type=tel], input[type=email], input[type=date], input[type=number], select, textarea {
  background: var(--panel-raised);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 11px 13px;
  border-radius: 7px;
  font-family: var(--font-body);
  font-size: 0.95rem;
}
textarea { resize: vertical; min-height: 80px; }
input:focus, select:focus, textarea:focus { border-color: var(--amber); }
fieldset { border: none; padding: 0; margin: 0 0 34px; }
legend {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--cyan);
  padding: 0 0 14px;
  border-bottom: 1px solid var(--border-soft);
  width: 100%;
  margin-bottom: 20px;
}

/* ---------- Sticky summary / order total ---------- */
.summary-bar {
  position: sticky;
  bottom: 0;
  background: var(--panel-raised);
  border-top: 1px solid var(--border);
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  border-radius: var(--radius) var(--radius) 0 0;
  box-shadow: var(--shadow);
}
.summary-bar .total-label { font-size: 0.8rem; color: var(--muted); }
.summary-bar .total-value { font-family: var(--font-mono); font-size: 1.6rem; color: var(--amber); }
.summary-bar .count { font-family: var(--font-mono); font-size: 0.82rem; color: var(--muted); }

/* ---------- Tables (admin) ---------- */
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--border-soft); font-size: 0.9rem; }
th { font-family: var(--font-mono); font-size: 0.72rem; text-transform: uppercase; color: var(--muted-dim); letter-spacing: 0.05em; }
tr:hover td { background: rgba(255,255,255,0.015); }
.status-pill {
  font-family: var(--font-mono); font-size: 0.72rem; padding: 4px 10px; border-radius: 999px;
  border: 1px solid var(--border); display: inline-block;
}
.status-pill.Pending { color: var(--amber); border-color: var(--amber-dim); }
.status-pill.Confirmed { color: var(--cyan); border-color: #285c58; }
.status-pill.Completed { color: var(--muted); }
.status-pill.Cancelled { color: var(--red); border-color: #6b2523; }

/* ---------- Misc panels ---------- */
.card { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.alert { padding: 14px 18px; border-radius: 8px; font-size: 0.9rem; margin-bottom: 20px; border: 1px solid; }
.alert-success { background: rgba(79,209,197,0.08); border-color: #285c58; color: var(--cyan); }
.alert-error { background: rgba(225,85,79,0.08); border-color: #6b2523; color: #f0908c; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px,1fr)); gap: 16px; margin-bottom: 32px; }
.stat-card { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.stat-card .label { font-family: var(--font-mono); font-size: 0.72rem; color: var(--muted-dim); text-transform: uppercase; }
.stat-card .value { font-family: var(--font-display); font-size: 1.8rem; margin-top: 6px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border-soft); padding: 32px 0; margin-top: 40px; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; font-size: 0.85rem; }
.footer-inner strong { font-family: var(--font-display); }

/* ---------- Admin shell ---------- */
.admin-shell { display: grid; grid-template-columns: 220px 1fr; min-height: 100vh; }
.admin-side { background: var(--panel); border-right: 1px solid var(--border); padding: 24px 18px; }
.admin-side a {
  display: block; padding: 10px 12px; border-radius: 7px; color: var(--muted); font-size: 0.92rem; margin-bottom: 4px;
}
.admin-side a:hover, .admin-side a.active { background: var(--panel-raised); color: var(--amber); }
.admin-main { padding: 32px 40px; }
.admin-topbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 28px; }
.login-shell { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 20px; }
.login-box { width: 100%; max-width: 380px; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .waveform { order: -1; height: 140px; }
  .form-grid { grid-template-columns: 1fr; }
  .admin-shell { grid-template-columns: 1fr; }
  .admin-side { display: flex; overflow-x: auto; border-right: none; border-bottom: 1px solid var(--border); }
  .admin-side a { white-space: nowrap; }
  .admin-main { padding: 24px 18px; }
}
