:root {
    --bg: #07090d;
    --bg-soft: #0c1118;
    --panel: #111823;
    --panel-2: #151f2c;
    --line: rgba(255, 255, 255, 0.1);
    --text: #f4f7fb;
    --muted: #8f9cac;
    --green: #19e58c;
    --blue: #38bdf8;
    --orange: #ffb020;
    --red: #ff5c5c;
    --shadow: 0 20px 70px rgba(0, 0, 0, 0.35);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

[hidden] {
    display: none !important;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    background:
        radial-gradient(circle at 15% 0%, rgba(56, 189, 248, 0.14), transparent 30%),
        radial-gradient(circle at 85% 10%, rgba(25, 229, 140, 0.1), transparent 28%),
        linear-gradient(180deg, #05070a 0%, var(--bg) 52%, #080b10 100%);
    color: var(--text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.5;
}

.home-page {
    background:
        linear-gradient(120deg, rgba(25, 229, 140, 0.08) 0 1px, transparent 1px 100%),
        linear-gradient(180deg, #05070a 0%, #080d13 48%, #07090d 100%);
    background-size: 100% 100%, 100% 100%;
}

button,
input,
select,
textarea {
    font: inherit;
}

button {
    min-height: 44px;
}

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

.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px clamp(16px, 3vw, 34px);
    background: rgba(7, 9, 13, 0.86);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(18px);
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text);
    font-size: 16px;
    font-weight: 800;
    letter-spacing: 0;
}

.brand-mark {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--green), var(--blue));
    color: #061014;
    font-weight: 900;
}

.nav-menu {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    color: var(--muted);
    font-size: 14px;
}

.nav-link,
.nav-btn,
.btn-primary,
.btn-secondary,
.btn-danger,
.btn-export,
.btn-success,
.page-btn,
.tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 11px 16px;
    color: var(--text);
    background: rgba(255, 255, 255, 0.06);
    cursor: pointer;
    transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.nav-link:hover,
.nav-btn:hover,
.btn-secondary:hover,
.page-btn:hover,
.tab:hover {
    transform: translateY(-1px);
    border-color: rgba(56, 189, 248, 0.45);
    background: rgba(255, 255, 255, 0.1);
}

.btn-primary,
.btn-success,
.tab.active {
    border-color: rgba(25, 229, 140, 0.55);
    background: linear-gradient(135deg, var(--green), #0fbf78);
    color: #04100b;
    font-weight: 800;
    box-shadow: 0 12px 30px rgba(25, 229, 140, 0.18);
}

.btn-secondary {
    background: rgba(56, 189, 248, 0.12);
}

.btn-danger {
    background: rgba(255, 92, 92, 0.13);
    border-color: rgba(255, 92, 92, 0.35);
}

.btn-export {
    font-weight: 800;
}

.btn-pdf {
    background: rgba(255, 92, 92, 0.16);
    border-color: rgba(255, 92, 92, 0.36);
}

.btn-excel {
    background: rgba(25, 229, 140, 0.16);
    border-color: rgba(25, 229, 140, 0.36);
}

.shell {
    width: min(1600px, calc(100% - 28px));
    margin: 0 auto;
    padding: 22px 0 40px;
}

.hero {
    min-height: calc(100vh - 76px);
    display: grid;
    align-items: center;
    padding: 36px 0 70px;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(340px, 1.05fr);
    gap: clamp(24px, 4vw, 58px);
    align-items: center;
}

.home-hero {
    padding-top: 20px;
}

.hero-copy {
    align-self: center;
}

.home-hero-v2 {
    min-height: calc(100vh - 82px);
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 460px);
    gap: clamp(24px, 5vw, 72px);
    align-items: center;
    padding: clamp(26px, 5vw, 74px) 0 46px;
}

.home-hero-v2 h1 {
    max-width: 760px;
    margin-top: 12px;
    font-size: clamp(48px, 9vw, 104px);
    line-height: 0.9;
    letter-spacing: 0;
}

.home-hero-v2 p {
    max-width: 660px;
    margin-top: 22px;
    color: #c5d0dd;
    font-size: clamp(17px, 2vw, 22px);
}

.home-trust-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
}

