:root {
  --bg: #eff5f2;
  --bg-soft: #f7fbf9;
  --surface: #ffffff;
  --surface-alt: #eef7f3;
  --surface-dark: #0f5143;
  --text: #10211f;
  --muted: #5f6c68;
  --line: #d8e6df;
  --primary: #0f5143;
  --primary-soft: #e8f8f1;
  --accent: #20b884;
  --accent-gold: #9fdabf;
  --danger: #bc5148;
  --warning: #ffefc7;
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --shadow-soft: 0 20px 60px rgba(16, 33, 31, 0.08);
  --shadow-card: 0 12px 30px rgba(16, 33, 31, 0.07);
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(circle at top left, rgba(88, 214, 141, 0.15), transparent 28%), var(--bg);
  color: var(--text);
  font-family: "Manrope", sans-serif;
}

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

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

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

button {
  cursor: pointer;
}

.hidden {
  display: none !important;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.8rem 1.2rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  background: linear-gradient(135deg, var(--primary), #1d4d44);
  color: #fff;
  box-shadow: 0 12px 26px rgba(18, 53, 47, 0.25);
}

.button-secondary {
  background: rgba(255, 255, 255, 0.65);
  color: var(--text);
  border-color: rgba(16, 33, 31, 0.1);
}

.button-wide {
  width: 100%;
}

.form-actions-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.mobile-shortcuts {
  display: none;
  gap: 0.6rem;
  margin: 0.15rem 0 0.9rem;
}

.button-small {
  min-height: 40px;
  padding: 0.65rem 1rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--primary);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.landing-shell,
.auth-shell,
.app-shell {
  width: min(100%, var(--container));
  margin: 0 auto;
}

.landing-shell {
  padding: 1rem 1rem 4rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  font-family: "Sora", sans-serif;
  font-weight: 700;
}

.brand img {
  width: 152px;
  max-width: 100%;
}

.site-nav {
  display: none;
  align-items: center;
  gap: 1rem;
  font-size: 0.95rem;
  color: var(--muted);
}

.ghost-link {
  font-weight: 700;
}

.hero-section,
.auth-shell {
  display: grid;
  gap: 1.5rem;
}

.hero-section {
  align-items: center;
  padding: 2rem 0 3rem;
}

.hero-copy h1,
.auth-copy h1 {
  margin: 0.8rem 0 1rem;
  font-family: "Sora", sans-serif;
  font-size: clamp(2.4rem, 7vw, 4.8rem);
  line-height: 1.02;
}

.hero-copy p,
.auth-copy p,
.section-heading p {
  margin: 0;
  max-width: 58ch;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

.hero-actions,
.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 1.35rem;
}

.hero-points span,
.pill,
.plan-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(16, 33, 31, 0.08);
  font-size: 0.87rem;
  font-weight: 700;
}

.hero-panel,
.panel,
.auth-panel,
.plan-card,
.cta-panel,
.feature-card,
.step-card,
.testimonial-card,
.print-card,
.subscription-card,
.paywall-panel {
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(16, 33, 31, 0.08);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(16px);
}

.hero-panel {
  padding: 1rem;
  border-radius: 32px;
}

.mock-header {
  display: flex;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(16, 33, 31, 0.15);
}

.mock-stats {
  display: grid;
  gap: 0.9rem;
}

.mock-card {
  padding: 1rem;
  border-radius: 22px;
}

.mock-card small,
.metric-card small {
  color: var(--muted);
  font-size: 0.82rem;
}

.mock-card strong,
.metric-card strong,
.plan-price {
  display: block;
  margin-top: 0.4rem;
  font-size: 1.6rem;
  font-weight: 800;
}

