/* ============================================================
   CAR CURE – Profile Dashboard Styles
   Inherits CSS variables from base.css
   ============================================================ */
@property --vc-icon-color {
    syntax: '<color>';
    initial-value: #888;
    inherits: true;
}

/* ── Page wrapper ─────────────────────────────────────────── */
.profile-page {
    min-height: calc(100vh - var(--nav-h));
    background: var(--black);
}

/* Push profile content below mobile navbar (3-layer mobile nav) */
@media (max-width: 968px) {
    .profile-page {
        margin-top: 60px;
    }
}

/* Headings override */
h1, h2, h3, h4 {
    font-family: 'Technor', sans-serif;
    font-weight: 400;
}

/* Maintenance module headings inside profile must keep their own font */
.profile-panel h1,
.profile-panel h2,
.profile-panel h3,
.profile-panel h4 {
    font-family: inherit;
}

/* ── Action Links ─────────────────────────────────────────────── */
.profile-action-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1rem;
    background: var(--gold);
    color: var(--black);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
}

.profile-action-link:hover {
    background: #d4b85e;
    transform: translateY(-1px);
}

/* ── Toasts ───────────────────────────────────────────────── */
.profile-toast {
    position: fixed;
    top: 110px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.9rem 1.75rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    z-index: 9999;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    animation: slideDown 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    transition: opacity 0.6s ease;
}

.profile-toast.success {
    background: linear-gradient(135deg, #062f2d, #0a4a47);
    color: #60e5d9;
    border: 1px solid rgba(96, 229, 217, 0.3);
}

.profile-toast.error {
    background: linear-gradient(135deg, #7f1d1d, #991b1b);
    color: #fca5a5;
    border: 1px solid rgba(252, 165, 165, 0.3);
}

.profile-toast.fade-out {
    opacity: 0;
    pointer-events: none;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

/* ── Hero Banner ──────────────────────────────────────────── */
.profile-hero {
    position: relative;
    background: var(--black-2);
    border-bottom: 1px solid var(--border);
    padding: 2.5rem 2rem 3rem;
    overflow: hidden;
}

.profile-hero-bg {
    position: absolute;
    right: 0;
    top: 0;
    width: 55%;
    height: 100%;
    object-fit: cover;
    object-position: right center;
    opacity: 0.35;
    mask-image: linear-gradient(to left, black 40%, transparent 100%);
    -webkit-mask-image: linear-gradient(to left, black 40%, transparent 100%);
    pointer-events: none;
    user-select: none;
}

.profile-hero-content {
    position: relative;
    z-index: 1;
    max-width: 1300px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

/* Avatar */
.profile-avatar-wrapper {
    position: relative;
    flex-shrink: 0;
}

.profile-avatar-img,
.profile-avatar-initials {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 2px solid var(--border-gold);
}

.profile-avatar-img {
    object-fit: cover;
}

.profile-avatar-initials {
    background: var(--gold-dim);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--gold);
}

.profile-avatar-ring {
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 1px dashed var(--border-gold);
    animation: spin 20s linear infinite;
}

/* ── Avatar Loading Spinner ────────────────────────────── */
.avatar-loading {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: rgba(6, 47, 45, 0.7);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 5;
}

.avatar-loading.active {
    display: flex;
}

.avatar-spinner {
    width: 30px;
    height: 30px;
    border: 3px solid rgba(255, 255, 255, 0.2);
    border-top-color: var(--primary-teal);
    border-radius: 50%;
    animation: avatar-spin 0.7s linear infinite;
}

@keyframes avatar-spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.spin {
    animation: spin 0.8s linear infinite;
    display: inline-block;
    vertical-align: middle;
}

.btn-save:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    pointer-events: none;
}

.verified-badge {
    position: absolute;
    bottom: 4px;
    right: 4px;
    width: 26px;
    height: 26px;
    background: #10b981;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--primary-dark);
    font-size: 0.65rem;
    color: white;
    font-weight: 800;
}

.avatar-upload-overlay {
    position: absolute;
    inset: 0;
    background: rgba(6, 47, 45, 0.6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-teal);
    font-size: 1.5rem;
    opacity: 0;
    transition: opacity 0.3s ease;
    cursor: pointer;
    border: 3px solid transparent;
}

.profile-avatar-wrapper:hover .avatar-upload-overlay {
    opacity: 1;
}

/* Hero text */
.profile-hero-text h1 {
    font-size: clamp(1.6rem, 4vw, 2.4rem);
    font-weight: 700;
    color: var(--text);
    margin: 0 0 0.3rem;
    letter-spacing: -0.02em;
    font-family: 'Supreme', system-ui, sans-serif;
}

.profile-hero-email {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.95rem;
    margin: 0 0 1rem;
}

.profile-hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.profile-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.9rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.profile-tag.method-google {
    background: rgba(66, 133, 244, 0.2);
    color: #93c5fd;
}

.profile-tag.method-facebook {
    background: rgba(59, 89, 152, 0.3);
    color: #a5b4fc;
}

.profile-tag.method-email {
    background: rgba(96, 229, 217, 0.15);
    color: var(--primary-teal);
}

.profile-tag.method-phone {
    background: rgba(16, 185, 129, 0.15);
    color: #6ee7b7;
}

.profile-tag.verified {
    background: rgba(16, 185, 129, 0.2);
    color: #6ee7b7;
}

.profile-tag.unverified {
    background: rgba(245, 158, 11, 0.2);
    color: #fcd34d;
}

.profile-hero-quote {
    margin: 0 0 0 auto;
    max-width: 300px;
    flex-shrink: 0;
    font-size: 1.2rem;
    font-weight: 500;
    font-style: italic;
    line-height: 1.6;
    letter-spacing: 0.01em;
    color: rgba(255, 255, 255, 0.75);
    padding: 0.25rem 0 0.9rem;
    text-wrap: balance;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
    position: relative;
}

.profile-hero-quote::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 64px;
    height: 2px;
    background: var(--gold);
    border-radius: 2px;
}

/* ── Main Grid ────────────────────────────────────────────── */
.profile-grid {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 1.5rem;
    padding: 2rem 2.5rem 4rem;
    margin: 0 auto;
    max-width: 1400px;
    position: relative;
    z-index: 2;
}

/* Responsive adjustments for the profile grid */
@media (max-width: 768px) {
    .profile-grid {
        grid-template-columns: 1fr;
    }
}

/* ── Sidebar ──────────────────────────────────────────────── */
.profile-sidebar {
    display: flex;
    flex-direction: column;
    height: fit-content;
    position: sticky;
    top: 100px;
    z-index: 9999;
    gap: 1rem;
}

.profile-nav {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    overflow: hidden;
}

/* ── Content Panels ───────────────────────────────────────── */
.profile-content {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.profile-panel {
    display: none;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    animation: panelIn 0.3s ease;
    padding: 0;
}

.profile-panel.active {
    display: block;
}

.profile-nav-btn {
    position: relative;
    width: 100%;
    height: 62px;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 0 18px;
    border-radius: 10px;
    border: 1px solid transparent;
    background: rgba(18, 18, 27, 0.72);
    color: #777887;
    text-decoration: none;
    overflow: hidden;
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 0.15px;
    cursor: pointer;
    text-align: left;
    z-index: 100;
    transition:
        color 0.25s ease,
        border-color 0.25s ease,
        background 0.25s ease,
        box-shadow 0.25s ease;
}


/* Car icon — inline SVG, inherits text color via fill */
.profile-car-icon {
    fill: var(--text-muted);
    opacity: 0.75;
    flex-shrink: 0;
    transition: fill 0.2s ease, opacity 0.2s ease;
}

.profile-nav-btn:hover .profile-car-icon {
    fill: var(--text);
    opacity: 1;
}

.profile-nav-btn.active .profile-car-icon {
    fill: var(--gold);
    opacity: 1;
}

.vc-icon {
    filter: brightness(0) saturate(100%) invert(58%) sepia(12%) saturate(601%) hue-rotate(168deg) brightness(91%) contrast(85%);
    transition: filter 0.2s ease;
}

.profile-nav-btn:hover .vc-icon {
    filter: brightness(0) saturate(100%) invert(100%);
}

.profile-nav-btn.active .vc-icon {
    filter: brightness(0) saturate(100%) invert(74%) sepia(21%) saturate(966%) hue-rotate(7deg) brightness(93%) contrast(88%);
}

.profile-nav-btn i {
    font-size: 1rem;
    width: 1.2rem;
    text-align: center;
}

/* Maintenance icon — img tag, grey by default */
.maintenance-icon {
    filter: brightness(0) saturate(100%) invert(58%) sepia(5%) saturate(100%) hue-rotate(180deg) brightness(90%) contrast(85%);
    transition: filter 0.2s ease;
}

.profile-nav-btn:hover .maintenance-icon {
    filter: brightness(0) saturate(100%) invert(100%);
}

.profile-nav-btn.active .maintenance-icon {
    filter: brightness(0) saturate(100%) invert(74%) sepia(21%) saturate(966%) hue-rotate(7deg) brightness(93%) contrast(88%);
}

.profile-nav-btn:hover {
    background: var(--surface-2);
    color: var(--text);
}

.profile-nav-btn.active {
    color: #e4c44e;
    font-weight: 600;
    background: linear-gradient(
        100deg,
        rgba(125, 108, 55, 0.36) 0%,
        rgba(105, 96, 59, 0.32) 22%,
        rgba(82, 80, 59, 0.28) 45%,
        rgba(60, 61, 53, 0.24) 70%,
        rgba(42, 43, 42, 0.20) 100%
    );
    border: 1px solid rgba(205, 170, 62, 0.75);
    box-shadow:
        inset 0 1px 1px rgba(255, 255, 255, 0.06),
        inset 0 0 18px rgba(201, 168, 76, 0.05),
        0 5px 15px rgba(0, 0, 0, 0.28);
}

.profile-nav-btn.active::after {
    content: "";
    position: absolute;
    left: 1px;
    right: 1px;
    top: 1px;
    height: 1px;
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0.12),
        rgba(255, 255, 255, 0.04),
        transparent
    );
    pointer-events: none;
}

.profile-nav-btn i,
.profile-nav-btn svg,
.profile-nav-btn img {
    position: relative;
    z-index: 2;
}

/* Notification Badge */
.pf-notification-badge {
    position: absolute;
    top: 50%;
    right: 0.75rem;
    transform: translateY(-50%);
    background: #ef4444;
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
    width: 20px;
    height: 20px;
    padding: 0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    z-index: 5;
    transition: all 0.2s ease;
    pointer-events: none;
    line-height: 1;
    font-family: 'Inter', sans-serif;
    overflow: hidden;
}

.profile-nav-btn.active .pf-notification-badge {
    background: #ef4444;
    color: white;
}

.profile-signout-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    box-sizing: border-box;
    text-decoration: none;
    color: #f87171 !important;
}

.profile-signout-btn svg {
    color: #f87171;
}

.profile-signout-btn:hover {
    background: var(--surface-2) !important;
    border: none !important;
    color: #f87171 !important;
}

.profile-signout-btn.active {
    background: var(--surface-2) !important;
    border: none !important;
    color: #f87171 !important;
    font-weight: 600;
}

/* ── Content Panels ───────────────────────────────────────── */

@keyframes panelIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

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

.panel-header {
    padding: 2rem 2.5rem 1.5rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.panel-header>div {
    flex: 1;
    min-width: 0;
}

.panel-header h2 {
    font-size: 1.5rem;
    font-weight: 600;
    font-family: 'Supreme', system-ui, sans-serif;
    color: var(--text);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-shrink: 0;
}

.panel-header h2 i {
    color: var(--gold);
    font-size: 1.2rem;
}

/* Car icon inside panel headings — white */
.panel-header h2 .profile-car-icon {
    fill: #ffffff;
    opacity: 1;
}

/* Empty state car icon — subtle gold tint */
.profile-car-icon--empty {
    fill: rgba(201, 168, 76, 0.5);
    opacity: 0.9;
}

.panel-header p {
    color: var(--text-muted);
    font-size: clamp(0.85rem, 2vw, 1.05rem);
    margin: 0.3rem 0 0 0;
    padding-left: 0;
    line-height: 1.5;
    word-break: break-word;
    overflow-wrap: break-word;
    flex: 1;
    min-width: 0;
}

/* Optimize subtitle container for better horizontal space usage */
#section-details .panel-header>div,
#section-vehicles .panel-header>div,
#section-vehicle-care .panel-header>div,
#section-orders .panel-header>div,
#section-road-assist .panel-header>div {
    flex: 1;
    min-width: 0;
}

/* Desktop: Allow subtitle to use full width when action button is present */
@media (min-width: 901px) {
    .panel-header {
        flex-wrap: nowrap;
        align-items: center;
    }

    .panel-header>div {
        flex: 1;
        min-width: 0;
    }

    .panel-header h2 {
        flex-shrink: 0;
        margin-bottom: 0;
    }

    .panel-header p {
        flex: 1;
        min-width: 0;
        margin-bottom: 0;
        white-space: normal;
    }

    /* Action buttons should not wrap */
    .panel-header>a,
    .panel-header>button {
        flex-shrink: 0;
        white-space: nowrap;
    }
}