.home-trust-row span {
    min-height: 32px;
    padding: 6px 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    color: #b8c2cf;
    background: rgba(255, 255, 255, 0.045);
    font-size: 12px;
    font-weight: 800;
}

.secure-panel {
    position: relative;
    overflow: hidden;
    min-height: 560px;
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 18px;
    background:
        linear-gradient(145deg, rgba(56, 189, 248, 0.12), transparent 42%),
        linear-gradient(315deg, rgba(25, 229, 140, 0.16), transparent 38%),
        rgba(13, 19, 28, 0.94);
    box-shadow: 0 34px 100px rgba(0, 0, 0, 0.48);
}

.secure-panel:before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 34px 34px;
    opacity: 0.42;
    pointer-events: none;
}

.secure-panel > * {
    position: relative;
    z-index: 1;
}

.secure-panel-top {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 12px;
}

.secure-panel-top strong,
.secure-gate strong {
    display: block;
    color: var(--text);
}

.secure-panel-top small {
    color: var(--muted);
}

.secure-panel-top em {
    padding: 5px 9px;
    border-radius: 999px;
    color: #04100b;
    background: var(--green);
    font-size: 11px;
    font-style: normal;
    font-weight: 900;
}

.secure-gate {
    display: grid;
    gap: 14px;
    margin-top: 36px;
    padding: 20px;
    border: 1px solid rgba(25, 229, 140, 0.28);
    border-radius: 10px;
    background: rgba(5, 8, 13, 0.72);
    backdrop-filter: blur(12px);
}

.gate-icon {
    width: 54px;
    height: 54px;
    border-radius: 14px;
    background:
        linear-gradient(135deg, var(--green), var(--blue));
    box-shadow: 0 18px 45px rgba(25, 229, 140, 0.2);
}

.secure-gate strong {
    font-size: 28px;
    line-height: 1.08;
}

.secure-gate p {
    margin: 0;
    color: var(--muted);
    font-size: 15px;
}

.secure-skeleton {
    display: grid;
    gap: 13px;
    margin-top: 26px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
}

.secure-skeleton span {
    height: 13px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(255,255,255,.07), rgba(255,255,255,.18), rgba(255,255,255,.07));
}

.secure-skeleton span:nth-child(1) { width: 46%; }
.secure-skeleton span:nth-child(2) { width: 88%; }
.secure-skeleton span:nth-child(3) { width: 72%; }
.secure-skeleton span:nth-child(4) { width: 58%; }

.home-band {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    padding-bottom: 48px;
}

.home-band article {
    min-height: 170px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.045);
}

.home-band span {
    color: var(--green);
    font-size: 12px;
    font-weight: 900;
}

.home-band strong {
    display: block;
    margin-top: 18px;
    font-size: 20px;
}

.home-band p {
    margin-top: 8px;
    color: var(--muted);
}

.eyebrow,
.section-kicker {
    color: var(--green);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hero h1,
.page-title h1 {
    margin-top: 12px;
    max-width: 820px;
    font-size: clamp(40px, 7vw, 86px);
    line-height: 0.95;
    letter-spacing: 0;
}

.hero p,
.page-title p {
    margin-top: 18px;
    max-width: 680px;
    color: #b8c2cf;
    font-size: clamp(16px, 2vw, 20px);
}

.hero-actions,
.export-buttons,
.toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 26px;
}

.app-actions .btn-primary,
.app-actions .btn-secondary {
    min-width: 170px;
}

.update-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    max-width: 520px;
    margin-top: 16px;
    padding: 12px;
    border: 1px solid rgba(25, 229, 140, 0.35);
    border-radius: 8px;
    background: rgba(25, 229, 140, 0.12);
    color: var(--text);
}

.update-banner button {
    border: 0;
    border-radius: 8px;
    padding: 9px 12px;
    color: #04100b;
    background: var(--green);
    font-weight: 900;
    cursor: pointer;
}

.floating-update-banner {
    position: fixed;
    right: 14px;
    bottom: 14px;
    z-index: 2200;
    width: min(420px, calc(100% - 28px));
    box-shadow: var(--shadow);
}

.phone-preview {
    width: min(390px, 100%);
    min-height: 660px;
    justify-self: center;
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 34px;
    background:
        linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.02)),
        #080d13;
    box-shadow: 0 34px 90px rgba(0, 0, 0, 0.48);
}

