:root {
  --bg: #070b13;
  --bg-card: #0b1222;
  --bg-elev: #0e1628;
  --bg-deep: #04060d;
  --line: #16203a;
  --line-soft: #101827;
  --text: #f3f4f6;
  --text-dim: #9ca3af;
  --text-faint: #6b7280;

  --teal: #2dd4bf;
  --teal-deep: #0d9488;
  --amber: #fbbf24;
  --violet: #a78bfa;
  --rose: #fb7185;
  --emerald: #34d399;
  --sky: #38bdf8;
  --green: #4ade80;
  --cyan: #22d3ee;
  --purple: #8b5cf6;

  --radius: 16px;
  --mono: "JetBrains Mono", "SFMono-Regular", ui-monospace, Menlo, Consolas, monospace;
  --sans: "Inter", system-ui, -apple-system, sans-serif;
}

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ---------- background fx ---------- */
.bg-fx { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.glow { position: absolute; width: 480px; height: 480px; border-radius: 50%; filter: blur(140px); opacity: .12; }
.glow-teal { background: var(--teal); top: -10%; left: -8%; }
.glow-violet { background: var(--violet); bottom: -10%; right: -8%; }
.grid-overlay {
  position: absolute; inset: 0;
  background-image: linear-gradient(to right, #0f172a 1px, transparent 1px),
                    linear-gradient(to bottom, #0f172a 1px, transparent 1px);
  background-size: 4rem 4rem;
  opacity: .25;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 40%, transparent 100%);
}

/* ---------- topbar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 40;
  background: rgba(10, 15, 29, .88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.topbar-inner {
  max-width: 1400px; margin: 0 auto; padding: 14px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--cyan), var(--teal-deep) 55%, var(--purple));
  color: #041018; box-shadow: 0 0 18px rgba(45, 212, 191, .35);
}
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-family: var(--mono); font-weight: 800; letter-spacing: .18em; font-size: 15px; }
.brand-sub { font-family: var(--mono); font-weight: 800; letter-spacing: .5em; font-size: 11px; color: var(--cyan); margin-top: 3px; }
.brand-tag {
  font-family: var(--mono); font-size: 9px; font-weight: 700; letter-spacing: .12em;
  color: var(--teal); background: rgba(13, 148, 136, .15); border: 1px solid rgba(45, 212, 191, .25);
  padding: 3px 8px; border-radius: 999px; text-transform: uppercase;
}
.topbar-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--mono); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  padding: 9px 14px; border-radius: 10px; border: 1px solid transparent; cursor: pointer;
  transition: all .18s ease; white-space: nowrap;
}
.btn:active { transform: scale(.97); }
.btn-sm { padding: 7px 11px; font-size: 10px; }
.btn-xs { padding: 5px 9px; font-size: 9px; }
.btn-full { width: 100%; justify-content: center; }

.btn-teal { background: linear-gradient(135deg, var(--teal), var(--teal-deep)); color: #041018; box-shadow: 0 3px 14px rgba(45, 212, 191, .25); }
.btn-teal:hover { filter: brightness(1.1); }
.btn-teal-solid { background: var(--teal); color: #041018; }
.btn-green { background: var(--bg-elev); color: var(--green); border-color: rgba(74, 222, 128, .3); }
.btn-green:hover { background: rgba(74, 222, 128, .12); }
.btn-green-solid { background: linear-gradient(135deg, var(--green), #16a34a); color: #041018; box-shadow: 0 3px 14px rgba(74, 222, 128, .25); }
.btn-violet { background: linear-gradient(135deg, var(--violet), #7c3aed); color: #0b0618; }
.btn-violet-outline { background: rgba(139, 92, 246, .08); color: var(--violet); border-color: rgba(139, 92, 246, .3); }
.btn-violet-outline:hover { background: rgba(139, 92, 246, .18); }
.btn-ghost { background: var(--bg-elev); color: var(--text-dim); border-color: var(--line); }
.btn-ghost:hover { color: var(--text); border-color: #23304f; }
.btn-danger-ghost { background: rgba(159, 18, 57, .18); color: var(--rose); border-color: rgba(251, 113, 133, .22); }
.btn-danger-ghost:hover { background: rgba(159, 18, 57, .35); }

/* ---------- layout ---------- */
.layout {
  position: relative; z-index: 10;
  max-width: 1400px; margin: 0 auto; padding: 24px;
  display: grid; grid-template-columns: 380px 1fr; gap: 20px; align-items: start;
}
@media (max-width: 1024px) { .layout { grid-template-columns: 1fr; } }

.col { display: flex; flex-direction: column; gap: 20px; min-width: 0; }

/* ---------- panels & cards ---------- */
.panel-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 4px 12px;
}
.panel-title { display: flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--text-dim); }
.panel-title svg { color: var(--teal); }

