/* =============================================
   RogoLink — IAAI/Copart-Inspired Design
   Crimson Red + Gold + Charcoal palette
   Premium, modern, and automotive-grade
   ============================================= */

/* ---- CSS Variables / Design Tokens ---- */
:root {
    --gai-crimson: #C00000;
    --gai-crimson-light: #E02020;
    --gai-crimson-dark: #8B0000;
    --gai-gold: #FFC72C;
    --gai-gold-dark: #D4A017;
    --gai-gold-light: #FFD966;
    --gai-charcoal: #2E3033;
    --gai-charcoal-dark: #1E1F22;
    --gai-charcoal-light: #3A3D42;
    --gai-green: #2E7D32;
    --gai-green-light: #4CAF50;
    --gai-surface-dark: #121316;
    --gai-card-dark: #1C1D21;
    --gai-surface-light: #F5F5F5;
    --gai-radius: 10px;
    --gai-radius-lg: 14px;
    --gai-radius-xl: 18px;
    --gai-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --gai-transition-fast: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---- Global Base ---- */
html,
body {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* ---- AppBar ---- */
.dark-mode .mud-appbar {
    background: rgba(30, 31, 34, 0.92) !important;
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.light-mode .mud-appbar {
    background: rgba(255, 255, 255, 0.92) !important;
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

/* ---- Desktop header nav links ---- */
.gai-header-nav-link {
    display: inline-flex;
    align-items: center;
    padding: 7px 14px;
    margin: 0 1px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.875rem;
    color: inherit;
    text-decoration: none !important;
    transition: var(--gai-transition-fast);
}

.gai-header-nav-link:hover {
    background: rgba(0, 0, 0, 0.045);
}

.gai-header-nav-link.active {
    color: var(--gai-crimson);
    background: rgba(192, 0, 0, 0.08);
}

.dark-mode .gai-header-nav-link:hover {
    background: rgba(255, 255, 255, 0.07);
}

.dark-mode .gai-header-nav-link.active {
    color: var(--gai-crimson-light);
    background: rgba(224, 32, 32, 0.14);
}

/* ---- Header icon cluster (theme / currency toggles) ---- */
.gai-header-icons {
    gap: 2px;
    padding: 2px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.035);
}

.dark-mode .gai-header-icons {
    background: rgba(255, 255, 255, 0.05);
}

/* ==================================================
   HERO BANNER — light by default, follows .dark-mode.
   Up to 4 photos cross-fade behind a left-weighted shade;
   the yellow search button is the only strong colour.
   ================================================== */
.gai-hero-banner {
    --hero-top: #EEF2F6;
    --hero-bottom: #E3E9EF;
    --hero-glow: rgba(255, 199, 44, 0.10);
    --hero-shade: linear-gradient(90deg, rgba(238, 242, 246, 0.96) 0%, rgba(238, 242, 246, 0.88) 38%, rgba(238, 242, 246, 0.35) 70%, rgba(238, 242, 246, 0.1) 100%);
    --hero-shade-stacked: linear-gradient(180deg, rgba(238, 242, 246, 0.8) 0%, rgba(238, 242, 246, 0.86) 35%, rgba(238, 242, 246, 0.96) 70%, rgba(238, 242, 246, 1) 100%);
    --hero-fg: #1E2126;
    --hero-muted: #4F5663;
    --hero-faint: #7D8592;
    --hero-rule: #C3CAD3;
    --hero-wa: #128C4A;
    --hero-pop-bg: #1E2126;
    --hero-pop-fg: #F2F3F5;
    --hero-error: #B42318;
    --hero-action-bg: rgba(255, 255, 255, 0.78);
    --hero-action-icon: var(--gai-crimson);

    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
    color: var(--hero-fg);
    background:
        radial-gradient(110% 80% at 90% 100%, var(--hero-glow), transparent 60%),
        linear-gradient(180deg, var(--hero-top) 0%, var(--hero-bottom) 100%);
    border-bottom: 1px solid var(--hero-rule);
}

.dark-mode .gai-hero-banner {
    --hero-top: #1F2935;
    --hero-bottom: #131820;
    --hero-glow: rgba(255, 199, 44, 0.08);
    --hero-shade: linear-gradient(90deg, rgba(14, 18, 24, 0.94) 0%, rgba(14, 18, 24, 0.84) 38%, rgba(14, 18, 24, 0.4) 70%, rgba(14, 18, 24, 0.15) 100%);
    --hero-shade-stacked: linear-gradient(180deg, rgba(14, 18, 24, 0.74) 0%, rgba(14, 18, 24, 0.84) 35%, rgba(14, 18, 24, 0.96) 70%, rgba(14, 18, 24, 1) 100%);
    --hero-fg: #F2F3F5;
    --hero-muted: #B5BBC5;
    --hero-faint: #8A919C;
    --hero-rule: #3A414B;
    --hero-wa: #3FCB78;
    --hero-pop-bg: #F2F3F5;
    --hero-pop-fg: #1E2126;
    --hero-error: #FDA29B;
    --hero-action-bg: rgba(255, 255, 255, 0.06);
    --hero-action-icon: var(--gai-crimson-light);
}

/* Left-weighted shade keeps the copy readable over the photos. */
.gai-hero-banner::after {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--hero-shade);
    pointer-events: none;
}

/* Photo layers: each shows for 6 s with a 1 s cross-fade. Negative first delay = layer 1 is
   already visible on load; "backwards" fill keeps the waiting layers hidden. */
.gai-hero-photos {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.gai-hero-photo {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    filter: saturate(0.85);
}

.gai-hero-photos-1 .gai-hero-photo { opacity: 1; }

.gai-hero-photos-2 .gai-hero-photo { animation: gai-hero-fade-2 12s linear infinite backwards; }
.gai-hero-photos-3 .gai-hero-photo { animation: gai-hero-fade-3 18s linear infinite backwards; }
.gai-hero-photos-4 .gai-hero-photo { animation: gai-hero-fade-4 24s linear infinite backwards; }

.gai-hero-photo:nth-child(1) { animation-delay: -1s; }
.gai-hero-photo:nth-child(2) { animation-delay: 5s; }
.gai-hero-photo:nth-child(3) { animation-delay: 11s; }
.gai-hero-photo:nth-child(4) { animation-delay: 17s; }

@keyframes gai-hero-fade-2 { 0% { opacity: 0; } 8.33% { opacity: 1; } 58.33% { opacity: 1; } 66.67% { opacity: 0; } 100% { opacity: 0; } }
@keyframes gai-hero-fade-3 { 0% { opacity: 0; } 5.56% { opacity: 1; } 38.89% { opacity: 1; } 44.44% { opacity: 0; } 100% { opacity: 0; } }
@keyframes gai-hero-fade-4 { 0% { opacity: 0; } 4.17% { opacity: 1; } 29.17% { opacity: 1; } 33.33% { opacity: 0; } 100% { opacity: 0; } }

/* Slide dots: a gold fill on each dot runs the same fade timeline as its photo. */
.gai-hero-dots span {
    position: relative;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.55);
}

.gai-hero-dots span::after {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: 50%;
    background: var(--gai-gold);
    opacity: 0;
}

.gai-hero-dots-2 span::after { animation: gai-hero-fade-2 12s linear infinite backwards; }
.gai-hero-dots-3 span::after { animation: gai-hero-fade-3 18s linear infinite backwards; }
.gai-hero-dots-4 span::after { animation: gai-hero-fade-4 24s linear infinite backwards; }

.gai-hero-dots span:nth-child(1)::after { animation-delay: -1s; }
.gai-hero-dots span:nth-child(2)::after { animation-delay: 5s; }
.gai-hero-dots span:nth-child(3)::after { animation-delay: 11s; }
.gai-hero-dots span:nth-child(4)::after { animation-delay: 17s; }

@media (prefers-reduced-motion: reduce) {
    .gai-hero-photo { animation: none !important; }
    .gai-hero-photo:first-child { opacity: 1; }
    .gai-hero-dots span::after { animation: none !important; }
    .gai-hero-dots span:first-child::after { opacity: 1; }
}

.gai-hero-inner {
    position: relative;
    z-index: 2;
    padding: 36px 24px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 48px;
}

.gai-hero-left {
    flex: 1 1 auto;
    max-width: 600px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 13px;
}

.gai-hero-intro,
.gai-hero-more {
    display: flex;
    flex-direction: column;
    gap: 13px;
}

/* Phone-only pieces (see the max-width: 600px block). */
.gai-hero-intro > .gai-hero-photos,
.gai-hero-cta,
.gai-hero-dots {
    display: none;
}

.gai-hero-right {
    flex: 0 0 auto;
    width: 400px;
    max-width: 100%;
}

/* Blazor's <FocusOnNavigate Selector="h1"> (Routes.razor) focuses every page's main heading after
   navigation so screen readers announce the new page. A heading isn't keyboard-interactive, so
   suppress the focus ring that would otherwise box it ("221 vehicles found", hero, vehicle title). */
h1:focus {
    outline: none;
}

.gai-hero-eyebrow {
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--hero-faint);
}

.gai-hero-title {
    margin: 0;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: clamp(1.9rem, 3.8vw, 2.75rem);
    line-height: 1.1;
    letter-spacing: -0.015em;
    color: var(--hero-fg);
    text-wrap: balance;
}

.gai-hero-subtitle {
    margin: 0;
    max-width: 44ch;
    font-size: 1.06rem;
    line-height: 1.5;
    color: var(--hero-muted);
}

.gai-hero-steps {
    display: flex;
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 0.88rem;
    color: var(--hero-muted);
}

.gai-hero-steps li:not(:last-child)::after {
    content: "·";
    margin: 0 10px;
    color: var(--hero-faint);
}

/* WhatsApp + How it works: a matched pair of pill buttons. */
.gai-hero-actions {
    display: grid;
    grid-template-columns: repeat(2, max-content);
    gap: 10px;
    margin-top: 4px;
}

.gai-hero-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 44px;
    padding: 0 18px;
    border: 1px solid var(--hero-rule);
    border-radius: 999px;
    background: var(--hero-action-bg);
    color: var(--hero-fg);
    font-family: 'Outfit', sans-serif;
    font-size: 0.92rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.gai-hero-action:hover {
    border-color: var(--hero-faint);
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

.gai-hero-action svg {
    width: 18px;
    height: 18px;
    fill: var(--hero-wa);
}

.gai-hero-action .mud-icon-root {
    color: var(--hero-action-icon);
}

.gai-hero-trust {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    font-size: 0.82rem;
}

.gai-hero-promise:not(:last-child)::after {
    content: "·";
    margin: 0 9px;
    color: var(--hero-faint);
}

.gai-hero-promise-btn {
    padding: 0;
    border: 0;
    background: none;
    font: inherit;
    font-weight: 500;
    color: var(--hero-muted);
    text-decoration: underline dotted var(--hero-rule);
    text-underline-offset: 4px;
    cursor: pointer;
}

.gai-hero-promise-btn:hover,
.gai-hero-promise-btn[aria-expanded="true"] {
    color: var(--hero-fg);
}

.gai-hero-promise-pop {
    max-width: 420px;
    margin-top: -6px;
    padding: 12px 14px;
    border-radius: 10px;
    background: var(--hero-pop-bg);
    color: var(--hero-pop-fg);
    font-size: 0.8rem;
    line-height: 1.45;
}

.gai-hero-promise-pop b {
    display: block;
    margin-bottom: 2px;
    font-family: 'Outfit', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
}

/* Hero quick-search card — surface/text follow the MudBlazor palette so it matches the fields inside. */
.gai-hero-search {
    background: var(--mud-palette-surface);
    color: var(--mud-palette-text-primary);
    border: 1px solid var(--mud-palette-lines-default);
    border-radius: 16px;
    padding: 16px 22px 18px;
    box-shadow: 0 8px 28px rgba(30, 40, 55, 0.08);
}

.dark-mode .gai-hero-search {
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.35);
}

.gai-hero-tabs {
    display: flex;
    gap: 4px;
    padding: 4px;
    margin-bottom: 12px;
    border-radius: 10px;
    background: var(--mud-palette-background-gray);
}

.gai-hero-tabs button {
    flex: 1;
    padding: 7px 10px;
    border: 0;
    border-radius: 7px;
    background: transparent;
    font-family: 'Outfit', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--mud-palette-text-secondary);
    cursor: pointer;
}

.gai-hero-tabs button[aria-selected="true"] {
    background: var(--mud-palette-surface);
    color: var(--mud-palette-text-primary);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

.gai-hero-search-title {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 1.2rem;
    line-height: 1.2;
}

.gai-hero-search-sub {
    margin-top: 4px;
    font-size: 0.82rem;
    line-height: 1.45;
    color: var(--mud-palette-text-secondary);
}

.gai-hero-search-sub a,
.gai-hero-popular a {
    color: var(--mud-palette-text-primary);
    font-weight: 500;
    text-underline-offset: 3px;
    text-decoration-color: var(--mud-palette-lines-default);
}

.gai-hero-quote-btn {
    background-color: var(--gai-gold) !important;
    color: #1d1d1d !important;
    font-weight: 600 !important;
    border-radius: 10px !important;
    box-shadow: none !important;
    transition: var(--gai-transition) !important;
}

a.gai-hero-quote-btn:hover {
    background-color: var(--gai-gold-light) !important;
}

.gai-hero-link {
    padding: 0;
    border: 0;
    background: none;
    font: inherit;
    color: var(--mud-palette-text-primary);
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
}

/* Search bar: one rounded field with the crimson Search button set inside its right edge. */
.gai-hero-searchbar {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 14px;
    padding: 4px;
    border: 1px solid var(--mud-palette-lines-inputs);
    border-radius: 14px;
    background: var(--mud-palette-surface);
    box-shadow: 0 2px 10px rgba(16, 24, 40, 0.06);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.gai-hero-searchbar:focus-within {
    border-color: var(--gai-crimson);
    box-shadow: 0 0 0 3px rgba(192, 0, 0, 0.12), 0 2px 10px rgba(16, 24, 40, 0.06);
}

.gai-hero-searchbar .gai-hero-find {
    flex: 1;
    min-width: 0;
    margin: 0 !important;
}

.gai-hero-find .mud-input {
    height: 46px;
    background: transparent;
    font-size: 0.95rem;
}

.gai-hero-find .mud-input-adornment-start {
    margin-inline-end: 4px;
}

/* The bar draws the border, so the field's own outline is hidden. */
.gai-hero-find .mud-input-outlined-border {
    border: 0 !important;
}

.gai-hero-find .mud-input-adornment-start .mud-icon-root {
    color: var(--gai-crimson);
}

.dark-mode .gai-hero-find .mud-input-adornment-start .mud-icon-root {
    color: var(--gai-crimson-light);
}

.gai-hero-searchbar-btn {
    flex: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 46px;
    padding: 0 16px;
    border: 0;
    border-radius: 10px;
    background: linear-gradient(180deg, var(--gai-crimson-light) 0%, var(--gai-crimson) 100%);
    color: #FFFFFF;
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(192, 0, 0, 0.25);
    transition: filter 0.15s ease, transform 0.15s ease;
}

.gai-hero-searchbar-btn:hover {
    filter: brightness(1.08);
}

.gai-hero-searchbar-btn:active {
    transform: scale(0.98);
}

.gai-hero-searchbar-btn .mud-icon-root {
    color: inherit;
}

.gai-hero-searchbar-btn:focus-visible {
    outline: 2px solid var(--gai-gold);
    outline-offset: 2px;
}

/* Phone-only top search and copy swaps (see the max-width: 600px block). */
.gai-hero-topsearch,
.gai-hero-phone-only {
    display: none;
}

/* Smart search suggestions */
.gai-hero-sugg {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    min-width: 0;
}

.gai-hero-sugg .mud-icon-root {
    color: var(--mud-palette-text-secondary);
}

.gai-hero-sugg-label {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.gai-hero-sugg-count {
    flex: none;
    font-size: 0.78rem;
    color: var(--mud-palette-text-secondary);
}

.gai-hero-quote-btn {
    display: block;
    width: 100%;
    margin-top: 12px;
    padding: 11px;
    border: 0;
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
}

.gai-hero-error {
    color: var(--hero-error);
}

.gai-hero-quote-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.gai-hero-url {
    display: block;
    width: 100%;
    margin-top: 10px;
    padding: 10px 13px;
    border: 1px solid var(--mud-palette-lines-inputs);
    border-radius: 8px;
    background: transparent;
    color: var(--mud-palette-text-primary);
    font: inherit;
    font-size: 0.92rem;
}

.gai-hero-url:focus {
    outline: 2px solid var(--gai-gold);
    outline-offset: 1px;
}

.gai-hero-popular {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 10px;
    margin-top: 10px;
    font-size: 0.8rem;
    color: var(--mud-palette-text-secondary);
}

/* ==================================================
   RECOMMENDATION WIDGET — Copart-inspired
   vehicle card grid with flex layout
   ================================================== */
.gai-rec-widget {
    padding: 48px 0 40px;
    background: #F5F9FD;
}

.dark-mode .gai-rec-widget {
    background: #1A1B1F;
}

.gai-rec-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 12px;
}

.gai-rec-title {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 1.5rem;
    margin: 0;
    letter-spacing: -0.02em;
}

.gai-rec-subtitle {
    margin: 4px 0 0;
    font-size: 0.9rem;
    opacity: 0.55;
}

/* Flex grid — Copart recommendation-blocks layout */
.gai-rec-blocks {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: flex-start;
}

.gai-rec-item {
    flex: 1 1 calc(25% - 12px);
    max-width: calc(25% - 12px);
    min-width: 240px;
    background: #FFFFFF;
    border-radius: 10px;
    overflow: hidden;
    border: none;
    box-shadow: 0 1px 5px 0 rgba(213, 210, 210, 0.7);
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    transition: var(--gai-transition);
    cursor: pointer;
}

.gai-rec-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.dark-mode .gai-rec-item {
    background: var(--gai-card-dark);
    box-shadow: 0 1px 5px 0 rgba(0, 0, 0, 0.3);
}

.dark-mode .gai-rec-item:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

/* Card image */
.gai-rec-img {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    background: #F0F2F5;
    overflow: hidden;
}

.dark-mode .gai-rec-img {
    background: #252628;
}

.gai-rec-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.gai-rec-item:hover .gai-rec-img img {
    transform: scale(1.05);
}

.gai-rec-img-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gai-rec-badge-gra {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(46, 125, 50, 0.9);
    color: #FFFFFF;
    font-size: 0.68rem;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 4px;
}

/* Card description area */
.gai-rec-desc {
    padding: 12px 14px 14px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    gap: 4px;
}

.gai-rec-lot-title {
    font-weight: 700;
    font-size: 0.95rem;
    line-height: 1.3;
    color: inherit;
    margin-bottom: 2px;
}

.gai-rec-lot-detail {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 10px;
    font-size: 0.78rem;
    opacity: 0.55;
    line-height: 1.4;
}

.gai-rec-price-row {
    margin-top: auto;
    padding-top: 8px;
}

.gai-rec-price {
    display: block;
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 1.25rem;
    color: var(--gai-green);
    letter-spacing: -0.01em;
}

.gai-rec-price-usd {
    display: block;
    font-size: 0.75rem;
    opacity: 0.5;
    font-weight: 500;
}

.gai-rec-action {
    margin-top: 10px;
}

.gai-rec-view-btn {
    display: block;
    text-align: center;
    padding: 8px 0;
    background: var(--gai-crimson);
    color: #FFFFFF;
    font-weight: 700;
    font-size: 0.85rem;
    border-radius: 20px;
    transition: var(--gai-transition);
}

.gai-rec-item:hover .gai-rec-view-btn {
    background: var(--gai-crimson-light);
}

/* Skeleton loading state */
.gai-rec-item-skeleton {
    pointer-events: none;
}

/* ==================================================
   STATS BAR
   ================================================== */
.gai-stats-bar {
    background: rgba(0, 0, 0, 0.03);
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.dark-mode .gai-stats-bar {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.06);
}

.gai-stats-inner {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 24px;
    padding: 14px 0;
}

.gai-stat-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    font-weight: 600;
}

/* ==================================================
   VEHICLE CARDS (catalog pages)
   ================================================== */
.vehicle-card {
    transition: var(--gai-transition);
    border-radius: var(--gai-radius-lg) !important;
    overflow: hidden;
    cursor: pointer;
    border: 1px solid transparent;
    /* Fill the grid cell (MudGrid stretches row items to the tallest card) and lay out the
       card content as a column so cards with a wrapping title still line up their price/View
       row with shorter cards in the same row. */
    height: 100%;
    display: flex;
    flex-direction: column;
}

.vehicle-card .mud-card-content {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
}

.vehicle-card .mud-card-content > .mud-stack {
    flex: 1 1 auto;
}

/* Pins the price + View button to the bottom of the card regardless of title/badge height above it. */
.vehicle-card .card-price-row {
    margin-top: auto;
}

.vehicle-card:hover {
    transform: translateY(-4px);
    border-color: var(--gai-crimson-light);
    box-shadow: 0 16px 40px rgba(192, 0, 0, 0.1),
        0 6px 16px rgba(0, 0, 0, 0.08) !important;
}

.dark-mode .vehicle-card:hover {
    border-color: var(--gai-crimson-light);
    box-shadow: 0 16px 40px rgba(224, 32, 32, 0.15),
        0 6px 16px rgba(0, 0, 0, 0.3) !important;
}

.vehicle-card .card-image-container {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    background: rgba(128, 128, 128, 0.06);
}

/* Always-present placeholder behind the photo; shown when there's no image or it fails to load. */
.vehicle-card .card-image-fallback {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(128, 128, 128, 0.08), rgba(128, 128, 128, 0.16));
}

