:root {
  --ink: #f4eefe;
  --muted: #aea4c7;
  --faint: #776e91;
  --panel: rgba(14, 11, 29, 0.9);
  --panel-soft: rgba(23, 17, 43, 0.76);
  --line: rgba(234, 226, 255, 0.12);
  --lime: #22e6cf;
  --mint: #7af6e6;
  --orange: #ffb84d;
  --red: #ff6a86;
  --purple: #9b7bff;
  --pink: #ff2e7e;
  --violet: #7b5cff;
  --cyan: #0babf5;
  --navy: #11116e;
  --bg: #06050b;
  --grad-hot: linear-gradient(110deg, var(--navy), var(--violet) 54%, var(--cyan));
  --grad-warm: linear-gradient(120deg, var(--orange), var(--pink));
  --font-display: "Sora", system-ui, sans-serif;
  --font-body: "Hanken Grotesk", system-ui, -apple-system, sans-serif;
  --font-mono: "Space Mono", "SFMono-Regular", Consolas, monospace;
  --shadow: 0 24px 68px rgba(0, 0, 0, 0.34);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 88% 8%, rgba(123, 92, 255, 0.18), transparent 27rem),
    radial-gradient(circle at 8% 31%, rgba(255, 46, 126, 0.1), transparent 27rem),
    radial-gradient(circle at 54% 100%, rgba(34, 230, 207, 0.07), transparent 32rem),
    var(--bg);
  font-family: var(--font-body);
  min-height: 100vh;
  position: relative;
}

body::before {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.026) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.026) 1px, transparent 1px);
  background-size: 44px 44px;
  content: "";
  inset: 0;
  mask-image: linear-gradient(to bottom, #000, transparent 72%);
  opacity: 0.45;
  pointer-events: none;
  position: fixed;
}

body > * {
  position: relative;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

a {
    text-decoration: none;
}

footer { 
    border-top: 2px solid var(--line-soft); 
    padding: 5.5rem clamp(1.1rem, 4vw, 2.4rem); 
    display: flex; 
    flex-wrap: wrap; 
    align-items: center; 
    justify-content: space-between; 
    gap: 1rem; 
    max-width: var(--maxw); 
    margin: 0 auto;
    position:absolute;
    bottom:0;
    width:100%; 
}

footer p { 
    color: var(--muted-2); 
    font-size: 0.85rem; 
    max-width: 30rem; 
}

footer a[href^="http"] { 
    color: var(--cyan); 
    text-decoration: none; 
    font-family: var(--font-mono); 
    font-size: 0.85rem; 
}

footer a {
    color: var(--cyan); 
    text-decoration: none; 
    font-family: var(--font-mono); 
    font-size: 0.85rem; 
}

footer a:visited {
    color: var(--cyan); 
    text-decoration: none; 
    font-family: var(--font-mono); 
    font-size: 0.85rem; 
}

footer a:hover {
    color: var(--cyan); 
    text-decoration: none; 
    font-family: var(--font-mono); 
    font-size: 0.85rem; 
}

footer a:active {
    color: var(--cyan); 
    text-decoration: none; 
    font-family: var(--font-mono); 
    font-size: 0.85rem; 
}

.topbar {
  align-items: center;
  backdrop-filter: blur(22px);
  background: rgba(6, 5, 11, 0.72);
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  padding: 21px clamp(22px, 4vw, 64px);
  position: sticky;
  top: 0;
  z-index: 20;
}

.brand,
.topbar-actions,
.header-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
}

/* ---------- brand mark (animated EQ) ---------- */
.brand { display: inline-flex; align-items: center; gap: 0.65rem; text-decoration: none; color: var(--text); font-family: var(--font-display); font-weight: 800; letter-spacing: -0.01em; font-size: 1.15rem; }
.brand-mark { display: inline-flex; align-items: flex-end; gap: 3px; height: 22px; }
.brand-mark i { width: 4px; border-radius: 2px; background: var(--grad-hot); animation: eq 1.1s ease-in-out infinite; }
.brand-mark i:nth-child(1) { height: 40%; animation-delay: -0.2s; }
.brand-mark i:nth-child(2) { height: 100%; animation-delay: -0.5s; }
.brand-mark i:nth-child(3) { height: 65%; animation-delay: -0.1s; }
.brand-mark i:nth-child(4) { height: 85%; animation-delay: -0.7s; }
.brand-mark.tiny { height: 15px; }
.brand-mark.tiny i { width: 3px; }
@keyframes eq { 0%, 100% { transform: scaleY(0.4); } 50% { transform: scaleY(1); } }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem;
  padding: 1rem clamp(1.1rem, 4vw, 2.4rem);
  background: rgba(6, 5, 11, 0.55);
  backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid var(--line-soft);
}
.desktop-nav { display: flex; gap: 1.8rem; }
.desktop-nav a { color: var(--muted); text-decoration: none; font-size: 0.92rem; font-weight: 500; transition: color 0.2s; }
.desktop-nav a:hover { color: var(--text); }

