/* Silver State Dispatch LLC — design system */
:root {
  --bg-deep: #070b14;
  --bg: #0c1220;
  --bg-elevated: #121a2e;
  --bg-card: #161f35;
  --border: rgba(232, 236, 244, 0.08);
  --border-strong: rgba(232, 236, 244, 0.14);
  --text: #e8ecf4;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --silver: #c5cdd9;
  --gold: #c9a227;
  --gold-bright: #e4bc3a;
  --gold-glow: rgba(201, 162, 39, 0.35);
  --accent: #3b82f6;
  --accent-soft: rgba(59, 130, 246, 0.15);
  --success: #22c55e;
  --font-sans: "Outfit", system-ui, sans-serif;
  --font-display: "Fraunces", Georgia, serif;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 24px 48px -12px rgba(0, 0, 0, 0.5);
  --nav-h: 72px;
  --max: 1180px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg-deep);
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}

::selection {
  background: var(--gold);
  color: var(--bg-deep);
}

.container {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

/* Skip link */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 9999;
  padding: 0.75rem 1.25rem;
  background: var(--gold);
  color: var(--bg-deep);
  font-weight: 600;
  border-radius: var(--radius);
}
.skip-link:focus {
  top: 1rem;
}

/* Nav */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--nav-h);
  border-bottom: 1px solid transparent;
  transition: background 0.35s var(--ease), border-color 0.35s var(--ease),
    backdrop-filter 0.35s var(--ease);
}
.site-header.is-scrolled {
  background: rgba(7, 11, 20, 0.88);
  backdrop-filter: blur(16px);
  border-color: var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
  gap: 1.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-shrink: 0;
}
.brand-badge {
  display: block;
  height: 44px;
  width: auto;
  aspect-ratio: 400 / 266;
  flex-shrink: 0;
  object-fit: contain;
  object-position: center;
}
.brand-badge-footer {
  height: 48px;
}
.brand-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.1rem;
  line-height: 1.2;
  min-width: 0;
}
.brand-name {
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
  white-space: nowrap;
}
.brand-tag {
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  white-space: nowrap;
}
.brand-footer {
  align-items: center;
}
.brand-footer .brand-name {
  font-size: 0.95rem;
}
.brand-footer .brand-tag {
  font-size: 0.68rem;
}
.brand-footer-tag {
  margin: 0.75rem 0 0;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-dim);
  letter-spacing: 0.04em;
}
@media (min-width: 900px) {
  .brand-badge {
    height: 48px;
  }
  .brand-name {
    font-size: 0.95rem;
  }
  .brand-tag {
    font-size: 0.68rem;
  }
}
@media (max-width: 380px) {
  .brand-name {
    font-size: 0.8rem;
  }
  .brand-tag {
    font-size: 0.58rem;
  }
  .brand-badge {
    height: 38px;
  }
  .brand {
    gap: 0.45rem;
  }
}

.nav-links {
  display: none;
  align-items: center;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s;
}
.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--text);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.nav-phone {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
  transition: color 0.2s;
}
.nav-phone:hover,
.nav-phone:focus-visible {
  color: var(--gold-bright);
}

.mobile-phone {
  margin: 0 0 1.25rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border);
  font-size: 1.15rem;
  font-weight: 600;
}
.mobile-phone a {
  color: var(--gold-bright);
}
.mobile-phone span {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 1.35rem;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: transform 0.2s var(--ease), box-shadow 0.2s, background 0.2s,
    color 0.2s;
  white-space: nowrap;
}
.btn:active {
  transform: scale(0.98);
}
.btn-primary {
  background: linear-gradient(135deg, var(--gold-bright), var(--gold));
  color: var(--bg-deep);
  box-shadow: 0 4px 24px var(--gold-glow);
}
.btn-primary:hover {
  box-shadow: 0 8px 32px var(--gold-glow);
}
.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-strong);
}
.btn-ghost:hover {
  background: var(--bg-elevated);
}
.btn-outline-gold {
  background: transparent;
  color: var(--gold-bright);
  border: 1px solid rgba(201, 162, 39, 0.45);
}
.btn-outline-gold:hover {
  background: rgba(201, 162, 39, 0.1);
}

.menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
}
.menu-toggle span {
  display: block;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}
.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-panel {
  position: fixed;
  inset: var(--nav-h) 0 0;
  z-index: 99;
  background: rgba(7, 11, 20, 0.97);
  backdrop-filter: blur(20px);
  padding: 2rem 1.25rem;
  transform: translateX(100%);
  transition: transform 0.35s var(--ease);
  overflow-y: auto;
}
.mobile-panel.is-open {
  transform: translateX(0);
}
.mobile-panel ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.mobile-panel li {
  border-bottom: 1px solid var(--border);
}
.mobile-panel a {
  display: block;
  padding: 1.1rem 0;
  font-size: 1.15rem;
  font-weight: 500;
}
.mobile-panel .btn {
  width: 100%;
  margin-top: 1.5rem;
}

