:root {
  --black: #0b0b0b;
  --ink: #141414;
  --panel: #1b1b1b;
  --panel-2: #242424;
  --line: #34312d;
  --paper: #f5f0e8;
  --muted: #a49b90;
  --orange: #23a7ff;
  --orange-dark: #1a72b5;
  --yellow: #f6d75f;
  --blue: #4a9eff;
  --green: #41b883;
  --red: #e64b55;
  --violet: #9b59b6;
  --radius: 8px;
  --shadow: 0 24px 80px rgba(0, 0, 0, .42);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--black);
  color: var(--paper);
  font-family: "Nunito", system-ui, sans-serif;
  line-height: 1.55;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(35,167,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(35,167,255,.03) 1px, transparent 1px);
  background-size: 54px 54px;
  opacity: .5;
  z-index: -1;
}

a { color: inherit; }
button, input, select { font: inherit; }
button:disabled {
  cursor: not-allowed;
  opacity: .55;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  height: 96px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  background: rgba(11, 11, 11, .9);
  border-bottom: 1px solid rgba(35, 167, 255, .35);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}
.brand-logo {
  display: block;
  height: 81px;
  width: auto;
}
.brand-logo-tdb {
  height: 88px;
}

.nav { display: flex; align-items: center; gap: 22px; }
.nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 900;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.nav a:hover { color: var(--orange); }
.nav .nav-cta {
  color: var(--black);
  background: var(--orange);
  padding: 9px 14px;
  border-radius: 6px;
}
.nav .nav-cta.is-locked { background: var(--panel-2); color: var(--muted); border: 1px solid var(--line); }
.language-switcher {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(255,255,255,.035);
}
.language-switcher button {
  min-width: 34px;
  min-height: 30px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 950;
  cursor: pointer;
}
.language-switcher button.active,
.language-switcher button:hover {
  background: var(--orange);
  color: var(--black);
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel);
}
.menu-button span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--paper);
}

.hero {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 48px;
  padding: 56px 32px 72px;
}

.hero-image {
  position: relative;
  width: 100%;
  max-height: 460px;
  object-fit: cover;
  border-radius: 14px;
  box-shadow: var(--shadow);
  order: 2;
}

.channel-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 620px;
  margin-left: min(4vw, 64px);
  order: 1;
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .hero-image {
    max-height: 320px;
    order: 2;
  }
  .hero-content {
    margin-left: 0;
    order: 1;
  }
}

.eyebrow,
.section-kicker,
.app-overline,
.panel-label {
  display: inline-flex;
  align-items: center;
  color: var(--orange);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.hero h1,
.section h2,
.channel-content h2,
.app-topbar h2 {
  margin: 0;
  font-family: "Bangers", cursive;
  letter-spacing: 3px;
  font-weight: 400;
}

.hero h1 {
  font-size: clamp(60px, 11vw, 120px);
  line-height: .84;
  margin-top: 14px;
}

.hero-tagline {
  margin: 8px 0 0;
  color: var(--orange);
  font-family: "Bangers", cursive;
  font-size: clamp(26px, 4vw, 42px);
  letter-spacing: 2px;
}

.hero-copy,
.section-lead,
.channel-content p {
  max-width: 620px;
  color: #d4cbc0;
  font-size: 18px;
  font-weight: 700;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 12px 18px;
  border-radius: 6px;
  border: 1px solid transparent;
  text-decoration: none;
  font-weight: 950;
  cursor: pointer;
}
.button.primary {
  color: var(--black);
  background: var(--orange);
  box-shadow: 4px 4px 0 var(--orange-dark);
}
.button.secondary {
  color: var(--paper);
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.2);
}
.button.youtube {
  color: #fff;
  background: #e62117;
  box-shadow: 4px 4px 0 #8c140e;
}
.channel-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 26px;
}
.button.compact { min-height: 40px; padding: 9px 13px; }
.button.is-locked {
  background: var(--panel-2);
  color: var(--muted);
  border-color: var(--line);
  box-shadow: none;
}

.section {
  padding: 96px 32px;
  max-width: 1180px;
  margin: 0 auto;
}
.split {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: 48px;
  align-items: start;
}
.section h2,
.channel-content h2 { font-size: clamp(42px, 7vw, 72px); line-height: .95; margin-top: 10px; }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.feature-card,
.tone-grid article,
.spool-row {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(27, 27, 27, .82);
}
.feature-card { padding: 20px; }
.feature-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 4px;
}
.feature-spool {
  width: 58px;
  flex: 0 0 auto;
  border-width: 5px;
}
.feature-spool::before { inset: 10px; border-width: 3px; }
.feature-spool::after { inset: 22px; border-width: 2px; }
.feature-tag {
  font-family: "Bangers", cursive;
  font-size: 20px;
  letter-spacing: 2.5px;
  color: var(--orange);
}
.feature-card h3,
.tone-grid h3,
.dashboard-band h3 {
  margin: 14px 0 6px;
  font-size: 19px;
}
.feature-card p,
.tone-grid p,
.spool-meta { color: var(--muted); font-weight: 700; }

