/* European Traveler Staff App — mobile-first styles
   Branding matched to the real eupt.online / staff-training portal palette. */

:root {
    --navy: #07335f;
    --royal-blue: #0b61a4;
    --royal-blue-dark: #072c52;
    --gold: #d5a62f;
    --gold-light: #f3cf68;
    --white: #ffffff;
    --bg: #f3f7fa;
    --text: #15283a;
    --muted: #66788a;
    --border: #d9e3ea;
    --danger: #b42318;
    --danger-bg: #fff0ef;
    --success: #16784a;
    --success-bg: #ecfbf4;
    --warning: #765700;
    --warning-bg: #fff4cf;
    --radius: 12px;
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    background: var(--bg);
    color: var(--text);
    font-family: "Avenir Next", Avenir, "Segoe UI", Inter, Helvetica, Arial, "Noto Sans Sinhala", sans-serif;
    font-size: 16px;
    line-height: 1.5;
}

a { color: var(--royal-blue); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 { color: var(--navy); margin: 0 0 0.5rem; }

/* ---------- Auth pages (login/setup) ---------- */
.auth-body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(160deg, var(--navy), var(--royal-blue-dark));
    padding: 1.5rem;
}

.auth-card {
    background: var(--white);
    width: 100%;
    max-width: 400px;
    border-radius: var(--radius);
    padding: 2rem 1.5rem;
    box-shadow: 0 20px 40px rgba(0,0,0,0.25);
    text-align: center;
}

.auth-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: min(100%, 280px);
    padding: 14px 18px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 18px;
    margin-bottom: 1.25rem;
    box-shadow: 0 10px 24px rgba(7, 51, 95, 0.12);
}

.auth-logo img {
    width: 100%;
    height: auto;
    max-height: 120px;
    object-fit: contain;
}

.auth-sub { color: var(--muted); margin-top: -0.25rem; margin-bottom: 1.25rem; font-size: 0.9rem; }
.auth-footer { color: var(--muted); font-size: 0.75rem; margin-top: 1.5rem; }

.auth-form { display: flex; flex-direction: column; gap: 1rem; text-align: left; }
.auth-form label { font-size: 0.85rem; color: var(--muted); display: flex; flex-direction: column; gap: 0.35rem; }

input, select, textarea {
    font-family: inherit;
    font-size: 1rem;
    padding: 0.65rem 0.75rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    background: var(--white);
    width: 100%;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--royal-blue);
    box-shadow: 0 0 0 3px rgba(11, 97, 164, 0.15);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.7rem 1.1rem;
    border-radius: 8px;
    border: none;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
}

.btn-primary { background: var(--royal-blue); color: var(--white); }
.btn-primary:hover { background: var(--royal-blue-dark); text-decoration: none; }
.btn-gold { background: var(--gold); color: var(--navy); }
.btn-gold:hover { background: var(--gold-light); text-decoration: none; }
.btn-ghost { background: var(--white); color: var(--royal-blue); border: 1px solid var(--border); }
.btn-ghost:hover { border-color: var(--royal-blue); text-decoration: none; }
.btn-danger { background: var(--danger-bg); color: var(--danger); }
.btn-danger:hover { text-decoration: none; filter: brightness(0.95); }
.btn-block { width: 100%; }
.btn-sm { padding: 0.4rem 0.7rem; font-size: 0.8rem; }

/* ---------- Alerts ---------- */
.alert {
    padding: 0.7rem 0.9rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    text-align: left;
}
.alert-error { background: var(--danger-bg); color: var(--danger); }
.alert-success { background: var(--success-bg); color: var(--success); }
.alert-warning, .alert-warn { background: var(--warning-bg); color: var(--warning); }

/* ---------- App shell ---------- */
.app-header {
    background: linear-gradient(135deg, var(--navy) 0%, var(--royal-blue-dark) 100%);
    color: var(--white);
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    position: sticky;
    top: 0;
    z-index: 20;
    box-shadow: 0 4px 20px rgba(7, 51, 95, 0.25);
}

.app-header .brand {
    display: flex;
    align-items: center;
    color: var(--white);
    text-decoration: none;
    min-width: 0;
}