.brand-mark {
  align-items: end;
  display: flex;
  gap: 3px;
  height: 31px;
  width: 31px;
}

.brand-mark span {
  animation: brand-pulse 1.8s ease-in-out infinite alternate;
  background: var(--grad-hot);
  border-radius: 2px;
  box-shadow: 0 0 16px rgba(34, 230, 207, 0.28);
  width: 5px;
}

.brand-mark span:nth-child(1) { height: 45%; }
.brand-mark span:nth-child(2) { animation-delay: -0.7s; height: 92%; }
.brand-mark span:nth-child(3) { animation-delay: -1.1s; height: 66%; }
.brand-mark span:nth-child(4) { animation-delay: -0.35s; height: 33%; }

@keyframes brand-pulse {
  to { transform: scaleY(0.72); }
}

.brand h1,
h2,
h3,
p {
  margin: 0;
}

.brand h1 {
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: -0.05em;
}

.eyebrow {
  color: var(--lime);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.13em;
}

.offline-pill {
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  display: flex;
  font-size: 10px;
  font-weight: 800;
  gap: 7px;
  letter-spacing: 0.11em;
  padding: 9px 12px;
}

.status-dot {
  background: var(--mint);
  border-radius: 50%;
  box-shadow: 0 0 12px rgba(114, 226, 189, 0.9);
  height: 6px;
  width: 6px;
}

main {
  display:block;
  margin: auto;
  max-width: 1520px;
  padding: 0 clamp(18px, 4vw, 64px) 70px;
}

.hero {
  align-items: end;
  display: grid;
  gap: 30px;
  grid-template-columns: minmax(0, 1fr) 380px;
  padding: 72px 0 40px;
}

.hero h2,
.results-heading h2 {
  font-family: var(--font-display);
  font-size: clamp(34px, 4.5vw, 66px);
  letter-spacing: -0.068em;
  line-height: 0.98;
  max-width: 850px;
}

.hero-kicker {
  margin-bottom: 15px;
}

.hero-copy {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
  margin-top: 19px;
  max-width: 680px;
}

.hero-card {
  background: linear-gradient(145deg, rgba(37, 26, 72, 0.8), rgba(12, 10, 25, 0.84));
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  overflow: hidden;
  padding: 20px;
  position: relative;
}

.hero-card::before {
  background: var(--grad-hot);
  content: "";
  height: 2px;
  inset: 0 0 auto;
  opacity: 0.9;
  position: absolute;
}

.score-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(2, 1fr);
  margin-top: 18px;
}

.score-grid div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.score-grid strong {
  color: var(--mint);
  font-size: 24px;
  letter-spacing: -0.05em;
}

.score-grid span {
  color: var(--muted);
  font-size: 12px;
}

