:root {
    --ink: #17202a;
    --muted: #66717d;
    --line: #e2e7eb;
    --surface: #ffffff;
    --canvas: #f5f7f8;
    --blue: #1677ff;
    --blue-dark: #0e55bf;
    --green: #0a9f68;
    --red: #c63f4f;
    --yellow: #e7a600;
    --shadow: 0 18px 44px rgba(20, 35, 50, .08);
}

* { box-sizing: border-box; }

body {
    margin: 0;
    background: var(--canvas);
    color: var(--ink);
    font-family: "Manrope", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.5;
}

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

.topbar {
    align-items: center;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    display: flex;
    justify-content: space-between;
    padding: 18px clamp(20px, 5vw, 72px);
}

.brand { font-family: "Manrope", sans-serif; font-size: 1.18rem; font-weight: 800; letter-spacing: -.055em; }
.brand span { color: var(--blue); }
.topnav a { color: var(--muted); font-size: .92rem; font-weight: 700; }

.page-shell { margin: 0 auto; max-width: 1240px; padding: 44px 24px 72px; }

.hero-grid { align-items: center; display: grid; gap: 54px; grid-template-columns: 1.05fr .95fr; min-height: 610px; }
.hero-copy { max-width: 660px; }
.eyebrow { color: var(--blue); font-size: .76rem; font-weight: 850; letter-spacing: .16em; margin: 0 0 12px; text-transform: uppercase; }
h1, h2, h3 { font-family: "Manrope", sans-serif; }
h1 { font-size: clamp(2.4rem, 5vw, 5.5rem); font-weight: 800; letter-spacing: -.085em; line-height: .98; margin: 0 0 22px; }
h2 { font-weight: 800; letter-spacing: -.06em; line-height: 1.1; margin: 0 0 10px; }
h3 { font-weight: 800; letter-spacing: -.035em; }
.lead { color: var(--muted); font-size: clamp(1.05rem, 2vw, 1.28rem); max-width: 590px; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 34px 0 18px; }
.button { border: 0; border-radius: 12px; cursor: pointer; display: inline-flex; font: inherit; font-weight: 800; justify-content: center; padding: 14px 20px; }
.button-primary { background: var(--blue); color: #fff; }
.button-primary:hover { background: var(--blue-dark); }
.button-secondary { background: #eaf2ff; color: var(--blue-dark); }
.legal-links { display: flex; flex-wrap: wrap; gap: 18px; }
.legal-links a, .form-note a { color: var(--blue-dark); font-size: .88rem; font-weight: 700; text-decoration: underline; }

.hero-panel { background: var(--surface); border: 1px solid var(--line); border-radius: 26px; box-shadow: var(--shadow); padding: 34px; }
.route-line { align-items: center; display: grid; gap: 14px; grid-template-columns: auto 1fr auto; margin-bottom: 34px; }
.route-line > span:nth-child(2) { background: linear-gradient(90deg, var(--blue), #b9d5ff); height: 4px; }
.vehicle-dot, .route-line strong { align-items: center; border-radius: 50%; display: inline-flex; height: 56px; justify-content: center; width: 56px; }
.vehicle-dot { background: #eaf2ff; color: var(--blue); font-size: .74rem; font-weight: 900; }
.route-line strong { background: var(--ink); color: #fff; font-size: 1.3rem; }
.panel-label { color: var(--muted); font-size: .84rem; font-weight: 800; text-transform: uppercase; }
.benefit-list { display: grid; gap: 18px; margin-top: 26px; }
.benefit-list div { border-top: 1px solid var(--line); padding-top: 16px; }
.benefit-list b, .benefit-list span { display: block; }
.benefit-list span { color: var(--muted); font-size: .93rem; margin-top: 3px; }

.section-block { border-top: 1px solid var(--line); padding-top: 44px; }
.steps-grid { display: grid; gap: 24px; grid-template-columns: repeat(4, 1fr); margin-top: 26px; }
.steps-grid div { border-top: 3px solid var(--blue); padding-top: 16px; }
.steps-grid span { color: var(--blue); font-size: .8rem; font-weight: 900; }
.steps-grid p, .muted { color: var(--muted); }

.auth-card { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow); margin: 35px auto; max-width: 500px; padding: 38px; }
.auth-card h1 { font-size: clamp(2.2rem, 5vw, 3.7rem); }
.form-stack { display: grid; gap: 17px; margin-top: 28px; }
label { display: grid; font-size: .88rem; font-weight: 800; gap: 7px; }
input, select, textarea { background: #fff; border: 1px solid #cfd8df; border-radius: 10px; color: var(--ink); font: inherit; padding: 12px 13px; width: 100%; }
input:focus, select:focus, textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(22, 119, 255, .13); outline: 0; }
.alert { border-radius: 10px; font-size: .92rem; margin-top: 18px; padding: 12px 14px; }
.alert-error { background: #fff0f1; color: var(--red); }
.form-note { color: var(--muted); font-size: .9rem; margin-top: 22px; }

.auth-modern { max-width: 520px; padding: 34px; }
.auth-modern.register-card { max-width: 680px; }
.auth-heading h1 { font-size: clamp(2.15rem, 5vw, 3.55rem); margin-bottom: 12px; }
.auth-heading .muted { margin: 0; }
.auth-form { gap: 18px; margin-top: 26px; }
.auth-field { gap: 8px; }
.auth-label { align-items: center; color: var(--ink); display: flex; font-size: .78rem; font-weight: 850; gap: 7px; letter-spacing: .02em; text-transform: uppercase; }
.auth-field-icon { align-items: center; color: var(--blue); display: inline-flex; font-size: .84rem; height: 17px; justify-content: center; width: 17px; }
.auth-field input, .auth-field select, .auth-field textarea { background: #f8f9fb; border-color: #d6dce2; border-radius: 10px; min-height: 48px; padding: 12px 14px; }
.auth-field input::placeholder { color: #a5afb9; }
.auth-field input:focus, .auth-field select:focus, .auth-field textarea:focus { background: #fff; border-color: var(--blue); }
.auth-password-control { display: block; position: relative; }
.auth-password-control input { padding-right: 54px !important; }
.auth-password-control .password-toggle { align-items: center; background: transparent; border-radius: 50%; color: #8995a2; display: inline-flex; height: 38px; padding: 0; right: 7px; top: 50%; transform: translateY(-50%); width: 38px; }
.auth-password-control .password-toggle:hover, .auth-password-control .password-toggle:focus { background: #eaf2ff; color: var(--blue-dark); }
.password-eye { border: 1.7px solid currentColor; border-radius: 80% 20%; display: block; height: 13px; position: relative; transform: rotate(45deg); width: 18px; }
.password-eye::after { background: currentColor; border-radius: 50%; content: ''; height: 4px; left: 5px; position: absolute; top: 3px; width: 4px; }
.auth-options { align-items: center; display: flex; justify-content: space-between; min-height: 23px; }
.remember-option { align-items: center; color: #5e6975; display: inline-flex; flex-direction: row; font-size: .83rem; font-weight: 500; gap: 8px; }
.remember-option input { accent-color: var(--blue); height: 16px; margin: 0; width: 16px; }
.auth-submit { min-height: 48px; width: 100%; }
.auth-footer-note { text-align: center; }
.auth-terms { align-items: flex-start; color: #66717d; display: flex; flex-direction: row; font-size: .8rem; font-weight: 500; gap: 9px; line-height: 1.45; }
.auth-terms input { flex: 0 0 auto; margin: 3px 0 0; width: 16px; }
.auth-terms a { color: var(--blue-dark); font-weight: 750; }
.auth-location-picker { border: 1px solid #dce3e9; border-radius: 14px; padding: 18px; }
.auth-location-picker .location-picker-heading { margin-bottom: 14px; }
.auth-modern .field-help { color: var(--muted); font-size: .76rem; font-weight: 500; line-height: 1.35; }
.sr-only { height: 1px; margin: -1px; overflow: hidden; position: absolute; width: 1px; clip: rect(0, 0, 0, 0); }
@media (max-width: 560px) { .auth-modern, .auth-modern.register-card { padding: 24px 20px; } .auth-location-picker { padding: 14px; } }

.dashboard-header { align-items: end; display: flex; justify-content: space-between; margin-bottom: 32px; }
.dashboard-header h1 { font-size: clamp(2.2rem, 5vw, 4.3rem); }
.status-pill { border-radius: 999px; font-size: .78rem; font-weight: 900; padding: 8px 12px; }
.status-success { background: #e5f8f0; color: var(--green); }
.status-neutral { background: #eaf2ff; color: var(--blue-dark); }

.dashboard-grid, .admin-menu-grid { display: grid; gap: 18px; grid-template-columns: repeat(3, 1fr); }
.feature-card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; min-height: 170px; padding: 24px; transition: transform .18s ease, box-shadow .18s ease; }
.feature-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.feature-card p { color: var(--muted); margin: 0; }
.feature-card-link { color: var(--blue-dark); display: inline-block; font-size: .82rem; font-weight: 900; margin-top: 16px; }
.icon { color: var(--blue); display: block; font-size: 1.25rem; font-weight: 900; margin-bottom: 24px; }

.footer { border-top: 1px solid var(--line); color: var(--muted); display: flex; font-size: .78rem; gap: 20px; justify-content: space-between; padding: 20px clamp(20px, 5vw, 72px); }
.error-card { margin: 70px auto; max-width: 640px; text-align: center; }

@media (max-width: 850px) {
    .hero-grid { grid-template-columns: 1fr; }
    .steps-grid { grid-template-columns: repeat(2, 1fr); }
    .dashboard-grid, .admin-menu-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
    .page-shell { padding: 28px 16px 52px; }
    .hero-actions, .footer, .dashboard-header { align-items: stretch; flex-direction: column; }
    .hero-panel, .auth-card { padding: 24px; }
    .steps-grid, .dashboard-grid, .admin-menu-grid { grid-template-columns: 1fr; }
    .dashboard-header { gap: 16px; }
}

.back-link { color: var(--blue-dark); display: inline-block; font-size: .86rem; font-weight: 800; margin-bottom: 24px; }
.alert-success { background: #e5f8f0; color: var(--green); }
.button-danger { background: #fff0f1; color: var(--red); }
.offer-list, .delivery-list { display: grid; gap: 16px; }
.offer-row, .delivery-row { align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; display: grid; gap: 22px; grid-template-columns: minmax(0, 1fr) auto auto; padding: 22px; }
.offer-destination { align-items: flex-start; display: flex; gap: 10px; margin-top: 8px; }
.offer-destination strong { color: var(--ink); font-size: .95rem; line-height: 1.45; }
.destination-pin { align-items: center; background: var(--green); border-radius: 50%; color: #fff; display: inline-flex; flex: 0 0 27px; font-size: .7rem; font-weight: 900; height: 27px; justify-content: center; width: 27px; }
.destination-search { color: var(--muted); display: block; font-size: .72rem; margin: 6px 0 0 37px; }
.offer-topline { align-items: center; display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 12px; }
.offer-row h2, .delivery-row h2 { font-size: 1.08rem; margin-bottom: 4px; }
.offer-meta { display: grid; gap: 4px; text-align: right; }
.offer-meta span { color: var(--muted); font-size: .76rem; font-weight: 800; text-transform: uppercase; }
.offer-meta strong, .delivery-value strong { color: var(--green); font-size: 1.15rem; }
.offer-action, .status-actions { display: grid; gap: 9px; }
.status-actions .button { font-size: .83rem; padding: 11px 14px; white-space: nowrap; }
.empty-state, .module-notice { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 32px; }
.empty-state p, .module-notice p { color: var(--muted); }
.empty-state .button { margin-top: 12px; }
.module-header { margin-bottom: 28px; }
.module-header h1 { font-size: clamp(2.3rem, 5vw, 4.6rem); }
.module-notice { border-top: 3px solid var(--blue); max-width: 840px; }
.module-notice strong { font-size: 1.12rem; }

@media (max-width: 780px) {
    .offer-row, .delivery-row { align-items: stretch; grid-template-columns: 1fr; }
    .offer-meta { text-align: left; }
    .offer-action .button, .status-actions .button { width: 100%; }
}

.map-page-header { align-items: end; display: flex; justify-content: space-between; margin-bottom: 26px; }
.active-map-header { margin-bottom: 18px; }
.location-permission-control { align-items: flex-end; display: flex; flex-direction: column; gap: 8px; max-width: 260px; }
.location-button { font-size: .82rem; padding: 11px 14px; }
.location-help { color: var(--muted); font-size: .72rem; line-height: 1.35; text-align: right; }
.location-button[hidden] { display: none; }
.active-delivery-card { background: linear-gradient(135deg, #10263f 0%, #1b4b76 100%); border-radius: 20px; box-shadow: var(--shadow); color: #fff; margin-bottom: 18px; padding: 20px 22px; }
.active-delivery-heading { align-items: center; display: flex; justify-content: space-between; gap: 16px; }
.active-delivery-heading h2 { color: #fff; font-size: 1.35rem; margin: 3px 0 0; }
.active-delivery-heading .panel-label { color: #b9d5ef; }
.active-route-grid { align-items: center; display: grid; gap: 14px; grid-template-columns: 1fr auto 1fr; margin-top: 18px; }
.active-route-point { align-items: flex-start; display: flex; gap: 10px; min-width: 0; }
.active-route-point > div { min-width: 0; }
.active-route-point small, .active-route-point strong, .active-route-point span { display: block; }
.active-route-point small { color: #b9d5ef; font-size: .7rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.destination-lock { background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.24); border-radius: 999px; color: #d9e8f6; font-size: .62rem; font-style: normal; letter-spacing: .02em; margin-left: 5px; padding: 3px 7px; text-transform: none; }
.active-route-point strong { color: #fff; font-size: .92rem; margin-top: 3px; overflow-wrap: anywhere; }
.active-route-point span { color: #d9e8f6; font-size: .78rem; line-height: 1.4; margin-top: 4px; }
.active-route-arrow { color: #8ec1ff; font-size: 1.5rem; font-weight: 900; }
.route-metrics { border-top: 1px solid rgba(255,255,255,.16); display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 18px; padding-top: 16px; }
.route-metrics > div { background: rgba(255,255,255,.1); border-radius: 12px; padding: 11px 13px; }
.route-metrics small, .route-metrics strong { display: block; }
.route-metrics small { color: #b9d5ef; font-size: .7rem; text-transform: uppercase; }
.route-metrics strong { color: #fff; font-size: 1.05rem; margin-top: 3px; }
.legend-store { background: #17202a; }
.location-confirmed { color: #8ff0c3 !important; font-weight: 800; }
.map-route-status { color: var(--muted); font-size: .82rem; min-height: 0; padding: 11px 16px; }
.map-route-status:empty { display: none; }
.map-route-status.status-success { background: #e5f8f0; color: var(--green); }
.map-route-status.status-warning { background: #fff6d8; color: #8b6200; }
.map-page-header h1 { font-size: clamp(2.3rem, 5vw, 4.4rem); }
.map-shell { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; overflow: hidden; }
.map-canvas { min-height: 560px; width: 100%; }
.map-unconfigured { min-height: 360px; padding: 58px; }
.map-unconfigured p { color: var(--muted); max-width: 650px; }
.map-unconfigured code { background: #eef2f5; border-radius: 5px; padding: 2px 5px; }
.map-legend { align-items: center; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 24px; padding: 14px 18px; }
.legend-marker { align-items: center; border-radius: 50%; color: #fff; display: inline-flex; font-size: .68rem; font-weight: 900; height: 28px; justify-content: center; margin-right: 6px; width: 28px; }
.legend-vehicle { background: var(--blue); }
.legend-client { background: var(--ink); }
.status-warning { background: #fff6d8; color: #8b6200; }
@media (max-width: 650px) {
    .map-page-header { align-items: stretch; flex-direction: column; gap: 16px; }
    .active-delivery-card { border-radius: 16px; padding: 18px; }
    .location-permission-control { align-items: stretch; max-width: none; }
    .location-help { text-align: left; }
    .location-button { width: 100%; }
    .active-route-grid { align-items: stretch; grid-template-columns: 1fr; gap: 10px; }
    .active-route-arrow { font-size: 1.1rem; line-height: 1; padding-left: 34px; transform: rotate(90deg); }
    .route-metrics { grid-template-columns: 1fr; }
    .map-canvas { min-height: 430px; }
    .map-unconfigured { min-height: 320px; padding: 30px 22px; }
}

.tariff-layout { align-items: start; display: grid; gap: 18px; grid-template-columns: minmax(0, 1fr) 360px; margin-bottom: 34px; }
.module-form { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; display: grid; gap: 15px; padding: 24px; }
.module-form h2 { margin-bottom: 2px; }
.table-section { margin-top: 30px; }
.data-table-wrap { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; overflow-x: auto; }
.data-table { border-collapse: collapse; min-width: 520px; width: 100%; }
.data-table th, .data-table td { border-bottom: 1px solid var(--line); padding: 14px 16px; text-align: left; }
.data-table th { color: var(--muted); font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; }
.data-table tr:last-child td { border-bottom: 0; }
@media (max-width: 780px) { .tariff-layout { grid-template-columns: 1fr; } }

.vehicle-types { display: grid; gap: 18px; grid-template-columns: repeat(3, 1fr); }
.vehicle-form { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; display: grid; gap: 14px; padding: 24px; }
.vehicle-form .eyebrow { margin-bottom: 0; }
.vehicle-form h2 { margin-bottom: 0; }
.vehicle-form .muted { margin: 0; }
@media (max-width: 950px) { .vehicle-types { grid-template-columns: 1fr 1fr; } }
@media (max-width: 650px) { .vehicle-types { grid-template-columns: 1fr; } }

.wallet-summary { display: grid; gap: 18px; grid-template-columns: repeat(3, 1fr); margin-bottom: 22px; }
.wallet-total { border-radius: 18px; display: grid; gap: 8px; padding: 24px; }
.wallet-total span { font-size: .86rem; font-weight: 800; }
.wallet-total strong { font-size: 1.75rem; letter-spacing: -.04em; }
.wallet-total small { font-weight: 800; opacity: .75; }
.wallet-green { background: #e5f8f0; color: var(--green); }
.wallet-blue { background: #eaf2ff; color: var(--blue-dark); }
.wallet-red { background: #fff0f1; color: var(--red); }
.wallet-rule { margin-bottom: 30px; }
.status-danger { background: #fff0f1; color: var(--red); }
@media (max-width: 760px) { .wallet-summary { grid-template-columns: 1fr; } }

.assistive-badge { background: #fff6d8; border-radius: 999px; color: #8b6200; font-size: .75rem; font-weight: 900; margin-right: 14px; padding: 7px 10px; }
.inline-form { align-items: center; display: flex; gap: 8px; min-width: 260px; }
.inline-form input { min-width: 130px; padding: 9px 10px; }
.inline-form .button { font-size: .77rem; padding: 9px 10px; white-space: nowrap; }
@media (max-width: 650px) { .inline-form { align-items: stretch; flex-direction: column; min-width: 180px; } .assistive-badge { display: none; } }

/* Experiência operacional do motoboy: mobile e tablet primeiro. */
.area-motoboy .page-shell { max-width: 960px; padding: 24px 18px 108px; }
.area-motoboy .topbar { padding: 14px 18px; position: sticky; top: 0; z-index: 20; }
.area-motoboy .brand { font-size: 1.06rem; }
.area-motoboy .topnav a { font-size: .84rem; }
.area-motoboy .button { min-height: 48px; }
.area-motoboy input, .area-motoboy select, .area-motoboy textarea { min-height: 48px; }
.area-motoboy .hero-actions { display: grid; grid-template-columns: 1fr; }
.area-motoboy .hero-actions .button { width: 100%; }
.area-motoboy .dashboard-header, .area-motoboy .map-page-header { align-items: stretch; flex-direction: column; gap: 14px; }
.area-motoboy .dashboard-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.area-motoboy .feature-card { min-height: 144px; padding: 20px; }
.area-motoboy .offer-row, .area-motoboy .delivery-row { align-items: stretch; display: grid; grid-template-columns: 1fr; padding: 18px; }
.area-motoboy .offer-meta { text-align: left; }
.area-motoboy .offer-action .button, .area-motoboy .status-actions .button { width: 100%; }
.area-motoboy .vehicle-types { grid-template-columns: 1fr; }
.area-motoboy .vehicle-form { padding: 20px; }
.area-motoboy .map-shell { border-radius: 16px; }
.area-motoboy .map-canvas { min-height: 56vh; }
.area-motoboy .map-legend { gap: 12px; line-height: 1.35; }
.mobile-bottom-nav { align-items: stretch; background: rgba(255, 255, 255, .97); border-top: 1px solid var(--line); bottom: 0; display: grid; grid-template-columns: repeat(4, 1fr); left: 0; padding: 8px 8px max(8px, env(safe-area-inset-bottom)); position: fixed; right: 0; z-index: 30; }
.mobile-bottom-nav a { align-items: center; color: var(--muted); display: flex; flex-direction: column; font-size: .75rem; font-weight: 800; gap: 2px; justify-content: center; min-height: 50px; }
.mobile-bottom-nav a:first-child, .mobile-bottom-nav a:focus { color: var(--blue-dark); }
.mobile-bottom-nav span { font-size: 1.15rem; line-height: 1; }
.mobile-bottom-nav small { font-size: .68rem; }

/* Administração: área concebida para monitor, mouse/teclado e maior densidade de dados. */
.area-admin { min-width: 1080px; }
.area-admin .page-shell { max-width: 1480px; padding: 42px 42px 70px; }
.area-admin .topbar { padding-left: 42px; padding-right: 42px; }
.area-admin .dashboard-grid, .area-admin .admin-menu-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.area-admin .feature-card { min-height: 190px; padding: 26px; }
.area-admin .dashboard-header, .area-admin .map-page-header { margin-bottom: 38px; }
.area-admin .tariff-layout { grid-template-columns: minmax(0, 1fr) 400px; }
.area-admin .data-table { min-width: 980px; }
.area-admin .module-form { padding: 28px; }
.area-admin .map-canvas { min-height: 650px; }
.admin-device-notice { display: none; }

@media (max-width: 760px) {
    .area-motoboy .dashboard-grid { grid-template-columns: 1fr; }
    .area-motoboy .page-shell { padding-left: 14px; padding-right: 14px; }
    .area-motoboy h1 { font-size: clamp(2.2rem, 12vw, 3.5rem); }
}

@media (min-width: 761px) and (max-width: 1100px) {
    .area-motoboy .page-shell { padding-left: 28px; padding-right: 28px; }
    .area-motoboy .dashboard-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .area-motoboy .map-canvas { min-height: 600px; }
}

@media (max-width: 1079px) {
    .area-admin .admin-device-notice { background: #fff6d8; color: #6b4d00; display: block; font-size: .82rem; font-weight: 800; margin: 0; padding: 11px 18px; text-align: center; }
}
.area-motoboy .footer { padding-bottom: 108px; }


/* Rota e leitura rápida das entregas. */
.delivery-page-header { max-width: 900px; }
.delivery-row { align-items: stretch; }
.route-summary { background: #f7faff; border: 1px solid #e0eaf5; border-radius: 14px; margin-top: 16px; padding: 14px 16px; }
.route-point { align-items: flex-start; display: flex; gap: 10px; }
.route-point small { color: var(--muted); display: block; font-size: .72rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.route-point strong { color: var(--ink); display: block; font-size: .9rem; font-weight: 700; line-height: 1.45; margin-top: 2px; }
.route-dot { background: var(--blue); border: 3px solid #dceaff; border-radius: 50%; flex: 0 0 14px; height: 14px; margin-top: 2px; width: 14px; }
.route-destination .route-dot { background: var(--green); border-color: #d9f4e3; }
.route-summary .route-line { border-left: 2px dashed #b7c8d9; display: block; height: 17px; margin: 2px 0 2px 6px; width: 0; }
.delivery-tools { align-items: center; display: flex; flex-direction: column; gap: 7px; justify-content: center; min-width: 190px; }
.button-route { background: #e8f1ff; color: var(--blue-dark); text-align: center; width: 100%; }
.button-route:hover { background: #d8e8ff; }
.route-help { color: var(--muted); font-size: .7rem; line-height: 1.35; text-align: center; }
.status-actions { min-width: 170px; }
.status-actions form { display: grid; gap: 8px; }
.status-actions input[name="cancel_reason"] { min-width: 0; }
@media (max-width: 760px) {
    .delivery-tools { align-items: stretch; min-width: 0; }
    .route-help { text-align: left; }
    .status-actions { min-width: 0; }
}

/* Seletor pesquisável de estado e cidade. */
.location-picker { background: linear-gradient(135deg, #f4f8ff 0%, #ffffff 100%); border: 1px solid #dbe8f7; border-radius: 18px; padding: 18px; }
.location-picker-heading { align-items: center; display: flex; gap: 12px; margin-bottom: 18px; }
.location-picker-heading strong, .location-picker-heading small { display: block; }
.location-picker-heading strong { font-size: .95rem; }
.location-picker-heading small { color: var(--muted); font-size: .78rem; font-weight: 500; margin-top: 2px; }
.location-icon { align-items: center; background: #e4efff; border-radius: 12px; color: var(--blue); display: inline-flex; flex: 0 0 42px; font-size: 1.3rem; height: 42px; justify-content: center; width: 42px; }
.location-grid { display: grid; gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.combobox-field { min-width: 0; }
.combobox { display: block; position: relative; }
.combobox > input { padding-right: 48px; }
.combobox-toggle { align-items: center; background: transparent; border: 0; border-radius: 8px; color: var(--muted); cursor: pointer; display: inline-flex; font-size: 1.15rem; height: 42px; justify-content: center; padding: 0; position: absolute; right: 4px; top: 4px; width: 42px; }
.combobox-toggle:hover, .combobox-toggle:focus { background: #edf4ff; color: var(--blue-dark); outline: 0; }
.combobox-toggle:disabled { cursor: not-allowed; opacity: .45; }
.combobox-options { background: var(--surface); border: 1px solid #cfd8df; border-radius: 12px; box-shadow: 0 16px 32px rgba(20, 35, 50, .14); left: 0; max-height: 250px; overflow-y: auto; padding: 6px; position: absolute; right: 0; top: calc(100% + 6px); z-index: 50; }
.combobox-option { background: transparent; border: 0; border-radius: 8px; color: var(--ink); cursor: pointer; display: block; font: inherit; font-size: .9rem; padding: 11px 12px; text-align: left; width: 100%; }
.combobox-option:hover, .combobox-option:focus { background: #edf4ff; color: var(--blue-dark); outline: 0; }
.combobox-empty { color: var(--muted); font-size: .86rem; padding: 12px; }
.field-help { color: var(--muted); display: block; font-size: .74rem; font-weight: 500; margin-top: 6px; }
.location-feedback { font-size: .78rem; font-weight: 700; margin: 12px 0 0; min-height: 1.1em; }
.location-feedback-success { color: var(--green); }
.location-feedback-error { color: var(--red); }
@media (max-width: 650px) { .location-grid { grid-template-columns: 1fr; } .location-picker { padding: 15px; } }


/* Perfil e segurança do entregador. */
.password-control { display: block; position: relative; }
.password-control input { padding-right: 88px; }
.password-toggle { align-items: center; background: #edf4ff; border: 0; border-radius: 8px; color: var(--blue-dark); cursor: pointer; display: inline-flex; font-size: .75rem; font-weight: 900; height: 42px; justify-content: center; padding: 0 10px; position: absolute; right: 4px; top: 4px; }
.password-toggle:hover, .password-toggle:focus { background: #dceaff; outline: 0; }
.profile-header { max-width: 900px; }
.profile-layout, .password-layout { align-items: start; display: grid; gap: 22px; grid-template-columns: minmax(0, 1fr) 300px; max-width: 1040px; }
.profile-form, .password-form { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow); margin-top: 0; padding: clamp(20px, 3vw, 32px); }
.form-section-heading { align-items: flex-start; border-bottom: 1px solid var(--line); display: flex; gap: 12px; margin-top: 4px; padding-bottom: 14px; }
.form-section-heading h2 { font-size: 1.05rem; margin: 0; }
.form-section-heading p { color: var(--muted); font-size: .78rem; font-weight: 500; margin: 4px 0 0; }
.section-icon { align-items: center; background: #e5f0ff; border-radius: 10px; color: var(--blue); display: inline-flex; flex: 0 0 34px; font-size: .9rem; height: 34px; justify-content: center; width: 34px; }
.profile-fields-grid { display: grid; gap: 17px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.profile-fields-grid .span-two { grid-column: 1 / -1; }
.profile-location { padding: 0; }
.profile-location .location-feedback { margin-bottom: 0; }
.profile-side-panel { background: linear-gradient(145deg, #10263f 0%, #1b4b76 100%); border-radius: 22px; color: #fff; padding: 26px; position: sticky; top: 20px; }
.profile-side-panel h2 { color: #fff; font-size: 1.15rem; margin: 18px 0 10px; }
.profile-side-panel p { color: #d9e8f6; font-size: .9rem; line-height: 1.6; margin: 0 0 22px; }
.profile-side-icon { align-items: center; background: rgba(255, 255, 255, .14); border-radius: 14px; display: flex; font-size: 1.4rem; height: 48px; justify-content: center; width: 48px; }
.profile-side-panel .button-secondary { background: #fff; color: var(--blue-dark); width: 100%; }
.security-panel { background: linear-gradient(145deg, #142c43 0%, #27606e 100%); }
@media (max-width: 760px) {
    .profile-layout, .password-layout { grid-template-columns: 1fr; }
    .profile-fields-grid { grid-template-columns: 1fr; }
    .profile-fields-grid .span-two { grid-column: auto; }
    .profile-side-panel { position: static; }
}
@media (max-width: 560px) {
    .profile-form, .password-form { border-radius: 18px; padding: 18px; }
    .profile-side-panel { border-radius: 18px; padding: 22px; }
}
@media (max-width: 760px) {
    .mobile-bottom-nav { grid-template-columns: repeat(5, 1fr); }
    .mobile-bottom-nav a { font-size: .7rem; }
    .mobile-bottom-nav small { font-size: .61rem; }
}

.profile-status-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 20px;
    box-shadow: var(--shadow);
    display: grid;
    gap: 18px;
    margin-bottom: 22px;
    padding: 22px;
}
.profile-status-card h2 { margin-bottom: 4px; }
.eligibility-checks { display: flex; flex-wrap: wrap; gap: 8px; }
.status-warning { background: #fff6d8; color: #8b6200; }
.status-danger { background: #fff0f1; color: var(--red); }
.button:disabled { cursor: not-allowed; opacity: .48; }
.module-notice.status-warning { border-top-color: var(--yellow); }
.mobile-bottom-nav {
    background: rgba(255,255,255,.97);
    border-top: 1px solid var(--line);
    bottom: 0;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    left: 0;
    padding: 8px 6px calc(8px + env(safe-area-inset-bottom));
    position: fixed;
    right: 0;
    z-index: 50;
}
.mobile-bottom-nav a {
    align-items: center;
    color: var(--muted);
    display: flex;
    flex-direction: column;
    font-weight: 800;
    gap: 2px;
    min-width: 0;
    padding: 7px 3px;
}
.mobile-bottom-nav a:hover, .mobile-bottom-nav a:focus { color: var(--blue-dark); }
.mobile-bottom-nav span { font-size: 1.08rem; line-height: 1; }
.mobile-bottom-nav small { font-size: .67rem; }
@media (min-width: 781px) {
    .mobile-bottom-nav { display: none; }
}
@media (max-width: 780px) {
    body.area-motoboy { padding-bottom: 74px; }
    .profile-status-card { padding: 18px; }
    .eligibility-checks { display: grid; grid-template-columns: 1fr; }
}

.mobile-menu { display: none; position: relative; }
.mobile-menu summary {
    border: 1px solid var(--line);
    border-radius: 10px;
    cursor: pointer;
    font-size: .82rem;
    font-weight: 900;
    list-style: none;
    padding: 9px 11px;
}
.mobile-menu summary::-webkit-details-marker { display: none; }
.mobile-menu nav {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: var(--shadow);
    display: grid;
    gap: 2px;
    left: 0;
    min-width: 210px;
    padding: 8px;
    position: absolute;
    top: calc(100% + 8px);
    z-index: 100;
}
.mobile-menu nav a {
    border-radius: 9px;
    font-size: .86rem;
    font-weight: 800;
    padding: 10px 12px;
}
.mobile-menu nav a:hover { background: #eaf2ff; color: var(--blue-dark); }
@media (max-width: 780px) {
    .topbar { gap: 12px; padding: 12px 16px; }
    .mobile-menu { display: block; margin-left: auto; }
    .topnav { display: none; }
    .mobile-menu + .topnav { display: none; }
}


/* Redesign do fluxo do entregador: menu compacto e rota operacional guiada. */
.area-motoboy .topbar { background: rgba(255,255,255,.96); box-shadow: 0 5px 24px rgba(23,32,42,.06); }
.mobile-menu summary { align-items: center; background: #17202a; border: 0; color: #fff; display: inline-flex; gap: 8px; padding: 10px 13px; }
.mobile-menu summary:hover, .mobile-menu[open] summary { background: var(--blue-dark); }
.mobile-menu nav { border: 0; border-radius: 16px; gap: 4px; left: auto; right: 0; min-width: 250px; padding: 10px; }
.mobile-menu nav a { padding: 12px 13px; }
.mobile-menu nav .menu-primary { background: #f5f8fc; color: var(--ink); }
.mobile-menu nav .menu-primary:hover { background: #e5f0ff; color: var(--blue-dark); }
.mobile-menu nav .menu-secondary { color: var(--muted); font-size: .82rem; font-weight: 700; }
.mobile-menu nav .menu-divider { border-top: 1px solid var(--line); display: block; margin: 5px 4px; }
.active-navigation-button { margin-top: 18px; width: 100%; }
.active-delivery-card { box-shadow: 0 16px 38px rgba(16,38,63,.2); }
.map-route-status { font-weight: 800; }
.legend-vehicle { background: var(--blue); }
@media (min-width: 781px) {
    .area-motoboy .mobile-menu { display: block; }
    .area-motoboy .mobile-menu + .topnav { display: flex; }
    .area-motoboy .topnav { margin-left: auto; }
}


/* Fluxo de entrega no mapa */
.navigation-fare { align-items: center; background: #edf5ff; border-radius: 13px; display: flex; justify-content: space-between; margin-top: 15px; padding: 12px 14px; }
.navigation-fare span { color: var(--muted); font-size: .72rem; font-weight: 900; text-transform: uppercase; }
.navigation-fare strong { color: var(--blue-dark); font-size: 1.2rem; }
.navigation-details { border-top: 1px solid var(--line); margin-top: 13px; padding-top: 11px; }
.navigation-details summary { color: var(--blue-dark); cursor: pointer; font-weight: 900; }
.navigation-details-content { color: var(--muted); font-size: .86rem; line-height: 1.45; }
.arrival-actions { background: #f3f8ff; border: 1px solid #cfe0f7; border-radius: 14px; margin-top: 14px; padding: 13px; }
.arrival-actions form { margin-top: 10px; }
.arrival-actions .button { width: 100%; }
@media (max-width: 650px) {
  .navigation-fare { padding: 14px; }
  .navigation-fare strong { font-size: 1.15rem; }
  .arrival-actions .button { min-height: 48px; }
}

.stats-grid { display: grid; gap: 14px; grid-template-columns: repeat(4, 1fr); margin: 0 0 28px; }
.stat-card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 18px; }
.stat-card small, .stat-card strong { display: block; }
.stat-card small { color: var(--muted); font-size: .76rem; font-weight: 800; text-transform: uppercase; }
.stat-card strong { font-size: 2rem; letter-spacing: -.06em; margin-top: 5px; }
.filter-bar { align-items: end; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr) 220px auto; margin-bottom: 18px; padding: 16px; }
.filter-bar .button { height: 47px; }
.table-card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; margin-top: 18px; overflow: hidden; padding: 20px; }
.table-card h2 { font-size: 1.15rem; }
.table-scroll { overflow-x: auto; }
.table-card table { border-collapse: collapse; min-width: 760px; width: 100%; }
.table-card th, .table-card td { border-bottom: 1px solid var(--line); padding: 13px 12px; text-align: left; vertical-align: top; }
.table-card th { color: var(--muted); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; }
.table-card tr:last-child td { border-bottom: 0; }
.table-card small { color: var(--muted); display: block; font-size: .76rem; margin-top: 4px; }
.table-card code, .table-card pre { font-size: .72rem; white-space: pre-wrap; }
.table-card details summary { color: var(--blue-dark); cursor: pointer; font-weight: 800; }
@media (max-width: 850px) { .stats-grid { grid-template-columns: repeat(2, 1fr); } .filter-bar { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .stats-grid { grid-template-columns: 1fr 1fr; } .stat-card strong { font-size: 1.55rem; } .table-card { padding: 12px; } }


/* Revisão de legibilidade do painel administrativo. */
.area-admin .page-heading,
.area-admin .module-header,
.area-admin .dashboard-header { max-width: 1120px; }
.area-admin .page-heading h1,
.area-admin .module-header h1 { max-width: 980px; }
.area-admin .page-heading .muted,
.area-admin .module-header .lead,
.area-admin .module-header .muted { max-width: 820px; }
.area-admin .table-card,
.area-admin .table-section,
.area-admin .admin-menu-grid,
.area-admin .stats-grid { margin-bottom: 28px; }
.area-admin .data-table td,
.area-admin .table-card td { vertical-align: top; }
.area-admin .data-table td small,
.area-admin .table-card td small { color: var(--muted); display: block; line-height: 1.45; margin-top: 4px; }
.area-admin details summary { color: var(--blue-dark); cursor: pointer; font-weight: 800; }
.area-admin details pre { background: #f7f9fb; border: 1px solid var(--line); border-radius: 10px; font-size: .78rem; margin: 10px 0 0; max-width: 420px; overflow-x: auto; padding: 10px; white-space: pre-wrap; word-break: break-word; }
.area-admin .filter-bar { align-items: center; }
.area-admin .filter-bar input,
.area-admin .filter-bar select { min-height: 46px; }
.area-admin .status-pill { display: inline-block; white-space: nowrap; }
.area-admin .module-notice + .table-section,
.area-admin .module-notice + .table-card { margin-top: 26px; }

@media (max-width: 1079px) {
    .area-admin { min-width: 0; }
    .area-admin .page-shell { padding-left: 18px; padding-right: 18px; }
    .area-admin .topbar { padding-left: 18px; padding-right: 18px; }
    .area-admin .dashboard-grid,
    .area-admin .admin-menu-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .area-admin .data-table { min-width: 860px; }
}

@media (max-width: 650px) {
    .area-admin .dashboard-grid,
    .area-admin .admin-menu-grid { grid-template-columns: 1fr; }
    .area-admin .data-table { min-width: 720px; }
    .area-admin .page-heading h1,
    .area-admin .module-header h1 { font-size: clamp(2.3rem, 12vw, 4rem); }
}

.audit-change-summary { align-items: center; background: #f7faff; border: 1px solid #dce9f8; border-radius: 10px; display: flex; flex-wrap: wrap; gap: 8px; line-height: 1.45; margin-bottom: 9px; padding: 10px 12px; }
.audit-change-summary span { color: var(--ink); }
.audit-change-arrow { color: var(--blue-dark); font-size: 1.1rem; font-weight: 900; }
.audit-change-summary + details { margin-top: 4px; }

.receipt-card { background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--blue); border-radius: 20px; box-shadow: var(--shadow); margin: 0 auto; max-width: 820px; padding: 30px; }
.receipt-card-top { align-items: start; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; gap: 18px; padding-bottom: 18px; }
.receipt-card-top h2 { margin: 0; }
.receipt-card-top .eyebrow { margin-bottom: 7px; }
.receipt-amount { align-items: end; border-bottom: 2px dashed var(--line); display: flex; justify-content: space-between; gap: 18px; padding: 24px 0; }
.receipt-amount span { color: var(--muted); font-weight: 800; }
.receipt-amount strong { color: var(--blue-dark); font-size: clamp(2rem, 5vw, 3rem); letter-spacing: -.06em; }
.receipt-grid { display: grid; gap: 0 24px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.receipt-grid > div { border-bottom: 1px solid var(--line); display: grid; gap: 4px; padding: 14px 0; }
.receipt-grid span { color: var(--muted); font-size: .75rem; font-weight: 800; text-transform: uppercase; }
.receipt-grid strong { overflow-wrap: anywhere; }
.receipt-note { background: #f7faff; border: 1px solid #dce9f8; border-radius: 12px; margin-top: 22px; padding: 14px 16px; }
.receipt-note p { color: var(--muted); margin: 5px 0 0; }
.receipt-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
@media (max-width: 650px) { .receipt-card { padding: 20px; } .receipt-grid { grid-template-columns: 1fr; } .receipt-card-top { align-items: stretch; flex-direction: column; } .receipt-actions .button { width: 100%; } }

@media print {
    @page { size: 80mm auto; margin: 0; }
    html, body { background: #fff !important; color: #000 !important; margin: 0 !important; min-width: 0 !important; width: 80mm !important; }
    body { font-family: Arial, Helvetica, sans-serif !important; font-size: 10pt !important; line-height: 1.25 !important; }
    .topbar, .footer, .mobile-bottom-nav, .receipt-header, .receipt-actions, .back-link { display: none !important; }
    .page-shell { display: block !important; margin: 0 !important; max-width: none !important; padding: 0 !important; width: 80mm !important; }
    .receipt-card { border: 0 !important; border-radius: 0 !important; box-shadow: none !important; display: block !important; margin: 0 !important; max-width: none !important; padding: 5mm 4mm 4mm !important; width: 80mm !important; }
    .receipt-card::before { content: 'PARCEIRO DELIVERY'; display: block; font-size: 15pt; font-weight: 900; letter-spacing: .04em; margin-bottom: 3mm; text-align: center; }
    .receipt-card::after { content: 'Comprovante válido como registro da confirmação do pagamento'; display: block; font-size: 8pt; margin-top: 5mm; text-align: center; }
    .receipt-card-top { align-items: center !important; border-bottom: 1px solid #000 !important; display: block !important; padding-bottom: 3mm !important; text-align: center; }
    .receipt-card-top .eyebrow { display: none !important; }
    .receipt-card-top h2 { font-size: 13pt !important; margin: 0 0 2mm !important; }
    .receipt-card-top .status-pill { background: none !important; color: #000 !important; display: block !important; font-size: 9pt !important; padding: 0 !important; }
    .receipt-amount { align-items: center !important; border-bottom: 1px dashed #000 !important; display: block !important; padding: 4mm 0 !important; text-align: center; }
    .receipt-amount span { display: block; font-size: 9pt; }
    .receipt-amount strong { color: #000 !important; display: block; font-size: 22pt !important; margin-top: 1mm; }
    .receipt-grid { display: block !important; }
    .receipt-grid > div { border-bottom: 1px dotted #777 !important; display: flex !important; justify-content: space-between; gap: 4mm; padding: 2.4mm 0 !important; }
    .receipt-grid span { color: #000 !important; font-size: 8pt !important; font-weight: 700 !important; text-transform: uppercase; }
    .receipt-grid strong { font-size: 9pt !important; max-width: 48mm; text-align: right; }
    .receipt-note { background: none !important; border: 0 !important; border-top: 1px solid #000 !important; border-radius: 0 !important; margin-top: 4mm !important; padding: 3mm 0 0 !important; text-align: center; }
    .receipt-note strong { font-size: 9pt !important; }
    .receipt-note p { color: #000 !important; font-size: 8pt !important; margin: 2mm 0 0 !important; }
}

.module-card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); max-width: 840px; padding: 28px; }
.module-card h2 { margin-top: 0; }
.pix-card { border-top: 3px solid var(--blue); }
.support-history, .support-admin-list { margin-top: 30px; }
.support-ticket-card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; margin-bottom: 16px; padding: 22px; }
.support-ticket-head { align-items: start; display: flex; gap: 16px; justify-content: space-between; }
.support-ticket-head h3 { margin: 7px 0 5px; }
.support-ticket-message { line-height: 1.55; margin: 18px 0 7px; white-space: normal; }
.support-response { background: #f7faff; border-left: 3px solid var(--blue); border-radius: 8px; margin-top: 18px; padding: 13px 15px; }
.support-response p { margin: 5px 0; white-space: normal; }
.support-response-form { border-top: 1px solid var(--line); display: grid; gap: 12px; margin-top: 20px; padding-top: 18px; }
.support-form-actions { align-items: center; display: flex; gap: 10px; justify-content: space-between; }
.support-form-actions select { max-width: 230px; }
@media (max-width: 650px) { .support-ticket-head, .support-form-actions { align-items: stretch; flex-direction: column; } .support-form-actions select { max-width: none; } }

/* Dashboard do entregador: visão operacional com ações principais em destaque. */
.motoboy-dashboard { max-width: 1000px; margin: 0 auto; }
.dashboard-welcome { align-items: center; background: linear-gradient(135deg, #10263f 0%, #1769ba 100%); border-radius: 24px; box-shadow: 0 18px 40px rgba(15, 54, 92, .22); color: #fff; display: flex; gap: 28px; justify-content: space-between; margin-bottom: 22px; overflow: hidden; padding: clamp(25px, 4vw, 38px); position: relative; }
.dashboard-welcome::after { border: 1px solid rgba(255,255,255,.14); border-radius: 50%; content: ''; height: 260px; position: absolute; right: -80px; top: -120px; width: 260px; }
.dashboard-welcome-copy, .dashboard-welcome-actions { position: relative; z-index: 1; }
.dashboard-welcome .eyebrow { color: #9bd0ff; }
.dashboard-welcome h1 { color: #fff; font-size: clamp(2.35rem, 5vw, 4.7rem); margin: 0 0 10px; }
.dashboard-subtitle { color: #d7ebff; font-size: 1rem; margin: 0; max-width: 540px; }
.dashboard-welcome-actions { display: flex; flex-wrap: wrap; gap: 10px; min-width: 175px; }
.dashboard-welcome-actions .button { min-width: 145px; }
.dashboard-button-light { background: rgba(255,255,255,.13); border: 1px solid rgba(255,255,255,.34); color: #fff; }
.dashboard-button-light:hover { background: rgba(255,255,255,.22); }
.dashboard-readiness { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); margin-bottom: 34px; padding: clamp(22px, 3vw, 30px); }
.dashboard-readiness.is-ready { border-top: 4px solid var(--green); }
.dashboard-readiness.is-pending { border-top: 4px solid var(--yellow); }
.readiness-heading { align-items: flex-start; display: flex; gap: 18px; justify-content: space-between; }
.readiness-heading h2 { font-size: clamp(1.25rem, 2.5vw, 1.75rem); margin-bottom: 6px; }
.readiness-heading p:not(.eyebrow) { color: var(--muted); margin: 0; }
.readiness-badge { align-items: center; background: #e5f8f0; border-radius: 999px; color: var(--green); display: inline-flex; flex: 0 0 auto; font-size: .74rem; font-weight: 850; gap: 7px; padding: 8px 12px; }
.is-pending .readiness-badge { background: #fff6d8; color: #8b6200; }
.readiness-badge span { align-items: center; background: currentColor; border-radius: 50%; color: #fff; display: inline-flex; font-size: .68rem; height: 17px; justify-content: center; width: 17px; }
.readiness-steps { border-top: 1px solid var(--line); display: grid; gap: 16px; grid-template-columns: repeat(3, 1fr); margin-top: 24px; padding-top: 20px; }
.readiness-step { align-items: center; display: flex; gap: 10px; min-width: 0; }
.readiness-step-icon { align-items: center; background: #fff6d8; border-radius: 50%; color: #8b6200; display: inline-flex; flex: 0 0 30px; font-size: .8rem; font-weight: 900; height: 30px; justify-content: center; width: 30px; }
.readiness-step.complete .readiness-step-icon { background: #e5f8f0; color: var(--green); }
.readiness-step strong, .readiness-step small { display: block; }
.readiness-step strong { font-size: .86rem; }
.readiness-step small { color: var(--muted); font-size: .75rem; margin-top: 2px; }
.readiness-action { margin-top: 24px; }
.dashboard-section-heading { align-items: end; display: flex; justify-content: space-between; margin: 0 0 16px; }
.dashboard-section-heading .eyebrow { margin-bottom: 4px; }
.dashboard-section-heading h2 { font-size: 1.45rem; margin: 0; }
.dashboard-section-heading > span { color: var(--muted); font-size: .8rem; font-weight: 700; }
.motoboy-dashboard .dashboard-grid { gap: 15px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.motoboy-dashboard .feature-card { display: flex; flex-direction: column; min-height: 220px; padding: 22px; position: relative; }
.motoboy-dashboard .feature-card:hover { border-color: #b8d5f5; box-shadow: 0 16px 32px rgba(18, 78, 132, .12); }
.motoboy-dashboard .feature-card-primary { background: linear-gradient(160deg, #eef6ff 0%, #fff 68%); border-color: #c9def7; }
.motoboy-dashboard .feature-icon { align-items: center; background: #eaf2ff; border-radius: 12px; color: var(--blue-dark); display: inline-flex; font-size: 1.05rem; font-weight: 900; height: 40px; justify-content: center; margin-bottom: 24px; width: 40px; }
.motoboy-dashboard .feature-card-primary .feature-icon { background: var(--blue); color: #fff; }
.motoboy-dashboard .feature-card h2 { font-size: 1.05rem; margin-bottom: 7px; }
.motoboy-dashboard .feature-card p { font-size: .84rem; line-height: 1.5; }
.motoboy-dashboard .feature-card-link { align-items: center; display: flex; gap: 6px; margin-top: auto; padding-top: 18px; }
.motoboy-dashboard .feature-card-link b { font-size: 1rem; transition: transform .18s ease; }
.motoboy-dashboard .feature-card:hover .feature-card-link b { transform: translateX(3px); }
@media (max-width: 780px) {
    .dashboard-welcome { align-items: stretch; flex-direction: column; }
    .dashboard-welcome-actions { display: grid; grid-template-columns: 1fr 1fr; }
    .dashboard-welcome-actions .button { width: 100%; }
    .motoboy-dashboard .dashboard-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
    .dashboard-welcome { border-radius: 18px; padding: 24px 20px; }
    .dashboard-welcome-actions, .readiness-steps { grid-template-columns: 1fr; }
    .readiness-heading, .dashboard-section-heading { align-items: stretch; flex-direction: column; }
    .readiness-badge { align-self: flex-start; }
    .motoboy-dashboard .dashboard-grid { grid-template-columns: 1fr; }
    .motoboy-dashboard .feature-card { min-height: 190px; }
}

/* Notificações globais para administração e entregadores. */
.notification-nav-link { align-items: center; color: var(--blue-dark); display: inline-flex; font-size: .84rem; font-weight: 800; gap: 7px; margin-left: auto; margin-right: 18px; position: relative; }
.notification-bell-icon { align-items: center; background: #eaf2ff; border-radius: 50%; color: var(--blue); display: inline-flex; font-size: 1rem; height: 28px; justify-content: center; width: 28px; }
.notification-bell-icon svg, .notification-inline-icon svg { fill: none; height: 16px; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; width: 16px; }
.notification-inline-icon { align-items: center; display: inline-flex; }
.notification-count { align-items: center; background: var(--red); border: 2px solid #fff; border-radius: 999px; color: #fff; display: inline-flex; font-size: .63rem; height: 19px; justify-content: center; line-height: 1; min-width: 19px; padding: 0 4px; }
.notification-menu-link { align-items: center; display: flex; gap: 5px; }
.notification-menu-link .notification-count { border: 0; height: 18px; min-width: 18px; }
.notification-publish-card { background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--blue); border-radius: 20px; box-shadow: var(--shadow); margin-bottom: 30px; max-width: 850px; padding: 28px; }
.notification-publish-card h2 { margin-bottom: 6px; }
.notification-publish-card .form-stack { margin-top: 24px; }
.notification-publish-card .field-help { color: var(--muted); font-size: .78rem; margin: -5px 0 0; }
.notification-admin-item time { line-height: 1.65; text-align: right; }
.notification-history { max-width: 1000px; }
.section-title-row, .notification-item-top { align-items: end; display: flex; gap: 18px; justify-content: space-between; }
.section-title-row h2 { margin-bottom: 0; }
.notification-admin-list, .notification-list { display: grid; gap: 14px; margin-top: 18px; }
.notification-admin-item, .notification-item { background: var(--surface); border: 1px solid var(--line); border-radius: 17px; padding: 22px; }
.notification-admin-item { border-left: 4px solid #b9d5f5; }
.notification-item { align-items: flex-start; display: flex; gap: 14px; transition: border-color .18s ease, box-shadow .18s ease; }
.notification-item.is-unread { border-left: 4px solid var(--blue); box-shadow: 0 10px 26px rgba(22, 119, 255, .08); }
.notification-item.is-read { opacity: .82; }
.notification-item-marker { background: #cbd5df; border-radius: 50%; flex: 0 0 10px; height: 10px; margin-top: 6px; width: 10px; }
.notification-item.is-unread .notification-item-marker { background: var(--blue); box-shadow: 0 0 0 5px #eaf2ff; }
.notification-item-content { min-width: 0; width: 100%; }
.notification-item-top h2, .notification-item-top h3 { margin: 5px 0 0; }
.notification-item-top time, .notification-admin-item time { color: var(--muted); font-size: .76rem; white-space: nowrap; }
.notification-item p, .notification-admin-item p { color: var(--muted); line-height: 1.55; margin: 16px 0 12px; white-space: normal; }
.notification-read-button { font-size: .78rem; padding: 9px 13px; }
.notification-read-label, .notification-read-count { color: var(--green); font-size: .76rem; font-weight: 800; }
.notification-read-count { color: var(--muted); }
.notification-title-row { align-items: center; display: flex; justify-content: space-between; }
.notification-page-icon { align-items: center; background: #eaf2ff; border-radius: 18px; color: var(--blue); display: inline-flex; font-size: 2rem; height: 62px; justify-content: center; width: 62px; }
.notification-empty { max-width: 720px; padding: 44px 30px; text-align: center; }
.notification-empty-icon { align-items: center; background: #e5f8f0; border-radius: 50%; color: var(--green); display: inline-flex; font-size: 1.3rem; font-weight: 900; height: 48px; justify-content: center; margin-bottom: 10px; width: 48px; }
.notification-empty h2 { margin-bottom: 5px; }
@media (max-width: 760px) { .notification-nav-link { margin-right: 10px; } .notification-nav-link > span:not(.notification-bell-icon), .notification-nav-link > b { display: none; } .section-title-row, .notification-item-top { align-items: flex-start; flex-direction: column; gap: 5px; } .notification-item-top time, .notification-admin-item time { white-space: normal; } }
@media (max-width: 560px) { .notification-publish-card { padding: 21px; } .notification-title-row { align-items: flex-start; gap: 12px; } .notification-page-icon { flex: 0 0 48px; height: 48px; width: 48px; } }

/* Landing page pública: apresentação institucional e conversão. */
.home-page { margin: 0 auto; max-width: 1120px; }
.home-hero { align-items: center; display: grid; gap: clamp(40px, 7vw, 90px); grid-template-columns: minmax(0, 1.02fr) minmax(380px, .85fr); min-height: 650px; padding: 58px 0 70px; }
.home-hero-copy { max-width: 620px; }
.home-kicker { align-items: center; color: var(--blue); display: flex; font-size: .76rem; font-weight: 900; gap: 9px; letter-spacing: .17em; margin-bottom: 24px; }
.home-kicker-dot { background: var(--blue); border-radius: 50%; box-shadow: 0 0 0 6px #eaf2ff; display: inline-block; height: 8px; width: 8px; }
.home-hero h1 { font-family: "Manrope", sans-serif; font-size: clamp(3.1rem, 6.2vw, 6.25rem); font-weight: 800; letter-spacing: -.105em; line-height: .91; margin: 0 0 28px; }
.home-hero h1 span, .home-section-heading h2 span { color: var(--blue); }
.home-hero-lead { color: var(--muted); font-size: clamp(1.05rem, 2vw, 1.28rem); line-height: 1.55; margin: 0; max-width: 550px; }
.home-hero-actions { margin: 30px 0 24px; }
.home-hero-actions .button { align-items: center; gap: 18px; min-height: 53px; padding-left: 22px; padding-right: 22px; }
.home-button-outline { background: transparent; border: 1px solid #cbd5df; color: var(--ink); }
.home-button-outline:hover { background: #fff; border-color: var(--blue); color: var(--blue-dark); }
.home-trust-row { align-items: center; color: var(--muted); display: flex; flex-wrap: wrap; font-size: .76rem; gap: 15px 22px; }
.home-trust-row span { align-items: center; display: inline-flex; gap: 6px; }
.home-trust-row b { align-items: center; background: #e5f8f0; border-radius: 50%; color: var(--green); display: inline-flex; font-size: .62rem; height: 16px; justify-content: center; width: 16px; }
.home-visual-card { background: linear-gradient(150deg, #10263f 0%, #184b78 100%); border-radius: 26px; box-shadow: 0 26px 58px rgba(16, 38, 63, .26); color: #fff; min-height: 470px; overflow: hidden; padding: 25px; position: relative; }
.home-visual-card::before { border: 1px solid rgba(255,255,255,.12); border-radius: 50%; content: ''; height: 280px; position: absolute; right: -105px; top: -120px; width: 280px; }
.home-visual-top, .home-route-visual, .home-visual-label, .home-stat-grid, .home-visual-status { position: relative; z-index: 1; }
.home-visual-top { align-items: center; display: flex; justify-content: space-between; }
.home-live-pill { align-items: center; background: rgba(143,240,195,.12); border: 1px solid rgba(143,240,195,.28); border-radius: 999px; color: #a3f4c9; display: inline-flex; font-size: .63rem; font-weight: 900; gap: 7px; letter-spacing: .08em; padding: 7px 10px; }
.home-live-pill i { background: #7cf0b9; border-radius: 50%; box-shadow: 0 0 0 4px rgba(124,240,185,.15); height: 6px; width: 6px; }
.home-visual-menu { color: #a9c7e2; letter-spacing: .18em; }
.home-route-visual { margin-top: 66px; }
.home-route-point { align-items: center; display: flex; gap: 12px; }
.home-route-point > div { min-width: 0; }
.home-route-point small { color: #a9c7e2; display: block; font-size: .63rem; font-weight: 800; letter-spacing: .1em; }
.home-route-point strong { color: #fff; display: block; font-size: .96rem; margin-top: 4px; }
.home-route-marker { align-items: center; border-radius: 50%; display: inline-flex; flex: 0 0 42px; font-size: .72rem; font-weight: 900; height: 42px; justify-content: center; width: 42px; }
.home-route-start { background: #eaf2ff; color: var(--blue); }
.home-route-destination { background: #fff; color: var(--ink); }
.home-route-line { display: flex; gap: 5px; height: 40px; margin-left: 20px; padding: 7px 0; }
.home-route-line span { border-left: 2px dashed #6da7dc; display: block; height: 100%; }
.home-route-line span:nth-child(2) { border-color: #a2d3ff; }
.home-visual-divider { border-top: 1px solid rgba(255,255,255,.16); margin: 42px 0 24px; }
.home-visual-label { color: #a9c7e2; font-size: .64rem; font-weight: 900; letter-spacing: .13em; }
.home-stat-grid { display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); margin-top: 16px; }
.home-stat-grid > div { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.08); border-radius: 13px; padding: 13px; }
.home-stat-grid strong, .home-stat-grid span { display: block; }
.home-stat-grid strong { color: #fff; font-size: 1.15rem; }
.home-stat-grid span { color: #a9c7e2; font-size: .7rem; margin-top: 3px; }
.home-visual-status { align-items: center; background: #fff; border-radius: 15px; color: var(--ink); display: flex; gap: 10px; margin-top: 17px; padding: 13px; }
.home-status-check { align-items: center; background: #e5f8f0; border-radius: 50%; color: var(--green); display: inline-flex; flex: 0 0 28px; font-size: .82rem; font-weight: 900; height: 28px; justify-content: center; width: 28px; }
.home-visual-status div { min-width: 0; }
.home-visual-status strong, .home-visual-status span:not(.home-status-check):not(.home-status-arrow) { display: block; }
.home-visual-status strong { font-size: .82rem; }
.home-visual-status div span { color: var(--muted); font-size: .68rem; margin-top: 2px; }
.home-status-arrow { color: var(--blue); font-size: 1.1rem; font-weight: 900; margin-left: auto; }
.home-proof-strip { align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 12px 32px rgba(20, 35, 50, .05); display: flex; gap: 25px; justify-content: space-between; padding: 20px 24px; }
.home-proof-strip strong, .home-proof-strip span { display: block; }
.home-proof-strip > div:first-child span { color: var(--muted); font-size: .78rem; margin-top: 2px; }
.home-proof-items { display: flex; flex-wrap: wrap; gap: 18px; }
.home-proof-items > span { align-items: center; color: var(--muted); display: inline-flex; font-size: .76rem; gap: 7px; }
.home-proof-items b { color: var(--blue); font-size: .7rem; }
.home-section { padding: 105px 0 35px; }
.home-section-heading { align-items: end; display: grid; gap: 35px; grid-template-columns: 1fr .82fr; margin-bottom: 37px; }
.home-section-heading h2 { font-size: clamp(2.25rem, 4vw, 4rem); letter-spacing: -.08em; line-height: .95; margin: 0; }
.home-section-heading > p { color: var(--muted); line-height: 1.65; margin: 0 0 4px; max-width: 380px; }
.home-benefit-grid { display: grid; gap: 16px; grid-template-columns: repeat(3, 1fr); }
.home-benefit-card { background: #fff; border: 1px solid var(--line); border-radius: 19px; display: flex; flex-direction: column; min-height: 285px; padding: 25px; transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease; }
.home-benefit-card:hover { border-color: #b8d5f5; box-shadow: 0 18px 36px rgba(22, 119, 255, .1); transform: translateY(-3px); }
.home-benefit-featured { background: #edf5ff; border-color: #cbdff8; }
.home-benefit-icon { align-items: center; background: #eaf2ff; border-radius: 12px; color: var(--blue-dark); display: inline-flex; font-size: 1rem; font-weight: 900; height: 42px; justify-content: center; margin-bottom: 34px; width: 42px; }
.home-benefit-featured .home-benefit-icon { background: var(--blue); color: #fff; }
.home-benefit-card h3 { font-size: 1.15rem; margin-bottom: 9px; }
.home-benefit-card p { color: var(--muted); font-size: .86rem; line-height: 1.6; margin: 0; }
.home-benefit-card a { color: var(--blue-dark); font-size: .78rem; font-weight: 900; margin-top: auto; padding-top: 25px; }
.home-benefit-card a b { font-size: 1rem; margin-left: 5px; }
.home-steps-section { border-top: 1px solid var(--line); margin-top: 70px; }
.home-steps-grid { display: grid; gap: 18px; grid-template-columns: repeat(4, 1fr); }
.home-steps-grid article { border-top: 2px solid var(--blue); padding-top: 17px; }
.home-steps-grid article > span { color: var(--blue); font-size: .75rem; font-weight: 900; letter-spacing: .08em; }
.home-step-line { background: #dcecff; height: 4px; margin: 24px 0 25px; width: 100%; }
.home-steps-grid h3 { font-size: 1.05rem; margin-bottom: 8px; }
.home-steps-grid p { color: var(--muted); font-size: .82rem; line-height: 1.55; margin: 0; }
.home-final-cta { align-items: center; background: linear-gradient(135deg, #10263f 0%, #1b5d99 100%); border-radius: 24px; color: #fff; display: flex; gap: 25px; justify-content: space-between; margin: 75px 0 24px; overflow: hidden; padding: 43px clamp(25px, 5vw, 55px); position: relative; }
.home-final-cta::after { border: 1px solid rgba(255,255,255,.12); border-radius: 50%; content: ''; height: 340px; position: absolute; right: -115px; top: -165px; width: 340px; }
.home-final-cta > div, .home-cta-button { position: relative; z-index: 1; }
.home-final-cta .eyebrow { color: #9bd0ff; }
.home-final-cta h2 { color: #fff; font-size: clamp(2rem, 4vw, 3.6rem); letter-spacing: -.08em; line-height: .98; margin-bottom: 12px; }
.home-final-cta p:not(.eyebrow) { color: #d7ebff; margin: 0; }
.home-cta-button { background: #fff; color: var(--blue-dark); min-width: 185px; }
.home-cta-button:hover { background: #eaf2ff; }
.home-legal-links { align-items: center; color: var(--muted); display: flex; font-size: .75rem; gap: 10px; justify-content: center; padding: 0 0 42px; }
.home-legal-links a:hover { color: var(--blue-dark); text-decoration: underline; }
@media (max-width: 900px) { .home-hero { gap: 42px; grid-template-columns: 1fr; padding-top: 40px; } .home-hero-copy { max-width: 680px; } .home-visual-card { max-width: 580px; width: 100%; } .home-benefit-grid { grid-template-columns: repeat(2, 1fr); } .home-benefit-card:last-child { grid-column: span 2; } }
@media (max-width: 700px) { .home-hero h1 { font-size: clamp(3rem, 14vw, 5rem); } .home-proof-strip, .home-final-cta { align-items: flex-start; flex-direction: column; } .home-proof-items { gap: 11px 18px; } .home-section-heading { align-items: start; grid-template-columns: 1fr; gap: 17px; } .home-benefit-grid, .home-steps-grid { grid-template-columns: 1fr; } .home-benefit-card:last-child { grid-column: auto; } .home-steps-section { margin-top: 45px; } .home-final-cta { margin-top: 52px; } .home-cta-button { width: 100%; } }
@media (max-width: 480px) { .home-hero { padding-bottom: 42px; } .home-hero-actions { display: grid; grid-template-columns: 1fr; } .home-hero-actions .button { width: 100%; } .home-trust-row { align-items: flex-start; flex-direction: column; gap: 8px; } .home-visual-card { border-radius: 20px; padding: 20px; } .home-route-visual { margin-top: 43px; } .home-section { padding-top: 75px; } .home-proof-strip { padding: 20px; } .home-final-cta { border-radius: 19px; padding: 31px 22px; } }

/* Lista de tarifas cadastradas na página inicial */
.home-tariff-list { display: grid; gap: 8px; margin-top: 14px; max-height: 190px; overflow-y: auto; padding-right: 3px; }
.home-tariff-row { align-items: center; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.08); border-radius: 12px; display: grid; gap: 12px; grid-template-columns: 1fr 1fr; padding: 10px 12px; }
.home-tariff-row strong, .home-tariff-row span, .home-tariff-empty strong, .home-tariff-empty span { display: block; }
.home-tariff-row strong { color: #fff; font-size: .98rem; }
.home-tariff-row span, .home-tariff-empty span { color: #a9c7e2; font-size: .66rem; margin-top: 2px; }
.home-tariff-range { border-left: 1px solid rgba(255,255,255,.14); padding-left: 12px; }
.home-tariff-empty { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.08); border-radius: 12px; padding: 12px; }
.home-tariff-empty strong { color: #fff; font-size: .82rem; }
@media (max-width: 700px) {
    .home-tariff-list { max-height: none; }
}

/* Cabeçalho móvel compacto para notificações */
@media (max-width: 760px) {
    .topbar .notification-nav-link {
        align-items: center;
        display: inline-flex;
        flex: 0 0 auto;
        font-size: .78rem;
        gap: 7px;
        line-height: 1;
        margin: 0 8px 0 auto;
        white-space: nowrap;
    }
    .topbar .notification-nav-link > span:not(.notification-bell-icon) {
        display: inline;
    }
    .topbar .notification-bell-icon {
        background: #eaf2ff;
        border-radius: 50%;
        flex: 0 0 28px;
        height: 28px;
        width: 28px;
    }
    .topbar .notification-bell-icon svg {
        height: 15px;
        width: 15px;
    }
    .topbar .notification-nav-link .notification-count {
        border-width: 1px;
        height: 16px;
        min-width: 16px;
        padding: 0 3px;
    }
}