.app-section {
  padding: 32px;
  background: linear-gradient(180deg, rgba(35,167,255,.06), transparent);
}
.app-intro {
  max-width: 820px;
  margin: 0 auto 32px;
  text-align: center;
}
.app-intro .section-kicker { justify-content: center; }
.app-intro h2 {
  margin: 14px 0 12px;
  font-size: clamp(28px, 4vw, 42px);
}
.app-intro .section-lead {
  margin: 0 auto;
  max-width: 640px;
}
.app-intro .inline-link {
  color: var(--orange);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 900;
}
.demo-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 12px 0 4px;
  padding: 6px 16px;
  border: 1px solid rgba(35, 167, 255, .45);
  border-radius: 999px;
  background: rgba(35, 167, 255, .12);
  color: var(--orange);
  font-family: "Bangers", cursive;
  font-size: 16px;
  letter-spacing: 3px;
}
.demo-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 0 rgba(35, 167, 255, .6);
  animation: demoPulse 1.8s ease-out infinite;
}
@keyframes demoPulse {
  0%   { box-shadow: 0 0 0 0 rgba(35, 167, 255, .6); }
  70%  { box-shadow: 0 0 0 12px rgba(35, 167, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(35, 167, 255, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .demo-dot { animation: none; }
  .app-nav,
  .app-nav .nav-icon,
  .sidebar-back,
  .sidebar-annex a { transition: none; }
}
.app-shell {
  max-width: 1180px;
  min-height: 650px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 230px 1fr;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(12, 12, 12, .9);
  box-shadow: var(--shadow);
}
.app-sidebar {
  padding: 20px;
  background: #151515;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
}
.app-nav-list {
  display: grid;
  gap: 6px;
}
.app-logo {
  font-family: "Bangers", cursive;
  font-size: 28px;
  letter-spacing: 2px;
}
.app-logo span { color: var(--orange); }
.sidebar-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}
.sidebar-back {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  text-decoration: none;
  transition: color .15s, border-color .15s, background .15s;
}
.sidebar-back:hover {
  color: var(--orange);
  border-color: rgba(35,167,255,.45);
  background: rgba(35,167,255,.08);
}
.sidebar-label {
  margin: 18px 0 8px;
  color: var(--orange);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 2px;
  text-transform: uppercase;
  opacity: .85;
}
.app-nav {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  min-height: 42px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--muted);
  background: transparent;
  font-weight: 900;
  text-align: left;
  padding: 0 12px;
  cursor: pointer;
  transition: color .15s, border-color .15s, background .15s, transform .15s;
}
.app-nav .nav-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  opacity: .75;
  transition: opacity .15s, transform .15s;
}
.app-nav.active,
.app-nav:hover {
  color: var(--orange);
  border-color: rgba(35,167,255,.35);
  background: rgba(35,167,255,.1);
}
.app-nav.active .nav-icon,
.app-nav:hover .nav-icon {
  opacity: 1;
}
.app-nav.active {
  box-shadow: inset 3px 0 0 var(--orange);
}
.workspace-name-side {
  margin-top: 2px;
}
.workspace-name-side input {
  width: 100%;
}
.sidebar-footer {
  margin-top: auto;
  padding-top: 22px;
  display: grid;
  gap: 14px;
}
.sidebar-annex {
  display: grid;
  gap: 8px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.sidebar-annex a {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-decoration: none;
  transition: color .15s;
}
.sidebar-annex a:hover { color: var(--orange); }
.app-main { padding: 24px; min-width: 0; }
.app-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.app-topbar h2 { font-size: 42px; }
.app-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 12px;
}
.workspace-name {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.workspace-name input {
  min-height: 38px;
  border-color: rgba(35,167,255,.28);
  background: rgba(35,167,255,.055);
}
.action-group {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255,255,255,.03);
}
.small-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 12px;
  border-radius: 6px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--paper);
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
}
.small-button:hover {
  background: rgba(35,167,255,.09);
  color: var(--orange);
}
.app-open-button {
  border-color: rgba(35,167,255,.45);
  background: var(--orange);
  color: var(--black);
}
.app-open-button:hover {
  background: #ffc15f;
  color: var(--black);
}
.small-button.danger:hover {
  background: rgba(230,75,85,.09);
  color: var(--red);
}
.app-view { display: none; padding-top: 20px; }
.app-view.active { display: block; }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.stat {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}
.stat span { display: block; color: var(--muted); font-size: 12px; font-weight: 900; text-transform: uppercase; letter-spacing: 1px; }
.stat strong { display: block; margin-top: 8px; font-family: "Bangers", cursive; font-size: 42px; letter-spacing: 1px; }
.stat.danger strong { color: var(--red); }
.stat-link {
  position: relative;
  cursor: pointer;
  transition: border-color .15s, background .15s, transform .15s;
}
.stat-link::after {
  content: "↗";
  position: absolute;
  top: 10px;
  right: 14px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 950;
  opacity: .5;
  transition: opacity .15s, transform .15s, color .15s;
}
.stat-link:hover,
.stat-link:focus-visible {
  outline: none;
  border-color: var(--orange);
  background: rgba(35,167,255,.06);
  transform: translateY(-2px);
}
.stat-link:hover::after,
.stat-link:focus-visible::after {
  opacity: 1;
  color: var(--orange);
  transform: translate(2px, -2px);
}

.filter-chip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  margin-bottom: 10px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 1px;
}
.filter-chip-low {
  background: rgba(230, 75, 85, .12);
  border: 1px solid rgba(230, 75, 85, .45);
  color: var(--red);
}
.filter-chip-low strong {
  color: var(--red);
  font-weight: 950;
  text-transform: uppercase;
}
.filter-chip-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 50%;
  background: rgba(230, 75, 85, .22);
  color: var(--red);
  font-size: 20px;
  font-weight: 950;
  line-height: 1;
  cursor: pointer;
  transition: background .15s, transform .15s;
}
.filter-chip-close:hover {
  background: rgba(230, 75, 85, .4);
  transform: scale(1.1);
}