.app-header .brand-logo {
    height: 38px;
    width: auto;
    max-width: min(220px, 58vw);
    display: block;
    object-fit: contain;
    background: var(--white);
    border-radius: 8px;
    padding: 4px 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.app-header .user-chip {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.75rem;
    flex-shrink: 0;
}

.app-header .user-chip-name {
    display: none;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.app-header .user-chip-logout {
    color: var(--gold-light);
    font-weight: 600;
    white-space: nowrap;
}

@media (min-width: 480px) {
    .app-header .user-chip-name { display: inline; }
    .app-header .brand-logo { height: 42px; max-width: 260px; }
}

.app-main {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 1rem 5.5rem;
}

.page-dashboard .app-main {
    padding-top: 0;
}

.page-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.page-title h1 { font-size: 1.25rem; }

/* Bottom nav — mobile-first, staff mainly use phones */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--white);
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-around;
    padding: 0.4rem 0.25rem calc(0.4rem + env(safe-area-inset-bottom));
    z-index: 20;
}

.bottom-nav a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.15rem;
    font-size: 0.7rem;
    color: var(--muted);
    padding: 0.3rem 0.5rem;
    border-radius: 8px;
    flex: 1;
    text-align: center;
}

.bottom-nav a.active {
    color: var(--royal-blue);
    background: rgba(11, 97, 164, 0.08);
}

.bottom-nav .icon { font-size: 1.15rem; line-height: 1; }

/* ---------- Cards / lists ---------- */
.card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1rem;
    margin-bottom: 0.9rem;
}

.card-list { display: flex; flex-direction: column; gap: 0.75rem; }

.card-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
}

.card-title { font-weight: 700; color: var(--navy); margin-bottom: 0.15rem; }
.card-sub { color: var(--muted); font-size: 0.85rem; }
.card-meta { font-size: 0.8rem; color: var(--muted); margin-top: 0.35rem; }

.stat-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

.stat-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 0.9rem 0.85rem;
    border: 1px solid var(--border);
    box-shadow: 0 2px 10px rgba(7, 51, 95, 0.05);
    transition: box-shadow 0.15s ease, transform 0.15s ease;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    text-decoration: none;
    color: inherit;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--border);
}

.stat-card:hover {
    box-shadow: 0 8px 22px rgba(7, 51, 95, 0.1);
    transform: translateY(-2px);
    text-decoration: none;
}

.stat-card-icon {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    background: rgba(11, 97, 164, 0.08);
    color: var(--royal-blue);
}

.stat-card-icon svg {
    width: 17px;
    height: 17px;
}

.stat-card .stat-value {
    font-size: 1.65rem;
    font-weight: 800;
    color: var(--navy);
    line-height: 1;
}

.stat-card .stat-label {
    font-size: 0.7rem;
    color: var(--muted);
    line-height: 1.35;
}

.stat-card--warning::before { background: var(--gold); }
.stat-card--warning .stat-card-icon { background: var(--warning-bg); color: var(--warning); }