.phone-top {
    display: grid;
    grid-template-columns: 28px 1fr auto;
    align-items: center;
    gap: 10px;
    min-height: 46px;
    color: var(--muted);
    font-size: 13px;
}

.phone-top span {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--green), var(--blue));
}

.phone-top strong {
    color: var(--text);
}

.phone-top em {
    padding: 4px 8px;
    border-radius: 999px;
    color: #04100b;
    background: var(--green);
    font-size: 11px;
    font-style: normal;
    font-weight: 900;
}

.phone-kpis {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin: 18px 0;
}

.phone-kpis div,
.phone-list article {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.055);
}

.phone-kpis div {
    padding: 14px;
}

.phone-kpis span,
.phone-list span {
    color: var(--muted);
    font-size: 12px;
}

.phone-kpis strong {
    display: block;
    margin-top: 4px;
    font-size: 24px;
}

.phone-list {
    display: grid;
    gap: 10px;
}

.phone-secure {
    display: grid;
    gap: 12px;
    margin: 18px 0;
    padding: 18px;
    border: 1px solid rgba(25, 229, 140, 0.28);
    border-radius: 8px;
    background: rgba(25, 229, 140, 0.08);
}

.phone-secure strong {
    font-size: 24px;
    line-height: 1.1;
}

.phone-secure p {
    color: var(--muted);
}

.phone-list article {
    display: grid;
    gap: 7px;
    padding: 14px;
}

.phone-list strong {
    font-size: 22px;
}

.phone-list button {
    width: 100%;
    margin-top: 5px;
    border: 0;
    border-radius: 8px;
    background: var(--green);
    color: #04100b;
    font-weight: 900;
}

.locked-preview article {
    min-height: 74px;
    opacity: 0.68;
}

.locked-preview span {
    display: block;
    height: 12px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(255,255,255,.08), rgba(255,255,255,.18), rgba(255,255,255,.08));
}

.locked-preview span:nth-child(1) {
    width: 46%;
}

.locked-preview span:nth-child(2) {
    width: 78%;
}

.locked-preview span:nth-child(3) {
    width: 62%;
}

.hero-visual {
    min-height: 520px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(25, 229, 140, 0.14), transparent 32%),
        linear-gradient(315deg, rgba(56, 189, 248, 0.16), transparent 38%),
        #0d141e;
    box-shadow: var(--shadow);
    overflow: hidden;
    position: relative;
}

.yard-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
    background-size: 44px 44px;
    opacity: 0.45;
}

.route-line {
    position: absolute;
    height: 4px;
    border-radius: 999px;
    background: linear-gradient(90deg, transparent, var(--green), var(--blue), transparent);
    animation: pulseLine 3s ease-in-out infinite;
}

.route-line.one { width: 76%; top: 28%; left: 12%; transform: rotate(8deg); }
.route-line.two { width: 64%; top: 55%; left: 18%; transform: rotate(-11deg); animation-delay: 600ms; }
.route-line.three { width: 52%; top: 75%; left: 28%; transform: rotate(3deg); animation-delay: 1200ms; }

.ops-card {
    position: absolute;
    width: min(330px, 74%);
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(12, 17, 24, 0.88);
    backdrop-filter: blur(14px);
}

.ops-card strong {
    display: block;
    font-size: 26px;
    margin: 6px 0;
}

.ops-card span,
.ops-card small {
    color: var(--muted);
}

.ops-card.a { top: 34px; left: 28px; }
.ops-card.b { right: 28px; bottom: 44px; }

.status-pill {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 4px 10px;
    border-radius: 999px;
    color: #061014;
    background: var(--green);
    font-size: 12px;
    font-weight: 900;
}

.page-title {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: end;
    margin-bottom: 22px;
}

.meta-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin: 0 0 18px;
}

.meta-item,
.kpi-card,
.filters-bar,
.chart-card,
.data-table-container,
.form-card,
.list-card,
.login-card,
.feature-card {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: linear-gradient(180deg, rgba(21, 31, 44, 0.92), rgba(13, 19, 28, 0.94));
    box-shadow: 0 16px 50px rgba(0, 0, 0, 0.22);
}

.meta-item {
    padding: 14px;
}