.workspace {
  align-items: start;
  display: grid;
  gap: 22px;
  grid-template-columns: minmax(0, 1fr) 300px;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.crate-panel {
  overflow: hidden;
}

.panel-heading,
.results-heading {
  align-items: center;
  display: flex;
  justify-content: space-between;
  padding: 24px;
}

.panel-heading h3,
.bench-card h3 {
  font-family: var(--font-display);
  font-size: 24px;
  letter-spacing: -0.055em;
  margin-top: 6px;
}

.section { max-width: var(--maxw); margin: 0 auto; padding: clamp(4rem, 9vw, 7.5rem) clamp(1.1rem, 4vw, 2.4rem); }
.section-note,
.settings-footnote {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
  margin-top: 7px;
}

.button {
  background: transparent;
  border: 0cqb solid transparent;
  border-radius: 6px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  padding: 12px 17px;
  transition: 800ms ease;
  text-transform: uppercase;
}

.button:hover {
  box-shadow: 0 9px 24px rgba(0, 0, 0, 0.2);
  transform: translateY(-1px);
}

.button-ghost {
  border-color: var(--line);
  color: var(--muted);
}

.button-secondary {
  background: rgba(34, 230, 207, 0.08);
  border-color: rgba(34, 230, 207, 0.24);
  color: var(--mint);
}

.button-primary {
  background: var(--grad-hot);
  box-shadow: 0 10px 28px rgba(123, 92, 255, 0.22);
  color: #090611;
}

.file-button input {
  display: none;
}

.sign-out {
  border: 1px solid var(--line);
}

.drop-zone {
  align-items: center;
  background: rgba(34, 230, 207, 0.04);
  border: 1px dashed rgba(34, 230, 207, 0.28);
  border-radius: 12px;
  display: flex;
  gap: 13px;
  margin: 0 24px 20px;
  outline: none;
  padding: 16px;
  transition: 160ms ease;
}

.drop-zone:hover,
.drop-zone.is-active,
.drop-zone:focus-visible {
  background: rgba(34, 230, 207, 0.09);
  border-color: var(--mint);
}

.drop-icon {
  align-items: center;
  background: rgba(34, 230, 207, 0.1);
  border: 1px solid rgba(34, 230, 207, 0.24);
  border-radius: 50%;
  color: var(--lime);
  display: flex;
  font-size: 20px;
  height: 35px;
  justify-content: center;
  width: 35px;
}

.drop-zone strong,
.drop-zone span {
  display: block;
  font-size: 12px;
}

.grid-import-card {
  align-items: center;
  background: linear-gradient(115deg, rgba(255, 46, 126, 0.085), rgba(123, 92, 255, 0.08), rgba(34, 230, 207, 0.055));
  border: 1px solid rgba(155, 123, 255, 0.28);
  border-radius: 12px;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  margin: 0 24px 20px;
  padding: 15px 16px;
}

.grid-import-card strong,
.grid-import-card span {
  display: block;
}

.grid-import-card strong {
  font-size: 13px;
  margin-top: 5px;
}

.grid-import-card span {
  color: var(--muted);
  font-size: 11px;
  margin-top: 4px;
}

.button-grid {
  background: var(--grad-hot);
  color: #090611;
  flex: 0 0 auto;
}

.drop-zone span {
  color: var(--muted);
  margin-top: 4px;
}

.crate-toolbar {
  align-items: center;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  padding: 13px 24px;
}

.crate-summary {
  align-items: center;
  display: flex;
  gap: 14px;
}

.crate-summary strong {
  font-size: 13px;
}

.crate-summary span {
  color: var(--muted);
  font-size: 12px;
}

.crate-path-status {
  color: var(--orange) !important;
}

.crate-grid-status {
  color: var(--mint) !important;
}

.text-button {
  background: transparent;
  border: 0;
  color: var(--muted);
  font-size: 12px;
}

.text-button:hover {
  color: var(--red);
}

.table-shell {
  overflow-x: auto;
}

.crate-table {
  border-collapse: collapse;
  min-width: 790px;
  width: 100%;
}

.crate-table th {
  border-bottom: 1px solid var(--line);
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-size: 10px;
  letter-spacing: 0.13em;
  padding: 10px 8px;
  text-align: left;
  text-transform: uppercase;
}

.crate-table td {
  border-bottom: 1px solid var(--line);
  padding: 7px 8px;
}

.action-cell {
  padding-right: 15px !important;
  text-align: right;
  width: 35px;
}

.table-input {
  background: transparent;
  border: 1px solid transparent;
  border-radius: 5px;
  color: var(--ink);
  font-size: 12px;
  outline: none;
  padding: 5px;
  width: 100%;
}

.table-input:hover,
.table-input:focus {
  background: rgba(255, 255, 255, 0.025);
  border-color: var(--line);
}

.track-cell {
  min-width: 210px;
}

.track-title {
  font-weight: 700;
}

.track-artist {
  color: var(--muted);
  font-size: 11px;
}

.compact-input {
  max-width: 66px;
}

select.table-input {
  background: var(--panel);
}

.remove-track {
  background: transparent;
  border: 0;
  color: var(--faint);
  font-size: 14px;
}

.remove-track:hover {
  color: var(--red);
}

.button-add {
  color: var(--lime);
  display: block;
  margin: 13px 17px;
}

.settings-panel {
  padding-bottom: 18px;
  position: sticky;
  top: 18px;
}

.compact {
  padding-bottom: 17px;
}

.field {
  display: block;
  margin: 0 20px 16px;
}

.field > span {
  color: var(--muted);
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 7px;
}

.field input,
.field select {
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--ink);
  outline: none;
  padding: 11px;
  width: 100%;
}