.hide-mobile {
  display: none;
}
@media (min-width: 900px) {
  .hide-mobile {
    display: inline-flex;
  }
  .nav-links {
    display: flex;
  }
  .menu-toggle {
    display: none;
  }
  .mobile-panel {
    display: none;
  }
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  padding: calc(var(--nav-h) + 3rem) 0 5rem;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(
      rgba(232, 236, 244, 0.03) 1px,
      transparent 1px
    ),
    linear-gradient(90deg, rgba(232, 236, 244, 0.03) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, black, transparent);
}
.hero-glow {
  position: absolute;
  width: 70vw;
  max-width: 900px;
  height: 60vh;
  top: 10%;
  right: -15%;
  background: radial-gradient(
    ellipse,
    rgba(59, 130, 246, 0.12) 0%,
    transparent 65%
  );
}
.hero-glow-gold {
  position: absolute;
  width: 50vw;
  height: 40vh;
  bottom: 5%;
  left: -10%;
  background: radial-gradient(
    ellipse,
    rgba(201, 162, 39, 0.1) 0%,
    transparent 70%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.9rem;
  margin-bottom: 1.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold-bright);
  background: rgba(201, 162, 39, 0.1);
  border: 1px solid rgba(201, 162, 39, 0.25);
  border-radius: 999px;
}
.eyebrow-dot {
  width: 6px;
  height: 6px;
  background: var(--success);
  border-radius: 50%;
  animation: pulse 2s ease infinite;
}
@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.4;
  }
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4.25rem);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin: 0 0 1.25rem;
  max-width: 14ch;
}
.hero h1 em {
  font-style: italic;
  color: var(--gold-bright);
}

.hero-lead {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--text-muted);
  max-width: 52ch;
  margin: 0 0 2rem;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 3rem;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1.5rem;
  max-width: 640px;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}
.stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 500;
  color: var(--text);
}
.stat span {
  font-size: 0.85rem;
  color: var(--text-dim);
}

.hero-visual {
  display: none;
}

@media (min-width: 1024px) {
  .hero-inner {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 3rem;
    align-items: center;
  }
  .hero-visual {
    display: block;
    position: relative;
  }
  .hero-card-stack {
    position: relative;
    height: 420px;
  }
  .hero-card {
    position: absolute;
    background: var(--bg-card);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-lg);
    padding: 1.25rem 1.5rem;
    box-shadow: var(--shadow);
    animation: float 6s ease-in-out infinite;
  }
  .hero-card:nth-child(1) {
    top: 0;
    right: 0;
    width: 88%;
    animation-delay: 0s;
  }
  .hero-card:nth-child(2) {
    top: 38%;
    left: 0;
    width: 78%;
    animation-delay: -2s;
  }
  .hero-card:nth-child(3) {
    bottom: 0;
    right: 8%;
    width: 72%;
    animation-delay: -4s;
  }
  @keyframes float {
    0%,
    100% {
      transform: translateY(0);
    }
    50% {
      transform: translateY(-10px);
    }
  }
}

.hero-card-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  margin-bottom: 0.35rem;
}
.hero-card-value {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 500;
}
.hero-card-value.positive {
  color: var(--success);
}
.hero-card-meta {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

/* Sections */
section {
  padding: 5.5rem 0;
}
.section-header {
  max-width: 640px;
  margin-bottom: 3rem;
}
.section-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
}
.section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 1rem;
}
.section-header p {
  margin: 0;
  color: var(--text-muted);
}

/* Services */
.services-grid {
  display: grid;
  gap: 1.25rem;
}
@media (min-width: 640px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 960px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: border-color 0.25s, transform 0.25s var(--ease);
}
.service-card:hover {
  border-color: rgba(201, 162, 39, 0.3);
  transform: translateY(-4px);
}
.service-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-soft);
  border-radius: var(--radius);
  margin-bottom: 1.25rem;
  color: var(--accent);
}
.service-card h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
}
.service-card p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* SilverRoute feature */
.silverroute {
  background: linear-gradient(
    180deg,
    var(--bg) 0%,
    rgba(18, 26, 46, 0.6) 50%,
    var(--bg-deep) 100%
  );
}
.silverroute-wrap {
  display: grid;
  gap: 3rem;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: calc(var(--radius-lg) + 4px);
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
}
.silverroute-wrap::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 60%;
  height: 100%;
  background: radial-gradient(
    ellipse,
    rgba(201, 162, 39, 0.08) 0%,
    transparent 70%
  );
  pointer-events: none;
}
@media (min-width: 900px) {
  .silverroute-wrap {
    grid-template-columns: 1fr 1fr;
    padding: 3.5rem;
  }
}