.mock-card span,
.metric-card span {
  display: block;
  margin-top: 0.35rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.accent-green {
  background: var(--primary-soft);
}

.accent-cream {
  background: #fff6de;
}

.accent-navy {
  background: var(--surface-dark);
  color: #fff;
}

.accent-navy small,
.accent-navy span {
  color: rgba(255, 255, 255, 0.75);
}

.mock-chart {
  margin-top: 1rem;
  padding: 1rem;
  border-radius: 24px;
  background: #fff;
}

.mock-chart-bars,
.mini-bar-chart {
  display: grid;
  align-items: end;
  gap: 0.8rem;
  min-height: 160px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.mock-chart-bars span,
.mini-bar-chart span {
  display: block;
  border-radius: 999px 999px 16px 16px;
  background: linear-gradient(180deg, var(--accent), var(--primary));
}

.mock-chart-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1rem;
}

.mock-chart-summary p {
  margin: 0;
  color: var(--muted);
}

.section-grid {
  padding: 2.4rem 0;
}

.public-calculator-panel {
  display: grid;
  gap: 1rem;
}

.public-freight-result {
  margin-top: 0.25rem;
}

.public-freight-result strong {
  display: block;
  margin-bottom: 0.45rem;
  font-family: "Sora", sans-serif;
}

.section-heading {
  display: grid;
  gap: 0.7rem;
  margin-bottom: 1.4rem;
}

.section-heading h2,
.panel h2 {
  margin: 0;
  font-family: "Sora", sans-serif;
  font-size: clamp(1.5rem, 4vw, 2.3rem);
}

.feature-grid,
.step-list,
.testimonial-grid,
.prints-grid,
.content-grid,
.single-column,
.dual-grid,
.metric-grid,
.comparison-grid,
.filters-grid {
  display: grid;
  gap: 1rem;
}

.feature-card,
.step-card,
.testimonial-card,
.print-card {
  padding: 1.25rem;
  border-radius: var(--radius-lg);
}

.feature-card p,
.step-card p,
.testimonial-card p,
.print-card p,
.auth-benefits span,
.subscription-card p {
  margin: 0.5rem 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.billing-hero {
  display: grid;
  gap: 0.9rem;
}

.billing-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.billing-steps span {
  padding: 0.55rem 0.8rem;
  border-radius: 999px;
  background: rgba(18, 53, 47, 0.08);
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 600;
}

.step-card strong {
  display: inline-flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: var(--primary);
  color: #fff;
}

.print-card {
  display: grid;
  gap: 1rem;
}

.plans-section {
  text-align: center;
}

.plan-card {
  width: min(100%, 520px);
  margin: 0 auto;
  padding: 2rem;
  border-radius: 32px;
}

.plan-list {
  margin: 1.2rem 0 1.6rem;
  padding: 0;
  list-style: none;
  text-align: left;
  display: grid;
  gap: 0.75rem;
}

.plan-list li {
  position: relative;
  padding-left: 1.6rem;
  color: var(--muted);
}

.plan-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5rem;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
}

.cta-panel {
  display: grid;
  gap: 1rem;
  align-items: center;
  padding: 1.6rem;
  border-radius: 32px;
  background: linear-gradient(135deg, rgba(17, 51, 45, 0.98), rgba(21, 73, 64, 0.96));
  color: #fff;
}

.cta-panel .eyebrow,
.cta-panel p {
  color: rgba(255, 255, 255, 0.8);
}

.auth-body,
.app-body {
  background: linear-gradient(180deg, #f9f3e9, #f2ede4);
}

.app-body {
  background:
    radial-gradient(circle at top left, rgba(32, 102, 83, 0.12), transparent 24%),
    radial-gradient(circle at bottom right, rgba(229, 185, 72, 0.12), transparent 18%),
    linear-gradient(180deg, #f6f0e4 0%, #efe7da 100%);
}

.auth-shell {
  min-height: 100vh;
  padding: 1.2rem;
  align-items: center;
}

.auth-brand,
.auth-panel {
  border-radius: 32px;
  padding: 1.5rem;
}

.auth-brand {
  background: linear-gradient(180deg, rgba(17, 51, 45, 0.98), rgba(29, 77, 68, 0.94));
  color: #fff;
  display: grid;
  gap: 1.5rem;
  box-shadow: var(--shadow-soft);
}

.auth-brand .brand span,
.auth-brand .eyebrow {
  color: #fff;
}

.auth-brand .brand img {
  filter: brightness(1.2);
}

.auth-benefits {
  display: grid;
  gap: 0.9rem;
}

.auth-benefits article {
  padding: 1rem;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.auth-panel {
  background: rgba(255, 255, 255, 0.82);
}

.auth-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.auth-tab {
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(16, 33, 31, 0.03);
  color: var(--muted);
  font-weight: 800;
}

.auth-tab.is-active {
  background: var(--primary);
  color: #fff;
  border-color: transparent;
}

.auth-form,
.form-grid {
  display: grid;
  gap: 0.95rem;
}

.auth-text-link {
  justify-self: end;
  color: var(--primary);
  font-weight: 700;
  text-decoration: none;
  margin-top: -0.25rem;
  margin-bottom: 0.1rem;
}

.auth-text-link:hover,
.auth-text-link:focus-visible {
  text-decoration: underline;
}

.auth-form label,
.form-grid label,
.filters-grid label {
  display: grid;
  gap: 0.45rem;
  align-content: start;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
}

.field-help {
  font-size: 0.8rem;
  line-height: 1.45;
  font-weight: 500;
  color: rgba(16, 33, 31, 0.62);
}

.checkbox-field {
  display: flex !important;
  align-items: center;
  gap: 0.7rem;
  min-height: 54px;
  padding: 0.9rem 1rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(16, 33, 31, 0.08);
}

.checkbox-field input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 0;
}

.checkbox-field span {
  color: var(--text);
}

input:not([type="checkbox"]),
select,
textarea {
  width: 100%;
  min-height: 50px;
  padding: 0.95rem 1rem;
  align-self: start;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.92);
  color: var(--text);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

textarea {
  min-height: 110px;
  resize: vertical;
}

input:not([type="checkbox"]):focus,
select:focus,
textarea:focus {
  border-color: rgba(18, 53, 47, 0.35);
  box-shadow: 0 0 0 4px rgba(88, 214, 141, 0.16);
}

.checkbox-inline {
  display: flex !important;
  align-items: center;
  gap: 0.65rem;
  color: var(--text);
}

.checkbox-inline input[type="checkbox"] {
  width: 18px;
  height: 18px;
  min-height: 18px;
  margin: 0;
  padding: 0;
  flex: 0 0 auto;
}

.auth-footer {
  margin: 1rem 0 0;
  color: var(--muted);
  text-align: center;
}

.inline-alert,
.trial-banner {
  padding: 1rem 1.1rem;
  border-radius: 18px;
  border: 1px solid rgba(16, 33, 31, 0.08);
  background: rgba(255, 255, 255, 0.75);
  color: var(--text);
}

.inline-alert.warning,
.trial-banner.warning {
  background: var(--warning);
}

.expired-plan-banner {
  margin-top: 0.8rem;
  padding: 1rem 1.1rem;
  border-radius: 18px;
  border: 1px solid rgba(146, 49, 39, 0.26);
  background: linear-gradient(135deg, rgba(255, 234, 228, 0.96), rgba(255, 245, 229, 0.95));
  color: #5f271f;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.95rem;
}

.expired-plan-banner strong {
  display: block;
  margin-bottom: 0.2rem;
  font-size: 1rem;
}

.expired-plan-banner p {
  margin: 0;
}

.expired-plan-banner .button {
  white-space: nowrap;
  flex-shrink: 0;
}

@media (max-width: 860px) {
  .expired-plan-banner {
    flex-direction: column;
    align-items: flex-start;
  }

  .expired-plan-banner .button {
    width: 100%;
  }
}

.app-shell {
  width: 100%;
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  z-index: 15;
  display: flex;
  gap: 0.65rem;
  overflow-x: auto;
  padding: 1rem;
  background: rgba(248, 242, 232, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(16, 33, 31, 0.08);
}

.sidebar-brand {
  display: none;
}

.sidebar-nav {
  display: flex;
  gap: 0.65rem;
}

.sidebar-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1rem;
  border-radius: 16px;
  border: 1px solid rgba(16, 33, 31, 0.06);
  background: rgba(255, 255, 255, 0.62);
  color: rgba(16, 33, 31, 0.72);
  font-weight: 700;
  white-space: nowrap;
  transition: transform 160ms ease, background 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.sidebar-sublink {
  margin-left: 0.85rem;
  padding-left: 0.9rem;
  font-size: 0.92rem;
  font-weight: 600;
}

.sidebar-link:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.9);
  color: var(--text);
  box-shadow: 0 10px 20px rgba(16, 33, 31, 0.08);
}

.sidebar-link.is-active {
  background: linear-gradient(135deg, #12352f, #245247);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 16px 30px rgba(18, 53, 47, 0.22);
}

.app-main {
  padding: 1.1rem;
}

.app-section {
  display: grid;
  gap: 1.2rem;
}

.topbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.4rem;
  padding: 1.25rem 1.35rem;
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(255, 252, 247, 0.94), rgba(244, 237, 225, 0.82));
  border: 1px solid rgba(16, 33, 31, 0.07);
  box-shadow: 0 18px 40px rgba(98, 85, 59, 0.08);
}

.topbar h1 {
  margin: 0.2rem 0 0;
  font-size: clamp(2.1rem, 4vw, 3.3rem);
}

.topbar h1 {
  margin: 0.3rem 0 0;
  font-family: "Sora", sans-serif;
  font-size: clamp(1.7rem, 4vw, 2.8rem);
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.mobile-menu-button {
  display: inline-flex;
}

.mobile-sidebar-overlay {
  position: fixed;
  inset: 0;
  z-index: 19;
  border: none;
  background: rgba(10, 18, 17, 0.42);
}

.metric-grid {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  margin: 0;
}

.metric-grid.compact {
  margin-top: 1.2rem;
}

.report-kpi-grid {
  display: grid;
  gap: 0.9rem;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  margin-top: 0.4rem;
}

.report-kpi-card {
  padding: 1rem;
  border-radius: 20px;
  border: 1px solid rgba(16, 33, 31, 0.08);
  background: linear-gradient(170deg, rgba(255, 255, 255, 0.94), rgba(245, 240, 232, 0.9));
  box-shadow: 0 14px 28px rgba(16, 33, 31, 0.08);
  animation: reportCardRise 420ms ease both;
  animation-delay: var(--delay, 0ms);
}

.report-kpi-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
}

.report-kpi-icon {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
  font-size: 0.86rem;
}

.report-kpi-card small {
  display: block;
  margin-top: 0.6rem;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
}

.report-kpi-card strong {
  display: block;
  margin-top: 0.28rem;
  font-family: "Sora", sans-serif;
  font-size: 1.35rem;
}

.report-kpi-card p {
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-size: 0.8rem;
}

.report-kpi-card.revenue .report-kpi-icon { background: linear-gradient(135deg, #1e8b5c, #11593a); }
.report-kpi-card.expenses .report-kpi-icon { background: linear-gradient(135deg, #b85b48, #934333); }
.report-kpi-card.profit .report-kpi-icon { background: linear-gradient(135deg, #2563b8, #1c4e90); }
.report-kpi-card.trips .report-kpi-icon { background: linear-gradient(135deg, #7c4fb0, #5a3784); }
.report-kpi-card.ticket .report-kpi-icon { background: linear-gradient(135deg, #d3862a, #9f6119); }
.report-kpi-card.km .report-kpi-icon { background: linear-gradient(135deg, #2d8f89, #1f6863); }
.report-kpi-card.consumption .report-kpi-icon { background: linear-gradient(135deg, #4f8d2a, #355f1d); }
.report-kpi-card.costkm .report-kpi-icon { background: linear-gradient(135deg, #6b7280, #454a52); }

.report-kpi-card.negative strong {
  color: var(--danger);
}

.report-kpi-card.positive strong {
  color: #157848;
}

.report-analytics-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.report-analytics-card {
  height: 100%;
}

.chartjs-host {
  min-height: 300px;
  border-radius: 18px;
  border: 1px solid rgba(16, 33, 31, 0.08);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(242, 245, 243, 0.88));
  padding: 0.75rem;
}

.chartjs-host canvas {
  width: 100% !important;
  height: 280px !important;
}

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

.metric-card {
  padding: 1.25rem;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(247, 243, 236, 0.86));
  border: 1px solid rgba(16, 33, 31, 0.06);
  box-shadow: 0 18px 35px rgba(98, 85, 59, 0.08);
}

.metric-card.positive strong,
.insight-card strong.positive,
.status-good {
  color: #12804c;
}

.status-warning {
  color: #9a6a00;
}

.metric-card.negative strong,
.insight-card strong.negative,
.status-bad {
  color: var(--danger);
}

.panel {
  padding: 1.35rem;
  border-radius: 30px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(245, 240, 232, 0.82));
  border: 1px solid rgba(16, 33, 31, 0.06);
  box-shadow: 0 22px 44px rgba(98, 85, 59, 0.08);
}

.panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.15rem;
}

.panel-header p {
  margin: 0.4rem 0 0;
  color: var(--muted);
  max-width: 30ch;
}

.section-subhead {
  display: flex;
  align-items: end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.65rem 1rem;
  margin: 1rem 0 0.8rem;
}

.section-subhead h3 {
  margin: 0;
  font-family: "Sora", sans-serif;
  font-size: 1.02rem;
}

.section-subhead p {
  margin: 0;
  color: var(--muted);
}

.period-table-group + .period-table-group {
  margin-top: 1.1rem;
}

.route-summary-note {
  padding: 0.85rem 1rem;
  border-radius: 18px;
  background: rgba(229, 185, 72, 0.12);
  color: #8a6200;
  font-weight: 600;
}

.chart-host,
.table-host,
.stack-list,
.insight-list {
  display: grid;
  gap: 0.85rem;
}

.chart-host {
  min-height: 300px;
  align-content: start;
}

.dashboard-hero {
  padding: 1.5rem;
}

.quick-actions-grid,
.dashboard-support-grid {
  display: grid;
  gap: 1rem;
}

.quick-actions-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.quick-action-card {
  display: grid;
  gap: 0.45rem;
  padding: 1.15rem;
  text-align: left;
  border: 1px solid rgba(16, 33, 31, 0.08);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(239, 246, 242, 0.9));
  box-shadow: 0 16px 32px rgba(18, 53, 47, 0.08);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.quick-action-card:hover {
  transform: translateY(-2px);
  border-color: rgba(18, 53, 47, 0.16);
  box-shadow: 0 20px 36px rgba(18, 53, 47, 0.12);
}

.quick-action-card strong {
  font-family: "Sora", sans-serif;
  font-size: 1.05rem;
  color: var(--ink);
}

.quick-action-card span {
  color: var(--muted);
  line-height: 1.6;
}

.compact-panel .stack-item {
  min-height: 120px;
}

.table-host + .table-host,
.stack-list + .table-host,
.table-host + .stack-list {
  margin-top: 1rem;
}

.chart-card,
.stack-item,
.insight-card,
.table-shell {
  border-radius: 22px;
  background: rgba(240, 244, 242, 0.8);
  border: 1px solid rgba(16, 33, 31, 0.06);
}

.stack-item,
.insight-card {
  padding: 1rem;
}

.stack-item {
  background: linear-gradient(180deg, rgba(247, 249, 247, 0.94), rgba(238, 242, 240, 0.88));
}

.stack-item h3,
.insight-card h3 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
}

.stack-item strong,
.insight-card strong {
  display: block;
  margin-top: 0.65rem;
}

.stack-item p,
.insight-card p,
.table-empty,
.calculation-box p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.compact .stack-item {
  padding: 0.85rem 1rem;
}

.comparison-card {
  padding: 1rem;
  border-radius: 22px;
  background: rgba(240, 244, 242, 0.8);
}

.comparison-card strong {
  display: block;
  margin: 0.45rem 0;
  font-size: 1.2rem;
}

.comparison-card span {
  color: var(--muted);
}

.form-grid .span-2 {
  grid-column: 1 / -1;
}

.calculation-box,
.subscription-card,
.paywall-panel {
  padding: 1rem;
  border-radius: 24px;
}

.calculation-box {
  background: rgba(240, 244, 242, 0.8);
  border: 1px dashed rgba(16, 33, 31, 0.16);
}

.freight-price-highlight {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
  margin-top: 1rem;
}

.freight-price-card {
  padding: 1rem 1.1rem;
  border-radius: 20px;
  border: 1px solid rgba(16, 33, 31, 0.08);
  background: linear-gradient(180deg, rgba(247, 249, 247, 0.98), rgba(236, 242, 239, 0.92));
}

.freight-price-card small {
  display: block;
  margin-bottom: 0.4rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.75rem;
}

.freight-price-card strong {
  display: block;
  font-family: "Sora", sans-serif;
  font-size: 1.45rem;
  line-height: 1.15;
}

.freight-price-card.minimum {
  border-color: rgba(184, 120, 34, 0.24);
  background: linear-gradient(180deg, rgba(255, 248, 234, 0.98), rgba(249, 239, 214, 0.92));
}

.freight-price-card.ideal {
  border-color: rgba(18, 128, 76, 0.22);
  background: linear-gradient(180deg, rgba(234, 249, 241, 0.98), rgba(218, 241, 230, 0.92));
}

.trip-freight-highlight {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
  margin: 0.35rem 0 0.55rem;
}

.trip-freight-card {
  padding: 0.85rem 0.95rem;
  border-radius: 16px;
  border: 1px solid rgba(16, 33, 31, 0.08);
  background: linear-gradient(180deg, rgba(247, 249, 247, 0.98), rgba(236, 242, 239, 0.92));
}

.trip-freight-card small {
  display: block;
  margin-bottom: 0.25rem;
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.trip-freight-card strong {
  display: block;
  font-family: "Sora", sans-serif;
  font-size: 1.2rem;
  line-height: 1.1;
}

.trip-freight-card.minimum {
  border-color: rgba(184, 120, 34, 0.24);
  background: linear-gradient(180deg, rgba(255, 248, 234, 0.98), rgba(249, 239, 214, 0.92));
}

.trip-freight-card.ideal {
  border-color: rgba(18, 128, 76, 0.22);
  background: linear-gradient(180deg, rgba(234, 249, 241, 0.98), rgba(218, 241, 230, 0.92));
}

.route-summary {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.8rem;
}

.route-stat,
.route-summary-empty {
  padding: 0.95rem 1rem;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(247, 249, 247, 0.96), rgba(237, 242, 239, 0.88));
  border: 1px solid rgba(16, 33, 31, 0.08);
}

.route-stat small {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--muted);
}

.route-stat strong {
  font-family: "Sora", sans-serif;
}

.route-stat-wide {
  grid-column: 1 / -1;
}

.route-option {
  border: 1px solid rgba(16, 33, 31, 0.12);
  border-radius: 18px;
  padding: 0.9rem;
  background: rgba(245, 248, 246, 0.88);
  display: grid;
  gap: 0.7rem;
}

.route-option.is-selected {
  border-color: rgba(18, 128, 76, 0.42);
  box-shadow: 0 8px 16px rgba(18, 128, 76, 0.12);
}

.route-option-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
}

.route-option-header h3 {
  margin: 0;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
}

.route-option-header span {
  font-size: 0.78rem;
  color: var(--muted);
}

.route-option-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
}

.route-stations-list {
  margin: 0.45rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.35rem;
}

.route-stations-list li {
  display: flex;
  justify-content: space-between;
  gap: 0.6rem;
  font-size: 0.9rem;
}

.route-summary-empty {
  grid-column: 1 / -1;
  color: var(--muted);
  text-align: center;
}

.route-map {
  min-height: 320px;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(16, 33, 31, 0.08);
  box-shadow: 0 12px 26px rgba(18, 53, 47, 0.08);
}

.paywall-panel {
  display: grid;
  gap: 1rem;
  margin-bottom: 1rem;
  border: 1px solid rgba(188, 81, 72, 0.24);
}

.table-shell {
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  width: 100%;
}

.table-shell table {
  width: max-content;
  min-width: 100%;
  border-collapse: collapse;
  font-size: 0.93rem;
}

.table-shell th,
.table-shell td {
  padding: 0.9rem;
  text-align: left;
  border-bottom: 1px solid rgba(16, 33, 31, 0.08);
  vertical-align: top;
}

.table-shell th {
  color: var(--muted);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.table-shell tr:last-child td {
  border-bottom: none;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.32rem 0.65rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
}

.badge.good {
  background: rgba(88, 214, 141, 0.18);
  color: #146c46;
}

.badge.warning {
  background: rgba(229, 185, 72, 0.2);
  color: #9a6a00;
}

.badge.bad {
  background: rgba(188, 81, 72, 0.18);
  color: var(--danger);
}

.badge.neutral {
  background: rgba(16, 33, 31, 0.08);
  color: var(--text);
}

.trip-rating-cell {
  display: grid;
  gap: 0.2rem;
}

.trip-rating-stars {
  font-size: 1rem;
  letter-spacing: 0.06em;
  color: #d19a00;
}

.trip-rating-cell small {
  color: var(--muted);
  font-size: 0.74rem;
}

.inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.driver-group-block + .driver-group-block {
  margin-top: 1rem;
}

.driver-group-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin-bottom: 0.5rem;
}

.driver-group-head h3 {
  margin: 0;
  font-family: "Sora", sans-serif;
  font-size: 1rem;
}

.driver-group-head p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.vehicle-group-block + .vehicle-group-block {
  margin-top: 1rem;
}

.vehicle-group-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin-bottom: 0.65rem;
}

.vehicle-group-head h3 {
  margin: 0;
  font-family: "Sora", sans-serif;
  font-size: 1rem;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.vehicle-group-head p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.vehicle-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.65rem;
  margin-bottom: 0.85rem;
}

.vehicle-kpi-item {
  padding: 0.7rem 0.8rem;
  border-radius: 14px;
  background: rgba(240, 244, 242, 0.85);
  border: 1px solid rgba(16, 33, 31, 0.06);
}

.vehicle-kpi-item small {
  display: block;
  color: var(--muted);
  font-size: 0.75rem;
}

.vehicle-kpi-item strong {
  display: block;
  margin-top: 0.2rem;
}

.vehicle-group-block h4 {
  margin: 0.2rem 0 0.55rem;
  font-size: 0.95rem;
}

.freight-status-toolbar {
  display: grid;
  gap: 0.75rem;
  align-items: end;
  margin-bottom: 0.9rem;
}

.freight-status-toolbar label {
  margin: 0;
}

.freight-active-cards {
  display: grid;
  gap: 0.8rem;
}

.dashboard-slider {
  display: grid;
  gap: 0.6rem;
}

.dashboard-slider-stage {
  position: relative;
  min-height: 190px;
}

.dashboard-slider-stage .dashboard-slide {
  display: none;
}

.dashboard-slider-stage .dashboard-slide.is-active {
  display: grid;
  animation: dashboardSlideIn 220ms ease;
}

@keyframes dashboardSlideIn {
  from {
    opacity: 0;
    transform: translateX(8px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.dashboard-slider-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
}

.dashboard-slider-nav {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(16, 33, 31, 0.14);
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink);
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
}

.dashboard-slider-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  flex: 1;
}

.dashboard-slider-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  border: 0;
  background: rgba(16, 33, 31, 0.22);
  cursor: pointer;
}

.dashboard-slider-dot.is-active {
  width: 20px;
  background: rgba(16, 80, 67, 0.88);
}

.freight-active-card {
  padding: 0.95rem;
  border-radius: 18px;
  border: 1px solid rgba(16, 33, 31, 0.08);
  background: linear-gradient(180deg, rgba(247, 249, 247, 0.96), rgba(237, 242, 239, 0.9));
  box-shadow: 0 10px 22px rgba(18, 53, 47, 0.06);
  display: grid;
  gap: 0.75rem;
}

.freight-active-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.freight-active-card-head h3 {
  margin: 0;
  font-family: "Sora", sans-serif;
  font-size: 1rem;
}

.freight-active-card-head p {
  margin: 0.2rem 0 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.freight-active-kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
}

.freight-active-kpis div {
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(16, 33, 31, 0.06);
  padding: 0.55rem 0.65rem;
}

.freight-active-kpis small {
  display: block;
  color: var(--muted);
  font-size: 0.74rem;
}

.freight-active-kpis strong {
  display: block;
  margin-top: 0.2rem;
}

.alert-clickable {
  cursor: pointer;
}

.alert-clickable:hover {
  border-color: rgba(16, 80, 67, 0.28);
  box-shadow: 0 14px 26px rgba(18, 53, 47, 0.12);
}

.freight-active-kpis em,
.trip-closed-kpis em {
  display: block;
  margin-top: 0.2rem;
  font-style: normal;
  color: var(--muted);
  font-size: 0.74rem;
  line-height: 1.35;
}

.trip-closed-cards {
  display: grid;
  gap: 0.8rem;
}

.trip-closed-card {
  padding: 0.95rem;
  border-radius: 18px;
  border: 1px solid rgba(16, 33, 31, 0.08);
  background: linear-gradient(180deg, rgba(247, 249, 247, 0.96), rgba(237, 242, 239, 0.9));
  box-shadow: 0 10px 22px rgba(18, 53, 47, 0.06);
  display: grid;
  gap: 0.75rem;
}

.trip-closed-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.trip-closed-card-head h3 {
  margin: 0;
  font-family: "Sora", sans-serif;
  font-size: 1rem;
}

.trip-closed-card-head p {
  margin: 0.2rem 0 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.trip-closed-kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
}

.trip-closed-kpis div {
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(16, 33, 31, 0.06);
  padding: 0.55rem 0.65rem;
}

.trip-closed-kpis small {
  display: block;
  color: var(--muted);
  font-size: 0.74rem;
}

.trip-closed-kpis strong {
  display: block;
  margin-top: 0.2rem;
}

.entity-cards {
  display: grid;
  gap: 0.8rem;
}

.entity-card {
  padding: 0.95rem;
  border-radius: 18px;
  border: 1px solid rgba(16, 33, 31, 0.08);
  background: linear-gradient(180deg, rgba(247, 249, 247, 0.96), rgba(237, 242, 239, 0.9));
  box-shadow: 0 10px 22px rgba(18, 53, 47, 0.06);
  display: grid;
  gap: 0.75rem;
}

.entity-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.entity-card-head h3 {
  margin: 0;
  font-family: "Sora", sans-serif;
  font-size: 1rem;
}

.entity-card-head p {
  margin: 0.2rem 0 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.entity-card-kpis {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
}

.entity-card-kpis div {
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(16, 33, 31, 0.06);
  padding: 0.55rem 0.65rem;
}

.entity-card-kpis small {
  display: block;
  color: var(--muted);
  font-size: 0.74rem;
}

.entity-card-kpis strong {
  display: block;
  margin-top: 0.2rem;
}

.stack-item-clickable {
  cursor: pointer;
}

.stack-item-clickable:hover {
  box-shadow: 0 10px 24px rgba(16, 33, 31, 0.12);
  transform: translateY(-1px);
}

.receipt-card .inline-actions {
  justify-content: flex-start;
}

.filters-grid {
  align-items: end;
}

.filters-grid .button {
  width: 100%;
}

.compare-month-form {
  margin-bottom: 0.8rem;
}

.report-card {
  padding: 1rem;
  border-radius: 20px;
  background: rgba(240, 244, 242, 0.8);
}

.report-card strong {
  display: block;
  margin-top: 0.5rem;
  font-size: 1.4rem;
}

.subscription-card {
  display: grid;
  gap: 0.8rem;
  margin-bottom: 1rem;
}

.subscription-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
}

.subscription-plan {
  display: grid;
  gap: 0.2rem;
}

.subscription-plan span,
.billing-helper,
.billing-muted {
  color: var(--muted);
}

.subscription-copy {
  margin: 0;
}

.subscription-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
  padding: 1rem;
  border-radius: 20px;
  background: rgba(240, 244, 242, 0.85);
  border: 1px solid rgba(16, 33, 31, 0.06);
}

.subscription-meta small {
  display: block;
  margin-bottom: 0.3rem;
  color: var(--muted);
}

.subscription-meta strong {
  font-size: 0.95rem;
}

.subscription-note {
  padding: 0.9rem 1rem;
  border-radius: 18px;
  font-size: 0.92rem;
  font-weight: 600;
}

.subscription-note.good {
  background: rgba(88, 214, 141, 0.14);
  color: #11673f;
}

.subscription-note.warning {
  background: rgba(229, 185, 72, 0.2);
  color: #7a5a0a;
}

.status-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.status-chip.good {
  background: rgba(88, 214, 141, 0.16);
  color: #11673f;
}

.status-chip.warning {
  background: rgba(229, 185, 72, 0.2);
  color: #7a5a0a;
}

.status-chip.danger {
  background: rgba(188, 81, 72, 0.16);
  color: #9a2e24;
}

.billing-link {
  color: var(--primary);
  text-decoration: none;
}

.billing-link:hover {
  text-decoration: underline;
}

.billing-actions {
  display: grid;
  gap: 0.6rem;
}

.billing-helper {
  margin: 0;
  font-size: 0.9rem;
}

.report-tabs {
  display: inline-flex;
  gap: 0.55rem;
  padding: 0.3rem;
  border-radius: 14px;
  background: rgba(16, 33, 31, 0.06);
  margin: 0.8rem 0 1rem;
}

.report-tab-button {
  border: none;
  border-radius: 10px;
  padding: 0.55rem 0.85rem;
  font-weight: 700;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.report-tab-button.is-active {
  background: #fff;
  color: var(--text);
  box-shadow: 0 4px 10px rgba(16, 33, 31, 0.1);
}

.receipt-filter-tabs {
  margin: 0.2rem 0 0.8rem;
  flex-wrap: wrap;
}

.freight-calendar {
  display: grid;
  gap: 0.6rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.freight-calendar-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
}

.freight-calendar-head strong {
  font-size: 1rem;
}

.freight-calendar-head small {
  color: var(--muted);
}

.freight-calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.35rem;
}

.freight-calendar-weekdays span {
  text-align: center;
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 700;
}

.freight-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.35rem;
}

.freight-calendar-day {
  min-height: 120px;
  border: 1px solid rgba(16, 33, 31, 0.09);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.76);
  padding: 0.4rem 0.45rem;
  display: grid;
  align-content: start;
  gap: 0.35rem;
}

.freight-calendar-day.empty {
  background: transparent;
  border-style: dashed;
  min-height: 96px;
}

.freight-calendar-day.today {
  border-color: rgba(18, 53, 47, 0.34);
  box-shadow: inset 0 0 0 1px rgba(18, 53, 47, 0.16);
}

.freight-calendar-day header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
}

.freight-calendar-day header strong {
  font-size: 0.85rem;
}

.freight-calendar-day header span {
  font-size: 0.72rem;
  color: var(--muted);
}

.freight-calendar-day ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.25rem;
}

.freight-calendar-event,
.freight-calendar-more {
  padding: 0.22rem 0.3rem;
  border-radius: 8px;
  font-size: 0.72rem;
  line-height: 1.2;
  background: rgba(16, 33, 31, 0.08);
}

.freight-calendar-event small {
  display: block;
  color: var(--muted);
}

.freight-calendar-event.good {
  background: rgba(31, 143, 99, 0.16);
}

.freight-calendar-more {
  background: rgba(44, 77, 143, 0.13);
}

.panel-header h2 .badge {
  margin-left: 0.5rem;
  vertical-align: middle;
  font-size: 0.72rem;
}

.toast {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 25;
  max-width: 320px;
  padding: 1rem 1.1rem;
  border-radius: 18px;
  background: var(--surface-dark);
  color: #fff;
  box-shadow: var(--shadow-soft);
}

.donut-grid {
  display: grid;
  gap: 1rem;
}

.donut-track {
  --size: 180px;
  width: var(--size);
  height: var(--size);
  margin: 0 auto;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: conic-gradient(var(--accent) var(--progress, 40%), rgba(16, 33, 31, 0.08) 0);
}

.donut-track::before {
  content: "";
  width: calc(var(--size) - 44px);
  height: calc(var(--size) - 44px);
  border-radius: 50%;
  background: #fff;
}

.donut-label {
  position: absolute;
  text-align: center;
  font-weight: 800;
}

.legend-list {
  display: grid;
  gap: 0.6rem;
}

.legend-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  color: var(--muted);
}

.legend-key {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

.legend-swatch {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.empty-state {
  padding: 1.4rem;
  border-radius: 22px;
  background: rgba(240, 244, 242, 0.8);
  text-align: center;
  color: var(--muted);
}

.empty-state-chart {
  min-height: 260px;
  display: grid;
  place-content: center;
  gap: 0.5rem;
  padding: 1.6rem;
  background:
    radial-gradient(circle at top, rgba(88, 214, 141, 0.16), transparent 42%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(240, 244, 242, 0.92));
  border: 1px dashed rgba(16, 33, 31, 0.14);
}

.comparison-card {
  padding: 1rem;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(242, 244, 243, 0.82));
  border: 1px solid rgba(16, 33, 31, 0.06);
}

.empty-state-chart strong {
  font-family: "Sora", sans-serif;
  font-size: 1.15rem;
  color: var(--ink);
}

.empty-state-chart p {
  margin: 0;
  max-width: 26ch;
  line-height: 1.6;
}

.empty-state-kicker {
  display: inline-flex;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #12804c;
}

@media (min-width: 720px) {
  .site-nav {
    display: flex;
  }

  .hero-section,
  .auth-shell {
    grid-template-columns: 1.1fr 0.9fr;
  }

  .feature-grid,
  .step-list,
  .testimonial-grid,
  .prints-grid,
  .content-grid,
  .dual-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .metric-grid,
  .comparison-grid,
  .filters-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .freight-status-toolbar {
    grid-template-columns: minmax(260px, 1fr) auto;
  }

  .content-grid {
    align-items: start;
  }

  .dashboard-support-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cta-panel {
    grid-template-columns: 1fr auto;
  }
}

@media (min-width: 1024px) {
  .app-shell {
    display: grid;
    grid-template-columns: 292px minmax(0, 1fr);
  }

  .sidebar {
    display: grid;
    align-content: start;
    gap: 1.2rem;
    min-height: 100vh;
    padding: 1.6rem 1.2rem;
    border-bottom: none;
    border-right: 1px solid rgba(16, 33, 31, 0.08);
    background:
      linear-gradient(180deg, rgba(251, 248, 241, 0.97), rgba(241, 232, 217, 0.94)),
      radial-gradient(circle at top, rgba(88, 214, 141, 0.08), transparent 30%);
  }

  .sidebar-brand {
    display: block;
  }

  .sidebar-nav {
    display: grid;
  }

  .sidebar-link {
    justify-content: flex-start;
    min-height: 54px;
  }

  .app-main {
    padding: 1.6rem 2rem 2.2rem;
    max-width: 1440px;
  }

  .mobile-menu-button,
  .mobile-sidebar-overlay {
    display: none !important;
  }

  .content-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.nearby-stops-list {
  display: grid;
  gap: 0.9rem;
  margin-top: 0.85rem;
}

.nearby-stop-card {
  border: 1px solid rgba(16, 67, 58, 0.12);
  border-radius: 16px;
  padding: 0.9rem;
  background: rgba(255, 255, 255, 0.7);
  display: grid;
  gap: 0.75rem;
}

.nearby-stop-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
}

.nearby-stop-head h3 {
  margin: 0;
}

.nearby-stop-head p {
  margin: 0.15rem 0 0;
  color: rgba(22, 49, 44, 0.72);
  font-size: 0.9rem;
}

.nearby-stop-rating {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.nearby-stop-rating span {
  padding: 0.28rem 0.56rem;
  border-radius: 999px;
  background: rgba(16, 67, 58, 0.08);
  font-size: 0.82rem;
}

.nearby-stop-review-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.nearby-stop-review-form label {
  display: grid;
  gap: 0.35rem;
}

.nearby-stop-review-form span {
  font-size: 0.82rem;
  font-weight: 700;
}

.star-rating-field {
  display: grid;
  gap: 0.35rem;
}

.star-rating-field.is-disabled {
  opacity: 0.5;
}

.star-rating-row {
  display: flex;
  gap: 0.2rem;
  flex-wrap: wrap;
}

.star-rating-button {
  border: none;
  background: transparent;
  padding: 0.1rem 0.22rem;
  cursor: pointer;
  font-size: 1.45rem;
  line-height: 1;
  color: #b8c2bf;
  text-shadow: 0 0 0 transparent;
  transition: transform 0.12s ease, color 0.12s ease, text-shadow 0.12s ease;
}

.star-rating-button:hover {
  transform: translateY(-1px);
  color: #f59e0b;
  text-shadow: 0 4px 10px rgba(245, 158, 11, 0.35);
}

.star-rating-button.is-selected {
  color: #ffb703;
  text-shadow: 0 4px 12px rgba(255, 183, 3, 0.42);
}

.nearby-stop-no-overnight {
  display: flex !important;
  align-items: center;
  gap: 0.55rem;
}

.nearby-stop-no-overnight span {
  font-size: 0.9rem;
  font-weight: 600;
}

.nearby-stop-anonymous {
  display: flex !important;
  align-items: center;
  gap: 0.55rem;
}

.nearby-stop-anonymous span {
  font-size: 0.9rem;
  font-weight: 600;
}

.nearby-stop-details {
  display: grid;
  gap: 0.9rem;
}

.nearby-stop-review-history h4 {
  margin: 0;
  font-size: 0.95rem;
}

.nearby-stop-reviews-list {
  display: grid;
  gap: 0.65rem;
}

.nearby-stop-review-item {
  border: 1px solid rgba(16, 67, 58, 0.12);
  background: rgba(16, 67, 58, 0.03);
  border-radius: 12px;
  padding: 0.65rem;
}

.nearby-stop-review-item header {
  display: flex;
  justify-content: space-between;
  gap: 0.6rem;
  align-items: center;
}

.nearby-stop-review-item p {
  margin: 0.4rem 0 0;
  font-size: 0.9rem;
}

#nearby-stops-route-fields {
  grid-column: 1 / -1;
}

#nearby-stops-route-fields label {
  min-width: 0;
}

#nearby-stops-search-button {
  grid-column: 1 / -1;
}