.dashboard-band {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 14px;
}
.dashboard-band > div,
.cost-result {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}
.bar-list { display: grid; gap: 12px; }
.material-row {
  display: grid;
  grid-template-columns: 70px 1fr 42px;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-weight: 900;
}
.bar-track { height: 9px; background: #303030; border-radius: 99px; overflow: hidden; }
.bar-fill { height: 100%; background: var(--orange); border-radius: 99px; }

.stock-toolbar,
.cost-grid {
  display: grid;
  gap: 10px;
}
input, select {
  min-height: 42px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #101010;
  color: var(--paper);
  padding: 0 12px;
  outline: none;
}
input[type="color"] {
  padding: 4px;
  cursor: pointer;
}
input:focus, select:focus { border-color: var(--orange); }
.workflow-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}
.workflow-action {
  min-height: 46px;
  border: 1px solid rgba(35,167,255,.35);
  border-radius: 6px;
  background: rgba(35,167,255,.08);
  color: var(--paper);
  font-weight: 950;
  text-align: left;
  padding: 0 14px;
  cursor: pointer;
}
.workflow-action:hover { border-color: var(--orange); color: var(--orange); }
.stock-toolbar { grid-template-columns: 1fr 210px; margin-bottom: 14px; }
.spool-list { display: grid; gap: 10px; }
.spool-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}
.form-section {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.form-section label,
.spool-form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.form-section .full,
.cost-grid .wide { grid-column: 1 / -1; }
.form-section .span-2 { grid-column: span 2; }
.cost-spool-field {
  padding: 12px 14px;
  border: 1px solid rgba(35,167,255,.4);
  border-radius: 10px;
  background: rgba(35,167,255,.06);
}
.cost-spool-row {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  margin-top: 4px;
}
.cost-spool-visual {
  width: 64px;
  border-width: 5px;
  box-shadow: inset 0 0 0 3px rgba(255,255,255,.08), 0 6px 16px rgba(0,0,0,.32);
}
.cost-spool-visual::before { inset: 11px; border-width: 3px; }
.cost-spool-visual::after { inset: 24px; border-width: 2px; }
.cost-spool-label {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.custom-select {
  position: relative;
  width: 100%;
}
.custom-select-trigger {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 56px;
  padding: 0 14px;
  border: 1px solid rgba(35,167,255,.45);
  border-radius: 6px;
  background: #0c0c0c;
  color: var(--paper);
  font-size: 15px;
  font-weight: 900;
  text-align: left;
  cursor: pointer;
  transition: border-color .15s;
}
.custom-select-trigger:hover { border-color: var(--orange); }
.custom-select-trigger:focus { border-color: var(--orange); outline: none; }
.custom-select-trigger[aria-expanded="true"] { border-color: var(--orange); }
.custom-select-trigger:disabled { opacity: .55; cursor: not-allowed; }
.cs-dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--dot-color, #444);
  border: 1px solid rgba(255,255,255,.18);
  box-shadow: inset 0 0 0 2px rgba(0,0,0,.25);
  flex-shrink: 0;
}
.cs-label {
  flex: 1 1 auto;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cs-arrow {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--muted);
  transition: transform .2s;
}
.custom-select-trigger[aria-expanded="true"] .cs-arrow { transform: rotate(180deg); }

.custom-select-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 50;
  max-height: 320px;
  overflow-y: auto;
  background: #141414;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 16px 36px rgba(0,0,0,.55);
  padding: 6px;
  display: grid;
  gap: 2px;
}
.custom-select-menu[hidden] { display: none; }
.cs-option {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 10px 12px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--paper);
  text-align: left;
  cursor: pointer;
  font: inherit;
}
.cs-option:hover,
.cs-option:focus,
.cs-option.is-selected {
  background: rgba(35,167,255,.14);
  outline: none;
}
.cs-option.is-selected { box-shadow: inset 3px 0 0 var(--orange); }
.cs-option-main {
  display: grid;
  gap: 2px;
  flex: 1 1 auto;
  min-width: 0;
}
.cs-option-name {
  font-weight: 900;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cs-option-meta {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}
.cs-empty {
  padding: 18px;
  text-align: center;
  color: var(--muted);
  font-weight: 800;
  font-size: 13px;
}
.form-advanced {
  border: 1px dashed rgba(35,167,255,.3);
  border-radius: var(--radius);
  background: rgba(35,167,255,.04);
}
.form-advanced summary {
  list-style: none;
  cursor: pointer;
  padding: 12px 16px;
  color: var(--orange);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 2px;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 8px;
}
.form-advanced summary::-webkit-details-marker { display: none; }
.form-advanced summary::before {
  content: "+";
  display: inline-flex;
  width: 22px;
  height: 22px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid rgba(35,167,255,.45);
  font-size: 18px;
  font-weight: 950;
  transition: transform .15s;
}
.form-advanced[open] summary::before { content: "−"; transform: rotate(0); }
.form-advanced[open] summary { border-bottom: 1px solid rgba(35,167,255,.18); }
.form-advanced .form-section { padding: 14px 16px; }
.select-add {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 42px;
  gap: 8px;
}
.mini-button {
  min-height: 42px;
  border: 1px solid rgba(35,167,255,.45);
  border-radius: 6px;
  background: rgba(35,167,255,.1);
  color: var(--orange);
  font-size: 20px;
  font-weight: 950;
  cursor: pointer;
}
.custom-add-row,
.custom-color-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}
.custom-add-row[hidden] { display: none; }
.mini-save {
  min-height: 42px;
  border: 1px solid rgba(35,167,255,.45);
  border-radius: 6px;
  background: var(--orange);
  color: var(--black);
  font-weight: 950;
  padding: 0 12px;
  cursor: pointer;
}
.color-field {
  display: grid;
  gap: 10px;
}
.field-label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.color-palette {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(92px, 1fr));
  gap: 8px;
}
.color-choice {
  --choice-color: #23a7ff;
  position: relative;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #101010;
  color: var(--paper);
  font-size: 12px;
  font-weight: 900;
  text-align: left;
  padding: 0 9px 0 38px;
  overflow: hidden;
  cursor: pointer;
}
.color-choice::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 50%;
  width: 18px;
  height: 18px;
  transform: translateY(-50%);
  border-radius: 50%;
  background: var(--choice-color);
  border: 2px solid rgba(255,255,255,.22);
}
.color-choice.selected {
  border-color: var(--orange);
  box-shadow: inset 0 0 0 1px rgba(35,167,255,.4);
  color: var(--orange);
}
.color-choice span {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.custom-color-row {
  grid-template-columns: minmax(0, 1fr) 58px auto;
  padding-top: 2px;
}
.form-preview {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border: 1px dashed rgba(35,167,255,.35);
  border-radius: var(--radius);
  background: rgba(0,0,0,.18);
}
.form-preview span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.form-preview strong { font-size: 18px; }
.spool-row {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto 90px auto;
  align-items: center;
  gap: 14px;
  padding: 14px;
}
.spool-row.is-low {
  border-color: rgba(230,75,85,.5);
  background: linear-gradient(90deg, rgba(230,75,85,.08), rgba(27,27,27,.82) 38%);
}
.spool-visual {
  --spool-color: #23a7ff;
  position: relative;
  width: 64px;
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, #090909 0 17%, transparent 18%),
    radial-gradient(circle at 50% 50%, rgba(255,255,255,.24) 0 24%, transparent 25%),
    conic-gradient(from 90deg, color-mix(in srgb, var(--spool-color), #000 18%), var(--spool-color), color-mix(in srgb, var(--spool-color), #fff 12%), var(--spool-color), color-mix(in srgb, var(--spool-color), #000 25%));
  border: 6px solid #101010;
  box-shadow: inset 0 0 0 3px rgba(255,255,255,.08), 0 10px 20px rgba(0,0,0,.32);
}
.spool-visual::before,
.spool-visual::after {
  content: "";
  position: absolute;
  inset: 12px;
  border-radius: 50%;
  border: 4px solid rgba(0,0,0,.42);
}
.spool-visual::after {
  inset: 24px;
  background: #0a0a0a;
  border: 3px solid rgba(255,255,255,.18);
}
.preview-spool {
  width: 78px;
  flex: 0 0 auto;
}
.spool-name { font-weight: 950; }
.spool-tag {
  justify-self: start;
  padding: 4px 8px;
  border-radius: 5px;
  background: rgba(74, 158, 255, .14);
  color: var(--blue);
  font-size: 12px;
  font-weight: 950;
}
.spool-weight { font-family: "Bangers", cursive; font-size: 24px; }
.spool-progress {
  grid-column: 2 / -1;
  height: 7px;
  background: #303030;
  border-radius: 99px;
  overflow: hidden;
}
.spool-progress span {
  display: block;
  height: 100%;
  background: var(--orange);
  border-radius: 99px;
}
.stock-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  align-items: end;
}
.stock-actions label {
  grid-column: 1 / -1;
  display: grid;
  gap: 4px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.stock-actions input {
  min-height: 34px;
  padding: 0 9px;
}
.save-weight-button,
.delete-spool-button {
  min-height: 34px;
  border: 1px solid rgba(35,167,255,.4);
  border-radius: 6px;
  background: rgba(35,167,255,.08);
  color: var(--orange);
  font-weight: 950;
  cursor: pointer;
}
.save-weight-button {
  border-color: rgba(65,184,131,.45);
  color: var(--green);
  background: rgba(65,184,131,.08);
}
.delete-spool-button {
  border-color: rgba(230,75,85,.45);
  color: var(--red);
  background: rgba(230,75,85,.08);
}
.cost-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cost-grid label { color: var(--muted); font-size: 12px; font-weight: 900; text-transform: uppercase; letter-spacing: 1px; }
.cost-grid input,
.cost-grid select { margin-top: 6px; }
.cost-breakdown {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}
.cost-breakdown span {
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255,255,255,.035);
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.cost-breakdown strong {
  color: var(--paper);
  font-size: 18px;
  letter-spacing: 0;
  text-transform: none;
}
.cost-result { margin-top: 14px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.cost-result span { color: var(--muted); font-weight: 900; text-transform: uppercase; letter-spacing: 1px; }
.cost-result strong { color: var(--orange); font-family: "Bangers", cursive; font-size: 54px; letter-spacing: 2px; }
.deduct-panel {
  display: grid;
  justify-items: end;
  gap: 10px;
  text-align: right;
}
.deduct-panel span {
  max-width: 260px;
  color: var(--paper);
  text-transform: none;
  letter-spacing: 0;
}

.app-page {
  min-height: 100vh;
  overflow-x: hidden;
}
.app-page::before {
  opacity: .32;
}
.app-page-wrap {
  min-height: 100vh;
}
.app-section-full {
  min-height: 100vh;
  padding: 18px;
  display: grid;
}
.app-section-full .app-shell {
  width: min(1520px, 100%);
  max-width: none;
  min-height: calc(100vh - 36px);
}
.app-section-full .app-main {
  display: grid;
  grid-template-rows: auto 1fr;
}
.app-page .app-topbar h1 {
  margin: 0;
  font-family: "Bangers", cursive;
  font-size: 42px;
  line-height: 1;
  letter-spacing: 1px;
}
.app-logo-link {
  display: block;
  color: var(--paper);
  text-decoration: none;
}
.app-language-switcher {
  width: 100%;
  justify-content: center;
}

.channel-section {
  position: relative;
  min-height: 780px;
  overflow: hidden;
  display: flex;
  align-items: center;
  padding: 96px 32px;
}
.channel-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(8,8,8,.96) 0%, rgba(8,8,8,.8) 40%, rgba(8,8,8,.32) 100%),
    linear-gradient(0deg, rgba(8,8,8,.94), transparent 45%);
}
.channel-content {
  position: relative;
  max-width: 780px;
  margin-left: min(5vw, 72px);
}
.tone-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 28px;
}
.tone-grid article { padding: 18px; background: rgba(20, 20, 20, .74); }

.contact-hero {
  min-height: calc(100svh - 96px);
  display: grid;
  grid-template-columns: minmax(0, .82fr) minmax(320px, .72fr);
  align-items: center;
  gap: 38px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 96px 32px;
}
.contact-content h1 {
  margin: 10px 0 18px;
  font-size: clamp(54px, 9vw, 108px);
  line-height: .9;
}
.contact-direct {
  margin-top: 22px;
  color: var(--muted);
  font-weight: 900;
}
.contact-direct a {
  color: var(--orange);
  text-decoration: none;
}
.contact-direct a:hover {
  text-decoration: underline;
}
.contact-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 24px;
  border: 1px solid rgba(35,167,255,.35);
  border-radius: var(--radius);
  background: rgba(27, 27, 27, .86);
  box-shadow: var(--shadow);
}
.contact-form label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.contact-form .full {
  grid-column: 1 / -1;
}
textarea {
  width: 100%;
  min-height: 180px;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #101010;
  color: var(--paper);
  padding: 12px;
  outline: none;
  font: inherit;
}
textarea:focus {
  border-color: var(--orange);
}
.contact-note {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.legal-page {
  max-width: 980px;
  margin: 0 auto;
  padding: 82px 32px 96px;
}
.legal-hero {
  margin-bottom: 34px;
}
.legal-hero h1 {
  margin: 10px 0 18px;
  font-size: clamp(48px, 8vw, 92px);
  line-height: .9;
}
.legal-content {
  display: grid;
  gap: 14px;
}
.legal-content article {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(27, 27, 27, .82);
}
.legal-content h2 {
  margin: 0 0 8px;
  font-size: 24px;
}
.legal-content p {
  margin: 8px 0 0;
  color: var(--muted);
  font-weight: 800;
}
.legal-content a {
  color: var(--orange);
  text-decoration: none;
}
.legal-updated {
  margin: 24px 0 0;
  padding-top: 18px;
  border-top: 1px dashed var(--line);
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-align: right;
}

/* Cookie / storage notice banner */
.cookie-banner {
  position: fixed;
  bottom: 16px;
  left: 16px;
  right: 16px;
  max-width: 680px;
  margin: 0 auto;
  z-index: 80;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 16px 20px;
  background: #141414;
  border: 1px solid rgba(35, 167, 255, .45);
  border-radius: 12px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, .6);
  animation: cookieSlideUp .35s ease;
}
@keyframes cookieSlideUp {
  from { transform: translateY(60px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.cookie-title {
  display: block;
  margin-bottom: 4px;
  color: var(--orange);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 2px;
  text-transform: uppercase;
}
.cookie-content p {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--paper);
}
.cookie-content strong { color: var(--orange); }
.cookie-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}
.cookie-banner.is-closing {
  opacity: 0;
  transform: translateY(60px);
  transition: opacity .3s ease, transform .3s ease;
}
@media (max-width: 640px) {
  .cookie-banner {
    grid-template-columns: 1fr;
    left: 12px;
    right: 12px;
    bottom: 12px;
    padding: 14px 16px;
  }
  .cookie-actions { justify-content: flex-end; flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) {
  .cookie-banner { animation: none; }
  .cookie-banner.is-closing { transition: none; }
}
.legal-content a:hover {
  text-decoration: underline;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 34px 32px;
  border-top: 1px solid var(--line);
  background: #080808;
}
.footer p { margin: 4px 0 0; color: var(--muted); }
.footer-links { display: flex; gap: 16px; flex-wrap: wrap; }
.footer-links a { color: var(--muted); text-decoration: none; font-weight: 900; }
.footer-links a:hover { color: var(--orange); }

@media (max-width: 980px) {
  .menu-button { display: block; }
  .nav {
    position: absolute;
    top: 96px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 14px 28px 22px;
    background: rgba(11,11,11,.98);
    border-bottom: 1px solid var(--line);
  }
  .nav.open { display: flex; }
  .split,
  .app-shell,
  .contact-hero { grid-template-columns: 1fr; }
  .app-sidebar {
    border-right: none;
    border-bottom: 1px solid var(--line);
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 14px 16px;
  }
  .sidebar-top {
    margin: 0;
  }
  .sidebar-label { display: none; }
  .app-nav-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
  }
  .app-nav {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 58px;
    padding: 6px 4px;
    gap: 4px;
    font-size: 11px;
    line-height: 1.15;
    text-align: center;
  }
  .app-nav.active {
    box-shadow: inset 0 3px 0 var(--orange);
  }
  .app-nav .nav-icon { width: 20px; height: 20px; }
  .workspace-name-side { margin: 0; }
  .sidebar-footer {
    margin-top: 0;
    padding-top: 12px;
    border-top: 1px solid var(--line);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
  }
  .sidebar-annex {
    grid-template-columns: repeat(3, auto);
    gap: 14px;
    border-top: none;
    padding-top: 0;
  }
  .app-language-switcher { width: auto; margin: 0; }
  .stats-grid,
  .dashboard-band,
  .cost-grid,
  .cost-breakdown,
  .tone-grid { grid-template-columns: 1fr; }
  .form-section,
  .contact-form,
  .stock-toolbar { grid-template-columns: 1fr; }
  .spool-row { grid-template-columns: 64px minmax(0, 1fr) 80px; }
  .spool-tag,
  .spool-progress { grid-column: 2 / -1; }
  .cost-result { align-items: flex-start; flex-direction: column; }
  .deduct-panel { justify-items: start; text-align: left; }
  .app-topbar { align-items: flex-start; flex-direction: column; }
  .app-actions {
    width: 100%;
    justify-content: flex-start;
  }
  .action-group {
    width: fit-content;
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .site-header { padding: 0 16px; }
  .hero,
  .section,
  .app-section,
  .channel-section,
  .contact-hero,
  .legal-page { padding-left: 18px; padding-right: 18px; }
  .hero-content,
  .channel-content { margin-left: 0; }
  .hero-copy,
  .section-lead,
  .channel-content p { font-size: 16px; }
  .feature-grid { grid-template-columns: 1fr; }
  .footer { flex-direction: column; align-items: flex-start; gap: 18px; }
  .footer-links {
    flex-direction: column;
    gap: 10px;
    width: 100%;
  }
  .footer-links a { padding: 6px 0; }
  .app-main { padding: 16px; }
}

/* ============================================
 * Spool row : clickable + quick deduct button
 * ============================================ */
.spool-row {
  cursor: pointer;
  transition: border-color .15s, background .15s, transform .15s;
}
.spool-row:hover {
  border-color: rgba(35,167,255,.45);
  background: rgba(35,167,255,.04);
}
.spool-row:focus-within {
  outline: none;
  border-color: var(--orange);
}
.spool-info { min-width: 0; display: grid; gap: 4px; }
.spool-row-actions {
  display: inline-flex;
  gap: 6px;
  justify-self: end;
}
.spool-quick,
.spool-delete {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  cursor: pointer;
  transition: background .15s, transform .15s, border-color .15s;
}
.spool-quick {
  border: 1px solid rgba(35,167,255,.45);
  background: rgba(35,167,255,.1);
  color: var(--orange);
}
.spool-quick:hover {
  background: rgba(35,167,255,.22);
  transform: scale(1.05);
}
.spool-quick svg { width: 18px; height: 18px; }
.spool-delete {
  border: 1px solid rgba(230,75,85,.4);
  background: rgba(230,75,85,.08);
  color: var(--red);
}
.spool-delete:hover {
  background: rgba(230,75,85,.22);
  border-color: var(--red);
  transform: scale(1.05);
}
.spool-delete svg { width: 16px; height: 16px; }

/* Inline quick-deduct popup */
.quick-deduct {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 8px;
  align-items: end;
  padding: 10px;
  margin-top: 4px;
  border: 1px solid rgba(35,167,255,.4);
  border-radius: 10px;
  background: rgba(35,167,255,.07);
}
.quick-deduct label {
  display: grid;
  gap: 4px;
  color: var(--orange);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.quick-deduct input { min-height: 38px; }
.quick-deduct button {
  min-height: 38px;
  padding: 0 14px;
  border-radius: 6px;
  font-weight: 950;
  cursor: pointer;
}
.quick-deduct .qd-ok {
  background: var(--orange);
  border: 1px solid var(--orange);
  color: var(--black);
}
.quick-deduct .qd-cancel {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--muted);
}
.quick-deduct .qd-cancel:hover { color: var(--paper); }

/* ============================================
 * Dashboard suggestion band
 * ============================================ */
.suggestion-band {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}
.suggestion-band:empty { display: none; }
.suggestion {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(27,27,27,.7);
  color: var(--paper);
  font-weight: 900;
  text-align: left;
  cursor: pointer;
  transition: border-color .15s, background .15s;
}
.suggestion.is-button:hover {
  border-color: var(--orange);
  background: rgba(35,167,255,.08);
}
.suggestion:not(.is-button) { cursor: default; }
.suggestion-label {
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--orange);
}
.suggestion-value { font-size: 14px; line-height: 1.3; }
.suggestion.warn { border-color: rgba(230,75,85,.55); background: rgba(230,75,85,.08); }
.suggestion.warn .suggestion-label { color: var(--red); }

/* ============================================
 * Prints history view
 * ============================================ */
.prints-toolbar {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  margin-bottom: 14px;
}
.prints-list { display: grid; gap: 8px; }
.print-row {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(27,27,27,.7);
}
.print-color {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--print-color, var(--orange));
  border: 1px solid rgba(255,255,255,.18);
  justify-self: center;
}
.print-main { display: grid; gap: 2px; min-width: 0; }
.print-name { font-weight: 950; }
.print-meta { color: var(--muted); font-size: 12px; font-weight: 700; }
.print-grams { font-family: "Bangers", cursive; font-size: 20px; letter-spacing: 1px; }
.print-cost { color: var(--muted); font-weight: 900; }
.prints-empty {
  padding: 28px;
  text-align: center;
  color: var(--muted);
  font-weight: 800;
  border: 1px dashed var(--line);
  border-radius: 10px;
}