.vehicle-card .card-image-fallback .mud-icon-root {
    font-size: 56px;
    color: var(--gai-crimson);
    opacity: 0.16;
}

.vehicle-card .card-image-container img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.vehicle-card:hover .card-image-container img {
    transform: scale(1.05);
}

.card-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
}

.card-wishlist {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
}

/* ---- Price Display ---- */
.price-primary {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.price-secondary {
    font-size: 0.8125rem;
    opacity: 0.65;
    font-weight: 500;
}

.price-breakdown-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid rgba(128, 128, 128, 0.1);
    font-size: 0.875rem;
}

.price-breakdown-row:last-child {
    border-bottom: none;
}

.price-breakdown-total {
    font-weight: 700;
    font-size: 1.05rem;
    padding-top: 12px;
    margin-top: 4px;
    border-top: 2px solid var(--gai-crimson);
}

/* ---- Detail price card: services + port duty ---- */
.price-service-row {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 4px;
}

.price-service-row .mud-switch { flex: 0 0 auto; margin: 0; }

.price-service-label {
    flex: 1 1 auto;
    min-width: 0;
    font-size: 0.9rem;
    line-height: 1.3;
}

.price-service-amount {
    flex: 0 0 auto;
    white-space: nowrap;
    font-size: 0.875rem;
    font-weight: 600;
    opacity: 0.75;
}

.price-duty-callout {
    margin-top: 12px;
    padding: 12px 14px;
    border-radius: 12px;
    background: rgba(255, 199, 44, 0.10);
    border: 1px solid rgba(255, 199, 44, 0.45);
}

.price-duty-callout.is-loading {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.8rem;
    opacity: 0.7;
    background: rgba(128, 128, 128, 0.05);
    border-style: dashed;
    border-color: rgba(128, 128, 128, 0.3);
}

.price-duty-line,
.price-duty-landed {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.price-duty-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    font-size: 0.9rem;
}

.price-duty-amount {
    white-space: nowrap;
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 1.15rem;
}

.price-duty-source {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 4px;
    font-size: 0.75rem;
    opacity: 0.7;
}

.price-duty-source .mud-icon-root { color: #2e7d32; }

.price-duty-landed {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dashed rgba(128, 128, 128, 0.35);
    font-size: 0.875rem;
}

.price-duty-landed strong {
    white-space: nowrap;
    font-family: 'Outfit', sans-serif;
    font-size: 1.05rem;
}

.price-breakdown-duty {
    margin-top: 12px;
    padding: 10px 12px;
    border-radius: 10px;
    background: rgba(128, 128, 128, 0.05);
    font-size: 0.875rem;
}

.price-breakdown-duty.is-available {
    background: rgba(255, 199, 44, 0.10);
    border: 1px solid rgba(255, 199, 44, 0.45);
}

.price-breakdown-landed {
    font-weight: 700;
    font-size: 1rem;
    margin-top: 8px;
}

.duty-available-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 600;
    color: #2e7d32;
    background: rgba(46, 125, 50, 0.12);
}

/* ---- Compliance Badges ---- */
.badge-compliant {
    background: rgba(46, 125, 50, 0.12);
    color: #2E7D32;
    border: 1px solid rgba(46, 125, 50, 0.25);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}

.dark-mode .badge-compliant {
    background: rgba(76, 175, 80, 0.15);
    color: #81C784;
    border-color: rgba(76, 175, 80, 0.3);
}

.badge-warning {
    background: rgba(255, 199, 44, 0.12);
    color: #B38914;
    border: 1px solid rgba(255, 199, 44, 0.25);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}

.dark-mode .badge-warning {
    color: #FFD966;
    border-color: rgba(255, 199, 44, 0.3);
}

.badge-danger {
    background: rgba(192, 0, 0, 0.1);
    color: #C00000;
    border: 1px solid rgba(192, 0, 0, 0.25);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}

.dark-mode .badge-danger {
    color: #F87171;
    border-color: rgba(248, 113, 113, 0.3);
    background: rgba(248, 113, 113, 0.12);
}

/* ---- Final Sales Day badge (customer-facing) ---- */
.badge-final-sale {
    background: linear-gradient(135deg, rgba(251, 146, 60, 0.15), rgba(245, 158, 11, 0.12));
    color: #C2410C;
    border: 1px solid rgba(251, 146, 60, 0.3);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.73rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
    letter-spacing: 0.02em;
}

.dark-mode .badge-final-sale {
    background: linear-gradient(135deg, rgba(251, 146, 60, 0.14), rgba(245, 158, 11, 0.1));
    color: #FB923C;
    border-color: rgba(251, 146, 60, 0.35);
}

/* Urgency pulse when sale is within 3 days */
.badge-final-sale.badge-urgent {
    animation: urgencyPulse 2s ease-in-out infinite;
}

@keyframes urgencyPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(251, 146, 60, 0); }
    50% { box-shadow: 0 0 8px 2px rgba(251, 146, 60, 0.2); }
}

/* Final Sales Day display for detail page */
.final-sale-banner {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: linear-gradient(135deg, rgba(251, 146, 60, 0.08), rgba(245, 158, 11, 0.05));
    border: 1px solid rgba(251, 146, 60, 0.2);
    border-radius: 14px;
    margin-bottom: 16px;
}

.dark-mode .final-sale-banner {
    background: linear-gradient(135deg, rgba(251, 146, 60, 0.08), rgba(245, 158, 11, 0.04));
    border-color: rgba(251, 146, 60, 0.2);
}

.final-sale-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(251, 146, 60, 0.12);
    color: #EA580C;
    flex-shrink: 0;
    font-size: 1.2rem;
}

.dark-mode .final-sale-icon {
    background: rgba(251, 146, 60, 0.1);
    color: #FB923C;
}

.final-sale-text {
    flex: 1;
}

.final-sale-label {
    font-size: 0.68rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    opacity: 0.6;
    line-height: 1;
    margin-bottom: 3px;
}

.final-sale-date {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    color: #EA580C;
    line-height: 1.2;
}

.dark-mode .final-sale-date {
    color: #FB923C;
}

/* Final sale tag on rec widget cards */
.gai-rec-final-sale {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.72rem;
    font-weight: 700;
    color: #C2410C;
    margin-top: 4px;
}

.dark-mode .gai-rec-final-sale {
    color: #FB923C;
}

.gai-rec-final-sale .sale-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #EA580C;
    animation: saleDotPulse 1.5s ease-in-out infinite;
}

.dark-mode .gai-rec-final-sale .sale-dot {
    background: #FB923C;
}

@keyframes saleDotPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

/* ---- Admin: Override / Modified badge ---- */
.badge-modified {
    background: rgba(139, 92, 246, 0.12);
    color: #7C3AED;
    border: 1px solid rgba(139, 92, 246, 0.25);
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 0.68rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.dark-mode .badge-modified {
    background: rgba(167, 139, 250, 0.15);
    color: #A78BFA;
    border-color: rgba(167, 139, 250, 0.3);
}

/* ---- Admin: Featured badge ---- */
.badge-featured {
    background: rgba(255, 199, 44, 0.15);
    color: #B38914;
    border: 1px solid rgba(255, 199, 44, 0.3);
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 0.68rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    white-space: nowrap;
}

.dark-mode .badge-featured {
    color: #FFD966;
    border-color: rgba(255, 217, 102, 0.35);
    background: rgba(255, 199, 44, 0.12);
}

/* ---- Admin: Buy Now badge ---- */
.badge-buynow {
    background: rgba(16, 185, 129, 0.12);
    color: #047857;
    border: 1px solid rgba(16, 185, 129, 0.3);
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    display: inline-block;
    white-space: nowrap;
}

.dark-mode .badge-buynow {
    background: rgba(16, 185, 129, 0.15);
    color: #34D399;
    border-color: rgba(52, 211, 153, 0.3);
}

/* ---- Admin: Auction soon badge ---- */
.badge-auction-soon {
    background: rgba(251, 146, 60, 0.12);
    color: #C2410C;
    border: 1px solid rgba(251, 146, 60, 0.3);
    padding: 2px 7px;
    border-radius: 20px;
    font-size: 0.68rem;
    font-weight: 700;
    display: inline-block;
    white-space: nowrap;
}

.dark-mode .badge-auction-soon {
    color: #FB923C;
    border-color: rgba(251, 146, 60, 0.35);
    background: rgba(251, 146, 60, 0.1);
}

/* ---- Admin table: overridden row highlight ---- */
.admin-table tr.row-overridden {
    border-left: 3px solid rgba(139, 92, 246, 0.6);
}

.dark-mode .admin-table tr.row-overridden {
    background: rgba(139, 92, 246, 0.04) !important;
}

/* ---- How It Works Steps ---- */
.step-card {
    text-align: center;
    padding: 24px;
    border-radius: var(--gai-radius-lg);
    transition: var(--gai-transition);
    position: relative;
}

.step-number {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1.25rem;
    margin: 0 auto 16px;
}

/* ---- Section Styles ---- */
.section-padding {
    padding: 80px 0;
}

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

.section-title {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    margin-bottom: 12px;
}

.section-subtitle {
    opacity: 0.7;
    max-width: 600px;
    margin: 0 auto;
}

/* ---- Filter Panel ---- */
.filter-panel {
    border-radius: var(--gai-radius-lg);
    padding: 20px;
}

.filter-chip {
    border-radius: 20px !important;
    font-size: 0.8125rem !important;
}

.active-filters-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 12px 0;
}

/* ---- Image Gallery ---- */
.gallery-main {
    position: relative;
    border-radius: var(--gai-radius-lg);
    overflow: hidden;
    aspect-ratio: 4 / 3;
    cursor: zoom-in;
    outline: none;
}

.gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

/* Gallery Nav Overlay Buttons */
.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    pointer-events: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    z-index: 10;
}

.gallery-main:hover .gallery-nav,
.gallery-main:focus-within .gallery-nav {
    opacity: 1;
    pointer-events: auto;
}

.gallery-nav:hover {
    background: rgba(0, 0, 0, 0.75);
    transform: translateY(-50%) scale(1.08);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

.gallery-nav:active {
    transform: translateY(-50%) scale(0.92);
}

.gallery-nav-prev {
    left: 16px;
}

.gallery-nav-next {
    right: 16px;
}

.gallery-nav i,
.gallery-nav svg {
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.3));
}

/* Gallery Photo Counter Badge */
.gallery-counter {
    position: absolute;
    bottom: 16px;
    right: 16px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    border: 1px solid rgba(255, 255, 255, 0.2);
    pointer-events: none;
    z-index: 10;
    transition: opacity 0.25s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

/* SalvageAlert high-res gallery on-demand loading badge */
.gallery-hires-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.2);
    pointer-events: none;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.gallery-thumbnails {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: thin;
}

.gallery-thumbnail {
    width: 72px;
    height: 54px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    opacity: 0.6;
    transition: var(--gai-transition-fast);
    flex-shrink: 0;
    border: 2px solid transparent;
}

.gallery-thumbnail:hover,
.gallery-thumbnail.active {
    opacity: 1;
    border-color: var(--gai-crimson);
}

.gallery-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ---- WhatsApp FAB ---- */
/* The FAB and the sticky mobile CTA bar are position:fixed in a separate stacking context,
   so they paint over the open drawer's dim overlay. Hide them while the drawer is open. */
.gai-drawer-open .whatsapp-fab,
.gai-drawer-open .mobile-cta-bar {
    display: none !important;
}

.whatsapp-fab {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 1000;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #25D366;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    cursor: pointer;
    transition: var(--gai-transition);
    border: none;
}

.whatsapp-fab:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
}

/* ---- Skeleton ---- */
.skeleton {
    background: linear-gradient(90deg,
            rgba(128, 128, 128, 0.1) 25%,
            rgba(128, 128, 128, 0.2) 50%,
            rgba(128, 128, 128, 0.1) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 8px;
}

@keyframes shimmer {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* ---- Order Timeline ---- */
.timeline-step {
    display: flex;
    gap: 16px;
    position: relative;
    padding-bottom: 32px;
}

.timeline-step:last-child {
    padding-bottom: 0;
}

.timeline-dot {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    z-index: 1;
    transition: var(--gai-transition);
}

.timeline-dot.completed {
    background: var(--gai-green);
    color: white;
}

.timeline-dot.pending {
    background: rgba(128, 128, 128, 0.2);
    border: 2px dashed rgba(128, 128, 128, 0.4);
}

.timeline-line {
    position: absolute;
    left: 15px;
    top: 32px;
    bottom: 0;
    width: 2px;
    background: rgba(128, 128, 128, 0.2);
}

.timeline-line.completed {
    background: var(--gai-green);
}

/* ---- Order progress stepper (horizontal on desktop, vertical on mobile) ---- */
.order-track-eta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    opacity: 0.75;
}

.order-track-eta-done {
    color: var(--gai-green);
    opacity: 1;
    font-weight: 700;
}

.order-track-stages {
    display: flex;
    align-items: flex-start;
}

.order-track-stage {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
}

/* connector line to the next stage */
.order-track-stage:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 17px;
    left: 50%;
    width: 100%;
    height: 3px;
    background: rgba(128, 128, 128, 0.2);
    z-index: 0;
}