.field select option {
  background: #110d22;
}

.suffix-input {
  position: relative;
}

.suffix-input input {
  padding-right: 50px;
}

.suffix-input b {
  color: var(--faint);
  font-size: 10px;
  position: absolute;
  right: 11px;
  top: 13px;
}

.check-row {
  align-items: start;
  border-bottom: 1px solid var(--line);
  border-top: 1px solid var(--line);
  display: flex;
  gap: 9px;
  margin: 19px 0;
  padding: 15px 20px;
}

.check-row input {
  accent-color: var(--lime);
  margin-top: 3px;
}

.check-row strong,
.check-row small {
  display: block;
}

.check-row strong {
  font-size: 12px;
}

.check-row small {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
  margin-top: 3px;
}

.optimize-button {
  display: block;
  margin: 0 20px;
  padding: 14px;
  width: calc(100% - 40px);
}

.settings-footnote {
  margin: 14px 20px 0;
}

.results-section {
  padding-top: 72px;
}

.results-heading {
  padding-left: 0;
  padding-right: 0;
}

.results-heading h2 {
  font-size: clamp(34px, 4vw, 56px);
  margin-top: 8px;
}

.results-stats {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(4, 1fr);
  margin: 17px 0 31px;
}

.stat-card {
  background: var(--panel-soft);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 17px;
}

.stat-card span {
  color: var(--muted);
  display: block;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.stat-card strong {
  display: block;
  font-size: 23px;
  letter-spacing: -0.06em;
  margin-top: 6px;
}

.timeline {
  margin-top: 10px;
}

.timeline-track,
.timeline-transition {
  display: grid;
  grid-template-columns: 64px 27px minmax(0, 1fr);
}

.timeline-time {
  color: var(--muted);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  padding-top: 19px;
}

.timeline-marker {
  display: flex;
  justify-content: center;
  position: relative;
}

.timeline-marker::before {
  background: var(--line);
  content: "";
  height: 100%;
  left: 13px;
  position: absolute;
  top: 0;
  width: 1px;
}

.timeline-marker span {
  background: var(--lime);
  border: 4px solid var(--bg);
  border-radius: 50%;
  height: 14px;
  margin-top: 19px;
  position: relative;
  width: 14px;
  z-index: 1;
}

.track-card {
  align-items: center;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  display: flex;
  gap: 15px;
  margin-bottom: 10px;
  padding: 14px 16px;
}

.track-number {
  color: var(--faint);
  font-size: 12px;
  font-weight: 800;
  width: 22px;
}

.track-main {
  min-width: 0;
}

.track-main h3 {
  font-size: 16px;
  letter-spacing: -0.02em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.track-artist-line {
  color: var(--muted);
  font-size: 12px;
  margin-top: 3px;
}

.track-meta,
.transition-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.meta-pill {
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  padding: 4px 7px;
}

.track-energy-badge {
  color: var(--lime);
  font-size: 11px;
  font-weight: 800;
  margin-left: auto;
  white-space: nowrap;
}

.timeline-transition {
  min-height: 86px;
}

.timeline-transition .timeline-time {
  padding-top: 14px;
}

.transition-marker span {
  background: var(--mint);
  border-width: 5px;
  height: 11px;
  margin-top: 15px;
  width: 11px;
}

.transition-card {
  border-left: 1px solid rgba(114, 226, 189, 0.3);
  margin: 1px 0 9px;
  padding: 10px 14px 13px;
}

.transition-heading {
  align-items: center;
  display: flex;
  gap: 9px;
}

.transition-heading strong {
  font-size: 12px;
}

.rating-pill,
.confidence-pill {
  border-radius: 999px;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.08em;
  padding: 4px 7px;
  text-transform: uppercase;
}

.confidence-high {
  background: rgba(199, 243, 106, 0.13);
  color: var(--lime);
}

.confidence-medium {
  background: rgba(114, 226, 189, 0.13);
  color: var(--mint);
}

.confidence-low {
  background: rgba(255, 176, 104, 0.13);
  color: var(--orange);
}

.rating-excellent {
  background: rgba(199, 243, 106, 0.13);
  color: var(--lime);
}

.rating-good {
  background: rgba(114, 226, 189, 0.13);
  color: var(--mint);
}

.rating-workable {
  background: rgba(255, 176, 104, 0.13);
  color: var(--orange);
}

.rating-risky {
  background: rgba(255, 124, 110, 0.14);
  color: var(--red);
}

.transition-card p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
  margin-top: 7px;
}

.transition-cue {
  align-items: end;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 10px;
}

.cue-warning {
  background: rgba(255, 176, 104, 0.1);
  border: 1px solid rgba(255, 176, 104, 0.28);
  border-radius: 7px;
  color: var(--orange);
  flex-basis: 100%;
  font-size: 10px;
  font-weight: 800;
  padding: 7px 9px;
}

.cue-choice-shell {
  background: rgba(114, 226, 189, 0.065);
  border: 1px solid rgba(114, 226, 189, 0.2);
  border-radius: 7px;
  padding: 7px 9px;
}

.cue-choice-label {
  color: var(--muted);
  display: block;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.13em;
}

.cue-choice-row {
  display: flex;
  gap: 5px;
  margin-top: 5px;
}

.cue-choice {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--line);
  border-radius: 5px;
  color: var(--muted);
  padding: 5px 7px;
}