/* Mobile: Stack header elements vertically for better readability */
@media (max-width: 768px) {
    .panel-header {
        display: grid;
        grid-template-columns: 1fr auto;
        gap: 0.5rem;
        align-items: flex-start;
    }

    .panel-header>div {
        grid-column: 1 / -1;
        padding-bottom: 0.75rem;
        border-bottom: 1px solid var(--border);
    }

    #section-vehicles .panel-header,
    #section-vehicle-care .panel-header,
    #section-orders .panel-header,
    #section-road-assist .panel-header {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }

    #section-vehicles .panel-header h2 svg,
    #section-vehicle-care .panel-header h2 svg,
    #section-vehicle-care .panel-header h2 img,
    #section-orders .panel-header h2 svg,
    #section-road-assist .panel-header h2 svg {
        width: 28px;
        height: 28px;
    }

    #section-vehicles .panel-header h2,
    #section-vehicle-care .panel-header h2,
    #section-orders .panel-header h2,
    #section-road-assist .panel-header h2 {
        display: inline-flex;
        align-items: center;
        gap: 0.5rem;
    }

    .panel-header>a,
    .panel-header>button {
        grid-column: 1 / -1;
        align-self: flex-start;
        margin-top: 0;
    }
}

/* ── Profile Form ─────────────────────────────────────────── */
.profile-form {
    padding: 2rem 2.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid var(--border);
    border-radius: 10px;
    font-size: 0.95rem;
    color: var(--text);
    background: var(--black-3);
    transition: all 0.2s ease;
    font-family: 'Supreme', system-ui, sans-serif;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--gold);
    background: var(--black-3);
    box-shadow: 0 0 0 3px var(--gold-dim);
}

.form-group textarea {
    resize: vertical;
    min-height: 90px;
}

.input-disabled {
    opacity: 0.5;
    cursor: not-allowed !important;
    background: var(--surface) !important;
}

.field-hint {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.4rem;
    line-height: 1.5;
}

.field-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.field-badge.verified {
    background: #d1fae5;
    color: #065f46;
}

.field-badge.unverified {
    background: #fef3c7;
    color: #92400e;
}

.resend-link {
    background: none;
    border: none;
    color: inherit;
    text-decoration: underline;
    cursor: pointer;
    font-size: inherit;
    font-weight: 700;
    padding: 0;
}

.form-actions {
    margin-top: 0.5rem;
    display: flex;
    justify-content: flex-end;
}

.btn-save {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: var(--gold);
    color: var(--black);
    border: 1px solid var(--gold);
    padding: 0.7rem 1rem;
    border-radius: 8px;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 20%;
    min-width: 120px;
    justify-content: center;
    font-family: 'Supreme', system-ui, sans-serif;
}

.btn-save-vehicle {
    width: 100%;
    padding: 0.85rem 1.5rem;
    font-size: 0.9rem;
    min-width: 0;
}

.btn-save:hover {
    background: var(--gold-light);
    border-color: var(--gold-light);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(201, 168, 76, .3);
}

.btn-add-vehicle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: var(--gold-dim);
    border: 1px solid var(--border-gold);
    color: var(--gold);
    padding: 0.6rem 1.25rem;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.33, 1, 0.68, 1);
    font-family: 'Supreme', system-ui, sans-serif;
    white-space: nowrap;
}

.btn-add-vehicle:hover {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--black);
    filter: none;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(201, 168, 76, .3);
}

/* ── Security Cards ───────────────────────────────────────── */
.security-cards {
    padding: 2rem 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.security-card {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.25rem 1.5rem;
    background: var(--black-3);
    border-radius: 12px;
    border: 1px solid var(--border);
    transition: border-color 0.2s;
}

.security-card:hover {
    border-color: var(--border-gold);
}

.security-card-icon {
    width: 46px;
    height: 46px;
    background: var(--gold-dim);
    border: 1px solid var(--border-gold);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.2rem;
    color: var(--gold);
}

.security-card-info {
    flex: 1;
}

.security-card-info h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text);
    margin: 0 0 0.2rem;
}

.security-card-info p {
    font-size: 1rem;
    color: var(--text-muted);
    margin: 0;
}

.text-success {
    color: #059669 !important;
}

.text-warning {
    color: #d97706 !important;
}

.btn-outline-small {
    background: none;
    border: 1px solid var(--border-gold);
    color: var(--gold);
    padding: 0.45rem 1rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.btn-outline-small:hover {
    background: var(--gold-dim);
    border-color: var(--gold);
}

/* ── Empty States ─────────────────────────────────────────── */
.empty-state {
    padding: 4rem 2.5rem;
    text-align: center;
}

.empty-state-icon {
    width: 90px;
    height: 90px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--surface), var(--black-3));
    border: 1px solid var(--border);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.empty-state-icon.loading {
    width: 120px;
    height: 120px;
    margin-bottom: 0.25rem;
}

.empty-state-icon svg {
    color: var(--gold-dim);
    opacity: 0.7;
}

.empty-state-icon img {
    filter: brightness(0) saturate(100%);
    opacity: 0.7;
}

/* Loading breathing animation */
@keyframes emptyStateBreathe {

    0%,
    100% {
        opacity: 0.3;
        transform: scale(1);
    }

    50% {
        opacity: 1;
        transform: scale(1.12);
    }
}

.empty-state-icon.loading svg,
.empty-state-icon.loading img {
    width: 70px;
    height: 70px;
    animation: emptyStateBreathe 3.5s ease-in-out infinite;
}

.empty-state.loading h3,
.empty-state.loading p,
.empty-state.loading .btn-save,
.empty-state.loading a.btn-save,
.empty-state.loading .btn-add-vehicle {
    display: none;
}

/* Loading text */
.empty-state-loading-text {
    display: none;
    font-size: 2rem;
    font-family: 'Technor', sans-serif;
    font-weight: 600;
    color: var(--gold);
    opacity: 0.6;
    letter-spacing: 0.1em;
    margin-top: 0.5rem;
    overflow: hidden;
    white-space: nowrap;
    width: 0;
}

.empty-state.loading .empty-state-loading-text {
    display: inline-block;
    animation: typing 2s steps(8, end) infinite;
}

@keyframes typing {

    0%,
    10% {
        width: 0;
    }

    50%,
    80% {
        width: 8ch;
    }
}

.empty-state h3 {
    font-size: 1.3rem;
    font-weight: 600;
    font-family: 'Supreme', system-ui, sans-serif;
    color: var(--text);
    margin: 0 0 0.5rem;
}

.empty-state p {
    color: var(--text-muted);
    margin: 0 0 1.5rem;
    font-size: 1.05rem;
}

/* ── Modals ───────────────────────────────────────────────── */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .7);
    backdrop-filter: blur(8px);
    z-index: 9998;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    background: var(--surface);
    border: 1px solid var(--border);
    width: 90%;
    max-width: 500px;
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, .5);
    transform: translateY(20px);
    transition: transform 0.3s ease;
    z-index: 20001;
    margin-top: 60px;
    margin-bottom: 20px;
}

@media (max-width: 968px) {
    .modal-overlay {
        align-items: flex-start;
        overflow-y: auto;
        padding-top: 180px;
        padding-bottom: 40px;
    }

    .modal-content {
        margin-top: 0;
    }
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
    position: relative;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.4rem;
    font-family: 'Supreme', system-ui, sans-serif;
    font-weight: 400;
    color: var(--text);
}

.btn-close-modal {
    background: transparent;
    border: 1px solid transparent;
    font-size: 1.25rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s ease;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    line-height: 1;
}

.btn-close-modal:hover {
    color: var(--gold);
    background: var(--gold-dim);
    border-color: var(--border-gold);
}

/* Success Modal */
.modal-success {
    text-align: center;
    max-width: 380px;
}

.modal-success .success-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, #065f46, #10b981);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-success .success-icon svg {
    color: white;
}

.modal-success h3 {
    font-size: 1.5rem;
    font-family: 'Supreme', system-ui, sans-serif;
    color: var(--text);
    margin: 0 0 0.5rem;
}

.modal-success p {
    color: var(--text-muted);
    margin: 0;
}

/* Vehicle Modal */
.vehicle-modal {
    max-width: 580px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    box-sizing: border-box;
}

/* Custom Scrollbar */
.vehicle-modal {
    scrollbar-width: thin;
    scrollbar-color: var(--gold-dim) transparent;
}

.vehicle-modal::-webkit-scrollbar {
    width: 6px;
}

.vehicle-modal::-webkit-scrollbar-track {
    background: transparent;
}

.vehicle-modal::-webkit-scrollbar-thumb {
    background: var(--gold-dim);
    border-radius: 3px;
}

.vehicle-modal::-webkit-scrollbar-thumb:hover {
    background: var(--gold);
}

.vehicle-modal::-webkit-scrollbar-button {
    display: none;
}

.form-section {
    margin-bottom: 1rem;
    padding: 1rem 1.25rem;
    background: var(--black-3);
    border: 1px solid var(--border);
    border-radius: 12px;
}

.form-section:last-of-type {
    border-bottom: none;
    margin-bottom: 0.5rem;
}

.form-section-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--gold);
    margin: 0 0 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-body);
    letter-spacing: 0.02em;
    padding-bottom: 0.5rem;
    border-bottom: 1px dashed var(--border);
}

.form-section-title svg {
    flex-shrink: 0;
}

.form-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group.full-width {
    grid-column: span 2;
}

@media (max-width: 500px) {
    .form-grid-2 {
        grid-template-columns: 1fr;
    }

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

/* Custom Select */
.sp-select-wrap {
    position: relative;
    width: 100%;
}

.sp-select-wrap select {
    width: 100%;
    padding: 0.8rem 2.5rem 0.8rem 1rem;
    border: 1px solid var(--border);
    border-radius: 10px;
    font-size: 0.95rem;
    color: var(--text);
    background: var(--black-3);
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    font-family: 'Supreme', system-ui, sans-serif;
}

.sp-select-wrap select option {
    color: var(--text);
    background: var(--black-3);
}

.sp-select-wrap select:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px var(--gold-dim);
}

.sp-select-arrow {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
    font-size: 0.8rem;
}

.sp-req {
    color: #f87171;
    font-weight: 600;
}

.sp-optional {
    color: var(--text-muted);
    font-weight: 400;
    font-size: 0.85em;
}

/* Vehicle Photo Section */
.vehicle-photo-section {
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px dashed var(--border);
}

.vehicle-photo-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.75rem;
    overflow-x: visible;
}

@media (max-width: 768px) {
    .vehicle-photo-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.5rem;
    }
}

@media (max-width: 480px) {
    .vehicle-photo-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }
}

.photo-upload-slot {
    aspect-ratio: 1;
    border: 2px dashed var(--border);
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    cursor: pointer;
    transition: all 0.25s ease;
    background: var(--surface);
    min-width: 0;
    overflow: hidden;
    box-sizing: border-box;
}

.photo-upload-slot:hover {
    border-color: var(--gold);
    background: var(--gold-dim);
}

.photo-upload-slot.has-file {
    border: 2px solid var(--gold);
    background: var(--gold-dim);
    box-shadow: 0 0 0 1px var(--gold), inset 0 0 12px rgba(196, 163, 90, 0.08);
}

.photo-upload-slot.has-file::after {
    content: 'Change';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 4px 0;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    font-size: 0.6rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    text-align: center;
    opacity: 0;
    transition: opacity 0.2s ease;
    z-index: 2;
    pointer-events: none;
}

.photo-upload-slot.has-file:hover::after {
    opacity: 1;
}

.photo-upload-slot.has-file:hover {
    border-color: var(--accent, #4fa85a);
    box-shadow: 0 0 0 1px var(--accent, #4fa85a), 0 2px 8px rgba(79, 168, 90, 0.15);
}

.photo-input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 3;
}

.photo-preview {
    position: absolute;
    inset: 0;
    border-radius: 8px;
    overflow: hidden;
    display: none;
    z-index: 1;
    pointer-events: none;
}

.photo-preview:not([hidden]) {
    display: block;
}

.photo-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.interior-thumb-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2px;
    width: 100%;
    height: 100%;
    padding: 2px;
    box-sizing: border-box;
}

.interior-thumb-grid img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
}

.interior-count {
    color: var(--text-muted);
    font-size: 0.65rem;
    margin-left: 2px;
}

.photo-remove {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 20px;
    height: 20px;
    background: rgba(220, 38, 38, 0.9);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 14px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 4;
    pointer-events: auto;
}

.photo-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    color: var(--text-muted);
    font-size: 0.7rem;
    text-align: center;
    padding: 0.25rem;
    word-break: break-word;
}

.photo-empty img,
.photo-empty svg {
    color: var(--gold-dim);
    margin-bottom: 0.25rem;
    object-fit: contain;
    opacity: 0.6;
    filter: sepia(1) saturate(2) hue-rotate(5deg);
}