.meta-item span,
.kpi-title,
.field label,
.form-group label {
    display: block;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.meta-item strong {
    display: block;
    margin-top: 4px;
    font-size: 18px;
}

.filters-bar,
.form-card,
.list-card,
.data-table-container,
.chart-card {
    padding: clamp(16px, 2vw, 22px);
}

.filters-grid,
.form-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(150px, 1fr));
    gap: 12px;
}

.field,
.form-group {
    display: grid;
    gap: 7px;
}

input,
select,
textarea {
    width: 100%;
    min-height: 46px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    padding: 11px 12px;
    background: rgba(4, 8, 13, 0.72);
    color: var(--text);
    outline: none;
}

textarea {
    min-height: 100px;
    resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
    border-color: rgba(56, 189, 248, 0.75);
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.14);
}

.kpi-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(150px, 1fr));
    gap: 12px;
    margin: 18px 0;
}

.kpi-card {
    padding: 16px;
    position: relative;
    overflow: hidden;
}

.kpi-card:before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 3px;
    background: linear-gradient(90deg, var(--green), var(--blue), var(--orange));
}

.kpi-value {
    margin-top: 8px;
    color: var(--text);
    font-size: clamp(24px, 3vw, 34px);
    font-weight: 900;
    line-height: 1;
}

.kpi-unit {
    margin-top: 4px;
    color: var(--muted);
    font-size: 12px;
}

.charts-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.chart-card.wide {
    grid-column: span 2;
}

.chart-title,
.form-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: var(--text);
    font-size: 16px;
    font-weight: 900;
    margin-bottom: 14px;
}

.chart-container {
    position: relative;
    height: 300px;
}

.table-shell {
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.data-table {
    width: 100%;
    min-width: 980px;
    border-collapse: collapse;
}

.data-table th,
.data-table td {
    padding: 13px 12px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    white-space: nowrap;
}

.data-table th {
    color: var(--green);
    background: rgba(255, 255, 255, 0.05);
    cursor: pointer;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.data-table tr:hover td {
    background: rgba(56, 189, 248, 0.06);
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
}

.page-btn.active {
    background: var(--blue);
    color: #041018;
    font-weight: 900;
}

.tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 16px;
}

.viagens-list {
    display: grid;
    gap: 12px;
}

.viagem-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 16px;
    align-items: center;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.045);
}

.viagem-info h4 {
    font-size: 22px;
    margin-bottom: 10px;
}

.viagem-details {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.viagem-detail {
    color: var(--muted);
    font-size: 14px;
}

.viagem-detail strong {
    color: var(--text);
}

.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    inset: 0;
    padding: 18px;
    background: rgba(0, 0, 0, 0.78);
    animation: fadeIn 180ms ease;
}

.modal-content {
    width: min(520px, 100%);
    margin: 8vh auto;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel);
    box-shadow: var(--shadow);
    animation: slideIn 180ms ease;
}

.modal-wide {
    width: min(980px, 100%);
    margin-top: 4vh;
}

.close {
    float: right;
    color: var(--muted);
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
}

.row-actions {
    display: flex;
    gap: 8px;
}

.btn-mini {
    min-height: 36px;
    padding: 7px 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--text);
    background: rgba(255, 255, 255, 0.06);
    cursor: pointer;
    font-size: 12px;
    font-weight: 800;
}

.btn-mini.edit {
    border-color: rgba(56, 189, 248, 0.38);
    background: rgba(56, 189, 248, 0.14);
}

.btn-mini.delete {
    border-color: rgba(255, 92, 92, 0.42);
    background: rgba(255, 92, 92, 0.14);
}

.login-wrap {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 22px;
}

.login-card {
    width: min(460px, 100%);
    padding: clamp(24px, 5vw, 42px);
}

.login-header {
    margin-bottom: 28px;
}

.login-header h1 {
    font-size: 34px;
    line-height: 1;
}

.login-header p,
.error-message {
    margin-top: 10px;
    color: var(--muted);
}

.error-message {
    display: none;
    padding: 12px;
    color: #ffd0d0;
    border: 1px solid rgba(255, 92, 92, 0.45);
    border-radius: 8px;
    background: rgba(255, 92, 92, 0.12);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: -34px;
    padding-bottom: 48px;
}

.feature-card {
    padding: 18px;
}