.cue-choice:hover,
.cue-choice.is-selected {
  background: rgba(199, 243, 106, 0.1);
  border-color: rgba(199, 243, 106, 0.35);
  color: var(--lime);
}

.cue-choice small,
.cue-choice strong {
  display: block;
}

.cue-choice small {
  font-size: 8px;
  font-weight: 800;
}

.cue-choice strong {
  font-size: 11px;
  margin-top: 2px;
}

.cue-pill {
  background: rgba(114, 226, 189, 0.065);
  border: 1px solid rgba(114, 226, 189, 0.2);
  border-radius: 7px;
  padding: 7px 9px;
}

.cue-pill small,
.cue-pill strong,
.cue-pill span {
  display: block;
}

.cue-pill small {
  color: var(--muted);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.13em;
}

.cue-pill strong {
  color: var(--mint);
  font-size: 11px;
  margin-top: 3px;
}

.cue-pill span {
  color: var(--muted);
  font-size: 9px;
  margin-top: 3px;
}

.bench-card {
  background: rgba(15, 32, 32, 0.66);
  border: 1px solid var(--line);
  border-radius: 15px;
  margin-top: 35px;
  padding: 20px;
}

.bench-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.bench-pill {
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 11px;
  padding: 7px 10px;
}

/* Premium DJ-software treatment shared with the SetFlow sales site. */
h1,
h2,
h3 {
  font-family: var(--font-display);
}

.offline-pill,
.crate-table th,
.stat-card span,
.timeline-time,
.meta-pill,
.rating-pill,
.confidence-pill,
.cue-choice-label,
.cue-pill small,
.suffix-input b {
  font-family: var(--font-mono);
}

.panel,
.stat-card,
.track-card,
.bench-card {
  backdrop-filter: blur(18px);
}

.panel {
  background: linear-gradient(152deg, rgba(24, 17, 45, 0.9), rgba(11, 9, 22, 0.92));
}

.settings-panel {
  overflow: hidden;
}

.settings-panel::before {
  background: var(--grad-hot);
  content: "";
  display: block;
  height: 2px;
  opacity: 0.88;
}

.offline-pill {
  background: rgba(34, 230, 207, 0.045);
  border-color: rgba(34, 230, 207, 0.18);
  color: var(--mint);
}

.status-dot {
  background: var(--cyan);
  box-shadow: 0 0 14px rgba(34, 230, 207, 0.95);
}

.button-ghost:hover {
  background: rgba(155, 123, 255, 0.08);
  border-color: rgba(155, 123, 255, 0.28);
  color: var(--ink);
}

.table-input:hover,
.table-input:focus {
  background: rgba(155, 123, 255, 0.055);
  border-color: rgba(155, 123, 255, 0.28);
}

.field input,
.field select {
  background: rgba(255, 255, 255, 0.045);
}

.field input:focus,
.field select:focus {
  border-color: rgba(34, 230, 207, 0.45);
  box-shadow: 0 0 0 3px rgba(34, 230, 207, 0.075);
}

.check-row input {
  accent-color: var(--cyan);
}

.stat-card {
  background: linear-gradient(145deg, rgba(34, 25, 65, 0.76), rgba(15, 11, 29, 0.78));
}

.stat-card strong,
.score-grid strong {
  color: var(--cyan);
}

.timeline-marker span {
  background: var(--cyan);
  box-shadow: 0 0 16px rgba(34, 230, 207, 0.42);
}

.track-card {
  background: linear-gradient(145deg, rgba(26, 19, 48, 0.88), rgba(13, 10, 25, 0.92));
}