.order-track-stage.done:not(:last-child)::after {
    background: var(--gai-green);
}

.order-track-node {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(128, 128, 128, 0.15);
    color: rgba(128, 128, 128, 0.7);
    position: relative;
    z-index: 1;
    transition: var(--gai-transition);
}

.order-track-stage.done .order-track-node {
    background: var(--gai-green);
    color: #fff;
}

.order-track-stage.current .order-track-node {
    background: var(--gai-crimson);
    color: #fff;
    box-shadow: 0 0 0 4px rgba(192, 0, 0, 0.15);
    animation: orderTrackPulse 2s ease-in-out infinite;
}

.order-track-label {
    font-size: 0.72rem;
    line-height: 1.2;
    margin-top: 8px;
    opacity: 0.6;
}

.order-track-stage.done .order-track-label {
    opacity: 0.85;
}

.order-track-stage.current .order-track-label {
    font-weight: 700;
    opacity: 1;
    color: var(--gai-crimson);
}

@keyframes orderTrackPulse {
    0%, 100% { box-shadow: 0 0 0 4px rgba(192, 0, 0, 0.15); }
    50% { box-shadow: 0 0 0 7px rgba(192, 0, 0, 0.05); }
}

/* ---- Mobile filter drawer (off-canvas) ---- */
.filter-drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1400;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.filter-drawer-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

.filter-drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(88vw, 360px);
    background: var(--mud-palette-surface, #fff);
    z-index: 1401;
    transform: translateX(100%);
    transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    padding: 16px;
    box-shadow: -8px 0 32px rgba(0, 0, 0, 0.25);
}

.filter-drawer.open {
    transform: translateX(0);
}

.filter-drawer-head {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin-bottom: 4px;
}

/* Desktop keeps the sidebar; the drawer is mobile-only. */
@media (min-width: 960px) {
    .filter-drawer,
    .filter-drawer-overlay {
        display: none;
    }
}

@media (max-width: 600px) {
    .order-track-stages {
        flex-direction: column;
        align-items: stretch;
    }

    .order-track-stage {
        flex-direction: row;
        align-items: center;
        gap: 12px;
        text-align: left;
        padding-bottom: 18px;
    }

    .order-track-stage:not(:last-child)::after {
        top: 36px;
        left: 17px;
        width: 3px;
        height: 100%;
    }

    .order-track-node {
        flex-shrink: 0;
    }

    .order-track-label {
        margin-top: 0;
    }
}

/* ---- Animations ---- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.animate-fadeInUp {
    animation: fadeInUp 0.6s ease-out forwards;
}

.animate-fadeIn {
    animation: fadeIn 0.5s ease-out forwards;
}

.animate-slideInLeft {
    animation: slideInLeft 0.5s ease-out forwards;
}

.animation-delay-100 {
    animation-delay: 0.1s;
    opacity: 0;
}

.animation-delay-200 {
    animation-delay: 0.2s;
    opacity: 0;
}

.animation-delay-300 {
    animation-delay: 0.3s;
    opacity: 0;
}

.animation-delay-400 {
    animation-delay: 0.4s;
    opacity: 0;
}

.animation-delay-500 {
    animation-delay: 0.5s;
    opacity: 0;
}

/* ---- Glassmorphism ---- */
.glass-card {
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--gai-radius-lg);
}

.glass-card-light {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: var(--gai-radius-lg);
}

/* ---- Glow Button ---- */
.btn-glow {
    position: relative;
    overflow: hidden;
}

.btn-glow::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: inherit;
    background: linear-gradient(135deg, var(--gai-crimson), var(--gai-gold));
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s;
    filter: blur(8px);
}

.btn-glow:hover::after {
    opacity: 0.4;
}

/* Gold CTA button — IAAI "View Upcoming Inventory" style */
.btn-gold-cta {
    background: var(--gai-gold) !important;
    color: var(--gai-charcoal) !important;
    font-weight: 700 !important;
    border: none !important;
    transition: var(--gai-transition) !important;
}

.btn-gold-cta:hover {
    background: var(--gai-gold-light) !important;
    box-shadow: 0 4px 16px rgba(255, 199, 44, 0.3) !important;
    transform: translateY(-1px);
}

/* ---- Footer ---- */
.site-footer {
    border-top: 1px solid rgba(128, 128, 128, 0.15);
    padding: 56px 0 28px;
    background: rgba(128, 128, 128, 0.04);
}

.footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr));
    gap: 40px 32px;
}

.footer-tagline {
    margin: 14px 0 18px;
    max-width: 340px;
    font-size: 0.875rem;
    line-height: 1.6;
    opacity: 0.7;
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-contact-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.875rem;
    color: inherit;
    text-decoration: none;
    opacity: 0.75;
    width: fit-content;
    transition: var(--gai-transition-fast);
}

a.footer-contact-item:hover {
    opacity: 1;
    color: var(--gai-crimson-light);
}

.dark-mode a.footer-contact-item:hover {
    color: var(--gai-gold);
}

.footer-heading {
    display: block;
    margin: 0 0 12px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    opacity: 0.55;
}

.footer-link {
    color: inherit;
    opacity: 0.75;
    transition: var(--gai-transition-fast);
    text-decoration: none;
    display: block;
    width: fit-content;
    padding: 5px 0;
    font-size: 0.875rem;
}

.footer-link:hover {
    opacity: 1;
    color: var(--gai-crimson-light);
}

.dark-mode .footer-link:hover {
    color: var(--gai-gold);
}

.footer-payments {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid rgba(128, 128, 128, 0.15);
}

.footer-pay-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border: 1px solid rgba(128, 128, 128, 0.3);
    border-radius: 999px;
    font-size: 0.8rem;
    opacity: 0.85;
}

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 8px 24px;
    margin-top: 20px;
    font-size: 0.75rem;
    opacity: 0.55;
}

.footer-bottom a {
    color: inherit;
}

.footer-disclaimer {
    flex: 1 1 320px;
    text-align: center;
}

@media (max-width: 959.98px) {
    .footer-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .footer-brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 599.98px) {
    .site-footer {
        /* extra bottom room so the WhatsApp FAB doesn't cover the legal line */
        padding: 40px 0 96px;
    }

    .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 28px 20px;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }

    .footer-disclaimer {
        flex: none;
        text-align: left;
    }
}

/* ---- Red accent bar (IAAI-style left border on sections) ---- */
.iaai-accent-left {
    border-left: 4px solid var(--gai-crimson);
    padding-left: 16px;
}

/* ---- Make Section ---- */
.make-logo-link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.make-logo-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 20px;
    border-radius: var(--gai-radius);
    cursor: pointer;
    transition: var(--gai-transition);
    text-align: center;
    min-height: 100px;
    background: #FFFFFF;
    box-shadow: 0 1px 5px 0 rgba(213, 210, 210, 0.7);
}

.make-logo-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.dark-mode .make-logo-card {
    background: var(--gai-card-dark);
    box-shadow: 0 1px 5px 0 rgba(0, 0, 0, 0.3);
}

.dark-mode .make-logo-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.make-logo-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #FFFFFF;
    box-shadow: inset 0 0 0 1px rgba(128, 128, 128, 0.15);
}

.make-logo-img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

/* ---- Duty Estimator ---- */
.estimator-result {
    border-radius: var(--gai-radius-lg);
    padding: 24px;
    margin-top: 24px;
}

/* ---- Page Transitions ---- */
.page-enter {
    animation: fadeInUp 0.4s ease-out;
}

/* ---- MudBlazor Overrides for IAAI feel ---- */

/* Filled buttons: crimson with slight shine */
.mud-button-filled-primary {
    transition: var(--gai-transition) !important;
}

.mud-button-filled-primary:hover {
    box-shadow: 0 4px 12px rgba(192, 0, 0, 0.25) !important;
}

/* Outlined buttons: charcoal border default */
.mud-button-outlined-primary:hover {
    border-color: var(--gai-crimson) !important;
}

/* Chip styling */
.mud-chip {
    transition: var(--gai-transition-fast) !important;
}

/* ---- Scrollbar ---- */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(128, 128, 128, 0.3);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(128, 128, 128, 0.5);
}

/* ==================================================
   RESPONSIVE BREAKPOINTS
   Mobile-first responsive design
   ================================================== */

/* --- Tablet (768px - 1024px) --- */
@media (max-width: 1024px) {
    .gai-hero-banner::after {
        background: var(--hero-shade-stacked);
    }

    /* Stacked layout: lift the search card up to sit right under the headline, so it's on the
       first screen; the supporting copy follows it. display: contents lets the left column's
       children be ordered alongside the card. */
    .gai-hero-inner {
        padding: 30px 24px 34px;
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .gai-hero-left {
        display: contents;
    }

    .gai-hero-intro,
    .gai-hero-more {
        max-width: 640px;
    }

    .gai-hero-intro { order: 1; }
    .gai-hero-more { order: 3; }

    .gai-hero-right {
        order: 2;
        width: 100%;
        max-width: 560px;
        margin: 6px 0 10px;
    }

    .gai-hero-steps {
        margin-top: 4px;
    }

    .gai-rec-blocks .gai-rec-item {
        flex: 1 1 calc(50% - 8px);
        max-width: calc(50% - 8px);
    }

    .section-padding {
        padding: 56px 0;
    }
}

/* --- Large phones / small tablets (600px - 768px) --- */
@media (max-width: 768px) {
    .gai-hero-inner {
        padding: 28px 16px 32px;
    }

    .gai-hero-subtitle {
        font-size: 0.98rem;
    }

    .gai-rec-blocks .gai-rec-item {
        flex: 1 1 calc(50% - 8px);
        max-width: calc(50% - 8px);
        min-width: 200px;
    }

    .gai-rec-widget {
        padding: 32px 0 24px;
    }

    .gai-rec-title {
        font-size: 1.3rem;
    }

    .section-padding {
        padding: 48px 0;
    }

    .gai-stats-inner {
        gap: 16px;
        padding: 12px 0;
    }

    .gai-stat-item {
        font-size: 0.78rem;
    }

    .price-primary {
        font-size: 1.25rem;
    }

    .gallery-thumbnails {
        gap: 6px;
    }

    .gallery-thumbnail {
        width: 60px;
        height: 45px;
    }
}

/* --- Phones (< 600px) --- */
@media (max-width: 600px) {
    /* Phones: a full-bleed photo panel (white headline, one big yellow button, slide dots) with the
       search tabs sitting on its bottom edge; supporting copy follows on the page background. */
    .gai-hero-banner {
        background: var(--mud-palette-background);
        border-bottom: 0;
    }

    .gai-hero-banner > .gai-hero-photos,
    .gai-hero-banner::after {
        display: none;
    }

    .gai-hero-inner {
        padding: 0;
        gap: 0;
    }

    .gai-hero-intro {
        position: relative;
        isolation: isolate;
        text-align: center;
        max-width: none;
        gap: 14px;
        padding: 34px 20px 78px;
        color: #FFFFFF;
    }

    .gai-hero-intro > .gai-hero-photos {
        display: block;
        z-index: -2;
    }

    .gai-hero-intro::before {
        content: "";
        position: absolute;
        inset: 0;
        z-index: -1;
        background: linear-gradient(180deg, rgba(10, 12, 16, 0.5) 0%, rgba(10, 12, 16, 0.62) 55%, rgba(10, 12, 16, 0.78) 100%);
    }

    .gai-hero-eyebrow {
        display: none;
    }

    .gai-hero-intro .gai-hero-title {
        font-size: 2.15rem;
        line-height: 1.08;
        color: #FFFFFF;
        text-shadow: 0 2px 14px rgba(0, 0, 0, 0.35);
    }

    .gai-hero-intro .gai-hero-subtitle {
        font-size: 1.02rem;
        line-height: 1.5;
        color: rgba(255, 255, 255, 0.9);
    }

    .gai-hero-cta {
        display: flex;
        align-items: center;
        justify-content: center;
        height: 52px;
        margin-top: 10px;
        border-radius: 4px;
        background: var(--gai-gold);
        color: #1D1D1D;
        font-family: 'Outfit', sans-serif;
        font-size: 1.08rem;
        font-weight: 600;
        text-decoration: none;
    }

    .gai-hero-cta:active {
        background: var(--gai-gold-light);
    }

    .gai-hero-dots {
        display: flex;
        align-self: center;
        gap: 14px;
        margin-top: 6px;
        padding: 9px 16px;
        border-radius: 999px;
        background: rgba(0, 0, 0, 0.4);
    }

    .gai-hero-right {
        position: relative;
        z-index: 1;
        max-width: none;
        margin: -50px 0 0;
        padding: 0 16px;
    }

    /* The panel's top 50px are the tabs over the photo; the rest is a solid surface. */
    .gai-hero-search {
        padding: 0 16px 18px;
        border: 0;
        border-radius: 0;
        box-shadow: none;
        background: linear-gradient(180deg, transparent 50px, var(--mud-palette-surface) 50px);
    }

    .dark-mode .gai-hero-search {
        box-shadow: none;
    }

    .gai-hero-tabs {
        gap: 0;
        margin: 0 -16px 16px;
        padding: 0;
        border-radius: 0;
        background: transparent;
    }

    .gai-hero-tabs button {
        height: 50px;
        padding: 0 6px;
        border-radius: 0;
        border-top: 4px solid transparent;
        background: var(--mud-palette-background-gray);
        color: var(--mud-palette-text-secondary);
        font-size: 0.98rem;
    }

    .gai-hero-tabs button[aria-selected="true"] {
        border-top-color: var(--mud-palette-primary);
        background: var(--mud-palette-surface);
        color: var(--mud-palette-primary);
        box-shadow: none;
    }

    .gai-hero-search-title {
        font-size: 1.08rem;
    }


    .gai-hero-more {
        max-width: none;
        align-items: center;
        padding: 22px 16px 28px;
        text-align: center;
    }

    .gai-hero-steps,
    .gai-hero-trust {
        justify-content: center;
    }

    .gai-hero-topsearch {
        display: block;
        order: 0;
        padding: 14px 16px 16px;
        background: linear-gradient(180deg, var(--mud-palette-background-gray) 0%, var(--mud-palette-background) 100%);
    }

    .gai-hero-topsearch .gai-hero-searchbar {
        margin-top: 0;
        box-shadow: 0 6px 18px rgba(16, 24, 40, 0.1);
    }

    .gai-hero-searchbar-btn {
        padding: 0 16px;
    }

    .gai-hero-search .gai-hero-searchbar,
    .gai-hero-wide-only {
        display: none;
    }

    .gai-hero-phone-only {
        display: inline;
    }

    /* Popular models as tappable chips under the tabs. */
    .gai-hero-popular {
        gap: 8px;
        margin-top: 14px;
    }

    .gai-hero-popular > span {
        display: none;
    }

    .gai-hero-popular a {
        padding: 7px 12px;
        border: 1px solid var(--mud-palette-lines-inputs);
        border-radius: 999px;
        text-decoration: none;
    }

    .gai-hero-search-title,
    .gai-hero-search-sub {
        text-align: center;
    }

    .gai-hero-popular {
        justify-content: center;
    }

    .gai-hero-steps,
    .gai-hero-trust {
        font-size: 0.85rem;
    }

    .gai-hero-steps li:not(:last-child)::after {
        margin: 0 7px;
    }

    .gai-hero-actions {
        grid-template-columns: 1fr 1fr;
        width: 100%;
        max-width: 420px;
    }

    .gai-hero-action {
        padding: 0 10px;
        font-size: 0.88rem;
    }

    .gai-rec-blocks .gai-rec-item {
        flex: 1 1 100%;
        max-width: 100%;
        min-width: 0;
    }

    .gai-rec-widget {
        padding: 24px 0 20px;
    }

    .gai-stats-inner {
        flex-direction: column;
        align-items: center;
        gap: 8px;
        padding: 10px 0;
    }

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

    /* Trust bar, Footer compaction */
    .trust-bar {
        gap: 16px;
    }

    .trust-item {
        font-size: 0.8rem;
    }

    /* Make cards smaller */
    .make-logo-card {
        padding: 14px;
        min-height: 80px;
        gap: 6px;
    }

    .make-logo-badge {
        width: 44px;
        height: 44px;
    }

    .make-logo-img {
        width: 26px;
        height: 26px;
    }

    /* CTA section responsive */
    .btn-gold-cta {
        width: 100% !important;
    }
}

/* --- Extra-small phones (< 375px) --- */
@media (max-width: 375px) {
    .gai-rec-lot-title {
        font-size: 0.85rem;
    }

    .gai-rec-price {
        font-size: 1.1rem;
    }
}

/* --- MudBlazor drawer responsive override --- */
@media (max-width: 960px) {
    .mud-appbar .mud-appbar-toolbar {
        padding: 0 8px !important;
    }
}

/* ============================================================
   ADMIN DASHBOARD STYLES
   ============================================================ */

/* --- Admin Shell: Sidebar + Main layout --- */
.admin-shell {
    display: flex;
    min-height: 100vh;
    background: #0d1117;
    color: #e6edf3;
}

.admin-sidebar {
    width: 260px;
    min-height: 100vh;
    background: #161b22;
    border-right: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 1100;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.admin-sidebar-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 20px 12px;
}

.admin-sidebar-close {
    display: none !important;
}

.admin-brand {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.admin-brand-name {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1.15rem;
    letter-spacing: -0.02em;
    color: #fff;
}

.admin-brand-sub {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.4);
    margin-top: -2px;
}

.admin-nav {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 8px 12px;
    flex: 1;
    /* Scroll the links (not the page) once they outgrow a short viewport, keeping the footer visible. */
    min-height: 0;
    overflow-y: auto;
}

.admin-nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.admin-nav-link:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
}

