:root {
    /* Premium Color Palette */
    --primary: #CE0E2D;
    --primary-hover: #AB0C25;
    --surface: #ffffff;
    --background: #f0f4f8;
    --text-main: #0f172a;
    --text-secondary: #64748b;
    --border: #e2e8f0;

    /* Effects */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --glass-bg: rgba(255, 255, 255, 0.95);
    --glass-border: rgba(255, 255, 255, 0.2);

    --radius-md: 8px;
    --radius-lg: 24px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: inherit;
}

input,
button,
select,
textarea {
    font-family: 'Franklin Gothic Medium', 'Franklin Gothic', 'ITC Franklin Gothic', Arial, sans-serif;
}

body {
    font-family: 'Franklin Gothic Book', 'Franklin Gothic', 'ITC Franklin Gothic', Arial, sans-serif;
    font-weight: 400;
    background: url('../img/Background.640899.png') no-repeat center center fixed;
    background-size: cover;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    color: var(--text-main);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* Header */
.header {
    background: #CE0E2D;
    padding: 0.3rem 2rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
}

.logo-link.active {
    border-bottom-color: white;
}

.logo-img {
    height: 40px;
    width: auto;
    object-fit: contain;
}

.header-actions {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.user-greeting {
    color: white;
    font-weight: 500;
    font-size: 0.95rem;
    text-transform: uppercase;
}

.logout-btn {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-md);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.logout-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-color: white;
    transform: translateY(-2px);
}

.logout-btn:active {
    transform: translateY(0);
}

/* Layout */
.container {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 6rem 1rem 2rem;
}

/* Navigation */
.back-nav {
    width: 100%;
    max-width: 1100px;
    margin-bottom: 2rem;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.back-link:hover {
    color: var(--primary);
}

/* Footer */
.footer {
    text-align: center;
    margin: 2rem 0;
    font-size: 0.85rem;
    color: var(--text-secondary);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer a {
    color: var(--text-secondary);
    text-decoration: none;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.footer a:hover {
    opacity: 1;
}

/* Step Indicators */
.step-indicator {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
    width: 100%;
    max-width: 900px;
}

.step {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 600;
    position: relative;
}

.step i {
    width: 28px;
    height: 28px;
    background: #e2e8f0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-style: normal;
    line-height: 1;
    color: white;
    transition: all 0.3s;
}

.step.active {
    color: var(--primary);
}

.step.active i {
    background: var(--primary);
    box-shadow: 0 0 0 4px rgba(206, 14, 45, 0.1);
}

/* Common Components */
h1 {
    text-align: center;
    color: var(--text-main);
    margin-bottom: 2rem;
    font-size: 2.2rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    text-transform: uppercase;
}

/* Buttons */
.btn {
    font-family: 'Franklin Gothic Demi', 'Franklin Gothic Medium', 'Franklin Gothic', sans-serif;
    display: block;
    width: 100%;
    padding: 1rem;
    margin: 1.5rem 0 1rem;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s ease;
    letter-spacing: 0.01em;
    text-transform: uppercase;
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 6px -1px rgba(206, 14, 45, 0.2);
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-3px);
    box-shadow: 0 12px 20px -5px rgba(206, 14, 45, 0.4);
}

.btn-primary:active {
    transform: translateY(-1px);
}

.back-btn {
    font-family: 'Franklin Gothic Demi', 'Franklin Gothic Medium', 'Franklin Gothic', sans-serif;
    padding: 0.85rem 2.5rem;
    background: transparent;
    color: var(--text-secondary);
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    text-transform: uppercase;
}

.back-btn:hover {
    border-color: var(--text-secondary);
    color: var(--text-main);
    background: #f8fafc;
    transform: translateX(-4px);
}

.back-btn:active {
    transform: translateX(-2px);
}

/* Disabled Card Style (Requested Feature) */
.vehicle-tile.disabled {
    opacity: 0.6;
    pointer-events: none;
    cursor: not-allowed;
    background: #f1f5f9;
}

.vehicle-tile.disabled .img-container img {
    filter: grayscale(100%);
    transform: none;
}

.vehicle-tile.disabled:hover {
    transform: none;
    box-shadow: none;
    border-color: var(--border);
}

.vehicle-tile.disabled .selection-cta {
    background: #e2e8f0;
    color: var(--text-secondary);
    border-color: var(--border);
}



/* Specific casing for "others" */
p,
span,
label,
input,
select,
textarea,
.desc,
.intro-text,
.sub-text,
.spec-label,
.spec-value,
.copyright {
    text-transform: none;
}

/* Headings and Main Labels */
h1,
h2,
h3,
h4,
h5,
h6,
.selection-cta,
.title,
.main-title,
.user-greeting,
th {
    font-family: 'Franklin Gothic Heavy', 'Franklin Gothic Medium', 'Franklin Gothic', sans-serif;
    text-transform: uppercase;
    font-weight: 800;
}

/* Notification Toast */
.toast-container {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 9999;
}

.toast {
    background: var(--text-main);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-xl);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 0.5rem;
    animation: slideIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.toast i {
    color: #10b981;
}

/* Skeleton Loader */
.skeleton {
    background: linear-gradient(90deg, #f0f4f8 25%, #e2e8f0 50%, #f0f4f8 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* --- Responsive Design --- */

/* Tabet / Large Phones */
@media (max-width: 992px) {
    h1 {
        font-size: 1.8rem;
    }

    .container {
        padding: 5rem 1.5rem 2rem;
    }

    .step-indicator {
        gap: 1rem;
    }

    .step {
        font-size: 0.8rem;
    }
}

/* Mobile Phones */
@media (max-width: 768px) {
    .header {
        padding: 0.3rem 1rem;
    }

    .user-greeting {
        display: none;
        /* Hide greeting on mobile to save space */
    }

    .logo-img {
        height: 32px;
    }

    .container {
        padding: 4.5rem 1rem 1.5rem;
    }

    h1 {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .step span {
        display: none;
        /* Only show numbers on mobile step indicator */
    }

    .step i {
        width: 24px;
        height: 24px;
        font-size: 0.75rem;
    }

    .step-indicator {
        justify-content: center;
        gap: 1.5rem;
    }

    .footer {
        margin: 1.5rem 0;
        font-size: 0.75rem;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .header-actions {
        gap: 0.8rem;
    }

    .logout-btn {
        padding: 0.4rem 0.7rem;
        font-size: 0.8rem;
    }
}/* Access Control Modal */
.access-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
}

.access-modal {
    background: white;
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    width: 90%;
    max-width: 400px;
    text-align: center;
    border-top: 5px solid var(--primary);
}

.access-modal h2 {
    color: var(--text-main);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.access-modal p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.5;
}

.access-code-input {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    font-size: 1.2rem;
    text-align: center;
    letter-spacing: 0.2rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.access-code-input:focus {
    border-color: var(--primary);
    outline: none;
}

.access-btn {
    width: 100%;
    padding: 1rem;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.2s;
}

.access-btn:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
}

.error-msg {
    color: var(--primary);
    font-size: 0.9rem;
    margin-top: 1rem;
    display: none;
    font-weight: 600;
}