.tool-badge {
  display: inline-block;
  padding: 0.35rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(59, 130, 246, 0.15);
  color: #93c5fd;
  border-radius: 6px;
  margin-bottom: 1rem;
}

.silverroute h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 500;
  margin: 0 0 1rem;
}
.silverroute h2 span {
  color: var(--gold-bright);
}

.feature-list {
  list-style: none;
  margin: 1.5rem 0 2rem;
  padding: 0;
}
.feature-list li {
  display: flex;
  gap: 0.75rem;
  padding: 0.5rem 0;
  color: var(--text-muted);
}
.feature-list svg {
  flex-shrink: 0;
  margin-top: 0.2rem;
  color: var(--gold);
}

.calc-widget-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.live-calc-widget {
  background: var(--bg-deep);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4);
  position: relative;
}

.calc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}

.calc-header h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0;
  color: var(--text);
}

.calc-verdict-badge {
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  border-radius: 999px;
  text-transform: uppercase;
}
.verdict-go {
  background: rgba(34, 197, 94, 0.15);
  color: var(--success);
  border: 1px solid rgba(34, 197, 94, 0.3);
}
.verdict-marginal {
  background: rgba(234, 179, 8, 0.15);
  color: #fde047;
  border: 1px solid rgba(234, 179, 8, 0.3);
}
.verdict-nogo {
  background: rgba(239, 68, 68, 0.15);
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.calc-inputs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.85rem;
  margin-bottom: 1.25rem;
}
@media (max-width: 480px) {
  .calc-inputs-grid {
    grid-template-columns: 1fr;
  }
}

.calc-input-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.calc-input-group label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.calc-input-group input {
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 0.55rem 0.75rem;
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 500;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}
.calc-input-group input:focus {
  border-color: var(--gold-bright);
  box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.2);
}

.calc-results-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 1.25rem;
}

.calc-result-hero {
  text-align: center;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.result-hero-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-dim);
  margin-bottom: 0.25rem;
}

.result-hero-value {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 600;
  color: var(--success);
  line-height: 1.1;
  transition: color 0.3s;
}

.result-hero-sub {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--gold-bright);
  margin-top: 0.35rem;
}

.calc-metrics-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

.metric-card {
  background: var(--bg-deep);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.65rem 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.metric-label {
  font-size: 0.7rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.metric-value {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

/* Offers / pricing */
.offers-grid {
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 768px) {
  .offers-grid {
    grid-template-columns: repeat(3, 1fr);
    align-items: stretch;
  }
}

.offer-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  position: relative;
}
.offer-card.featured {
  border-color: rgba(201, 162, 39, 0.45);
  box-shadow: 0 0 0 1px rgba(201, 162, 39, 0.15), var(--shadow);
}
.offer-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  padding: 0.35rem 1rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--gold);
  color: var(--bg-deep);
  border-radius: 999px;
}
.offer-card h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin: 0 0 0.5rem;
}
.offer-price {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}
.offer-price span {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-dim);
}
.offer-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin: 0 0 1.5rem;
  flex: 1;
}
.offer-features {
  list-style: none;
  margin: 0 0 2rem;
  padding: 0;
  font-size: 0.9rem;
}
.offer-features li {
  display: flex;
  gap: 0.6rem;
  padding: 0.4rem 0;
  color: var(--text-muted);
}
.offer-features li::before {
  content: "✓";
  color: var(--gold);
  font-weight: 700;
}
.offer-card .btn {
  width: 100%;
  margin-top: auto;
}

/* Process */
.process-steps {
  display: grid;
  gap: 2rem;
  counter-reset: step;
}
@media (min-width: 768px) {
  .process-steps {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
  }
}
.process-step {
  position: relative;
  padding-top: 3rem;
}
.process-step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  position: absolute;
  top: 0;
  left: 0;
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 500;
  color: rgba(201, 162, 39, 0.25);
  line-height: 1;
}
.process-step h3 {
  font-size: 1.05rem;
  margin: 0 0 0.5rem;
}
.process-step p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* About / trust */
.about-split {
  display: grid;
  gap: 2.5rem;
  align-items: start;
}
@media (min-width: 900px) {
  .about-split {
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }
}

.about-early-partner {
  color: var(--text-muted);
  font-size: 0.95rem;
  border-left: 2px solid var(--gold);
  padding-left: 1rem;
  margin-top: 1rem;
}

.about-founder {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.about-photo {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow);
  background: var(--bg-card);
}

