/* ============================================================
   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);
}

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

/* ── 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: 3.5rem 2rem 5rem;
    overflow: hidden;
}

.profile-hero-bg {
    position: absolute;
    inset: 0;
    background: url('data:image/svg+xml,<svg width="60" height="60" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="g" width="60" height="60" patternUnits="userSpaceOnUse"><path d="M60 0L0 0 0 60" fill="none" stroke="rgba(96,229,217,0.05)" stroke-width="1"/></pattern></defs><rect width="60" height="60" fill="url(%23g)"/></svg>');
    opacity: 0.7;
  }

.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;
}

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

.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;
}

/* ── 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;
}

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

.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;
}

/* ── Sidebar ──────────────────────────────────────────────── */
.profile-sidebar {
    display: flex;
    flex-direction: column;
    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;
}

.profile-nav-btn {
    width: 100%;
    background: none;
    border: none;
    padding: 0.85rem 1.2rem;
    border-radius: 10px;
    font-size: 0.88rem;
    font-weight: 400;
    letter-spacing: 0.04em;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.2s ease;
    text-align: left;
    position: relative;
    z-index: 100;
}

/* 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;
}

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

.profile-nav-btn.active {
    background: var(--gold-dim);
    border: 1px solid var(--border-gold);
    color: var(--gold);
    font-weight: 600;
}

.profile-sidebar-footer {
    margin-top: 0.35rem;
}

.profile-signout-btn {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.8rem 1.2rem;
    background: var(--surface);
    border: 1px solid rgba(220,38,38,.25);
    border-radius: 12px;
    color: #f87171;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.2s ease;
}

.profile-signout-btn:hover {
    background: rgba(220,38,38,.1);
    border-color: rgba(220,38,38,.5);
}

.btn-section-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: auto;
    min-width: 200px;
    padding: 0.85rem 1.2rem;
    border-radius: 10px;
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 400;
    letter-spacing: 0.04em;
    border: none;
    background: none;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-section-action:hover {
    color: var(--text);
    background: rgba(201, 168, 76, 0.1);
    border-radius: 10px;
}

/* ── Content Panels ───────────────────────────────────────── */
.profile-content {
    min-width: 0;
}

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

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

@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;
}

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

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

.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: 1.05rem;
}

/* Split panel header for Orders & Vehicle Care */
.panel-header-split {
    display: flex;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
    margin-bottom: 1rem;
}

.panel-header-item {
    flex: 1;
    min-width: 200px;
}

.panel-header-item-right {
    text-align: right;
}

.panel-header-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 0.25rem;
}

/* Split grid for Orders & Vehicle Care side by side */
.orders-split-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.orders-section {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.25rem;
    min-height: 200px;
}

.orders-section-vc .empty-state-icon img {
    width: 48px;
    height: 48px;
    filter: invert(0.6) opacity(0.5);
}

.orders-section-vc .btn-explore-plans {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    background: var(--gold);
    color: var(--black);
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}

.orders-section-vc .btn-explore-plans:hover {
    opacity: 0.9;
}

@media (max-width: 768px) {
    .panel-header-split {
        flex-direction: column;
    }
    .panel-header-item-right {
        text-align: left;
    }
    .orders-split-grid {
        grid-template-columns: 1fr;
    }
}

/* ── 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-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;
}

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

.btn-save:hover {
    background: var(--gold-light);
    border-color: var(--gold-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px 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 svg {
    color: var(--gold-dim);
    opacity: 0.7;
}

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

.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;
}

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

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

.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: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: color 0.2s;
    padding: 0.25rem;
    line-height: 1;
}

.btn-close-modal:hover {
    color: var(--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;
    cursor: pointer;
    font-family: 'Supreme', system-ui, sans-serif;
}

.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: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: flex-start;
}

.photo-upload-slot {
    flex: 0 0 calc(20% - 0.6rem);
    min-width: 60px;
    max-width: 100px;
}

.vehicle-photo-section .form-section-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin: 0.25rem 0 1rem;
}

.photo-section-label {
    display: block;
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
}

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

@media (max-width: 600px) {
    .vehicle-photo-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

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

.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.2s ease;
    background: var(--surface);
    min-width: 0;
    overflow: hidden;
}

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

.photo-input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

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

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

.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: 2;
}

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



.photo-empty img,
.photo-empty svg {
    color: var(--gold-dim);
    margin-bottom: 0.25rem;
}













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

.vehicles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(max(200px, 30vw), 1fr));
    gap: 0.75rem;
    padding: 0.75rem;
}

.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;
}

.btn-remove-vehicle {
    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;
}

.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-vin i {
    margin-right: 0.35rem;
    color: var(--text-muted);
}

.btn-view-images {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    background: var(--gold-dim);
    color: var(--gold);
    border: 1px solid var(--border-gold);
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

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

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

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

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

    .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;
    }

    .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;
    }

.profile-nav-btn svg, 
    .profile-nav-btn img {
        width: 18px;
        height: 18px;
        margin-right: 6px;
        transition: filter 0.2s ease;
    }
    
    /* Vehicle care icon styling */
    .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-content {
        width: 100%;
    }

    .profile-panel {
        padding: 1rem;
    }

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

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