.card {
  background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px; display: flex; flex-direction: column; gap: 16px;
  box-shadow: 0 10px 34px rgba(0, 0, 0, .3);
}
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.card-title { display: flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--text-dim); }
.card-note { font-size: 12px; line-height: 1.6; color: var(--text-dim); }
.card-note strong { color: var(--green); }

/* zone accents */
.zone-teal .panel-title svg, .zone-teal .dropzone-icon { color: var(--teal); }
.zone-amber .card-title svg { color: var(--amber); }
.zone-violet .card-title svg { color: var(--violet); }
.zone-console .card-title svg { color: var(--rose); }
.zone-green .card-title svg { color: var(--green); }

/* ---------- pills ---------- */
.pill {
  font-family: var(--mono); font-size: 9px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  padding: 4px 9px; border-radius: 999px; white-space: nowrap;
}
.pill-teal { color: var(--teal); background: rgba(45, 212, 191, .1); border: 1px solid rgba(45, 212, 191, .25); }
.pill-amber { color: var(--amber); background: rgba(251, 191, 36, .1); border: 1px solid rgba(251, 191, 36, .25); }
.pill-violet { color: var(--violet); background: rgba(167, 139, 250, .1); border: 1px solid rgba(167, 139, 250, .25); }
.pill-green { color: var(--green); background: rgba(74, 222, 128, .1); border: 1px solid rgba(74, 222, 128, .3); }

/* ---------- dropzone ---------- */
.dropzone {
  border: 2px dashed rgba(45, 212, 191, .3); border-radius: var(--radius);
  background: rgba(13, 148, 136, .05);
  padding: 26px 18px; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  transition: all .2s ease;
}
.dropzone.dragover { border-color: var(--teal); background: rgba(13, 148, 136, .14); transform: scale(1.01); }
.dropzone-icon { color: var(--teal); opacity: .85; }
.dropzone-title { font-family: var(--mono); font-size: 12px; font-weight: 700; color: var(--text); }
.dropzone-sub { font-size: 11px; color: var(--text-dim); }
.dropzone-note { font-size: 10px; color: var(--text-faint); line-height: 1.5; max-width: 260px; }
.dropzone .btn { margin-top: 6px; }