/* ============================================
 * Spool drawer (slide-over panel)
 * ============================================ */
.spool-drawer {
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
  visibility: hidden;
}
.spool-drawer.open {
  pointer-events: auto;
  visibility: visible;
}
.drawer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.55);
  opacity: 0;
  transition: opacity .2s ease;
}
.spool-drawer.open .drawer-backdrop { opacity: 1; }
.drawer-panel {
  position: absolute;
  right: 0;
  top: 0;
  height: 100%;
  width: min(440px, 100%);
  background: #141414;
  border-left: 1px solid var(--line);
  box-shadow: -20px 0 40px rgba(0,0,0,.5);
  transform: translateX(100%);
  transition: transform .25s ease;
  display: flex;
  flex-direction: column;
}
.spool-drawer.open .drawer-panel { transform: translateX(0); }
.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(35,167,255,.08), transparent);
}
.drawer-header h3 {
  margin: 0;
  font-family: "Bangers", cursive;
  font-size: 26px;
  letter-spacing: 2px;
}
.drawer-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: color .15s, border-color .15s;
}
.drawer-close:hover { color: var(--orange); border-color: var(--orange); }
.drawer-body {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 22px;
  display: grid;
  gap: 18px;
}
.drawer-summary {
  display: grid;
  grid-template-columns: 80px 1fr;
  align-items: center;
  gap: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.drawer-summary .spool-visual { width: 78px; }
.drawer-summary .summary-meta { display: grid; gap: 4px; }
.drawer-summary .summary-name { font-family: "Bangers", cursive; font-size: 22px; letter-spacing: 1px; }
.drawer-summary .summary-detail { color: var(--muted); font-weight: 800; font-size: 13px; }
.drawer-section h4 {
  margin: 0 0 10px;
  color: var(--orange);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 2px;
  text-transform: uppercase;
}
.drawer-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.drawer-form label {
  display: grid;
  gap: 4px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.drawer-form .full { grid-column: 1 / -1; }
.drawer-quick {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  padding: 12px;
  border: 1px solid rgba(35,167,255,.4);
  border-radius: 10px;
  background: rgba(35,167,255,.06);
}
.drawer-quick label {
  display: grid;
  gap: 4px;
  color: var(--orange);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.drawer-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  padding-top: 6px;
}
.drawer-actions .button { flex: 1 1 auto; }
.drawer-history {
  display: grid;
  gap: 6px;
  max-height: 180px;
  overflow-y: auto;
}
.drawer-history-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(27,27,27,.7);
  border: 1px solid var(--line);
}
.drawer-history-date { color: var(--muted); font-size: 11px; font-weight: 800; }
.drawer-history-grams { font-family: "Bangers", cursive; font-size: 18px; color: var(--orange); }
.drawer-empty { color: var(--muted); font-size: 13px; font-weight: 800; }

@media (max-width: 640px) {
  .drawer-panel { width: 100%; border-left: none; }
  .drawer-form { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .drawer-backdrop,
  .drawer-panel,
  .spool-row,
  .spool-quick { transition: none; }
}

/* ============================================
 * Tete de Buses page
 * ============================================ */
.tdb-hero {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  display: flex;
  align-items: center;
  padding: 72px 32px;
}
.tdb-hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.tdb-hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(11,11,11,.94) 0%, rgba(11,11,11,.74) 45%, rgba(11,11,11,.3) 100%),
    linear-gradient(0deg, rgba(11,11,11,.85) 0%, transparent 50%);
}
.tdb-hero-content {
  position: relative;
  z-index: 2;
  max-width: 640px;
  margin-left: min(4vw, 64px);
}
.tdb-hero h1 {
  margin: 14px 0 12px;
  font-family: "Bangers", cursive;
  font-size: clamp(56px, 10vw, 116px);
  line-height: .88;
  letter-spacing: 3px;
}
.tdb-tagline {
  margin: 6px 0 16px;
  color: var(--orange);
  font-family: "Bangers", cursive;
  font-size: clamp(22px, 3vw, 32px);
  letter-spacing: 2px;
}
.tdb-copy {
  max-width: 540px;
  color: #d4cbc0;
  font-size: 17px;
  font-weight: 700;
}
.tdb-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 26px;
}

