/* ============================================================================
   AUTO VESELÝ SANCHEZ — client portal
   Dark + red, mobile-first design system
   ========================================================================== */

:root {
  --bg:          #0c0c0e;
  --bg-2:        #131316;
  --surface:     #1c1c21;   /* cards */
  --surface-2:   #232328;   /* tiles / inner panels */
  --surface-3:   #2c2c33;   /* chips / inputs */
  --line:        rgba(255,255,255,0.07);
  --line-strong: rgba(255,255,255,0.12);

  --red:        #e3121b;
  --red-bright: #ff2730;
  --red-dark:   #b00d14;
  --red-grad:   linear-gradient(155deg, #ee1c24 0%, #d20e16 55%, #b20a11 100%);

  --green:      #34c759;

  --text:       #ffffff;
  --muted:      #9a9aa1;
  --muted-2:    #6f6f77;

  --radius-lg: 20px;
  --radius:    16px;
  --radius-sm: 12px;

  --header-h: 56px;
  --nav-h:    64px;
  --app-w:    480px;

  --shadow: 0 10px 30px rgba(0,0,0,0.45);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: #000;
  color: var(--text);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-size: 16px;
  line-height: 1.4;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
img { max-width: 100%; display: block; }

/* The phone-sized application column */
.app {
  position: relative;
  max-width: var(--app-w);
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0 auto;
  background:
    radial-gradient(120% 60% at 50% 0%, #17171c 0%, var(--bg) 55%) fixed;
  padding-bottom: calc(var(--nav-h) + env(safe-area-inset-bottom, 0px) + 22px);
  overflow-x: hidden;
}
.app--no-nav { padding-bottom: 28px; }

/* ----------------------------------------------------------------- header -- */
.appbar {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--header-h);
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  align-items: center;
  padding: 0 10px;
  background: rgba(12,12,14,0.86);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.appbar__title {
  text-align: center;
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: 0.2px;
}
.appbar__btn {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  background: none; border: 0; color: var(--text);
  font-size: 1.15rem;
  position: relative;
}
.appbar__btn--right { justify-self: end; }
.badge-dot {
  position: absolute;
  top: 6px; right: 6px;
  min-width: 18px; height: 18px;
  padding: 0 4px;
  border-radius: 9px;
  background: var(--red);
  color: #fff;
  font-size: 0.6875rem;
  font-weight: 700;
  display: grid; place-items: center;
  border: 2px solid var(--bg);
}
.appbar__action {
  justify-self: end;
  color: var(--red-bright);
  font-weight: 600;
  font-size: 0.875rem;
  white-space: nowrap;
  padding-right: 4px;
  background: none; border: 0;
  display: inline-flex; align-items: center; gap: 5px;
}

/* ------------------------------------------------------------------ page -- */
.page { padding: 12px 16px 8px; }
.page > * + * { margin-top: 13px; }

.section-head {
  display: flex; align-items: baseline; justify-content: space-between;
  margin: 16px 2px 10px;
}
.section-head__title {
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.9px;
  color: var(--muted); text-transform: uppercase;
}
.section-head__action { color: var(--red-bright); font-size: 0.8125rem; font-weight: 600; }

.eyebrow { color: var(--muted); font-size: 0.8125rem; letter-spacing: 1.4px; text-transform: uppercase; font-weight: 600; }

/* welcome heading */
.welcome { margin: 6px 2px 2px; }
.welcome__hi { color: var(--muted); font-size: 0.8125rem; letter-spacing: 1.6px; text-transform: uppercase; font-weight: 600; }
.welcome__name { font-size: 1.6rem; font-weight: 800; letter-spacing: 0.3px; margin-top: 2px; }

/* --------------------------------------------------------------- credit -- */
.credit-card {
  position: relative;
  overflow: hidden;
  background: var(--red-grad);
  border-radius: var(--radius-lg);
  padding: 17px 20px;
  box-shadow: 0 14px 30px rgba(180,12,18,0.35);
}
.credit-card__label { font-size: 0.6875rem; font-weight: 700; letter-spacing: 1.1px; text-transform: uppercase; color: rgba(255,255,255,0.85); }
.credit-card__amount { font-size: 2.25rem; font-weight: 800; letter-spacing: 0.5px; margin: 7px 0 9px; line-height: 1; }
.credit-card__note { font-size: 0.8125rem; color: rgba(255,255,255,0.9); max-width: 70%; line-height: 1.45; }
.credit-card__icon {
  position: absolute; right: 18px; top: 50%; transform: translateY(-50%);
  font-size: 4.4rem; color: rgba(255,255,255,0.16);
}

/* ----------------------------------------------------------------- tiles -- */
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; }
.stat-tile {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 6px 11px;
  text-align: center;
}
.stat-tile__icon { color: var(--red-bright); font-size: 1.25rem; margin-bottom: 8px; }
.stat-tile__value { font-size: 1.15rem; font-weight: 800; letter-spacing: 0.2px; }
.stat-tile__value--sm { font-size: 1rem; }
.stat-tile__label { color: var(--muted); font-size: 0.6875rem; margin-top: 4px; line-height: 1.25; }

/* ------------------------------------------------------------ amount due -- */
.due-card {
  display: flex; align-items: center; gap: 14px; margin-top: 13px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 14px 16px; color: var(--text);
}
.due-card__main { min-width: 0; flex: 1; }
.due-card__label { font-size: 0.6875rem; font-weight: 800; letter-spacing: 0.9px; text-transform: uppercase; color: var(--muted); }
.due-card__amount { font-size: 1.6rem; font-weight: 800; letter-spacing: 0.3px; margin: 3px 0; line-height: 1; }
.due-card__note { font-size: 0.78rem; color: var(--muted); }
.due-card__icon { font-size: 2.6rem; color: rgba(227,18,27,0.18); flex-shrink: 0; }
.due-card__check { font-size: 1.7rem; color: #5fd07e; flex-shrink: 0; }
.due-card--owed { border-color: rgba(227,18,27,0.45); background: rgba(227,18,27,0.07); }
.due-card--owed .due-card__amount { color: #ff8a8f; }
.due-card--owed .due-card__label { color: #ff9ca0; }
.due-card--clear { border-color: rgba(52,199,89,0.30); }
.due-card--clear .due-card__label { color: #7ee29a; }

/* --------------------------------------------------------------- cards -- */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.stack { display: flex; flex-direction: column; gap: 8px; }

/* recommended / vehicle list rows */
.rec-row {
  display: flex; align-items: center; gap: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 14px;
}
.rec-row__main { min-width: 0; flex: 1; }
.rec-row__plate { display: flex; align-items: center; gap: 9px; }
.plate { font-size: 1.0625rem; font-weight: 800; letter-spacing: 0.5px; }
.rec-row__model { color: var(--muted); font-size: 0.8125rem; margin-top: 3px; letter-spacing: 0.3px; }
.rec-row__sub { color: var(--muted-2); font-size: 0.75rem; margin-top: 7px; }
.rec-row__right { text-align: right; white-space: nowrap; display: flex; align-items: center; gap: 10px; }
.rec-row__amounts { text-align: right; }
.rec-row__credit { font-size: 1rem; font-weight: 800; }
.rec-row__credit .unit { font-size: 0.75rem; font-weight: 700; margin-left: 1px; }
.rec-row__caption { color: var(--muted); font-size: 0.6875rem; margin-top: 3px; }
.rec-row__chev { color: var(--muted-2); font-size: 0.9rem; }

/* badges */
.badge {
  font-size: 0.625rem; font-weight: 800; letter-spacing: 0.6px;
  text-transform: uppercase;
  padding: 3px 8px; border-radius: 6px;
  background: var(--green); color: #06310f;
}
.badge--off { background: var(--surface-3); color: var(--muted); }
.badge--primary { background: var(--red); color: #fff; }

/* --------------------------------------------------------------- buttons -- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%;
  padding: 16px 18px;
  border: 0; border-radius: var(--radius-sm);
  font-size: 0.9375rem; font-weight: 800; letter-spacing: 0.8px; text-transform: uppercase;
  color: #fff; background: var(--red-grad);
  box-shadow: 0 10px 22px rgba(180,12,18,0.32);
}
.btn:active { transform: translateY(1px); }
.btn--block { display: flex; }
.btn--ghost {
  background: var(--surface-2); color: var(--text);
  border: 1px solid var(--line-strong); box-shadow: none;
}
.btn--disabled, .btn:disabled { opacity: 0.45; box-shadow: none; pointer-events: none; }

/* big primary call-to-action — the landing's one-click registration */
.btn--hero {
  padding: 20px 22px;
  font-size: 1.0625rem;
  letter-spacing: 0.6px;
  line-height: 1.25;
  border-radius: var(--radius);
  box-shadow: 0 16px 34px rgba(180,12,18,0.45);
}
.btn--hero i { font-size: 1.05rem; }
.btn--hero:hover { box-shadow: 0 18px 42px rgba(255,39,48,0.5); }

/* ---------------------------------------------------------------- bottom nav */
.tabbar {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: var(--app-w);
  z-index: 50;
  display: grid; grid-template-columns: repeat(5, 1fr);
  background: rgba(14,14,17,0.94);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
.tabbar__item {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 10px 2px 9px;
  color: var(--muted-2);
  font-size: 0.625rem; font-weight: 600; letter-spacing: 0.2px;
}
.tabbar__item i { font-size: 1.15rem; }
.tabbar__item.is-active { color: var(--red-bright); }

/* ============================================================ booking ===== */
.booking-hero { display: flex; align-items: center; gap: 16px; margin-top: 6px; }
.icon-circle {
  width: 78px; height: 78px; flex: none;
  border-radius: 50%;
  background: var(--red-grad);
  display: grid; place-items: center;
  font-size: 2rem; color: #fff;
  box-shadow: 0 10px 22px rgba(180,12,18,0.32);
}
.booking-hero__title { font-size: 1.25rem; font-weight: 800; line-height: 1.15; text-transform: uppercase; }
.booking-hero__sub { color: var(--muted); font-size: 0.8125rem; margin-top: 6px; line-height: 1.4; }

.calendar {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 14px 14px 16px;
}
.calendar__nav { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.calendar__month { font-weight: 800; letter-spacing: 0.8px; font-size: 0.9375rem; text-transform: uppercase; }
.calendar__arrow { width: 36px; height: 36px; display: grid; place-items: center; color: var(--muted); background: none; border: 0; font-size: 0.95rem; }
.calendar__grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px 2px; }
.calendar__dow { text-align: center; color: var(--muted-2); font-size: 0.6875rem; font-weight: 700; padding-bottom: 6px; letter-spacing: 0.3px; }
.calendar__day {
  aspect-ratio: 1 / 1;
  display: grid; place-items: center;
  font-size: 0.875rem; font-weight: 600; color: var(--text);
  border-radius: 50%; border: 0; background: none;
}
.calendar__day--muted { color: var(--muted-2); opacity: 0.35; pointer-events: none; }
.calendar__day--past { color: var(--muted-2); opacity: 0.4; pointer-events: none; }
.calendar__day.is-selected { background: var(--red); color: #fff; font-weight: 800; }

.field-label { font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.9px; color: var(--muted); text-transform: uppercase; margin: 22px 2px 10px; }

.slot-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.slot {
  padding: 13px 4px; text-align: center;
  background: var(--surface-2); border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-weight: 700; font-size: 0.9375rem; color: var(--text);
}
.slot.is-selected { background: var(--red); border-color: var(--red); color: #fff; }

.select-wrap { position: relative; }
.select {
  width: 100%; appearance: none; -webkit-appearance: none;
  background: var(--surface-2); border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--text); font-size: 0.9375rem; font-weight: 500;
  padding: 16px 44px 16px 16px;
}
.select:invalid, .select.placeholder { color: var(--muted); }
.select-wrap::after {
  content: "\f078"; font-family: "Font Awesome 6 Free"; font-weight: 900;
  position: absolute; right: 16px; top: 50%; transform: translateY(-50%);
  color: var(--muted); pointer-events: none; font-size: 0.8rem;
}

/* ======================================================= my vehicles ===== */
.vehicle-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
}
.vehicle-photo {
  height: 168px; position: relative;
  display: grid; place-items: center;
}
.vehicle-photo--superb { background: linear-gradient(150deg, #2a2d33 0%, #15161a 60%, #0e0f12 100%); }
.vehicle-photo--golf   { background: linear-gradient(150deg, #d7dade 0%, #9aa0a8 55%, #5c626b 100%); }
.vehicle-photo__car { font-size: 4.5rem; color: rgba(255,255,255,0.20); }
.vehicle-photo--golf .vehicle-photo__car { color: rgba(0,0,0,0.22); }
.vehicle-photo__plate-tag {
  position: absolute; left: 12px; bottom: 12px;
  background: rgba(0,0,0,0.55); backdrop-filter: blur(4px);
  border-radius: 8px; padding: 4px 9px; font-weight: 800; letter-spacing: 0.5px; font-size: 0.8125rem;
}
.vehicle-body { padding: 14px 16px 16px; }
.vehicle-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.vehicle-head__title { display: flex; align-items: center; gap: 9px; }
.vehicle-head__model { color: var(--muted); font-size: 0.8125rem; margin-top: 4px; letter-spacing: 0.3px; }
.vehicle-menu { color: var(--muted); background: none; border: 0; font-size: 1.1rem; padding: 2px 4px; }

.spec-row {
  display: grid; grid-template-columns: repeat(3, 1fr);
  margin-top: 16px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.spec { padding: 12px 6px; text-align: center; }
.spec + .spec { border-left: 1px solid rgba(255,255,255,0.045); }
.spec__label { color: var(--muted-2); font-size: 0.625rem; font-weight: 700; letter-spacing: 0.5px; text-transform: uppercase; }
.spec__value { font-weight: 700; font-size: 0.875rem; margin-top: 5px; }

.svc-block { margin-top: 16px; }
.svc-block__label { font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.9px; color: var(--muted); text-transform: uppercase; margin-bottom: 10px; }
.svc-last { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.svc-last__date { font-weight: 700; font-size: 0.9375rem; }
.svc-last__desc { color: var(--muted); font-size: 0.8125rem; margin-top: 3px; }
.svc-last__cost { font-weight: 800; font-size: 0.9375rem; display: flex; align-items: center; gap: 9px; }
.svc-last__cost i { color: var(--muted-2); font-size: 0.85rem; }

/* compact (non-primary) vehicle row */
.vehicle-mini {
  display: flex; align-items: center; gap: 14px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 12px 14px 12px 12px;
}
.vehicle-mini__photo {
  width: 76px; height: 56px; flex: none; border-radius: 12px;
  display: grid; place-items: center; overflow: hidden;
}
.vehicle-mini__photo .vehicle-photo__car { font-size: 1.9rem; }
.vehicle-mini__main { flex: 1; min-width: 0; }
.vehicle-mini__main .plate { font-size: 1.0625rem; }

.svc-next { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 9px; }
.svc-next__desc { font-weight: 700; font-size: 0.9375rem; }
.svc-next__rem { color: var(--muted); font-size: 0.8125rem; }
.progress { height: 6px; border-radius: 3px; background: var(--surface-3); overflow: hidden; }
.progress__bar { height: 100%; border-radius: 3px; background: var(--red-grad); }

/* ============================================================ invoices ===== */
.tabs {
  display: grid; grid-auto-flow: column; grid-auto-columns: 1fr;
  border-bottom: 1px solid var(--line);
  margin: 4px 0 4px;
}
.tabs__tab {
  text-align: center; padding: 13px 6px 12px;
  color: var(--muted); font-weight: 700; font-size: 0.8125rem; letter-spacing: 0.4px;
  text-transform: uppercase;
  border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.tabs__tab.is-active { color: var(--text); border-bottom-color: var(--red); }

.inv-group { margin-top: 18px; }
.inv-group__title { font-weight: 800; font-size: 0.9375rem; margin: 0 2px 10px; letter-spacing: 0.2px; }
.inv-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.inv-row { display: grid; grid-template-columns: 80px 1fr auto; align-items: center; gap: 10px; padding: 11px 14px; }
.inv-row + .inv-row { border-top: 1px solid var(--line); }
.inv-row__date { color: var(--muted); font-size: 0.75rem; font-weight: 600; line-height: 1.3; }
.inv-row__desc { min-width: 0; }
.inv-row__num { font-size: 0.75rem; color: var(--muted-2); }
.inv-row__name { font-size: 0.8125rem; font-weight: 600; margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.inv-row__amount { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; font-weight: 800; font-size: 0.9375rem; white-space: nowrap; }
.inv-badge { font-size: 0.6rem; font-weight: 800; letter-spacing: 0.4px; text-transform: uppercase; padding: 2px 7px; border-radius: 5px; }
.inv-badge--paid { background: rgba(52,199,89,0.16); color: #5fd07e; }
.inv-badge--unpaid { background: rgba(227,18,27,0.14); color: #ff9ca0; }
.inv-pdf-actions { display: inline-flex; gap: 5px; margin-top: 3px; }
.inv-pdf-btn { width: 28px; height: 28px; display: inline-grid; place-items: center; border-radius: 7px; color: var(--muted); border: 1px solid var(--line); background: var(--surface-2); font-size: 0.78rem; }
.inv-pdf-btn:hover { color: var(--text); border-color: var(--line-strong); }
.inv-more { display: block; text-align: left; color: var(--red-bright); font-weight: 600; font-size: 0.8125rem; padding: 13px 14px; border-top: 1px solid var(--line); }

/* -------------------------------------------------------- payment history -- */
.hist-link {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  margin: 10px 0 2px; padding: 13px 15px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  color: var(--text); font-weight: 600; font-size: 0.875rem;
}
.hist-link__txt i { color: var(--red-bright); margin-right: 8px; }
.hist-link__chev { color: var(--muted-2); font-size: 0.8rem; }
.pay-summary {
  position: relative; overflow: hidden; margin-bottom: 4px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 16px 18px;
}
.pay-summary__label { font-size: 0.6875rem; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); }
.pay-summary__amount { font-size: 1.9rem; font-weight: 800; letter-spacing: 0.4px; margin: 5px 0 3px; line-height: 1; color: #5fd07e; }
.pay-summary__note { font-size: 0.8rem; color: var(--muted); }
.pay-summary__icon { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); font-size: 3rem; color: rgba(52,199,89,0.14); }

/* ============================================================== profile ==== */
.profile-head { display: flex; align-items: center; gap: 16px; padding: 8px 2px 4px; }
.avatar {
  width: 68px; height: 68px; border-radius: 50%; flex: none;
  display: grid; place-items: center;
  background: var(--red-grad); color: #fff;
  font-weight: 800; font-size: 1.5rem; letter-spacing: 0.5px;
  box-shadow: 0 8px 20px rgba(180,12,18,0.30);
}
.profile-head__name { font-size: 1.375rem; font-weight: 800; }
.profile-head__contact { color: var(--muted); font-size: 0.8125rem; margin-top: 3px; }

.minicredit { display: flex; align-items: center; justify-content: space-between; }
.minicredit__label { color: rgba(255,255,255,0.85); font-size: 0.6875rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; }
.minicredit__value { font-size: 1.5rem; font-weight: 800; margin-top: 4px; }

.menu-list { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.menu-item { display: flex; align-items: center; gap: 14px; padding: 15px 16px; color: var(--text); }
.menu-item + .menu-item { border-top: 1px solid var(--line); }
.menu-item__ic { width: 26px; text-align: center; color: var(--red-bright); font-size: 1rem; }
.menu-item__label { flex: 1; font-size: 0.9375rem; font-weight: 500; }
.menu-item__chev { color: var(--muted-2); font-size: 0.85rem; }
.menu-item--danger .menu-item__ic, .menu-item--danger .menu-item__label { color: var(--red-bright); }

/* ============================================================ off-canvas === */
.drawer-toggle { display: none; }
.drawer {
  position: fixed; inset: 0; z-index: 80; visibility: hidden;
}
.drawer__scrim { position: absolute; inset: 0; background: rgba(0,0,0,0.55); opacity: 0; transition: opacity .25s; }
.drawer__panel {
  position: absolute; top: 0; bottom: 0; left: 0; width: 80%; max-width: 320px;
  background: var(--bg-2); border-right: 1px solid var(--line);
  transform: translateX(-100%); transition: transform .28s ease;
  padding: 22px 18px; overflow-y: auto;
}
.drawer-toggle:checked + .drawer { visibility: visible; }
.drawer-toggle:checked + .drawer .drawer__scrim { opacity: 1; }
.drawer-toggle:checked + .drawer .drawer__panel { transform: translateX(0); }
.drawer__brand { margin-bottom: 22px; }
.drawer__link { display: flex; align-items: center; gap: 14px; padding: 14px 8px; border-radius: 10px; font-weight: 600; }
.drawer__link i { width: 24px; text-align: center; color: var(--red-bright); }
.drawer__link.is-active { background: var(--surface-2); }
.drawer__close { position: absolute; top: 14px; right: 14px; background: none; border: 0; color: var(--muted); font-size: 1.3rem; }

/* =============================================================== flash ===== */
.flash { margin: 12px 16px 0; padding: 12px 14px; border-radius: var(--radius-sm); font-size: 0.875rem; font-weight: 600; }
.flash--notice { background: rgba(52,199,89,0.14); color: #7ee29a; border: 1px solid rgba(52,199,89,0.3); }
.flash--alert  { background: rgba(227,18,27,0.14); color: #ff8a8f; border: 1px solid rgba(227,18,27,0.35); }

/* ===================================================== logo / wordmark ==== */
.logo { display: inline-flex; flex-direction: column; align-items: center; line-height: 0.92; }
.logo__badge {
  position: relative;
  background: #0a0a0b;
  border: 3px solid var(--red);
  border-radius: 14px;
  padding: 12px 22px 14px;
  text-align: center;
  box-shadow: 0 10px 26px rgba(0,0,0,0.5), inset 0 0 0 2px #000;
}
.logo__top {
  display: inline-block;
  background: var(--red); color: #fff;
  font-weight: 900; font-size: 0.7rem; letter-spacing: 3px;
  padding: 2px 12px; border-radius: 5px; margin-bottom: 6px;
}
.logo__name { color: #fff; font-style: italic; font-weight: 900; letter-spacing: 0.5px; }
.logo__name--lg { font-size: 2.2rem; }
.logo__name .accent { color: var(--red-bright); }
.logo__line { font-style: italic; font-weight: 900; font-size: 2.2rem; }
.logo__v { color: #fff; }
.logo__s { color: #fff; }

/* small inline wordmark (header / drawer) */
.wordmark { display: inline-flex; align-items: center; gap: 8px; font-style: italic; font-weight: 900; letter-spacing: 0.4px; }
.wordmark__tag { background: var(--red); color: #fff; font-style: normal; font-size: 0.6rem; letter-spacing: 2px; padding: 2px 6px; border-radius: 4px; }
.wordmark__txt { font-size: 1.05rem; }

/* ============================================================ marketing ==== */
.landing { max-width: 520px; margin: 0 auto; min-height: 100vh; padding: 26px 22px 40px; background: radial-gradient(120% 50% at 50% 0%, #19191f 0%, var(--bg) 60%); }
.landing__logo { display: grid; place-items: center; margin: 6px 0 22px; }
.tagline { text-align: left; margin: 6px 0 26px; }
.tagline__line { font-weight: 900; font-size: 1.6rem; letter-spacing: 0.3px; line-height: 1.12; }
.tagline__line--red { color: var(--red-bright); }

.feature { display: flex; align-items: center; gap: 16px; padding: 11px 0; }
.feature__ic {
  width: 50px; height: 50px; flex: none; border-radius: 50%;
  border: 2px solid var(--red); color: var(--red-bright);
  display: grid; place-items: center; font-size: 1.15rem; font-weight: 700;
}
.feature__txt { font-weight: 700; font-size: 0.9rem; letter-spacing: 0.4px; line-height: 1.3; text-transform: uppercase; }
.feature__txt .hl { color: var(--red-bright); }

.shopshot {
  margin: 24px 0; height: 150px; border-radius: var(--radius);
  background: linear-gradient(180deg, #1d1f24 0%, #0c0c0e 100%);
  border: 1px solid var(--line);
  display: grid; place-items: center; position: relative; overflow: hidden;
}
.shopshot__glow { position: absolute; inset: 0; background: radial-gradient(60% 120% at 50% 120%, rgba(227,18,27,0.45), transparent 60%); }
.shopshot__wm { position: relative; z-index: 1; }

.auth-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 22px 20px; margin-top: 8px; }
.auth-card__title { font-size: 1.1rem; font-weight: 800; margin-bottom: 4px; }
.auth-card__sub { color: var(--muted); font-size: 0.8125rem; margin-bottom: 18px; }

/* registration CTA card — the visual hero of the auth panel */
.auth-card--cta {
  border-color: rgba(227,18,27,0.42);
  background:
    radial-gradient(120% 120% at 0% 0%, rgba(227,18,27,0.14), transparent 58%),
    var(--surface);
}
.auth-card--cta .auth-card__title { font-size: 1.25rem; }
.auth-card__eyebrow {
  display: inline-flex; align-items: center; gap: 7px;
  color: var(--red-bright);
  font-size: 0.6875rem; font-weight: 800; letter-spacing: 1.2px; text-transform: uppercase;
  margin-bottom: 11px;
}
/* spacing between stacked auth cards (mobile + desktop, even with display:contents) */
.landing__panel .auth-card + .auth-card { margin-top: 16px; }
.input-label { font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.6px; color: var(--muted); text-transform: uppercase; margin: 14px 2px 7px; display: block; }
.input {
  width: 100%; background: var(--surface-2); border: 1px solid var(--line);
  border-radius: var(--radius-sm); color: var(--text);
  font-size: 0.9375rem; padding: 14px 15px;
}
.input::placeholder { color: var(--muted-2); }
.input:focus, .select:focus { outline: none; border-color: var(--red); }
.auth-hint { color: var(--muted-2); font-size: 0.75rem; text-align: center; margin-top: 14px; line-height: 1.5; }
.auth-or { text-align: center; color: var(--muted-2); font-size: 0.75rem; margin: 16px 0; letter-spacing: 1px; }

/* contact footer (marketing) */
.contact-bar {
  margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--line);
  display: grid; gap: 14px;
}
.contact { display: flex; align-items: center; gap: 14px; }
.contact__ic { width: 40px; height: 40px; flex: none; border-radius: 50%; background: var(--red-grad); display: grid; place-items: center; color: #fff; font-size: 0.95rem; }
.contact__txt { font-size: 0.8125rem; }
.contact__txt b { display: block; font-weight: 700; }
.contact__txt span { color: var(--muted); }

/* currency unit (smaller "Kč") */
.cur { font-size: 0.62em; font-weight: 700; letter-spacing: 0; }

/* spacing helpers */
.mt-8 { margin-top: 8px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; }
.muted { color: var(--muted); }
.center { text-align: center; }

/* ============================================================ legal ======== */
.legal {
  max-width: 760px; margin: 0 auto;
  padding: 22px 20px 64px;
  background: radial-gradient(120% 40% at 50% 0%, #17171c 0%, var(--bg) 55%);
  min-height: 100vh; min-height: 100dvh;
}
.legal__back {
  display: inline-flex; align-items: center; gap: 7px;
  color: var(--muted); font-size: 0.875rem; font-weight: 600;
  margin: 4px 0 18px;
}
.legal__back i { font-size: 0.8rem; }
.legal__brand { margin-bottom: 18px; }
.legal__title { font-size: 1.6rem; font-weight: 800; letter-spacing: 0.2px; margin: 0 0 6px; }
.legal__meta { color: var(--muted-2); font-size: 0.8125rem; margin: 0 0 24px; }
.legal h2 {
  font-size: 1.0625rem; font-weight: 800; letter-spacing: 0.2px;
  margin: 28px 0 8px; color: var(--text);
}
.legal p { color: var(--muted); font-size: 0.9375rem; line-height: 1.62; margin: 0 0 12px; }
.legal ul { margin: 0 0 14px; padding-left: 20px; }
.legal li { color: var(--muted); font-size: 0.9375rem; line-height: 1.6; margin-bottom: 6px; }
.legal strong { color: var(--text); font-weight: 700; }
.legal a { color: var(--red-bright); font-weight: 600; }
.legal a:hover { text-decoration: underline; }

/* ============================================================================
   DESKTOP / WEB  (>= 900px)
   Everything above is mobile-first and untouched on phones. The rules below
   upgrade the phone column into a full desktop app: a persistent left sidebar
   (replacing the bottom tab-bar + hamburger), a left-aligned top bar, a centred
   wide content area, and multi-column card grids. List pages go wide; form /
   detail pages stay at a comfortable reading width.
   ========================================================================== */

/* desktop-only nav rail — hidden on phones (drawer + tabbar serve mobile) */
.sidebar { display: none; }
/* dashboard credit + stats wrapper keeps the exact mobile rhythm on phones */
.dash-top { display: flex; flex-direction: column; gap: 13px; }
/* landing: on phones the panel is transparent so flash + auth render inline */
.landing__panel { display: contents; }

@media (min-width: 900px) {
  :root { --rail-w: 252px; }

  body { background: var(--bg); }

  /* ---- app frame: fixed rail + fluid content column ---- */
  .app {
    max-width: none;
    overflow: visible;
    display: grid;
    grid-template-columns: var(--rail-w) minmax(0, 1fr);
    grid-template-areas: "sidebar shell";
    padding-bottom: 0;
    background: var(--bg);
  }
  .shell {
    grid-area: shell;
    min-width: 0;
    min-height: 100dvh;
    background: radial-gradient(100% 46% at 50% 0%, #15151b 0%, var(--bg) 55%);
  }

  /* mobile chrome off */
  .tabbar,
  .drawer,
  .drawer-toggle { display: none; }

  /* ---- persistent sidebar ---- */
  .sidebar {
    grid-area: sidebar;
    display: flex; flex-direction: column;
    position: sticky; top: 0; align-self: start;
    height: 100dvh;
    padding: 22px 14px 18px;
    background: var(--bg-2);
    border-right: 1px solid var(--line);
    overflow-y: auto;
  }
  .sidebar__brand { display: block; padding: 4px 10px 20px; }
  .sidebar__nav { display: flex; flex-direction: column; gap: 3px; }
  .side-link {
    display: flex; align-items: center; gap: 13px;
    width: 100%;
    padding: 11px 12px; border: 0; border-radius: 12px;
    background: none; text-align: left;
    color: var(--muted); font-weight: 600; font-size: 0.9375rem; letter-spacing: 0.2px;
    transition: background .15s, color .15s;
  }
  .side-link i { width: 22px; text-align: center; font-size: 1.02rem; color: var(--muted-2); transition: color .15s; }
  .side-link:hover { background: var(--surface); color: var(--text); }
  .side-link:hover i { color: var(--red-bright); }
  .side-link.is-active { background: var(--surface-2); color: #fff; }
  .side-link.is-active i { color: var(--red-bright); }
  .side-link__badge {
    margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px;
    border-radius: 10px; background: var(--red); color: #fff;
    font-size: 0.6875rem; font-weight: 800; display: grid; place-items: center;
  }
  .sidebar__spacer { flex: 1 1 auto; }
  .side-link--logout { color: var(--red-bright); margin-top: 6px; }
  .side-link--logout i { color: var(--red-bright); }
  /* button_to wrapper around the logout link */
  .sidebar form { width: 100%; }

  /* ---- top bar ---- */
  .appbar {
    grid-template-columns: 1fr auto;
    height: 66px;
    padding: 0 34px;
    background: rgba(12,12,14,0.66);
  }
  .appbar > .appbar__btn:first-child { display: none; }   /* hamburger / back arrow */
  .appbar__title { text-align: left; font-size: 1.45rem; font-weight: 800; }

  /* ---- content column ---- */
  .page { max-width: 1080px; margin: 0 auto; padding: 30px 34px 56px; }
  .page > * + * { margin-top: 20px; }

  /* card lists flow into columns */
  .stack { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; align-items: start; }
  .vehicle-card { grid-column: 1 / -1; }      /* primary vehicle spans the full row */

  /* dashboard: credit balance + stats side by side, stats as a tidy list */
  .dash-top { display: grid; grid-template-columns: 1.3fr 1fr; gap: 18px; align-items: stretch; }
  .dash-top .credit-card { display: flex; flex-direction: column; justify-content: center; }
  .dash-top .stat-row { grid-template-columns: 1fr; gap: 11px; }
  .dash-top .stat-tile {
    display: grid; grid-template-columns: 34px 1fr; column-gap: 14px;
    align-items: center; text-align: left; padding: 13px 16px;
  }
  .dash-top .stat-tile__icon { grid-row: 1 / 3; align-self: center; margin-bottom: 0; font-size: 1.5rem; }
  .dash-top .stat-tile__value { align-self: end; }
  .dash-top .stat-tile__label { align-self: start; margin-top: 3px; line-height: 1.3; }
  /* the "Doporučte nás" CTA shouldn't stretch the whole 1080px column */
  .page.p-dashboard .button_to { max-width: 340px; }

  /* invoices: groups in two columns */
  .inv-groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 20px; align-items: start; }
  .inv-group { margin-top: 0; }   /* grid gap owns the spacing now */

  /* form / detail pages read better at a contained width */
  .page.p-profile,
  .page.p-notifications,
  .page.p-vehicles-show,
  .page.p-vehicles-new { max-width: 620px; }
  .page.p-service_bookings { max-width: 560px; }

  /* notifications use .stack but should stay single-column */
  .page.p-notifications .stack { grid-template-columns: 1fr; }
}

/* ---- marketing landing: two-column hero on desktop ---- */
@media (min-width: 980px) {
  .landing {
    max-width: 1000px;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    column-gap: 56px;
    align-content: start;
    grid-template-areas:
      "logo     panel"
      "tagline  panel"
      "features panel"
      "shopshot panel"
      "contact  panel";
    padding: 54px 30px 48px;
  }
  .landing__logo { grid-area: logo; justify-items: start; margin: 0 0 16px; }
  .landing .tagline { grid-area: tagline; margin: 0 0 22px; }
  .landing .tagline__line { font-size: 2.05rem; }
  .landing .features { grid-area: features; }
  .landing .shopshot { grid-area: shopshot; margin: 6px 0 0; }
  .landing .contact-bar { grid-area: contact; }
  .landing__panel {
    grid-area: panel; display: block;
    align-self: start; position: sticky; top: 40px;
  }
  .landing__panel .auth-card { margin-top: 0; }
}

/* ----------------------------------------------- referral hint + toast ---- */
.ref-hint {
  margin: 12px 4px 0;
  color: var(--muted);
  font-size: 0.8125rem; line-height: 1.45; text-align: center;
}
.ref-hint b { color: var(--text); }

/* floating confirmation after copy / share */
.toast {
  position: fixed; z-index: 80;
  left: 50%; bottom: 92px;
  transform: translate(-50%, 12px);
  width: calc(100% - 32px); max-width: calc(var(--app-w) - 32px);
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.875rem; font-weight: 600; line-height: 1.35; text-align: center;
  word-break: break-word;
  box-shadow: 0 14px 34px rgba(0,0,0,0.45);
  opacity: 0; pointer-events: none;
  transition: opacity .26s ease, transform .26s ease;
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }
.toast--notice { background: #15331f; color: #8ff0aa; border: 1px solid rgba(52,199,89,0.40); }
.toast--alert  { background: #3a1517; color: #ff9ca0; border: 1px solid rgba(227,18,27,0.45); }
@media (min-width: 900px) {
  .toast { bottom: 28px; }
}

/* ---------------------------------------------------- vehicle ⋮ dropdown -- */
/* compact card: the row is now a link + a sibling menu inside the flex wrapper */
.vehicle-mini__link {
  display: flex; align-items: center; gap: 14px;
  flex: 1 1 auto; min-width: 0;
  color: inherit; text-decoration: none;
}

.vmenu { position: relative; flex: none; }
.vmenu > summary {
  list-style: none; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
}
.vmenu > summary::-webkit-details-marker { display: none; }
.vmenu > summary:focus-visible { outline: 2px solid var(--red-bright); outline-offset: 2px; border-radius: 8px; }

.vmenu__panel {
  position: absolute; top: calc(100% + 6px); right: 0; z-index: 60;
  min-width: 224px;
  background: var(--surface-2); border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  box-shadow: 0 16px 38px rgba(0,0,0,0.5);
  padding: 6px; display: grid; gap: 2px;
}
.vmenu__item {
  display: flex; align-items: center; gap: 11px;
  width: 100%; text-align: left;
  padding: 12px 12px; border: 0; background: transparent;
  color: var(--text); font-size: 0.875rem; font-weight: 600;
  border-radius: 9px; cursor: pointer;
  text-decoration: none;
}
.vmenu__item:hover, .vmenu__item:focus-visible { background: rgba(255,255,255,0.07); outline: none; }
.vmenu__item:active { transform: translateY(1px); }
.vmenu__item i { width: 18px; text-align: center; color: var(--muted); font-size: 0.95rem; }
.vmenu__item--off, .vmenu__item--off:hover { color: var(--muted-2); cursor: default; background: transparent; }
.vmenu__item--off i { color: var(--muted-2); }

/* ============================================================================
   MARKETING HOMEPAGE  (sessions/new — representative autoservis site)
   Mobile-first; one centred column. The old single-screen "referral pitch"
   landing (.landing / .tagline / .shopshot) is superseded by this.
   ========================================================================== */
html { scroll-behavior: smooth; }

.mkt { max-width: 1120px; margin: 0 auto; padding: 0 18px; }

/* sticky top bar */
.mkt-top {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  height: 60px; margin: 0 -18px; padding: 0 18px;
  background: rgba(12,12,14,0.82);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.mkt-top .wordmark__txt { font-size: 0.95rem; }
.mkt-top__nav { display: flex; align-items: center; gap: 18px; }
.mkt-top__nav a { color: var(--muted); font-size: 0.875rem; font-weight: 600; }
.mkt-top__nav a:hover { color: var(--text); }
.mkt-top__login { display: inline-flex; align-items: center; gap: 7px; color: var(--red-bright); }
.hide-phone { display: none; }   /* section anchors hidden on phones; shown ≥820px */

/* hero */
.hero {
  position: relative; text-align: center;
  padding: 28px 4px 26px;
  background: radial-gradient(115% 70% at 50% 0%, rgba(227,18,27,0.16), transparent 56%);
}
.hero__logo { display: grid; place-items: center; margin: 6px 0 20px; }
.hero__eyebrow { color: var(--muted); font-size: 0.8125rem; letter-spacing: 2px; text-transform: uppercase; font-weight: 700; }
.hero__title { font-size: 2rem; font-weight: 900; line-height: 1.1; letter-spacing: 0.2px; margin: 12px 0 14px; }
.hero__title .hl { color: var(--red-bright); }
.hero__sub { color: var(--muted); font-size: 1rem; line-height: 1.5; max-width: 540px; margin: 0 auto 22px; }
.hero__refnote {
  display: inline-flex; align-items: center; gap: 9px; flex-wrap: wrap; justify-content: center;
  background: rgba(227,18,27,0.10); border: 1px solid rgba(227,18,27,0.4);
  color: #ffb3b6; border-radius: 999px; padding: 9px 16px; font-size: 0.85rem; font-weight: 600;
  margin: 0 auto 16px; max-width: 560px;
}
.hero__refnote i { color: var(--red-bright); }
.hero__cta { max-width: 420px; margin: 0 auto; }
.hero__links { margin-top: 14px; display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; color: var(--muted); font-size: 0.875rem; }
.hero__links a { color: var(--text); font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.hero__links a:hover { color: var(--red-bright); }
.hero__links .dot { color: var(--muted-2); }
.hero__chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 18px; margin-top: 20px; }
.hero__chips span { color: var(--muted); font-size: 0.8125rem; font-weight: 600; display: inline-flex; align-items: center; gap: 7px; }
.hero__chips i { color: var(--green); }
.hero__card { display: none; }   /* desktop-only showcase card (see ≥980px) */

/* generic section */
.section { padding: 30px 0; scroll-margin-top: 72px; }
.section__head { text-align: center; margin-bottom: 22px; }
.section__eyebrow { color: var(--red-bright); font-size: 0.6875rem; font-weight: 800; letter-spacing: 1.6px; text-transform: uppercase; }
.section__title { font-size: 1.5rem; font-weight: 800; letter-spacing: 0.2px; margin: 7px 0 0; }

/* services grid */
.svc-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.svc-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px 14px; text-align: center; color: var(--text);
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  transition: border-color .15s;
}
.svc-card:hover { border-color: var(--line-strong); }
.svc-card__ic {
  width: 56px; height: 56px; border-radius: 16px; margin-bottom: 9px;
  display: grid; place-items: center; font-size: 1.4rem;
  color: var(--red-bright); background: rgba(227,18,27,0.10); border: 1px solid rgba(227,18,27,0.22);
}
.svc-card__name { font-weight: 800; font-size: 0.95rem; letter-spacing: 0.2px; }
.svc-card__price { color: var(--muted); font-size: 0.8125rem; font-weight: 600; }
.svc-card--more { background: var(--bg-2); border-style: dashed; }
.svc-card--more .svc-card__price { color: var(--red-bright); }

/* client-portal section */
.portal-grid { display: grid; gap: 22px; }
.portal-feats { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 14px; }
.portal-feats li { display: flex; align-items: center; gap: 13px; font-weight: 600; font-size: 0.95rem; color: var(--text); }
.portal-feats li i { width: 26px; text-align: center; color: var(--red-bright); font-size: 1.05rem; }
/* stacked register + login cards */
.auth-card + .auth-card { margin-top: 16px; }

/* referral / loyalty promo (demoted to one small block) */
.ref-promo {
  display: flex; align-items: flex-start; gap: 18px;
  background: radial-gradient(120% 140% at 100% 0%, rgba(227,18,27,0.12), transparent 55%), var(--surface);
  border: 1px solid rgba(227,18,27,0.30); border-radius: var(--radius-lg); padding: 22px;
}
.ref-promo__ic {
  width: 56px; height: 56px; flex: none; border-radius: 50%;
  display: grid; place-items: center; font-size: 1.5rem; color: #fff; background: var(--red-grad);
  box-shadow: 0 10px 22px rgba(180,12,18,0.32);
}
.ref-promo__title { font-size: 1.2rem; font-weight: 800; }
.ref-promo__title .hl { color: var(--red-bright); }
.ref-promo__txt { color: var(--muted); font-size: 0.9rem; line-height: 1.55; margin: 7px 0 0; }
.ref-promo__txt b { color: var(--text); }

/* contact */
.contact-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
.contact-grid .contact { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 13px 15px; color: var(--text); }
.mkt-bottom-cta { max-width: 420px; margin: 26px auto 0; }

/* footer */
.mkt-footer { text-align: center; padding: 30px 0 40px; margin-top: 12px; border-top: 1px solid var(--line); }
.mkt-footer .wordmark { justify-content: center; }
.mkt-footer__links { margin: 14px 0 8px; }
.mkt-footer__links a { color: var(--muted); font-size: 0.8125rem; font-weight: 600; }
.mkt-footer__links a:hover { color: var(--text); }
.mkt-footer__copy { color: var(--muted-2); font-size: 0.75rem; }
.mkt-footer__sep { color: var(--muted-2); margin: 0 8px; }

/* account-creation consent note (under the register CTAs) */
.auth-consent { margin-top: 12px; color: var(--muted-2); font-size: 0.75rem; line-height: 1.5; }
.auth-consent a { color: var(--muted); text-decoration: underline; }
.hero .auth-consent { max-width: 460px; }

/* ---- marketing desktop ---- */
@media (min-width: 820px) {
  .mkt { padding: 0 28px; }
  .mkt-top { height: 66px; margin: 0 -28px; padding: 0 28px; }
  .hide-phone { display: inline; }
  .hero { padding: 46px 8px 40px; }
  .hero__title { font-size: 2.7rem; }
  .hero__sub { font-size: 1.0625rem; }
  .section { padding: 46px 0; }
  .section__title { font-size: 1.85rem; }
  .svc-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .portal-grid { grid-template-columns: 1fr 1fr; gap: 44px; align-items: start; }
  .contact-grid { grid-template-columns: repeat(2, 1fr); gap: 14px 18px; }
}

/* ---- marketing: two-column hero + balanced portal (wide desktop) ---- */
@media (min-width: 980px) {
  .hero {
    display: grid; grid-template-columns: 1.12fr 0.88fr; gap: 48px;
    align-items: center; text-align: left;
    padding: 56px 8px 52px;
  }
  .hero__logo { justify-items: start; margin: 0 0 18px; }
  .hero__title { font-size: 2.6rem; }
  .hero__sub { margin-left: 0; margin-right: 0; max-width: 520px; }
  .hero__refnote { margin-left: 0; margin-right: 0; }
  .hero__cta { margin: 0; }
  .hero__links { justify-content: flex-start; }
  .hero__chips { display: none; }   /* value points move into the showcase card */

  .hero__card {
    display: block;
    background:
      radial-gradient(120% 90% at 100% 0%, rgba(227,18,27,0.16), transparent 55%),
      var(--surface);
    border: 1px solid var(--line-strong); border-radius: var(--radius-lg);
    padding: 26px 26px 22px; box-shadow: var(--shadow);
  }
  .hero__card-title { font-size: 0.6875rem; font-weight: 800; letter-spacing: 1.6px; text-transform: uppercase; color: var(--red-bright); margin-bottom: 16px; }
  .hero__card-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
  .hero__card-list li { display: flex; align-items: center; gap: 13px; font-weight: 600; font-size: 0.95rem; line-height: 1.3; }
  .hero__card-list li i { width: 24px; flex: none; text-align: center; color: var(--red-bright); font-size: 1.05rem; }
  .hero__card-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); }
  .hero__card-hours { color: var(--muted); font-size: 0.85rem; font-weight: 600; display: inline-flex; align-items: center; gap: 8px; }
  .hero__card-hours i { color: var(--red-bright); }
  .hero__card-foot .btn { width: auto; padding: 12px 18px; box-shadow: none; }

  /* portal: features as a 2×2 card grid to balance the auth column */
  .portal-feats { grid-template-columns: 1fr 1fr; gap: 12px; }
  .portal-feats li {
    align-items: flex-start; line-height: 1.3;
    background: var(--surface); border: 1px solid var(--line);
    border-radius: var(--radius-sm); padding: 14px;
  }
}