.about-photo img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 420px;
  object-fit: cover;
  object-position: center 15%;
}

.about-founder-card {
  padding: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.about-founder-name {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--text);
}

.about-founder-role {
  margin: 0.25rem 0 1rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold-bright);
}

.about-founder-bio {
  margin: 0 0 1rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.65;
}

.about-founder-contact {
  margin: 0;
  font-size: 0.9rem;
}

.about-founder-contact a {
  color: var(--gold-bright);
  font-weight: 600;
}

.about-founder-contact a:hover {
  color: var(--text);
}

.trust-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}
.trust-pill {
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  font-weight: 500;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-muted);
}

/* FAQ */
.faq-list {
  max-width: 720px;
  margin: 0 auto;
}
.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-item button {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 0;
  background: none;
  border: none;
  text-align: left;
  font-size: 1.05rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--text);
}
.faq-item button svg {
  flex-shrink: 0;
  transition: transform 0.25s var(--ease);
  color: var(--gold);
}
.faq-item.is-open button svg {
  transform: rotate(180deg);
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s var(--ease);
}
.faq-answer-inner {
  padding: 0 0 1.25rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}
.faq-item.is-open .faq-answer {
  max-height: 280px;
}

/* Contact */
.contact-section {
  padding-bottom: 6rem;
}
.contact-grid {
  display: grid;
  gap: 2.5rem;
}
@media (min-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr 1.1fr;
    align-items: start;
  }
}

.contact-info a {
  color: var(--gold-bright);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.contact-info a:hover {
  color: var(--text);
}

.contact-form {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
}
.form-row {
  margin-bottom: 1.25rem;
}
.form-row label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--text-muted);
}
.form-row input,
.form-row textarea,
.form-row select {
  width: 100%;
  padding: 0.85rem 1rem;
  background: var(--bg-deep);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-row input:focus,
.form-row textarea:focus,
.form-row select:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.15);
}
.form-row textarea {
  min-height: 120px;
  resize: vertical;
}
.form-note {
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-top: 1rem;
}
.form-honey {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  width: 0;
  pointer-events: none;
}
.form-success {
  display: none;
  padding: 1rem;
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.3);
  border-radius: var(--radius);
  color: #86efac;
  margin-bottom: 1rem;
}
.form-success.is-visible {
  display: block;
}
.form-error {
  display: none;
  padding: 1rem;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.35);
  border-radius: var(--radius);
  color: #fca5a5;
  margin-bottom: 1rem;
  font-size: 0.95rem;
}
.form-error.is-visible {
  display: block;
}
.form-error a {
  color: var(--gold-bright);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 3rem 0 2rem;
  background: var(--bg);
}
.footer-grid {
  display: grid;
  gap: 2rem;
  margin-bottom: 2.5rem;
}
@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 1.5fr repeat(3, 1fr);
  }
}
.footer-grid h4 {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin: 0 0 1rem;
}
.footer-grid ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer-grid li {
  margin-bottom: 0.5rem;
}
.footer-grid a {
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: color 0.2s;
}
.footer-grid a:hover {
  color: var(--text);
}
.footer-contact {
  margin: 1.25rem 0 0;
  font-size: 0.9rem;
  line-height: 1.7;
}
.footer-contact a {
  color: var(--gold-bright);
  font-weight: 600;
  transition: color 0.2s;
}
.footer-contact a:hover {
  color: var(--text);
}
.footer-contact-name {
  color: var(--text-dim);
  font-weight: 500;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--text-dim);
}
.footer-bottom-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}
.footer-bottom-meta a {
  color: var(--gold-bright);
  font-weight: 600;
}
.footer-bottom-meta a:hover {
  color: var(--text);
}

/* Reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .hero-card {
    animation: none;
  }
}

/* Policy & Legal Pages */
.policy-hero {
  padding: calc(var(--nav-h) + 3rem) 0 2.5rem;
  background: radial-gradient(ellipse 80% 50% at 50% 0%, rgba(59, 130, 246, 0.08), transparent);
  border-bottom: 1px solid var(--border);
}
.policy-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 500;
  margin: 0 0 0.5rem;
}
.policy-meta {
  color: var(--gold-bright);
  font-size: 0.95rem;
  font-weight: 600;
  margin: 0.5rem 0 0;
}
.policy-content {
  padding: 3.5rem 0 6rem;
}
.policy-card {
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow);
  max-width: 920px;
  margin-inline: auto;
}
@media (max-width: 640px) {
  .policy-card {
    padding: 1.5rem;
  }
}
.policy-section {
  margin-bottom: 2.5rem;
}
.policy-section:last-child {
  margin-bottom: 0;
}
.policy-section h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--text);
  margin: 0 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}