#emptyFront img,
#emptyBack img {
    width: 26px;
    height: 26px;
}

#emptyLeft img,
#emptyRight img {
    width: 38px;
    height: 38px;
}

#emptyInterior img {
    width: 38px;
    height: 38px;
    filter: brightness(0) invert(0.83) sepia(1) saturate(2) hue-rotate(5deg);
}

.photo-empty span {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text);
    line-height: 1.2;
}

@media (max-width: 768px) {

    .photo-empty img,
    .photo-empty svg {
        max-width: 32px;
        max-height: 32px;
    }
}

@media (max-width: 480px) {
    .photo-upload-slot {
        padding: 0.35rem 0.2rem;
    }

    .photo-empty {
        gap: 0.15rem;
    }

    .photo-empty img,
    .photo-empty svg {
        max-width: 26px;
        max-height: 26px;
    }

    .photo-empty span {
        font-size: 0.65rem;
    }
}

.vehicles-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4rem;
    padding: 1.5rem 2rem;
    max-width: 800px;
    margin: 0 auto;
}

/* Mobile: larger photo upload icons and labels */
@media (max-width: 480px) {
    .vehicle-photo-grid {
        gap: 0.85rem;
    }

    .photo-upload-slot {
        padding: 0.6rem 0.3rem;
    }

    .photo-empty {
        gap: 0.4rem;
    }

    .photo-empty img,
    .photo-empty svg {
        max-width: 42px;
        max-height: 42px;
    }

    #emptyFront img,
    #emptyBack img {
        width: 42px;
        height: 42px;
    }

    #emptyLeft img,
    #emptyRight img {
        width: 58px;
        height: 58px;
        max-width: 58px;
        max-height: 58px;
    }

    #emptyInterior img {
        width: 50px;
        height: 50px;
        max-width: 50px;
        max-height: 50px;
    }

    .photo-empty span {
        font-size: 0.9rem;
    }
}

.vehicle-card {
    background: var(--black-3);
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: visible;
    position: relative;
    transition: all 0.3s ease;
    min-height: auto;
    width: 100%;
    max-width: 350px;
}

.vehicle-card:hover {
    border-color: var(--border-gold);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.vehicle-card-badge {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    background: linear-gradient(135deg, var(--gold), #d4a843);
    color: var(--black);
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.3rem 0.65rem;
    border-radius: 6px;
    z-index: 2;
    letter-spacing: 0.03em;
}

.vehicle-card-image {
    width: 100%;
    height: 120px;
    background: var(--surface);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 12px 12px 0 0;
}

.vehicle-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.vehicle-card-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--surface), var(--black-3));
}

.vehicle-card-placeholder i {
    font-size: 3rem;
    color: var(--gold-dim);
    opacity: 0.5;
}

/* ── Maintenance Request Card Delete Button ───────────────────── */
.maint-card-delete-btn {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    width: 32px;
    height: 32px;
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(220, 38, 38, 0.3);
    border-radius: 8px;
    color: #f87171;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.2s ease;
    z-index: 4;
}

.maint-card:hover .maint-card-delete-btn,
.maint-card:focus-within .maint-card-delete-btn {
    opacity: 1;
}

.maint-card-delete-btn:hover {
    background: #dc2626;
    color: white;
    border-color: #dc2626;
}

.btn-remove-vehicle {
    position: absolute;
    bottom: 0.75rem;
    right: 0.75rem;
    width: 32px;
    height: 32px;
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(220, 38, 38, 0.3);
    border-radius: 8px;
    color: #f87171;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.2s ease;
    z-index: 4;
}

.vehicle-card:hover .btn-remove-vehicle {
    opacity: 1;
}

.btn-remove-vehicle:hover {
    background: #dc2626;
    color: white;
    border-color: #dc2626;
}

.vehicle-card-content {
    padding: 0.875rem;
}

.vehicle-card-content h4 {
    font-size: 0.95rem;
    font-weight: 600;
    font-family: 'Supreme', system-ui, sans-serif;
    color: var(--text);
    margin: 0 0 0.5rem;
    letter-spacing: 0.01em;
}

.vehicle-card-details {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 0.4rem;
}

.vehicle-card-details span {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.7rem;
    color: var(--text-muted);
    background: var(--surface);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    border: 1px solid var(--border);
}

.vehicle-card-details i {
    color: var(--gold-dim);
    font-size: 0.65rem;
}

.vehicle-card-vin {
    font-size: 0.7rem;
    color: var(--text-muted);
    font-family: var(--font-mono);
    padding: 0.35rem 0.5rem;
    background: var(--black);
    border-radius: 4px;
    display: inline-block;
    margin-top: 0.5rem;
}

.vehicle-card-detail-vin {
    font-family: var(--font-mono);
    letter-spacing: 0.03em;
}

.vehicle-card-vin i {
    margin-right: 0.35rem;
    color: var(--text-muted);
}

.btn-view-images {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--gold), #d4a843);
    color: var(--black);
    border: 1px solid var(--gold);
    border-radius: 20px;
    padding: 0.5rem 1.4rem;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-family: 'Supreme', system-ui, sans-serif;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 2px 8px rgba(201, 168, 76, 0.25);
}

.btn-view-images:hover {
    background: linear-gradient(135deg, var(--gold-light), var(--gold));
    border-color: var(--gold-light);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(201, 168, 76, 0.4);
}

.btn-view-images:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(201, 168, 76, 0.25);
}

.vehicle-card:hover .btn-view-images {
    box-shadow: 0 4px 14px rgba(201, 168, 76, 0.35);
}

@media (max-width: 900px) {
    .profile-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 1rem 1rem 3rem;
    }

    .profile-hero {
        padding: 2rem 1rem 3rem;
    }

    .profile-hero-bg {
        width: 65%;
        opacity: 0.25;
        mask-image: linear-gradient(to left, black 30%, transparent 90%);
        -webkit-mask-image: linear-gradient(to left, black 30%, transparent 90%);
    }

    .profile-hero-content {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }

    .profile-hero-quote {
        margin: 0 auto;
        max-width: 100%;
        text-align: center;
        border-left: none;
        border-top: 2px solid var(--gold);
        padding: 0.75rem 0 0;
        font-size: 1rem;
    }

    .profile-hero-quote::after {
        display: none;
    }

    .profile-hero-text h1 {
        font-size: 1.5rem;
    }

    .profile-hero-tags {
        justify-content: center;
        flex-wrap: wrap;
    }

    .profile-sidebar {
        width: 100%;
    }

    .profile-nav {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.5rem;
        padding: 0.5rem;
        box-sizing: border-box;
    }

    .profile-content {
        width: 100%;
    }

    .profile-nav-btn {
        flex: 1 1 calc(50% - 0.25rem);
        min-width: 120px;
        padding: 0.65rem 0.5rem;
        font-size: 0.8rem;
        justify-content: center;
    }

    .pf-notification-badge {
        top: 50%;
        right: 0.25rem;
        transform: translateY(-50%);
        width: 16px;
        height: 16px;
        min-width: 16px;
        font-size: 0.55rem;
        padding: 0;
    }

    .profile-nav-btn svg,
    .profile-nav-btn img {
        width: 18px;
        height: 18px;
        margin-right: 6px;
        transition: filter 0.2s ease;
    }

    .profile-nav-btn .vc-icon {
        filter: invert(0.6);
    }

    .profile-nav-btn.active .vc-icon,
    .profile-nav-btn:hover .vc-icon {
        filter: invert(0.6) sepia(1) saturate(5) hue-rotate(5deg);
    }

    .profile-panel {
        padding: 1rem;
    }

    .panel-header {
        padding: 1rem;
        margin-bottom: 1rem;
        display: grid;
        grid-template-columns: 1fr auto;
        gap: 0.5rem;
        align-items: flex-start;
    }

    .panel-header>div {
        grid-column: 1 / -1;
        padding-bottom: 0.75rem;
        border-bottom: 1px solid var(--border);
    }

    .panel-header>a,
    .panel-header>button {
        grid-column: 1 / -1;
    }

    .panel-header h2 {
        font-size: clamp(1.15rem, 2.5vw, 1.5rem);
        gap: 0.5rem;
    }

    .panel-header h2 svg,
    .panel-header h2 img {
        width: 28px;
        height: 28px;
        flex-shrink: 0;
    }

    .panel-header p {
        margin: 0 0 0 3rem;
        font-size: clamp(0.85rem, 2vw, 1.05rem);
        line-height: 1.5;
        flex: 1;
        min-width: 0;
    }

    .profile-form {
        gap: 1rem;
        padding: 1rem 0.5rem;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    #section-details .form-group input[type="text"],
    #section-details .form-group input[type="email"],
    #section-details .form-group input[type="tel"],
    #section-details .form-group textarea {
        width: 100%;
        padding: 0.9rem 1rem;
        font-size: 1rem;
    }

    .vehicles-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    body.modal-active .profile-sidebar {
        display: none;
    }

    body.modal-active .profile-grid {
        display: block;
        padding: 1rem 1rem 3rem;
    }

    body.modal-active .profile-content {
        width: 100%;
    }
}

/* Tablet optimization: single-line subtitles when space allows */
@media (min-width: 769px) and (max-width: 1200px) {
    .panel-header>div {
        flex: 1;
        min-width: 0;
    }

    .panel-header h2 {
        flex-shrink: 0;
    }

    .panel-header p {
        margin-left: 0.75rem;
        white-space: normal;
    }
}

@media (max-width: 640px) {
    .profile-grid {
        padding: 0.75rem 0.75rem 2rem;
        gap: 0.75rem;
    }

    .profile-hero {
        padding: 1.5rem 0.75rem 2.5rem;
    }

    .profile-hero-bg {
        width: 75%;
        opacity: 0.35;
        mask-image: linear-gradient(to left, black 50%, transparent 75%);
        -webkit-mask-image: linear-gradient(to left, black 50%, transparent 75%);
    }

    .profile-avatar-img,
    .profile-avatar-initials {
        width: 80px;
        height: 80px;
        font-size: 2rem;
    }

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

    .profile-hero-text h1 {
        font-size: 1.25rem;
    }

    .profile-hero-email {
        font-size: 0.85rem;
    }

    .profile-hero-tags {
        gap: 0.4rem;
    }

    .profile-tag {
        font-size: 0.7rem;
        padding: 0.35rem 0.65rem;
    }

    .profile-nav {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.5rem;
        padding: 0.5rem;
        width: 100%;
        box-sizing: border-box;
    }

    .profile-nav-btn {
        width: 100%;
        min-width: 0;
        font-size: 0.75rem;
        padding: 0.6rem 0.5rem;
        justify-content: center;
        flex: none;
    }

    .profile-panel {
        padding: 0.75rem;
    }

    .panel-header {
        padding: 0.85rem 0.75rem;
        display: grid;
        grid-template-columns: 1fr auto;
        gap: 0.4rem;
        align-items: flex-start;
    }

    .panel-header>div {
        grid-column: 1 / -1;
        padding-bottom: 0.6rem;
        border-bottom: 1px solid var(--border);
    }

    .panel-header>a,
    .panel-header>button {
        grid-column: 1 / -1;
        align-self: center;
        padding: 0.3rem 0.5rem;
        font-size: 0.6rem;
        white-space: nowrap;
        width: auto;
        flex-shrink: 0;
    }

    .panel-header h2 {
        font-size: 1.15rem;
        gap: 0.5rem;
    }

    .panel-header h2 svg,
    .panel-header h2 img {
        width: 24px;
        height: 24px;
    }

    .panel-header p {
        font-size: 0.9rem;
        margin-top: 0.25rem;
        margin-left: 0;
        line-height: 1.5;
    }

    .form-group {
        margin-bottom: 0.75rem;
    }

    .form-group label {
        font-size: 0.85rem;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 0.9rem;
        padding: 0.6rem 0.75rem;
    }

    .btn-save {
        width: 100%;
        justify-content: center;
    }

    .security-cards {
        gap: 0.75rem;
    }

    .security-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
        padding: 1rem;
    }

    .security-card-icon {
        width: 40px;
        height: 40px;
    }

    .empty-state {
        padding: 2rem 1rem;
    }

    .empty-state-icon {
        width: 60px;
        height: 60px;
    }

    .empty-state-icon.loading {
        width: 80px;
        height: 80px;
    }

    .empty-state-icon svg,
    .empty-state-icon img {
        width: 40px;
        height: 40px;
    }

    .empty-state-icon.loading svg,
    .empty-state-icon.loading img {
        width: 50px;
        height: 50px;
    }

    .empty-state-loading-text {
        font-size: 1.35rem;
    }

    .vehicle-detail-modal {
        max-width: 95vw;
        max-height: 90vh;
        margin: 1rem;
    }

    .vehicle-detail-grid {
        grid-template-columns: 1fr;
    }
}

.vehicle-verification-badge {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 5;
    transition: transform 0.2s ease;
}

.vehicle-verification-badge.pending {
    background: #f59e0b;
    box-shadow: 0 2px 6px rgba(245, 158, 11, 0.5);
}