@media (max-width: 719px) {
  .app-main {
    padding: 0.85rem;
  }

  .app-section {
    gap: 0.9rem;
  }

  .panel {
    padding: 1rem;
    border-radius: 22px;
  }

  .panel h2 {
    font-size: clamp(1.2rem, 5.2vw, 1.5rem);
  }

  .topbar {
    padding: 1rem;
    border-radius: 20px;
  }

  .topbar-actions {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
  }

  .panel-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.8rem;
    margin-bottom: 0.9rem;
  }

  .panel-header > .button {
    align-self: center;
  }

  .panel-header p {
    max-width: 100%;
  }

  .metric-grid {
    grid-template-columns: 1fr;
  }

  .quick-actions-grid,
  .dashboard-support-grid,
  .report-analytics-grid,
  .route-summary,
  .route-option-grid,
  .filters-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .quick-action-card {
    padding: 1rem;
    border-radius: 18px;
  }

  .quick-action-card strong {
    font-size: 1rem;
  }

  .calculation-box,
  .route-stat,
  .route-summary-empty,
  .stack-item {
    border-radius: 16px;
  }

  .entity-card-kpis {
    grid-template-columns: 1fr;
  }

  .form-actions-row {
    justify-content: center;
    width: 100%;
    position: sticky;
    bottom: 0;
    z-index: 4;
    background: linear-gradient(180deg, rgba(239, 231, 218, 0.2), rgba(239, 231, 218, 0.95) 35%);
    padding: 0.55rem 0.35rem calc(0.45rem + env(safe-area-inset-bottom, 0px));
    border-radius: 14px;
  }

  .inline-actions {
    justify-content: center;
    width: 100%;
  }

  .button {
    min-height: 46px;
  }

  .form-actions-row .button,
  .inline-actions .button {
    width: 100%;
  }

  .mobile-shortcuts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mobile-shortcuts .button {
    width: 100%;
  }

  .nearby-stop-head {
    flex-direction: column;
  }

  .nearby-stop-head .button {
    width: 100%;
  }

  .nearby-stop-review-form {
    grid-template-columns: 1fr;
  }

  .vehicle-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .freight-active-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .trip-closed-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .table-shell {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    border-radius: 16px;
  }

  .table-shell table {
    min-width: 760px;
  }

  .table-shell th,
  .table-shell td {
    padding: 0.7rem 0.65rem;
    font-size: 0.86rem;
  }

  .report-tabs {
    width: 100%;
    overflow-x: auto;
    flex-wrap: nowrap;
    scrollbar-width: thin;
  }

  #report-tabs {
    margin-bottom: 0.45rem;
  }

  .report-tab-button {
    white-space: nowrap;
  }

  .freight-calendar-weekdays,
  .freight-calendar-grid {
    min-width: 760px;
  }

  .freight-calendar-day {
    min-height: 104px;
  }

  .subscription-card,
  .paywall-panel {
    border-radius: 20px;
  }

  .subscription-meta {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1023px) {
  .app-shell {
    position: relative;
  }

  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: min(86vw, 320px);
    max-width: 320px;
    z-index: 20;
    display: grid;
    align-content: start;
    gap: 0.9rem;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 1rem;
    border-right: 1px solid rgba(16, 33, 31, 0.08);
    border-bottom: none;
    background: linear-gradient(180deg, rgba(251, 248, 241, 0.98), rgba(241, 232, 217, 0.96));
    transform: translateX(-106%);
    transition: transform 220ms ease;
  }

  .sidebar-link {
    width: 100%;
    justify-content: flex-start;
    min-height: 52px;
  }

  .sidebar-brand {
    display: block;
  }

  .sidebar-brand .brand img {
    width: 132px;
  }

  .sidebar-nav {
    display: grid;
  }

  body.sidebar-open .sidebar {
    transform: translateX(0);
  }
}