/* ---------- deck head + slot list ---------- */
.deck-head { display: flex; justify-content: flex-end; padding: 0 4px; }
.slot-list {
  display: flex; flex-direction: column; gap: 7px;
  max-height: 560px; overflow-y: auto; padding-right: 4px;
  scrollbar-width: thin; scrollbar-color: #1e293b transparent;
}
.slot-list::-webkit-scrollbar { width: 6px; }
.slot-list::-webkit-scrollbar-thumb { background: #1e293b; border-radius: 3px; }

.slot {
  display: flex; align-items: center; gap: 11px; padding: 11px 13px;
  background: var(--bg-card); border: 1px solid var(--line); border-radius: 12px;
  cursor: pointer; transition: all .16s ease; position: relative; overflow: hidden;
}
.slot:hover { border-color: #26345c; background: #0d1526; }
.slot.active { border-color: rgba(45, 212, 191, .5); background: linear-gradient(90deg, rgba(45, 212, 191, .12), transparent 70%); }
.slot.active::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--teal); }
.slot-num {
  width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0;
  font-family: var(--mono); font-size: 10px; font-weight: 800;
  background: #0a1120; color: var(--text-faint); border: 1px solid var(--line);
}
.slot.active .slot-num { background: var(--teal); color: #041018; border-color: var(--teal); }
.slot.loaded .slot-num { color: var(--teal); border-color: rgba(45, 212, 191, .3); background: rgba(45, 212, 191, .08); }
.slot-body { flex: 1; min-width: 0; }
.slot-name { font-family: var(--mono); font-size: 11px; font-weight: 700; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.slot.active .slot-name { color: var(--teal); }
.slot-meta { font-family: var(--mono); font-size: 9px; color: var(--text-faint); margin-top: 2px; display: flex; gap: 6px; align-items: center; }
.slot-empty { font-family: var(--mono); font-size: 9px; color: #374151; letter-spacing: .14em; text-transform: uppercase; }
.slot-clear {
  background: none; border: none; color: #4b5563; cursor: pointer; padding: 5px; border-radius: 7px;
  opacity: 0; transition: all .15s; flex-shrink: 0;
}
.slot:hover .slot-clear { opacity: 1; }
.slot-clear:hover { color: var(--rose); background: rgba(159, 18, 57, .2); }
.slot-tag { font-family: var(--mono); font-size: 8px; color: rgba(45, 212, 191, .55); letter-spacing: .1em; flex-shrink: 0; }

/* ---------- player ---------- */
.player-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 16px; align-items: center; }
@media (max-width: 640px) { .player-grid { grid-template-columns: 1fr; } }
.meta-label { font-family: var(--mono); font-size: 9px; letter-spacing: .18em; text-transform: uppercase; color: var(--text-faint); }
.track-name { font-family: var(--mono); font-size: 14px; font-weight: 700; color: var(--amber); margin-top: 5px; word-break: break-all; line-height: 1.35; }
.track-sub { font-family: var(--mono); font-size: 10px; color: var(--text-faint); margin-top: 4px; }
.viz-wrap { position: relative; }
#visualizer { width: 100%; height: 120px; display: block; background: #04070f; border: 1px solid var(--line); border-radius: 12px; }
.viz-state {
  position: absolute; top: 8px; right: 10px; font-family: var(--mono); font-size: 8px;
  letter-spacing: .14em; text-transform: uppercase; color: var(--text-faint);
  background: rgba(4, 7, 15, .7); padding: 2px 7px; border-radius: 5px; pointer-events: none;
}

.transport { display: flex; flex-direction: column; gap: 12px; }
.seek { width: 100%; height: 6px; -webkit-appearance: none; appearance: none; border-radius: 4px; background: var(--bg-elev); cursor: pointer; }
.seek::-webkit-slider-thumb { -webkit-appearance: none; width: 14px; height: 14px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 8px rgba(251, 191, 36, .5); cursor: pointer; }
.transport-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.time-block { display: flex; align-items: baseline; gap: 6px; font-family: var(--mono); }
.time-cur { color: var(--amber); font-weight: 700; font-size: 14px; }
.time-sep { color: #374151; }
.time-total { color: var(--text-dim); font-size: 13px; }
.transport-btns { display: flex; align-items: center; gap: 14px; }
.tbtn {
  width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
  background: var(--bg-elev); border: 1px solid var(--line); color: var(--text-dim); cursor: pointer; transition: all .16s;
}
.tbtn:hover { color: var(--rose); border-color: rgba(251, 113, 133, .4); }
.tbtn-play {
  width: 58px; height: 58px; border: none;
  background: linear-gradient(135deg, var(--teal), var(--cyan)); color: #041018;
  box-shadow: 0 4px 22px rgba(45, 212, 191, .35);
}
.tbtn-play:hover { filter: brightness(1.1); color: #041018; }
.tbtn-play.playing { background: linear-gradient(135deg, var(--amber), #f59e0b); box-shadow: 0 4px 22px rgba(251, 191, 36, .35); }
.monitor-vol {
  display: flex; align-items: center; gap: 8px; background: var(--bg-deep);
  border: 1px solid var(--line); border-radius: 10px; padding: 7px 11px; color: var(--teal);
}
.monitor-vol input { width: 90px; }
.mon-val { font-family: var(--mono); font-size: 10px; font-weight: 700; color: var(--teal); width: 38px; text-align: right; }

/* ---------- range inputs ---------- */
input[type="range"] { -webkit-appearance: none; appearance: none; height: 6px; border-radius: 4px; background: #0a1120; cursor: pointer; }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 15px; height: 15px; border-radius: 50%; background: var(--teal); border: 2px solid #041018; box-shadow: 0 0 8px rgba(45, 212, 191, .4); cursor: pointer; }
input[type="range"]::-moz-range-thumb { width: 13px; height: 13px; border-radius: 50%; background: var(--teal); border: 2px solid #041018; cursor: pointer; }

/* ---------- preset library ---------- */
.field-label { font-family: var(--mono); font-size: 9px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--text-faint); }
.preset-list { display: flex; flex-direction: column; gap: 5px; max-height: 240px; overflow-y: auto; scrollbar-width: thin; scrollbar-color: #1e293b transparent; }
.preset-list::-webkit-scrollbar { width: 5px; }
.preset-list::-webkit-scrollbar-thumb { background: #1e293b; border-radius: 3px; }
.preset {
  display: flex; align-items: center; gap: 10px; padding: 9px 11px;
  background: var(--bg-elev); border: 1px solid var(--line-soft); border-radius: 10px;
  cursor: pointer; transition: all .15s; text-align: left; width: 100%;
}
.preset:hover { border-color: rgba(167, 139, 250, .4); background: rgba(139, 92, 246, .07); }
.preset.active { border-color: var(--violet); background: rgba(139, 92, 246, .13); }
.preset-icon { font-size: 15px; flex-shrink: 0; }
.preset-info { flex: 1; min-width: 0; }
.preset-name { font-family: var(--mono); font-size: 11px; font-weight: 700; color: var(--text); text-transform: uppercase; letter-spacing: .03em; }
.preset.active .preset-name { color: var(--violet); }
.preset-desc { font-size: 9.5px; color: var(--text-faint); line-height: 1.4; margin-top: 2px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.preset-del {
  background: none; border: none; color: #4b5563; cursor: pointer; padding: 4px; border-radius: 6px;
  opacity: 0; transition: all .15s; flex-shrink: 0;
}
.preset:hover .preset-del { opacity: 1; }
.preset-del:hover { color: var(--rose); background: rgba(159, 18, 57, .25); }
.preset-empty { text-align: center; padding: 18px 10px; font-family: var(--mono); font-size: 10px; color: var(--text-faint); }
.save-row { display: flex; gap: 8px; }
.save-row input {
  flex: 1; min-width: 0; background: var(--bg-deep); border: 1px solid var(--line); border-radius: 10px;
  padding: 9px 12px; color: var(--text); font-family: var(--mono); font-size: 11px; outline: none;
}
.save-row input:focus { border-color: var(--violet); }
.save-row input::placeholder { color: #374151; }

/* ---------- mixing console ---------- */
.grid-2col { display: grid; grid-template-columns: 1fr 1.15fr; gap: 20px; }
@media (max-width: 900px) { .grid-2col { grid-template-columns: 1fr; } }

.fader-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 520px) { .fader-row { grid-template-columns: 1fr; } }
.fader-block { display: flex; flex-direction: column; gap: 7px; background: var(--bg-deep); border: 1px solid var(--line-soft); border-radius: 12px; padding: 13px; }
.fader-block.compact { padding: 10px 12px; gap: 5px; }
.fader-head { display: flex; align-items: center; justify-content: space-between; font-family: var(--mono); font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--text-dim); }
.fader-val { color: var(--teal); font-weight: 800; }
.fader-hint { font-size: 9px; color: var(--text-faint); line-height: 1.4; }
.zone-speed { border-color: rgba(251, 191, 36, .18); }
.zone-speed .fader-head span:first-child { color: var(--amber); }
.zone-speed .fader-val { color: var(--amber); }
.zone-speed input[type="range"]::-webkit-slider-thumb { background: var(--amber); box-shadow: 0 0 8px rgba(251, 191, 36, .5); }
.pan-row { display: flex; align-items: center; gap: 9px; }
.pan-row input { flex: 1; }
.pan-tag { font-family: var(--mono); font-size: 9px; color: var(--text-faint); }

/* EQ console */
.eq-console { background: var(--bg-deep); border: 1px solid var(--line-soft); border-radius: 12px; padding: 14px; display: flex; flex-direction: column; gap: 14px; }
.eq-console-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; font-family: var(--mono); font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-dim); border-bottom: 1px solid var(--line-soft); padding-bottom: 10px; }
.eq-status { font-size: 8.5px; padding: 4px 9px; border-radius: 999px; display: flex; align-items: center; gap: 5px; }
.eq-status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.eq-ok { color: var(--emerald); background: rgba(52, 211, 153, .1); border: 1px solid rgba(52, 211, 153, .25); }
.eq-warn { color: var(--rose); background: rgba(251, 113, 133, .1); border: 1px solid rgba(251, 113, 133, .3); animation: pulse 1.2s infinite; }
.eq-bands { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.eq-band {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  background: #060a14; border: 1px solid var(--line-soft); border-radius: 12px; padding: 12px 8px;
}
.eq-band-label { font-family: var(--mono); font-size: 10px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.band-bass { color: var(--rose); }
.band-mid { color: var(--emerald); }
.band-treble { color: var(--sky); }
.eq-band-val { font-family: var(--mono); font-size: 10px; font-weight: 800; color: var(--text); background: #0a1120; border: 1px solid var(--line); padding: 3px 8px; border-radius: 6px; min-width: 48px; text-align: center; }
.eq-meter { display: flex; flex-direction: column-reverse; gap: 2px; }
.eq-seg { width: 14px; height: 5px; border-radius: 2px; background: #131c30; transition: all .25s; }
.eq-seg.on-low { background: var(--emerald); box-shadow: 0 0 5px rgba(52, 211, 153, .5); }
.eq-seg.on-mid { background: var(--amber); box-shadow: 0 0 5px rgba(251, 191, 36, .5); }
.eq-seg.on-high { background: var(--rose); box-shadow: 0 0 5px rgba(251, 113, 133, .5); }
.eq-fader { writing-mode: vertical-lr; direction: rtl; width: 6px; height: 110px; }
.eq-fader::-webkit-slider-thumb { background: var(--text); box-shadow: 0 0 6px rgba(255, 255, 255, .35); }
.eq-band-hz { font-family: var(--mono); font-size: 8px; color: var(--text-faint); text-align: center; line-height: 1.3; border-top: 1px solid var(--line-soft); padding-top: 7px; width: 100%; }

/* FX cards */
.fx-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 520px) { .fx-grid { grid-template-columns: 1fr; } }
.fx-card { background: var(--bg-deep); border: 1px solid var(--line-soft); border-radius: 12px; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.fx-title { font-family: var(--mono); font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; border-bottom: 1px solid var(--line-soft); padding-bottom: 8px; }
.fx-reverb { border-color: rgba(34, 211, 238, .16); }
.fx-reverb .fx-title { color: var(--cyan); }
.fx-reverb .fader-val { color: var(--cyan); }
.fx-reverb input[type="range"]::-webkit-slider-thumb { background: var(--cyan); box-shadow: 0 0 8px rgba(34, 211, 238, .45); }
.fx-delay { border-color: rgba(139, 92, 246, .16); }
.fx-delay .fx-title { color: var(--purple); }
.fx-delay .fader-val { color: var(--purple); }
.fx-delay input[type="range"]::-webkit-slider-thumb { background: var(--purple); box-shadow: 0 0 8px rgba(139, 92, 246, .45); }

/* ---------- export + metadata ---------- */
.export-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.format-toggle { display: flex; background: var(--bg-deep); border: 1px solid var(--line); border-radius: 10px; padding: 3px; gap: 3px; }
.fmt-btn {
  font-family: var(--mono); font-size: 10px; font-weight: 700; letter-spacing: .06em;
  padding: 7px 13px; border-radius: 8px; border: none; background: none; color: var(--text-faint); cursor: pointer; transition: all .15s;
}
.fmt-btn.active { background: rgba(74, 222, 128, .14); color: var(--green); }
.meta-report { display: flex; flex-direction: column; gap: 8px; }
.meta-empty { font-family: var(--mono); font-size: 10px; color: var(--text-faint); text-align: center; padding: 14px 0; }
.meta-file {
  background: var(--bg-deep); border: 1px solid var(--line-soft); border-radius: 10px; padding: 11px 13px;
  display: flex; flex-direction: column; gap: 6px;
}
.meta-file-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.meta-file-name { font-family: var(--mono); font-size: 10.5px; font-weight: 700; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.meta-badge { font-family: var(--mono); font-size: 8px; font-weight: 800; letter-spacing: .08em; padding: 3px 8px; border-radius: 999px; white-space: nowrap; }
.meta-badge.clean { color: var(--green); background: rgba(74, 222, 128, .1); border: 1px solid rgba(74, 222, 128, .25); }
.meta-badge.dirty { color: var(--amber); background: rgba(251, 191, 36, .1); border: 1px solid rgba(251, 191, 36, .25); }
.meta-tags { display: flex; flex-wrap: wrap; gap: 5px; }
.meta-tag { font-family: var(--mono); font-size: 8.5px; color: var(--text-dim); background: #0a1120; border: 1px solid var(--line); padding: 3px 7px; border-radius: 6px; }
.meta-tag b { color: var(--rose); font-weight: 700; }
.meta-strip { font-family: var(--mono); font-size: 8.5px; color: var(--green); letter-spacing: .04em; }

/* ---------- footer ---------- */
.footer {
  position: relative; z-index: 10; border-top: 1px solid var(--line);
  padding: 22px 24px; margin-top: 12px;
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  max-width: 1400px; margin-left: auto; margin-right: auto;
  font-size: 10.5px; color: var(--text-faint); font-family: var(--mono);
}

/* ---------- toast / modal ---------- */
.toast {
  position: fixed; top: 76px; right: 24px; z-index: 90;
  background: #090d16; border: 1px solid var(--teal); color: var(--teal);
  font-family: var(--mono); font-size: 11px; font-weight: 700;
  padding: 12px 16px; border-radius: 12px; box-shadow: 0 8px 30px rgba(45, 212, 191, .2);
  opacity: 0; transform: translateY(-8px); transition: all .25s ease; pointer-events: none;
  max-width: 320px;
}
.toast.show { opacity: 1; transform: translateY(0); }
.modal-backdrop {
  position: fixed; inset: 0; z-index: 100; background: rgba(2, 4, 10, .88); backdrop-filter: blur(6px);
  display: grid; place-items: center;
}
.modal-backdrop[hidden] { display: none; }
.modal-card {
  background: var(--bg-card); border: 1px solid var(--teal); border-radius: 18px;
  padding: 34px; display: flex; flex-direction: column; align-items: center; gap: 14px;
  max-width: 340px; text-align: center; box-shadow: 0 0 44px rgba(45, 212, 191, .25);
}
.modal-card h3 { font-family: var(--mono); font-size: 12px; letter-spacing: .16em; color: var(--teal); text-transform: uppercase; }
.modal-card p { font-family: var(--mono); font-size: 11px; color: var(--text-dim); line-height: 1.6; }
.spinner { width: 42px; height: 42px; border-radius: 50%; border: 4px solid rgba(45, 212, 191, .18); border-top-color: var(--teal); animation: spin .8s linear infinite; }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 50% { opacity: .55; } }