.tdb-section { padding-top: 72px; padding-bottom: 24px; }
.tdb-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
  margin-top: 28px;
}
.tdb-card {
  position: relative;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(27, 27, 27, .82);
  display: grid;
  gap: 8px;
  transition: border-color .15s, transform .15s;
}
.tdb-card:hover {
  border-color: rgba(35,167,255,.4);
  transform: translateY(-2px);
}
.tdb-card h3 {
  margin: 4px 0 0;
  font-size: 18px;
}
.tdb-card p {
  margin: 0;
  color: var(--muted);
  font-weight: 700;
  font-size: 14px;
  line-height: 1.45;
}
.tdb-meta {
  margin-top: 6px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}
.tdb-badge {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  padding: 4px 10px;
  border-radius: 999px;
  font-family: "Bangers", cursive;
  font-size: 14px;
  letter-spacing: 2px;
  border: 1px solid transparent;
}
.tdb-verdict-good {
  background: rgba(65,184,131,.16);
  color: var(--green);
  border-color: rgba(65,184,131,.45);
}
.tdb-verdict-mid {
  background: rgba(246,215,95,.16);
  color: var(--yellow);
  border-color: rgba(246,215,95,.45);
}
.tdb-verdict-bad {
  background: rgba(230,75,85,.16);
  color: var(--red);
  border-color: rgba(230,75,85,.45);
}
.tdb-status-done {
  background: rgba(65,184,131,.16);
  color: var(--green);
  border-color: rgba(65,184,131,.45);
}
.tdb-status-running {
  background: rgba(35,167,255,.16);
  color: var(--orange);
  border-color: rgba(35,167,255,.45);
}
.tdb-status-dead {
  background: rgba(150,150,150,.16);
  color: var(--muted);
  border-color: rgba(150,150,150,.4);
}
.tdb-coming {
  background: rgba(74,158,255,.16);
  color: var(--blue);
  border-color: rgba(74,158,255,.45);
}
.tdb-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}
.tdb-card-link:focus-visible {
  outline: none;
}
.tdb-card-link:focus-visible .tdb-card {
  border-color: var(--orange);
  box-shadow: 0 0 0 2px rgba(35,167,255,.45);
}
.tdb-card-link:hover .tdb-card {
  border-color: rgba(35,167,255,.55);
  transform: translateY(-3px);
  box-shadow: 0 14px 32px rgba(0,0,0,.32);
}
.tdb-watch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
  color: var(--orange);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  transition: gap .2s;
}
.tdb-watch svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}
.tdb-card-link:hover .tdb-watch { gap: 10px; }
.tdb-card.has-thumb { padding-top: 0; overflow: hidden; }
.tdb-card.has-thumb > *:not(.tdb-thumb) { padding-left: 0; padding-right: 0; }
.tdb-thumb {
  position: relative;
  margin: -1px -20px 14px;
  aspect-ratio: 16 / 9;
  background: #000;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.tdb-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .35s ease;
}
.tdb-card-link:hover .tdb-thumb img { transform: scale(1.04); }
.tdb-thumb-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, transparent 55%, rgba(0,0,0,.35));
  pointer-events: none;
}
.tdb-thumb-play svg {
  width: 56px;
  height: 56px;
  padding: 14px 12px 14px 18px;
  border-radius: 999px;
  background: rgba(0,0,0,.65);
  color: var(--paper);
  backdrop-filter: blur(4px);
  transition: transform .25s ease, background .25s ease, color .25s ease;
}
.tdb-card-link:hover .tdb-thumb-play svg {
  transform: scale(1.1);
  background: var(--orange);
  color: var(--black);
}
.tdb-card-teaser {
  border-style: dashed;
  background: rgba(27,27,27,.5);
}
.tdb-card-teaser h3 { color: var(--muted); }
.tdb-card-teaser a {
  color: var(--orange);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.tdb-subscribe {
  margin: 32px 32px 56px;
  padding: 56px 32px;
  border-radius: var(--radius);
  border: 1px solid rgba(35,167,255,.4);
  background:
    radial-gradient(circle at 20% 0%, rgba(35,167,255,.16), transparent 55%),
    radial-gradient(circle at 90% 100%, rgba(230,75,85,.14), transparent 55%),
    #141414;
  text-align: center;
}
.tdb-subscribe-content {
  max-width: 620px;
  margin: 0 auto;
}
.tdb-subscribe h2 {
  margin: 8px 0 12px;
  font-family: "Bangers", cursive;
  font-size: clamp(36px, 5vw, 56px);
  letter-spacing: 3px;
}
.tdb-subscribe p {
  color: var(--muted);
  font-size: 16px;
  font-weight: 700;
  margin: 0 auto 20px;
  max-width: 520px;
}
.tdb-subscribe .tdb-hero-actions {
  justify-content: center;
  margin-top: 22px;
}

@media (max-width: 900px) {
  .tdb-hero { min-height: 460px; padding: 56px 22px; }
  .tdb-hero-content { margin-left: 0; }
  .tdb-subscribe { margin: 24px 18px 40px; padding: 40px 22px; }
}

/* ============================================
 * Construction / Roadmap page
 * ============================================ */
.construction-page {
  max-width: 1180px;
  margin: 0 auto;
  padding: 56px 32px 24px;
}
.construction-hero {
  text-align: center;
  padding: 32px 0 56px;
  border-bottom: 1px dashed var(--line);
  margin-bottom: 56px;
}
.construction-hero .section-kicker { justify-content: center; }
.construction-hero h1 {
  margin: 16px 0 14px;
  font-family: "Bangers", cursive;
  font-size: clamp(44px, 7vw, 84px);
  line-height: .92;
  letter-spacing: 3px;
}
.construction-hero .section-lead {
  margin: 0 auto;
  max-width: 720px;
}

.construction-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px;
  border: 1px solid rgba(245, 215, 95, .55);
  border-radius: 999px;
  background: rgba(246, 215, 95, .12);
  color: var(--yellow);
  font-family: "Bangers", cursive;
  font-size: 16px;
  letter-spacing: 3px;
  text-transform: uppercase;
}
.construction-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--yellow);
  box-shadow: 0 0 0 0 rgba(246, 215, 95, .6);
  animation: constructionPulse 1.8s ease-out infinite;
}
@keyframes constructionPulse {
  0%   { box-shadow: 0 0 0 0 rgba(246, 215, 95, .6); }
  70%  { box-shadow: 0 0 0 10px rgba(246, 215, 95, 0); }
  100% { box-shadow: 0 0 0 0 rgba(246, 215, 95, 0); }
}