/* Visual refresh: landing + app */
body {
  background:
    radial-gradient(circle at 8% 10%, rgba(88, 214, 141, 0.2), transparent 32%),
    radial-gradient(circle at 92% 6%, rgba(229, 185, 72, 0.15), transparent 28%),
    linear-gradient(180deg, #f8f1e6, #f5ebdd);
}

.landing-shell,
.auth-shell,
.app-main {
  position: relative;
}

.site-header {
  margin-top: 0.35rem;
  padding: 0.9rem 1.05rem;
  border-radius: 18px;
  border: 1px solid rgba(16, 33, 31, 0.08);
  background: rgba(255, 253, 249, 0.78);
  box-shadow: 0 14px 32px rgba(16, 33, 31, 0.08);
}

.hero-copy h1,
.section-heading h2 {
  letter-spacing: -0.02em;
}

.hero-copy p,
.section-heading p {
  color: #4f5f5a;
}

.button {
  letter-spacing: 0.01em;
  transition: transform 0.16s ease, box-shadow 0.22s ease, background 0.22s ease, border-color 0.22s ease;
}

.button-primary {
  background: linear-gradient(135deg, #0f3a33, #1c5a4f);
  box-shadow: 0 14px 28px rgba(18, 53, 47, 0.28);
}

.button-primary:hover {
  box-shadow: 0 18px 34px rgba(18, 53, 47, 0.32);
}

.button-secondary {
  background: rgba(255, 255, 255, 0.78);
  border-color: rgba(16, 33, 31, 0.12);
}

.button-secondary:hover {
  border-color: rgba(16, 33, 31, 0.2);
  box-shadow: 0 10px 24px rgba(16, 33, 31, 0.12);
}

.panel,
.hero-panel,
.auth-panel,
.plan-card,
.cta-panel,
.feature-card,
.step-card,
.testimonial-card,
.print-card,
.subscription-card,
.paywall-panel {
  border: 1px solid rgba(16, 33, 31, 0.08);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(249, 244, 236, 0.9));
  box-shadow: 0 18px 40px rgba(16, 33, 31, 0.1);
}

.panel:hover,
.feature-card:hover,
.step-card:hover,
.testimonial-card:hover,
.print-card:hover,
.quick-action-card:hover {
  transform: translateY(-2px);
}

.form-grid input,
.form-grid select,
.form-grid textarea {
  border: 1px solid rgba(16, 33, 31, 0.14);
  background: rgba(255, 255, 255, 0.88);
  border-radius: 14px;
}

.form-grid input:focus,
.form-grid select:focus,
.form-grid textarea:focus {
  outline: none;
  border-color: rgba(18, 53, 47, 0.5);
  box-shadow: 0 0 0 4px rgba(18, 53, 47, 0.12);
}

.calculation-box,
.route-summary,
.table-shell,
.table-host {
  border: 1px solid rgba(16, 33, 31, 0.08);
  box-shadow: 0 12px 24px rgba(16, 33, 31, 0.08);
  background: rgba(255, 255, 255, 0.86);
}

.route-option {
  border: 1px solid rgba(16, 33, 31, 0.1);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(242, 248, 245, 0.92));
}