.vehicle-verification-badge.rejected {
    background: #dc3545;
    box-shadow: 0 2px 6px rgba(220, 53, 69, 0.5);
}

.vehicle-verification-badge.verified {
    background: #10b981;
    box-shadow: 0 2px 6px rgba(16, 185, 129, 0.5);
}

.vehicle-verification-badge:hover {
    transform: scale(1.15);
}

.vehicle-verification-badge i {
    font-size: 12px;
    color: white;
    font-weight: bold;
}

.vehicle-verification-badge .verification-tooltip {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-5px);
    margin-top: 8px;
    background: #1a1a1a;
    color: #fff;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    font-size: 0.75rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s ease;
    z-index: 1000;
    pointer-events: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.vehicle-verification-badge .verification-tooltip::before {
    content: '';
    position: absolute;
    top: -5px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-bottom: 5px solid #1a1a1a;
}

.vehicle-verification-badge:hover .verification-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.vehicle-detail-modal {
    max-width: 700px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    box-sizing: border-box;
}

/* Custom Scrollbar */
.vehicle-detail-modal {
    scrollbar-width: thin;
    scrollbar-color: var(--gold-dim) transparent;
}

.vehicle-detail-modal::-webkit-scrollbar {
    width: 6px;
}

.vehicle-detail-modal::-webkit-scrollbar-track {
    background: transparent;
}

.vehicle-detail-modal::-webkit-scrollbar-thumb {
    background: var(--gold-dim);
    border-radius: 3px;
}

.vehicle-detail-modal::-webkit-scrollbar-thumb:hover {
    background: var(--gold);
}

.vehicle-detail-modal::-webkit-scrollbar-button {
    display: none;
}

.vehicle-detail-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
    margin-bottom: 1.5rem;
}

.vehicle-detail-header .vehicle-detail-image {
    width: 120px;
    height: 90px;
    object-fit: cover;
    border-radius: 8px;
    background: var(--surface);
}

.vehicle-detail-header .vehicle-detail-placeholder {
    width: 120px;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--surface);
    border-radius: 8px;
    color: var(--text-muted);
}

.vehicle-detail-header h3 {
    font-size: 1.25rem;
    margin: 0 0 0.5rem;
    font-family: 'Supreme', system-ui, sans-serif;
}

.vehicle-detail-header h4 {
    font-size: 1.15rem;
    margin: 0 0 0.5rem;
    font-family: 'Supreme', system-ui, sans-serif;
    color: var(--text);
    font-weight: 600;
}

.vehicle-detail-header .vehicle-detail-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
}

.vehicle-detail-header .vehicle-detail-badge.pending {
    background: rgba(220, 53, 69, 0.1);
    color: var(--error, #dc3545);
    border: 1px solid rgba(220, 53, 69, 0.3);
}

.vehicle-detail-header .vehicle-detail-badge.verified {
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.vehicle-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.vehicle-detail-grid.single-col {
    grid-template-columns: 1fr;
}

.vehicle-detail-field {
    background: var(--surface);
    padding: 0.75rem 1rem;
    border-radius: 8px;
    border: 1px solid var(--border);
}

.vehicle-detail-field label {
    display: block;
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
}

.vehicle-detail-field span {
    font-size: 0.95rem;
    color: var(--text);
    font-weight: 500;
    word-break: break-all;
    overflow-wrap: anywhere;
}

.vehicle-detail-photos {
    margin-bottom: 1.5rem;
}

.vehicle-detail-photos h4 {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0 0 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.vehicle-detail-photos-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
}

.vehicle-detail-photo-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
}

.vehicle-detail-photo-item img {
    width: 100%;
    height: 80px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid var(--border);
    background: var(--surface);
}

.vehicle-detail-photo-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.vehicle-detail-photos-grid-full {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 0.75rem;
}

.vehicle-detail-photo-item-full {
    position: relative;
    aspect-ratio: 1;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border);
    background: var(--surface);
}

.vehicle-detail-photo-item-full img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.vehicle-detail-photo-item-full .vehicle-detail-photo-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    font-size: 0.7rem;
    padding: 4px 8px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ── Vehicle Photo Carousel ─────────────────────────────────────── */
.vehicle-photo-carousel {
    position: relative;
    width: 100%;
}

.carousel-track {
    position: relative;
    width: 100%;
    aspect-ratio: 16/10;
    border-radius: 8px;
    overflow: visible;
    background: var(--surface);
    border: 1px solid var(--border);
}

.vehicle-photo-slide {
    display: none;
    width: 100%;
    height: 100%;
    border-radius: 8px;
    overflow: hidden;
}

.vehicle-photo-slide.active {
    display: block;
}

.vehicle-photo-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.vehicle-photo-slide .vehicle-detail-photo-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    font-size: 0.7rem;
    padding: 4px 8px;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.carousel-arrow {
    display: none;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    font-size: 0.85rem;
    line-height: 1;
    padding: 0;
    cursor: pointer;
    transition: background 0.2s ease, opacity 0.15s ease, transform 0.2s ease, box-shadow 0.2s ease;
    align-items: center;
    justify-content: center;
    outline: none;
    -webkit-tap-highlight-color: transparent;
}

.carousel-arrow:hover,
.carousel-arrow:focus {
    transform: translateY(-50%) scale(1.1);
    background: rgba(0, 0, 0, 0.8);
    box-shadow: 0 0 0 2px var(--gold-dim), 0 4px 14px rgba(0, 0, 0, 0.4);
    filter: none;
}

.carousel-arrow:active {
    transform: translateY(-50%) scale(0.94);
    background: var(--gold);
    color: var(--black);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
    filter: none;
}

.carousel-arrow:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
}

.carousel-prev {
    left: 8px;
}

.carousel-next {
    right: 8px;
}

.carousel-counter {
    display: none;
    text-align: center;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.4rem;
}

.carousel-thumbs {
    display: none;
}

.vehicle-photo-thumb {
    display: inline-block;
    width: 48px;
    height: 48px;
    border-radius: 6px;
    overflow: hidden;
    border: 2px solid transparent;
    cursor: pointer;
    opacity: 0.5;
    transition: all 0.2s;
    flex-shrink: 0;
}

.vehicle-photo-thumb.active {
    border-color: var(--gold);
    opacity: 1;
}

.vehicle-photo-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Desktop: show all photos as a grid */
@media (min-width: 769px) {
    .carousel-track {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 0.75rem;
        aspect-ratio: auto;
        border: none;
        border-radius: 0;
    }

    .vehicle-photo-slide {
        display: block;
        position: relative;
        aspect-ratio: 1;
        border-radius: 8px;
        overflow: hidden;
        border: 1px solid var(--border);
        background: var(--surface);
    }

    .vehicle-photo-slide img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .carousel-arrow,
    .carousel-counter,
    .carousel-thumbs {
        display: none !important;
    }
}

/* Mobile: show carousel with one image at a time */
@media (max-width: 768px) {
    .carousel-track {
        display: block;
        aspect-ratio: 16/10;
        border-radius: 8px;
        border: 1px solid var(--border);
        overflow: visible;
    }

    .vehicle-photo-slide {
        display: none;
        width: 100%;
        height: 100%;
        position: relative;
    }

    .vehicle-photo-slide.active {
        display: block;
    }

    .carousel-arrow {
        display: flex;
    }

    .carousel-counter {
        display: block;
    }

    .carousel-thumbs {
        display: flex;
        gap: 0.5rem;
        justify-content: center;
        margin-top: 0.5rem;
        overflow-x: auto;
        padding-bottom: 2px;
    }
}

.vehicle-detail-no-photos {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 2rem;
    color: var(--text-muted);
    background: var(--surface);
    border-radius: 8px;
    border: 1px dashed var(--border);
}

.vehicle-detail-no-photos i {
    font-size: 1.5rem;
    opacity: 0.5;
}

.vehicle-detail-actions {
    display: flex;
    gap: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.vehicle-detail-actions .btn-edit-vehicle {
    margin-left: auto;
}



.delete-modal {
    max-width: 400px;
    text-align: center;
}

.delete-modal .delete-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1rem;
    background: rgba(220, 53, 69, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.delete-modal .delete-icon svg {
    width: 32px;
    height: 32px;
    color: var(--error, #dc3545);
}

.delete-modal h3 {
    margin: 0 0 0.5rem;
    font-size: 1.25rem;
}

.delete-modal p {
    color: var(--text-muted);
    margin: 0 0 1.5rem;
}

.delete-modal-actions {
    display: flex;
    gap: 1rem;
}

.delete-modal-actions button {
    flex: 1;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-cancel-delete {
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text);
}

.btn-cancel-delete:hover {
    background: var(--border);
}

.btn-confirm-delete {
    background: var(--error, #dc3545);
    border: none;
    color: white;
}

.btn-confirm-delete:hover {
    background: #c82333;
}

/* ─── Confirmation Modal ───────────────────────────────────── */
.confirm-modal-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.confirm-modal-content {
    background: var(--black-3);
    border: 1px solid rgba(239, 68, 68, 0.25);
    border-radius: 16px;
    padding: 2rem;
    max-width: 400px;
    width: calc(100% - 2rem);
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(239, 68, 68, 0.1);
}

.confirm-modal-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 1.25rem;
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.confirm-modal-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text);
    margin: 0 0 0.75rem;
}

.confirm-modal-message {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin: 0 0 2rem;
    line-height: 1.6;
}

.confirm-modal-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.confirm-btn {
    padding: 0.75rem 1.75rem;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.confirm-btn--cancel {
    background: var(--black-3);
    color: var(--text);
    border: 1px solid var(--border);
}

.confirm-btn--cancel:hover {
    background: var(--border);
}

.confirm-btn--delete {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.confirm-btn--delete:hover {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    box-shadow: 0 6px 16px rgba(239, 68, 68, 0.4);
}

/* ─── Order Cards ────────────────────────────────────────────────── */
.orders-list {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    padding: 0.75rem;
    max-width: 100%;
    overflow: hidden;
}

#maintenanceList {
    grid-template-columns: 1fr;
    max-width: 100%;
    box-sizing: border-box;
}

/* Order Card Styling */
.order-card {
    background: var(--black-3);
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: visible;
    position: relative;
    transition: all 0.3s ease;
    min-height: auto;
    width: 100%;
    max-width: 350px;
}

.order-card:hover {
    border-color: var(--border-gold);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.order-card-badge {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    background: linear-gradient(135deg, var(--gold), #d4a843);
    color: var(--black);
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.3rem 0.65rem;
    border-radius: 6px;
    z-index: 2;
    letter-spacing: 0.03em;
}

.order-card-image {
    width: 100%;
    height: 180px;
    background: var(--surface);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 10px 10px 0 0;
}

.order-card-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    padding: 0.5rem;
}

.order-card-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--surface), var(--black-3));
}

.order-card-placeholder i {
    font-size: 3rem;
    color: var(--gold-dim);
    opacity: 0.5;
}

.order-status-badge {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    z-index: 2;
    display: inline-block;
    padding: 0.25rem 0.6rem;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: capitalize;
}

.order-status-badge.status-pending {
    background: rgba(245, 158, 11, 0.9);
    color: #fff;
}

.order-status-badge.status-in_progress {
    background: rgba(234, 179, 8, 0.9);
    color: #fff;
}

.order-status-badge.status-resolved {
    background: rgba(16, 185, 129, 0.9);
    color: #fff;
}

.order-status-badge.status-completed {
    background: rgba(16, 185, 129, 0.9);
    color: #fff;
}

.order-status-badge.status-cancelled {
    background: rgba(239, 68, 68, 0.9);
    color: #fff;
}

.order-status-badge.status-delivered {
    background: rgba(59, 130, 246, 0.9);
    color: #fff;
}

.order-card-view-images {
    position: absolute;
    bottom: 0.75rem;
    right: 0.75rem;
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    color: #fff;
    font-size: 0.7rem;
    padding: 0.3rem 0.6rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    z-index: 3;
    transition: all 0.2s ease;
}

.order-card-view-images:hover {
    background: var(--gold);
    color: var(--black);
    border-color: var(--gold);
}

.order-card-content {
    padding: 0.875rem;
}

.order-card-content h4 {
    font-size: 0.95rem;
    font-weight: 600;
    font-family: 'Supreme', system-ui, sans-serif;
    color: var(--text);
    margin: 0 0 0.5rem;
    letter-spacing: 0.01em;
    line-height: 1.3;
}

.order-card-vehicle-info {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 0.5rem;
}

.order-card-vehicle-text,
.order-card-reg {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.7rem;
    color: var(--text-muted);
    background: var(--surface);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    border: 1px solid var(--border);
}

.order-card-vehicle-text i,
.order-card-reg i {
    color: var(--gold-dim);
    font-size: 0.65rem;
}

.order-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 0.4rem;
}

.order-card-tag,
.order-card-ref {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.7rem;
    color: var(--text-muted);
    background: var(--surface);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    border: 1px solid var(--border);
}

.order-card-tag i,
.order-card-ref i {
    color: var(--gold-dim);
    font-size: 0.65rem;
}