.admin-nav-link.active {
    background: rgba(192, 0, 0, 0.15);
    color: #ff4444;
    border-left: 3px solid #C00000;
    padding-left: 13px;
}

.admin-sidebar-footer {
    padding: 0 12px 16px;
}

.back-to-store {
    color: rgba(255, 255, 255, 0.4) !important;
}

.back-to-store:hover {
    color: rgba(255, 255, 255, 0.7) !important;
}

.admin-sidebar-overlay {
    display: none;
}

/* --- Admin Main Content --- */
.admin-main {
    flex: 1;
    min-width: 0;
    margin-left: 260px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.admin-topbar {
    display: flex;
    align-items: center;
    padding: 12px 24px;
    background: #161b22;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    position: sticky;
    top: 0;
    z-index: 100;
}

.admin-menu-btn {
    display: none !important;
}

.admin-content {
    padding: 24px;
    flex: 1;
}

/* --- Page Header --- */
.admin-page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 12px;
}

.admin-page-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    color: #fff;
}

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

/* --- Stat Cards Grid --- */
.admin-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
    margin-bottom: 28px;
}

.admin-stat-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    cursor: pointer;
    transition: all 0.25s ease;
    backdrop-filter: blur(12px);
}

.admin-stat-card:hover {
    background: rgba(255, 255, 255, 0.06);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.stat-icon-wrap {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.stat-vehicles .stat-icon-wrap {
    background: rgba(59, 130, 246, 0.15);
    color: #3b82f6;
}

.stat-orders .stat-icon-wrap {
    background: rgba(168, 85, 247, 0.15);
    color: #a855f7;
}

.stat-pending .stat-icon-wrap {
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
}

.stat-inquiries .stat-icon-wrap {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
}

.stat-revenue-ghs .stat-icon-wrap {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
}

.stat-revenue-usd .stat-icon-wrap {
    background: rgba(6, 182, 212, 0.15);
    color: #06b6d4;
}

.stat-info {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
}

.stat-label {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.45);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 2px;
}

/* --- Recent Activity Grid --- */
.admin-recent-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.admin-recent-card {
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid rgba(255, 255, 255, 0.06) !important;
    border-radius: 12px !important;
    overflow-x: auto;
}

.recent-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px 8px;
}

/* --- Admin Data Table --- */
.admin-table {
    background: transparent !important;
}

.admin-table thead th {
    font-size: 0.7rem !important;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: rgba(255, 255, 255, 0.4) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    padding: 10px 12px !important;
    white-space: nowrap;
}

.admin-table tbody td {
    padding: 10px 12px !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04) !important;
    font-size: 0.85rem;
    vertical-align: middle;
}

.admin-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.03) !important;
}

.admin-row-highlight {
    background: rgba(239, 68, 68, 0.05) !important;
    border-left: 3px solid #ef4444;
}

/* --- Filter Bar --- */
.admin-filter-bar {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 12px 16px !important;
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid rgba(255, 255, 255, 0.06) !important;
    border-radius: 12px !important;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.admin-search-field {
    flex: 1;
    min-width: 200px;
}

.admin-filter-select {
    min-width: 160px;
}

/* --- Data Card --- */
.admin-data-card {
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid rgba(255, 255, 255, 0.06) !important;
    border-radius: 12px !important;
    overflow: hidden;
}

/* --- Vehicle Thumbnails --- */
.admin-vehicle-thumb {
    width: 48px;
    height: 36px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.admin-vehicle-cell {
    display: flex;
    align-items: center;
    gap: 10px;
}

.admin-thumb-cell {
    width: 60px;
}

.admin-vehicle-thumb-placeholder {
    width: 48px;
    height: 36px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.2);
}

/* --- Price Review: 3-Column Command Center --- */
.review-shell {
    display: flex;
    gap: 16px;
    /* Fixed-height shell so the three columns line up and each scrolls on its own — the page
       itself doesn't scroll away from the decision panel at the bottom of the inspector. */
    height: calc(100vh - 260px);
    min-height: 560px;
    width: 100%;
    min-width: 0;
    align-items: stretch;
    outline: none;
}

.review-col {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow-x: hidden;
}

.review-col-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: wrap;
    padding: 12px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.review-col-scroll,
.review-col-body {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
}

.review-col-body {
    padding: 14px;
}

.review-queue-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 10px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    cursor: pointer;
    transition: background-color 0.12s ease;
}

.review-queue-card:hover {
    background: rgba(255, 255, 255, 0.04);
}

.review-queue-card.active {
    background: rgba(59, 130, 246, 0.12);
    box-shadow: inset 3px 0 0 #3b82f6;
}

.review-queue-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.review-queue-name {
    flex: 1;
    min-width: 0;
}

.review-queue-name b {
    display: block;
    font-size: 0.82rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.review-queue-price {
    display: block;
    font-size: 0.76rem;
    font-weight: 700;
    opacity: 0.7;
}

.review-queue-badges {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.review-queue-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    flex-wrap: wrap;
}

.review-queue-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0;
}

.review-queue-actions .mud-icon-button {
    padding: 4px;
}

/* Contextual bar under the Queue header while vehicles are checked. */
.review-selection-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 4px 8px 4px 14px;
    background: rgba(59, 130, 246, 0.12);
    border-bottom: 1px solid rgba(59, 130, 246, 0.25);
}

/* Inspector decision panel — pinned below the scrolling body of column 2. */
.review-decision {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 12px 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.02);
    border-radius: 0 0 12px 12px;
}

.review-decision-inputs {
    display: flex;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 12px;
}

.review-decision-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.review-margin {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 130px;
    padding: 6px 12px;
    border-radius: 10px;
    border: 1px solid transparent;
}

.review-margin .review-kpi-label {
    margin-bottom: 0;
}

.review-margin-value {
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.25;
}

.review-margin-pct {
    font-size: 0.75rem;
    font-weight: 700;
}

.review-margin.pos {
    background: rgba(16, 185, 129, 0.12);
    border-color: rgba(16, 185, 129, 0.3);
    color: #34d399;
}

.review-margin.neg {
    background: rgba(239, 68, 68, 0.12);
    border-color: rgba(239, 68, 68, 0.3);
    color: #f87171;
}

.review-badge {
    font-size: 0.68rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 999px;
    white-space: nowrap;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.75);
}

.review-badge-sim {
    background: rgba(59, 130, 246, 0.16);
    color: #60a5fa;
}

.review-badge-margin.pos {
    background: rgba(16, 185, 129, 0.16);
    color: #34d399;
}

.review-badge-margin.neg {
    background: rgba(239, 68, 68, 0.16);
    color: #f87171;
}

.review-kpi-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.review-kpi {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    padding: 10px 12px;
    min-width: 0;
}

.review-kpi-label {
    font-size: 0.66rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0.55;
    margin-bottom: 2px;
}

.review-kpi-value {
    font-size: 1.02rem;
    font-weight: 700;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.review-simdist-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.review-simdist-track {
    flex: 1;
    height: 6px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.08);
    overflow: hidden;
}

.review-simdist-fill {
    height: 100%;
    border-radius: 4px;
}

/* Market column: the range tile gets its own row so "$12,345 – $23,456" never truncates. */
.review-kpi-grid-market {
    grid-template-columns: repeat(2, 1fr);
}

.review-kpi-wide {
    grid-column: 1 / -1;
}

/* Price position bar — this car's bid against its comps on one USD axis. */
.review-position-track {
    position: relative;
    height: 22px;
    margin: 0 6px;
}

.review-position-track::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 4px;
    transform: translateY(-50%);
    border-radius: 4px;
    background: var(--mud-palette-lines-default);
}

.review-position-band {
    position: absolute;
    top: 50%;
    height: 12px;
    transform: translateY(-50%);
    border-radius: 6px;
    background: color-mix(in srgb, var(--mud-palette-success) 22%, transparent);
    border: 1px solid color-mix(in srgb, var(--mud-palette-success) 45%, transparent);
}

.review-position-dot,
.review-position-median,
.review-position-ensemble,
.review-position-bid {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
}

.review-position-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--mud-palette-text-secondary);
    opacity: 0.7;
}

.review-position-median {
    width: 2px;
    height: 18px;
    background: var(--mud-palette-success-darken);
}

.review-position-ensemble {
    width: 9px;
    height: 9px;
    border: 2px solid var(--mud-palette-info);
    background: var(--mud-palette-surface);
    transform: translate(-50%, -50%) rotate(45deg);
}

.review-position-bid {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--mud-palette-primary);
    border: 2px solid var(--mud-palette-surface);
    box-shadow: 0 0 0 1px var(--mud-palette-primary);
    z-index: 1;
}

.review-position-scale {
    display: flex;
    justify-content: space-between;
    font-size: 0.68rem;
    opacity: 0.55;
    margin-top: 2px;
}

.review-position-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 12px;
    font-size: 0.74rem;
    margin-top: 6px;
}

.review-position-legend span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.review-position-legend i {
    display: inline-block;
    flex-shrink: 0;
}

.review-position-legend .lg-bid { width: 9px; height: 9px; border-radius: 50%; background: var(--mud-palette-primary); }
.review-position-legend .lg-median { width: 2px; height: 11px; background: var(--mud-palette-success-darken); }
.review-position-legend .lg-band { width: 14px; height: 8px; border-radius: 4px; background: color-mix(in srgb, var(--mud-palette-success) 22%, transparent); border: 1px solid color-mix(in srgb, var(--mud-palette-success) 45%, transparent); }
.review-position-legend .lg-ensemble { width: 7px; height: 7px; border: 2px solid var(--mud-palette-info); transform: rotate(45deg); }

.review-retail {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px 6px;
    font-size: 0.78rem;
}

.review-retail .review-kpi-label {
    margin-bottom: 0;
}

/* Comparable sale cards — replace the 7-column table that overflowed the 30% column. */
.review-comp {
    display: flex;
    gap: 10px;
    padding: 8px 0;
    border-top: 1px solid var(--mud-palette-lines-default);
}

.review-comp-thumb {
    position: relative;
    flex-shrink: 0;
    width: 56px;
    height: 42px;
    border-radius: 6px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--mud-palette-background-gray);
    color: var(--mud-palette-text-disabled);
}

.review-comp-thumb img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.review-comp-body {
    flex: 1;
    min-width: 0;
}

.review-comp-title {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    font-size: 0.84rem;
    font-weight: 600;
}

.review-comp-price {
    flex-shrink: 0;
}

.review-comp-meta {
    font-size: 0.72rem;
    opacity: 0.6;
}

.review-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 60px 20px;
    opacity: 0.55;
    text-align: center;
}

.review-filter-bar {
    position: sticky;
    top: 0;
    z-index: 6;
    justify-content: space-between;
}

.review-filter-group,
.review-filter-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.review-filter-actions {
    margin-left: auto;
}

.review-make-select {
    min-width: 150px;
    max-width: 200px;
}

.mud-button-root.review-pill {
    border-radius: 20px;
    text-transform: none;
}

.review-pill-count {
    display: inline-block;
    min-width: 20px;
    margin-left: 6px;
    padding: 0 6px;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 700;
    line-height: 18px;
    text-align: center;
    background: rgba(127, 127, 127, 0.18);
}

.review-hotkey-bar {
    position: sticky;
    bottom: 12px;
    z-index: 20;
    display: flex;
    gap: 18px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    padding: 8px 16px;
    margin-top: 16px;
    background: rgba(15, 23, 42, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(6px);
}

.review-hotkey-bar kbd {
    font-family: inherit;
    font-size: 0.72rem;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-bottom-width: 2px;
    border-radius: 5px;
    padding: 1px 6px;
    margin-right: 4px;
    color: #fff;
}

@media (max-width: 1100px) {
    .review-shell {
        flex-direction: column;
        height: auto;
        min-height: 0;
    }

    .review-col-scroll,
    .review-col-body {
        flex: none;
        max-height: 480px;
    }
}

/* --- Pagination --- */
.admin-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 16px;
    flex-wrap: wrap;
    gap: 12px;
}

/* --- Tracking Timeline --- */
.admin-tracking-row {
    display: none;
}

.admin-tracking-row.visible {
    display: table-row;
}

.admin-tracking-timeline {
    display: flex;
    gap: 0;
    padding: 12px 20px;
    overflow-x: auto;
}

.tracking-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    position: relative;
    flex: 1;
    min-width: 100px;
}

.tracking-step::after {
    content: '';
    position: absolute;
    top: 16px;
    right: 0;
    width: 50%;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
}

.tracking-step:last-child::after {
    display: none;
}

.tracking-step::before {
    content: '';
    position: absolute;
    top: 16px;
    left: 0;
    width: 50%;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
}

.tracking-step:first-child::before {
    display: none;
}

.tracking-step.completed::before,
.tracking-step.completed::after {
    background: #10b981;
}

.tracking-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.2);
    z-index: 1;
}

.tracking-step.completed .tracking-dot {
    background: #10b981;
    border-color: #10b981;
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.4);
}

.tracking-info {
    text-align: center;
}

.tracking-info strong {
    font-size: 0.7rem;
    display: block;
    white-space: nowrap;
}

.tracking-date {
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.35);
    display: block;
}

/* --- Empty State --- */
.admin-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    gap: 8px;
    opacity: 0.5;
}

/* --- Loading State --- */
.admin-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    gap: 8px;
}

/* --- Inquiry Detail Dialog --- */
.admin-inquiry-detail {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.inquiry-detail-row {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

/* ============================================================
   CONTACT PAGE STYLES
   ============================================================ */

.contact-page {
    padding: 40px 20px 60px;
    min-height: 80vh;
}

.contact-container {
    max-width: 680px;
    margin: 0 auto;
}

.contact-header {
    text-align: center;
    margin-bottom: 32px;
}

.contact-title {
    font-family: 'Outfit', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    margin: 12px 0 8px;
}

.contact-subtitle {
    font-size: 0.95rem;
    opacity: 0.65;
    line-height: 1.6;
    max-width: 520px;
    margin: 0 auto;
}

.contact-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.contact-form-actions {
    margin-top: 24px;
}

.contact-success {
    text-align: center;
    padding: 40px 20px;
}

.contact-success-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(16, 185, 129, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid rgba(128, 128, 128, 0.15);
}

.contact-info-card {
    text-align: center;
    padding: 20px 12px;
    border-radius: 12px;
    background: rgba(128, 128, 128, 0.04);
    border: 1px solid rgba(128, 128, 128, 0.08);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

/* ============================================================
   ADMIN RESPONSIVE
   ============================================================ */

@media (max-width: 1024px) {
    .admin-recent-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .admin-sidebar {
        transform: translateX(-100%);
    }

    .admin-sidebar.open {
        transform: translateX(0);
    }

    .admin-sidebar-close {
        display: flex !important;
    }

    .admin-sidebar-overlay {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.6);
        z-index: 1099;
    }

    .admin-main {
        margin-left: 0;
    }

    .admin-menu-btn {
        display: flex !important;
    }

    .admin-content {
        padding: 16px;
    }

    .admin-stats-grid {
        grid-template-columns: 1fr 1fr;
    }

    .admin-filter-bar {
        flex-direction: column;
    }

    .admin-search-field,
    .admin-filter-select {
        width: 100%;
        min-width: unset;
    }

    .admin-table {
        font-size: 0.8rem;
    }

    .admin-page-title {
        font-size: 1.2rem;
    }

    .contact-form-grid {
        grid-template-columns: 1fr;
    }

    .contact-info-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .admin-stats-grid {
        grid-template-columns: 1fr;
    }

    .stat-value {
        font-size: 1.2rem;
    }

    .contact-title {
        font-size: 1.5rem;
    }
}

/* ==================================================
   PAGE: LOGIN & ACCOUNT
   Modern, elegant, glassmorphic dark/light login flow
   ================================================== */
/* Minimal auth-page shell (static AuthLayout) */
.gai-auth-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: #F0F2F5;
}

.gai-auth-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 24px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    background: #FFFFFF;
}

.gai-auth-brand {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: -0.02em;
    color: var(--gai-charcoal);
    text-decoration: none;
}

.gai-auth-accent {
    color: var(--gai-crimson);
}

.gai-auth-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.gai-auth-nav {
    display: flex;
    align-items: center;
    gap: 2px;
}