.transition-marker span {
  background: var(--pink);
  box-shadow: 0 0 16px rgba(255, 46, 126, 0.44);
}

.transition-card {
  border-left-color: rgba(255, 46, 126, 0.42);
}

.confidence-high,
.rating-excellent {
  background: rgba(34, 230, 207, 0.12);
  color: var(--cyan);
}

.confidence-medium,
.rating-good {
  background: rgba(155, 123, 255, 0.13);
  color: #bca8ff;
}

.cue-choice-shell,
.cue-pill {
  background: rgba(123, 92, 255, 0.07);
  border-color: rgba(155, 123, 255, 0.22);
}

.cue-choice:hover,
.cue-choice.is-selected {
  background: rgba(34, 230, 207, 0.1);
  border-color: rgba(34, 230, 207, 0.36);
  color: var(--cyan);
}

.bench-card {
  background: linear-gradient(145deg, rgba(27, 20, 50, 0.72), rgba(12, 9, 23, 0.78));
}

.toast {
  background: var(--grad-hot);
  border-radius: 8px;
  bottom: 20px;
  color: #090611;
  font-size: 12px;
  font-weight: 800;
  opacity: 0;
  padding: 11px 15px;
  pointer-events: none;
  position: fixed;
  right: 20px;
  transform: translateY(9px);
  transition: 180ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.is-hidden {
  display: none;
}

.pricing-section { max-width: 1000px; }
.pricing-card {
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 0;
  border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--line);
  background: linear-gradient(160deg, rgba(20,16,38,0.85), rgba(10,8,20,0.92));
  position: relative;
}
.pricing-card::before { content: ""; position: absolute; inset: 0; padding: 1px; border-radius: var(--radius-lg); background: var(--grad-hot); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; opacity: 0.6; pointer-events: none; }
.pricing-card > div { padding: clamp(1.8rem, 4vw, 2.8rem); }
.pricing-card h2 { font-size: clamp(1.6rem, 3.5vw, 2.3rem); margin-bottom: 0.8rem; }
.pricing-copy { color: var(--muted); margin-bottom: 1.4rem; }
.pricing-card ul { list-style: none; display: grid; gap: 0.6rem; }
.pricing-card li { position: relative; padding-left: 1.6rem; color: var(--muted); font-size: 0.92rem; }
.pricing-card li::before { content: "▸"; position: absolute; left: 0; color: var(--cyan); }
.price-box {
  border-left: 1px dashed var(--line);
  display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center;
  background: radial-gradient(circle at 50% 0%, rgba(255,46,126,0.14), transparent 70%);
}
.price-box > span { font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.2em; color: var(--muted); }
.price-box strong { font-family: var(--font-display); font-size: clamp(3.5rem, 9vw, 5rem); line-height: 1; margin: 0.5rem 0; }
.price-box strong small { font-size: 0.4em; vertical-align: super; }
.price-box > p { font-family: var(--font-mono); font-size: 0.72rem; color: var(--muted-2); }
.price-box .button { margin-top: 1.5rem; }
.price-box > small { display: block; margin-top: 0.8rem; font-size: 0.7rem; color: var(--muted-2); }

@media (max-width: 930px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 52px;
  }

  .hero-card {
    max-width: 500px;
  }

  .workspace {
    grid-template-columns: 1fr;
  }

  .settings-panel {
    position: static;
  }

  .pricing-card { grid-template-columns: 1fr; }
  .price-box { border-left: none; border-top: 1px dashed var(--line); }
}

@media (max-width: 650px) {
  .topbar,
  .panel-heading,
  .results-heading {
    align-items: start;
    flex-direction: column;
    gap: 15px;
  }

  .topbar {
    padding: 17px 18px;
  }

  main {
    padding-left: 14px;
    padding-right: 14px;
  }

  .hero {
    padding-top: 40px;
  }

  .hero-copy {
    font-size: 14px;
  }

  .drop-zone {
    margin-left: 15px;
    margin-right: 15px;
  }

  .grid-import-card {
    align-items: start;
    flex-direction: column;
    margin-left: 15px;
    margin-right: 15px;
  }

  .crate-toolbar {
    padding-left: 15px;
    padding-right: 15px;
  }

  .results-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .timeline-track,
  .timeline-transition {
    grid-template-columns: 48px 20px minmax(0, 1fr);
  }

  .timeline-marker::before {
    left: 9px;
  }

  .track-card {
    gap: 9px;
    padding: 12px;
  }

  .track-energy-badge {
    display: none;
  }
}