.order-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid var(--border);
}

.order-card-date {
    font-size: 0.7rem;
    color: var(--text-muted);
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.order-card-date i {
    color: var(--gold-dim);
    font-size: 0.65rem;
}

.btn-remove-order {
    width: 28px;
    height: 28px;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(220, 38, 38, 0.3);
    border-radius: 6px;
    color: #f87171;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.2s ease;
    z-index: 4;
}

.order-card:hover .btn-remove-order {
    opacity: 1;
}

.btn-remove-order:hover {
    background: #dc2626;
    color: white;
    border-color: #dc2626;
}

/* ─── Road Assistance Cards ──────────────────────────────────── */
.road-assist-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.25rem;
    transition: all 0.2s ease;
    max-width: 100%;
    overflow: hidden;
    word-break: break-word;
}

.road-assist-card:hover {
    border-color: var(--primary-teal);
    transform: translateY(-2px);
}

.road-assist-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.road-assist-ref {
    font-family: 'Supreme', sans-serif;
    font-weight: 600;
    color: var(--primary-teal);
    font-size: 0.95rem;
}

.road-assist-status {
    display: inline-block;
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.road-assist-status.pending {
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
}

.road-assist-status.accepted {
    background: rgba(96, 229, 217, 0.15);
    color: #60e5d9;
}

.road-assist-status.arrived {
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
}

.road-assist-status.completed {
    background: rgba(96, 229, 217, 0.15);
    color: #60e5d9;
}

.road-assist-status.cancelled {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
}

.road-assist-details {
    display: grid;
    gap: 0.75rem;
}

.road-assist-detail {
    display: flex;
    gap: 0.5rem;
    font-size: 0.85rem;
    min-width: 0;
}

.road-assist-detail-icon {
    color: var(--text-muted);
    width: 16px;
    flex-shrink: 0;
}

.road-assist-detail-label {
    color: var(--text-muted);
    min-width: 70px;
}

.road-assist-detail-value {
    color: var(--text);
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.road-assist-card-date {
    margin-top: 1rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border);
    font-size: 0.75rem;
    color: var(--text-muted);
}

#section-auto-maintenance .maint-stats {
    padding-top: 0.25rem;
}

/* ── Maintenance Request Stats ── */
.maint-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    padding: 0 0.75rem;
    margin-bottom: 1rem;
    justify-content: center;
}

.maint-stat {
    flex: 1;
    min-width: 120px;
    max-width: 100%;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 0.85rem 1rem;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.85rem;
    text-align: left;
    overflow: hidden;
}

.maint-stat__icon-wrap {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.maint-stat--yellow .maint-stat__icon-wrap {
    background: rgba(234, 179, 8, 0.1);
}

.maint-stat--orange .maint-stat__icon-wrap {
    background: rgba(249, 115, 22, 0.1);
}

.maint-stat--green .maint-stat__icon-wrap {
    background: rgba(34, 197, 94, 0.1);
}

.maint-stat--blue .maint-stat__icon-wrap {
    background: rgba(59, 130, 246, 0.1);
}

.maint-stat__icon-wrap svg,
.maint-stat__icon-wrap img {
    width: 24px;
    height: 24px;
}

.maint-stat__icon {
    display: none;
}

.maint-stat__text {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
    overflow: hidden;
}

.maint-stat__label {
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-muted);
    line-height: 1.2;
    word-break: break-word;
}

.maint-stat__value {
    font-family: 'Technor', sans-serif;
    font-size: 1.35rem;
    font-weight: 500;
    color: var(--gold);
    line-height: 1.2;
    word-break: break-word;
    font-variant-numeric: tabular-nums;
}

.maint-stat__sub {
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--text-muted);
    line-height: 1.2;
    opacity: 0.85;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.maint-stat__sub::before {
    content: '';
    display: inline-block;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    flex-shrink: 0;
}

.maint-stat--yellow .maint-stat__sub {
    color: #eab308;
}

.maint-stat--yellow .maint-stat__sub::before {
    background: #eab308;
}

.maint-stat--orange .maint-stat__sub {
    color: #f97316;
}

.maint-stat--orange .maint-stat__sub::before {
    background: #f97316;
}

.maint-stat--green .maint-stat__sub {
    color: #22c55e;
}

.maint-stat--green .maint-stat__sub::before {
    background: #22c55e;
}

.maint-stat--blue .maint-stat__sub {
    color: #3b82f6;
}

.maint-stat--blue .maint-stat__sub::before {
    background: #3b82f6;
}

/* ── Maintenance Request Cards ── */
.maint-card {
    display: flex;
    flex-direction: row;
    gap: 1rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.25rem;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    color: inherit;
    overflow: hidden;
    word-break: break-word;
    align-items: flex-start;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.maint-card:hover {
    border-color: var(--gold);
    transform: translateY(-2px);
}

.maint-card-icon-wrap {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    background: var(--black-2);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.maint-card-icon {
    width: 36px;
    height: 36px;
    object-fit: contain;
}

.maint-card-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    overflow: hidden;
}

.maint-card-top-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.maint-card-service {
    font-family: 'Supreme', sans-serif;
    font-weight: 600;
    color: var(--gold);
    font-size: 0.95rem;
}

.maint-card-ref {
    font-size: 0.7rem;
    color: var(--text-muted);
}

.maint-card-status {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.6rem;
    border-radius: 16px;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    flex-shrink: 0;
    white-space: nowrap;
    line-height: 1.3;
}

.maint-card-status.pending {
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
}

.maint-card-status.in_progress {
    background: rgba(96, 229, 217, 0.15);
    color: #60e5d9;
}

.maint-card-status.resolved {
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
}

.maint-card-status.cancelled {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
}

.maint-card-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    align-items: flex-end;
    margin-top: 0.35rem;
    width: 100%;
    overflow: hidden;
}

.maint-card-field {
    display: flex;
    flex-direction: column;
    padding: 0.35rem 0.75rem;
    border-left: 1px solid var(--border);
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
    flex: 1 1 0;
}

.maint-card-field--first {
    border-left: none;
    padding-left: 0;
}

.maint-card-field--urgency {
    border-left: none;
}

.maint-card-field--action {
    border-left: none;
    padding: 0;
    display: flex;
    align-items: flex-end;
    flex: 0 0 auto;
    justify-content: flex-end;
    margin-left: auto;
    overflow: visible;
    padding-left: 0.75rem;
}

.maint-card-field__label {
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-muted);
    line-height: 1.2;
    margin-bottom: 0.15rem;
}

.maint-card-field__value {
    font-size: 0.88rem;
    font-weight: 500;
    color: #ffffff;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.maint-card-view-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--gold);
    color: var(--gold);
    font-size: 0.68rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    background: transparent;
    white-space: nowrap;
    width: fit-content;
    margin-left: 0.5rem;
    transform: translateX(12px);
}

.maint-card-view-btn svg {
    flex-shrink: 0;
}

.maint-card:hover .maint-card-view-btn {
    background: rgba(201, 168, 76, 0.1);
}

.maint-card-urgency-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 0.4rem;
    vertical-align: middle;
    flex-shrink: 0;
}

.maint-card-urgency-dot--low {
    background: #10b981;
}

.maint-card-urgency-dot--medium {
    background: #f59e0b;
}

.maint-card-urgency-dot--high {
    background: #ef4444;
}

@media (max-width: 768px) {
    .maint-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 1.25rem 1rem;
        overflow: visible;
    }

    .maint-card-icon-wrap {
        width: 48px;
        height: 48px;
    }

    .maint-card-icon {
        width: 28px;
        height: 28px;
    }

    .maint-card-body {
        align-items: center;
        width: 100%;
        overflow: visible;
    }

    .maint-card-top-row {
        justify-content: center;
    }

    .maint-card-ref {
        text-align: center;
    }

    .maint-card-meta-row {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0;
        width: 100%;
        margin-top: auto;
        overflow: visible;
    }

    .maint-card-field {
        border-left: none;
        padding: 0.5rem 0.75rem;
        border-bottom: 1px solid var(--border);
        flex: 0 0 auto;
        width: auto;
        text-align: left;
        overflow: visible;
    }

    .maint-card-field--first {
        padding-left: 0.75rem;
        border-right: 1px solid var(--border);
    }

    .maint-card-field:nth-child(2) {
        border-right: none;
    }

    .maint-card-field:nth-child(3) {
        border-right: 1px solid var(--border);
        border-bottom: none;
    }

    .maint-card-field:nth-child(4) {
        border-bottom: none;
    }

    .maint-card-field--action {
        grid-column: 1 / -1;
        border-bottom: none;
        border-right: none;
        padding: 0.6rem 0.75rem 0;
        /* Reset base flex properties that block grid alignment */
        flex: unset;
        margin-left: unset;
        display: flex;
        justify-content: flex-end;
        align-items: center;
        justify-self: stretch;
        overflow: visible;
        width: 100%;
        box-sizing: border-box;
    }

    .maint-card-view-btn {
        margin-left: auto;
        transform: none;
    }
}

/* ============================================================
   MAINTENANCE FOCUS MODE
   ============================================================ */

/* ── Cards Container ──────────────────────────────────────────── */
.maint-cards {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

/* ── Support Container ────────────────────────────────────────── */
.maint-support-container {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1.25rem;
    padding: 1.25rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
}

.maint-support-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    background: var(--black-2);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.maint-support-icon img {
    width: 36px;
    height: 36px;
    object-fit: contain;
    filter: brightness(0) saturate(100%) invert(74%) sepia(21%) saturate(966%) hue-rotate(7deg) brightness(93%) contrast(88%);
}

.maint-support-text {
    flex: 1;
    min-width: 0;
}

.maint-support-text h4 {
    font-family: 'Supreme', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--gold);
    margin: 0 0 0.15rem;
}

.maint-support-text p {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin: 0;
}

.maint-support-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.75rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--gold);
    color: var(--gold);
    font-size: 0.68rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    background: transparent;
    white-space: nowrap;
    flex-shrink: 0;
}

.maint-support-btn:hover {
    background: rgba(201, 168, 76, 0.1);
}

.maint-support-btn img {
    flex-shrink: 0;
    filter: brightness(0) saturate(100%) invert(74%) sepia(21%) saturate(966%) hue-rotate(7deg) brightness(93%) contrast(88%);
}

@media (max-width: 768px) {
    .maint-support-container {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
        max-width: 100%;
    }
}

/* ── Focus Timeline ─────────────────────────────────────────── */
.maint-focus-timeline h3 {
    font-family: 'Technor', sans-serif;
    font-size: 1rem;
    color: var(--text);
    margin: 0 0 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border);
}

/* ── Card States ──────────────────────────────────────────────── */
.maint-card--hidden {
    opacity: 0;
    max-height: 0;
    padding: 0;
    margin: 0;
    border: none;
    overflow: hidden;
    pointer-events: none;
}

.maint-card--focused {
    border-color: var(--gold);
    background: rgba(201, 168, 76, 0.03);
    padding: 0.6rem 0.85rem;
    gap: 0.6rem;
    width: 100%;
    box-sizing: border-box;
}

.maint-card--focused .maint-card-icon-wrap {
    width: 36px;
    height: 36px;
}

.maint-card--focused .maint-card-icon {
    width: 24px;
    height: 24px;
}

.maint-card--focused .maint-card-body {
    gap: 0.2rem;
}

.maint-card--focused .maint-card-ref {
    font-size: 0.6rem;
}

.maint-card--focused .maint-card-meta-row {
    margin-top: 0.15rem;
}

.maint-card--focused .maint-card-field--first,
.maint-card--focused .maint-card-field--submitted,
.maint-card--focused .maint-card-field--preferred {
    display: none;
}

.maint-card--focused .maint-card-field--vehicle {
    border-left: none;
    padding-left: 0;
}

.maint-card--focused .maint-card-field--vehicle .maint-card-field__value {
    font-size: 0.72rem;
    color: var(--text-muted);
    font-weight: 400;
}

.maint-card--focused .maint-card-view-btn {
    background: rgba(201, 168, 76, 0.12);
    border-color: var(--gold);
    color: var(--gold);
    margin-left: auto;
}

/* ── Focus Details Panel ──────────────────────────────────────── */
.maint-focus-details {
    margin-top: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.maint-focus-details-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem;
    margin-bottom: 0;
}

.maint-focus-section {
    background: var(--black-3);
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: visible;
    margin-bottom: 0;
    padding: 0;
}

.maint-focus-section--full {
    margin-bottom: 0;
}

.maint-focus-section__title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
    font-family: 'Supreme', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gold);
}

.maint-focus-section__body {
    padding: 0.5rem 1rem 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.maint-focus-kv {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.4rem 0.5rem;
    border-radius: 4px;
}

.maint-focus-kv__label {
    font-size: 0.78rem;
    color: var(--text-muted);
    flex-shrink: 0;
}

.maint-focus-kv__value {
    color: var(--text);
    font-size: 0.85rem;
    font-weight: 500;
    word-break: break-word;
    text-align: right;
}

/* ── Urgency Dot ──────────────────────────────────────────────── */
.maint-urgency-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 0.35rem;
    vertical-align: middle;
}