.policy-section p {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.7;
  margin: 0 0 1rem;
}
.policy-section ul {
  color: var(--text-muted);
  padding-left: 1.5rem;
  margin: 0 0 1.25rem;
}
.policy-section li {
  margin-bottom: 0.5rem;
  line-height: 1.6;
}
.policy-highlight-box {
  background: rgba(201, 162, 39, 0.08);
  border-left: 4px solid var(--gold-bright);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.25rem 1.5rem;
  margin: 1.25rem 0;
}
.policy-highlight-box p {
  color: var(--text);
  font-weight: 600;
  margin: 0 0 0.5rem;
}
.policy-highlight-box p:last-child {
  margin-bottom: 0;
}

/* SMS Consent Checkbox */
.form-checkbox-row {
  margin: 1.25rem 0;
}
.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.825rem;
  line-height: 1.55;
  color: var(--text-muted);
  cursor: pointer;
  user-select: none;
}
.checkbox-label input[type="checkbox"] {
  width: 18px !important;
  height: 18px !important;
  min-width: 18px;
  margin-top: 0.15rem;
  flex-shrink: 0;
  accent-color: var(--gold);
  cursor: pointer;
}
.checkbox-label a {
  color: var(--gold-bright);
  text-decoration: underline;
  font-weight: 500;
}
.checkbox-label a:hover {
  color: var(--text);
}

/* ==========================================================================
   SilverRoute Owner-Operator Application (app.html) Styles
   ========================================================================== */

.app-body {
  background: var(--bg-deep);
  color: var(--text);
  overflow-x: hidden;
}

.app-layout {
  display: flex;
  min-height: 100vh;
  min-height: 100dvh;
}

/* Sidebar Navigation */
.app-sidebar {
  width: 280px;
  background: var(--bg);
  border-right: 1px solid var(--border-strong);
  display: flex;
  flex-direction: column;
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 120;
  transition: transform 0.3s var(--ease);
}

.sidebar-brand {
  padding: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.sidebar-nav {
  flex: 1;
  padding: 1.25rem 0.85rem;
  overflow-y: auto;
}

.sidebar-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.nav-tab-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.2s var(--ease);
  text-align: left;
}

.nav-tab-btn:hover {
  background: var(--bg-elevated);
  color: var(--text);
}

.nav-tab-btn.active {
  background: rgba(201, 162, 39, 0.12);
  color: var(--gold-bright);
  border-color: rgba(201, 162, 39, 0.3);
  font-weight: 600;
}

.nav-tab-btn svg {
  flex-shrink: 0;
  transition: color 0.2s;
}

.nav-tab-btn.active svg {
  color: var(--gold-bright);
}

.badge-count {
  margin-left: auto;
  padding: 0.15rem 0.55rem;
  font-size: 0.75rem;
  font-weight: 700;
  background: var(--bg-card);
  color: var(--text);
  border-radius: 999px;
  border: 1px solid var(--border);
}

.sidebar-footer {
  padding: 1rem 1.25rem;
  border-top: 1px solid var(--border);
}

.btn-return-site {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-dim);
  transition: color 0.2s;
}
.btn-return-site:hover {
  color: var(--gold-bright);
}

