:root {
  --bg-color: #0d1117;
  --panel: #161b22;
  --panel-strong: #1c2430;
  --text-primary: #ffffff;
  --text-secondary: #b7c0ce;
  --text-muted: #8b949e;
  --accent-blue: #2f81f7;
  --accent-hover: #1f6feb;
  --accent-orange: #ff9f43;
  --border: rgba(255, 255, 255, 0.12);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.32);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem 1.25rem;
  padding: 1rem 4%;
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  max-width: 100%;
  background: rgba(13, 17, 23, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 800;
  font-size: 1.4rem;
  color: white;
  text-decoration: none;
  white-space: nowrap;
}

.nav-brand img {
  height: 32px;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem 0.95rem;
  min-width: 0;
}

.nav-links a {
  color: white;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  white-space: nowrap;
  transition: color 0.2s, background 0.2s;
}

.nav-links a:hover {
  color: var(--accent-blue);
}

.btn-nav {
  background: var(--accent-blue);
  padding: 0.58rem 1rem;
  border-radius: 999px;
  color: white !important;
}

.btn-nav:hover {
  background: var(--accent-hover);
}

.hero {
  min-height: 760px;
  display: flex;
  align-items: center;
  padding: 9rem 5% 6rem;
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 0.42;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 82% 20%, rgba(47, 129, 247, 0.18), transparent 34%),
    linear-gradient(90deg, #0d1117 0%, rgba(13, 17, 23, 0.88) 52%, rgba(13, 17, 23, 0.42) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 850px;
}

.section-kicker {
  color: var(--accent-orange);
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.78rem;
  margin-bottom: 0.9rem;
}

.hero h1 {
  font-size: clamp(3rem, 8vw, 6.5rem);
  line-height: 1.15;
  padding-bottom: 0.1em;
  display: inline-block;
  margin-bottom: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.05em;
  background: linear-gradient(to right, #ffffff, #b7c0ce);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  font-size: 1.22rem;
  color: var(--text-secondary);
  max-width: 760px;
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-top: 1rem;
}

.hero-actions.centered {
  justify-content: center;
}

.btn-primary,
.secondary-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border-radius: 999px;
  font-weight: 800;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s, border-color 0.2s;
}

.btn-primary {
  background: var(--accent-blue);
  color: white;
  padding: 1rem 1.55rem;
  box-shadow: 0 0 24px rgba(47, 129, 247, 0.36);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 34px rgba(47, 129, 247, 0.56);
  background: var(--accent-hover);
}

.btn-primary.small {
  min-height: 42px;
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
}

.secondary-cta {
  border: 1px solid var(--border);
  color: white;
  padding: 0.95rem 1.4rem;
  background: rgba(255, 255, 255, 0.06);
}

.secondary-cta:hover {
  transform: translateY(-2px);
  border-color: rgba(47, 129, 247, 0.72);
  background: rgba(47, 129, 247, 0.12);
}

.trust-line {
  margin-top: 1.25rem;
  color: white !important;
  font-weight: 800;
}

.audiences,
.how-it-works,
.waitlists,
.safety-section,
.cta-section {
  padding: 6.5rem 5%;
}

.audiences h2,
.how-it-works h2,
.waitlists h2,
.safety-section h2,
.cta-section h2,
.pilot-offer h2 {
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.18;
  letter-spacing: -0.04em;
  margin-bottom: 2rem;
}