.maint-urgency-dot--low {
    background: #10b981;
}

.maint-urgency-dot--medium {
    background: #f59e0b;
}

.maint-urgency-dot--high {
    background: #ef4444;
}

/* ── Timeline Container ────────────────────────────────────────── */
.maint-timeline-container {
    background: var(--black-3);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 0.75rem;
}

.maint-timeline-container h3 {
    font-family: 'Technor', sans-serif;
    font-size: 1.05rem;
    color: var(--gold);
    margin: 0 0 0.5rem;
    padding-bottom: 0;
    border-bottom: none;
}

/* ── Timeline Steps ───────────────────────────────────────────── */
.maint-timeline {
    display: flex;
    flex-direction: column;
    gap: 0;
    position: relative;
}

.maint-timeline__step {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.6rem 0;
    position: relative;
}

.maint-timeline__dot {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(180deg, rgba(60, 60, 60, 0.9) 0%, rgba(40, 40, 40, 0.95) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    z-index: 1;
    transition: all 0.25s;
    color: rgba(255, 255, 255, 0.3);
    box-shadow:
        0 3px 6px rgba(0, 0, 0, 0.4),
        0 1px 2px rgba(0, 0, 0, 0.3),
        inset 0 1px 1px rgba(255, 255, 255, 0.08),
        inset 0 -1px 2px rgba(0, 0, 0, 0.3);
}

.maint-timeline__step--done .maint-timeline__dot {
    background: linear-gradient(180deg, rgba(22, 163, 74, 0.85) 0%, rgba(16, 128, 55, 0.9) 100%);
    border: 1px solid rgba(22, 163, 74, 0.5);
    color: #fff;
    box-shadow:
        0 3px 8px rgba(22, 163, 74, 0.35),
        0 1px 3px rgba(22, 163, 74, 0.2),
        inset 0 1px 1px rgba(255, 255, 255, 0.2),
        inset 0 -1px 2px rgba(0, 0, 0, 0.2);
}

.maint-timeline__step--current .maint-timeline__dot {
    background: linear-gradient(180deg, rgba(210, 175, 80, 0.9) 0%, rgba(180, 145, 50, 0.95) 100%);
    border: 1px solid rgba(201, 168, 76, 0.6);
    color: #fff;
    box-shadow:
        0 3px 12px rgba(201, 168, 76, 0.4),
        0 1px 4px rgba(201, 168, 76, 0.25),
        inset 0 1px 1px rgba(255, 255, 255, 0.25),
        inset 0 -1px 2px rgba(0, 0, 0, 0.15);
    animation: maintCurrentGlow 2s ease-in-out infinite;
}

@keyframes maintCurrentGlow {
    0%, 100% {
        box-shadow:
            0 3px 10px rgba(201, 168, 76, 0.3),
            0 1px 3px rgba(201, 168, 76, 0.2),
            inset 0 1px 1px rgba(255, 255, 255, 0.2),
            inset 0 -1px 2px rgba(0, 0, 0, 0.15);
    }
    50% {
        box-shadow:
            0 3px 18px rgba(201, 168, 76, 0.5),
            0 1px 6px rgba(201, 168, 76, 0.3),
            inset 0 1px 1px rgba(255, 255, 255, 0.25),
            inset 0 -1px 2px rgba(0, 0, 0, 0.15);
    }
}

.maint-timeline__step--pending .maint-timeline__dot {
    background: linear-gradient(180deg, rgba(80, 80, 80, 0.9) 0%, rgba(55, 55, 55, 0.95) 100%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.4);
    box-shadow:
        0 2px 6px rgba(0, 0, 0, 0.35),
        0 1px 2px rgba(0, 0, 0, 0.25),
        inset 0 1px 1px rgba(255, 255, 255, 0.08),
        inset 0 -1px 2px rgba(0, 0, 0, 0.2);
}

/* ── Wave Pulse Animation ─────────────────────────────────────── */
.maint-timeline__dot {
    position: relative;
}

.maint-timeline__dot::after {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border-radius: 50%;
    border: 2px solid rgba(201, 168, 76, 0.4);
    opacity: 0;
    animation: maintWaveRipple 7s ease-out infinite;
    pointer-events: none;
}

.maint-timeline__step--done .maint-timeline__dot::after {
    border-color: rgba(22, 163, 74, 0.4);
}

.maint-timeline__step--current .maint-timeline__dot::after {
    border-color: rgba(201, 168, 76, 0.5);
}

.maint-timeline__step--pending .maint-timeline__dot::after {
    border-color: rgba(255, 255, 255, 0.15);
}

.maint-timeline__step:nth-child(1) .maint-timeline__dot::after { animation-delay: 0s; }
.maint-timeline__step:nth-child(2) .maint-timeline__dot::after { animation-delay: 1s; }
.maint-timeline__step:nth-child(3) .maint-timeline__dot::after { animation-delay: 2s; }
.maint-timeline__step:nth-child(4) .maint-timeline__dot::after { animation-delay: 3s; }
.maint-timeline__step:nth-child(5) .maint-timeline__dot::after { animation-delay: 4s; }
.maint-timeline__step:nth-child(6) .maint-timeline__dot::after { animation-delay: 5s; }
.maint-timeline__step:nth-child(7) .maint-timeline__dot::after { animation-delay: 6s; }

@keyframes maintWaveRipple {
    0% { transform: scale(1); opacity: 0; }
    1% { transform: scale(1); opacity: 0.6; }
    14% { transform: scale(1.6); opacity: 0; }
    15% { transform: scale(1); opacity: 0; }
    100% { transform: scale(1); opacity: 0; }
}

.maint-timeline__step:last-child {
    padding-bottom: 1rem;
}

.maint-timeline__step:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 15px;
    top: calc(0.6rem + 32px);
    bottom: -0.6rem;
    width: 2px;
    border-radius: 1px;
}

.maint-timeline__step--done:not(:last-child)::after {
    background: rgba(22, 163, 74, 0.6);
}

.maint-timeline__step--current:not(:last-child)::after {
    background: rgba(201, 168, 76, 0.6);
}

.maint-timeline__step--pending:not(:last-child)::after {
    background: rgba(255, 255, 255, 0.12);
}

.maint-timeline__content {
    flex: 1;
    min-width: 0;
    padding-top: 0.3rem;
}

.maint-timeline__label {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.1rem;
    transition: color 0.3s;
}

.maint-timeline__step--done .maint-timeline__label {
    color: #22a354;
}

.maint-timeline__step--current .maint-timeline__label {
    color: var(--gold);
}

.maint-timeline__step--pending .maint-timeline__label {
    color: var(--text-muted);
    opacity: 0.5;
}

.maint-timeline__date {
    font-size: 0.72rem;
    color: var(--gold);
    font-weight: 500;
    margin-bottom: 0.1rem;
}

.maint-timeline__step--done .maint-timeline__date {
    color: #22a354;
}

.maint-timeline__step--current .maint-timeline__date {
    color: var(--gold);
}

.maint-timeline__step--pending .maint-timeline__date {
    color: var(--text-muted);
    opacity: 0.4;
}

.maint-timeline__sublabel {
    font-size: 0.78rem;
    color: var(--text-muted);
    opacity: 0.7;
}

.maint-timeline__step--pending .maint-timeline__sublabel {
    opacity: 0.35;
}

/* ── Quotation inside Timeline Step ──────────────────────────── */
.maint-timeline__quotation {
    margin-top: 0.6rem;
    padding: 0.85rem 1rem;
    background: linear-gradient(135deg, rgba(201, 168, 76, 0.06) 0%, rgba(201, 168, 76, 0.02) 100%);
    border: 1px solid rgba(201, 168, 76, 0.18);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.maint-timeline__quotation-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.maint-timeline__quotation-ref {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text);
}

.maint-timeline__quotation-label-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
}

.maint-timeline__quotation-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    opacity: 0.7;
}

.maint-timeline__quotation-sent {
    display: inline-flex;
    align-items: center;
    padding: 0.15rem 0.5rem;
    background: rgba(22, 163, 74, 0.15);
    border: 1px solid rgba(22, 163, 74, 0.35);
    border-radius: 50px;
    font-family: 'Supreme', sans-serif;
    font-size: 0.62rem;
    font-weight: 600;
    color: #22a34e;
    letter-spacing: 0.02em;
    flex-shrink: 0;
}

.maint-timeline__quotation-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-top: 0.1rem;
}

.maint-timeline__quotation-amount {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--gold);
}

.maint-timeline__quotation-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.45rem 0.85rem;
    background: linear-gradient(135deg, rgba(201, 168, 76, 0.18) 0%, rgba(201, 168, 76, 0.08) 100%);
    border: 1px solid rgba(201, 168, 76, 0.4);
    border-radius: 6px;
    color: var(--gold);
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.maint-timeline__quotation-btn:hover {
    background: linear-gradient(135deg, rgba(201, 168, 76, 0.28) 0%, rgba(201, 168, 76, 0.14) 100%);
    border-color: rgba(201, 168, 76, 0.55);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(201, 168, 76, 0.2);
}

.maint-timeline__quotation-view {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--gold);
    cursor: pointer;
    white-space: nowrap;
    transition: opacity 0.2s;
}

.maint-timeline__quotation-view:hover {
    opacity: 0.8;
}

.maint-timeline__quotation-view--disabled {
    opacity: 0.35;
    cursor: default;
    pointer-events: none;
}

/* ── Pending Quotation Variant ──────────────────────────────── */
.maint-timeline__quotation--pending {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.01) 100%);
    border-color: rgba(255, 255, 255, 0.08);
    border-left-color: rgba(255, 255, 255, 0.2);
}

.maint-timeline__quotation--pending .maint-timeline__quotation-ref {
    color: var(--text-muted);
}

.maint-timeline__quotation--pending .maint-timeline__quotation-amount {
    color: var(--text-muted);
    opacity: 0.4;
}

