:root {
    --ink: #0b1720;
    --muted: #66737f;
    --line: #d9e0e6;
    --panel: #ffffff;
    --bg: #f4f8f5;
    --green: #119447;
    --green-dark: #057136;
    --yellow: #ffd429;
    --red: #bf3d30;
    --blue: #246bfe;
    --amber: #b36b00;
}

* { box-sizing: border-box; }
body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    color: var(--ink);
    background:
        radial-gradient(circle at top left, rgba(255, 212, 41, .22), transparent 32rem),
        linear-gradient(180deg, #ffffff 0, var(--bg) 38rem);
}
a { color: var(--blue); text-decoration: none; }
.topbar {
    position: sticky;
    top: 0;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 10px clamp(14px, 3vw, 34px);
    background: rgba(255, 255, 255, .92);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--line);
}
.brand {
    display: inline-flex;
    align-items: center;
    min-width: 150px;
    font-weight: 800;
    color: var(--ink);
}
.brand img {
    width: 150px;
    max-width: 150px;
    height: 50px;
    object-fit: contain;
    object-position: left center;
    display: block;
}
.topbar nav { display: flex; align-items: center; gap: 18px; font-size: 14px; font-weight: 800; }
.topbar nav a { color: var(--ink); }
.topbar nav a[href*="logout"],
.nav-login {
    background: var(--ink);
    color: #fff;
    padding: 10px 14px;
    border-radius: 8px;
}
.nav-login {
    border: 0;
    min-height: auto;
    font: inherit;
    cursor: pointer;
}
.modal-open { overflow: hidden; }
.login-modal {
    position: fixed;
    inset: 0;
    z-index: 20;
    display: grid;
    place-items: center;
    padding: 18px;
    background: rgba(11, 23, 32, .58);
}
.login-modal[hidden] { display: none; }
.login-modal-card {
    position: relative;
    width: min(620px, 100%);
    padding: 22px;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 28px 90px rgba(11, 23, 32, .28);
}
.login-modal-card h2 {
    margin: 0 0 16px;
    font-size: clamp(28px, 4vw, 42px);
}
.modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 50%;
    background: #edf2ef;
    font-size: 22px;
    line-height: 1;
}
.role-choice-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 14px;
}
.role-choice-grid a {
    display: grid;
    gap: 6px;
    min-height: 124px;
    padding: 15px;
    border: 1px solid var(--line);
    border-radius: 10px;
    color: var(--ink);
    background: #f8fbf9;
}
.role-choice-grid a:hover {
    border-color: var(--green);
    box-shadow: 0 14px 34px rgba(17, 148, 71, .12);
}
.role-choice-grid strong { font-size: 18px; }
.role-choice-grid span { color: var(--muted); font-size: 13px; line-height: 1.35; }
.shell { width: min(1180px, 100%); margin: 0 auto; padding: 18px; }
.auth-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(360px, .95fr);
    gap: 22px;
    align-items: stretch;
    min-height: calc(100vh - 92px);
}
.intro {
    padding: clamp(26px, 5vw, 70px);
    background:
        linear-gradient(90deg, rgba(25, 50, 60, .96), rgba(25, 50, 60, .78)),
        url("auto-ad1.png") center right / cover;
    color: #fff;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.intro h1 { max-width: 680px; margin: 0; font-size: clamp(32px, 4.6vw, 56px); line-height: 1.08; letter-spacing: 0; }
.intro p { max-width: 520px; color: #d7e5e9; font-size: 18px; }
.eyebrow { margin: 0 0 10px; color: var(--muted); text-transform: uppercase; font-weight: 800; font-size: 12px; letter-spacing: 0; }
.intro .eyebrow { color: #91d7bf; }
.demo-logins {
    display: grid;
    gap: 5px;
    margin-top: 28px;
    color: #ecf5f4;
    font-size: 14px;
}
.panel {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 18px;
    box-shadow: 0 18px 50px rgba(11, 23, 32, .07);
}
.narrow { width: min(520px, 100%); margin: 26px auto; }
h1, h2 { letter-spacing: 0; }
h1 { margin: 0 0 14px; font-size: clamp(28px, 4vw, 42px); }
h2 { margin: 0 0 16px; font-size: 20px; }
label { display: grid; gap: 7px; margin-bottom: 14px; font-weight: 700; font-size: 14px; }
input, select {
    width: 100%;
    min-height: 44px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 10px 12px;
    font: inherit;
    background: #fff;
}
.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}
button, .primary, .danger {
    border: 0;
    border-radius: 8px;
    padding: 11px 15px;
    font-weight: 800;
    cursor: pointer;
    background: #e8edf2;
    color: var(--ink);
}
button:disabled { opacity: .5; cursor: not-allowed; }
.primary { width: 100%; background: var(--green); color: #fff; }
.primary:hover { background: var(--green-dark); }
.danger { width: 100%; background: var(--red); color: #fff; }
.large { min-height: 64px; font-size: 18px; }
.muted-link, .muted { color: var(--muted); font-size: 14px; }
.alert {
    margin-bottom: 14px;
    padding: 12px 14px;
    border-radius: 8px;
    background: #eef5ff;
    border: 1px solid #cfe0ff;
}
.alert.error { background: #fff1ef; border-color: #ffd3cc; }
.alert.success { background: #eefaf4; border-color: #c7efd9; }
.driver-hero, .split-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}
.driver-hero p, .split-head p { margin: 0; color: var(--muted); }
.status, .badge {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 7px 10px;
    border-radius: 8px;
    font-weight: 800;
    font-size: 13px;
}
.status.active { color: #fff; background: var(--green); }
.status.inactive { color: #fff; background: var(--amber); }
.danger-badge { color: #fff; background: var(--red); }
.metrics {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 16px;
}
.metrics div {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 16px;
}
.metrics strong { display: block; font-size: 24px; }
.metrics span, .list-card span { display: block; margin-top: 4px; color: var(--muted); font-size: 13px; }
.driver-money-panel {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}
.money-card {
    display: grid;
    gap: 6px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 12px 32px rgba(11, 23, 32, .05);
}
.money-card.highlight {
    background: #0b1720;
    border-color: #0b1720;
    color: #fff;
}
.money-card span {
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}
.money-card.highlight span,
.money-card.highlight small { color: #cde8d8; }
.money-card strong {
    font-size: clamp(22px, 3vw, 34px);
    line-height: 1.05;
}
.money-card small {
    color: var(--muted);
    font-size: 12px;
}
.panel-head-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}
.panel-head-row h2 { margin: 0; }
.driver-daily-panel { margin-bottom: 16px; }
.daily-earning-list { display: grid; gap: 8px; }
.daily-earning-row {
    display: grid;
    grid-template-columns: 1.3fr repeat(3, minmax(0, 1fr));
    gap: 10px;
    align-items: center;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #f8fbf9;
}
.daily-earning-row strong { display: block; }
.daily-earning-row span {
    display: block;
    margin-top: 3px;
    color: var(--muted);
    font-size: 12px;
}
.two-col {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 16px;
}
.workflow { margin-bottom: 16px; }
.steps {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
}
.steps span {
    display: grid;
    place-items: center;
    min-height: 44px;
    padding: 8px;
    border-radius: 8px;
    border: 1px solid var(--line);
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
    text-align: center;
}
.steps .done {
    background: #e9f8ef;
    border-color: #bfe8cc;
    color: var(--green);
}
.steps .active-step {
    background: #fff6d8;
    border-color: #f1d66b;
    color: var(--amber);
}
.photo-row { display: flex; gap: 12px; flex-wrap: wrap; }
.photo-row img, .proof-card img {
    width: min(220px, 48%);
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid var(--line);
}
.proof-card {
    display: grid;
    gap: 7px;
    color: var(--ink);
    font-weight: 800;
    font-size: 13px;
}
.proof-card img { width: 220px; max-width: 100%; }
.is-uploading {
    opacity: .72;
    pointer-events: none;
}
.is-uploading:after {
    content: "Uploading image and saving proof. Do not close this page.";
    display: block;
    margin-top: 10px;
    color: var(--amber);
    font-weight: 800;
    font-size: 13px;
}
.stack { display: grid; gap: 10px; }
.list-card {
    display: grid;
    grid-template-columns: 72px 1fr auto;
    gap: 12px;
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 10px;
}
.list-card.no-img { grid-template-columns: 1fr auto; }
.list-card img {
    width: 72px;
    height: 56px;
    border-radius: 6px;
    object-fit: cover;
}
.table-wrap { width: 100%; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 760px; }
th, td { padding: 11px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; font-size: 14px; }
th { color: var(--muted); font-size: 12px; text-transform: uppercase; }
.thumbs { white-space: nowrap; }
.thumbs a { margin-right: 8px; font-weight: 800; }
.inline-form { display: flex; gap: 8px; align-items: center; }
.inline-form input { min-height: 36px; min-width: 160px; }
.inline-form button { min-height: 36px; padding: 7px 10px; }
.inline-form select { min-height: 36px; min-width: 130px; }
.field-request { margin-bottom: 14px; align-items: stretch; }
.landing-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(330px, .9fr);
    gap: clamp(18px, 4vw, 42px);
    align-items: stretch;
    min-height: 650px;
    padding: clamp(26px, 5.5vw, 72px);
    border-radius: 18px;
    color: #fff;
    background:
        linear-gradient(115deg, rgba(6, 20, 27, .98) 0%, rgba(6, 20, 27, .91) 45%, rgba(6, 20, 27, .38) 100%),
        url("auto-ad1.png") center right / cover;
    box-shadow: 0 28px 90px rgba(11, 23, 32, .22);
    overflow: hidden;
    position: relative;
}
.home-nav-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}
.home-nav-card {
    display: grid;
    gap: 8px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fff;
    color: var(--ink);
    box-shadow: 0 16px 44px rgba(11, 23, 32, .07);
}
.home-nav-card strong { font-size: 20px; }
.home-nav-card span { color: var(--muted); line-height: 1.45; }
.home-nav-card:hover {
    transform: translateY(-2px);
    border-color: var(--green);
}
.page-hero {
    padding: clamp(24px, 5vw, 52px);
    border-radius: 18px;
    background: #071721;
    color: #fff;
    box-shadow: 0 22px 60px rgba(11, 23, 32, .15);
}
.page-hero h1 {
    max-width: 820px;
    margin: 0;
    font-size: clamp(36px, 6vw, 68px);
    line-height: .98;
}
.page-hero p {
    max-width: 640px;
    color: #d7e5df;
    font-size: 18px;
    line-height: 1.5;
}
.landing-hero:after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 8px;
    background: linear-gradient(90deg, var(--yellow), var(--green));
}
.hero-copy { display: flex; flex-direction: column; justify-content: center; }
.hero-copy h1 {
    max-width: 860px;
    margin: 0;
    font-size: clamp(42px, 7vw, 84px);
    line-height: .94;
    text-wrap: balance;
}
.hero-copy p { max-width: 650px; color: #e8f1ea; font-size: 19px; line-height: 1.55; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.cta-link, .secondary-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 13px 18px;
    border-radius: 8px;
    font-weight: 800;
}
.secondary-link { color: #fff; border: 1px solid rgba(255,255,255,.35); }
.secondary-link.dark { color: var(--ink); border-color: var(--line); background: #fff; }
.hero-dashboard {
    align-self: center;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}
.hero-dashboard div, .result-grid div {
    padding: 18px;
    border-radius: 14px;
    background: rgba(255,255,255,.94);
    color: var(--ink);
    border: 1px solid rgba(255,255,255,.4);
    box-shadow: 0 16px 44px rgba(11, 23, 32, .12);
}
.hero-dashboard span, .result-grid span { display: block; color: var(--muted); font-size: 13px; }
.hero-dashboard strong, .result-grid strong { display: block; margin-top: 4px; font-size: 30px; }
.landing-section { margin-top: 30px; }
.section-head { margin-bottom: 14px; }
.section-head h2 { font-size: clamp(28px, 4vw, 44px); margin: 0; }
.offer-band {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, .85fr);
    gap: 18px;
    align-items: center;
    padding: clamp(22px, 4vw, 38px);
    background: #071721;
    color: #fff;
    border-radius: 18px;
    border: 1px solid rgba(255,255,255,.08);
    box-shadow: 0 22px 60px rgba(11, 23, 32, .16);
}
.offer-band h2 { font-size: clamp(32px, 5vw, 58px); margin: 0 0 10px; }
.offer-band p { color: #c8d8d0; max-width: 680px; line-height: 1.55; }
.offer-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.offer-card {
    display: grid;
    gap: 8px;
    padding: 18px;
    border-radius: 14px;
    background: #fff;
    color: var(--ink);
}
.offer-card.featured { background: var(--yellow); }
.offer-card span { color: var(--muted); font-weight: 800; text-transform: uppercase; font-size: 12px; }
.offer-card strong { font-size: 32px; }
.offer-card p { color: var(--muted); margin: 0; }
.result-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 14px;
}
.coverage-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 16px;
}
.coverage-map {
    position: relative;
    min-height: 360px;
    border: 1px solid var(--line);
    border-radius: 18px;
    overflow: hidden;
    background:
        linear-gradient(90deg, rgba(19,138,99,.16) 1px, transparent 1px),
        linear-gradient(rgba(19,138,99,.16) 1px, transparent 1px),
        #f7fbf8;
    background-size: 46px 46px;
}
.zone {
    position: absolute;
    display: grid;
    place-items: center;
    min-width: 112px;
    min-height: 74px;
    padding: 10px;
    border-radius: 8px;
    background: #fff;
    border: 2px solid var(--green);
    color: var(--green);
    font-weight: 800;
    box-shadow: 0 16px 28px rgba(19, 138, 99, .14);
}
.zone-a { left: 8%; top: 12%; }
.zone-b { left: 42%; top: 20%; }
.zone-c { left: 24%; top: 56%; }
.zone-d { right: 8%; top: 52%; }
.zone-e { right: 16%; top: 8%; }
.feature-list { display: grid; gap: 10px; }
.feature-list span {
    padding: 11px 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #f8fafb;
    font-weight: 700;
}
.feature-cards, .testimonial-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}
.testimonial-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.feature-cards p, .testimonial-grid p, .case-band p { color: var(--muted); line-height: 1.5; }
.case-band {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, .8fr);
    gap: 16px;
    align-items: center;
    padding: 22px;
    border-radius: 18px;
    background: #fff7d8;
    border: 1px solid #efd477;
}
.logo-strip {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 12px;
}
.logo-strip span {
    display: grid;
    place-items: center;
    min-height: 58px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    font-weight: 800;
    color: var(--muted);
}
.faq details {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 14px 16px;
    margin-bottom: 10px;
}
.faq summary { cursor: pointer; font-weight: 800; }
.faq p { color: var(--muted); margin-bottom: 0; }
.site-footer {
    margin-top: 28px;
    padding: 28px clamp(18px, 4vw, 42px);
    background: #071721;
    color: #eaf3ee;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.25fr 1fr 1fr 1fr;
    gap: 20px;
    width: min(1180px, 100%);
    margin: 0 auto;
}
.site-footer strong {
    display: block;
    margin-bottom: 8px;
    color: #fff;
}
.site-footer p {
    margin: 0;
    color: #bfd0c8;
    line-height: 1.55;
    font-size: 14px;
}
.site-footer a {
    color: #8ee3aa;
    font-weight: 800;
}
.pagination {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 12px;
    flex-wrap: wrap;
}
.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 8px 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    font-weight: 800;
    font-size: 13px;
}
.pagination span {
    color: var(--muted);
    background: #f8fbf9;
}
.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    width: min(1180px, 100%);
    margin: 22px auto 0;
    padding-top: 16px;
    border-top: 1px solid rgba(255,255,255,.14);
    color: #9db2a8;
    font-size: 13px;
}

@media (max-width: 760px) {
    .shell { padding: 12px; }
    .auth-grid, .two-col, .metrics, .driver-money-panel, .daily-earning-row, .form-grid, .steps, .landing-hero, .hero-dashboard, .result-grid, .coverage-grid, .feature-cards, .testimonial-grid, .case-band, .logo-strip, .offer-band, .offer-cards, .home-nav-grid, .role-choice-grid, .footer-grid { grid-template-columns: 1fr; }
    .landing-hero { min-height: auto; padding: 22px; }
    .hero-copy h1 { font-size: clamp(38px, 13vw, 58px); }
    .topbar { align-items: center; }
    .brand img { width: 118px !important; max-width: 118px !important; height: 40px !important; }
    .topbar nav { gap: 10px; font-size: 12px; }
    .topbar nav a:not(:last-child) { display: none; }
    .login-modal-card { padding: 18px; }
    .footer-bottom { flex-direction: column; }
    .coverage-grid { display: grid; }
    .coverage-map { min-height: 420px; }
    .intro { min-height: 42vh; }
    .driver-hero, .split-head { align-items: flex-start; flex-direction: column; }
    .panel-head-row { align-items: flex-start; flex-direction: column; }
    .topbar { align-items: flex-start; }
    .topbar nav { flex-direction: column; align-items: flex-end; gap: 4px; }
    .pagination { justify-content: flex-start; }
    .list-card, .list-card.no-img { grid-template-columns: 1fr; }
    .photo-row img, .proof-card, .proof-card img { width: 100%; }
    .inline-form { align-items: stretch; flex-direction: column; }
    .inline-form input, .inline-form select { min-width: 100%; }
}