.audiences,
.waitlists {
  background: linear-gradient(180deg, #0d1117 0%, #111823 100%);
}

.audience-grid,
.waitlist-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.audience-card,
.waitlist-grid article,
.step,
.pilot-card {
  background: rgba(22, 27, 34, 0.74);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 1.6rem;
  box-shadow: var(--shadow);
}

.audience-card h3,
.waitlist-grid h3,
.step h3,
.pilot-card h3 {
  font-size: 1.35rem;
  margin-bottom: 0.8rem;
}

.audience-card p,
.waitlist-grid p,
.step p,
.pilot-copy p,
.safety-copy p,
.cta-section p {
  color: var(--text-secondary);
}

.card-label {
  display: inline-flex;
  color: var(--accent-blue);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.7rem;
}

.fine-print {
  color: var(--text-muted) !important;
  font-size: 0.92rem;
  margin-top: 1rem;
}

.text-link {
  display: inline-flex;
  margin-top: 1rem;
  color: white;
  font-weight: 800;
  text-decoration: none;
  border-bottom: 2px solid var(--accent-blue);
}

.text-link:hover {
  color: var(--accent-blue);
}

.how-it-works {
  text-align: center;
}

.how-it-works .section-kicker,
.how-it-works h2 {
  text-align: center;
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
  text-align: left;
}

.step-num {
  width: 46px;
  height: 46px;
  background: rgba(47, 129, 247, 0.16);
  color: var(--accent-blue);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 1.25rem;
}

.pilot-offer {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: center;
  padding: 6.5rem 5%;
  background: radial-gradient(circle at top left, rgba(255, 159, 67, 0.12), transparent 36%), var(--panel);
}

.pilot-copy p {
  font-size: 1.1rem;
  max-width: 690px;
}

.pilot-card {
  background: linear-gradient(180deg, rgba(47, 129, 247, 0.16), rgba(22, 27, 34, 0.92));
}

.pilot-card ul,
.guardrail-list {
  list-style: none;
}

.pilot-card li,
.guardrail-list li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.75rem;
  color: var(--text-secondary);
}

.pilot-card li::before,
.guardrail-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.68em;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--accent-orange);
}

.waitlist-grid article {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.1rem;
}

.safety-section {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 2rem;
  background: #0f1621;
}

.guardrail-list {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 1.6rem;
}

.cta-section {
  text-align: center;
  background: linear-gradient(180deg, #111823 0%, #0d1117 100%);
}

.cta-section p {
  max-width: 820px;
  margin: 0 auto 1.5rem;
  font-size: 1.1rem;
}

@media (max-width: 1020px) {
  .audience-grid,
  .waitlist-grid,
  .steps,
  .pilot-offer,
  .safety-section {
    grid-template-columns: 1fr 1fr;
  }

  .pilot-offer,
  .safety-section {
    align-items: start;
  }
}

@media (max-width: 768px) {
  .site-nav {
    position: fixed;
    background: rgba(13, 17, 23, 0.9);
    backdrop-filter: blur(14px);
  }

  .nav-links {
    display: none;
  }

  .hero {
    min-height: auto;
    padding-top: 8rem;
  }

  .hero p {
    font-size: 1.05rem;
  }

  .audience-grid,
  .waitlist-grid,
  .steps,
  .pilot-offer,
  .safety-section {
    grid-template-columns: 1fr;
  }

  .audiences,
  .how-it-works,
  .waitlists,
  .safety-section,
  .cta-section,
  .pilot-offer {
    padding: 4.25rem 5%;
  }
}

/* ==========================================================================
   10-TRADE SYNDICATE & NATIONAL FLEET STYLES
   ========================================================================== */
.syndicate-section {
  padding: 5rem 5%;
  background: #0b0f17;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.syndicate-header {
  text-align: center;
  max-width: 900px;
  margin: 0 auto 3.5rem;
}

.syndicate-header h2 {
  font-size: 2.4rem;
  margin-bottom: 1rem;
}

.trades-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  margin-bottom: 3.5rem;
}

.trade-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  transition: transform 0.2s, border-color 0.2s;
  position: relative;
}

.trade-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-blue);
}

.trade-num {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--accent-blue);
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  display: block;
}

.trade-card h4 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.trade-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.45;
}

.trade-status {
  margin-top: 1rem;
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  border: 1px solid #10b981;
}

.engine-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin: 3.5rem 0;
}

.engine-card {
  background: linear-gradient(145deg, #131b2e 0%, #0d121f 100%);
  border: 1px solid rgba(47, 129, 247, 0.3);
  border-radius: 16px;
  padding: 2.25rem;
}

.engine-card.scout-engine {
  border-color: rgba(255, 159, 67, 0.35);
}

.engine-card h3 {
  font-size: 1.6rem;
  margin-bottom: 1rem;
}

.engine-card p {
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
}

.metrics-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  background: var(--panel-strong);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 2rem;
  margin: 3.5rem 0;
  text-align: center;
}