/* ── File Attachment Container ──────────────────────────────── */
.maint-timeline__file {
    margin-top: 0.4rem;
    padding: 0.7rem 0.85rem;
    background: var(--black-2);
    border: 1px solid var(--border);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.maint-timeline__file-info {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    min-width: 0;
}

.maint-timeline__file-icon {
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    border-radius: 6px;
    background: rgba(201, 168, 76, 0.1);
    border: 1px solid rgba(201, 168, 76, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
}

.maint-timeline__file-icon svg {
    width: 16px;
    height: 16px;
}

.maint-timeline__file-details {
    min-width: 0;
}

.maint-timeline__file-name {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.maint-timeline__file-size {
    font-size: 0.68rem;
    color: var(--text-muted);
    opacity: 0.6;
}

.maint-timeline__file-download {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.4rem 0.7rem;
    background: rgba(22, 163, 74, 0.1);
    border: 1px solid rgba(22, 163, 74, 0.3);
    border-radius: 6px;
    color: #22a354;
    font-size: 0.72rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    flex-shrink: 0;
}

.maint-timeline__file-download:hover {
    background: rgba(22, 163, 74, 0.18);
    border-color: rgba(22, 163, 74, 0.5);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(22, 163, 74, 0.15);
}

/* ── Importance Notice ────────────────────────────────────────── */
.maint-notice {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    margin-top: 0.25rem;
    margin-bottom: 2rem;
    background: rgba(201, 168, 76, 0.06);
    border: 1px solid rgba(201, 168, 76, 0.18);
    border-radius: 10px;
}

.maint-notice-content {
    flex: 1;
    min-width: 0;
}

.maint-notice-title {
    font-family: 'Supreme', sans-serif;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--gold);
    margin-bottom: 0.4rem;
}

.maint-notice-list {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.maint-notice-item {
    font-size: 0.78rem;
    color: var(--text-muted);
    line-height: 1.45;
    padding-left: 0.9rem;
    position: relative;
}

.maint-notice-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.42em;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--gold);
    opacity: 0.6;
}

/* ── Response to Quotation ────────────────────────────────────── */
.maint-response-quot {
    margin-top: 0.75rem;
    padding: 0.85rem 1rem;
    background: var(--black-3);
    border: 1px solid var(--border);
    border-radius: 10px;
}

.maint-response-quot__title {
    font-family: 'Supreme', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.6rem;
}

.maint-response-quot__subtitle {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.maint-response-quot__buttons {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
}

.maint-response-quot__btn {
    flex: none;
    min-width: 0;
    padding: 0.55rem 0.6rem;
    border-radius: 8px;
    border: 1px solid transparent;
    font-family: 'Supreme', sans-serif;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    white-space: normal;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.15rem;
}

.maint-response-quot__btn--accept {
    background: rgba(22, 163, 74, 0.08);
    border-color: rgba(22, 163, 74, 0.25);
    color: #22a34e;
}

.maint-response-quot__btn--accept:hover {
    background: rgba(22, 163, 74, 0.18);
    border-color: rgba(22, 163, 74, 0.5);
    box-shadow: 0 2px 10px rgba(22, 163, 74, 0.1);
    transform: translateY(-1px);
}

.maint-response-quot__btn--accept.maint-response-quot__btn--active {
    background: rgba(22, 163, 74, 0.25);
    border-color: #22a34e;
    box-shadow: 0 0 0 2px rgba(22, 163, 74, 0.15), 0 4px 14px rgba(22, 163, 74, 0.2);
    transform: translateY(-2px);
}

.maint-response-quot__btn--reject {
    background: rgba(220, 53, 69, 0.08);
    border-color: rgba(220, 53, 69, 0.2);
    color: #dc3545;
}

.maint-response-quot__btn--reject:hover {
    background: rgba(220, 53, 69, 0.16);
    border-color: rgba(220, 53, 69, 0.45);
    box-shadow: 0 2px 10px rgba(220, 53, 69, 0.1);
    transform: translateY(-1px);
}

.maint-response-quot__btn--reject.maint-response-quot__btn--active {
    background: rgba(220, 53, 69, 0.22);
    border-color: #dc3545;
    box-shadow: 0 0 0 2px rgba(220, 53, 69, 0.15), 0 4px 14px rgba(220, 53, 69, 0.15);
    transform: translateY(-2px);
}

.maint-response-quot__btn--negotiate {
    background: rgba(201, 168, 76, 0.08);
    border-color: rgba(201, 168, 76, 0.2);
    color: var(--gold);
}

.maint-response-quot__btn--negotiate:hover {
    background: rgba(201, 168, 76, 0.16);
    border-color: rgba(201, 168, 76, 0.45);
    box-shadow: 0 2px 10px rgba(201, 168, 76, 0.1);
    transform: translateY(-1px);
}

.maint-response-quot__btn--negotiate.maint-response-quot__btn--active {
    background: rgba(201, 168, 76, 0.22);
    border-color: var(--gold);
    box-shadow: 0 0 0 2px rgba(201, 168, 76, 0.15), 0 4px 14px rgba(201, 168, 76, 0.15);
    transform: translateY(-2px);
}

.maint-response-quot__btn-label {
    display: block;
}

.maint-response-quot__btn-sub {
    display: block;
    font-size: 0.68rem;
    font-weight: 400;
    opacity: 0.7;
    margin-top: 0.15rem;
}

.maint-response-quot__btn--accept.maint-response-quot__btn--active .maint-response-quot__btn-sub,
.maint-response-quot__btn--reject.maint-response-quot__btn--active .maint-response-quot__btn-sub,
.maint-response-quot__btn--negotiate.maint-response-quot__btn--active .maint-response-quot__btn-sub {
    opacity: 0.9;
}

.maint-response-quot__message {
    margin-top: 0.75rem;
}

.maint-response-quot__message-title {
    font-family: 'Supreme', sans-serif;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 0.4rem;
}

.maint-response-quot__textarea {
    width: 100%;
    min-height: 70px;
    padding: 0.6rem 0.75rem;
    background: var(--black);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    font-family: 'Supreme', sans-serif;
    font-size: 0.8rem;
    line-height: 1.5;
    resize: none;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.maint-response-quot__textarea::placeholder {
    color: var(--text-muted);
}

.maint-response-quot__textarea:focus {
    outline: none;
    border-color: rgba(201, 168, 76, 0.5);
}

.maint-response-quot__actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 0.65rem;
}

.maint-response-quot__submit {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1rem;
    background: var(--gold);
    color: var(--black);
    border: none;
    border-radius: 8px;
    font-family: 'Supreme', sans-serif;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.maint-response-quot__submit svg {
    width: 14px;
    height: 14px;
}

.maint-response-quot__submit:hover {
    background: #d4b34e;
    box-shadow: 0 2px 10px rgba(201, 168, 76, 0.2);
    transform: translateY(-1px);
}

/* ── Focus Carousel ─────────────────────────────────────────────── */
.maint-focus-carousel {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    perspective: 600px;
    padding: 0.5rem 0;
}

.maint-focus-carousel__track {
    display: flex;
    gap: 0.6rem;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 1rem 2rem;
    flex: 1;
    min-width: 0;
    transform-style: preserve-3d;
}

.maint-focus-carousel__track::-webkit-scrollbar {
    display: none;
}

.maint-focus-carousel__toggle {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--black-3);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.25s;
    z-index: 2;
    backdrop-filter: blur(6px);
}

.maint-focus-carousel__toggle:hover {
    background: rgba(201, 168, 76, 0.12);
    color: var(--gold);
    border-color: rgba(201, 168, 76, 0.4);
    transform: scale(1.1);
}

.maint-focus-carousel__toggle:disabled {
    opacity: 0.2;
    cursor: default;
    pointer-events: none;
    background: var(--black-3);
    color: var(--text-muted);
    border-color: var(--border);
}

.maint-focus-carousel__item {
    flex: 0 0 auto;
    width: 200px;
    height: 200px;
    border-radius: 10px;
    overflow: hidden;
    background: var(--black);
    border: 1px solid var(--border);
    scroll-snap-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.maint-focus-carousel__track:hover .maint-focus-carousel__item {
    transform: rotateY(-4deg) scale(0.97);
}

.maint-focus-carousel__track:hover .maint-focus-carousel__item:hover {
    transform: rotateY(0deg) scale(1.05);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(201, 168, 76, 0.3);
    z-index: 1;
}

.maint-focus-carousel__item img,
.maint-focus-carousel__item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.maint-focus-carousel__item:hover img,
.maint-focus-carousel__item:hover video {
    transform: scale(1.08);
}

.maint-focus-carousel__placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    width: 160px;
    height: 160px;
    background: var(--black-3);
    border: 1.5px dashed rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    color: var(--text-muted);
    box-sizing: border-box;
}

.maint-focus-carousel__placeholder svg {
    width: 28px;
    height: 28px;
    opacity: 0.25;
}

.maint-focus-carousel__placeholder span {
    font-size: 0.7rem;
    text-align: center;
    opacity: 0.45;
    line-height: 1.3;
}

.maint-focus-carousel__upload {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    width: 160px;
    height: 160px;
    background: rgba(201, 168, 76, 0.03);
    border: 1.5px dashed rgba(201, 168, 76, 0.3);
    border-radius: 12px;
    color: var(--gold);
    cursor: pointer;
    transition: all 0.25s;
    box-sizing: border-box;
}

.maint-focus-carousel__upload:hover {
    background: rgba(201, 168, 76, 0.08);
    border-color: rgba(201, 168, 76, 0.5);
    box-shadow: 0 4px 16px rgba(201, 168, 76, 0.1);
}

.maint-focus-carousel__upload svg {
    width: 28px;
    height: 28px;
    transition: transform 0.25s;
}

.maint-focus-carousel__upload:hover svg {
    transform: translateY(-2px);
}

.maint-focus-carousel__upload span {
    font-size: 0.7rem;
    text-align: center;
    font-weight: 500;
}

/* ── Upload Loading State ────────────────────────────────────── */
.maint-upload-loading {
    pointer-events: none;
    opacity: 0.7;
}

.maint-upload-loading .maint-spinner {
    width: 28px;
    height: 28px;
    animation: maintSpin 1s linear infinite;
}

@keyframes maintSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ── Non-carousel Images Row ───────────────────────────────────── */
.maint-focus-images-row {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
    padding: 0.25rem 0;
}

.maint-focus-images-row__item {
    flex: 0 0 auto;
    width: 160px;
    height: 160px;
    border-radius: 10px;
    overflow: hidden;
    background: var(--black);
    border: 1px solid var(--border);
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.maint-focus-images-row__item:hover {
    transform: scale(1.04);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}

.maint-focus-images-row__item img,
.maint-focus-images-row__item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.maint-focus-images-row__item.maint-focus-carousel__placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    background: var(--black-3);
    border: 1px dashed var(--border);
    color: var(--text-muted);
    cursor: default;
}

.maint-focus-images-row__item.maint-focus-carousel__upload {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    background: rgba(201, 168, 76, 0.03);
    border: 1px dashed rgba(201, 168, 76, 0.25);
    color: var(--gold);
    cursor: pointer;
    transition: all 0.25s;
}

.maint-focus-images-row__item.maint-focus-carousel__upload:hover {
    background: rgba(201, 168, 76, 0.08);
    border-color: rgba(201, 168, 76, 0.5);
    transform: scale(1.04);
}

/* ── Pending Upload Overlay ──────────────────────────────────── */
.maint-pending-overlay {
    position: relative;
}

.maint-pending-overlay::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    border-radius: inherit;
    pointer-events: none;
    z-index: 1;
}

/* ── Image Delete Button ────────────────────────────────────── */
.maint-image-delete-btn {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 0.85rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 3;
    transition: all 0.2s ease;
    padding: 0;
    opacity: 0.55;
}

.maint-focus-carousel__item:hover .maint-image-delete-btn,
.maint-focus-images-row__item:hover .maint-image-delete-btn,
.maint-pending-overlay:hover .maint-image-delete-btn {
    opacity: 1;
}

.maint-image-delete-btn:hover {
    opacity: 1;
    background: rgba(220, 53, 69, 0.9);
    border-color: rgba(220, 53, 69, 1);
    transform: scale(1.1);
}

/* Touch devices: always show delete button */
@media (hover: none) {
    .maint-image-delete-btn {
        opacity: 0.7;
    }
}

/* ── Delete Loading State ──────────────────────────────────────── */
.maint-delete-loading {
    position: relative;
    pointer-events: none;
}

.maint-delete-loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    border-radius: inherit;
    z-index: 4;
}

.maint-delete-spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 5;
    color: var(--gold, #c9a84c);
}

.maint-delete-spinner svg {
    width: 32px;
    height: 32px;
    animation: maint-spin 1s linear infinite;
}

@keyframes maint-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ── Lightbox ──────────────────────────────────────────────────── */
.maint-lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    cursor: pointer;
    animation: lbFadeIn 0.2s ease;
}

@keyframes lbFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.maint-lightbox-content {
    max-width: 90vw;
    max-height: 90vh;
    animation: lbZoomIn 0.25s ease;
}

@keyframes lbZoomIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.maint-lightbox-content img,
.maint-lightbox-content video {
    max-width: 90vw;
    max-height: 85vh;
    border-radius: 8px;
    object-fit: contain;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.6);
}

/* ── Quotation / Response Card ────────────────────────────────── */
.maint-quotation-card {
    background: var(--black-3);
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
}

.maint-quotation-card__header {
    padding: 0.6rem 1rem;
    border-bottom: 1px solid var(--border);
    font-family: 'Supreme', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gold);
}

.maint-quotation-card__body {
    padding: 0.5rem 1rem 0.75rem;
}

.maint-quotation-card__body p {
    margin: 0;
    font-size: 0.85rem;
    color: var(--text);
    line-height: 1.5;
}

.maint-quotation-card--response {
    border-color: rgba(96, 229, 217, 0.2);
}

.maint-quotation-card--response .maint-quotation-card__header {
    color: #60e5d9;
}

/* ── Focus Mode Transition ────────────────────────────────────── */
.maint-focused {
    animation: pfFadeUp 0.3s ease;
}

@keyframes pfFadeUp {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

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

/* ── Mobile: Focus Mode Carousel ──────────────────────────────── */
@media (max-width: 768px) {
    .maint-focus-carousel__item {
        width: 140px;
        height: 140px;
    }

    .maint-focus-carousel__placeholder,
    .maint-focus-carousel__upload {
        width: 130px;
        height: 130px;
        min-width: 130px;
    }
}

/* ── Static Focus Mode Layout (no DOM restructuring) ────────────── */
.maint-focused-layout {
    display: flex;
    flex-wrap: nowrap;
    align-items: flex-start;
    gap: 0.75rem;
}

#section-auto-maintenance.maint-focused {
    flex: 0 0 60%;
    max-width: 60%;
    box-sizing: border-box;
    overflow: visible !important;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding-bottom: 1.5rem;
}

#section-auto-maintenance.maint-focused > .panel-header {
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
    border-bottom: none !important;
}

#section-auto-maintenance.maint-focused > #maintenanceList {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    padding: 0 1rem;
    overflow: visible;
}

#maintTimelinePanel.maint-focused {
    flex: 0 0 40%;
    max-width: 40%;
    min-width: 0;
    box-sizing: border-box;
    display: flex !important;
    flex-direction: column;
    gap: 1rem;
    overflow: visible;
}

#section-auto-maintenance.maint-focused > .maint-support-container {
    display: none;
}

.maint-support-container--focus {
    margin: 0;
    padding-bottom: 1.5rem;
    width: 100%;
    box-sizing: border-box;
}

#maintDetailSections {
    padding: 0 1rem;
    margin-top: 0;
    width: 100%;
    box-sizing: border-box;
    overflow: visible;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

#maintDetailSections:empty {
    display: none;
}

#section-auto-maintenance.maint-focused > .empty-state {
    display: none;
}