.route-option.is-selected {
  border-color: rgba(18, 53, 47, 0.35);
  box-shadow: 0 16px 30px rgba(18, 53, 47, 0.16);
}

.sidebar {
  background: rgba(249, 244, 236, 0.9);
  border-bottom: 1px solid rgba(16, 33, 31, 0.1);
}

.sidebar-link {
  border-color: rgba(16, 33, 31, 0.09);
}

.topbar {
  background: linear-gradient(135deg, rgba(255, 253, 248, 0.94), rgba(237, 247, 241, 0.9));
  box-shadow: 0 20px 42px rgba(46, 68, 61, 0.12);
}

.topbar h1 {
  letter-spacing: -0.025em;
}

/* Dashboard SaaS refresh */
.app-body {
  background:
    radial-gradient(circle at 6% 6%, rgba(88, 214, 141, 0.16), transparent 26%),
    radial-gradient(circle at 95% 8%, rgba(18, 53, 47, 0.1), transparent 22%),
    linear-gradient(180deg, #f7efe3, #f4ebde);
}

body:not(.app-ready) .app-main {
  opacity: 0;
  transform: translateY(8px);
}

body.app-ready .app-main {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 260ms ease, transform 260ms ease;
}

.sidebar {
  background: linear-gradient(180deg, rgba(13, 48, 42, 0.94), rgba(18, 60, 52, 0.9));
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar-brand .brand {
  display: inline-flex;
  align-items: center;
  gap: 0.72rem;
}

.sidebar-brand-copy {
  display: grid;
  gap: 0.1rem;
}

.sidebar-brand-copy strong {
  color: #ecf5f1;
  font-size: 1.05rem;
}

.sidebar-brand-copy span {
  color: rgba(233, 242, 239, 0.72);
  font-size: 0.79rem;
}

.sidebar-link {
  justify-content: flex-start;
  gap: 0.65rem;
  color: rgba(236, 244, 241, 0.9);
  border-color: rgba(235, 243, 239, 0.12);
  background: rgba(255, 255, 255, 0.02);
}

.sidebar-link:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.16);
  color: #fff;
}