.metric-val {
  font-size: 2.2rem;
  font-weight: 800;
  color: #10b981;
}

.metric-lbl {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 0.25rem;
}

.badge-gold {
  background: rgba(245, 158, 11, 0.15);
  color: #f59e0b;
  border: 1px solid #f59e0b;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  display: inline-block;
  margin-bottom: 1rem;
}

/* Pricing Tiers & ROI Calculator */
.pricing-section {
  padding: 5.5rem 5%;
  background: linear-gradient(180deg, #0d1117 0%, #111827 100%);
  border-bottom: 1px solid var(--border);
}

.tier-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
  margin: 2.5rem 0 4rem;
}

.tier-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
}

.tier-card.featured {
  background: linear-gradient(160deg, #162238 0%, #0f172a 100%);
  border: 2px solid #10b981;
  box-shadow: 0 20px 60px rgba(16, 185, 129, 0.15);
}

.tier-card.enterprise {
  background: linear-gradient(160deg, #1f1a2e 0%, #0f172a 100%);
  border: 2px solid #f59e0b;
  box-shadow: 0 20px 60px rgba(245, 158, 11, 0.14);
}

.tier-price {
  font-size: 2.75rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0.75rem 0 0.25rem;
}

.tier-price span {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-muted);
}

.tier-sub {
  font-size: 0.9rem;
  color: #10b981;
  font-weight: 700;
  margin-bottom: 1.25rem;
}

.tier-features {
  list-style: none;
  margin: 1.25rem 0 2rem;
}

.tier-features li {
  padding: 0.55rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.93rem;
  color: var(--text-secondary);
}

.tier-features li strong {
  color: #ffffff;
}

/* Interactive ROI Calculator */
.roi-box {
  background: #131b2e;
  border: 1px solid rgba(47, 129, 247, 0.4);
  border-radius: 18px;
  padding: 2.5rem;
  margin-top: 2rem;
}

.roi-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 2.5rem;
  align-items: center;
  margin-top: 1.5rem;
}

.roi-controls label {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-secondary);
  margin: 1rem 0 0.4rem;
}

.roi-controls select,
.roi-controls input[type="range"] {
  width: 100%;
  padding: 0.75rem;
  background: #0b0f17;
  color: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.95rem;
}

.roi-results {
  background: #0b0f17;
  border: 1px solid #10b981;
  border-radius: 14px;
  padding: 2rem;
}

.roi-stat-row {
  display: flex;
  justify-content: space-between;
  padding: 0.65rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.95rem;
}

.roi-stat-row.highlight {
  border-bottom: none;
  padding-top: 1rem;
  font-size: 1.35rem;
  font-weight: 800;
  color: #10b981;
}

/* City & National Capacity Table */
.capacity-section {
  padding: 5.5rem 5%;
  background: #090d14;
  border-bottom: 1px solid var(--border);
}

.table-wrap {
  overflow-x: auto;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 14px;
  margin: 2rem 0;
}