/* ── Mobile: Static Focus Mode Layout ──────────────────────────── */
@media (max-width: 768px) {
    .maint-focused-layout {
        flex-direction: column;
        flex-wrap: nowrap;
        width: 100%;
        max-width: 100%;
    }

#section-auto-maintenance.maint-focused {
        flex: 0 0 100%;
        width: 100%;
        max-width: 100%;
        overflow: visible !important;
        border-radius: 0;
        border-left: none;
        border-right: none;
    }

    #maintTimelinePanel.maint-focused {
        flex: 0 0 100%;
        width: 100%;
        max-width: 100%;
        padding: 0.75rem 0 0;
        overflow: visible;
    }

    /* Ensure footer is not hidden behind focus content */
    #section-auto-maintenance.maint-focused #maintDetailSections {
        padding-bottom: 1.5rem;
    }

    #maintTimelinePanel.maint-focused {
        padding-bottom: 1rem;
    }

    /* Push footer below all focus content */
    #maintFocusWrapper.maint-focused-layout {
        margin-bottom: 2rem;
    }

    /* Timeline compact on mobile */
    .maint-timeline-container {
        padding: 0.5rem;
    }

    .maint-timeline__step {
        gap: 0.5rem;
        padding: 0.4rem 0;
    }

    .maint-timeline__dot {
        width: 26px;
        height: 26px;
    }

    .maint-timeline__step:not(:last-child)::after {
        left: 12px;
        top: calc(0.4rem + 26px);
        bottom: -0.4rem;
    }

    .maint-timeline__label {
        font-size: 0.78rem;
    }

    .maint-timeline__date {
        font-size: 0.68rem;
    }

    .maint-timeline__sublabel {
        font-size: 0.65rem;
    }

    .maint-timeline__quotation {
        padding: 0.5rem 0.6rem;
    }

    .maint-timeline__quotation-amount {
        font-size: 0.85rem;
    }

    .maint-timeline__quotation-sent {
        font-size: 0.58rem;
        padding: 0.12rem 0.4rem;
    }

    .maint-notice {
        padding: 0.65rem 0.75rem;
        gap: 0.6rem;
        margin-bottom: 1.5rem;
    }

    .maint-notice-title {
        font-size: 0.78rem;
    }

    .maint-notice-item {
        font-size: 0.72rem;
    }

    .maint-response-quot {
        padding: 0.65rem 0.75rem;
    }

    .maint-response-quot__buttons {
        grid-template-columns: 1fr;
        gap: 0.4rem;
    }

    .maint-response-quot__btn {
        padding: 0.5rem;
        font-size: 0.75rem;
    }

    .maint-response-quot__btn-sub {
        font-size: 0.62rem;
    }

    .maint-response-quot__message-title {
        font-size: 0.72rem;
    }

    .maint-response-quot__textarea {
        min-height: 60px;
        font-size: 0.78rem;
    }

    .maint-response-quot__submit {
        padding: 0.45rem 0.85rem;
        font-size: 0.78rem;
    }

    /* Focus support container */
    .maint-support-container--focus {
        margin: 0 0.75rem;
        padding: 0.75rem;
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }

    .maint-support-icon {
        width: 40px;
        height: 40px;
    }

    .maint-support-icon img {
        width: 24px;
        height: 24px;
    }

    /* Detail sections */
    #maintDetailSections {
        padding: 0 0.5rem;
    }

    /* Focus mode cards more compact */
    #section-auto-maintenance.maint-focused .maint-card {
        padding: 0.85rem 0.75rem;
    }

    #section-auto-maintenance.maint-focused .maint-card-icon-wrap {
        width: 40px;
        height: 40px;
    }

    #section-auto-maintenance.maint-focused .maint-card-icon {
        width: 24px;
        height: 24px;
    }

    #section-auto-maintenance.maint-focused .maint-card-service {
        font-size: 0.85rem;
    }

    #section-auto-maintenance.maint-focused .maint-card-field__value {
        font-size: 0.8rem;
    }

    #section-auto-maintenance.maint-focused .maint-card-field__label {
        font-size: 0.6rem;
    }

    #section-auto-maintenance.maint-focused .maint-card-meta-row {
        grid-template-columns: 1fr 1fr;
    }

    #section-auto-maintenance.maint-focused .maint-card-field {
        padding: 0.35rem 0.5rem;
    }

    #section-auto-maintenance.maint-focused .maint-card-field--action {
        padding: 0.4rem 0.5rem 0;
        justify-content: flex-end;
    }

    #section-auto-maintenance.maint-focused .maint-card-view-btn {
        font-size: 0.62rem;
        padding: 0.2rem 0.4rem;
    }

    /* Timeline panel header */
    .maint-focus-timeline h3 {
        font-size: 0.85rem;
        margin-bottom: 0.5rem;
        padding-bottom: 0.4rem;
    }

    /* ── Focus Detail Sections — Mobile ─────────────────────────── */
    .maint-focus-details-row {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .maint-focus-section {
        border-radius: 8px;
    }

    .maint-focus-section__title {
        padding: 0.5rem 0.75rem;
        font-size: 0.8rem;
        border-radius: 8px 8px 0 0;
    }

    .maint-focus-section__body {
        padding: 0.35rem 0.75rem 0.6rem;
        gap: 0;
    }

    .maint-focus-kv {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.15rem;
        padding: 0.35rem 0.4rem;
        border-bottom: 1px solid var(--border);
    }

    .maint-focus-kv:last-child {
        border-bottom: none;
    }

    .maint-focus-kv__label {
        font-size: 0.68rem;
        text-transform: uppercase;
        letter-spacing: 0.04em;
    }

    .maint-focus-kv__value {
        font-size: 0.82rem;
        text-align: left;
        width: 100%;
    }

    /* Ensure footer is not hidden behind focus content */
    .profile-page .footer-push,
    .profile-page > footer {
        position: relative;
        z-index: 10;
    }
}

/* ── Ultra-small screens (≤400px) ──────────────────────────── */
@media (max-width: 400px) {
    .profile-hero {
        padding: 1.25rem 0.6rem 2rem;
    }

    .profile-hero-bg {
        width: 85%;
        opacity: 0.28;
        mask-image: linear-gradient(to left, black 45%, transparent 70%);
        -webkit-mask-image: linear-gradient(to left, black 45%, transparent 70%);
    }

    .profile-hero-content {
        gap: 1rem;
    }

    .profile-avatar-img,
    .profile-avatar-initials {
        width: 68px;
        height: 68px;
        font-size: 1.7rem;
    }

    .profile-avatar-ring {
        inset: -4px;
    }

    .verified-badge {
        width: 22px;
        height: 22px;
        font-size: 0.55rem;
        bottom: 2px;
        right: 2px;
    }

    .profile-hero-text h1 {
        font-size: 1.1rem;
        margin-bottom: 0.2rem;
    }

    .profile-hero-email {
        font-size: 0.78rem;
        margin-bottom: 0.75rem;
    }

    .profile-tag {
        font-size: 0.65rem;
        padding: 0.3rem 0.55rem;
    }

    /* Focus mode ultra-compact */
    #section-auto-maintenance.maint-focused .maint-card {
        padding: 0.65rem 0.5rem;
    }

    #section-auto-maintenance.maint-focused .maint-card-icon-wrap {
        width: 34px;
        height: 34px;
    }

    #section-auto-maintenance.maint-focused .maint-card-icon {
        width: 20px;
        height: 20px;
    }

    #section-auto-maintenance.maint-focused .maint-card-meta-row {
        grid-template-columns: 1fr;
    }

    #section-auto-maintenance.maint-focused .maint-card-field {
        text-align: left;
    }

    #section-auto-maintenance.maint-focused .maint-card-field--first {
        border-right: none;
    }

    #section-auto-maintenance.maint-focused .maint-card-field:nth-child(3) {
        border-right: none;
    }

    .maint-timeline__step {
        gap: 0.4rem;
    }

    .maint-timeline__dot {
        width: 22px;
        height: 22px;
        font-size: 0.6rem;
    }

    .maint-timeline__step:not(:last-child)::after {
        left: 10px;
        top: calc(0.4rem + 22px);
    }

    /* Focus detail sections — ultra-compact */
    .maint-focus-section__title {
        padding: 0.4rem 0.6rem;
        font-size: 0.75rem;
    }

    .maint-focus-section__body {
        padding: 0.25rem 0.6rem 0.5rem;
    }

    .maint-focus-kv {
        padding: 0.3rem 0.35rem;
    }

    .maint-focus-kv__label {
        font-size: 0.62rem;
    }

    .maint-focus-kv__value {
        font-size: 0.78rem;
    }
}

/* ── Vehicle Card Verification Indicator (Pending) ─────────────── */
.vehicle-card-pending {
    position: absolute;
    top: 0.6rem;
    right: 0.6rem;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    z-index: 3;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.vehicle-card:hover .vehicle-card-pending {
    opacity: 1;
}

.vehicle-card-pending::after {
    content: attr(data-tooltip);
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: #374151;
    color: #f3f4f6;
    font-family: 'Supreme', system-ui, sans-serif;
    font-size: 0.75rem;
    padding: 0.4rem 0.7rem;
    border-radius: 8px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.vehicle-card-pending::before {
    content: '';
    position: absolute;
    top: calc(100% + 2px);
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-bottom-color: #374151;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.vehicle-card-pending:hover::after,
.vehicle-card-pending:hover::before {
    opacity: 1;
}

/* ── Vehicle Card Verification Indicator (Verified) ────────────── */
.vehicle-card-verified {
    position: absolute;
    top: 0.6rem;
    right: 0.6rem;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    z-index: 3;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.vehicle-card:hover .vehicle-card-verified {
    opacity: 1;
}

.vehicle-card-verified::after {
    content: attr(data-tooltip);
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: #374151;
    color: #f3f4f6;
    font-family: 'Supreme', system-ui, sans-serif;
    font-size: 0.75rem;
    padding: 0.4rem 0.7rem;
    border-radius: 8px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.vehicle-card-verified::before {
    content: '';
    position: absolute;
    top: calc(100% + 2px);
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-bottom-color: #374151;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.vehicle-card-verified:hover::after,
.vehicle-card-verified:hover::before {
    opacity: 1;
}

/* ── Vehicle Card Action (Delete Button) ───────────────────────── */
.vehicle-card-action {
    position: absolute;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: rgba(0, 0, 0, 0.7);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.2s ease;
    z-index: 4;
}

.vehicle-card:hover .vehicle-card-action {
    opacity: 1;
}

.vehicle-card-action:hover {
    transform: translateY(-1px);
}

.vehicle-card-action-delete {
    bottom: 0.6rem;
    left: 0.6rem;
    right: auto;
    top: auto;
    color: #f87171;
    border-color: rgba(220, 38, 38, 0.3);
}

.vehicle-card-action-delete:hover {
    background: #dc2626;
    color: white;
    border-color: #dc2626;
}

/* ── Unified hover / click treatment ────────────────────────────
   Matches the Sign In / Sign Out button: gold-dim surface,
   gold border + text. Static states keep their original look.
   Sidepanel + destructive buttons are excluded throughout. */
.profile-page button:where(:not(.profile-nav-btn):not(.resend-link):not(.photo-remove):not(.btn-remove-vehicle):not(.vehicle-card-action):not(.maint-card-delete-btn):not(.btn-remove-order)):hover,
.profile-page button:where(:not(.profile-nav-btn):not(.resend-link):not(.photo-remove):not(.btn-remove-vehicle):not(.vehicle-card-action):not(.maint-card-delete-btn):not(.btn-remove-order)):active,
.profile-page a.btn-save:hover,
.profile-page a.btn-save:active,
.profile-page .maint-card-view-btn:hover,
.profile-page .maint-card-view-btn:active,
.profile-page a.maint-support-btn:hover,
.profile-page a.maint-support-btn:active {
    background: var(--gold-dim);
    border-color: var(--border-gold);
    color: var(--gold);
    box-shadow: 0 4px 16px rgba(201, 168, 76, 0.25);
    filter: none;
}

/* ── View button + Vehicle Care buttons match Add Vehicle ─────── */
.profile-page .btn-view-images,
.profile-page #section-vehicle-care a.btn-save,
.profile-page #section-orders a.btn-save,
.profile-page #section-road-assist a.btn-save,
.profile-page #section-auto-maintenance a.btn-save {
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: var(--gold-dim);
    border: 1px solid var(--border-gold);
    color: var(--gold);
    padding: 0.6rem 1.25rem;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.33, 1, 0.68, 1);
    font-family: 'Supreme', system-ui, sans-serif;
    white-space: nowrap;
    text-decoration: none;
}



/* ── Mobile Profile Banner: No Left-Side Fade ───────────────────── */
@media (max-width: 900px), (max-width: 640px), (max-width: 400px) {
    .profile-hero-bg {
        width: 100%;
        mask-image: none;
        -webkit-mask-image: none;
        object-position: center center;
    }
}

@media (max-width: 900px) {
    .profile-hero-bg {
        opacity: 0.25;
    }
}

@media (max-width: 640px) {
    .profile-hero-bg {
        opacity: 0.35;
    }
}

@media (max-width: 400px) {
    .profile-hero-bg {
        opacity: 0.28;
    }
}