.sidebar-link.is-active {
  background: linear-gradient(135deg, rgba(44, 122, 104, 0.9), rgba(20, 82, 68, 0.92));
  color: #f8fdfb;
  box-shadow: 0 14px 26px rgba(3, 31, 26, 0.3);
}

.sidebar-icon {
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
}

.topbar {
  display: grid;
  grid-template-columns: minmax(190px, auto) minmax(280px, 1fr) auto;
  align-items: center;
  gap: 0.85rem 1.1rem;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(16, 33, 31, 0.08);
  box-shadow: 0 18px 34px rgba(16, 33, 31, 0.1);
}

.topbar-title-wrap .eyebrow {
  margin: 0;
}

.topbar-title-wrap h1 {
  margin: 0.25rem 0 0;
  font-size: clamp(1.6rem, 2.5vw, 2.3rem);
}

.topbar-search-wrap {
  width: 100%;
}

.topbar-search {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  width: 100%;
  min-height: 46px;
  border-radius: 999px;
  padding: 0 0.9rem;
  border: 1px solid rgba(16, 33, 31, 0.12);
  background: rgba(245, 248, 247, 0.92);
}

.topbar-search input {
  border: 0;
  outline: none;
  width: 100%;
  font-size: 0.95rem;
  color: var(--text);
  background: transparent;
}

