/* =========================================================
   CAR RENTAL MVP - Global Styles
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* --- CSS Variables (Design Tokens) --- */
:root {
    --primary: #0ea5a4;
    --primary-dark: #0f766e;
    --primary-light: #e6fffb;
    --secondary: #172033;
    --secondary-light: #16213E;
    --accent: #f97316;
    --success: #22c55e;
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #3b82f6;

    --bg: #f8f9fb;
    --surface: #ffffff;
    --surface-alt: #f1f3f7;
    --border: #e2e8f0;
    --text: #1e293b;
    --text-muted: #64748b;
    --text-light: #94a3b8;

    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow: 0 4px 16px rgba(0,0,0,0.10);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.15);
    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 20px;
    --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    font-size: 15px;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* --- Container --- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.container-narrow { max-width: 900px; margin: 0 auto; padding: 0 20px; }

/* --- Typography --- */
h1 { font-size: clamp(1.8rem, 4vw, 3rem); font-weight: 800; line-height: 1.2; }
h2 { font-size: clamp(1.4rem, 3vw, 2.2rem); font-weight: 700; line-height: 1.3; }
h3 { font-size: 1.25rem; font-weight: 600; }
h4 { font-size: 1.05rem; font-weight: 600; }
p { color: var(--text-muted); }

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all var(--transition);
    text-align: center;
    white-space: nowrap;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(14,165,164,0.28); }