.gai-auth-nav-link {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gai-charcoal-light);
    text-decoration: none;
    padding: 8px 14px;
    border-radius: 40px;
    transition: var(--gai-transition-fast);
    white-space: nowrap;
}

.gai-auth-nav-link:hover {
    background: rgba(0, 0, 0, 0.05);
    color: var(--gai-crimson);
}

/* CSS-only mobile menu (no JS) — hidden on desktop */
.gai-auth-menu {
    display: none;
    position: relative;
}

.gai-auth-menu-btn {
    list-style: none;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 42px;
    height: 42px;
    padding: 0 10px;
    border-radius: 10px;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.gai-auth-menu-btn::-webkit-details-marker {
    display: none;
}

.gai-auth-menu-btn span {
    display: block;
    height: 2px;
    width: 100%;
    background: var(--gai-charcoal);
    border-radius: 2px;
    transition: var(--gai-transition-fast);
}

.gai-auth-menu[open] .gai-auth-menu-btn {
    background: rgba(0, 0, 0, 0.05);
}

.gai-auth-menu-panel {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 200px;
    background: #FFFFFF;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 14px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.14);
    padding: 8px;
    display: flex;
    flex-direction: column;
    z-index: 50;
}

.gai-auth-menu-panel a {
    padding: 11px 14px;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--gai-charcoal);
    text-decoration: none;
    transition: var(--gai-transition-fast);
}

.gai-auth-menu-panel a:hover {
    background: rgba(0, 0, 0, 0.05);
    color: var(--gai-crimson);
}

@media (max-width: 700px) {
    .gai-auth-nav {
        display: none;
    }

    .gai-auth-menu {
        display: block;
    }
}

.gai-auth-shell .gai-login-container {
    flex: 1;
    min-height: 0;
}

.gai-login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    min-height: calc(100vh - 120px);
    padding: 60px 20px;
    background: radial-gradient(ellipse at center, rgba(30, 31, 34, 0.4) 0%, rgba(18, 19, 22, 0.95) 100%);
    position: relative;
    overflow: hidden;
}

/* Optional subtle background elements for visual pop */
.gai-login-container::before {
    content: "";
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(192, 0, 0, 0.08) 0%, transparent 70%);
    top: -50px;
    right: -50px;
    pointer-events: none;
}

.gai-login-container::after {
    content: "";
    position: absolute;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(255, 199, 44, 0.04) 0%, transparent 70%);
    bottom: -100px;
    left: -100px;
    pointer-events: none;
}

.gai-login-card {
    background: var(--gai-card-dark);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--gai-radius-xl);
    width: 100%;
    max-width: 460px;
    padding: 40px;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition: var(--gai-transition);
    position: relative;
    z-index: 2;
}

.gai-login-card:hover {
    border-color: rgba(192, 0, 0, 0.35);
    box-shadow: 0 32px 64px rgba(192, 0, 0, 0.12), 0 24px 48px rgba(0, 0, 0, 0.5);
}

.gai-login-header {
    text-align: center;
    margin-bottom: 32px;
}

.gai-provider-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(46, 125, 50, 0.12);
    border: 1px solid rgba(46, 125, 50, 0.3);
    color: #4CAF50;
    border-radius: 999px;
    padding: 6px 14px;
    font-size: 12.5px;
    font-weight: 600;
    margin-bottom: 16px;
}

.light-mode .gai-provider-badge {
    color: #2E7D32;
}

.gai-login-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gai-crimson) 0%, var(--gai-crimson-dark) 100%);
    box-shadow: 0 8px 16px rgba(192, 0, 0, 0.35);
    font-size: 24px;
    margin-bottom: 16px;
}

/* ---- RogoLink brand logo (transparent PNG wordmark, works on light + dark) ---- */
.gai-brand-logo {
    height: 30px;
    width: auto;
    display: block;
}

.gai-brand-logo--footer {
    height: 34px;
}

.admin-brand-logo {
    height: 24px;
    width: auto;
    display: block;
    margin-bottom: 4px;
}

.gai-login-brand {
    height: 44px;
    width: auto;
    display: block;
    margin: 0 auto 18px;
}

.gai-login-title {
    font-family: 'Outfit', sans-serif;
    font-size: 26px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 6px 0;
    letter-spacing: -0.02em;
    outline: none;
}

.gai-login-title:focus {
    outline: none;
}

.gai-login-subtitle {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.55);
    margin: 0;
    line-height: 1.5;
}

.gai-login-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.gai-form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.gai-form-label {
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
    letter-spacing: 0.01em;
}

.gai-label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.gai-forgot-link {
    font-size: 12px;
    font-weight: 500;
    color: var(--gai-crimson-light);
    text-decoration: none;
    transition: var(--gai-transition-fast);
}

.gai-forgot-link:hover {
    color: #ffffff;
}

.gai-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.gai-input-icon {
    position: absolute;
    left: 14px;
    font-size: 15px;
    color: rgba(255, 255, 255, 0.35);
    pointer-events: none;
}

.gai-form-control {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: var(--gai-radius);
    padding: 12px 14px 12px 42px;
    font-size: 14px;
    color: #ffffff;
    outline: none;
    transition: var(--gai-transition);
}

.gai-form-control::placeholder {
    color: rgba(255, 255, 255, 0.2);
}

.gai-form-control:focus {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--gai-crimson-light);
    box-shadow: 0 0 0 3px rgba(224, 32, 32, 0.15);
}

.gai-error-message {
    font-size: 12px;
    color: #ff5252;
    margin-top: 2px;
}

.gai-validation-summary {
    background: rgba(255, 82, 82, 0.06);
    border: 1px solid rgba(255, 82, 82, 0.15);
    border-radius: var(--gai-radius);
    padding: 12px 16px;
    color: #ff5252;
    font-size: 13px;
}

.gai-validation-summary ul {
    margin: 0;
    padding-left: 16px;
}

.gai-remember-row {
    display: flex;
    align-items: center;
    margin-top: -4px;
}

.gai-checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    user-select: none;
}

.gai-checkbox-input {
    width: 16px;
    height: 16px;
    accent-color: var(--gai-crimson);
    cursor: pointer;
}

.gai-btn-login {
    width: 100%;
    background: linear-gradient(135deg, var(--gai-crimson) 0%, var(--gai-crimson-dark) 100%);
    border: none;
    border-radius: var(--gai-radius);
    padding: 13px;
    font-family: 'Outfit', sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: #ffffff;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(192, 0, 0, 0.25);
    transition: var(--gai-transition);
}

.gai-btn-login:hover {
    background: linear-gradient(135deg, var(--gai-crimson-light) 0%, var(--gai-crimson) 100%);
    box-shadow: 0 6px 16px rgba(192, 0, 0, 0.35);
    transform: translateY(-1px);
}

.gai-btn-login:active {
    transform: translateY(1px);
}

/* Link styled as the primary button (for action links on confirmation pages) */
a.gai-btn-login {
    display: block;
    text-align: center;
    text-decoration: none;
}

.gai-or-divider {
    display: flex;
    align-items: center;
    text-align: center;
    color: rgba(255, 255, 255, 0.4);
    font-size: 12px;
    letter-spacing: 0.04em;
    margin: 0 0 14px;
}

.gai-or-divider::before,
.gai-or-divider::after {
    content: '';
    flex: 1 1 auto;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.gai-or-divider span {
    padding: 0 12px;
}

.gai-external-logins {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.gai-btn-external {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--gai-radius);
    padding: 11px;
    font-family: 'Outfit', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
    cursor: pointer;
    transition: var(--gai-transition);
}

.gai-btn-external:hover {
    background: rgba(255, 255, 255, 0.09);
    border-color: rgba(255, 255, 255, 0.2);
}

.gai-btn-external:active {
    transform: translateY(1px);
}

.gai-external-icon {
    display: inline-flex;
    flex-shrink: 0;
}

/* Centered message body for confirmation/status auth pages */
.gai-auth-message {
    text-align: center;
    font-size: 14px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.7);
    margin: 0 0 22px;
}

.light-mode .gai-auth-message {
    color: rgba(0, 0, 0, 0.6);
}

.gai-auth-message a {
    color: var(--gai-crimson-light);
    font-weight: 600;
    text-decoration: none;
}

.gai-auth-message a:hover {
    text-decoration: underline;
}

/* StatusMessage alerts rendered inside the auth card */
.gai-login-card .alert {
    border-radius: var(--gai-radius);
    padding: 12px 14px;
    font-size: 13.5px;
    margin-bottom: 18px;
    border: 1px solid transparent;
}

.gai-login-card .alert-success {
    background: rgba(46, 125, 50, 0.12);
    border-color: rgba(46, 125, 50, 0.3);
    color: #2E7D32;
}

.gai-login-card .alert-danger {
    background: rgba(192, 0, 0, 0.1);
    border-color: rgba(192, 0, 0, 0.28);
    color: var(--gai-crimson);
}

/* 2FA "remember this machine" checkbox row */
.gai-auth-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13.5px;
    color: rgba(0, 0, 0, 0.7);
    margin-bottom: 18px;
    cursor: pointer;
}

.gai-register-prompt {
    text-align: center;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 20px;
}

.gai-register-prompt p {
    margin: 0;
}

.gai-register-prompt a {
    color: var(--gai-crimson-light);
    font-weight: 600;
    text-decoration: none;
    transition: var(--gai-transition-fast);
}

.gai-register-prompt a:hover {
    color: #ffffff;
}

.gai-secondary-link {
    font-size: 12px;
    opacity: 0.8;
}

/* Light mode overrides */
.light-mode .gai-login-container {
    background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.8) 0%, rgba(240, 242, 245, 0.95) 100%);
}

.light-mode .gai-login-card {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.07);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.06);
}

.light-mode .gai-login-card:hover {
    border-color: rgba(192, 0, 0, 0.25);
    box-shadow: 0 32px 64px rgba(192, 0, 0, 0.06), 0 24px 48px rgba(0, 0, 0, 0.08);
}

.light-mode .gai-login-title {
    color: var(--gai-charcoal);
}

.light-mode .gai-login-subtitle {
    color: rgba(0, 0, 0, 0.5);
}

.light-mode .gai-form-label {
    color: var(--gai-charcoal-light);
}

.light-mode .gai-form-control {
    background: rgba(0, 0, 0, 0.015);
    border-color: rgba(0, 0, 0, 0.08);
    color: var(--gai-charcoal);
}

.light-mode .gai-form-control::placeholder {
    color: rgba(0, 0, 0, 0.35);
}

.light-mode .gai-form-control:focus {
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(192, 0, 0, 0.08);
}

.light-mode .gai-checkbox-label {
    color: var(--gai-charcoal-light);
}

.light-mode .gai-or-divider {
    color: rgba(0, 0, 0, 0.35);
}

.light-mode .gai-or-divider::before,
.light-mode .gai-or-divider::after {
    border-bottom-color: rgba(0, 0, 0, 0.1);
}

.light-mode .gai-btn-external {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.12);
    color: var(--gai-charcoal);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.light-mode .gai-btn-external:hover {
    background: rgba(0, 0, 0, 0.02);
    border-color: rgba(0, 0, 0, 0.2);
}

.light-mode .gai-register-prompt {
    color: rgba(0, 0, 0, 0.5);
    border-top-color: rgba(0, 0, 0, 0.06);
}

.light-mode .gai-input-icon {
    color: rgba(0, 0, 0, 0.4);
}

.light-mode .gai-forgot-link:hover {
    color: var(--gai-crimson-dark);
}

.light-mode .gai-register-prompt a:hover {
    color: var(--gai-crimson-dark);
}

/* ============================================================
   ADMIN VEHICLES PAGE — VISUAL POLISH
   ============================================================ */

/* Suppress browser focus outline on the page h1 (it's not interactive) */
.admin-page-title:focus,
.admin-page-title:focus-visible {
    outline: none;
    box-shadow: none;
}

/* Buy Now toggle: pill wrapper keeps icon + label inline */
.admin-buynow-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px 4px 6px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    cursor: pointer;
    white-space: nowrap;
    transition: border-color 0.2s, background 0.2s;
    background: rgba(255, 255, 255, 0.03);
}

.admin-buynow-toggle:hover {
    border-color: rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.06);
}

/* Responsive column hiding */
.col-hide-sm,
.col-hide-md {
    /* visible by default */
}

@media (max-width: 1280px) {
    .col-hide-md {
        display: none !important;
    }
}

@media (max-width: 1024px) {
    .col-hide-sm {
        display: none !important;
    }
}

/* Prevent admin table from causing horizontal page scroll */
.admin-data-card {
    overflow-x: auto !important;
}

.admin-table {
    min-width: 780px;
}

/* Row-overridden: target tds to show the left border on the first cell */
.admin-table tr.row-overridden td:first-child {
    box-shadow: inset 3px 0 0 rgba(139, 92, 246, 0.7);
}

.admin-table tr.row-overridden {
    background: rgba(139, 92, 246, 0.035) !important;
}

/* Edit drawer tabs — text only, evenly distributed */
.mud-drawer .mud-tabs-tabbar {
    gap: 0;
}

.mud-drawer .mud-tab {
    font-size: 0.78rem;
    font-weight: 600;
    min-width: 0;
    flex: 1;
    letter-spacing: 0.01em;
    padding: 8px 6px;
}

/* Save Changes button — match site crimson brand */
.admin-save-btn {
    background: linear-gradient(135deg, #e53e3e, #c0392b) !important;
    color: #fff !important;
    font-weight: 700 !important;
}

/* ============================================================
   ADMIN LIGHT THEME STYLES
   ============================================================ */

/* Main layout wrapper */
.admin-shell {
    background: #f8fafc !important;
    /* Cool clean light grey-blue background */
    color: #1e293b !important;
    /* Slate-800 text color */
}

/* Maintain dark sidebar as a distinguishing touch */
.admin-sidebar {
    background: #0f172a !important;
    /* Deep navy/slate-900 */
    border-right: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.admin-sidebar .mud-divider-fullwidth {
    flex-grow: 0 !important;
}

.admin-sidebar .admin-brand-name {
    color: #ffffff !important;
}

.admin-sidebar .admin-brand-sub {
    color: rgba(255, 255, 255, 0.45) !important;
}

.admin-sidebar .admin-nav-link {
    color: rgba(255, 255, 255, 0.65) !important;
}

.admin-sidebar .admin-nav-link:hover {
    background: rgba(255, 255, 255, 0.06) !important;
    color: #ffffff !important;
}

.admin-sidebar .admin-nav-link.active {
    background: rgba(192, 0, 0, 0.2) !important;
    color: #ff5555 !important;
    border-left: 3px solid #C00000 !important;
}

.admin-sidebar .back-to-store {
    color: rgba(255, 255, 255, 0.45) !important;
}

.admin-sidebar .back-to-store:hover {
    color: rgba(255, 255, 255, 0.8) !important;
}

/* Topbar is white with light border */
.admin-topbar {
    background: #ffffff !important;
    border-bottom: 1px solid #e2e8f0 !important;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.03) !important;
}

.admin-topbar .mud-icon-button {
    color: #475569 !important;
    /* Slate-600 */
}

/* Page Header Title */
.admin-page-title {
    color: #0f172a !important;
    /* Slate-900 */
}

/* Stat cards are white with subtle shadows and borders */
.admin-stat-card {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05), 0 1px 2px -1px rgba(0, 0, 0, 0.05) !important;
    color: #1e293b !important;
}

.admin-stat-card:hover {
    background: #ffffff !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -4px rgba(0, 0, 0, 0.05) !important;
    border-color: #cbd5e1 !important;
}

.admin-stat-card .stat-value {
    color: #0f172a !important;
}

.admin-stat-card .stat-label {
    color: #64748b !important;
    /* Slate-500 */
}

/* Filter bar is white with light border */
.admin-filter-bar {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.02) !important;
    border-radius: 12px !important;
}

.admin-buynow-toggle {
    border: 1px solid #cbd5e1 !important;
    background: #f8fafc !important;
    color: #475569 !important;
}

.admin-buynow-toggle:hover {
    border-color: #94a3b8 !important;
    background: #f1f5f9 !important;
}

/* Data Card (wrapper of tables, etc.) is white */
.admin-data-card {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05) !important;
    border-radius: 12px !important;
}

/* Price Review: 3-Column Command Center (light) */
.review-col {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05) !important;
}

.review-col-header {
    border-bottom: 1px solid #f1f5f9 !important;
}

.review-queue-card {
    border-bottom: 1px solid #f1f5f9 !important;
}

.review-queue-card:hover {
    background: #f8fafc !important;
}

.review-queue-card.active {
    background: rgba(59, 130, 246, 0.08) !important;
}

.review-badge {
    background: #f1f5f9 !important;
    color: #475569 !important;
}

.review-badge-sim {
    background: #dbeafe !important;
    color: #2563eb !important;
}

.review-badge-margin.pos {
    background: #d1fae5 !important;
    color: #059669 !important;
}

.review-badge-margin.neg {
    background: #fee2e2 !important;
    color: #dc2626 !important;
}

.review-kpi {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
}

.review-simdist-track {
    background: #e2e8f0 !important;
}

.review-selection-bar {
    background: #eff6ff;
    border-bottom-color: #bfdbfe;
}

.review-decision {
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
}

.review-margin.pos {
    background: #ecfdf5;
    border-color: #a7f3d0;
    color: #047857;
}