.stat-card--info::before { background: var(--royal-blue); }
.stat-card--info .stat-card-icon { background: #e3ecff; color: var(--royal-blue); }

.stat-card--success::before { background: var(--success); }
.stat-card--success .stat-card-icon { background: var(--success-bg); color: var(--success); }

.stat-card--clients::before { background: var(--gold); }
.stat-card--clients .stat-card-icon { background: #fff8e6; color: var(--navy); }

/* Zoho-style receivables summary widget */
.receivables-widget {
    display: block;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: 0 4px 14px rgba(7, 51, 95, 0.08);
    margin-bottom: 1.25rem;
    overflow: hidden;
    color: inherit;
}

.receivables-widget:hover {
    box-shadow: 0 8px 20px rgba(7, 51, 95, 0.12);
    text-decoration: none;
}

.receivables-widget-head {
    background: linear-gradient(135deg, var(--navy), var(--royal-blue-dark));
    color: var(--white);
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.receivables-widget-title {
    font-size: 0.85rem;
    font-weight: 700;
}

.receivables-widget-count {
    font-size: 0.72rem;
    background: rgba(255, 255, 255, 0.15);
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
}

.receivables-widget-body {
    padding: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 1.5rem;
}

.receivables-amount {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.receivables-currency {
    font-size: 0.72rem;
    color: var(--muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.receivables-total {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--navy);
}

.receivables-widget-foot {
    padding: 0.55rem 1rem;
    font-size: 0.72rem;
    color: var(--muted);
    border-top: 1px solid var(--border);
    background: #fafcfe;
}

/* ---------- Badges ---------- */
.badge {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    white-space: nowrap;
}

.badge-draft { background: #eceff5; color: var(--muted); }
.badge-pending_approval { background: var(--warning-bg); color: var(--warning); }
.badge-approved { background: #e3ecff; color: var(--royal-blue); }
.badge-sent { background: var(--success-bg); color: var(--success); }
.badge-cancelled { background: var(--danger-bg); color: var(--danger); }

.badge-pending { background: var(--warning-bg); color: var(--warning); }
.badge-paid { background: var(--success-bg); color: var(--success); }
.badge-part_paid { background: #e3ecff; color: var(--royal-blue); }

.badge-admin { background: var(--navy); color: var(--gold-light); }
.badge-supervisor { background: #e3ecff; color: var(--royal-blue); }
.badge-staff { background: #eceff5; color: var(--muted); }

/* ---------- Forms ---------- */
.form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.9rem;
}

@media (min-width: 560px) {
    .form-grid.cols-2 { grid-template-columns: 1fr 1fr; }
}

.form-grid label {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    font-size: 0.85rem;
    color: var(--muted);
}

.form-actions {
    display: flex;
    gap: 0.6rem;
    margin-top: 0.5rem;
    flex-wrap: wrap;
}

.hint { font-size: 0.75rem; color: var(--muted); margin-top: -0.5rem; }

/* ---------- Invoice line items table ---------- */
.item-table { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
.item-table th, .item-table td { padding: 0.5rem 0.4rem; border-bottom: 1px solid var(--border); text-align: left; }
.item-table th { color: var(--muted); font-weight: 600; }
.item-table input { padding: 0.4rem 0.5rem; font-size: 0.85rem; }
.item-table .num { text-align: right; }

.totals-box { margin-top: 0.75rem; text-align: right; }
.totals-box .grand-total { font-size: 1.25rem; font-weight: 800; color: var(--navy); }

.empty-state {
    text-align: center;
    color: var(--muted);
    padding: 2.5rem 1rem;
}

.section-divider {
    border: none;
    border-top: 1px solid var(--border);
    margin: 1.25rem 0;
}

.link-btn {
    background: none;
    border: none;
    color: var(--danger);
    cursor: pointer;
    font-size: 0.8rem;
    padding: 0;
}

/* ---------- Dashboard ---------- */
.dash-hero {
    position: relative;
    margin: 0 -1rem 1.25rem;
    min-height: 168px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    border-radius: 0 0 20px 20px;
}

.dash-hero-bg {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(135deg, rgba(7, 51, 95, 0.92) 0%, rgba(7, 44, 82, 0.78) 55%, rgba(11, 97, 164, 0.55) 100%),
        url("../img/hero.jpg") center / cover no-repeat;
}

.dash-hero-content {
    position: relative;
    z-index: 1;
    padding: 1.5rem 1.25rem 1.35rem;
    color: var(--white);
    width: 100%;
}

.dash-hero-eyebrow {
    margin: 0 0 0.25rem;
    font-size: 0.78rem;
    color: var(--gold-light);
    font-weight: 600;
    letter-spacing: 0.04em;
}

.dash-hero-title {
    margin: 0 0 0.45rem;
    font-size: clamp(1.45rem, 5vw, 1.85rem);
    color: var(--white);
    font-weight: 800;
    line-height: 1.2;
}

.dash-hero-sub {
    margin: 0;
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.88);
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.quick-actions {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.65rem;
    margin-bottom: 1.25rem;
}

.quick-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.45rem;
    padding: 0.85rem 0.5rem;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: 0 3px 12px rgba(7, 51, 95, 0.06);
    text-decoration: none;
    color: var(--navy);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.quick-action:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(7, 51, 95, 0.1);
    text-decoration: none;
}

.quick-action-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
}

.quick-action-icon svg {
    width: 20px;
    height: 20px;
}

.quick-action-icon--clients { background: linear-gradient(135deg, #0b61a4, #07335f); }
.quick-action-icon--invoices { background: linear-gradient(135deg, #d5a62f, #b8860b); color: var(--navy); }
.quick-action-icon--training { background: linear-gradient(135deg, #16784a, #0d5c38); }

.quick-action-label {
    font-size: 0.72rem;
    font-weight: 700;
    text-align: center;
    line-height: 1.25;
}

.dash-section {
    margin-bottom: 1.5rem;
}

.dash-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.dash-section-title {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--navy);
}

.dash-alert {
    margin-bottom: 1rem;
}

.dash-list {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 0.45rem;
    box-shadow: 0 2px 10px rgba(7, 51, 95, 0.04);
}

.dash-list-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.7rem 0.65rem;
    border-radius: 10px;
    text-decoration: none;
    color: inherit;
    transition: background 0.12s ease;
}

.dash-list-item:hover {
    background: #f7fafc;
    text-decoration: none;
}

.dash-avatar {
    width: 40px;
    height: 40px;
    border-radius: 11px;
    background: linear-gradient(135deg, var(--royal-blue), var(--navy));
    color: var(--white);
    font-weight: 800;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.dash-avatar--invoice {
    background: linear-gradient(135deg, var(--gold), #b8860b);
    color: var(--navy);
}

.dash-avatar--invoice svg {
    width: 18px;
    height: 18px;
}

.dash-list-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.dash-list-title {
    font-weight: 700;
    color: var(--navy);
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dash-list-sub {
    font-size: 0.78rem;
    color: var(--muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dash-list-meta {
    font-size: 0.75rem;
    color: var(--muted);
    flex-shrink: 0;
}

.dash-list-end {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.25rem;
    flex-shrink: 0;
}

.dash-list-amount {
    font-weight: 800;
    color: var(--navy);
    font-size: 0.85rem;
}

.dash-empty {
    background: var(--white);
    border: 1px dashed var(--border);
    border-radius: var(--radius);
    padding: 2rem 1rem;
}

.dash-empty .btn {
    margin-top: 0.75rem;
}

/* ---------- Portal hub (owner diagram) ---------- */
.page-hub .dash-hero-duty {
    margin: 0.55rem 0 0;
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.45;
    max-width: 32rem;
}

.hub-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.55rem;
    margin-bottom: 1.25rem;
}

@media (min-width: 480px) {
    .hub-stats { grid-template-columns: repeat(4, 1fr); }
}

.hub-stat {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 0.75rem 0.65rem;
    text-align: center;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 2px 8px rgba(7, 51, 95, 0.05);
}

.hub-stat:hover {
    text-decoration: none;
    box-shadow: 0 6px 16px rgba(7, 51, 95, 0.1);
}

.hub-stat-value {
    display: block;
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--navy);
    line-height: 1.1;
}

.hub-stat-label {
    display: block;
    margin-top: 0.2rem;
    font-size: 0.65rem;
    color: var(--muted);
    line-height: 1.3;
}

.hub-stat--warn .hub-stat-value { color: var(--warning); }

.module-hub-title {
    margin: 0 0 0.25rem;
    font-size: 1rem;
    font-weight: 800;
    color: var(--navy);
}

.module-hub-sub {
    margin: 0 0 1rem;
    font-size: 0.78rem;
    color: var(--muted);
}

.module-grid {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

.module-card {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 1rem;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 14px;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 3px 14px rgba(7, 51, 95, 0.06);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.module-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(7, 51, 95, 0.1);
    text-decoration: none;
}

.module-card-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    min-height: 48px;
    max-width: 48px;
    max-height: 48px;
    border-radius: 13px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--white);
    overflow: hidden;
}

.module-card-icon svg,
.portal-ico {
    width: 22px !important;
    height: 22px !important;
    max-width: 22px !important;
    max-height: 22px !important;
    display: block;
    flex-shrink: 0;
}

.module-card--operations .module-card-icon { background: linear-gradient(135deg, #0b61a4, #07335f); }
.module-card--flights .module-card-icon { background: linear-gradient(135deg, #32a8dd, #1a6fa8); }
.module-card--invoicing .module-card-icon { background: linear-gradient(135deg, #d5a62f, #9a7209); color: var(--navy); }
.module-card--training .module-card-icon { background: linear-gradient(135deg, #16784a, #0d5c38); }
.module-card--customers .module-card-icon { background: linear-gradient(135deg, #5b4bb7, #3d2f8f); }
.module-card--tasks .module-card-icon { background: linear-gradient(135deg, #c45c26, #8f3d14); }

.module-card-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.12rem;
}

.module-card-title {
    font-size: 0.95rem;
    color: var(--navy);
}

.module-card-en {
    font-size: 0.68rem;
    color: var(--muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.module-card-duty {
    font-size: 0.72rem;
    color: var(--muted);
    line-height: 1.35;
}

.module-card-arrow {
    font-size: 1.1rem;
    color: var(--royal-blue);
    font-weight: 700;
    flex-shrink: 0;
}

/* Bottom nav — 6 modules */
.bottom-nav a {
    font-size: 0.58rem;
    padding: 0.35rem 0.2rem;
    gap: 0.1rem;
}

.nav-icon {
    width: 22px;
    height: 22px;
    min-width: 22px;
    min-height: 22px;
    max-width: 22px;
    max-height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.nav-icon svg,
.nav-icon .portal-ico {
    width: 18px !important;
    height: 18px !important;
    max-width: 18px !important;
    max-height: 18px !important;
    display: block;
}

.nav-label {
    display: block;
    line-height: 1.2;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
}

.checkbox-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.35rem;
}

@media (min-width: 480px) {
    .checkbox-grid { grid-template-columns: 1fr 1fr; }
}

.checkbox-inline {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    color: var(--text);
}

.form-grid .full-width { grid-column: 1 / -1; }

.list-cards { display: flex; flex-direction: column; gap: 0.65rem; }

.list-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 0.85rem 1rem;
}

.list-card-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.5rem;
}

.list-card-meta { font-size: 0.85rem; color: var(--muted); margin: 0.35rem 0 0; }

.text-muted { color: var(--muted); }

.bottom-nav a.active .nav-icon {
    color: var(--royal-blue);
}

@media (min-width: 400px) {
    .bottom-nav a { font-size: 0.62rem; }
}

/* Flight fares page */
.page-flights .page-head {
    margin: 0.75rem 0 1rem;
}

.page-flights .page-eyebrow {
    margin: 0 0 0.25rem;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--royal-blue);
}

.page-flights .page-title {
    display: block;
    margin: 0 0 0.35rem;
    font-size: 1.35rem;
    color: var(--navy);
}

.page-flights .page-lede {
    margin: 0;
    font-size: 0.85rem;
    line-height: 1.55;
    color: var(--muted);
}

.flights-notice {
    margin-bottom: 1rem;
    font-size: 0.82rem;
    line-height: 1.5;
}

.flights-widget-card,
.flights-links-card,
.flights-steps-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 1rem;
    margin-bottom: 0.85rem;
    box-shadow: 0 3px 14px rgba(7, 51, 95, 0.05);
}

.flights-section-title {
    margin: 0 0 0.2rem;
    font-size: 0.95rem;
    color: var(--navy);
}

.flights-section-sub {
    margin: 0 0 0.85rem;
    font-size: 0.75rem;
    color: var(--muted);
}

.flights-widget-wrap {
    min-height: 280px;
    overflow: hidden;
    border-radius: 10px;
    background: #f7f9fc;
}

.flights-link-grid {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.flights-link-btn {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.25rem 0.5rem;
    padding: 0.75rem 0.85rem;
    border: 1px solid var(--border);
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    background: linear-gradient(135deg, rgba(50, 168, 221, 0.08), rgba(7, 51, 95, 0.04));
}

.flights-link-btn:hover {
    text-decoration: none;
    border-color: var(--royal-blue);
}

.flights-link-label {
    font-weight: 700;
    color: var(--navy);
    font-size: 0.9rem;
}

.flights-link-si {
    flex: 1;
    font-size: 0.75rem;
    color: var(--muted);
}

.flights-link-arrow {
    color: var(--royal-blue);
    font-weight: 700;
}

.flights-steps {
    margin: 0;
    padding-left: 1.15rem;
    font-size: 0.84rem;
    line-height: 1.65;
    color: var(--text);
}

.flights-steps li + li {
    margin-top: 0.35rem;
}

.flights-steps a {
    color: var(--royal-blue);
    font-weight: 600;
}
