:root {
  --ink: #172526;
  --muted: #647171;
  --deep: #142b2c;
  --deep-2: #0b2021;
  --green: #0c766d;
  --green-dark: #075c55;
  --mint: #dff2eb;
  --amber: #efb13a;
  --amber-soft: #fff3d6;
  --paper: #fbfaf6;
  --white: #fff;
  --line: #dfe5e2;
  --danger: #a73535;
  --shadow: 0 20px 55px rgba(20, 43, 44, .1);
  --shadow-sm: 0 8px 28px rgba(20, 43, 44, .08);
  --radius: 22px;
  --radius-sm: 13px;
  color: var(--ink);
  background: var(--paper);
  font-family: "DM Sans", system-ui, sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; min-height: 100vh; background: var(--paper); }
button, input, select, textarea { font: inherit; }
button, select { cursor: pointer; }
a { color: var(--green-dark); }
img { max-width: 100%; display: block; }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, a:focus-visible { outline: 3px solid rgba(12,118,109,.28); outline-offset: 2px; }
h1, h2, h3 { margin: 0; color: var(--deep); font-family: "Manrope", sans-serif; letter-spacing: -.04em; line-height: 1.12; }
h1 { font-size: clamp(2.2rem, 5vw, 4.2rem); }
h2 { font-size: clamp(1.45rem, 3vw, 2rem); }
h3 { font-size: 1.08rem; }
p { line-height: 1.62; }
code { padding: 3px 7px; border-radius: 7px; background: #edf1ee; font-size: .9em; }

.skip-link { position: fixed; z-index: 100; top: 8px; left: 8px; transform: translateY(-150%); padding: 10px 14px; border-radius: 9px; background: var(--deep); color: #fff; }
.skip-link:focus { transform: translateY(0); }
.shell { width: min(1180px, 92vw); margin-inline: auto; }
.narrow { width: min(780px, 92vw); }
.narrow-wide { width: min(930px, 92vw); }
.card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow-sm); }
.eyebrow { display: block; margin-bottom: 8px; color: var(--green); font-size: .75rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.eyebrow.light { color: #efc66f; }
.muted { color: var(--muted); }

.topbar { position: sticky; z-index: 40; top: 0; display: flex; min-height: 76px; align-items: center; justify-content: space-between; gap: 22px; padding: 0 4vw; border-bottom: 1px solid rgba(223,229,226,.9); background: rgba(251,250,246,.94); backdrop-filter: blur(16px); }
.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--deep); text-decoration: none; }
.brand > span:last-child { display: grid; }
.brand strong { font: 800 1.18rem/1 "Manrope", sans-serif; letter-spacing: -.04em; }
.brand small { margin-top: 4px; color: var(--muted); font-size: .58rem; font-weight: 700; }
.brand-mark { position: relative; display: grid; width: 40px; height: 40px; place-items: center; border-radius: 13px; background: var(--deep); color: #fff; }
.brand-mark::after { content: ""; position: absolute; right: -2px; bottom: -2px; width: 10px; height: 10px; border: 3px solid var(--paper); border-radius: 50%; background: var(--amber); }
.brand-mark svg { width: 27px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2; }
.main-nav { display: flex; align-items: center; gap: 19px; }
.main-nav > a { color: var(--ink); font-size: .9rem; font-weight: 700; text-decoration: none; }
.main-nav > a:hover { color: var(--green); }
.main-nav .btn { color: #fff; }
.nav-login { padding-left: 18px; border-left: 1px solid var(--line); }
.profile-link { display: flex; align-items: center; gap: 8px; }
.nav-avatar { display: grid; width: 35px; height: 35px; place-items: center; overflow: hidden; border-radius: 50%; background: var(--amber-soft); color: #735000; font-size: .78rem; font-weight: 800; }
.nav-avatar img { width: 100%; height: 100%; object-fit: cover; }
.menu-toggle { display: none; border: 1px solid var(--line); border-radius: 10px; background: #fff; padding: 8px 11px; color: var(--ink); font-weight: 700; }
.inline-form { display: inline-flex; margin: 0; }
.link-button { border: 0; background: transparent; color: var(--muted); font-size: .88rem; font-weight: 700; }

.btn { display: inline-flex; min-height: 46px; align-items: center; justify-content: center; gap: 8px; padding: 0 18px; border: 0; border-radius: 12px; background: var(--green); color: #fff; font-weight: 800; text-decoration: none; transition: .18s ease; }
.btn:hover { transform: translateY(-1px); background: var(--green-dark); box-shadow: 0 9px 22px rgba(12,118,109,.2); }
.btn:disabled { cursor: not-allowed; opacity: .4; transform: none; box-shadow: none; }
.btn-small { min-height: 38px; padding: 0 13px; font-size: .78rem; }
.btn-full { width: 100%; }
.btn-amber { background: var(--amber); color: #392700; }
.btn-amber:hover { background: #e2a431; }
.btn-secondary { border: 1px solid var(--line); background: #fff; color: var(--ink); }
.btn-secondary:hover { background: #f5f7f5; color: var(--ink); box-shadow: none; }
.btn-danger { border: 1px solid #edd1d1; background: #fff4f4; color: var(--danger); }
.btn-danger:hover { background: #ffecec; color: var(--danger); box-shadow: none; }

.flash { position: fixed; z-index: 60; top: 88px; right: 3vw; max-width: min(430px, 90vw); padding: 13px 16px; border: 1px solid; border-radius: 12px; box-shadow: var(--shadow); background: #fff; font-weight: 700; animation: flash-in .25s ease; }
.flash-success { border-color: #a9d9c9; color: #075c46; }
.flash-error { border-color: #e8b6b6; color: var(--danger); }
@keyframes flash-in { from { opacity: 0; transform: translateY(-10px); } }

.hero { position: relative; overflow: hidden; background: var(--deep); color: #fff; }
.hero::before { content: ""; position: absolute; inset: 0; opacity: .28; background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px); background-size: 44px 44px; mask-image: linear-gradient(to right, #000, transparent); }
.hero-inner { position: relative; display: grid; width: min(1180px, 92vw); min-height: 620px; margin: auto; grid-template-columns: 1.15fr .85fr; align-items: center; gap: 50px; padding: 74px 0 80px; }
.hero h1 { color: #fff; font-size: clamp(3rem, 6.4vw, 5.7rem); line-height: .98; }
.hero h1 em { color: var(--amber); font-style: normal; }
.hero-copy > p { max-width: 660px; margin: 22px 0 0; color: #c6d4d2; font-size: 1.08rem; }
.hero-search { display: grid; grid-template-columns: 1.4fr .55fr auto; gap: 9px; margin-top: 30px; padding: 8px; border-radius: 17px; background: #fff; box-shadow: 0 18px 45px rgba(0,0,0,.18); }
.hero-search label { display: grid; gap: 2px; padding: 6px 12px; border-radius: 10px; background: #f3f6f4; color: var(--muted); font-size: .68rem; font-weight: 800; text-transform: uppercase; }
.hero-search input, .hero-search select { min-width: 0; padding: 2px 0; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: .95rem; font-weight: 600; text-transform: none; }
.trust-row { display: flex; flex-wrap: wrap; gap: 17px; margin-top: 20px; color: #aabdb9; font-size: .78rem; font-weight: 700; }
.hero-orbit { position: relative; display: grid; aspect-ratio: 1; place-items: center; }
.road-ring { position: absolute; width: 78%; aspect-ratio: 1; border: 2px dashed rgba(255,255,255,.22); border-radius: 50%; box-shadow: 0 0 0 42px rgba(255,255,255,.025), 0 0 0 84px rgba(239,177,58,.025); animation: orbit 28s linear infinite; }
.steering { display: grid; width: 190px; height: 190px; place-items: center; border-radius: 50%; background: linear-gradient(145deg,#1c4041,#0a1e1f); box-shadow: 0 30px 80px rgba(0,0,0,.32), inset 0 0 0 1px rgba(255,255,255,.1); }
.steering svg { width: 130px; fill: none; stroke: #fff; stroke-width: 7; stroke-linecap: round; opacity: .95; }
.float-card { position: absolute; display: grid; min-width: 138px; padding: 14px 18px; border: 1px solid rgba(255,255,255,.12); border-radius: 16px; background: rgba(255,255,255,.1); box-shadow: 0 18px 45px rgba(0,0,0,.17); backdrop-filter: blur(12px); }
.float-card strong { color: #fff; font: 800 1.15rem "Manrope"; }
.float-card small { margin-top: 3px; color: #bacdca; }
.float-card.one { top: 16%; right: 0; }
.float-card.two { bottom: 18%; left: 0; }
@keyframes orbit { to { transform: rotate(360deg); } }

.section-block { padding-block: 74px 84px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 25px; }
.section-heading p { margin: 8px 0 0; color: var(--muted); }
.text-link, .back-link { font-weight: 800; text-decoration: none; }
.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 18px; }
.card-grid.two { grid-template-columns: repeat(2,minmax(0,1fr)); }
.instructor-card { display: flex; min-width: 0; flex-direction: column; overflow: hidden; padding: 20px; }
.profile-line { display: flex; align-items: center; gap: 12px; }
.profile-line p { margin: 4px 0 0; color: var(--muted); font-size: .82rem; }
.avatar, .tiny-avatar, .profile-avatar { display: grid; flex: 0 0 auto; place-items: center; overflow: hidden; border-radius: 50%; background: var(--mint); color: var(--green-dark); font-weight: 800; }
.avatar { width: 49px; height: 49px; }
.tiny-avatar { width: 38px; height: 38px; font-size: .75rem; }
.profile-avatar { width: 104px; height: 104px; font-size: 1.45rem; }
.avatar img, .tiny-avatar img, .profile-avatar img { width: 100%; height: 100%; object-fit: cover; }
.verified { display: inline-grid; width: 18px; height: 18px; place-items: center; border-radius: 50%; background: var(--green); color: #fff; font-size: .65rem; vertical-align: middle; }
.verified-label { color: var(--green); font-size: .78rem; font-weight: 800; }
.vehicle-cover { width: calc(100% + 40px); height: 170px; margin: 18px -20px 15px; object-fit: cover; }
.rating-line { display: flex; align-items: center; gap: 6px; margin-top: 14px; color: var(--muted); font-size: .82rem; }
.rating-line strong { color: var(--ink); }
.stars { color: var(--amber); letter-spacing: 1px; }
.bio-clamp { min-height: 50px; margin: 12px 0; color: var(--muted); display: -webkit-box; overflow: hidden; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.tag-row { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { padding: 7px 9px; border-radius: 999px; background: #f1f5f2; color: #405454; font-size: .72rem; font-weight: 700; }
.card-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 18px; }
.price { font: 800 1.25rem "Manrope"; }
.card-footer small { color: var(--muted); }
.empty { padding: 48px 28px; text-align: center; }
.empty p { color: var(--muted); }
.empty.compact { padding: 20px; }
.how-section { padding: 72px 0; background: #edf3ef; }
.steps { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.steps > div { padding: 25px; border-top: 1px solid #bccbc5; }
.steps span { color: var(--green); font: 800 2rem "Manrope"; }
.steps h3 { margin-top: 20px; }
.steps p { margin-bottom: 0; color: var(--muted); }

.page-head, .dashboard-head { padding-block: 56px 30px; }
.page-head > p, .dashboard-head > p { max-width: 740px; color: var(--muted); font-size: 1.02rem; }
.page-head h1, .dashboard-head h1 { font-size: clamp(2.3rem,5vw,4rem); }
.search-layout { display: grid; grid-template-columns: 250px 1fr; align-items: start; gap: 24px; padding-bottom: 80px; }
.filter-card { position: sticky; top: 96px; padding: 20px; }
.filter-card form, .auth-card form, .form-card form, .booking-card form { display: grid; gap: 15px; }
label { display: grid; gap: 7px; color: var(--ink); font-size: .82rem; font-weight: 800; }
input, select, textarea { width: 100%; min-height: 47px; padding: 10px 12px; border: 1px solid #ccd6d2; border-radius: 10px; background: #fff; color: var(--ink); }
textarea { min-height: 100px; resize: vertical; }
label small { color: var(--muted); font-size: .7rem; font-weight: 500; }
.clear-link { text-align: center; font-size: .82rem; font-weight: 700; }
.results-head { margin-bottom: 16px; }
.results-head h2 { font-size: 1.1rem; }

.profile-page { padding-block: 30px 80px; }
.back-link { display: inline-block; margin-bottom: 20px; }
.profile-grid { display: grid; grid-template-columns: 1fr 360px; align-items: start; gap: 24px; }
.profile-main { display: grid; gap: 17px; }
.profile-hero { display: flex; align-items: center; gap: 22px; padding: 27px; }
.profile-hero h1 { margin-top: 6px; font-size: 2.3rem; }
.profile-hero p { margin: 7px 0; color: var(--muted); }
.content-card { padding: 27px; }
.content-card > p { color: var(--muted); }
.vehicle-detail { display: grid; grid-template-columns: 230px 1fr; gap: 22px; margin-top: 18px; }
.vehicle-detail img { width: 100%; height: 155px; border-radius: 15px; object-fit: cover; }
.vehicle-detail p { color: var(--muted); }
.reviews { display: grid; gap: 0; margin-top: 12px; }
.reviews article { display: flex; gap: 12px; padding: 17px 0; border-bottom: 1px solid var(--line); }
.reviews article:last-child { border: 0; }
.reviews strong { margin-right: 8px; }
.reviews p { margin: 5px 0 0; color: var(--muted); }
.booking-card { position: sticky; top: 98px; padding: 24px; }
.booking-price { display: flex; align-items: baseline; gap: 6px; margin-bottom: 20px; }
.booking-price strong { font: 800 1.8rem "Manrope"; }
.booking-price span { color: var(--muted); }
.booking-card h2 { margin-bottom: 15px; font-size: 1.25rem; }
.slot-list { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; margin-bottom: 6px; }
.slot-option input { position: absolute; opacity: 0; pointer-events: none; }
.slot-option span { display: grid; padding: 10px 5px; border: 1px solid var(--line); border-radius: 10px; text-align: center; color: var(--muted); font-size: .8rem; }
.slot-option strong { color: var(--ink); font-size: .72rem; }
.slot-option input:checked + span { border-color: var(--green); background: var(--mint); color: var(--green-dark); box-shadow: 0 0 0 1px var(--green); }

.auth-shell { display: grid; min-height: calc(100vh - 76px); grid-template-columns: 1fr 1fr; background: var(--deep); }
.auth-copy { display: flex; max-width: 600px; flex-direction: column; justify-content: center; padding: 8vw; }
.auth-copy h1 { color: #fff; }
.auth-copy p { color: #bfd0cd; font-size: 1.05rem; }
.auth-card { align-self: center; width: min(600px, calc(100% - 7vw)); margin: 48px auto; padding: clamp(25px,5vw,44px); box-shadow: 0 25px 80px rgba(0,0,0,.25); }
.auth-card > p { color: var(--muted); }
.form-foot { text-align: center; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.form-grid .wide { grid-column: 1 / -1; }
.role-choice { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0; padding: 0; border: 0; }
.role-choice legend { grid-column: 1/-1; margin-bottom: 7px; font-size: .82rem; font-weight: 800; }
.role-choice input { position: absolute; opacity: 0; }
.role-choice label > span { display: grid; padding: 14px; border: 1px solid var(--line); border-radius: 12px; }
.role-choice small { margin-top: 2px; color: var(--muted); }
.role-choice input:checked + span { border-color: var(--green); background: var(--mint); box-shadow: 0 0 0 1px var(--green); }
.checkbox { display: flex; grid-column: 1/-1; align-items: flex-start; gap: 9px; font-weight: 500; }
.checkbox input { width: 18px; min-height: 18px; margin-top: 2px; }

.dashboard-grid { display: grid; grid-template-columns: 320px 1fr; align-items: start; gap: 20px; padding-bottom: 80px; }
.dashboard-grid.instructor { grid-template-columns: repeat(2,1fr); padding-top: 22px; }
.action-card { display: flex; min-height: 145px; align-items: center; gap: 16px; padding: 23px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; color: var(--ink); text-decoration: none; box-shadow: var(--shadow-sm); }
.action-card > span { display: grid; width: 48px; height: 48px; flex: 0 0 auto; place-items: center; border-radius: 15px; background: var(--mint); color: var(--green); font-weight: 800; }
.action-card p { margin: 5px 0 0; color: var(--muted); }
.action-card b { margin-left: auto; font-size: 1.3rem; }
.action-card.primary, .action-card.dark { border: 0; background: var(--deep); color: #fff; }
.action-card.primary h2, .action-card.dark h2 { color: #fff; }
.action-card.primary p, .action-card.dark p { color: #b8cbc8; }
.panel { padding: 25px; }
.panel.wide { min-height: 230px; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 16px; }
.panel-head p { margin: 4px 0 0; color: var(--muted); }
.lesson-list { display: grid; }
.lesson-row { display: flex; align-items: center; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.lesson-row:last-child { border: 0; }
.lesson-row > div { display: grid; }
.lesson-row span { color: var(--muted); font-size: .8rem; }
.lesson-row .status { margin-left: auto; }
.stats-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 14px; }
.stat-card { display: grid; padding: 20px; }
.stat-card span { color: var(--muted); font-size: .8rem; font-weight: 700; }
.stat-card strong { margin-top: 6px; color: var(--deep); font: 800 2rem "Manrope"; }
.notice { padding: 14px 16px; border: 1px solid #bcd7cf; border-radius: 12px; background: #edf8f4; color: #275c52; line-height: 1.5; }
.notice-warning { border-color: #ead29d; background: var(--amber-soft); color: #735000; }
.notice-success { border-color: #acd9c9; background: #e9f8f1; color: #075c46; }
.form-card { padding: clamp(22px,4vw,34px); margin-bottom: 80px; }
.photo-editor { display: flex; align-items: center; gap: 22px; margin-bottom: 28px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.form-actions { display: flex; justify-content: flex-end; margin-top: 22px; }
.vehicle-preview { width: 100%; max-height: 330px; margin-bottom: 24px; border-radius: 17px; object-fit: cover; }

.agenda-grid { display: grid; grid-template-columns: 360px 1fr; align-items: start; gap: 20px; padding-bottom: 80px; }
.agenda-grid .form-card { margin: 0; }
.subhead { margin: 28px 0 10px; }
.slot-admin-list { display: grid; }
.slot-admin-list > div { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.slot-admin-list span { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.icon-button { display: grid; width: 32px; height: 32px; place-items: center; border: 1px solid #ebcaca; border-radius: 9px; background: #fff4f4; color: var(--danger); font-size: 1.2rem; }
.booking-admin-list { display: grid; }
.booking-admin-list article { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 13px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.booking-admin-list article > div:nth-child(2) { display: grid; }
.booking-admin-list span, .booking-admin-list small { color: var(--muted); }
.booking-actions { display: grid; justify-items: end; gap: 8px; }
.booking-actions form { display: flex; gap: 6px; }

.status { display: inline-flex; width: max-content; align-items: center; padding: 6px 9px; border-radius: 999px; background: #eef1ef; color: #526361; font-size: .7rem; font-weight: 800; white-space: nowrap; }
.status-active, .status-approved, .status-confirmed, .status-completed, .status-trialing { background: var(--mint); color: var(--green-dark); }
.status-pending, .status-requested, .status-on_hold { background: var(--amber-soft); color: #765000; }
.status-rejected, .status-cancelled, .status-expired, .status-past_due { background: #fff0f0; color: var(--danger); }
.history-list > article { padding: 19px 0; border-bottom: 1px solid var(--line); }
.history-list > article:last-child { border: 0; }
.history-main { display: flex; align-items: center; gap: 13px; }
.history-main > div { display: grid; }
.history-main span, .history-main small { color: var(--muted); }
.history-main .status { margin-left: auto; color: inherit; }
.review-form { display: grid; grid-template-columns: 155px 1fr auto; align-items: end; gap: 9px; margin: 14px 0 0 50px; padding: 13px; border-radius: 12px; background: #f4f7f5; }
.reviewed { display: inline-block; margin: 10px 0 0 50px; color: var(--green); font-size: .78rem; font-weight: 800; }

.subscription-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 22px; padding-bottom: 80px; }
.plan-card { overflow: hidden; padding: 32px; border-radius: var(--radius); background: var(--deep); color: #fff; box-shadow: var(--shadow); }
.plan-card h2 { margin: 14px 0; color: #fff; }
.plan-badge { padding: 7px 10px; border-radius: 999px; background: rgba(239,177,58,.18); color: #efc66f; font-size: .72rem; font-weight: 800; }
.plan-price { margin: 20px 0; color: var(--amber); font: 800 2.5rem "Manrope"; }
.plan-price small { color: #b7c8c5; font: 500 .9rem "DM Sans"; }
.plan-card ul { display: grid; gap: 11px; margin: 25px 0; padding: 0; list-style: none; }
.plan-card li::before { content: "✓"; margin-right: 9px; color: var(--amber); font-weight: 800; }
.summary-list { margin: 18px 0 26px; }
.summary-list > div { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 15px 0; border-bottom: 1px solid var(--line); }
.summary-list dt { color: var(--muted); }
.summary-list dd { margin: 0; font-weight: 800; text-align: right; }

.tabs { display: flex; gap: 5px; margin-top: 28px; padding: 5px; border: 1px solid var(--line); border-radius: 13px; background: #fff; overflow-x: auto; }
.tabs a { padding: 10px 13px; border-radius: 9px; color: var(--muted); font-size: .8rem; font-weight: 800; text-decoration: none; white-space: nowrap; }
.tabs a.active { background: var(--deep); color: #fff; }
.admin-content { padding-bottom: 80px; }
.admin-content > .stats-grid { margin-bottom: 20px; }
.admin-list { display: grid; gap: 10px; }
.admin-row { display: flex; align-items: center; gap: 14px; padding: 18px; }
.admin-row-main { min-width: 0; flex: 1; }
.admin-row-main p { margin: 4px 0 0; color: var(--muted); font-size: .82rem; }
.admin-actions { display: flex; gap: 6px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 14px 15px; border-bottom: 1px solid var(--line); text-align: left; }
th { background: #f3f6f4; color: var(--muted); font-size: .72rem; text-transform: uppercase; }
td { font-size: .86rem; }
td strong, td small { display: block; }
td small { margin-top: 3px; color: var(--muted); }

.legal-page { max-width: 800px; padding-block: 60px 80px; }
.legal-page h1 { margin-bottom: 8px; }
.legal-page h2 { margin-top: 35px; font-size: 1.35rem; }
.legal-page p { color: #455554; }
.legal-date { color: var(--muted); }
.setup-screen { display: grid; min-height: 70vh; place-items: center; padding-block: 50px; }
.setup-card, .error-card { max-width: 760px; padding: clamp(27px,5vw,48px); }
.setup-card p { color: var(--muted); }

.footer { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 45px; padding: 50px 6vw 22px; border-top: 1px solid var(--line); background: #f3f5f1; }
.footer > div { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.footer p, .footer a { margin: 0; color: var(--muted); font-size: .84rem; text-decoration: none; }
.footer-brand strong { color: var(--deep); }
.footer-bottom { grid-column: 1/-1; padding-top: 25px; border-top: 1px solid var(--line); }

@media (max-width: 980px) {
  .menu-toggle { display: block; }
  .main-nav { position: absolute; top: 68px; right: 4vw; display: none; width: min(330px,92vw); flex-direction: column; align-items: stretch; gap: 3px; padding: 15px; border: 1px solid var(--line); border-radius: 15px; background: #fff; box-shadow: var(--shadow); }
  .main-nav.open { display: flex; }
  .main-nav > a, .main-nav .link-button { padding: 10px; text-align: left; }
  .nav-login { border: 0; }
  .hero-inner { grid-template-columns: 1fr; min-height: auto; }
  .hero-orbit { display: none; }
  .card-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .profile-grid { grid-template-columns: 1fr; }
  .booking-card { position: static; }
  .agenda-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2,1fr); }
  .admin-row { align-items: flex-start; flex-wrap: wrap; }
  .admin-actions { width: 100%; padding-left: 63px; }
}

@media (max-width: 720px) {
  .topbar { min-height: 68px; }
  .brand small { display: none; }
  .hero-inner { padding: 60px 0; }
  .hero h1 { font-size: clamp(2.8rem,15vw,4.4rem); }
  .hero-search { grid-template-columns: 1fr; }
  .hero-search .btn { min-height: 52px; }
  .trust-row { display: grid; gap: 7px; }
  .section-heading { align-items: flex-start; flex-direction: column; }
  .card-grid, .card-grid.two, .steps { grid-template-columns: 1fr; }
  .search-layout { grid-template-columns: 1fr; }
  .filter-card { position: static; }
  .profile-hero { align-items: flex-start; flex-direction: column; }
  .vehicle-detail { grid-template-columns: 1fr; }
  .auth-shell { grid-template-columns: 1fr; }
  .auth-copy { padding: 55px 6vw 20px; }
  .auth-card { width: 92vw; margin: 20px auto 50px; }
  .form-grid, .role-choice { grid-template-columns: 1fr; }
  .dashboard-grid, .dashboard-grid.instructor, .subscription-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .booking-admin-list article { grid-template-columns: auto 1fr; }
  .booking-actions { grid-column: 1/-1; justify-items: stretch; }
  .booking-actions form { flex-wrap: wrap; }
  .history-main { align-items: flex-start; flex-wrap: wrap; }
  .history-main .status { margin-left: 50px; }
  .review-form { grid-template-columns: 1fr; margin-left: 0; }
  .admin-actions { padding-left: 0; }
  .footer { grid-template-columns: 1fr 1fr; }
  .footer > div:first-child { grid-column: 1/-1; }
}

@media (max-width: 440px) {
  .topbar { padding-inline: 4vw; }
  .brand strong { font-size: 1.02rem; }
  .brand-mark { width: 36px; height: 36px; }
  .page-head, .dashboard-head { padding-top: 40px; }
  .stats-grid { grid-template-columns: 1fr; }
  .photo-editor { align-items: flex-start; flex-direction: column; }
  .slot-list { grid-template-columns: 1fr 1fr; }
  .admin-row .status { margin-left: 52px; }
  .footer { grid-template-columns: 1fr; }
  .footer > div:first-child { grid-column: auto; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}