.cap-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.cap-table th,
.cap-table td {
  padding: 1rem 1.25rem;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.cap-table th {
  background: #1c2430;
  color: var(--text-secondary);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.cap-table tr.total-row {
  background: rgba(16, 185, 129, 0.12);
  font-weight: 800;
  color: #10b981;
}

/* Application Form Section */
.apply-section {
  padding: 5.5rem 5%;
  background: linear-gradient(180deg, #0f172a 0%, #090d14 100%);
  border-bottom: 1px solid var(--border);
}

.apply-container {
  max-width: 860px;
  margin: 0 auto;
  background: var(--panel);
  border: 1px solid rgba(16, 185, 129, 0.4);
  border-radius: 18px;
  padding: 3rem;
}

.apply-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.apply-form-grid .full-width {
  grid-column: 1 / -1;
}

.apply-form-grid label {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 0.4rem;
}

.apply-form-grid input,
.apply-form-grid select,
.apply-form-grid textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: #0b0f17;
  color: #fff;
  font-size: 0.95rem;
}

.site-footer {
  padding: 3.5rem 5%;
  background: #06090f;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  color: var(--text-muted);
  font-size: 0.88rem;
}

@media (max-width: 1020px) {
  .tier-grid,
  .roi-grid,
  .roi-box,
  .engine-grid,
  .metrics-bar,
  .apply-form-grid,
  .apply-grid {
    grid-template-columns: 1fr !important;
  }
}

.tier-tag {
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent-blue);
}

.tier-list {
  list-style: none;
  margin: 0 0 1.75rem;
  padding: 0;
}

.tier-list li {
  padding: 0.55rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  font-size: 0.92rem;
  color: var(--text-secondary);
}

.tier-list li strong {
  color: var(--text);
}

.roi-box {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2.25rem;
  align-items: center;
}

.roi-slider-group {
  margin-bottom: 1rem;
}

.roi-slider-group label {
  display: flex;
  justify-content: space-between;
  font-size: 0.88rem;
  margin-bottom: 0.35rem;
}

.roi-slider-group label strong {
  color: #10b981;
}

.roi-stat {
  padding: 0.85rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.roi-stat:last-child {
  border-bottom: none;
}

.roi-stat span {
  display: block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}

.roi-stat strong {
  font-size: 1.65rem;
  font-weight: 800;
  color: #ffffff;
}

.roi-stat strong.green,
.cap-table td.highlight-green {
  color: #10b981;
  font-weight: 700;
}

.roi-stat strong.gold,
.cap-table td.highlight-gold {
  color: #ffd166;
  font-weight: 700;
}

.cap-table-wrap {
  overflow-x: auto;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 16px;
  margin-bottom: 2.5rem;
}

.cap-table-title {
  padding: 1.25rem 1.5rem;
  background: #1a2230;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.cap-table-title span {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.cap-table th.num,
.cap-table td.num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.apply-box {
  max-width: 880px;
  margin: 0 auto;
  background: #141b26;
  border: 1px solid rgba(47, 129, 247, 0.38);
  border-radius: 18px;
  padding: 2.5rem;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.35);
}

.apply-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  min-width: 0;
  max-width: 100%;
}

.form-field.full {
  grid-column: 1 / -1;
}

.form-field label {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  background: #0d1117;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.8rem 1rem;
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
}

.apply-status {
  margin-top: 1rem;
  padding: 1rem;
  border-radius: 10px;
  background: rgba(16, 185, 129, 0.14);
  border: 1px solid #10b981;
  color: #d1fae5;
  display: none;
}

.footer-inner {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
}

/* Gamified Heavy-Hitter Leaderboard & Expansion Ladder */
.leaderboard-section {
  padding: 5.5rem 5%;
  background: linear-gradient(180deg, #090d14 0%, #0d131f 100%);
  border-bottom: 1px solid var(--border);
}

.ladder-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

.ladder-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.ladder-card.active-tier {
  border: 2px solid #10b981;
  background: linear-gradient(160deg, #132324 0%, #0d151f 100%);
}

.ladder-card.titan-tier {
  border: 2px solid #f59e0b;
  background: linear-gradient(160deg, #231c14 0%, #0d151f 100%);
}

.ladder-step {
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent-blue);
  margin-bottom: 0.4rem;
}

.ladder-card h4 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.ladder-card p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.45;
  margin-bottom: 1rem;
}

.ladder-perk {
  display: inline-block;
  font-size: 0.76rem;
  font-weight: 700;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  background: rgba(47, 129, 247, 0.14);
  color: #79c0ff;
  border: 1px solid rgba(47, 129, 247, 0.35);
}

.badge-mini {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 0.15rem 0.45rem;
  border-radius: 6px;
  margin-left: 0.4rem;
  vertical-align: middle;
}

.badge-mini.gold {
  background: rgba(245, 158, 11, 0.18);
  color: #ffd166;
  border: 1px solid rgba(245, 158, 11, 0.4);
}

.badge-mini.red {
  background: rgba(248, 113, 113, 0.16);
  color: #f87171;
  border: 1px solid rgba(248, 113, 113, 0.4);
}

.status-pill {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  white-space: nowrap;
}

.status-pill.titan {
  background: rgba(245, 158, 11, 0.16);
  color: #ffd166;
  border: 1px solid rgba(245, 158, 11, 0.45);
}

.status-pill.green {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.4);
}

.status-pill.blue {
  background: rgba(47, 129, 247, 0.15);
  color: #79c0ff;
  border: 1px solid rgba(47, 129, 247, 0.35);
}

.status-pill.red {
  background: rgba(248, 113, 113, 0.15);
  color: #fca5a5;
  border: 1px solid rgba(248, 113, 113, 0.4);
}

/* Scrollable Data Tables & Zero-Overflow Responsive Guardrails */
.table-scroll {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 14px;
}

.data-table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.data-table th,
.data-table td {
  padding: 0.9rem 1.1rem;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  vertical-align: top;
}

.data-table th {
  background: #1c2430;
  color: var(--text-secondary);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

h1, h2, h3, h4 {
  text-wrap: balance;
}

p, li {
  text-wrap: pretty;
}

.cap-table {
  min-width: 820px;
}

.deck-topbar > div:first-child {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.deck-topbar > div:first-child strong {
  margin-left: 0 !important;
}

@media (max-width: 1020px) {
  .ladder-grid,
  .metrics-bar {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
  .bd-suite-split-grid {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 680px) {
  .ladder-grid,
  .metrics-bar,
  .dual-class-grid,
  .track-grid,
  .pitch-layer-grid,
  .battle-grid,
  .hw-grid,
  .ind-grid,
  .bd-suite-split-grid {
    grid-template-columns: 1fr !important;
  }
  .bounty-matrix-box,
  .deck-shell,
  .script-viewer,
  .apply-box,
  .apply-container,
  #bd-live-deal-desk-panel {
    padding: 1.25rem !important;
  }
  #bd-human-search-bar,
  #bd-human-sandbox {
    grid-template-columns: 1fr;
  }
}

#bd-human-search-bar,
#bd-human-sandbox,
#bd-human-toast {
  box-sizing: border-box;
  max-width: 100%;
  min-width: 0;
  overflow-wrap: anywhere;
}
#bd-human-search-bar {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) auto;
  gap: 10px 12px;
  align-items: center;
  margin: 12px auto 16px;
  padding: 14px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 14px;
  background: rgba(7, 13, 25, 0.92);
}
#bd-human-search-bar input,
#bd-human-sandbox input,
#bd-human-sandbox select,
#bd-human-search-bar button,
#bd-human-sandbox button {
  min-height: 44px;
  max-width: 100%;
  border-radius: 10px;
}
#bd-human-search-input { width: 100%; padding: 10px 12px; }
.bd-human-chips { display: flex; flex-wrap: wrap; gap: 8px; min-width: 0; }
.bd-human-chip, #bd-human-autofill, #bd-human-sandbox button {
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: #0f172a;
  color: #e2e8f0;
  padding: 8px 12px;
  cursor: pointer;
}
#bd-human-sandbox {
  margin: 0 auto 16px;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid rgba(16, 185, 129, 0.35);
}
#bd-human-sandbox pre, #bd-human-sandbox code {
  overflow-x: auto;
  max-width: 100%;
  white-space: pre-wrap;
  word-break: break-all;
}
#bd-human-search-bar :focus-visible,
#bd-human-sandbox :focus-visible,
#bd-human-toast:focus-visible {
  outline: 2px solid #38bdf8;
  outline-offset: 2px;
}
#bd-human-search-bar button:active,
#bd-human-sandbox button:active,
.bd-human-chip:active { transform: translateY(1px); }
#bd-human-toast {
  position: fixed;
  z-index: 80;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  width: min(92vw, 420px);
  padding: 12px 14px;
  border-radius: 999px;
  background: #0f172a;
  color: #f8fafc;
  text-align: center;
}
@media (max-width: 720px) {
  #bd-human-search-bar { grid-template-columns: 1fr; }
}