.review-margin.neg {
    background: #fef2f2;
    border-color: #fecaca;
    color: #b91c1c;
}

/* Hotkey bar stays dark in both themes — same distinguishing-touch pattern as .admin-sidebar */
.review-hotkey-bar {
    background: #0f172a !important;
    color: rgba(255, 255, 255, 0.75) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
}

/* Admin Table styling */
.admin-table thead th {
    color: #475569 !important;
    /* Slate-600 */
    border-bottom: 2px solid #e2e8f0 !important;
    background: #f8fafc !important;
}

.admin-table tbody td {
    color: #334155 !important;
    /* Slate-700 */
    border-bottom: 1px solid #f1f5f9 !important;
}

.admin-table tbody tr:hover {
    background: #f8fafc !important;
}

.admin-table tr.row-overridden {
    background: rgba(139, 92, 246, 0.03) !important;
}

.admin-row-highlight {
    background: rgba(239, 68, 68, 0.03) !important;
}

/* Thumbnails */
.admin-vehicle-thumb {
    border: 1px solid #cbd5e1 !important;
}

.admin-vehicle-thumb-placeholder {
    background: #f1f5f9 !important;
    color: #94a3b8 !important;
}

/* Recent Activity Cards */
.admin-recent-card {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05) !important;
    color: #1e293b !important;
}

.admin-recent-card .mud-card-header {
    border-bottom: 1px solid #f1f5f9 !important;
}

/* Timeline steps */
.tracking-step::before,
.tracking-step::after {
    background: #e2e8f0 !important;
}

.tracking-step.completed::before,
.tracking-step.completed::after {
    background: #10b981 !important;
}

.tracking-dot {
    background: #cbd5e1 !important;
    border: 2px solid #e2e8f0 !important;
}

.tracking-step.completed .tracking-dot {
    background: #10b981 !important;
    border-color: #10b981 !important;
}

.tracking-date {
    color: #64748b !important;
}

/* MudBlazor overrides for light-themed admin drawer / editor / panels */
.admin-shell .mud-drawer {
    background: #ffffff !important;
    border-left: 1px solid #e2e8f0 !important;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.05) !important;
}

.admin-shell .mud-drawer-header {
    border-bottom: 1px solid #f1f5f9 !important;
}

/* Ensure pagination elements look good */
.admin-pagination {
    color: #475569 !important;
}

/* MudBlazor component overrides in admin layout to align with premium look */
.admin-shell .mud-input-control {
    background: #ffffff !important;
    border-radius: 8px;
}

.admin-shell .mud-input-input-control {
    background: transparent !important;
}

.admin-shell .mud-button-filled.mud-button-filled-default {
    background-color: #f1f5f9 !important;
    color: #1e293b !important;
}

.admin-shell .mud-button-filled.mud-button-filled-default:hover {
    background-color: #e2e8f0 !important;
}

.admin-shell .mud-chip-default {
    background: #f1f5f9 !important;
    color: #475569 !important;
}

.admin-shell .mud-chip-outlined {
    border-color: #cbd5e1 !important;
    color: #475569 !important;
}

.admin-empty-state {
    color: #64748b !important;
}

.admin-loading {
    color: #64748b !important;
}

/* Ensure row highlights and overrides render properly in all browser table layouts */
.admin-table tr.admin-row-highlight td:first-child {
    box-shadow: inset 3px 0 0 #ef4444 !important;
}

.admin-table tr.row-overridden td:first-child {
    box-shadow: inset 3px 0 0 rgba(139, 92, 246, 0.7) !important;
}

/* ==================================================
   ACCOUNT SETTINGS DASHBOARD — Premium Redesign
   ================================================== */
.gai-manage-wrapper {
    padding: 60px 24px;
    min-height: calc(100vh - 120px);
    display: flex;
    justify-content: center;
    background-color: var(--gai-surface-dark);
    font-family: 'Inter', sans-serif;
    transition: var(--gai-transition);
}

.light-mode .gai-manage-wrapper {
    background-color: var(--gai-surface-light);
}

.gai-manage-container {
    width: 100%;
    max-width: 1100px;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.gai-manage-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 24px;
}

.light-mode .gai-manage-header {
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.gai-manage-title {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 2.25rem;
    color: #ffffff;
    margin: 0;
    letter-spacing: -0.02em;
}

.light-mode .gai-manage-title {
    color: var(--gai-charcoal-dark);
}

.gai-manage-subtitle {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.5);
    margin: 8px 0 0 0;
}

.light-mode .gai-manage-subtitle {
    color: var(--gai-charcoal-light);
    opacity: 0.85;
}

.gai-manage-grid {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 32px;
    align-items: start;
}

@media (max-width: 960px) {
    .gai-manage-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

.gai-manage-card {
    background: var(--gai-card-dark);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--gai-radius-lg);
    padding: 28px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
    transition: var(--gai-transition);
}

.light-mode .gai-manage-card {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.06);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.gai-manage-sidebar {
    padding: 16px;
}

/* Sidebar Navigation */
.gai-settings-nav {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

@media (max-width: 960px) {
    .gai-settings-nav {
        flex-direction: row;
        flex-wrap: wrap;
    }
}

.gai-settings-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: var(--gai-radius);
    color: rgba(255, 255, 255, 0.65);
    text-decoration: none !important;
    font-weight: 600;
    font-size: 0.925rem;
    transition: var(--gai-transition-fast);
    border-left: 3px solid transparent;
}

.gai-settings-link:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.04);
}

.gai-settings-link.active {
    color: #ffffff;
    background: rgba(192, 0, 0, 0.08);
    border-left-color: var(--gai-crimson);
}

.light-mode .gai-settings-link {
    color: var(--gai-charcoal-light);
}

.light-mode .gai-settings-link:hover {
    color: var(--gai-charcoal-dark);
    background: rgba(0, 0, 0, 0.03);
}

.light-mode .gai-settings-link.active {
    color: var(--gai-crimson);
    background: rgba(192, 0, 0, 0.05);
    border-left-color: var(--gai-crimson);
}

.nav-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    font-size: 1.05rem;
}

/* Settings Card Main Body Custom Overrides */
.gai-manage-body h2,
.gai-manage-body h3,
.gai-manage-body h4 {
    font-family: 'Outfit', sans-serif !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    margin-top: 0 !important;
    margin-bottom: 20px !important;
    letter-spacing: -0.01em;
}

.gai-manage-body h3 {
    font-size: 1.5rem !important;
}

.light-mode .gai-manage-body h2,
.light-mode .gai-manage-body h3,
.light-mode .gai-manage-body h4 {
    color: var(--gai-charcoal-dark) !important;
}

.gai-manage-body p,
.gai-manage-body li {
    color: rgba(255, 255, 255, 0.7) !important;
    font-size: 0.925rem !important;
    line-height: 1.6 !important;
}

.light-mode .gai-manage-body p,
.light-mode .gai-manage-body li {
    color: var(--gai-charcoal-light) !important;
}

/* Authenticator setup: QR stays black-on-white in both themes so phones can scan it */
.gai-manage-body .gai-qr-code {
    width: 200px;
    max-width: 100%;
    margin: 0.75rem 0 1.25rem;
    padding: 8px;
    background: #ffffff;
    border-radius: var(--gai-radius);
}

.gai-manage-body .gai-qr-code svg {
    display: block;
    width: 100%;
    height: auto;
}

.gai-manage-body kbd {
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    letter-spacing: 0.04em;
    word-break: break-word;
}

.light-mode .gai-manage-body kbd {
    background: rgba(0, 0, 0, 0.06);
    color: var(--gai-charcoal-light);
}

/* Bootstrap Forms Overrides scoped inside gai-manage-body */
.gai-manage-body .form-control {
    width: 100% !important;
    background: rgba(255, 255, 255, 0.02) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: var(--gai-radius) !important;
    color: #ffffff !important;
    padding: 12px 16px !important;
    font-size: 0.95rem !important;
    transition: var(--gai-transition) !important;
    box-shadow: none !important;
}

.gai-manage-body .form-control:focus {
    background: rgba(255, 255, 255, 0.04) !important;
    border-color: var(--gai-crimson-light) !important;
    box-shadow: 0 0 0 3px rgba(224, 32, 32, 0.15) !important;
}

.gai-manage-body .form-control:disabled,
.gai-manage-body .form-control[readonly] {
    background: rgba(255, 255, 255, 0.01) !important;
    color: rgba(255, 255, 255, 0.35) !important;
    border-color: rgba(255, 255, 255, 0.04) !important;
    cursor: not-allowed !important;
}

.light-mode .gai-manage-body .form-control {
    background: rgba(0, 0, 0, 0.015) !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    color: var(--gai-charcoal) !important;
}

.light-mode .gai-manage-body .form-control:focus {
    background: #ffffff !important;
    border-color: var(--gai-crimson) !important;
    box-shadow: 0 0 0 3px rgba(192, 0, 0, 0.08) !important;
}

.light-mode .gai-manage-body .form-control:disabled,
.light-mode .gai-manage-body .form-control[readonly] {
    background: rgba(0, 0, 0, 0.02) !important;
    color: rgba(0, 0, 0, 0.45) !important;
    border-color: rgba(0, 0, 0, 0.05) !important;
}

/* Floating labels scoped styles */
.gai-manage-body .form-floating {
    position: relative !important;
    margin-bottom: 20px !important;
    width: 100% !important;
    display: block !important;
}

.gai-manage-body .form-floating>.form-control {
    height: 58px !important;
    padding-top: 1.625rem !important;
    padding-bottom: 0.625rem !important;
}

/* Hide placeholder text by default to prevent overlap with the centered label */
.gai-manage-body .form-floating>.form-control::placeholder {
    color: transparent !important;
}

/* Reveal placeholder text only on focus */
.gai-manage-body .form-floating>.form-control:focus::placeholder {
    color: rgba(255, 255, 255, 0.3) !important;
}

.light-mode .gai-manage-body .form-floating>.form-control:focus::placeholder {
    color: rgba(0, 0, 0, 0.4) !important;
}

.gai-manage-body .form-floating>label {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    padding: 1rem 1rem !important;
    color: rgba(255, 255, 255, 0.45) !important;
    transition: var(--gai-transition-fast) !important;
    pointer-events: none !important;
    display: flex !important;
    align-items: center !important;
    transform-origin: 0 0 !important;
}

.gai-manage-body .form-floating>.form-control:focus~label,
.gai-manage-body .form-floating>.form-control:not(:placeholder-shown)~label,
.gai-manage-body .form-floating>.form-control:-webkit-autofill~label {
    color: var(--gai-crimson-light) !important;
    opacity: 0.8 !important;
    transform: scale(0.85) translateY(-0.65rem) translateX(0.15rem) !important;
}

.light-mode .gai-manage-body .form-floating>label {
    color: rgba(0, 0, 0, 0.5) !important;
}

.light-mode .gai-manage-body .form-floating>.form-control:focus~label,
.light-mode .gai-manage-body .form-floating>.form-control:not(:placeholder-shown)~label,
.light-mode .gai-manage-body .form-floating>.form-control:-webkit-autofill~label {
    color: var(--gai-crimson) !important;
}

/* Grid columns & rows fallback since Bootstrap layout CSS might be missing on client page */
.gai-manage-body .row {
    display: flex !important;
    flex-wrap: wrap !important;
    margin-right: -12px !important;
    margin-left: -12px !important;
}

.gai-manage-body .col-xl-6,
.gai-manage-body .col-md-6,
.gai-manage-body [class*="col-"] {
    position: relative !important;
    width: 100% !important;
    padding-right: 12px !important;
    padding-left: 12px !important;
    flex: 0 0 100% !important;
    max-width: 100% !important;
}

@media (min-width: 768px) {
    .gai-manage-body .col-md-6 {
        flex: 0 0 50% !important;
        max-width: 50% !important;
    }
}

@media (min-width: 1200px) {
    .gai-manage-body .col-xl-6 {
        flex: 0 0 50% !important;
        max-width: 50% !important;
    }
}

/* Input groups fallback overrides */
.gai-manage-body .input-group {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: stretch !important;
    width: 100% !important;
    position: relative !important;
}

.gai-manage-body .input-group>.form-control {
    flex: 1 1 auto !important;
    width: 1% !important;
    border-top-right-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
}

.gai-manage-body .input-group-append {
    display: flex !important;
}

.gai-manage-body .input-group-text {
    display: flex !important;
    align-items: center !important;
    padding: 0 16px !important;
    font-size: 1.1rem !important;
    background: rgba(46, 125, 50, 0.15) !important;
    border: 1px solid rgba(46, 125, 50, 0.3) !important;
    border-left: none !important;
    color: #81C784 !important;
    border-top-right-radius: var(--gai-radius) !important;
    border-bottom-right-radius: var(--gai-radius) !important;
}

.light-mode .gai-manage-body .input-group-text {
    background: rgba(46, 125, 50, 0.08) !important;
    border-color: rgba(46, 125, 50, 0.2) !important;
    color: #1b5e20 !important;
}

/* General Button overrides inside gai-manage-body */
.gai-manage-body .btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    white-space: nowrap !important;
    vertical-align: middle !important;
    user-select: none !important;
    border: 1px solid transparent !important;
    padding: 12px 24px !important;
    font-size: 0.9rem !important;
    line-height: 1.5 !important;
    border-radius: var(--gai-radius) !important;
    transition: var(--gai-transition) !important;
    text-decoration: none !important;
    cursor: pointer !important;
    font-weight: 600 !important;
    margin-right: 8px !important;
    margin-bottom: 12px !important;
}

/* Buttons scoped styles */
.gai-manage-body .btn-primary {
    background: linear-gradient(135deg, var(--gai-crimson) 0%, var(--gai-crimson-dark) 100%) !important;
    border: none !important;
    border-radius: var(--gai-radius) !important;
    padding: 14px 28px !important;
    font-weight: 700 !important;
    font-family: 'Outfit', sans-serif !important;
    color: #ffffff !important;
    transition: var(--gai-transition) !important;
    letter-spacing: 0.04em !important;
    text-transform: uppercase !important;
    font-size: 0.85rem !important;
    box-shadow: 0 4px 12px rgba(192, 0, 0, 0.2) !important;
    cursor: pointer !important;
}

.gai-manage-body .btn-primary:hover {
    background: linear-gradient(135deg, var(--gai-crimson-light) 0%, var(--gai-crimson) 100%) !important;
    box-shadow: 0 6px 16px rgba(192, 0, 0, 0.3) !important;
    transform: translateY(-1px) !important;
}

.gai-manage-body .btn-primary:active {
    transform: translateY(1px) !important;
}

.gai-manage-body .btn-secondary,
.gai-manage-body .btn-link {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: var(--gai-radius) !important;
    padding: 12px 24px !important;
    font-weight: 600 !important;
    color: #ffffff !important;
    transition: var(--gai-transition-fast) !important;
    text-decoration: none !important;
    cursor: pointer !important;
}

.gai-manage-body .btn-secondary:hover,
.gai-manage-body .btn-link:hover {
    background: rgba(255, 255, 255, 0.08) !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
    color: #ffffff !important;
}

.light-mode .gai-manage-body .btn-secondary,
.light-mode .gai-manage-body .btn-link {
    background: rgba(0, 0, 0, 0.03) !important;
    border-color: rgba(0, 0, 0, 0.08) !important;
    color: var(--gai-charcoal) !important;
}

.light-mode .gai-manage-body .btn-secondary:hover,
.light-mode .gai-manage-body .btn-link:hover {
    background: rgba(0, 0, 0, 0.06) !important;
    border-color: rgba(0, 0, 0, 0.15) !important;
    color: var(--gai-charcoal-dark) !important;
}

.gai-manage-body .btn-danger {
    background: #C00000 !important;
    border: none !important;
    border-radius: var(--gai-radius) !important;
    padding: 14px 28px !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    font-family: 'Outfit', sans-serif !important;
    text-transform: uppercase !important;
    font-size: 0.85rem !important;
    letter-spacing: 0.04em !important;
    transition: var(--gai-transition) !important;
    cursor: pointer !important;
}

.gai-manage-body .btn-danger:hover {
    background: #E02020 !important;
    box-shadow: 0 4px 12px rgba(224, 32, 32, 0.25) !important;
    transform: translateY(-1px) !important;
}

/* Checklist and radio/checkbox layouts */
.gai-manage-body .form-check-label {
    color: rgba(255, 255, 255, 0.8) !important;
    font-size: 0.9rem !important;
    cursor: pointer !important;
}

.light-mode .gai-manage-body .form-check-label {
    color: var(--gai-charcoal-light) !important;
}

.gai-manage-body .form-check-input {
    background-color: rgba(255, 255, 255, 0.05) !important;
    border-color: rgba(255, 255, 255, 0.15) !important;
    cursor: pointer !important;
}

.gai-manage-body .form-check-input:checked {
    background-color: var(--gai-crimson) !important;
    border-color: var(--gai-crimson) !important;
}

.light-mode .gai-manage-body .form-check-input {
    background-color: #ffffff !important;
    border-color: rgba(0, 0, 0, 0.2) !important;
}