.btn-secondary { background: var(--secondary); color: #fff; }
.btn-secondary:hover { background: var(--accent); transform: translateY(-1px); }
.btn-outline { background: transparent; border-color: var(--primary); color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-outline-white { background: transparent; border-color: rgba(255,255,255,0.7); color: #fff; }
.btn-outline-white:hover { background: rgba(255,255,255,0.15); }
.btn-sm { padding: 8px 16px; font-size: 0.82rem; }
.btn-lg { padding: 16px 32px; font-size: 1rem; }
.btn-block { width: 100%; justify-content: center; }
.btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

/* --- Form Controls --- */
.form-group { margin-bottom: 20px; }
.form-label { display: block; margin-bottom: 6px; font-weight: 500; font-size: 0.88rem; color: var(--text); }
.form-control {
    width: 100%;
    padding: 11px 16px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.92rem;
    font-family: inherit;
    color: var(--text);
    background: var(--surface);
    transition: border-color var(--transition), box-shadow var(--transition);
}
.form-control:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(14,165,164,0.14); }
.form-control::placeholder { color: var(--text-light); }
select.form-control { cursor: pointer; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath fill='%2364748b' d='M6 8L0 0h12z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 10px; padding-right: 36px; }
.form-error { font-size: 0.8rem; color: var(--danger); margin-top: 5px; }

/* --- Cards --- */
.card {
    background: var(--surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: transform var(--transition), box-shadow var(--transition);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card-body { padding: 24px; }
.card-header { padding: 20px 24px; border-bottom: 1px solid var(--border); font-weight: 600; }
.card-footer { padding: 16px 24px; border-top: 1px solid var(--border); background: var(--surface-alt); }

/* --- Badges --- */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    gap: 4px;
}
.badge-success { background: #dcfce7; color: #16a34a; }
.badge-warning { background: #fef9c3; color: #b45309; }
.badge-danger { background: #fee2e2; color: #b91c1c; }
.badge-info { background: #dbeafe; color: #1d4ed8; }
.badge-primary { background: var(--primary-light); color: var(--primary-dark); }

/* --- Alerts --- */
.alert { padding: 14px 18px; border-radius: var(--radius-sm); font-size: 0.9rem; margin-bottom: 16px; border-left: 4px solid transparent; }
.alert-success { background: #dcfce7; border-color: var(--success); color: #15803d; }
.alert-danger { background: #fee2e2; border-color: var(--danger); color: #b91c1c; }
.alert-warning { background: #fef9c3; border-color: var(--warning); color: #92400e; }
.alert-info { background: #dbeafe; border-color: var(--info); color: #1e40af; }

/* --- Grid --- */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.form-row-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }

/* --- Flex Utilities --- */
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-col { display: flex; flex-direction: column; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.gap-24 { gap: 24px; }

/* --- Spacing --- */
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.section { padding: 72px 0; }
.section-sm { padding: 48px 0; }

/* --- Divider --- */
.divider { border: none; border-top: 1px solid var(--border); margin: 24px 0; }

/* --- Header / Navbar --- */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    padding: 0;
}
.navbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 68px;
    gap: 24px;
}
.navbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--secondary);
}
.navbar-brand .brand-word { color: var(--secondary); }
.navbar-brand .brand-word span { color: var(--primary); }
.navbar-brand .brand-icon {
    width: 40px; height: 40px;
    background: var(--primary);
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem; color: white;
}
.navbar-nav { display: flex; align-items: center; gap: 6px; }
.navbar-nav a {
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text-muted);
    transition: all var(--transition);
}
.navbar-nav a:hover, .navbar-nav a.active { color: var(--primary); background: var(--primary-light); }
.navbar-actions { display: flex; align-items: center; gap: 10px; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 6px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: all var(--transition); }

.account-menu {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.account-trigger {
    width: 44px;
    height: 44px;
    border: 1px solid rgba(14, 165, 164, 0.22);
    border-radius: 999px;
    padding: 0;
    background: linear-gradient(135deg, #ffffff, #e6fffb);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 22px rgba(14, 165, 164, 0.16);
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.account-trigger:hover,
.account-menu.open .account-trigger {
    transform: translateY(-1px);
    border-color: var(--primary);
    box-shadow: 0 12px 30px rgba(14, 165, 164, 0.24);
}

.account-avatar {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.9rem;
}

.account-avatar-lg {
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    font-size: 1.05rem;
}

.account-dropdown {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    width: min(calc(100vw - 28px), 250px);
    background: #ffffff;
    border: 1px solid rgba(219, 228, 238, 0.95);
    border-radius: 16px;
    box-shadow: 0 22px 55px rgba(17, 24, 39, 0.16);
    padding: 10px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity var(--transition), transform var(--transition);
    z-index: 1200;
}

.account-menu.open .account-dropdown {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.account-summary {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(14,165,164,0.10), rgba(249,115,22,0.08));
    margin-bottom: 8px;
}

.account-summary strong {
    display: block;
    color: var(--text);
    font-size: 0.95rem;
    line-height: 1.2;
}

.account-summary small {
    display: block;
    color: var(--text-muted);
    font-size: 0.78rem;
    margin-top: 3px;
}

.account-dropdown a {
    display: flex;
    align-items: center;
    min-height: 40px;
    padding: 9px 12px;
    border-radius: 10px;
    color: var(--text-muted);
    font-size: 0.88rem;
    font-weight: 700;
    transition: all var(--transition);
}

.account-dropdown a:hover {
    background: var(--primary-light);
    color: var(--primary-dark);
}

.account-dropdown .account-danger {
    color: var(--danger);
}

.account-dropdown .account-danger:hover {
    background: #fee2e2;
    color: #b91c1c;
}

.profile-page {
    padding: 42px 20px 72px;
}

.profile-hero-inner {
    display: flex;
    align-items: center;
    gap: 18px;
}

.profile-hero-avatar,
.profile-avatar-large {
    border-radius: 999px;
    background: linear-gradient(135deg, #ffffff, #e6fffb);
    color: var(--primary-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    box-shadow: 0 18px 46px rgba(0,0,0,0.16);
}

.profile-hero-avatar {
    width: 76px;
    height: 76px;
    font-size: 1.8rem;
    flex: 0 0 76px;
}

.profile-layout {
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 26px;
    align-items: start;
}

.profile-panel,
.profile-form-card {
    border: 1px solid rgba(219, 228, 238, 0.95);
    box-shadow: 0 16px 40px rgba(17, 24, 39, 0.08);
}

.profile-panel {
    background: linear-gradient(180deg, #ffffff, #f8fbfd);
    border-radius: var(--radius);
    padding: 24px;
    position: sticky;
    top: 92px;
}

.profile-card-top {
    text-align: center;
    padding-bottom: 22px;
    border-bottom: 1px solid var(--border);
}

.profile-avatar-large {
    width: 88px;
    height: 88px;
    margin: 0 auto 14px;
    font-size: 2rem;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #ffffff;
}

.profile-card-top h2 {
    font-size: 1.15rem;
    margin-bottom: 4px;
}

.profile-meta-list {
    display: grid;
    gap: 12px;
    margin-top: 20px;
}

.profile-meta-list span {
    display: grid;
    gap: 3px;
    padding: 12px;
    border-radius: 12px;
    background: var(--surface-alt);
    color: var(--text-muted);
    font-size: 0.88rem;
    overflow-wrap: anywhere;
}

.profile-meta-list strong {
    color: var(--text);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.profile-main {
    display: grid;
    gap: 22px;
}

.productivity-grid {
    display: grid;
    grid-template-columns: minmax(240px, 0.95fr) minmax(280px, 1.4fr) minmax(220px, 0.85fr);
    gap: 18px;
    align-items: stretch;
}

.next-step-card,
.quick-action-card {
    border: 1px solid rgba(219, 228, 238, 0.9);
    border-radius: var(--radius);
    background:
        linear-gradient(135deg, rgba(14,165,164,0.08), rgba(249,115,22,0.06)),
        linear-gradient(180deg, #ffffff, #fbfdff);
    box-shadow: var(--shadow-sm);
}

.next-step-card {
    padding: 22px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.next-step-card h3 {
    font-size: 1.15rem;
    color: var(--text);
}

.next-step-card p {
    font-size: 0.9rem;
}

.next-step-card .btn {
    align-self: flex-start;
    margin-top: auto;
}

.quick-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.quick-meta > span:not(.badge) {
    border-radius: 999px;
    background: #ffffff;
    border: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 0.78rem;
    font-weight: 800;
    padding: 6px 10px;
}

.quick-action-panel {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.quick-action-card {
    min-height: 116px;
    padding: 18px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.quick-action-card:hover {
    transform: translateY(-3px);
    border-color: rgba(14,165,164,0.28);
    box-shadow: var(--shadow);
}

.quick-action-card strong {
    color: var(--text);
    font-size: 1rem;
}

.quick-action-card span {
    color: var(--text-muted);
    font-size: 0.84rem;
}

.check-list {
    display: grid;
    gap: 9px;
}

.check-list li {
    position: relative;
    padding-left: 20px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.check-list li::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: var(--primary);
    position: absolute;
    left: 0;
    top: 0.62em;
}

.productivity-page-grid {
    display: grid;
    grid-template-columns: minmax(280px, 0.82fr) minmax(320px, 1.18fr);
    gap: 24px;
    align-items: start;
}

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

.productivity-list-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 14px;
    padding: 15px;
    border: 1px solid rgba(219,228,238,0.9);
    border-radius: 14px;
    background: linear-gradient(180deg, #ffffff, #f8fbfd);
}

.productivity-list-row > div {
    min-width: 0;
}

.productivity-list-row strong,
.productivity-list-row span,
.productivity-list-row small {
    display: block;
}

.productivity-list-row strong {
    color: var(--text);
}

.productivity-list-row span {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 4px;
    overflow-wrap: anywhere;
}

.productivity-list-row small,
.productivity-list-row p {
    color: var(--text-light);
    font-size: 0.82rem;
    margin-top: 4px;
}

.productivity-list-row form {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
}

.weekday-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.weekday-pills label {
    cursor: pointer;
}

.weekday-pills input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.weekday-pills span {
    min-width: 44px;
    min-height: 38px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: #ffffff;
    color: var(--text-muted);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.82rem;
}

.weekday-pills input:checked + span {
    background: var(--primary-light);
    border-color: var(--primary);
    color: var(--primary-dark);
}

/* --- Footer --- */
.footer {
    background: var(--secondary);
    color: rgba(255,255,255,0.7);
    padding: 56px 0 28px;
}
.footer h4 { color: #fff; margin-bottom: 16px; font-size: 1rem; }
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a { font-size: 0.88rem; transition: color var(--transition); }
.footer-links a:hover { color: var(--primary); }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    margin-top: 48px;
    padding-top: 24px;
    font-size: 0.83rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

/* --- Page Hero --- */
.page-hero {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--accent) 100%);
    color: white;
    padding: 48px 0;
}
.page-hero h1 { color: white; font-size: 2rem; margin-bottom: 8px; }
.page-hero p { color: rgba(255,255,255,0.7); }

/* --- Breadcrumb --- */
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 0.85rem; color: rgba(255,255,255,0.6); margin-top: 12px; }
.breadcrumb a { color: rgba(255,255,255,0.7); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb-sep { font-size: 0.75rem; }

/* --- Tabs --- */
.tabs { display: flex; gap: 4px; background: var(--surface-alt); border-radius: var(--radius-sm); padding: 4px; margin-bottom: 24px; }
.tab-btn {
    flex: 1; padding: 10px 16px; border: none; background: transparent;
    border-radius: 6px; font-size: 0.88rem; font-weight: 500; cursor: pointer;
    color: var(--text-muted); transition: all var(--transition);
}
.tab-btn.active { background: var(--surface); color: var(--primary); box-shadow: var(--shadow-sm); font-weight: 600; }
.tab-pane { display: none; }
.tab-pane.active { display: block; }

/* --- Table --- */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th { background: var(--surface-alt); padding: 12px 16px; text-align: left; font-size: 0.82rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-muted); }
td { padding: 14px 16px; border-bottom: 1px solid var(--border); font-size: 0.9rem; }
tr:last-child td { border-bottom: none; }
tr:hover td { background: var(--surface-alt); }

/* --- Loading spinner --- */
.spinner { width: 36px; height: 36px; border: 3px solid var(--border); border-top-color: var(--primary); border-radius: 50%; animation: spin 0.7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* --- Responsive --- */
@media (max-width: 768px) {
    .navbar-nav, .navbar-actions .btn { display: none; }
    .nav-toggle { display: flex; }
    .navbar-nav.open { display: flex; flex-direction: column; position: absolute; top: 68px; left: 0; right: 0; background: var(--surface); padding: 16px; border-bottom: 1px solid var(--border); box-shadow: var(--shadow); }
    .footer-bottom { flex-direction: column; text-align: center; }
}

/* --- Enhanced responsive polish --- */
@media (max-width: 900px) {
    .grid-4 { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
    .section { padding: 52px 0; }
    .section-sm { padding: 36px 0; }
}

@media (max-width: 640px) {
    body { font-size: 14px; }
    .container, .container-narrow { padding: 0 16px; }
    .navbar-brand { font-size: 1.05rem; }
    .navbar-brand .brand-icon { width: 34px; height: 34px; }
    .page-hero { padding: 34px 0; }
    .page-hero h1 { font-size: 1.55rem; }
    .btn { width: 100%; justify-content: center; white-space: normal; }
    .btn-sm { width: auto; }
    .tabs { overflow-x: auto; }
    .tab-btn { min-width: max-content; }
    th, td { padding: 10px 12px; }
    .footer { padding-top: 40px; }
}

/* --- Truevel modern design system --- */
:root {
    --primary: #0ea5a4;
    --primary-dark: #0f766e;
    --primary-light: #e6fffb;
    --secondary: #172033;
    --secondary-light: #24324f;
    --accent: #f97316;
    --success: #16a34a;
    --warning: #d97706;
    --danger: #dc2626;
    --info: #2563eb;
    --bg: #f6f8fb;
    --surface: #ffffff;
    --surface-alt: #eef3f8;
    --border: #dbe4ee;
    --text: #111827;
    --text-muted: #5b677a;
    --text-light: #8a97aa;
    --shadow-sm: 0 1px 2px rgba(17, 24, 39, 0.06), 0 1px 3px rgba(17, 24, 39, 0.08);
    --shadow: 0 10px 28px rgba(17, 24, 39, 0.10);
    --shadow-lg: 0 24px 70px rgba(17, 24, 39, 0.16);
    --radius: 14px;
    --radius-sm: 10px;
    --radius-lg: 22px;
}

body {
    background:
        linear-gradient(180deg, rgba(14, 165, 164, 0.06), rgba(246, 248, 251, 0) 360px),
        var(--bg);
    color: var(--text);
    text-rendering: optimizeLegibility;
}

.container { max-width: 1180px; }
h1, h2, h3, h4 { letter-spacing: 0; color: var(--text); }

.navbar {
    background: rgba(255,255,255,0.88);
    box-shadow: 0 8px 24px rgba(17, 24, 39, 0.05);
}

.navbar-brand {
    letter-spacing: 0;
}

.navbar-brand .brand-icon,
.auth-logo .brand-icon,
.sidebar-logo .brand-icon {
    background: linear-gradient(135deg, var(--primary), var(--accent)) !important;
    color: #ffffff;
    font-weight: 900;
    box-shadow: 0 10px 24px rgba(14, 165, 164, 0.25);
}

.navbar-nav a {
    border: 1px solid transparent;
}

.navbar-nav a:hover,
.navbar-nav a.active {
    border-color: rgba(14, 165, 164, 0.18);
}

.btn {
    border-width: 1px;
    box-shadow: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark), #115e59);
    box-shadow: 0 14px 32px rgba(14, 165, 164, 0.28);
}

.btn-outline {
    background: #ffffff;
    border-color: var(--border);
    color: var(--text);
}

.btn-outline:hover {
    border-color: var(--primary);
    background: var(--primary-light);
    color: var(--primary-dark);
}

.form-control {
    background: #fbfdff;
    border-color: var(--border);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.8);
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(14, 165, 164, 0.14);
}

.card,
.service-card,
.tour-card,
.contact-form,
.contact-info,
.about-panel,
.filter-card,
.car-card,
.booking-widget,
.auth-card,
.dashboard-sidebar,
.booking-card-item,
.stat-mini,
.admin-table,
.stat-card {
    border: 1px solid rgba(219, 228, 238, 0.9);
    box-shadow: var(--shadow-sm);
}

.card:hover,
.service-card:hover,
.tour-card:hover,
.car-card:hover,
.booking-card-item:hover {
    box-shadow: var(--shadow);
}

.page-hero {
    background:
        linear-gradient(135deg, rgba(23, 32, 51, 0.96), rgba(15, 118, 110, 0.92)),
        var(--secondary);
}

.footer {
    background: linear-gradient(180deg, #172033, #101624);
}

.footer .navbar-brand .brand-word {
    color: #ffffff;
}

.footer-socials a {
    width: 36px;
    height: 36px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.78);
    border: 1px solid rgba(255,255,255,0.12);
    background: rgba(255,255,255,0.06);
    font-size: 0.78rem;
    font-weight: 800;
}

.footer-socials a:hover {
    color: #ffffff;
    border-color: rgba(14,165,164,0.45);
    background: rgba(14,165,164,0.18);
}

.hero {
    min-height: calc(100vh - 68px) !important;
    background:
        linear-gradient(135deg, rgba(23, 32, 51, 0.94), rgba(15, 118, 110, 0.88)),
        url('https://images.unsplash.com/photo-1503376780353-7e6692767b70?auto=format&fit=crop&w=1800&q=80') center/cover no-repeat !important;
}

.hero-bg { display: none; }
.hero-pill {
    background: rgba(230, 255, 251, 0.14) !important;
    border-color: rgba(230, 255, 251, 0.28) !important;
    color: #99f6e4 !important;
}

.gradient-text {
    background: linear-gradient(90deg, #99f6e4, #fed7aa) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
}

.booking-widget {
    border-radius: var(--radius-lg) !important;
    box-shadow: 0 26px 70px rgba(0, 0, 0, 0.28) !important;
}

.chip,
.toggle-opt,
.cat-chip,
.payment-opt {
    background: #ffffff;
}

.chip:has(input:checked),
.chip:hover,
.toggle-opt:has(input:checked),
.cat-chip:hover,
.cat-chip.active,
.payment-opt:has(input:checked) {
    border-color: var(--primary) !important;
    background: var(--primary-light) !important;
    color: var(--primary-dark) !important;
}

.cat-chip.active {
    background: var(--primary) !important;
    color: #ffffff !important;
}

.price-main,
.tour-price {
    color: var(--primary-dark) !important;
}

.badge-primary {
    background: var(--primary-light);
    color: var(--primary-dark);
}

@media (max-width: 768px) {
    .navbar-nav.open {
        background: rgba(255,255,255,0.98);
        gap: 8px;
    }

    .hero {
        min-height: auto !important;
        padding: 42px 0 !important;
    }

    .hero-stats {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr);
        gap: 12px !important;
    }

    .hero-stat {
        background: rgba(255,255,255,0.09);
        border: 1px solid rgba(255,255,255,0.12);
        border-radius: var(--radius-sm);
        padding: 12px 8px;
    }
}

/* --- Truevel role-wide surface polish --- */
.auth-page {
    background:
        linear-gradient(135deg, rgba(14, 165, 164, 0.11), rgba(249, 115, 22, 0.08)),
        #f7fafc !important;
}

.auth-card {
    border-radius: var(--radius-lg) !important;
    border: 1px solid rgba(219, 228, 238, 0.95) !important;
    box-shadow: 0 24px 72px rgba(17, 24, 39, 0.12) !important;
}

.auth-title {
    color: var(--text);
}

.dashboard-layout,
.detail-layout,
.checkout-layout,
.search-layout {
    gap: 28px !important;
}

.dashboard-sidebar,
.booking-card,
.checkout-card,
.filter-card {
    border-radius: var(--radius) !important;
}

.booking-card-item,
.car-card,
.tour-card,
.service-card {
    background: linear-gradient(180deg, #ffffff, #fbfdff) !important;
}

.car-card-img,
.car-image-placeholder,
.tour-photo {
    background:
        linear-gradient(135deg, rgba(14, 165, 164, 0.14), rgba(249, 115, 22, 0.12)),
        var(--surface-alt) !important;
}

.booking-service,
.service-from,
.price-advance {
    border: 1px solid rgba(14, 165, 164, 0.14);
}

.search-summary-bar {
    background: rgba(255,255,255,0.13) !important;
    border-color: rgba(255,255,255,0.2) !important;
    box-shadow: 0 12px 30px rgba(0,0,0,0.10);
}

.steps {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 14px;
}

.step.active {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark)) !important;
}

@media (max-width: 640px) {
    .auth-card { padding: 24px !important; }
    .hero-stats { grid-template-columns: 1fr !important; }
    .search-summary-bar { display: block !important; }
}

/* --- Truevel unified image and gradient language --- */
:root {
    --gradient-brand: linear-gradient(135deg, #0f766e 0%, #172033 54%, #f97316 120%);
    --gradient-soft: linear-gradient(135deg, rgba(14,165,164,0.12), rgba(249,115,22,0.10));
    --gradient-card: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(248,251,253,0.98));
    --hero-image-default: url('https://images.unsplash.com/photo-1500530855697-b586d89ba3ee?auto=format&fit=crop&w=1800&q=80');
}

.page-hero {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    min-height: 250px;
    display: flex;
    align-items: center;
    background:
        linear-gradient(135deg, rgba(15, 23, 42, 0.88), rgba(15, 118, 110, 0.78), rgba(249, 115, 22, 0.34)),
        var(--page-hero-image, var(--hero-image-default)) center/cover no-repeat !important;
}

.page-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(90deg, rgba(255,255,255,0.09) 1px, transparent 1px),
        linear-gradient(0deg, rgba(255,255,255,0.07) 1px, transparent 1px);
    background-size: 42px 42px;
    mask-image: linear-gradient(90deg, rgba(0,0,0,0.4), transparent 78%);
}

.page-hero .container {
    position: relative;
    z-index: 1;
}

.page-hero h1 {
    max-width: 780px;
    color: #ffffff;
}

.page-hero p {
    max-width: 680px;
    color: rgba(255,255,255,0.82);
}

.page-hero-cars { --page-hero-image: url('https://images.unsplash.com/photo-1449965408869-eaa3f722e40d?auto=format&fit=crop&w=1800&q=80'); }
.page-hero-fleet { --page-hero-image: url('https://images.unsplash.com/photo-1492144534655-ae79c964c9d7?auto=format&fit=crop&w=1800&q=80'); }
.page-hero-checkout { --page-hero-image: url('https://images.unsplash.com/photo-1600320254374-ce2d293c324e?auto=format&fit=crop&w=1800&q=80'); }
.page-hero-dashboard { --page-hero-image: url('https://images.unsplash.com/photo-1544620347-c4fd4a3d5957?auto=format&fit=crop&w=1800&q=80'); }
.page-hero-services { --page-hero-image: url('https://images.unsplash.com/photo-1533473359331-0135ef1b58bf?auto=format&fit=crop&w=1800&q=80'); }
.page-hero-tours { --page-hero-image: url('https://images.unsplash.com/photo-1500530855697-b586d89ba3ee?auto=format&fit=crop&w=1800&q=80'); }
.page-hero-about { --page-hero-image: url('https://images.unsplash.com/photo-1544620347-c4fd4a3d5957?auto=format&fit=crop&w=1800&q=80'); }
.page-hero-contact { --page-hero-image: url('https://images.unsplash.com/photo-1521791136064-7986c2920216?auto=format&fit=crop&w=1800&q=80'); }
.page-hero-driver { --page-hero-image: url('https://images.unsplash.com/photo-1511919884226-fd3cad34687c?auto=format&fit=crop&w=1800&q=80'); }

.section:nth-of-type(even) {
    background:
        linear-gradient(180deg, #ffffff, #f7fbfc);
}

.card,
.admin-table,
.auth-card,
.filter-card,
.booking-widget,
.booking-card-item,
.service-card,
.tour-card,
.trip-card,
.role-card,
.testimonial-card,
.contact-form,
.contact-info,
.about-panel,
.stat-card,
.stat-mini {
    background: var(--gradient-card) !important;
    border-color: rgba(219, 228, 238, 0.86) !important;
    border-radius: var(--radius) !important;
}

.card-header,
.admin-table-header,
.booking-card-header {
    background:
        linear-gradient(180deg, rgba(255,255,255,0.95), rgba(243,247,251,0.9)) !important;
}

.section-tag {
    background: linear-gradient(135deg, rgba(14,165,164,0.12), rgba(249,115,22,0.10)) !important;
    color: var(--primary-dark) !important;
    border: 1px solid rgba(14,165,164,0.18);
}

.spec-item,
.about-panel div,
.tour-meta span {
    background: linear-gradient(135deg, #f8fbfd, #eefbf9) !important;
    border: 1px solid rgba(219, 228, 238, 0.8);
}

.detail-img-box img,
.booking-summary-card img,
.car-card-img img,
.service-image img,
.tour-photo img,
.trip-card img,
.about-visual img,
.contact-info img {
    filter: saturate(1.05) contrast(1.02);
}

.detail-img-box {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.detail-img-box img {
    border-radius: var(--radius-lg) !important;
    min-height: 360px;
}

.detail-img-box::after,
.car-card-img::after,
.service-image::after,
.tour-photo::after,
.trip-card::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(180deg, transparent 52%, rgba(15,23,42,0.20));
}

.car-card {
    border-radius: 22px !important;
}

.car-card-img,
.service-image,
.tour-photo,
.trip-card {
    position: relative;
}

.car-category-badge {
    background: rgba(15,23,42,0.72) !important;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.18);
}

.price-main,
.stat-mini span,
.stat-card-value {
    background: linear-gradient(135deg, var(--primary-dark), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent !important;
}

.dashboard-sidebar,
.filter-card,
.booking-summary-card,
.booking-card {
    position: sticky;
    top: 88px;
}

.payment-opt,
.chip,
.toggle-opt,
.filter-check {
    border-radius: 999px !important;
}

.empty-state {
    background:
        linear-gradient(135deg, rgba(255,255,255,0.92), rgba(230,255,251,0.86)),
        var(--surface) !important;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.car-placeholder,
.car-image-placeholder,
.empty-icon {
    color: transparent;
    background:
        linear-gradient(135deg, rgba(15,23,42,0.08), rgba(14,165,164,0.18)),
        url('https://images.unsplash.com/photo-1542362567-b07e54358753?auto=format&fit=crop&w=900&q=80') center/cover no-repeat !important;
}

.auth-page {
    background:
        linear-gradient(135deg, rgba(15,23,42,0.70), rgba(15,118,110,0.70)),
        url('https://images.unsplash.com/photo-1511919884226-fd3cad34687c?auto=format&fit=crop&w=1800&q=80') center/cover no-repeat fixed !important;
}

.auth-card {
    backdrop-filter: blur(18px);
}

@media (max-width: 760px) {
    .page-hero {
        min-height: 210px;
    }

    .dashboard-sidebar,
    .filter-card,
    .booking-summary-card,
    .booking-card {
        position: static !important;
    }

    .detail-img-box img {
        min-height: 260px;
    }
}

/* --- Truevel global search, top bars, media and admin controls --- */
.utility-bar {
    background: linear-gradient(90deg, #101624, #0f766e 52%, #f97316 140%);
    color: rgba(255,255,255,0.9);
    font-size: 0.82rem;
}

.utility-inner {
    min-height: 42px;
    display: grid;
    grid-template-columns: auto minmax(160px, 1fr) minmax(260px, 360px);
    align-items: center;
    gap: 18px;
}

.support-link {
    color: #ffffff;
    font-weight: 800;
    white-space: nowrap;
}

.update-ticker,
.admin-update-ticker {
    overflow: hidden;
    mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.ticker-track {
    display: flex;
    width: max-content;
    gap: 28px;
    animation: tickerMove 24s linear infinite;
}

.ticker-track span {
    white-space: nowrap;
}

@keyframes tickerMove {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

.global-search,
.admin-global-search,
.search-page-form,
.admin-search-panel {
    display: flex;
    align-items: center;
    gap: 8px;
}

.global-search input,
.global-search button,
.admin-global-search input,
.admin-global-search select,
.admin-global-search button,
.search-page-form input,
.search-page-form select,
.admin-search-panel input,
.admin-search-panel select {
    border: 1px solid rgba(219, 228, 238, 0.9);
    border-radius: 999px;
    min-height: 34px;
    padding: 7px 12px;
    font: inherit;
}

.global-search input,
.admin-global-search input,
.search-page-form input,
.admin-search-panel input {
    min-width: 0;
    flex: 1;
}

.global-search button,
.admin-global-search button {
    border: 0;
    color: #ffffff;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    font-weight: 800;
    cursor: pointer;
}

.footer {
    background:
        linear-gradient(135deg, rgba(14,165,164,0.12), rgba(249,115,22,0.10)),
        linear-gradient(180deg, #172033, #101624) !important;
}

.footer-search-band {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 20px;
    align-items: center;
    padding: 22px;
    margin-bottom: 38px;
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: 24px;
    background:
        linear-gradient(135deg, rgba(255,255,255,0.10), rgba(255,255,255,0.035)),
        linear-gradient(90deg, rgba(14,165,164,0.22), rgba(249,115,22,0.10));
}

.footer-search-band span {
    display: block;
    color: #99f6e4;
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.footer-search-band h3 {
    color: #ffffff;
    font-size: 1.15rem;
}

.footer-keywords,
.keyword-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.footer-keywords a,
.keyword-grid a {
    border-radius: 999px;
    padding: 7px 12px;
    font-size: 0.82rem;
    font-weight: 800;
    text-transform: capitalize;
}

.footer-keywords a {
    color: rgba(255,255,255,0.86);
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
}

.footer-keywords a:hover {
    color: #ffffff;
    background: rgba(14,165,164,0.20);
}

.keyword-grid a {
    color: var(--primary-dark);
    background: var(--primary-light);
    border: 1px solid rgba(14,165,164,0.18);
}

.section:nth-of-type(3n) {
    background:
        linear-gradient(135deg, rgba(14,165,164,0.08), rgba(249,115,22,0.06)),
        linear-gradient(180deg, #ffffff, #f7fbfc) !important;
}

.section:nth-of-type(4n) {
    background:
        linear-gradient(135deg, rgba(23,32,51,0.04), rgba(14,165,164,0.08)),
        #ffffff !important;
}

.process-card::before,
.role-card::before {
    content: none !important;
}

.search-page-form,
.admin-search-panel,
.keyword-panel,
.search-result-summary {
    background: var(--gradient-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: 16px;
}

.search-page-form,
.admin-search-panel {
    margin-bottom: 22px;
}

.search-result-summary {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 22px;
}

.search-result-summary strong {
    font-size: 2rem;
    color: var(--primary-dark);
}

.global-result-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.result-card {
    background: var(--gradient-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    padding: 18px;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
}

.result-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
    border-color: rgba(14,165,164,0.32);
}

.result-card span {
    display: inline-flex;
    color: var(--primary-dark);
    background: var(--primary-light);
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 0.72rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 10px;
}

.result-card img {
    width: calc(100% + 36px);
    height: 170px;
    margin: -18px -18px 14px;
    object-fit: cover;
}

.result-card h3 {
    font-size: 1.02rem;
    margin-bottom: 6px;
}

.media-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    padding: 20px;
}

.media-card {
    background: var(--gradient-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.media-card img {
    width: 100%;
    height: 170px;
    object-fit: cover;
}

.media-document-tile {
    height: 170px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1.6rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    background: linear-gradient(135deg, var(--secondary), var(--primary-dark));
}

.media-card-body {
    padding: 14px;
}

.media-card-body span {
    color: var(--primary-dark);
    font-size: 0.72rem;
    font-weight: 900;
    text-transform: uppercase;
}

.media-card-body strong {
    display: block;
    margin: 5px 0 10px;
    color: var(--text);
}

.media-url-input {
    font-size: 0.76rem;
}

.media-card-actions {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}

.admin-page-hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    padding: 24px;
    color: #ffffff;
    border-radius: var(--radius-lg);
    background:
        linear-gradient(135deg, rgba(15,23,42,0.92), rgba(15,118,110,0.84), rgba(249,115,22,0.26)),
        url('https://images.unsplash.com/photo-1549924231-f129b911e442?auto=format&fit=crop&w=1400&q=80') center/cover no-repeat;
    box-shadow: var(--shadow);
}

.admin-page-hero span {
    color: #99f6e4;
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.admin-page-hero h2,
.admin-page-hero p {
    color: #ffffff;
}

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

.dev-link-grid a {
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 12px 14px;
    font-weight: 800;
    color: var(--primary-dark);
    background: linear-gradient(135deg, #ffffff, #eefbf9);
}

.media-filter-actions {
    display: flex;
    align-items: end;
}

.booking-widget-subtitle {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin: -10px 0 16px;
}

.ride-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.ride-form-grid .form-group:first-child,
.ride-form-grid .form-group:nth-child(2),
.ride-form-grid .form-group:nth-child(3) {
    grid-column: span 2;
}

.booking-quick-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 14px;
}

.booking-quick-links a {
    color: var(--primary-dark);
    background: linear-gradient(135deg, rgba(14,165,164,0.12), rgba(249,115,22,0.10));
    border: 1px solid rgba(14,165,164,0.18);
    border-radius: 999px;
    padding: 7px 11px;
    font-size: 0.78rem;
    font-weight: 800;
}

.utility-inner {
    grid-template-columns: auto minmax(160px, 1fr) !important;
}

.nav-global-search {
    width: min(32vw, 340px);
}

.nav-global-search input {
    background: #ffffff;
    box-shadow: inset 0 0 0 1px rgba(219, 228, 238, 0.45);
}

.auth-combo-btn {
    white-space: nowrap;
}

.search-short {
    display: none;
}

.search-collapsible {
    width: 44px;
    min-width: 44px;
    justify-content: flex-end;
    flex-wrap: nowrap !important;
    transition: width 0.24s ease;
}

.search-collapsible input {
    width: 0 !important;
    min-width: 0 !important;
    flex: 0 0 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    border-color: transparent !important;
    opacity: 0;
    pointer-events: none;
    transition: all 0.22s ease;
}

.search-collapsible.open {
    width: min(32vw, 340px);
}

.search-collapsible.open input {
    width: 100% !important;
    flex: 1 1 auto !important;
    padding-left: 14px !important;
    padding-right: 14px !important;
    border-color: rgba(219, 228, 238, 0.9) !important;
    opacity: 1;
    pointer-events: auto;
}

.search-icon-btn {
    width: 42px;
    min-width: 42px;
    height: 42px;
    border-radius: 999px !important;
    padding: 0 !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.search-icon-shape {
    width: 15px;
    height: 15px;
    border: 2px solid currentColor;
    border-radius: 999px;
    position: relative;
}

.search-icon-shape::after {
    content: "";
    width: 7px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
    position: absolute;
    right: -6px;
    bottom: -3px;
    transform: rotate(45deg);
}

@media (max-width: 1000px) {
    .global-result-grid,
    .media-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .utility-inner,
    .footer-search-band {
        grid-template-columns: 1fr;
    }

    .global-search,
    .search-page-form,
    .admin-search-panel {
        width: 100%;
        flex-wrap: wrap;
    }

    .global-search input,
    .search-page-form input,
    .admin-search-panel input {
        flex-basis: 100%;
    }

    .global-result-grid,
    .media-grid,
    .ride-form-grid,
    .dev-link-grid {
        grid-template-columns: 1fr;
    }

    .ride-form-grid .form-group:first-child,
    .ride-form-grid .form-group:nth-child(2),
    .ride-form-grid .form-group:nth-child(3) {
        grid-column: auto;
    }

    .admin-page-hero {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 900px) {
    .nav-global-search {
        width: 44px;
    }
}

@media (max-width: 768px) {
    .navbar-inner {
        height: auto;
        min-height: 68px;
        flex-wrap: wrap;
        padding: 10px 0;
        gap: 10px;
    }

    .navbar-nav {
        display: none;
    }

    .navbar-actions {
        order: 3;
        width: 100%;
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 10px;
    }

    .navbar-actions .btn {
        display: inline-flex;
    }

    .nav-global-search {
        width: 44px;
    }

    .nav-global-search.open {
        width: min(100%, 240px);
    }

    .navbar-actions.search-active {
        grid-template-columns: 1fr;
    }

    .navbar-actions.search-active .nav-global-search.open {
        width: 100%;
    }

    .navbar-actions.search-active .auth-combo-btn,
    .navbar-actions.search-active .btn[href*="logout.php"],
    .navbar-actions.search-active .btn[href*="dashboard.php"],
    .navbar-actions.search-active .account-menu {
        display: none;
    }

    .nav-toggle {
        display: flex;
        margin-left: auto;
    }

    .navbar-nav.open {
        top: 122px;
    }
}

@media (max-width: 520px) {
    .utility-inner {
        grid-template-columns: 1fr !important;
    }

    .navbar-actions {
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
    }

    .navbar-actions .nav-global-search {
        flex-wrap: nowrap;
    }

    .navbar-actions .nav-global-search input {
        flex-basis: auto;
        min-width: 0;
    }

    .navbar-actions .nav-global-search button {
        width: 42px;
        min-width: 42px;
        padding-left: 0;
        padding-right: 0;
        overflow: hidden;
    }
}

/* --- Mobile navigation polish --- */
@media (max-width: 768px) {
    .navbar {
        overflow: visible;
    }

    .navbar-inner {
        position: relative;
    }

    .nav-toggle {
        width: 46px;
        height: 46px;
        border: 1px solid rgba(14,165,164,0.18);
        border-radius: 14px;
        background:
            linear-gradient(135deg, rgba(255,255,255,0.95), rgba(238,251,249,0.95));
        box-shadow: 0 10px 24px rgba(17, 24, 39, 0.10);
        align-items: center;
        justify-content: center;
        transition: all var(--transition);
    }

    .nav-toggle span {
        width: 20px;
        height: 2px;
        background: var(--secondary);
        transform-origin: center;
    }

    .nav-toggle.active {
        background: linear-gradient(135deg, var(--primary), var(--primary-dark));
        border-color: transparent;
    }

    .nav-toggle.active span {
        background: #ffffff;
    }

    .nav-toggle.active span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
        transform: scaleX(0);
    }

    .nav-toggle.active span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    .navbar-nav {
        display: none;
        position: absolute;
        left: 0;
        right: 0;
        top: calc(100% + 10px) !important;
        z-index: 1200;
        padding: 12px;
        border: 1px solid rgba(219, 228, 238, 0.9);
        border-radius: 22px;
        background:
            linear-gradient(135deg, rgba(255,255,255,0.98), rgba(238,251,249,0.96));
        box-shadow: 0 24px 60px rgba(17, 24, 39, 0.18);
        backdrop-filter: blur(18px);
    }

    .navbar-nav.open {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        animation: mobileMenuIn 0.22s ease both;
    }

    .navbar-nav li {
        width: 100%;
    }

    .navbar-nav a {
        min-height: 46px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 14px;
        color: var(--text);
        background: #ffffff;
        border: 1px solid rgba(219, 228, 238, 0.88);
        box-shadow: 0 8px 18px rgba(17, 24, 39, 0.05);
        font-weight: 800;
    }

    .navbar-nav a:hover,
    .navbar-nav a.active {
        color: #ffffff;
        border-color: transparent;
        background: linear-gradient(135deg, var(--primary), var(--primary-dark));
        box-shadow: 0 12px 26px rgba(14, 165, 164, 0.22);
    }
}

@media (max-width: 420px) {
    .navbar-nav.open {
        grid-template-columns: 1fr;
    }
}

@keyframes mobileMenuIn {
    from { opacity: 0; transform: translateY(-8px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

/* --- Corporate portal and invoice surfaces --- */
.corporate-portal-hero {
    min-height: 280px;
}

.corporate-portal-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 24px;
}

.corporate-portal-nav a {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 9px 16px;
    border: 1px solid var(--border);
    color: var(--text-muted);
    background: #ffffff;
    font-weight: 800;
    box-shadow: var(--shadow-sm);
}

.corporate-portal-nav a.active,
.corporate-portal-nav a:hover {
    color: #ffffff;
    border-color: transparent;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    box-shadow: 0 14px 30px rgba(14,165,164,0.22);
}

.corporate-portal-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 22px;
    align-items: start;
}

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

.corporate-list-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 14px;
    border: 1px solid rgba(219,228,238,0.86);
    border-radius: 14px;
    background: linear-gradient(180deg, #ffffff, #f8fbfd);
}

.corporate-list-row strong,
.corporate-list-row span {
    display: block;
}

.corporate-list-row span:not(.badge) {
    color: var(--text-muted);
    font-size: 0.84rem;
    margin-top: 3px;
}

.corporate-contract-card h3 {
    margin: 12px 0 8px;
}

.corporate-card-metrics {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.corporate-card-metrics div {
    border: 1px solid rgba(219,228,238,0.86);
    border-radius: 14px;
    padding: 12px;
    background: rgba(255,255,255,0.72);
}

.corporate-card-metrics strong,
.corporate-card-metrics span {
    display: block;
}

.corporate-card-metrics span {
    color: var(--text-muted);
    font-size: 0.76rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.invoice-body {
    min-height: 100vh;
    background:
        linear-gradient(135deg, rgba(14,165,164,0.08), rgba(249,115,22,0.06)),
        #eef3f7;
    padding: 28px;
}

.invoice-sheet {
    max-width: 920px;
    margin: 0 auto;
    padding: 42px;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 24px;
    box-shadow: 0 24px 70px rgba(17,24,39,0.14);
}

.invoice-actions {
    display: flex;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 28px;
}

.invoice-header,
.invoice-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
}

.invoice-header {
    align-items: start;
    padding-bottom: 28px;
    border-bottom: 1px solid var(--border);
}

.invoice-brand {
    margin-bottom: 10px;
}

.invoice-title {
    text-align: right;
}

.invoice-title span,
.invoice-label {
    color: var(--primary-dark);
    font-size: 0.76rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.invoice-title h1 {
    font-size: 1.8rem;
    margin-top: 6px;
}

.invoice-grid {
    margin: 30px 0;
}

.invoice-grid h3 {
    margin: 8px 0;
}

.invoice-table {
    width: 100%;
    border-collapse: collapse;
    overflow: hidden;
    border-radius: 16px;
}

.invoice-table th,
.invoice-table td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
    text-align: left;
}

.invoice-table th:last-child,
.invoice-table td:last-child {
    text-align: right;
}

.invoice-table thead th {
    background: #f3f7fb;
}

.invoice-table tfoot th {
    font-size: 1rem;
    background: #fbfdff;
}

.invoice-note {
    margin-top: 28px;
    padding: 18px;
    border-radius: 16px;
    background: #f8fbfd;
    border: 1px solid var(--border);
}

.invoice-footer {
    margin-top: 36px;
    padding-top: 18px;
    border-top: 1px solid var(--border);
    font-size: 0.84rem;
}

@media (max-width: 780px) {
    .corporate-portal-grid,
    .invoice-header,
    .invoice-grid {
        grid-template-columns: 1fr;
    }

    .invoice-title {
        text-align: left;
    }

    .invoice-body {
        padding: 12px;
    }

    .invoice-sheet {
        padding: 24px 18px;
        border-radius: 18px;
    }
}

@media print {
    .no-print {
        display: none !important;
    }

    .invoice-body {
        background: #ffffff;
        padding: 0;
    }

    .invoice-sheet {
        box-shadow: none;
        border: 0;
        border-radius: 0;
        max-width: none;
        padding: 0;
    }
}

/* --- Device perfection pass: shared responsive stability --- */
html,
body {
    max-width: 100%;
    overflow-x: hidden;
}

body {
    min-width: 320px;
}

main,
section,
.container,
.container-narrow,
.card,
.admin-table,
.booking-widget,
.car-card,
.tour-card,
.service-card,
.result-card,
.media-card,
.corporate-card,
.confirmation-card,
.invoice-sheet {
    min-width: 0;
}

a,
button,
input,
select,
textarea,
.btn,
.badge,
.form-control,
.stat-card-value,
.price-main,
.booking-ref {
    overflow-wrap: anywhere;
}

.btn {
    min-height: 42px;
    line-height: 1.2;
}

.btn-sm {
    min-height: 36px;
}

.form-control,
button,
select,
textarea {
    min-height: 42px;
}

.table-wrap {
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.table-wrap table {
    min-width: 720px;
}

.admin-table,
.table-wrap {
    border-radius: var(--radius);
}

.page-hero {
    padding: clamp(34px, 6vw, 70px) 0;
}

.page-hero h1 {
    font-size: clamp(1.75rem, 5vw, 3rem);
}

.hero-text h1,
.hero-text h1 span {
    color: #ffffff !important;
    max-width: 760px;
    overflow-wrap: break-word;
    text-wrap: balance;
}

.hero-text .gradient-text {
    color: transparent !important;
    -webkit-text-fill-color: transparent !important;
}

.hero-text {
    max-width: 100%;
}

.page-hero p,
.hero-text p,
.section-header p {
    font-size: clamp(0.95rem, 2vw, 1.05rem);
}

.section-header {
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
}

.grid > *,
.hero-content > *,
.search-layout > *,
.detail-layout > *,
.checkout-layout > *,
.dashboard-layout > *,
.corporate-portal-grid > *,
.contact-grid > *,
.about-grid > *,
.experience-grid > *,
.confidence-layout > * {
    min-width: 0;
}

.card-header.flex-between,
.results-header,
.dashboard-toolbar,
.admin-table-header,
.booking-card-header,
.booking-card-footer,
.corporate-list-row,
.admin-page-hero {
    flex-wrap: wrap;
}

.car-card-img img,
.service-image img,
.tour-photo img,
.trip-card img,
.detail-img-box img,
.about-visual img,
.experience-visual img,
.contact-info img {
    width: 100%;
    object-fit: cover;
}

.dashboard-filter,
.car-card-actions,
.booking-actions,
.media-card-actions,
.corp-row-actions,
.corporate-card-actions,
.invoice-actions,
.hero-actions {
    flex-wrap: wrap;
}

@media (hover: none) {
    .card:hover,
    .service-card:hover,
    .tour-card:hover,
    .car-card:hover,
    .booking-card-item:hover,
    .result-card:hover,
    .corporate-card:hover,
    .trip-card:hover {
        transform: none;
    }
}

@media (max-width: 1024px) {
    .container,
    .container-narrow {
        padding-left: 18px;
        padding-right: 18px;
    }

    .hero {
        min-height: auto !important;
        padding: 56px 0 !important;
    }

    .hero-content,
    .experience-grid,
    .confidence-layout,
    .about-grid,
    .contact-grid,
    .search-layout,
    .detail-layout,
    .checkout-layout,
    .dashboard-layout,
    .corporate-portal-grid {
        grid-template-columns: 1fr !important;
    }

    .filter-sidebar,
    .dashboard-sidebar,
    .booking-card,
    .booking-summary-card {
        position: static !important;
    }

    .fleet-showcase,
    .trip-grid,
    .role-grid,
    .testimonial-grid,
    .global-result-grid,
    .media-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    .process-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    .fleet-card-featured {
        grid-row: auto !important;
        min-height: 280px !important;
    }

    .booking-widget {
        max-width: 720px;
        margin-left: auto !important;
        margin-right: auto !important;
    }
}

@media (max-width: 768px) {
    body {
        font-size: 15px;
    }

    .utility-bar {
        position: relative;
        z-index: 1002;
    }

    .utility-inner {
        min-height: auto;
        padding-top: 8px;
        padding-bottom: 8px;
        gap: 8px;
    }

    .support-link {
        font-size: 0.78rem;
    }

    .navbar {
        position: sticky;
        top: 0;
    }

    .navbar-inner {
        min-height: 64px;
        align-items: center;
    }

    .navbar-brand {
        flex: 1 1 auto;
        min-width: 0;
    }

    .navbar-brand .brand-word {
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .navbar-actions {
        order: 2;
        width: auto;
        flex: 0 1 auto;
        grid-template-columns: auto auto;
    }

    .nav-toggle {
        order: 3;
        flex: 0 0 auto;
    }

    .navbar-actions .btn {
        max-width: 132px;
        padding-left: 12px;
        padding-right: 12px;
        font-size: 0.8rem;
    }

    .navbar-actions.search-active {
        width: 100%;
        order: 4;
    }

    .navbar-actions.search-active .nav-global-search.open {
        width: 100%;
    }

    .navbar-nav.open {
        max-height: min(70vh, 520px);
        overflow-y: auto;
    }

    .hero-text {
        text-align: left !important;
    }

    .hero-text h1 {
        max-width: min(100%, 340px) !important;
        font-size: clamp(1.8rem, 8vw, 2.25rem) !important;
        line-height: 1.12 !important;
    }

    .hero-text p {
        max-width: 100% !important;
    }

    .hero-actions,
    .hero-badges {
        justify-content: flex-start !important;
    }

    .hero-actions .btn,
    .driver-cta .btn,
    .confirmation-card .btn,
    .checkout-layout .btn,
    .dashboard-filter .btn {
        width: 100%;
    }

    .hero-stats {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }

    .booking-widget {
        padding: 22px !important;
        border-radius: 18px !important;
    }

    .ride-form-grid,
    .form-row-2,
    .specs-grid,
    .payment-methods,
    .corporate-card-metrics {
        grid-template-columns: 1fr !important;
    }

    .payment-methods {
        display: grid;
    }

    .payment-opt,
    .toggle-group,
    .toggle-opt {
        width: 100%;
    }

    .toggle-group {
        flex-direction: column;
    }

    .car-card {
        grid-template-columns: 1fr !important;
    }

    .car-card-img {
        min-height: 210px;
    }

    .car-card-img img {
        min-height: 210px;
    }

    .car-card-body,
    .car-card-price {
        width: 100%;
        text-align: left !important;
    }

    .car-card-actions {
        justify-content: stretch !important;
    }

    .car-card-actions .btn {
        flex: 1 1 130px;
    }

    .results-header {
        align-items: stretch;
    }

    .results-header .form-control {
        width: 100% !important;
    }

    .search-summary-bar {
        border-radius: 18px !important;
        width: 100%;
    }

    .search-summary-bar span,
    .search-summary-bar a {
        width: 100%;
        justify-content: center;
    }

    .checkout-steps {
        display: grid !important;
        grid-template-columns: 1fr;
        gap: 8px !important;
    }

    .step {
        width: 100%;
        border-radius: 14px !important;
        text-align: center;
        white-space: normal !important;
    }

    .step-line {
        display: none;
    }

    .confirmation-card,
    .invoice-sheet {
        padding: 24px 18px !important;
    }

    .detail-row,
    .policy-item,
    .corporate-list-row {
        align-items: flex-start !important;
        flex-direction: column;
    }

    .detail-row strong,
    .policy-item strong,
    .corporate-list-row .badge {
        align-self: flex-start;
    }

    .footer-search-band {
        padding: 18px !important;
        border-radius: 18px !important;
    }
}

@media (max-width: 560px) {
    .container,
    .container-narrow {
        padding-left: 14px;
        padding-right: 14px;
    }

    .section {
        padding: 42px 0;
    }

    .section-sm {
        padding: 32px 0;
    }

    .page-hero {
        min-height: 180px !important;
        padding: 32px 0 !important;
    }

    .page-hero::after {
        background-size: 32px 32px;
    }

    .navbar-actions {
        width: 100%;
        display: grid;
        grid-template-columns: 44px minmax(0, 1fr);
    }

    .navbar-actions .auth-combo-btn,
    .navbar-actions .btn[href*="logout.php"],
    .navbar-actions .btn[href*="dashboard.php"],
    .navbar-actions .btn[href*="corporate/index.php"] {
        max-width: none;
        width: 100%;
    }

    .account-trigger {
        width: 42px;
        height: 42px;
    }

    .account-avatar {
        width: 32px;
        height: 32px;
    }

    .account-dropdown {
        right: -2px;
    }

    .nav-toggle {
        position: absolute;
        right: 14px;
        top: 9px;
    }

    .navbar-brand {
        padding-right: 58px;
    }

    .navbar-nav.open {
        top: calc(100% + 8px) !important;
    }

    .hero-stats,
    .fleet-showcase,
    .trip-grid,
    .role-grid,
    .testimonial-grid,
    .global-result-grid,
    .media-grid,
    .process-grid,
    .confidence-grid,
    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr !important;
    }

    .home-service-card,
    .tour-card,
    .trip-card,
    .role-card,
    .process-card,
    .fleet-card {
        border-radius: 18px !important;
    }

    .home-service-card {
        min-height: 270px;
    }

    .hero-text h1 {
        max-width: min(100%, 320px) !important;
        font-size: clamp(1.62rem, 7.4vw, 1.9rem) !important;
    }

    .service-image,
    .tour-photo,
    .trip-card img,
    .media-card img,
    .media-document-tile {
        height: 180px !important;
    }

    .experience-visual,
    .experience-visual img,
    .about-visual,
    .about-visual img {
        min-height: 300px !important;
    }

    .about-visual .about-panel {
        position: static !important;
        margin: -28px 12px 12px;
        z-index: 2;
        position: relative !important;
    }

    .floating-trip-card {
        left: 12px !important;
        right: 12px !important;
        bottom: 12px !important;
    }

    .card-body,
    .card-header,
    .card-footer {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }

    .auth-page {
        padding: 24px 14px !important;
        background-attachment: scroll !important;
    }

    .auth-card {
        padding: 24px 18px !important;
        border-radius: 18px !important;
    }

    .booking-id-badge {
        width: 100%;
        padding-left: 12px !important;
        padding-right: 12px !important;
    }

    .invoice-actions .btn {
        width: 100%;
    }

    .footer-bottom {
        align-items: flex-start;
        text-align: left;
    }

    .footer-keywords a,
    .keyword-grid a {
        flex: 1 1 auto;
        text-align: center;
    }

    .profile-page {
        padding-top: 28px;
        padding-bottom: 48px;
    }

    .profile-hero-inner {
        align-items: flex-start;
        gap: 14px;
    }

    .profile-hero-avatar {
        width: 58px;
        height: 58px;
        flex-basis: 58px;
        font-size: 1.35rem;
    }

    .profile-layout {
        grid-template-columns: 1fr;
    }

    .profile-panel {
        position: static;
        padding: 18px;
    }

    .profile-form-card .btn {
        width: 100%;
        justify-content: center;
    }

    .productivity-grid,
    .quick-action-panel,
    .productivity-page-grid {
        grid-template-columns: 1fr;
    }

    .quick-action-card {
        min-height: 92px;
    }

    .productivity-list-row,
    .productivity-list-row form {
        flex-direction: column;
        width: 100%;
        align-items: stretch;
    }
}

@media (max-width: 380px) {
    h1 {
        font-size: 1.55rem;
    }

    h2 {
        font-size: 1.28rem;
    }

    .navbar-actions {
        grid-template-columns: 1fr;
    }

    .nav-global-search,
    .nav-global-search.open {
        width: 100% !important;
    }

    .search-collapsible {
        justify-content: flex-start;
    }

    .search-collapsible.open input {
        min-width: 0 !important;
    }
}

/* Shared productivity and integration controls */
.map-location-tools {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    flex-wrap: wrap;
}

.map-location-tools span {
    color: var(--text-light);
    font-size: 0.76rem;
    font-weight: 700;
}

.location-mode {
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text-muted);
    border-radius: 999px;
    padding: 5px 10px;
    font-size: 0.74rem;
    font-weight: 800;
    cursor: pointer;
}

.location-mode.active {
    border-color: var(--primary);
    background: var(--primary-light);
    color: var(--primary-dark);
}

.map-picker-placeholder {
    margin-top: 8px;
    padding: 12px;
    border-radius: 14px;
    border: 1px dashed rgba(14, 165, 164, 0.45);
    background: linear-gradient(135deg, #eefbf9, #fff7ed);
}

.map-picker-placeholder strong,
.map-picker-placeholder small {
    display: block;
}

.map-picker-placeholder small {
    color: var(--text-muted);
    margin-top: 3px;
    font-size: 0.78rem;
}

.faq-item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 14px 16px;
    box-shadow: var(--shadow-sm);
}

.faq-item summary {
    cursor: pointer;
    font-weight: 800;
    color: var(--text);
}

.faq-item p {
    margin-top: 10px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.faq-item small {
    display: inline-block;
    margin-top: 8px;
    color: var(--primary-dark);
    font-weight: 700;
}