/* App Main Body */
.app-main {
  flex: 1;
  margin-left: 280px;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

/* Topbar */
.app-topbar {
  height: 72px;
  background: rgba(12, 18, 32, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 110;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.topbar-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 500;
  margin: 0;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.topbar-quick-kpi {
  font-size: 0.85rem;
  color: var(--text-muted);
  background: var(--bg-card);
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.quick-kpi-val {
  font-weight: 700;
  color: var(--gold-bright);
  margin-left: 0.35rem;
}

.mobile-nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 38px;
  height: 38px;
  padding: 8px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
}
.mobile-nav-toggle span {
  display: block;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
}

/* Tab Panels */
.tab-panel {
  display: none;
  padding: 2rem;
  animation: fadeIn 0.25s ease-out;
}
.tab-panel.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Dashboard Banner & Cards */
.dashboard-hero-banner {
  background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-elevated) 100%);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 2rem 2.25rem;
  margin-bottom: 1.75rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  position: relative;
  overflow: hidden;
}
.dashboard-hero-banner::before {
  content: "";
  position: absolute;
  top: -40%;
  right: -10%;
  width: 50%;
  height: 180%;
  background: radial-gradient(ellipse, rgba(201, 162, 39, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.dash-welcome h2 {
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 500;
  margin: 0 0 0.4rem;
}
.dash-welcome p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.dash-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1.1rem;
  margin-bottom: 1.75rem;
}

.kpi-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.35rem 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.2s, border-color 0.2s;
}
.kpi-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
}

.kpi-card.highlight-green {
  border-color: rgba(34, 197, 94, 0.3);
  background: linear-gradient(180deg, var(--bg-card) 0%, rgba(34, 197, 94, 0.05) 100%);
}
.kpi-card.highlight-gold {
  border-color: rgba(201, 162, 39, 0.3);
  background: linear-gradient(180deg, var(--bg-card) 0%, rgba(201, 162, 39, 0.06) 100%);
}

.kpi-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}
.kpi-title {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}
.kpi-icon {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: var(--bg-deep);
  color: var(--text-dim);
}
.kpi-icon.gold { color: var(--gold-bright); background: rgba(201, 162, 39, 0.15); }
.kpi-icon.green { color: var(--success); background: rgba(34, 197, 94, 0.15); }
.kpi-icon.red { color: #ef4444; background: rgba(239, 68, 68, 0.15); }
.kpi-icon.blue { color: #3b82f6; background: rgba(59, 130, 246, 0.15); }

.kpi-value {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 600;
  line-height: 1.1;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}
.kpi-value.positive { color: var(--success); }
.kpi-value.gold { color: var(--gold-bright); }

.kpi-sub {
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-top: 0.4rem;
}

/* Dashboard Split Grid */
.dash-grid-split {
  display: grid;
  grid-template-columns: 1.7fr 1fr;
  gap: 1.5rem;
}
@media (max-width: 1080px) {
  .dash-grid-split {
    grid-template-columns: 1fr;
  }
}

.panel-box {
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  margin-bottom: 1.75rem;
}

.panel-box-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  gap: 1rem;
}
.panel-box-header.flex-wrap {
  flex-wrap: wrap;
}
.panel-box-header.style-sub {
  margin-top: 1.5rem;
  border-top: 1px solid var(--border);
  padding-top: 1.25rem;
}

.panel-box-header h2 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 500;
  margin: 0 0 0.25rem;
}
.panel-box-header h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0;
}
.panel-box-header p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* Data Tables */
.table-responsive {
  width: 100%;
  overflow-x: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  text-align: left;
}

.data-table th {
  padding: 0.85rem 1rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  background: var(--bg-deep);
  border-bottom: 1px solid var(--border-strong);
  white-space: nowrap;
}

.data-table td {
  padding: 0.95rem 1rem;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.data-table tbody tr {
  transition: background 0.15s;
}
.data-table tbody tr:hover {
  background: rgba(232, 236, 244, 0.03);
}

/* Status & Verdict Badges */
.badge-status {
  display: inline-block;
  padding: 0.2rem 0.65rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 999px;
  text-transform: capitalize;
}
.status-booked { background: rgba(59, 130, 246, 0.15); color: #93c5fd; border: 1px solid rgba(59, 130, 246, 0.3); }
.status-dispatched { background: rgba(168, 85, 247, 0.15); color: #c084fc; border: 1px solid rgba(168, 85, 247, 0.3); }
.status-intransit { background: rgba(234, 179, 8, 0.15); color: #fde047; border: 1px solid rgba(234, 179, 8, 0.3); }
.status-delivered { background: rgba(34, 197, 94, 0.15); color: var(--success); border: 1px solid rgba(34, 197, 94, 0.3); }
.status-completed { background: rgba(201, 162, 39, 0.18); color: var(--gold-bright); border: 1px solid rgba(201, 162, 39, 0.35); }
.status-cancelled { background: rgba(239, 68, 68, 0.15); color: #fca5a5; border: 1px solid rgba(239, 68, 68, 0.3); }

/* Quick Navigation List */
.quick-nav-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.quick-nav-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.15rem;
  background: var(--bg-deep);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.2s var(--ease);
  text-align: left;
  width: 100%;
}
.quick-nav-item:hover {
  border-color: var(--gold-bright);
  background: var(--bg-elevated);
  transform: translateX(3px);
}
.quick-nav-icon {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(201, 162, 39, 0.12);
  color: var(--gold-bright);
  border-radius: 10px;
  flex-shrink: 0;
}
.quick-nav-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.quick-nav-text strong {
  font-size: 0.95rem;
  color: var(--text);
}
.quick-nav-text span {
  font-size: 0.8rem;
  color: var(--text-dim);
}

/* Calculator Page Layout (4 Groups & Sticky Output) */
.calc-page-layout {
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  gap: 1.75rem;
  align-items: start;
}
@media (max-width: 1024px) {
  .calc-page-layout {
    grid-template-columns: 1fr;
  }
}

.calc-section-title {
  margin-bottom: 1.5rem;
}
.calc-section-title h2 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 500;
  margin: 0 0 0.35rem;
}
.calc-section-title p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.calc-group-box {
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 1.25rem;
}

.calc-group-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.1rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid var(--border);
}
.group-num {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gold);
  color: var(--bg-deep);
  font-weight: 700;
  font-size: 0.8rem;
  border-radius: 50%;
}
.calc-group-header h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0;
}