.panel-action-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1rem;
    background: var(--gold);
    color: var(--black);
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.panel-action-link:hover {
    opacity: 0.85;
    transform: translateY(-1px);
}

.panel-action-link svg {
    width: 14px;
    height: 14px;
}

.panel-header h2 {
        font-size: 1.25rem;
    }

    .profile-form {
        gap: 1rem;
    }

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

    .form-group {
        width: 100%;
    }

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

    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%;
    }
}

@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-avatar-img, 
    .profile-avatar-initials {
        width: 80px;
        height: 80px;
        font-size: 2rem;
    }

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

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

    .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%;
    }

    .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 h2 {
        font-size: 1.1rem;
    }

    .panel-header p {
        font-size: 0.85rem;
    }

    .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 svg,
    .empty-state-icon img {
        width: 40px;
        height: 40px;
    }

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

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

.vehicle-card {
    position: relative;
}

.vehicle-verification-badge {
    position: absolute;
    top: 10px;
    right: 46px;
    width: 24px;
    height: 24px;
    background: #dc3545;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 3;
    box-shadow: 0 2px 6px rgba(220, 53, 69, 0.5);
    transition: transform 0.2s ease;
}

.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-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;
}

.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-actions {
    display: flex;
    gap: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

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

.btn-explore-plans {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.2rem;
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  border: none;
  background: none;
  color: var(--text-muted);
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
}

.btn-explore-plans:hover {
  color: var(--text);
  background: rgba(201, 168, 76, 0.1);
  border-radius: 10px;
}

.btn-explore-plans:active {
  transform: translateY(0);
}



.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;
}

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

/* Order Card Styling */
.order-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1rem;
    transition: all 0.2s ease;
    cursor: pointer;
}

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

.order-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.order-ref-code {
    font-family: 'Supreme', sans-serif;
    font-weight: 600;
    color: var(--gold);
    font-size: 0.9rem;
}