.feature-card strong {
    display: block;
    margin-bottom: 6px;
    font-size: 18px;
}

.feature-card p {
    color: var(--muted);
}

.site-footer {
    width: min(1600px, calc(100% - 28px));
    margin: 0 auto;
    padding: 18px 0 24px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 13px;
    text-align: center;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from { opacity: 0; transform: translateY(-14px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes pulseLine {
    0%, 100% { opacity: 0.35; filter: blur(0); }
    50% { opacity: 1; filter: blur(1px); }
}

@media (max-width: 1180px) {
    .kpi-grid {
        grid-template-columns: repeat(4, minmax(150px, 1fr));
    }

    .filters-grid,
    .form-grid {
        grid-template-columns: repeat(3, minmax(150px, 1fr));
    }
}

@media (max-width: 880px) {
    .navbar,
    .page-title {
        align-items: stretch;
        flex-direction: column;
    }

    .nav-menu {
        width: 100%;
        justify-content: space-between;
        overflow-x: auto;
    }

    .hero {
        min-height: auto;
        padding-top: 24px;
    }

    .hero-grid,
    .charts-grid,
    .feature-grid {
        grid-template-columns: 1fr;
    }

    .home-nav {
        position: static;
    }

    .home-hero-v2,
    .home-band {
        grid-template-columns: 1fr;
    }

    .secure-panel {
        min-height: auto;
    }

    .hero-visual {
        min-height: 420px;
    }

    .phone-preview {
        min-height: auto;
    }

    .chart-card.wide {
        grid-column: auto;
    }

    .meta-strip,
    .kpi-grid,
    .filters-grid,
    .form-grid,
    .viagem-details {
        grid-template-columns: 1fr 1fr;
    }

    .viagem-card {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    body {
        background:
            linear-gradient(180deg, #05070a 0%, #07090d 46%, #080b10 100%);
    }

    .navbar {
        padding: 12px 9px;
        gap: 8px;
    }

    .nav-brand {
        font-size: 15px;
    }

    .nav-menu {
        display: grid;
        grid-template-columns: 1fr;
        gap: 7px;
        font-size: 12px;
    }

    .nav-link,
    .nav-btn,
    .btn-primary,
    .btn-secondary,
    .btn-danger,
    .btn-export,
    .btn-success,
    .page-btn,
    .tab {
        width: 100%;
        min-height: 48px;
        padding: 10px 11px;
    }

    .shell {
        width: min(100% - 18px, 1600px);
        padding-top: 12px;
    }

    .hero h1,
    .page-title h1 {
        font-size: 42px;
        line-height: 0.98;
    }

    .hero p,
    .page-title p {
        font-size: 16px;
    }

    .home-hero {
        padding: 10px 0 32px;
    }

    .home-hero-v2 {
        min-height: auto;
        padding: 18px 0 30px;
    }

    .home-hero-v2 h1 {
        font-size: 48px;
    }

    .home-hero-v2 p {
        font-size: 16px;
    }

    .home-trust-row {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .home-trust-row span:last-child {
        grid-column: span 2;
    }

    .secure-panel {
        padding: 12px;
        border-radius: 14px;
    }

    .secure-gate {
        margin-top: 22px;
        padding: 16px;
    }

    .secure-gate strong {
        font-size: 23px;
    }

    .home-band article {
        min-height: 0;
    }

    .app-actions .btn-primary,
    .app-actions .btn-secondary {
        min-width: 0;
    }

    .hero-actions,
    .toolbar,
    .export-buttons,
    .tabs,
    .meta-strip,
    .kpi-grid,
    .filters-grid,
    .form-grid,
    .viagem-details {
        grid-template-columns: 1fr;
    }

    .hero-actions,
    .toolbar,
    .export-buttons {
        display: grid;
    }

    .chart-container {
        height: 250px;
    }

    .phone-preview {
        border-radius: 22px;
        padding: 12px;
    }

    .phone-kpis {
        grid-template-columns: 1fr;
    }

    .feature-grid {
        margin-top: 0;
        padding-bottom: 24px;
    }

    .update-banner {
        align-items: stretch;
        flex-direction: column;
    }

    .ops-card {
        width: calc(100% - 36px);
    }

    .ops-card.a,
    .ops-card.b {
        left: 18px;
        right: auto;
    }
}