.construction-progress {
  max-width: 720px;
  margin: 36px auto 0;
}
.construction-progress-bar {
  position: relative;
  height: 10px;
  border-radius: 99px;
  background: rgba(255,255,255,.06);
  border: 1px solid var(--line);
  overflow: hidden;
  margin-bottom: 14px;
}
.construction-progress-bar span {
  display: block;
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--green), var(--orange));
}
.construction-progress-meta {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--muted);
  text-align: center;
}
.construction-progress-meta strong { color: var(--orange); }
.construction-progress-meta .muted { opacity: .5; }

.construction-section {
  margin: 0 0 56px;
}
.construction-section h2 {
  margin: 8px 0 24px;
  font-family: "Bangers", cursive;
  font-size: clamp(28px, 4.5vw, 44px);
  letter-spacing: 2px;
}

.construction-cta {
  margin: 24px 0 48px;
  padding: 48px 32px;
  border-radius: var(--radius);
  border: 1px solid rgba(35, 167, 255, .4);
  background:
    radial-gradient(circle at 15% 10%, rgba(35, 167, 255, .14), transparent 60%),
    radial-gradient(circle at 90% 90%, rgba(245, 166, 35, .12), transparent 55%),
    #141414;
  text-align: center;
}
.construction-cta-content { max-width: 680px; margin: 0 auto; }
.construction-cta h2 {
  margin: 8px 0 14px;
  font-family: "Bangers", cursive;
  font-size: clamp(32px, 5vw, 52px);
  letter-spacing: 2px;
}
.construction-cta p {
  margin: 0 auto 24px;
  color: var(--muted);
  font-weight: 700;
  max-width: 540px;
}
.construction-cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

@media (max-width: 640px) {
  .construction-page { padding: 32px 18px 18px; }
  .construction-progress-meta { grid-template-columns: 1fr 1fr; }
  .construction-progress-meta .muted { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .construction-dot { animation: none; }
}