.order-status-badge {
    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-submitted { background: rgba(245,158,11,0.15); color: #f59e0b; }
.order-status-badge.status-in_progress { background: rgba(96,229,217,0.15); color: #60e5d9; }
.order-status-badge.status-resolved { background: rgba(16,185,129,0.15); color: #10b981; }

.order-card-vehicle {
    margin-bottom: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border);
}

.order-card-vehicle strong {
    display: block;
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
}

.order-card-vehicle span {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.order-card-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    font-size: 0.8rem;
}

.detail-row {
    display: flex;
    justify-content: space-between;
}

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

.detail-value {
    font-weight: 500;
}

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

/* ─── 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;
}

.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;
}

.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;
}

.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);
}

/* Legacy table styling */
.order-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.order-table th {
    text-align: left;
    padding: 1rem;
    background: var(--surface);
    border-bottom: 2px solid var(--border);
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 0.05em;
    white-space: nowrap;
    vertical-align: middle;
}

.order-table td {
    padding: 0.875rem 1rem;
    border-bottom: 1px solid var(--border);
    color: var(--text);
    vertical-align: middle;
}

.order-table tr:hover td {
    background: var(--surface);
}

.order-table .order-ref-cell {
    font-weight: 600;
    color: var(--gold);
    white-space: nowrap;
}

.order-table .order-vehicle-cell {
    font-weight: 500;
    color: var(--text);
}

.order-table .order-part-cell {
    color: var(--text-muted);
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.order-table .order-meta-cell {
    white-space: nowrap;
    text-align: right;
    vertical-align: middle;
}

.order-table .order-quality-cell {
    vertical-align: middle;
    white-space: nowrap;
}

.order-table .order-date-cell {
    vertical-align: middle;
    white-space: nowrap;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.order-table .order-quality-badge {
    display: inline-block;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 500;
    background: var(--gold-dim);
    color: var(--gold);
}

.order-status {
    display: inline-block;
    padding: 0.25rem 0.6rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: capitalize;
}

.order-status.status-submitted,
.order-status.status-pending {
    background: rgba(128, 128, 128, 0.15);
    color: #808080;
}

.order-status.status-cancelled,
.order-status.status-rejected {
    background: rgba(220, 53, 69, 0.15);
    color: #dc3545;
}

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

.order-status.status-in_progress {
    background: rgba(201, 168, 76, 0.15);
    color: #c9a848;
}

.order-status.status-resolved {
    background: rgba(59, 130, 246, 0.15);
    color: #3b82f6;
}

/* Legacy order-card styles (for reference only - deprecated) */
/* .order-card is kept for backward compatibility but not used */

.order-card:hover {
    border-color: var(--gold);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(201, 168, 76, 0.15);
}

.order-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.order-ref {
    font-weight: 600;
    color: var(--gold);
    font-size: 0.9rem;
    letter-spacing: 0.02em;
}

.order-status {
    font-size: 0.75rem;
    padding: 0.25rem 0.6rem;
    border-radius: 20px;
    font-weight: 500;
    text-transform: capitalize;
}

.order-status.status-submitted,
.order-status.status-pending {
    background: rgba(128, 128, 128, 0.15);
    color: #808080;
}

.order-status.status-cancelled,
.order-status.status-rejected {
    background: rgba(220, 53, 69, 0.15);
    color: #dc3545;
}

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

.order-status.status-in_progress {
    background: rgba(201, 168, 76, 0.15);
    color: #c9a848;
}

.order-status.status-resolved {
    background: rgba(59, 130, 246, 0.15);
    color: #3b82f6;
}

/* ─── Order Detail Modal ────────────────────────────────────────── */
.order-detail-modal {
    max-width: 90vw;
    max-height: 85vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-sizing: border-box;
}

.order-detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border);
    background: var(--surface-2);
    flex-shrink: 0;
    box-sizing: border-box;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.order-detail-header h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text);
}

.order-detail-ref {
    font-weight: 700;
    color: var(--gold);
    font-size: 1rem;
    letter-spacing: 0.02em;
}

.order-detail-status {
    font-size: 0.7rem;
    padding: 0.3rem 0.75rem;
    border-radius: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    display: inline-block;
}

.order-detail-status.status-submitted,
.order-detail-status.status-pending {
    background: rgba(128, 128, 128, 0.15);
    color: #808080;
}

.order-detail-status.status-cancelled,
.order-detail-status.status-rejected {
    background: rgba(220, 53, 69, 0.15);
    color: #dc3545;
}

.order-detail-status.status-approved {
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
}

.order-detail-status.status-in_progress {
    background: rgba(201, 168, 76, 0.15);
    color: #c9a848;
}

.order-detail-status.status-resolved {
    background: rgba(59, 130, 246, 0.15);
    color: #3b82f6;
}

.order-detail-content {
    padding: 1.25rem;
    overflow-y: auto;
    flex: 1;
    overflow-x: hidden;
    box-sizing: border-box;
}

.order-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    min-width: 0;
}

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

.order-detail-field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding: 0.6rem 0.75rem;
    background: var(--surface-2);
    border-radius: 8px;
    border: 1px solid var(--border);
    min-width: 0;
    overflow: hidden;
    box-sizing: border-box;
}

.order-detail-field.full-width {
    grid-column: 1 / -1;
}

.order-detail-field label {
    font-size: 0.65rem;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
}

.order-detail-field span {
    font-size: 0.9rem;
    color: var(--text);
    line-height: 1.4;
    word-break: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
}

.order-detail-actions {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border);
    background: var(--surface-2);
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    flex-shrink: 0;
}

/* Vehicle Care Orders Section */
.vehicle-care-orders-container {
  padding: 1rem 0;
}

.vehicle-care-orders-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1rem;
  width: 100%;
  box-sizing: border-box;
  padding: 0 0.5rem;
}

.vehicle-care-order-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.25rem;
  transition: all 0.2s ease;
}

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

.order-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.order-ref-code {
  font-family: 'Supreme', sans-serif;
  font-weight: 600;
  color: var(--gold);
}

.order-status-badge {
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 500;
}

.order-status-badge.status-submitted {
  background: rgba(201,168,76,0.15);
  color: var(--gold);
}

.order-status-badge.status-approved {
  background: rgba(79,168,90,0.15);
  color: var(--accent);
}

.order-card-vehicle {
  margin-bottom: 0.75rem;
}

.order-card-vehicle strong {
  display: block;
  font-size: 1rem;
  color: var(--white);
}

.order-card-vehicle span {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
}

.order-card-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 1rem;
  min-height: 100px;
}

.detail-row {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.detail-label {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.4);
}

.detail-value {
  font-size: 0.85rem;
  color: var(--white);
}

.order-card-date {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.4);
  border-top: 1px solid var(--border);
  padding-top: 0.75rem;
}