/* Alert styles */
.gai-manage-body .alert {
    border-radius: var(--gai-radius) !important;
    padding: 16px 20px !important;
    margin-bottom: 24px !important;
    font-size: 0.9rem !important;
    border: 1px solid transparent !important;
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    line-height: 1.4 !important;
}

.gai-manage-body .alert-success {
    background: rgba(46, 125, 50, 0.12) !important;
    border-color: rgba(46, 125, 50, 0.2) !important;
    color: #81C784 !important;
}

.light-mode .gai-manage-body .alert-success {
    background: rgba(46, 125, 50, 0.08) !important;
    color: #1b5e20 !important;
    border-color: rgba(46, 125, 50, 0.15) !important;
}

.gai-manage-body .alert-danger {
    background: rgba(192, 0, 0, 0.12) !important;
    border-color: rgba(192, 0, 0, 0.2) !important;
    color: #F87171 !important;
}

.light-mode .gai-manage-body .alert-danger {
    background: rgba(192, 0, 0, 0.08) !important;
    color: #b71c1c !important;
    border-color: rgba(192, 0, 0, 0.15) !important;
}

.gai-manage-body .alert-warning {
    background: rgba(255, 199, 44, 0.12) !important;
    border-color: rgba(255, 199, 44, 0.25) !important;
    color: #FFD966 !important;
}

.light-mode .gai-manage-body .alert-warning {
    background: rgba(255, 199, 44, 0.08) !important;
    color: #B38914 !important;
    border-color: rgba(255, 199, 44, 0.15) !important;
}

/* Validation styling overrides */
.gai-manage-body .text-danger {
    color: #ff5252 !important;
    font-size: 0.85rem !important;
    display: inline-block !important;
    margin-top: 4px !important;
}

.light-mode .gai-manage-body .text-danger {
    color: #d32f2f !important;
}

.gai-manage-body ul.validation-errors {
    list-style-type: none !important;
    padding-left: 0 !important;
    margin-bottom: 20px !important;
}

.gai-manage-body ul.validation-errors li {
    color: #ff5252 !important;
    font-size: 0.875rem !important;
}

.light-mode .gai-manage-body ul.validation-errors li {
    color: #d32f2f !important;
}

/* Sync settings styling */
.admin-sync-config-wrapper {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: all 0.25s ease;
    margin-bottom: 24px;
}

.admin-sync-config-header {
    padding: 14px 20px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    user-select: none;
    transition: background 0.2s ease;
}

.admin-sync-config-header:hover {
    background: #f1f5f9;
}

.admin-sync-config-body {
    padding: 20px;
    background: #ffffff;
    border-top: none;
}

/* SalvageAlert panel (Admin > Sources & Sync) */
.sa-status {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
}

.sa-status-text { font-size: 0.85rem; color: #475569; }

.sa-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #334155;
    background: #ffffff;
    border: 1px solid #e2e8f0;
}

.sa-pill-ok { color: #15803d; background: #f0fdf4; border-color: #bbf7d0; }
.sa-pill-warn { color: #b45309; background: #fffbeb; border-color: #fde68a; }
.sa-pill-info { color: #1d4ed8; background: #eff6ff; border-color: #bfdbfe; cursor: help; }

.sa-section {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #f1f5f9;
}

.sa-section:first-of-type { border-top: none; }

.sa-section-title {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #0f172a;
    margin-bottom: 8px;
}

.sa-section-help { font-size: 0.8rem; color: #64748b; margin: -4px 0 10px; }

.sa-group-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: #64748b;
    margin: 2px 0 2px 4px;
}

.sa-source-card {
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 12px 14px 6px;
    margin-bottom: 10px;
    background: #ffffff;
}

.sa-source-card-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 4px 12px;
    margin-bottom: 6px;
}

.sa-source-name { font-weight: 700; color: #0f172a; }
.sa-source-meta { font-size: 0.8rem; color: #64748b; }

.sa-results {
    margin-top: 12px;
    padding: 10px 12px;
    background: #f8fafc;
    border-radius: 10px;
}

.sa-results-title { font-size: 0.75rem; font-weight: 700; color: #64748b; margin-bottom: 4px; }

.sa-result-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px 8px;
    padding: 4px 0;
    font-size: 0.875rem;
    color: #334155;
}

.sa-result-name { font-weight: 600; color: #0f172a; }
.sa-result-error { color: #dc2626; flex-basis: 100%; padding-left: 28px; font-size: 0.82rem; }

.badge-sync-active {
    background-color: #fee2e2;
    color: #ef4444;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 20px;
    border: 1px solid #fca5a5;
    margin-left: 8px;
    animation: pulseSync 2s infinite;
}

@keyframes pulseSync {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

.sync-field .mud-input-control {
    margin-top: 0;
}

/* Fix temporary drawer viewport alignment and overlay focus issues */
.mud-drawer-temporary {
    position: fixed !important;
    top: 0 !important;
    bottom: 0 !important;
    z-index: 1400 !important;
}

.mud-drawer-overlay {
    position: fixed !important;
    z-index: 1395 !important;
}

/* --- Expandable Vehicle Details in Admin Panel --- */
.admin-details-row {
    display: none;
}

.admin-details-row.visible {
    display: table-row;
}

.admin-details-cell {
    background-color: #f8fafc;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
    padding: 24px !important;
    max-width: 0; /* Prevent details content from stretching the table columns */
}

.dark-mode .admin-details-cell {
    background-color: #0f172a;
    border-top: 1px solid #1e293b;
    border-bottom: 1px solid #1e293b;
}

.details-expanded-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.05);
    width: 100%; /* Force card to inherit layout constraints */
    box-sizing: border-box;
}

.dark-mode .details-expanded-card {
    background: #1e293b;
    border: 1px solid #334155;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.3);
}

.expanded-images-scroll {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 8px 0;
    scroll-behavior: smooth;
    width: 100%; /* Constrain scroll container width */
}

.expanded-image-wrapper {
    position: relative;
    flex: 0 0 auto;
    width: 160px;
    height: 120px;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid #e2e8f0;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.dark-mode .expanded-image-wrapper {
    border-color: #334155;
}

.expanded-image-wrapper:hover {
    transform: scale(1.04);
    border-color: var(--mud-palette-primary);
}

.expanded-image-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Price Review "Active vehicle" photo strip — ~2x the default admin thumbnail size so admins can
   make out damage/condition without opening the lightbox for every shot. */
.expanded-image-wrapper.review-photo-wrapper {
    width: 320px;
    height: 240px;
}

.expanded-specs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
    margin-top: 16px;
}

.spec-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.spec-label {
    font-size: 0.75rem;
    color: #64748b;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.spec-value {
    font-size: 0.875rem;
    color: #0f172a;
    font-weight: 600;
}

.dark-mode .spec-value {
    color: #f8fafc;
}

/* ===== Vehicle Detail — IA / usability pass ===== */

/* Key-facts strip (at-a-glance row under the gallery) */
.key-facts-strip {
    display: grid;
    grid-template-columns: repeat(6, auto);
    justify-content: space-between;
    gap: 8px 4px;
    padding: 14px 4px;
    border: 1px solid rgba(128, 128, 128, 0.12);
    border-radius: 16px;
}
.key-fact {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    padding: 2px 10px;
}
.key-fact + .key-fact {
    border-left: 1px solid rgba(128, 128, 128, 0.14);
}
/* Inner text wrapper: must allow shrink so the value can ellipsis instead of overflowing. */
.key-fact > div {
    min-width: 0;
}
.key-fact .mud-icon-root {
    color: var(--gai-crimson);
    flex-shrink: 0;
}
.key-fact-label {
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0.55;
    font-weight: 600;
}
.key-fact-value {
    font-size: 0.9rem;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
@media (max-width: 960px) {
    .key-facts-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 14px; }
    .key-fact:nth-child(3n+1) { border-left: none; }
}
@media (max-width: 480px) {
    .key-facts-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .key-fact:nth-child(3n+1) { border-left: 1px solid rgba(128, 128, 128, 0.14); }
    .key-fact:nth-child(2n+1) { border-left: none; }
}

/* Spec grouping */
.spec-group-label {
    font-family: 'Outfit', sans-serif;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700;
    color: var(--gai-crimson);
    opacity: 0.85;
    margin-bottom: 6px;
}
.spec-val { font-size: 0.92rem; font-weight: 600; }

/* Compact definition-list spec table (replaces the sparse 3-col grid) */
.spec-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 32px;
    margin: 0;
}
.spec-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    padding: 9px 0;
    border-bottom: 1px solid rgba(128, 128, 128, 0.1);
}
.spec-row dt {
    font-size: 0.8rem;
    opacity: 0.55;
    font-weight: 500;
    white-space: nowrap;
    margin: 0;
}
.spec-row dd {
    font-size: 0.9rem;
    font-weight: 600;
    margin: 0;
    text-align: right;
}
@media (max-width: 600px) {
    .spec-list { grid-template-columns: 1fr; gap: 0; }
}

/* Condition flag chips */
.condition-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.cond-chip {
    font-size: 0.72rem;
    font-weight: 600;
    padding: 3px 9px;
    border-radius: 16px;
    white-space: nowrap;
    border: 1px solid transparent;
}
.cond-good {
    background: rgba(46, 125, 50, 0.12);
    color: #2E7D32;
    border-color: rgba(46, 125, 50, 0.25);
}
.cond-bad {
    background: rgba(192, 0, 0, 0.1);
    color: #C00000;
    border-color: rgba(192, 0, 0, 0.25);
}
.dark-mode .cond-good { color: #81C784; background: rgba(76, 175, 80, 0.15); border-color: rgba(76, 175, 80, 0.3); }
.dark-mode .cond-bad { color: #F87171; background: rgba(248, 113, 113, 0.12); border-color: rgba(248, 113, 113, 0.3); }

/* Gallery fullscreen affordance */
.gallery-expand {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    opacity: 0;
    transition: opacity 0.25s ease, background 0.2s ease;
}
.gallery-main:hover .gallery-expand,
.gallery-main:focus-within .gallery-expand { opacity: 1; }
.gallery-expand:hover { background: rgba(0, 0, 0, 0.78); }

/* "Download all photos & details" link under the thumbnails */
.gallery-download {
    display: flex;
    justify-content: flex-end;
    margin-top: 8px;
}
.gallery-download a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--mud-palette-primary);
    text-decoration: none;
}
.gallery-download a:hover,
.gallery-download a:focus-visible { background: rgba(16, 185, 129, 0.08); }

/* Lightbox */
.lightbox-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    outline: none;
    animation: lb-fade 0.18s ease;
}
@keyframes lb-fade { from { opacity: 0; } to { opacity: 1; } }
.lightbox-img {
    max-width: 92vw;
    max-height: 88vh;
    object-fit: contain;
    border-radius: 6px;
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.6);
}
.lightbox-close {
    position: absolute;
    top: 20px;
    right: 24px;
    background: rgba(255, 255, 255, 0.12);
    color: white;
    border: none;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
.lightbox-close:hover { background: rgba(255, 255, 255, 0.25); }
.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.12);
    color: white;
    border: none;
    border-radius: 50%;
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
.lightbox-nav:hover { background: rgba(255, 255, 255, 0.25); }
.lightbox-prev { left: 24px; }
.lightbox-next { right: 24px; }
.lightbox-counter {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    background: rgba(0, 0, 0, 0.5);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

/* Mobile sticky buy bar — hidden on desktop, shown on phones */
/* Header mobile/tablet Browse CTA */
.header-browse-btn {
    background-color: var(--gai-gold) !important;
    color: #1d1d1d !important;
    font-weight: 700 !important;
    border-radius: 40px !important;
    text-transform: none !important;
    white-space: nowrap;
}

/* Drawer preference buttons (theme + currency on mobile) */
.drawer-pref-btn {
    justify-content: flex-start !important;
    text-transform: none !important;
    font-weight: 500 !important;
    padding-left: 16px !important;
    padding-right: 16px !important;
    color: var(--mud-palette-text-primary) !important;
}

/* Home mobile sticky CTA bar */
.mobile-cta-bar { display: none; }
@media (max-width: 960px) {
    .mobile-cta-bar {
        display: flex;
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 1200;
        padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
        background: var(--mud-palette-surface, #fff);
        border-top: 1px solid rgba(128, 128, 128, 0.18);
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.12);
    }
    .mobile-cta-btn {
        background-color: var(--gai-gold) !important;
        color: #1d1d1d !important;
        font-weight: 700 !important;
        border-radius: 12px !important;
        text-transform: none !important;
    }
    .mobile-cta-bar {
        transition: transform 0.25s ease, visibility 0.25s;
    }
    /* Home page: hidden while the hero is on screen (see heroCtaBar.js). */
    .mobile-cta-bar.is-hidden {
        transform: translateY(110%);
        visibility: hidden;
    }
    /* Lift the WhatsApp FAB above the sticky bars so they don't overlap */
    .whatsapp-fab {
        bottom: 80px;
        transition: bottom 0.25s ease;
    }
    body:has(.mobile-cta-bar.is-hidden) .whatsapp-fab {
        bottom: 24px;
    }
}

.mobile-buy-bar { display: none; }
@media (max-width: 960px) {
    .mobile-buy-bar {
        display: flex;
        align-items: center;
        gap: 12px;
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 1200;
        padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
        background: var(--mud-palette-surface, #fff);
        border-top: 1px solid rgba(128, 128, 128, 0.18);
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.12);
    }
    .mobile-buy-price { line-height: 1.1; white-space: nowrap; }
    .mobile-buy-ghs {
        font-family: 'Outfit', sans-serif;
        font-weight: 800;
        font-size: 1.15rem;
        color: var(--mud-palette-primary);
    }
    .mobile-buy-usd { font-size: 0.72rem; opacity: 0.6; font-weight: 500; }
    /* keep the sticky bar from covering page content / similar vehicles */
    .page-enter { padding-bottom: 84px; }
}
/* ── Vehicle detail layout ──
   Phones: photos → price & "how buying works" → specs, so the plan is seen before the spec sheet.
   Desktop (MudBlazor md+): photos, steps and specs on the left; the price + Reserve card is pinned
   alone on the right, so it never covers anything and stays above the fold. */
.vd-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    row-gap: 16px;
}
@media (min-width: 960px) {
    .vd-layout {
        grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
        grid-template-areas: "gallery side" "process side" "specs side";
        grid-template-rows: auto auto 1fr;
        column-gap: 32px;
        row-gap: 0;
    }
    .vd-gallery { grid-area: gallery; }
    .vd-side { grid-area: side; }
    .vd-process { grid-area: process; margin-top: 16px; }
    .vd-specs { grid-area: specs; }
    .vd-side-sticky { position: sticky; top: 64px; }
}
@media (min-width: 1280px) {
    .vd-layout { grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); }
}

.final-sale-hint {
    font-size: 0.78rem;
    font-weight: 600;
    margin-top: 2px;
    opacity: 0.85;
}

/* ── "How buying this car works" steps (BuySteps.razor) ── */
.buy-steps {
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid rgba(128, 128, 128, 0.16);
    background: var(--mud-palette-background-gray, rgba(128, 128, 128, 0.04));
}
.buy-steps-title {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 10px;
}
.buy-steps ol {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.buy-steps li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    position: relative;
}
/* connector line between the numbered circles */
.buy-steps li:not(:last-child)::after {
    content: "";
    position: absolute;
    left: 11px;
    top: 26px;
    bottom: -8px;
    width: 2px;
    background: rgba(128, 128, 128, 0.2);
}
.buy-step-num {
    flex: 0 0 24px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--mud-palette-primary);
    border: 2px solid var(--mud-palette-primary);
    background: var(--mud-palette-surface, #fff);
}
.buy-steps li:first-child .buy-step-num,
.buy-steps li.is-current .buy-step-num {
    color: var(--mud-palette-primary-text, #fff);
    background: var(--mud-palette-primary);
}
.buy-steps li.is-done .buy-step-num {
    color: #fff;
    background: #10b981;
    border-color: #10b981;
}
/* once the buyer is past step 1 (receipt), only the current step is filled */
.buy-steps:has(li.is-done) li:first-child:not(.is-done):not(.is-current) .buy-step-num {
    color: var(--mud-palette-primary);
    background: var(--mud-palette-surface, #fff);
}
.buy-step-text {
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.3;
    padding-top: 2px;
}
.buy-step-note {
    font-size: 0.76rem;
    opacity: 0.65;
    line-height: 1.3;
}
.buy-steps-more {
    display: inline-block;
    margin-top: 10px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--mud-palette-primary);
    text-decoration: none;
}

/* ─── Manage Vehicles (AdminVehicles.razor) ───
   Colours come from MudBlazor palette variables so light and dark admin themes both work. */
.av-stats {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(128px, 1fr));
    gap: 10px;
    margin-bottom: 16px;
}

.av-stat {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    padding: 10px 14px;
    border: 1px solid var(--mud-palette-lines-default);
    border-left: 3px solid var(--mud-palette-lines-default);
    border-radius: 10px;
    background: var(--mud-palette-surface);
    color: var(--mud-palette-text-primary);
    cursor: pointer;
    text-align: left;
    font: inherit;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.av-stat:hover { box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08); }