.topbar-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.6rem;
}

.notif-button {
  position: relative;
  border: 1px solid rgba(16, 33, 31, 0.12);
  background: rgba(255, 255, 255, 0.86);
  border-radius: 999px;
  width: 42px;
  height: 42px;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.notif-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(16, 33, 31, 0.12);
}

.notif-badge {
  position: absolute;
  top: -5px;
  right: -3px;
  min-width: 18px;
  height: 18px;
  border-radius: 999px;
  padding: 0 0.28rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 800;
  color: #fff;
  background: #cc3f36;
}

.topbar-user-menu {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  border: 1px solid rgba(16, 33, 31, 0.1);
  background: rgba(255, 255, 255, 0.88);
  border-radius: 999px;
  padding: 0.35rem 0.4rem 0.35rem 0.35rem;
}

.topbar-avatar {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1b5d50, #113f36);
  color: #f2faf7;
  font-weight: 800;
}

.topbar-user-meta {
  display: grid;
  gap: 0.05rem;
}

.topbar-user-meta strong {
  font-size: 0.84rem;
}

.topbar-user-meta small {
  font-size: 0.72rem;
  color: var(--muted);
}

.topbar-user-menu #logout-button {
  min-height: 34px;
  border-radius: 999px;
}

.dashboard-greeting {
  margin-bottom: 1rem;
}

