/* ShipRate — professional logistics theme.
   Palette: deep pine green, gold accents, bright orange buttons, light gray surfaces. */

:root {
  --brand: #14402f;
  --brand-dark: #0c2b20;
  --accent: #e0b13e;
  --accent-dark: #b3871f;
  --cta: #ff6a00;
  --cta-dark: #d95700;
  --bg: #f4f6f8;
  --card: #ffffff;
  --ink: #1d2b36;
  --muted: #67757f;
  --line: #dfe6ec;
  --green: #1e7e46;
  --green-bg: #e6f4ea;
  --blue: #1a6fb5;
  --blue-bg: #e8f1fa;
  --danger: #b3261e;
  --radius: 10px;
  --shadow: 0 1px 3px rgba(12, 43, 32, 0.12);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.5;
}

.wrap { max-width: none; margin: 0 auto; padding: 0 20px; }

/* ---------- sidebar layout ---------- */
.app { display: flex; min-height: 100vh; align-items: stretch; }
.sidebar {
  width: 252px; flex: 0 0 252px;
  background: var(--brand); color: #fff;
  position: sticky; top: 0; height: 100vh;
  display: flex; flex-direction: column;
  z-index: 60;
}
.sidebar .brand { padding: 18px 20px 12px; }
.brand { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.brand-mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 50px; height: 50px; border-radius: 10px;
  background: #1e3a5f; color: #fff;
  font-weight: 800; font-size: 19px; flex: 0 0 50px;
}
.brand-name { font-size: 17px; font-weight: 700; letter-spacing: 0.2px; }
.side-nav {
  display: flex; flex-direction: column; gap: 2px;
  padding: 8px 12px; flex: 1; overflow-y: auto;
}
.tab {
  display: flex; align-items: center; gap: 12px;
  background: transparent; border: none; color: #cdd8e2;
  padding: 11px 12px; border-radius: 10px;
  font-size: 15px; font-weight: 600; cursor: pointer;
  text-align: left; width: 100%;
}
.tab svg { width: 20px; height: 20px; flex: 0 0 20px; opacity: 0.8; }
.tab:hover { color: #fff; background: rgba(255, 255, 255, 0.07); }
.tab.active { color: #fff; background: rgba(255, 255, 255, 0.12); }
.tab.active svg { color: var(--accent); opacity: 1; }
/* Quick Quote CTA: top-left button under the brand + matching menu item */
.tab.side-cta {
  width: auto; align-self: center; margin: 0 auto 12px; justify-content: center;
  white-space: nowrap;
  background: var(--cta); border: 1px solid var(--cta-dark); color: var(--brand-dark);
  font-weight: 700; font-size: 15px; padding: 10px 18px; border-radius: 8px;
}
.tab.side-cta svg { width: 16px; height: 16px; flex: 0 0 16px; opacity: 1; }
.tab.side-cta:hover { background: var(--cta); border-color: var(--cta-dark); color: var(--brand-dark); filter: brightness(1.06); }
.tab.side-cta.active { background: var(--cta); border-color: var(--cta-dark); color: var(--brand-dark); }
.tab.side-cta.active svg { color: var(--brand-dark); }
.tab.nav-qq { color: #fff; font-weight: 700; }
.tab.nav-qq svg { color: var(--accent); opacity: 1; }
.tab.nav-qq.active { color: var(--brand-dark); background: var(--accent); border: 1px solid var(--accent-dark); }
.tab.nav-qq.active svg { color: var(--brand-dark); }
/* sidebar dropdown groups */
.nav-group { display: flex; flex-direction: column; }
.group-toggle .chev { margin-left: auto; width: 16px; height: 16px; flex: 0 0 16px; opacity: 0.7; transition: transform 0.18s ease; }
.nav-group.open .group-toggle .chev { transform: rotate(180deg); }
.group-toggle.active-child { color: #fff; }
.nav-sub { display: none; flex-direction: column; gap: 2px; padding: 2px 0 4px; }
.nav-group.open .nav-sub { display: flex; }
.tab.sub { padding: 9px 12px 9px 50px; font-size: 14px; font-weight: 500; position: relative; }
.tab.sub::before { content: ""; position: absolute; left: 32px; top: 9px; bottom: 9px; width: 3px; border-radius: 2px; background: transparent; }
.tab.sub:hover::before { background: rgba(255, 255, 255, 0.25); }
.tab.sub.active::before { background: var(--accent); }
.tab.sub.active { color: #fff; background: rgba(255, 255, 255, 0.12); }
.side-account {
  padding: 14px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  margin-left: 0; flex-wrap: wrap; row-gap: 10px;
}
.content { flex: 1; min-width: 0; }
.topbar { display: none; }
.side-overlay { display: none; }

/* ---------- panels ---------- */
main.wrap { padding-top: 28px; padding-bottom: 48px; }
.panel { display: none; }
.panel.active { display: block; animation: fade 0.18s ease-in; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

h1 { font-size: 26px; margin: 0 0 4px; color: var(--brand-dark); }
h2 { font-size: 19px; color: var(--brand-dark); margin: 26px 0 10px; }
h3 { font-size: 16px; margin: 0 0 6px; color: var(--brand-dark); }
h4 { font-size: 14px; margin: 14px 0 6px; color: var(--brand-dark); }
.lede { color: var(--muted); margin: 0 0 18px; }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
  margin-bottom: 16px;
}
.card.empty { text-align: center; color: var(--muted); }

.alert {
  background: #fdecea; border: 1px solid #f5c6c2; color: var(--danger);
  padding: 12px 16px; border-radius: var(--radius); margin-bottom: 18px;
  font-weight: 600;
}
.alert.hidden { display: none; }

/* ---------- forms ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid.single { grid-template-columns: 1fr; }
.form-grid .span-2 { grid-column: 1 / -1; }
/* Ship-from / ship-to swap button between the address panels. */
.form-grid.addr-swap { grid-template-columns: 1fr auto 1fr; align-items: center; }
.addr-swap-btn { display: flex; justify-content: center; }
.swap-btn {
  width: 46px; height: 46px; border-radius: 50%;
  font-size: 22px; line-height: 1; padding: 0;
  display: inline-flex; align-items: center; justify-content: center;
}
fieldset { border: 1px solid var(--line); border-radius: 8px; padding: 14px; margin: 0; }
legend { font-weight: 700; color: var(--brand); padding: 0 6px; }
label { display: block; font-size: 13.5px; font-weight: 600; color: #33414d; margin-bottom: 10px; }
input, select, textarea {
  display: block; width: 100%; margin-top: 5px;
  padding: 9px 11px; font-size: 15px; font-family: inherit;
  border: 1px solid #c3ccd4; border-radius: 7px; background: #fff; color: var(--ink);
}
input:focus, select:focus, textarea:focus {
  outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent-dark);
}
textarea { resize: vertical; }
input.wide { min-width: 260px; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; }
.row-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }

.form-inline { display: flex; flex-wrap: wrap; gap: 14px; align-items: flex-end; }
.form-inline label { margin-bottom: 0; }

.actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 6px; }
.btn {
  appearance: none; border: 1px solid #b9c3cc; background: #fff; color: var(--brand);
  padding: 10px 18px; border-radius: 8px; font-size: 15px; font-weight: 700;
  cursor: pointer; transition: filter 0.12s ease;
}
.btn:hover { filter: brightness(0.96); }
.btn.primary { background: var(--cta); border-color: var(--cta-dark); color: var(--brand-dark); }
.btn.primary:hover { filter: brightness(0.94); }
#save-quote-btn { background: #1e3a5f; border-color: #152a45; color: #fff; }
#save-quote-btn:hover { filter: brightness(1.12); }
.btn.small { padding: 6px 12px; font-size: 13.5px; }
.btn:disabled { opacity: 0.6; cursor: progress; }

.note { color: var(--muted); font-size: 13.5px; margin: 12px 0 18px; }
.muted { color: var(--muted); font-size: 13.5px; }

/* segmented radio */
.segmented { display: flex; border: 1px solid #c3ccd4; border-radius: 8px; overflow: hidden; }
.seg {
  margin: 0; padding: 9px 18px; cursor: pointer; font-weight: 700; font-size: 14px;
  background: #fff; color: var(--muted); border-right: 1px solid #c3ccd4;
}
.seg:last-child { border-right: none; }
.seg input { display: none; }
.seg.active { background: var(--brand); color: #fff; }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
table.data { width: 100%; border-collapse: collapse; font-size: 14.5px; }
table.data th, table.data td { padding: 11px 12px; text-align: left; border-bottom: 1px solid var(--line); }
table.data thead th {
  background: var(--brand); color: #fff; font-size: 13px; text-transform: uppercase;
  letter-spacing: 0.4px; white-space: nowrap;
}
table.data tbody tr:hover { background: #f7fafc; }
table.data td.num, table.data th.num { text-align: right; font-variant-numeric: tabular-nums; }

.badge {
  display: inline-block; padding: 3px 10px; border-radius: 999px;
  font-size: 12.5px; font-weight: 700; white-space: nowrap;
}
.badge.instant { background: var(--green-bg); color: var(--green); }
.badge.live { background: var(--blue-bg); color: var(--blue); }

/* ---------- load board ---------- */
.two-col { display: grid; grid-template-columns: 380px 1fr; gap: 22px; align-items: start; }
.loads { display: flex; flex-direction: column; gap: 14px; }
.load header { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.po {
  background: var(--brand); color: #fff; font-size: 12.5px; font-weight: 700;
  padding: 3px 10px; border-radius: 999px;
}
.meta {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 8px; margin: 12px 0; padding: 12px; background: #f7fafc;
  border: 1px solid var(--line); border-radius: 8px;
}
.meta div { margin: 0; }
.meta dt { font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.4px; color: var(--muted); }
.meta dd { margin: 2px 0 0; font-weight: 700; font-size: 14px; }
.bids { list-style: none; margin: 6px 0 0; padding: 0; }
.bid {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  padding: 8px 10px; border: 1px solid var(--line); border-radius: 7px; margin-bottom: 6px;
  background: #fbfcfe;
}
details.bid-form, details.probill-form {
  margin-top: 10px; border: 1px dashed #b9c3cc; border-radius: 8px; padding: 10px 12px;
}
details summary { cursor: pointer; font-weight: 700; color: var(--brand); font-size: 14px; }
details form { margin-top: 10px; }
.count { color: var(--muted); font-size: 15px; font-weight: 600; }

/* ---------- tracking timeline ---------- */
.timeline { list-style: none; margin: 0; padding: 0 0 0 6px; }
.timeline li {
  position: relative; padding: 0 0 20px 30px;
  border-left: 2px solid var(--line); margin-left: 8px;
}
.timeline li:last-child { padding-bottom: 4px; }
.tl-dot {
  position: absolute; left: -7px; top: 4px; width: 12px; height: 12px;
  border-radius: 50%; background: var(--accent); border: 2px solid var(--brand);
}

/* ---------- stat cards ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; margin: 18px 0; }
.stat {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 16px;
}
.stat-label { font-size: 12.5px; text-transform: capitalize; color: var(--muted); font-weight: 600; }
.stat-value { font-size: 22px; font-weight: 800; color: var(--brand-dark); margin-top: 4px; font-variant-numeric: tabular-nums; }

/* ---------- footer ---------- */
.site-footer {
  background: var(--brand-dark); color: #9fb0bd; font-size: 13.5px;
  padding: 18px 0; margin-top: 20px;
}
.foot-grid {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 16px; flex-wrap: wrap;
}
.foot-grid strong { color: #e8eef2; }
.foot-links { display: flex; gap: 16px; flex-wrap: wrap; }
.foot-links a { color: #c7d3dc; text-decoration: none; }
.foot-links a:hover { color: #fff; text-decoration: underline; }
.foot-base { margin-top: 10px; padding-top: 10px; border-top: 1px solid rgba(255,255,255,0.12); }
.land-foot a { color: inherit; }

/* ---------- account recovery / settings / public pages ---------- */
.form-ok { color: #1c6b2f; font-size: 13.5px; margin: 0 0 10px; }
.form-ok.hidden { display: none; }
.form-link { margin: 8px 0 0; font-size: 13.5px; }
.form-link a { color: var(--link, #1a56db); }
p.hint { font-size: 12.5px; color: var(--muted); margin: -4px 0 10px; }
.card.legal h2 { font-size: 16px; margin: 18px 0 6px; }
.card.legal p { margin: 6px 0; line-height: 1.55; }
#settings-modal h3 { font-size: 15px; margin: 20px 0 8px; padding-top: 14px; border-top: 1px solid var(--line); }
#settings-modal h3:first-of-type { border-top: none; padding-top: 0; margin-top: 12px; }
.verify-banner {
  background: #fff8e6; border: 1px solid #f0d98c; color: #7a5b00;
  border-radius: var(--radius); padding: 10px 14px; margin: 0 0 14px; font-size: 13.5px;
}
.verify-banner a { color: #7a5b00; font-weight: 700; }
.cookie-banner {
  position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 200;
  background: var(--brand-dark); color: #e8eef2; border-radius: var(--radius);
  padding: 12px 16px; display: flex; gap: 12px; align-items: center;
  justify-content: space-between; box-shadow: var(--shadow); font-size: 13.5px;
}
.cookie-banner a { color: #ffd98a; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .two-col { grid-template-columns: 1fr; }
  .sidebar {
    position: fixed; left: 0; top: 0; bottom: 0;
    width: 272px; flex-basis: 272px;
    transform: translateX(-102%);
    transition: transform 0.22s ease;
    box-shadow: none;
  }
  .sidebar.open { transform: none; box-shadow: 0 0 48px rgba(0, 0, 0, 0.45); }
  .side-overlay.show {
    display: block; position: fixed; inset: 0;
    background: rgba(0, 0, 0, 0.45); z-index: 55;
  }
  .topbar {
    display: flex; align-items: center; gap: 12px;
    background: var(--brand); color: #fff;
    padding: 10px 14px;
    position: sticky; top: 0; z-index: 50;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
  }
  .hamburger {
    background: transparent; border: none; color: #fff;
    font-size: 22px; line-height: 1; cursor: pointer; padding: 6px 8px;
  }
  .topbar .brand-name { font-size: 15px; }
  .topbar .brand-mark { width: 30px; height: 30px; font-size: 12px; flex-basis: 30px; }
  .topbar .top-qq {
    margin-left: auto; width: auto; flex: 0 0 auto;
    background: var(--cta); border: 1px solid var(--cta-dark); color: var(--brand-dark);
    font-weight: 800; font-size: 13.5px; padding: 8px 14px; border-radius: 9px;
  }
  .topbar .top-qq svg { width: 16px; height: 16px; flex: 0 0 16px; opacity: 1; }
  .topbar .top-qq:hover { color: var(--brand-dark); background: var(--cta); filter: brightness(1.06); }
  .topbar .top-qq.active { color: var(--brand-dark); background: var(--cta); border-color: var(--cta-dark); }
  .topbar .top-qq.active svg { color: var(--brand-dark); }
}
@media (max-width: 640px) {
  .form-grid { grid-template-columns: 1fr; }
  .form-grid.addr-swap { grid-template-columns: 1fr; }
  .swap-btn { transform: rotate(90deg); }
  .row-4 { grid-template-columns: 1fr 1fr; }
  .row-3 { grid-template-columns: 1fr; }
  input.wide { min-width: 0; }
}

/* Smart-shipping quote flow additions */
.pkg-table input[type="number"], .pkg-table input[type="text"] { width: 100%; min-width: 52px; box-sizing: border-box; }
.pkg-table select { width: 100%; min-width: 76px; }
.pkg-table td.chk, .data td.chk { text-align: center; width: 34px; }
.check-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 12px; }
.check-grid .check { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; cursor: pointer; }
.check-grid .check input { margin-top: 3px; }
.btn.danger { background: var(--red-bg, #fdecec); color: var(--red, #b3261e); }
@media (max-width: 720px) { .check-grid { grid-template-columns: 1fr; } }
.tip { display: inline-block; width: 16px; height: 16px; line-height: 16px; text-align: center; border-radius: 50%; background: #e8eefc; color: #1a56db; font-size: 11px; cursor: help; margin-left: 4px; }

/* Packages table: fixed layout so columns stay aligned and evenly sized.
   (table.data uses width:100% + auto layout, which stretched columns unevenly.) */
.pkg-table { table-layout: fixed; }
.pkg-table th, .pkg-table td { padding: 5px 6px; overflow: hidden; }
.pkg-table thead th { white-space: normal; font-size: 11px; line-height: 1.3; vertical-align: bottom; }
.pkg-table td input, .pkg-table td select { margin-top: 0; width: 100%; min-width: 0; font-size: 14px; padding: 7px 8px; }
/* Qty | Type | Product (flex) | Wt | L | W | H | Stack | DG | UN# | Class | PkgGrp | × */
.pkg-table th:nth-child(1), .pkg-table td:nth-child(1) { width: 56px; }
.pkg-table th:nth-child(2), .pkg-table td:nth-child(2) { width: 108px; }
.pkg-table th:nth-child(4), .pkg-table td:nth-child(4) { width: 96px; }
.pkg-table th:nth-child(5), .pkg-table td:nth-child(5) { width: 96px; }
.pkg-table th:nth-child(6), .pkg-table td:nth-child(6) { width: 88px; }
.pkg-table th:nth-child(7), .pkg-table td:nth-child(7) { width: 96px; }
.pkg-table th:nth-child(8), .pkg-table td:nth-child(8) { width: 80px; }
.pkg-table th:nth-child(9), .pkg-table td:nth-child(9) { width: 44px; }
.pkg-table th:nth-child(10), .pkg-table td:nth-child(10) { width: 72px; }
.pkg-table th:nth-child(11), .pkg-table td:nth-child(11) { width: 64px; }
.pkg-table th:nth-child(12), .pkg-table td:nth-child(12) { width: 72px; }
.pkg-table th:last-child, .pkg-table td:last-child { width: 40px; }
.pkg-table td.chk { text-align: center; }
.pkg-table td.chk input { display: inline-block; width: auto; margin: 0; vertical-align: middle; }
.pkg-table .pkg-del { padding: 2px 8px; }

/* Pick-up / delivery service grids.
   Root cause of the messy look: the global input{display:block;width:100%} rule
   stretched each checkbox to full width inside its flex label, pushing the label
   text to the center of the cell. Undo that here and keep items tight + left-aligned. */
fieldset:has(#acc-pickup), fieldset:has(#acc-delivery) { padding: 10px 12px; }
fieldset:has(#acc-pickup) .check-grid, fieldset:has(#acc-delivery) .check-grid { gap: 2px 14px; }
fieldset:has(#acc-pickup) .check-grid .check, fieldset:has(#acc-delivery) .check-grid .check {
  font-size: 12.5px; gap: 7px; line-height: 1.4; text-align: left;
  margin-bottom: 0; padding: 2px 0; align-items: flex-start;
}
fieldset:has(#acc-pickup) .check-grid .check input, fieldset:has(#acc-delivery) .check-grid .check input {
  display: inline-block; width: auto; flex: none; margin: 2px 0 0; padding: 0;
}

/* Google Places autocomplete dropdown (street fields) */
.places-dd { background: #fff; border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 8px 24px rgba(0,0,0,.12); max-height: 240px; overflow-y: auto; z-index: 60; }
.places-dd .opt { padding: 8px 10px; cursor: pointer; font-size: 13px; line-height: 1.35; }
.places-dd .opt .sub { display: block; color: #666; font-size: 12px; }
.places-dd .opt.active, .places-dd .opt:hover { background: #eef3ff; }
.places-dd .opt.from-book { border-left: 3px solid #d97706; background: #fffbeb; }
.places-dd .opt.from-book.active, .places-dd .opt.from-book:hover { background: #fef3c7; }

/* ---------- Shipper account ---------- */
.account { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.account-name { color: #fff; font-size: 13.5px; font-weight: 600; max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.btn.account-btn { background: transparent; border: 1px solid rgba(255,255,255,.45); color: #fff; }
.btn.account-btn:hover { background: rgba(255,255,255,.12); filter: none; }
.btn.account-btn.solid { background: var(--cta); border-color: var(--cta-dark); color: var(--brand-dark); font-weight: 700; }
.btn.account-btn.solid:hover { background: var(--cta); filter: brightness(.94); }

.modal { position: fixed; inset: 0; background: rgba(15,36,54,.55); display: flex; align-items: center; justify-content: center; z-index: 100; padding: 16px; }
.modal.hidden { display: none; }
/* terms of service overlay */
.modal-overlay { position: fixed; inset: 0; background: rgba(15,36,54,.55); display: flex; align-items: center; justify-content: center; z-index: 100; padding: 16px; }
.modal-overlay .modal { max-width: 640px; max-height: 85vh; overflow-y: auto; }
.terms-body p { font-size: 14px; margin: 10px 0; line-height: 1.55; }
.modal-card { background: var(--card); border-radius: var(--radius); box-shadow: 0 16px 48px rgba(0,0,0,.25); width: 100%; max-width: 400px; padding: 24px; position: relative; }
.modal-card.wide { max-width: 560px; max-height: 88vh; overflow-y: auto; }
.cm-sec { margin: 18px 0 6px; font-size: 15px; }
.modal-card.wide textarea { width: 100%; }
.modal-close { position: absolute; top: 10px; right: 14px; border: 0; background: none; font-size: 22px; line-height: 1; color: var(--muted); cursor: pointer; }
.modal-close:hover { color: var(--ink); }
.modal-tabs { display: flex; gap: 6px; margin-bottom: 16px; border-bottom: 1px solid var(--line); }
.modal-tab { border: 0; background: none; padding: 10px 14px; font-size: 15px; font-weight: 600; color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.modal-tab.active { color: var(--brand); border-bottom-color: var(--accent); }
.modal-card form label { display: block; margin-bottom: 12px; }
.modal-card .actions { margin-top: 4px; }
.form-error { color: var(--danger); font-size: 13.5px; margin: 0 0 10px; }
.form-error.hidden { display: none; }

/* Global hide utility (used by JS toggles throughout the page). */
.hidden { display: none !important; }

/* ---------- Pricing & billing ---------- */
.billing-cycle { margin: 4px 0 18px; }
.billing-cycle .seg { display: inline-flex; align-items: center; gap: 6px; }
.billing-card { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin: 18px 0; }
.plan {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 22px; position: relative;
  display: flex; flex-direction: column;
}
.plan.current { border-color: var(--accent-dark); box-shadow: 0 0 0 2px var(--accent); }
.plan h3 { font-size: 18px; margin: 0 0 4px; padding-right: 90px; }
.plan .badge.save { position: absolute; top: 18px; right: 16px; }
.plan-price { font-size: 30px; font-weight: 800; color: var(--brand-dark); margin: 8px 0 2px; font-variant-numeric: tabular-nums; }
.plan-feats { list-style: none; margin: 12px 0 18px; padding: 0; flex: 1; }
.plan-feats li { padding: 5px 0 5px 24px; position: relative; font-size: 14px; color: #33414d; }
.plan-feats li::before { content: "\2713"; position: absolute; left: 4px; color: var(--green); font-weight: 800; }
.plan .actions { margin-top: auto; }
.plan-pitch { font-size: 13.5px; color: #4a5a66; margin: 2px 0 4px; line-height: 1.45; }
.pitch-strip { background: #f4f8fb; border: 1px solid #dbe7f0; border-radius: 12px; padding: 18px 20px; margin: 6px 0 20px; }
.pitch-strip h3 { font-size: 19px; margin: 0 0 2px; color: var(--brand-dark); }
.pitch-sub { margin: 0 0 12px; color: #4a5a66; font-size: 14px; }
.pitch-points { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px 18px; }
.pitch-points li { font-size: 13.5px; color: #33414d; line-height: 1.45; padding-left: 22px; position: relative; }
.pitch-points li::before { content: "\2713"; position: absolute; left: 2px; color: var(--green); font-weight: 800; }
/* dangerous-goods notice */
.dg-notice { border-left: 4px solid #c2410c; background: #fff7ed; }
.dg-notice h3 { color: #9a3412; margin: 0 0 8px; font-size: 16px; }
.dg-notice p { margin: 6px 0; font-size: 14px; color: #431407; }
.badge.ok { background: var(--green-bg); color: var(--green); }
.badge.warn { background: #fbf3dd; color: #8a6d1a; }
.badge.staff { background: #eef3ff; color: #1d4ed8; }
.card.warn { background: #fffbeb; border-color: #f5d48e; }
.plan-badge {
  background: rgba(255, 255, 255, 0.16); color: #fff;
  font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px;
  text-transform: capitalize; white-space: nowrap;
}
.quota-note { color: #cdd8e2; font-size: 12.5px; white-space: nowrap; }
@media (max-width: 640px) {
  .quota-note { display: none; }
}

/* Custom package types & product names dialog */
.modal-card.wide { max-width: 600px; }
.lists-cols { display: grid; gap: 20px; }
@media (min-width: 600px) { .lists-cols { grid-template-columns: 1fr 1fr; } }
.lists-cols h4 { margin: 12px 0 4px; font-size: 14px; }
.lists-add { display: flex; gap: 8px; margin: 8px 0; }
.lists-add input { flex: 1; min-width: 0; }
.lists-ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; max-height: 220px; overflow: auto; }
.lists-ul li { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 10px; background: #f2f5f8; border-radius: 8px; font-size: 14px; }
.lists-ul li.muted { justify-content: flex-start; background: none; color: var(--muted); }

/* Units toggle row above the package table */
.units-row { display: flex; align-items: center; gap: 10px; margin: 4px 0 10px; }
.units-row .note { margin: 0; }

/* Notes & attachments */
.sub { font-size: 1rem; margin: 14px 0 4px; }
.chars { color: #66727e; font-size: 0.85em; }
.file-pick { display: block; border: 2px dashed #c3ccd4; border-radius: 8px; padding: 18px; text-align: center; color: #5a6b7a; cursor: pointer; margin: 6px 0; }
.file-pick:hover { border-color: var(--brand); color: var(--brand); }
.file-list { list-style: none; margin: 6px 0; padding: 0; }
.file-list li { display: flex; align-items: center; gap: 10px; padding: 6px 0; border-bottom: 1px solid #eef1f4; }
.linklike { background: none; border: none; color: var(--brand); text-decoration: underline; cursor: pointer; font: inherit; padding: 0; }

/* ---------- dashboard ---------- */

.dash-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 4px 0 26px; }
.dash-card {
  display: flex; gap: 12px; align-items: flex-start; text-align: left;
  background: var(--brand-dark); border: 1px solid var(--brand); border-radius: 10px;
  padding: 16px; cursor: pointer; font: inherit; color: #fff;
  transition: border-color .15s, box-shadow .15s, transform .1s;
}
.dash-card:hover { border-color: var(--accent); box-shadow: 0 4px 14px rgba(12,43,32,.25); transform: translateY(-1px); }
.dash-ico { font-size: 26px; line-height: 1.2; }
.dash-txt strong { display: block; font-size: 15.5px; margin-bottom: 4px; }
.dash-txt small { color: #c3cfda; font-size: 13px; line-height: 1.45; display: block; }
.dash-orders-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin: 6px 0 14px; }
.dash-orders-head h2 { margin: 0; }
.filters { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; margin-bottom: 14px; }
.filters label { display: flex; flex-direction: column; gap: 5px; font-size: 13px; font-weight: 600; color: #445; margin: 0; }
.filters input, .filters select { font: inherit; font-weight: 400; padding: 8px 10px; border: 1px solid var(--line); border-radius: 7px; background: #fff; min-width: 130px; }
.filters label.grow { flex: 1 1 220px; }

/* ---------- simple inventory ---------- */
.inv-scan-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 14px; }
.inv-scan-btns .btn { padding: 18px 12px; font-size: 18px; font-weight: 800; border-radius: 12px; }
.btn.inv-in { background: var(--green-bg); border: 2px solid var(--green); color: var(--green); }
.btn.inv-out { background: #fbf3dd; border: 2px solid var(--accent-dark); color: #7a5f14; }
.btn.inv-in:hover, .btn.inv-out:hover { filter: brightness(0.97); }
#inv-scanner-wrap { margin-bottom: 14px; }
.inv-scanner-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
#inv-scanner { width: 100%; max-width: 480px; margin: 0 auto; border-radius: 10px; overflow: hidden; background: #000; }
#inv-scanner video { width: 100%; display: block; }
#inv-new-item { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
#inv-last-scan { margin-top: 10px; font-size: 15px; }
.inv-row { display: flex; align-items: center; gap: 10px; padding: 10px 4px; border-bottom: 1px solid var(--line); }
.inv-row:last-child { border-bottom: none; }
.inv-row-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.inv-row-txt strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.inv-qty { font-size: 20px; font-weight: 800; background: var(--bg); border-radius: 10px; padding: 6px 14px; min-width: 64px; text-align: center; }
.inv-qty.zero { color: var(--muted); }
.inv-row-btns { margin-top: 0; flex: 0 0 auto; }
.inv-row-btns .btn { font-size: 18px; padding: 6px 14px; }
.inv-move { display: flex; gap: 10px; align-items: flex-start; padding: 8px 4px; border-bottom: 1px solid var(--line); }
.inv-move:last-child { border-bottom: none; }
.inv-dir { font-weight: 800; font-size: 15px; flex: 0 0 52px; }
.inv-dir.in { color: var(--green); }
.inv-dir.out { color: #7a5f14; }
.inv-move-txt { display: flex; flex-direction: column; min-width: 0; }
.inv-search { display: block; margin-bottom: 8px; }
@media (max-width: 640px) {
  .inv-scan-btns .btn { font-size: 16px; padding: 16px 8px; }
}

/* ---------- bookstore ---------- */
.store-hero { display: flex; gap: 28px; align-items: center; background: linear-gradient(120deg, #0f2a4a 0%, #1b4f8a 100%); border-radius: 14px; padding: 32px; margin-bottom: 24px; color: #fff; flex-wrap: wrap; }
.store-cover { width: 190px; border-radius: 8px; box-shadow: 0 8px 28px rgba(0,0,0,.35); }
.store-hero-txt { flex: 1 1 280px; }
.store-brand { font-weight: 800; letter-spacing: .18em; font-size: 12px; color: #9cc3ee; margin: 0 0 8px; }
.store-hero-txt h1 { margin: 0 0 10px; color: #fff; font-size: 30px; }
.store-hero-txt .lede { color: rgba(255,255,255,.82); margin: 0 0 18px; }
.store-hero-txt .actions { display: flex; gap: 10px; flex-wrap: wrap; }
.store-hero-txt .btn:not(.primary) { background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.35); color: #fff; text-decoration: none; }
.store-hero-txt .btn:not(.primary):hover { background: rgba(255,255,255,.24); }
.store-chapters { columns: 2; column-gap: 28px; margin: 0; padding-left: 20px; }
.store-chapters li { margin-bottom: 7px; font-size: 14.5px; break-inside: avoid; }
.store-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 6px 0 26px; }
.store-card { display: flex; flex-direction: column; position: relative; }
.store-card.featured { border: 2px solid var(--brand); }
.store-card h3 { margin: 6px 0 2px; }
.store-includes { margin: 10px 0; padding-left: 20px; font-size: 14px; }
.store-includes li { margin-bottom: 5px; }
.store-price { font-size: 30px; font-weight: 800; color: var(--brand); margin: 8px 0 14px; }
.store-price small { font-size: 14px; font-weight: 600; color: var(--muted); }
.store-card .actions { margin-top: auto; }
.store-faq p { margin: 0 0 16px; font-size: 14.5px; }
.store-faq p:last-child { margin-bottom: 0; }
.lib-row { display: flex; gap: 16px; align-items: center; margin-bottom: 12px; }
.lib-cover { width: 64px; border-radius: 5px; box-shadow: 0 2px 8px rgba(0,0,0,.18); }
.lib-txt { flex: 1; display: flex; flex-direction: column; gap: 3px; }
.card.ok { border-left: 4px solid var(--green, #1e8e3e); }
.prod-row { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin-bottom: 10px; }
.prod-txt { flex: 1 1 200px; display: flex; flex-direction: column; }
.tablewrap { overflow-x: auto; }
@media (max-width: 1024px) { .store-grid { grid-template-columns: 1fr; } }
@media (max-width: 640px) {
  .store-hero { padding: 22px; }
  .store-cover { width: 140px; }
  .store-chapters { columns: 1; }
  .lib-row { flex-wrap: wrap; }
}

/* ---------- billing center ---------- */
.billing-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 16px; margin-bottom: 8px; }
.bill-card h3 { margin-top: 0; font-size: 16px; }
.credit-big { font-size: 34px; font-weight: 800; color: var(--brand); margin: 6px 0 12px; }
.credit-row { display: flex; gap: 18px; flex-wrap: wrap; margin-bottom: 10px; }
.credit-row > div { display: flex; flex-direction: column; gap: 3px; }
.credit-row .muted { font-size: 12.5px; }
dl.kv { display: grid; grid-template-columns: 84px 1fr; gap: 6px 12px; margin: 10px 0; font-size: 14.5px; }
dl.kv dt { color: #5a6b7a; }
dl.kv dd { margin: 0; font-weight: 600; }
.pm-card { display: flex; gap: 12px; align-items: center; margin: 10px 0; }
.pm-brand { font-size: 30px; }

/* status pills */
.pill {
  display: inline-block; padding: 3px 10px; border-radius: 999px;
  font-size: 12px; font-weight: 800; letter-spacing: .03em; white-space: nowrap;
}
.pill.ok { background: var(--green-bg); color: var(--green); }
.pill.warn { background: #fbf3dd; color: #8a6d1a; }
.pill.info { background: var(--blue-bg); color: var(--blue); }

@media (max-width: 1024px) {
  .dash-cards { grid-template-columns: repeat(2, 1fr); }
  .billing-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .dash-cards { grid-template-columns: 1fr; }
  .dash-orders-head { flex-direction: column; align-items: stretch; }
}

/* ---- Condensed main page (dashboard): denser layout like a desktop quoting tool ---- */
#tab-dashboard .dash-cards { gap: 8px; margin: 2px 0 12px; }
#tab-dashboard .dash-card { padding: 9px 12px; gap: 10px; }
#tab-dashboard .dash-ico { font-size: 20px; }
#tab-dashboard .dash-txt strong { font-size: 14px; margin-bottom: 1px; }
#tab-dashboard .dash-txt small { font-size: 11.5px; line-height: 1.35; }
#tab-dashboard h1 { font-size: 21px; }
#tab-dashboard .lede { margin-bottom: 10px; font-size: 13.5px; }
#tab-dashboard .card { padding: 14px; margin-bottom: 12px; }
#tab-dashboard fieldset { padding: 10px 12px; }
#tab-dashboard legend { font-size: 13.5px; }
#tab-dashboard label { font-size: 13px; margin-bottom: 7px; }
#tab-dashboard input, #tab-dashboard select, #tab-dashboard textarea {
  padding: 7px 9px; font-size: 14px; margin-top: 4px;
}
#tab-dashboard .form-grid { gap: 10px; }
#tab-dashboard .seg { padding: 7px 12px; font-size: 13px; }
#tab-dashboard h2 { margin: 16px 0 8px; font-size: 17px; }
#tab-dashboard .check-grid { gap: 4px 14px; }
#tab-dashboard .actions { margin-top: 4px; }

/* Rate-loading overlay: centered message while Get rates fetches */
#rate-loading {
  position: fixed; inset: 0; z-index: 200;
  display: flex; align-items: center; justify-content: center;
}
#rate-loading.hidden { display: none; }
#rate-loading .rl-pill {
  background: rgba(15, 26, 43, 0.93); color: #fff;
  padding: 13px 22px; border-radius: 12px; font-size: 15px; font-weight: 600;
  display: flex; align-items: center; gap: 12px;
  box-shadow: 0 8px 30px rgba(0,0,0,.35);
}
#rate-loading .rl-spin {
  width: 20px; height: 20px; border-radius: 50%; flex: 0 0 20px;
  border: 3px solid rgba(255,255,255,.25); border-top-color: var(--accent);
  animation: rl-spin 0.8s linear infinite;
}
@keyframes rl-spin { to { transform: rotate(360deg); } }

/* ---- Quick Quote dense layout (desktop quoting tool) ---- */
#quote-form.qq { background: transparent; border: none; box-shadow: none; padding: 0; margin-bottom: 12px; }
#quote-form.qq label { font-size: 12.5px; margin-bottom: 6px; }
#quote-form.qq input, #quote-form.qq select, #quote-form.qq textarea {
  padding: 6px 8px; font-size: 13.5px; margin-top: 3px;
}
.qq-topbar { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; margin-bottom: 10px; }
.qq-topseg { display: flex; align-items: center; gap: 8px; }
.qq-toplabel { font-weight: 700; font-size: 13px; color: var(--brand); white-space: nowrap; }
.qq-freight { display: flex; align-items: center; gap: 8px; margin: 0 0 0 auto !important; }
.qq-freight select { width: auto; margin-top: 0 !important; }

.qq-panel { background: #fff; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; margin-bottom: 10px; }
.qq-head {
  background: var(--brand); color: #fff; font-size: 13.5px; font-weight: 700;
  text-align: center; padding: 7px 10px; margin: 0;
}
.qq-body { padding: 10px 12px; }

.qq-addr { display: grid; grid-template-columns: 1fr auto 1fr; gap: 8px; align-items: start; }
.qq-addr .qq-panel { margin-bottom: 0; }
.qq-row { display: flex; gap: 8px; }
.qq-row .grow { flex: 1 1 auto; min-width: 0; }
.qq-row .sm { flex: 0 0 104px; }
.qq-row .xs { flex: 0 0 64px; }
.check.mini { font-size: 11.5px; line-height: 1.35; white-space: nowrap; align-self: flex-end; padding-bottom: 2px; }

.qq-refrow { display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: flex-end; margin: 10px 0; }
.qq-refrow > label { margin-bottom: 0; }
.qq-refrow .units-row { display: flex; align-items: center; gap: 8px; }
#user-id-row input { max-width: 220px; }

.qq-services { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.qq-split { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 10px; align-items: start; }
#quote-form.qq .pkg-table th, #quote-form.qq .pkg-table td { padding: 6px 8px; }
#quote-form.qq .pkg-table input, #quote-form.qq .pkg-table select { padding: 5px 6px; font-size: 13px; margin-top: 0; }
#quote-form.qq .pkg-table td.narrow input { max-width: 76px; }

#tab-dashboard #quote-results .table-wrap { border: 1px solid var(--line); border-top: none; }
#tab-dashboard #quote-results table.data { margin: 0; }

@media (max-width: 1000px) {
  .qq-addr { grid-template-columns: 1fr; }
  .qq-addr .addr-swap-btn { display: none; }
  .qq-services { grid-template-columns: 1fr; }
  .qq-split { grid-template-columns: 1fr; }
  .qq-freight { margin-left: 0 !important; }
  .qq-row { flex-wrap: wrap; }
  .qq-row .sm, .qq-row .xs { flex: 1 1 100px; }
}

/* ---- Fetch Carrier Results button (rate board column) ---- */
.rate-empty { text-align: center; padding: 26px 16px; }
.rate-empty .note { margin-bottom: 14px; }
.fetch-btn {
  background: #1a7a4c; border: 1px solid #0f4c2d; color: #fff;
  font-size: 16px; font-weight: 800; padding: 14px 30px; border-radius: 8px;
  cursor: pointer; white-space: normal; line-height: 1.35;
}
.fetch-btn:hover { background: #146038; }
.fetch-btn:disabled { opacity: 0.7; cursor: wait; }
.fetch-btn-left { width: 100%; }
.rate-actions-card { padding: 16px; }
.rate-actions-card .btn { display: block; width: 100%; margin: 0 0 10px; }
.rate-actions-card .btn:last-of-type { margin-bottom: 0; }
#quote-results thead th { text-transform: uppercase; font-size: 12px; letter-spacing: 0.02em; }
.qq-split-right .qq-panel { margin-bottom: 0; }

/* Selected rate row (cheapest) — light blue highlight */
#tab-dashboard #quote-results table.data tbody tr.picked { background: #d4e8f7; color: #1e3a5f; }
#tab-dashboard #quote-results table.data tbody tr.picked td strong { color: #1e3a5f; }
#tab-dashboard #quote-results table.data tbody tr.picked .note { color: #4a6a8a; }
#tab-dashboard #quote-results table.data tbody tr.picked:hover { background: #bcd9f2; }

/* ---- Service toggles: label left, switch right, two columns (reference style) ---- */
#acc-pickup.check-grid, #acc-delivery.check-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 2px 18px;
}
#acc-pickup .check, #acc-delivery .check {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  font-size: 12.5px; font-weight: 500; color: var(--brand);
  padding: 6px 2px; margin: 0; border-bottom: 1px solid #eef1f4; cursor: pointer;
}
#acc-pickup .check input[type="checkbox"], #acc-delivery .check input[type="checkbox"] {
  appearance: none; -webkit-appearance: none;
  width: 36px; height: 20px; border-radius: 999px; flex: 0 0 auto;
  background: #cbd5e1; border: none; margin: 0; padding: 0; cursor: pointer;
  position: relative; transition: background 0.15s;
}
#acc-pickup .check input[type="checkbox"]:checked, #acc-delivery .check input[type="checkbox"]:checked {
  background: #1a7a4c;
}
#acc-pickup .check input[type="checkbox"]::after, #acc-delivery .check input[type="checkbox"]::after {
  content: ""; position: absolute; top: 3px; left: 3px;
  width: 14px; height: 14px; border-radius: 50%; background: #fff;
  transition: left 0.15s;
}
#acc-pickup .check input[type="checkbox"]:checked::after, #acc-delivery .check input[type="checkbox"]:checked::after {
  left: 19px;
}

/* ---- Delivery notes: stacked full-width boxes ---- */
.qq-notes-stack { display: grid; gap: 8px; }
.qq-notes-stack label { margin-bottom: 0; }

/* ---- Quote page rework: fetch button left, save/complete right ---- */
.fetch-btn-left { width: 100%; margin-bottom: 12px; }
.qq-split-right .quote-actions { border-top: 1px solid var(--line); margin-top: 0; }
.qq-split-right .quote-actions .actions { display: flex; gap: 10px; flex-wrap: wrap; }
.qq-split-right .quote-actions .btn { flex: 1 1 180px; }
.qq-split-right .quote-actions .btn:disabled { opacity: .55; cursor: not-allowed; }
.popup-list { margin: 10px 0 16px 18px; font-size: 14px; }
.popup-list li { margin: 4px 0; }
#complete-modal .modal-card label { display: block; margin: 0 0 12px; font-weight: 600; font-size: 13.5px; }
#complete-modal .modal-card input[type="text"] { width: 100%; margin-top: 4px; }
#complete-modal .modal-card .chk { font-weight: 500; }
#complete-modal .modal-card h3 { margin-top: 0; }
.badge.primary { background: #e6f2ec; color: #0f4c2d; border: 1px solid #a8d4bc; }

/* Phase-one quote-only: "currently disabled" tooltip shown at the click point. */
.qo-tip {
  position: fixed; z-index: 9999; max-width: 290px;
  background: #1e3a5f; color: #fff;
  padding: 10px 14px; border-radius: 8px; font-size: 14px; line-height: 1.45;
  box-shadow: 0 6px 20px rgba(0,0,0,.35);
  pointer-events: none; transition: opacity .3s ease;
}
.qo-tip.qo-tip-out { opacity: 0; }

/* ---------- marketing homepage ---------- */
.landing { max-width: 1080px; margin: 0 auto; padding: 8px 0 24px; }
.land-hero {
  background: linear-gradient(135deg, var(--brand-dark) 0%, var(--brand) 70%);
  color: #fff; border-radius: 16px; padding: 64px 48px; position: relative; overflow: hidden;
}
.land-hero::after {
  content: ""; position: absolute; right: -60px; top: -60px; width: 280px; height: 280px;
  border: 40px solid rgba(224, 177, 62, 0.12); border-radius: 50%;
}
.land-badge {
  display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: .04em;
  color: var(--accent); border: 1px solid rgba(224,177,62,.5); border-radius: 999px;
  padding: 6px 14px; margin-bottom: 20px;
}
.land-hero h1 { font-size: 44px; line-height: 1.15; margin: 0 0 16px; letter-spacing: -0.01em; color: #fff; }
.land-sub { font-size: 18px; max-width: 620px; margin: 0 0 28px; color: rgba(255,255,255,.88); }
.land-ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 40px; }
.land-cta { font-size: 17px; padding: 14px 30px; }
.land-ghost {
  background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.55);
  font-size: 16px; padding: 13px 26px; border-radius: var(--radius); cursor: pointer;
}
.land-ghost:hover { border-color: #fff; background: rgba(255,255,255,.08); }
.land-stats { display: flex; gap: 40px; flex-wrap: wrap; }
.land-stats div { display: flex; flex-direction: column; }
.land-stats strong { font-size: 30px; color: var(--accent); }
.land-stats span { font-size: 13.5px; color: rgba(255,255,255,.75); }
.land-section { padding: 56px 12px 8px; }
.land-section h2 { font-size: 30px; margin: 0 0 8px; color: var(--brand-dark); text-align: center; }
.land-section > p { text-align: center; max-width: 640px; margin: 0 auto; color: var(--muted); font-size: 17px; }
.land-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 32px; }
.land-step { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px; box-shadow: var(--shadow); }
.land-num {
  width: 44px; height: 44px; border-radius: 50%; background: var(--brand); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 20px; font-weight: 700; margin-bottom: 16px;
}
.land-step h3 { margin: 0 0 8px; font-size: 18px; }
.land-step p { margin: 0; color: var(--muted); font-size: 15px; }
.land-alt { background: var(--card); border: 1px solid var(--line); border-radius: 16px; margin-top: 48px; padding: 48px 40px 56px; }
.land-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 28px; }
.land-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 20px; background: var(--bg); }
.land-card h3 { margin: 0 0 6px; font-size: 16.5px; }
.land-card p { margin: 0; color: var(--muted); font-size: 14.5px; }
.land-beta { text-align: center; }
.land-beta h2 { margin-bottom: 12px; }
.land-cta-band {
  background: var(--brand-dark); color: #fff; border-radius: 16px; text-align: center;
  padding: 52px 32px; margin-top: 48px;
}
.land-cta-band h2 { color: #fff; margin: 0 0 8px; }
.land-cta-band p { color: rgba(255,255,255,.8); margin: 0 0 24px; }
.land-foot { text-align: center; color: var(--muted); font-size: 13.5px; padding: 32px 0 8px; }
@media (max-width: 860px) {
  .land-hero { padding: 44px 26px; }
  .land-hero h1 { font-size: 32px; }
  .land-steps, .land-grid { grid-template-columns: 1fr; }
  .land-alt { padding: 36px 22px 44px; }
}