.av-stat.tone-success { border-left-color: var(--mud-palette-success); }
.av-stat.tone-info { border-left-color: var(--mud-palette-info); }
.av-stat.tone-warning { border-left-color: var(--mud-palette-warning); }
.av-stat.tone-muted { opacity: 0.8; }

.av-stat.active {
    border-color: var(--mud-palette-primary);
    box-shadow: 0 0 0 1px var(--mud-palette-primary) inset;
}

.av-stat-value {
    font-size: 1.25rem;
    font-weight: 800;
    line-height: 1.2;
    font-variant-numeric: tabular-nums;
}

.av-stat-label {
    font-size: 0.75rem;
    color: var(--mud-palette-text-secondary);
    white-space: nowrap;
}

.av-filter-bar {
    flex-wrap: wrap;
    gap: 10px;
}

.av-storefront-search { text-transform: none; white-space: nowrap; }

.av-filter-toggles {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    flex-basis: 100%;
}

/* Sticky so bulk actions stay reachable while scrolling a long page of results. */
.av-bulk-bar {
    position: sticky;
    top: 64px;
    z-index: 5;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 16px;
    margin: 8px 0;
    padding: 8px 14px;
    border: 1px solid var(--mud-palette-primary);
    border-radius: 10px;
    background: var(--mud-palette-surface);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.av-bulk-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 2px;
}

.av-bulk-actions .mud-button-root { text-transform: none; }

.av-table tr.av-row { cursor: pointer; }
.av-table tr.av-row-open > td { background: var(--mud-palette-action-default-hover); }

.av-title {
    display: flex;
    align-items: center;
    gap: 4px;
}

.av-sub {
    font-size: 0.75rem;
    color: var(--mud-palette-text-secondary);
}

.av-vin {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 0.72rem;
    color: var(--mud-palette-text-secondary);
    cursor: copy;
}

.av-vin:hover { color: var(--mud-palette-primary); }

.av-icon-featured { color: var(--mud-palette-warning); font-size: 1rem !important; }
.av-icon-modified { color: var(--mud-palette-warning-darken); font-size: 0.95rem !important; }

.av-ended,
.av-sold {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0 6px;
    border-radius: 8px;
    background: var(--mud-palette-action-disabled-background);
    color: var(--mud-palette-text-secondary);
}

.av-status-chip { cursor: pointer; }
.av-status-chip .mud-icon-root { margin-right: -6px; }

.av-sort {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    cursor: pointer;
    user-select: none;
    white-space: nowrap;
}

.av-sort-icon { font-size: 0.95rem !important; opacity: 0.35; }
.av-sort:hover .av-sort-icon,
.av-sort.active .av-sort-icon { opacity: 1; }
.av-sort.active { color: var(--mud-palette-primary); }

.av-section {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--mud-palette-lines-default);
}

.av-section-title {
    font-weight: 700 !important;
    margin-bottom: 8px;
}

.av-prediction {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.av-prediction-value {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--mud-palette-success-darken);
    font-variant-numeric: tabular-nums;
}

.av-model-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 8px;
    margin-top: 10px;
}

.av-model {
    display: flex;
    flex-direction: column;
    padding: 8px 12px;
    border: 1px solid var(--mud-palette-lines-default);
    border-radius: 8px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.av-pagination {
    flex-wrap: wrap;
    gap: 10px;
}

/* ============================================================
   Hand-entered listings: admin Add Vehicle, seller portal,
   seller review queue, and the storefront listing-type badges.
   ============================================================ */

/* Listing-type badges — "Auction import" vs "Local seller" */
.card-source-badge {
    position: absolute;
    left: 12px;
    bottom: 12px;
    z-index: 2;
    padding: 3px 9px;
    border-radius: 20px;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: #fff;
    backdrop-filter: blur(6px);
}
.card-source-badge.is-import { background: rgba(30, 31, 34, 0.72); }
.card-source-badge.is-local { background: rgba(46, 125, 50, 0.9); }

/* Staff view: publish status on each catalog card (staff only). */
.card-staff-badge {
    position: absolute;
    right: 12px;
    bottom: 12px;
    z-index: 2;
    padding: 3px 9px;
    border-radius: 20px;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: #fff;
    backdrop-filter: blur(6px);
}
.card-staff-badge.is-live { background: rgba(46, 125, 50, 0.9); }
.card-staff-badge.is-hidden { background: rgba(198, 40, 40, 0.92); }

/* Catalog card: what the headline price covers (car + shipping split). */
.vehicle-card .card-price-basis {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
    margin-top: 2px;
}
.card-price-split {
    font-size: 0.72rem;
    line-height: 1.35;
    color: var(--mud-palette-text-secondary);
}

/* Vehicle page: what the headline price covers. */
.price-basis {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    margin-top: 6px;
}
.price-basis .price-ship-chip { font-size: 0.78rem; padding: 3px 10px; }
.price-basis-split {
    font-size: 0.8rem;
    color: var(--mud-palette-text-secondary);
}

/* "Shipping included" pill — card and vehicle-page price block. */
.price-ship-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 9px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    line-height: 1.5;
    color: var(--mud-palette-text-secondary);
    background: rgba(128, 128, 128, 0.12);
}
.gai-rec-ship { align-self: flex-start; margin-top: 4px; }
.price-ship-chip.is-included {
    color: #1b5e20;
    background: rgba(46, 125, 50, 0.12);
}
.dark-mode .price-ship-chip.is-included {
    color: #81c784;
    background: rgba(129, 199, 132, 0.14);
}

.price-staff-usd {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--mud-palette-text-secondary);
}

/* Staff-only strip on the catalog and vehicle page. */
.staff-view-bar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px 10px;
    padding: 8px 12px;
    border: 1px dashed var(--mud-palette-primary);
    border-radius: 10px;
    background: color-mix(in srgb, var(--mud-palette-primary) 6%, transparent);
    font-size: 0.82rem;
}
.staff-view-bar .mud-button-root { text-transform: none; }
.staff-view-bar .staff-usd { font-weight: 700; }
.staff-view-bar .staff-actions { display: flex; flex-wrap: wrap; gap: 4px; margin-left: auto; }

.listing-type-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.73rem;
    font-weight: 700;
    border: 1px solid transparent;
}
.listing-type-badge.is-import { background: rgba(46, 48, 51, 0.08); color: var(--gai-charcoal); border-color: rgba(46, 48, 51, 0.18); }
.listing-type-badge.is-local { background: rgba(46, 125, 50, 0.1); color: var(--gai-green); border-color: rgba(46, 125, 50, 0.3); }
.dark-mode .listing-type-badge.is-import { color: #e5e5e5; background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.18); }
.dark-mode .listing-type-badge.is-local { color: var(--gai-green-light); }

.listing-description,
.sl-description {
    white-space: pre-wrap;
    line-height: 1.6;
    overflow-wrap: anywhere;
}

/* Forms */
.lf-card {
    border: 1px solid rgba(128, 128, 128, 0.15);
    border-radius: var(--gai-radius-lg);
}
.lf-section-title {
    font-weight: 700 !important;
    margin: 20px 0 8px;
}
.lf-sticky { position: sticky; top: 80px; }
@media (max-width: 1279px) { .lf-sticky { position: static; } }

.lf-preview {
    margin-top: 16px;
    padding: 12px;
    border-radius: var(--gai-radius);
    background: rgba(16, 185, 129, 0.06);
    border: 1px solid rgba(16, 185, 129, 0.18);
    font-size: 0.85rem;
}
.lf-preview-total { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 8px; flex-wrap: wrap; }
.lf-preview-row { display: flex; justify-content: space-between; gap: 8px; opacity: 0.75; padding: 2px 0; }

/* Photo uploader */
.lp-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 10px;
}
.lp-tile {
    position: relative;
    aspect-ratio: 4 / 3;
    border-radius: var(--gai-radius);
    overflow: hidden;
    background: rgba(128, 128, 128, 0.1);
}
.lp-tile img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lp-cover {
    position: absolute;
    top: 6px;
    left: 6px;
    background: var(--gai-crimson);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 12px;
}
.lp-actions {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    justify-content: center;
    background: rgba(0, 0, 0, 0.55);
}
.lp-actions .mud-icon-button { color: #fff; }
.lp-add {
    position: relative;
    aspect-ratio: 4 / 3;
    border: 2px dashed rgba(128, 128, 128, 0.4);
    border-radius: var(--gai-radius);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    cursor: pointer;
    text-align: center;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 8px;
}
.lp-add:hover { border-color: var(--gai-crimson); }
.lp-add.is-busy { cursor: progress; opacity: 0.7; }
.lp-hint { font-size: 0.7rem; font-weight: 400; opacity: 0.6; }
/* The real file input covers the tile so the whole tile is clickable/droppable. */
.lp-file-input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }

/* Admin seller review queue */
.sl-row {
    display: flex;
    gap: 12px;
    width: 100%;
    padding: 10px 12px;
    border: 0;
    border-bottom: 1px solid rgba(128, 128, 128, 0.12);
    background: transparent;
    text-align: left;
    cursor: pointer;
    color: inherit;
    font: inherit;
}
.sl-row:hover { background: rgba(128, 128, 128, 0.06); }
.sl-row.active { background: rgba(192, 0, 0, 0.06); box-shadow: inset 3px 0 0 var(--gai-crimson); }
.sl-row img { width: 72px; height: 54px; object-fit: cover; border-radius: 6px; flex-shrink: 0; background: rgba(128, 128, 128, 0.12); }
.sl-row-text { min-width: 0; }
.sl-row-title { font-weight: 700; font-size: 0.9rem; }
.sl-row-sub { font-size: 0.75rem; opacity: 0.65; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.gai-cust-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; }
.gai-cust-facts .lbl { display: block; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.05em; opacity: 0.5; font-weight: 600; }
.gai-cust-facts .val { display: block; font-weight: 600; margin-top: 2px; overflow-wrap: anywhere; }

/* Seller portal cards */
.seller-listing-card { display: flex; overflow: hidden; height: 100%; }
.slc-image { width: 160px; flex-shrink: 0; background: rgba(128, 128, 128, 0.1); }
.slc-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.slc-body { padding: 14px; flex: 1; min-width: 0; }
.slc-title { font-weight: 700; }
.slc-sub { font-size: 0.8rem; opacity: 0.7; }
@media (max-width: 600px) {
    .seller-listing-card { flex-direction: column; }
    .slc-image { width: 100%; height: 180px; }
}

/* ---- FAQ page (/faq) ---- */
.faq-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-bottom: 32px;
}

.faq-nav-link {
    padding: 6px 14px;
    border-radius: 999px;
    border: 1px solid rgba(128, 128, 128, 0.2);
    font-size: 0.85rem;
    font-weight: 600;
    color: inherit;
    text-decoration: none;
    transition: var(--gai-transition-fast);
}

.faq-nav-link:hover {
    border-color: var(--gai-crimson);
    color: var(--gai-crimson);
}

.dark-mode .faq-nav-link:hover {
    border-color: var(--gai-gold);
    color: var(--gai-gold);
}

.faq-section {
    margin-bottom: 32px;
    scroll-margin-top: 72px; /* clear the fixed app bar when jumping from the topic links */
}

.faq-section-title {
    font-weight: 700 !important;
    margin-bottom: 12px !important;
}

.faq-item {
    border: 1px solid rgba(128, 128, 128, 0.12);
    border-radius: 12px;
    margin-bottom: 8px;
    transition: var(--gai-transition-fast);
}

.faq-item[open] {
    border-color: rgba(128, 128, 128, 0.28);
}

.faq-item summary {
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 14px 18px;
    font-weight: 600;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: "+";
    flex-shrink: 0;
    font-size: 1.25rem;
    font-weight: 400;
    opacity: 0.5;
    transition: transform 0.15s ease;
}

.faq-item[open] summary::after {
    transform: rotate(45deg);
}

.faq-item summary:focus-visible {
    outline: 2px solid var(--gai-crimson);
    outline-offset: 2px;
    border-radius: 12px;
}

.faq-item p {
    margin: 0;
    padding: 0 18px 16px;
    line-height: 1.6;
    opacity: 0.75;
}

.faq-cta {
    text-align: center;
    padding: 32px 16px;
    border-radius: var(--gai-radius-xl);
    background: rgba(128, 128, 128, 0.05);
}

.faq-more-link {
    font-weight: 600;
    color: var(--gai-crimson);
    text-decoration: none;
}

.dark-mode .faq-more-link {
    color: var(--gai-gold);
}

/* ============================================================
   ADMIN SHELL — grouped sidebar, badges, top bar
   ============================================================ */

.admin-nav-group {
    display: flex;
    align-items: center;
    gap: 6px;
    width: 100%;
    margin-top: 14px;
    padding: 4px 16px;
    background: none;
    border: 0;
    cursor: pointer;
    font: inherit;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.38);
    text-align: left;
}

.admin-nav-group:hover { color: rgba(255, 255, 255, 0.7); }
.admin-nav-group > span:first-child { flex: 1; }
.admin-nav-group-chevron { opacity: 0.7; }

.admin-nav-link .admin-nav-label { flex: 1; min-width: 0; }

.admin-nav-badge {
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 10px;
    background: #C00000;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    line-height: 20px;
    text-align: center;
}

.admin-sidebar .admin-nav-alert { color: #f59e0b !important; }

.admin-nav-alert-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #f59e0b;
}

.admin-nav-link:focus-visible,
.admin-nav-group:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.5);
    outline-offset: -2px;
}

/* Top bar */
.admin-topbar { gap: 12px; }

.admin-topbar-crumb {
    display: flex;
    align-items: center;
    gap: 4px;
    min-width: 0;
    font-size: 0.875rem;
    color: #64748b;
    white-space: nowrap;
}

.admin-topbar-crumb-page {
    color: #0f172a;
    font-weight: 600;
    text-decoration: none;
}

.admin-topbar-crumb-page:hover { text-decoration: underline; }

.admin-search {
    position: relative;
    width: min(360px, 40vw);
}

.admin-search .mud-input-control { margin: 0 !important; }

.admin-search-results {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    max-height: 70vh;
    overflow-y: auto;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.14);
    padding: 6px 0;
    z-index: 1200;
}

.admin-search-group {
    padding: 8px 14px 4px;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #94a3b8;
}

.admin-search-hit {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    width: 100%;
    padding: 7px 14px;
    background: none;
    border: 0;
    font: inherit;
    text-align: left;
    color: #334155;
    cursor: pointer;
}

.admin-search-hit:hover,
.admin-search-hit:focus-visible { background: #f1f5f9; outline: none; }

.admin-search-hit-title { display: block; font-size: 0.875rem; font-weight: 600; color: #0f172a; }
.admin-search-hit-sub { display: block; font-size: 0.75rem; color: #64748b; }
.admin-search-empty { padding: 10px 14px; font-size: 0.85rem; color: #64748b; }

.admin-user-menu .mud-button-root { text-transform: none; border-radius: 16px; color: #334155; }
.admin-search-hit { justify-content: flex-start; }

/* Sidebar: fit every section on a ~900px-tall screen */
.admin-sidebar .admin-nav-link { padding-top: 8px; padding-bottom: 8px; }
.admin-sidebar .admin-nav-group { margin-top: 10px; }

@media (max-width: 960px) {
    .admin-topbar-crumb-group,
    .admin-topbar-crumb .mud-icon-root { display: none; }
    .admin-search { width: auto; flex: 1; min-width: 0; }
    /* Icons only: the label text (email · role) doesn't fit beside the search box */
    .admin-user-menu .mud-button-label { font-size: 0; }
    .admin-user-menu .mud-button-root { min-width: 0; }
    .admin-topbar > .flex-grow-1 { display: none; }   /* MudSpacer: let the search take the free width */
    .admin-topbar { padding: 8px 12px; gap: 6px; }
}

@media (max-width: 600px) {
    .admin-topbar-crumb { display: none; }
}

/* Section rows in the staff permission tables (mirror the sidebar's sections) */
.admin-table tr.admin-table-section td {
    padding-top: 14px !important;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #94a3b8 !important;
    background: #f8fafc;
}

/* Shared admin page header (AdminPageHeader.razor) */
.admin-page-header { align-items: flex-start; margin-bottom: 20px; }
.admin-page-heading { min-width: 0; flex: 1 1 360px; }
.admin-page-subtitle {
    margin-top: 4px;
    max-width: 820px;
    font-size: 0.875rem;
    line-height: 1.45;
    color: #64748b;
}
.admin-page-actions { flex-wrap: wrap; align-items: center; }
.admin-page-actions .mud-button-root { text-transform: none; }
.admin-breadcrumbs { padding: 0 !important; margin-bottom: 8px; font-size: 0.8rem; }

/* Inactivity sign-out warning (wwwroot/js/idleLogout.js) */
.idle-logout-notice {
    position: fixed;
    left: 50%;
    bottom: 24px;
    transform: translateX(-50%);
    z-index: 3000;
    display: flex;
    align-items: center;
    gap: 16px;
    max-width: calc(100vw - 32px);
    padding: 12px 16px;
    border-radius: 8px;
    background: #1f2937;
    color: #fff;
    font-size: 0.95rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.idle-logout-stay {
    flex-shrink: 0;
    padding: 6px 14px;
    border: 0;
    border-radius: 6px;
    background: #fff;
    color: #1f2937;
    font-weight: 600;
    cursor: pointer;
}