.dashboard-greeting h2 {
  margin: 0;
  font-size: clamp(1.55rem, 2.8vw, 2.2rem);
  letter-spacing: -0.02em;
}

.dashboard-greeting p {
  margin: 0.25rem 0 0;
  color: var(--muted);
}

.dashboard-analytics-grid {
  display: grid;
  gap: 1rem;
}

.metric-card {
  border-radius: 22px;
  border: 1px solid rgba(16, 33, 31, 0.08);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(244, 248, 246, 0.9));
  box-shadow: 0 14px 28px rgba(16, 33, 31, 0.09);
}

.metric-card-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.55rem;
}

.metric-card-icon {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(18, 53, 47, 0.08);
  font-size: 0.92rem;
}

.metric-card-status {
  margin: 0.48rem 0 0;
  font-size: 0.82rem;
  font-weight: 700;
}

.metric-card-status.status-good {
  color: #17824d;
}

.metric-card-status.status-bad {
  color: #b14a39;
}

.metric-card-status.status-neutral {
  color: #55706a;
}

.profit-positive {
  color: #16814d;
  font-weight: 800;
}

.profit-negative {
  color: #b14a39;
  font-weight: 800;
}

.table-shell tbody tr:hover td {
  background: rgba(214, 235, 227, 0.2);
}

.dashboard-kpis-panel .panel-header {
  margin-bottom: 0.9rem;
}

@media (min-width: 980px) {
  .app-shell {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
  }

  .sidebar-brand {
    display: block;
  }

  .sidebar {
    position: sticky;
    left: auto;
    bottom: auto;
    top: 0;
    align-self: start;
    width: 100%;
    max-width: none;
    min-height: 100vh;
    padding: 1rem;
    overflow-y: auto;
    transform: none;
    border-bottom: 0;
  }

  .sidebar-nav {
    display: grid;
    width: 100%;
    gap: 0.55rem;
  }

  .dashboard-analytics-grid {
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr);
  }
}

@media (max-width: 979px) {
  .topbar {
    grid-template-columns: 1fr;
  }

  .topbar-actions {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .topbar-user-menu {
    width: 100%;
    justify-content: space-between;
  }

  .mobile-menu-button {
    order: -1;
  }
}

.notification-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
}

.notification-modal.hidden {
  display: none;
}

.notification-modal-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: transparent;
  pointer-events: auto;
}

.notification-modal-card {
  --notif-arrow-left: 28px;
  position: fixed;
  width: min(430px, calc(100vw - 1.2rem));
  max-height: min(76vh, 680px);
  overflow: auto;
  top: 84px;
  left: calc(100vw - 446px);
  border-radius: 24px;
  padding: 1rem;
  border: 1px solid rgba(16, 33, 31, 0.14);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(243, 248, 246, 0.96));
  box-shadow: 0 22px 42px rgba(9, 30, 26, 0.26);
  pointer-events: auto;
  transform-origin: top right;
  animation: notification-popover-in 180ms ease;
}

.notification-modal-card::before {
  content: "";
  position: absolute;
  top: -8px;
  left: var(--notif-arrow-left);
  width: 14px;
  height: 14px;
  border-left: 1px solid rgba(16, 33, 31, 0.14);
  border-top: 1px solid rgba(16, 33, 31, 0.14);
  background: rgba(255, 255, 255, 0.98);
  transform: rotate(45deg) translateX(-50%);
}

.notification-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  margin-bottom: 0.85rem;
}

.notification-modal-head h3 {
  margin: 0;
  font-size: 1.2rem;
}

.notification-list {
  display: grid;
  gap: 0.6rem;
}

.notification-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.8rem;
  align-items: start;
  border-radius: 16px;
  border: 1px solid rgba(16, 33, 31, 0.1);
  background: rgba(255, 255, 255, 0.88);
  padding: 0.85rem;
}

.notification-item.warning {
  border-color: rgba(229, 185, 72, 0.38);
  background: rgba(255, 248, 229, 0.88);
}

.notification-item-copy h4 {
  margin: 0;
  font-size: 0.97rem;
}

.notification-item-copy p {
  margin: 0.25rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

@keyframes notification-popover-in {
  from {
    opacity: 0;
    transform: translateY(-6px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 979px) {
  .notification-modal {
    pointer-events: auto;
  }

  .notification-modal-backdrop {
    background: rgba(8, 22, 20, 0.4);
  }

  .notification-modal-card {
    width: min(430px, calc(100vw - 1rem));
    max-height: min(72vh, 620px);
    left: auto;
    right: 0.5rem;
    top: 74px !important;
    bottom: auto;
    border-radius: 16px;
    border-bottom: 1px solid rgba(16, 33, 31, 0.14);
    transform-origin: top right;
    animation: notification-popover-in 180ms ease;
  }

  .notification-modal-card::before {
    display: block;
  }
}

@keyframes notification-sheet-up {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Agendamoto brand system */
brand-logo {
  display: inline-block;
}

.topbar-page-title {
  margin: 0.3rem 0 0;
  font-size: 0.88rem;
  color: var(--muted);
  font-family: "Manrope", sans-serif;
  font-weight: 700;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.62rem;
  text-decoration: none;
}

.brand-logo img {
  height: 40px;
  width: auto;
  flex: 0 0 auto;
}

.brand-logo-text {
  display: grid;
  gap: 0.02rem;
  line-height: 1.2;
}

.brand-logo-text strong {
  color: #0f5143;
  font-family: "Sora", sans-serif;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
}

.brand-logo-text small {
  color: #5e7069;
  font-size: 0.74rem;
  font-weight: 600;
}

.brand-logo--light .brand-logo-text strong {
  color: #eff8f4;
}

.brand-logo--light .brand-logo-text small {
  color: rgba(230, 243, 237, 0.78);
}

@media (max-width: 979px) {
  .brand-logo-mobile-icon .brand-logo-text {
    display: none;
  }
}