.form-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
.form-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
@media (max-width: 640px) {
  .form-grid-2, .form-grid-3 {
    grid-template-columns: 1fr;
  }
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.form-row label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
}
.form-row input,
.form-row select,
.form-row textarea {
  background: var(--bg-deep);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 0.65rem 0.85rem;
  color: var(--text);
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  border-color: var(--gold-bright);
  box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.2);
}
.form-hint {
  font-size: 0.75rem;
  color: var(--text-dim);
}

/* Calculator Output Sticky Panel */
.calc-output-sticky {
  position: sticky;
  top: 92px;
}

.calc-result-card {
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow);
}

.calc-result-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--border);
}
.calc-result-title {
  font-weight: 600;
  font-size: 1rem;
  color: var(--text-muted);
}

.calc-profit-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-deep);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin-bottom: 1.25rem;
}
.hero-metric-block {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.hero-metric-divider {
  width: 1px;
  height: 48px;
  background: var(--border);
}
.hero-metric-label {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-dim);
}
.hero-metric-val {
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 600;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.hero-metric-val.positive { color: var(--success); }
.hero-metric-val.gold { color: var(--gold-bright); }
.hero-metric-sub {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.calc-breakdown-list {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin-bottom: 1.25rem;
  font-size: 0.9rem;
}
.breakdown-row {
  display: flex;
  justify-content: space-between;
  padding: 0.45rem 0;
  border-bottom: 1px solid rgba(232, 236, 244, 0.05);
}
.breakdown-row.cost strong { color: #fca5a5; }
.breakdown-row.highlight {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 0.65rem 0;
  font-weight: 600;
}
.breakdown-row.sub-reserve {
  color: #93c5fd;
  font-size: 0.85rem;
}

.calc-rpm-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.65rem;
  margin-bottom: 1.5rem;
}
.rpm-card {
  background: var(--bg-deep);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.65rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  text-align: center;
}
.rpm-label {
  font-size: 0.68rem;
  color: var(--text-dim);
  text-transform: uppercase;
}
.rpm-val {
  font-size: 0.95rem;
  font-weight: 700;
}
.rpm-val.positive { color: var(--success); }
.rpm-val.gold { color: var(--gold-bright); }

.calc-action-block {
  text-align: center;
}
.btn-block {
  width: 100%;
}
.btn-lg {
  padding: 0.85rem 1.5rem;
  font-size: 1rem;
}
.calc-action-note {
  font-size: 0.78rem;
  color: var(--text-dim);
  margin: 0.65rem 0 0;
}

/* Filter Toolbar */
.filter-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
  background: var(--bg-deep);
  padding: 1rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.search-input-wrap {
  position: relative;
  flex: 1;
  min-width: 240px;
}
.search-input-wrap svg {
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-dim);
}
.search-input-wrap input {
  width: 100%;
  padding-left: 2.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding-top: 0.55rem;
  padding-bottom: 0.55rem;
  color: var(--text);
  font-size: 0.9rem;
}

.filter-selects {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.filter-selects select {
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 0.55rem 0.85rem;
  color: var(--text);
  font-size: 0.88rem;
}

/* Grid Cards (Drivers & Maintenance) */
.grid-cards-3 {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}

.driver-card {
  background: var(--bg-deep);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.35rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.driver-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.driver-name {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0;
}
.driver-pay-badge {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  background: rgba(201, 162, 39, 0.15);
  color: var(--gold-bright);
  border-radius: 6px;
}
.driver-meta {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.metric-summary-box {
  background: var(--bg-deep);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
}
.metric-summary-box h4 {
  font-size: 0.95rem;
  margin: 0 0 0.5rem;
  color: var(--text-muted);
}
.box-value {
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.35rem;
}
.metric-summary-box p {
  margin: 0;
  font-size: 0.8rem;
  color: var(--text-dim);
}

/* Analytics Ratios */
.analytics-bar-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.bar-item-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.88rem;
  margin-bottom: 0.35rem;
}
.bar-track {
  height: 8px;
  background: var(--bg-deep);
  border-radius: 999px;
  overflow: hidden;
}
.bar-fill {
  height: 100%;
  background: var(--gold);
  border-radius: 999px;
}
.bar-fill.green { background: var(--success); }
.bar-fill.blue { background: #3b82f6; }
.bar-fill.red { background: #ef4444; }

/* Modals */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(7, 11, 20, 0.85);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.modal-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  width: min(100%, 540px);
  max-height: 90vh;
  max-height: 90dvh;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
  transform: scale(0.96);
  transition: transform 0.25s var(--ease);
}
.modal-card.modal-lg { width: min(100%, 820px); }
.modal-card.modal-xl { width: min(100%, 1020px); }

.modal-overlay.is-open .modal-card {
  transform: scale(1);
}

.modal-header {
  padding: 1.35rem 1.75rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.modal-header h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 500;
  margin: 0;
}
.sub-meta {
  display: block;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
}
.modal-close {
  background: transparent;
  border: none;
  font-size: 1.75rem;
  color: var(--text-dim);
  cursor: pointer;
  line-height: 1;
  padding: 0 0.5rem;
}
.modal-close:hover { color: var(--text); }

.modal-body {
  padding: 1.75rem;
  overflow-y: auto;
  flex: 1;
}
.modal-intro {
  margin: 0 0 1.25rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.modal-financial-summary-box {
  background: var(--bg-deep);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem;
  margin-top: 1.25rem;
}
.modal-financial-summary-box h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-dim);
  margin: 0 0 0.75rem;
}
.summary-pills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  font-size: 0.88rem;
}
@media (max-width: 600px) {
  .summary-pills-grid {
    grid-template-columns: 1fr;
  }
}

.modal-footer {
  padding: 1.1rem 1.75rem;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.85rem;
}
.modal-footer.flex-between {
  justify-content: space-between;
}

/* Load Detail Estimated vs Actual Hero */
.detail-top-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
  background: var(--bg-deep);
  padding: 0.85rem 1.15rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.select-status-inline {
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  padding: 0.35rem 0.65rem;
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 600;
}

.est-vs-actual-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: var(--bg-deep);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 1.35rem;
  margin-bottom: 1.5rem;
}
@media (max-width: 768px) {
  .est-vs-actual-hero {
    flex-direction: column;
    text-align: center;
  }
  .est-vs-arrow { display: none; }
}

.est-vs-box {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.est-vs-box.actual .box-val { color: var(--success); }
.est-vs-box.variance .box-val { color: var(--gold-bright); }
.est-vs-arrow {
  font-size: 1.5rem;
  color: var(--text-dim);
  font-weight: 300;
}

.detail-grid-split {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 1.5rem;
}
@media (max-width: 900px) {
  .detail-grid-split {
    grid-template-columns: 1fr;
  }
}

.statement-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}
.statement-table th {
  padding: 0.65rem;
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  border-bottom: 1px solid var(--border);
  text-align: right;
}
.statement-table th:first-child { text-align: left; }
.statement-table td {
  padding: 0.75rem 0.65rem;
  border-bottom: 1px solid rgba(232, 236, 244, 0.05);
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.statement-table td:first-child { text-align: left; }
.statement-table tr.total-row {
  font-weight: 700;
  border-top: 1px solid var(--border);
  background: rgba(232, 236, 244, 0.03);
}

.detail-actuals-box {
  background: var(--bg-deep);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
}
.detail-actuals-box h4 {
  font-size: 1rem;
  margin: 0 0 0.25rem;
}
.box-hint {
  font-size: 0.8rem;
  color: var(--text-dim);
  margin: 0 0 1rem;
}
.form-actions-right {
  display: flex;
  justify-content: flex-end;
  margin-top: 1.1rem;
}

/* Mobile responsive sidebar override */
@media (max-width: 900px) {
  .app-sidebar {
    transform: translateX(-100%);
  }
  .app-sidebar.is-open {
    transform: translateX(0);
  }
  .app-main {
    margin-left: 0;
  }
/* Driver Card Actions & Print Styles */
.driver-card-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.5rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
}
.driver-card-actions .btn {
  flex: 1;
}

@media print {
  body {
    background: #fff !important;
    color: #000 !important;
  }
  .app-sidebar, .app-topbar, .modal-close, .modal-footer, .modal-intro {
    display: none !important;
  }
  .modal-overlay {
    position: absolute !important;
    inset: 0 !important;
    background: #fff !important;
    backdrop-filter: none !important;
    opacity: 1 !important;
    pointer-events: auto !important;
  }
  .modal-card {
    border: none !important;
    box-shadow: none !important;
    width: 100% !important;
    max-width: 100% !important;
    background: #fff !important;
    color: #000 !important;
  }
  .modal-header h3, .kpi-value, .kpi-title, .statement-table, .statement-table th, .statement-table td {
    color: #000 !important;
  }
  .statement-table th, .statement-table td {
    border-bottom: 1px solid #ccc !important;
  }
  .kpi-card, .panel-box {
    border: 1px solid #ccc !important;
    background: #f9f9f9 !important;
  }
}



