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

:root {
    --bg-color: #030712;
    --bg-secondary: #0f172a;
    --text-main: #f8fafc;
    --text-muted: #cbd5e1;
    --primary-color: #3b82f6;
    --primary-glow: rgba(59, 130, 246, 0.5);
    --accent-color: #06b6d4;
    --accent-glow: rgba(6, 182, 212, 0.5);
    --gradient-main: linear-gradient(135deg, #3b82f6 0%, #06b6d4 100%);

    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);

    --transition-speed: 0.3s;
}

/* Custom Scrollbar */
::-webkit-calendar-picker-indicator {
    filter: invert(1);
}

::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: rgba(15, 23, 42, 0.6);
}

::-webkit-scrollbar-thumb {
    background: rgba(59, 130, 246, 0.3);
    border-radius: 999px;
    border: 2px solid rgba(15, 23, 42, 0.6);
    background-clip: padding-box;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(59, 130, 246, 0.6);
    border-color: rgba(15, 23, 42, 0.6);
}

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

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI',
        sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    background-image:
        radial-gradient(circle at 15% 50%, rgba(59, 130, 246, 0.08) 0%, transparent 25%),
        radial-gradient(circle at 85% 30%, rgba(6, 182, 212, 0.08) 0%, transparent 25%);
}

h1,
h2,
h3,
h4 {
    font-weight: 700;
    /* More vertical room so Georgian glyphs are not clipped */
    line-height: 1.25;
    letter-spacing: -0.02em;
}

h1 {
    /* Slightly smaller overall, still responsive */
    font-size: clamp(2.7rem, 4.2vw, 4.5rem);
    background: var(--gradient-main);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1.5rem;
    animation: slideUp 0.8s ease-out;
    overflow-wrap: break-word;
    word-wrap: break-word;
    max-width: 100%;
}

h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

p {
    color: var(--text-muted);
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 6%;
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    box-shadow: var(--glass-shadow);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all var(--transition-speed) ease;
    cursor: pointer;
    border: none;
    font-size: 1rem;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary {
    background: var(--gradient-main);
    color: white;
    box-shadow: 0 4px 15px var(--primary-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--primary-glow);
}

.btn-outline {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: var(--text-main);
}

.btn-outline:hover {
    border-color: var(--primary-color);
    color: white;
    background: rgba(59, 130, 246, 0.1);
}

header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.25rem 0;
    background: rgba(3, 7, 18, 0.6);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--glass-border);
    transition: all 0.3s ease;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.burger {
    display: none;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.5);
    background: rgba(15, 23, 42, 0.8);
    cursor: pointer;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 0.3rem;
    padding: 0;
}

.burger span {
    width: 1.3rem;
    height: 2px;
    background: var(--text-main);
    border-radius: 999px;
    transition: opacity 0.2s ease;
}

.logo {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--text-main);
    text-decoration: none;
    letter-spacing: -1px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo span {
    color: var(--accent-color);
}

.nav-links {
    display: flex;
    gap: 3rem;
    list-style: none;
    align-items: center;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s;
    position: relative;
}

.nav-links a:hover {
    color: white;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background: var(--gradient-main);
    transition: width 0.3s;
}

.nav-links a:hover::after {
    width: 100%;
}

.hero {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    padding-top: 100px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 60%;
    height: 100%;
    background: linear-gradient(to right, rgba(3, 7, 18, 0.8) 30%, rgba(3, 7, 18, 0.4) 80%, transparent 100%);
    z-index: 1;
    pointer-events: none;
}

.hero-content {
    padding: 0 4rem 0 10%;
    z-index: 2;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-tag {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: rgba(59, 130, 246, 0.1);
    color: var(--accent-color);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    backdrop-filter: blur(4px);
    animation: fadeIn 1s ease-out;
}

.hero-image-container {
    height: 100vh;
    width: 100%;
    position: absolute;
    right: 0;
    top: 0;
    z-index: 0;
    /* Adjusted mask to be softer */
    mask-image: linear-gradient(to right, transparent 10%, black 50%);
    -webkit-mask-image: linear-gradient(to right, transparent 10%, black 50%);
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: brightness(0.7) contrast(1.1);
}

.calculator-section {
    padding: 6rem 0;
    position: relative;
}

.calc-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    padding: 3rem;
}

.calc-info h2 {
    background: linear-gradient(to right, #fff, #94a3b8);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.2s;
}

.feature-list li:hover {
    transform: translateX(10px);
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

.feature-icon {
    width: 32px;
    height: 32px;
    background: var(--gradient-main);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.8rem;
    box-shadow: 0 4px 10px var(--primary-glow);
}

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

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

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

.form-group label {
    font-size: 0.875rem;
    color: var(--accent-color);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.custom-select {
    position: relative;
    width: 100%;
}

.custom-select-trigger {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    background: rgba(15, 23, 42, 0.6);
    color: white;
    cursor: pointer;
    font-size: 1rem;
    transition: 0.3s;
}

.custom-select-trigger i {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.custom-select.open .custom-select-trigger {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

.custom-select-menu {
    position: absolute;
    top: calc(100% + 0.4rem);
    left: 0;
    right: 0;
    background: rgba(15, 23, 42, 0.98);
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.7);
    padding: 0.75rem;
    max-height: 260px;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(4px) scale(0.98);
    transform-origin: top;
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
    z-index: 20;
}

.custom-select.open .custom-select-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.custom-select-search {
    width: 100%;
    padding: 0.6rem 0.8rem;
    border-radius: 8px;
    border: 1px solid var(--glass-border);
    background: rgba(15, 23, 42, 0.9);
    color: white;
    font-size: 0.9rem;
    margin-bottom: 0.6rem;
    outline: none;
}

.custom-select-search:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

.custom-select-options {
    list-style: none;
    margin: 0;
    padding: 0;
    max-height: 190px;
    overflow-y: auto;
}

.custom-select-options li {
    padding: 0.55rem 0.7rem;
    border-radius: 8px;
    font-size: 0.95rem;
    color: var(--text-main);
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}

.custom-select-options li:hover {
    background: rgba(59, 130, 246, 0.15);
    color: white;
}

.form-control {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid var(--glass-border);
    padding: 1rem;
    font-size: 1rem;
    color: white;
    outline: none;
    transition: 0.3s;
    border-radius: 12px;
    width: 100%;
    appearance: none;
    cursor: pointer;
}

/* Make built-in password show/hide icon white (Windows/Edge) */
input[type="password"]::-ms-reveal,
input[type="password"]::-ms-clear {
    filter: invert(1);
}

.form-control:focus {
    border-color: var(--primary-color);
    background-color: rgba(15, 23, 42, 0.9);
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

.form-control option {
    background: var(--bg-secondary);
    color: white;
}

/* Add dropdown icon for all calculator selects */
select.form-control {
    padding-right: 2.5rem;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 10 6' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23cbd5e1' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 12px 12px;
}

.price-box {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(6, 182, 212, 0.1) 100%);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 24px;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    margin-top: 2rem;
    position: relative;
    overflow: hidden;
}

.price-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 0%, rgba(59, 130, 246, 0.2), transparent 70%);
}

.price-box .label {
    color: var(--text-muted);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem;
    position: relative;
}

.price-box .value {
    font-size: 4.5rem;
    font-weight: 800;
    color: white;
    line-height: 1;
    position: relative;
    text-shadow: 0 0 20px var(--primary-glow);
}

.contact-section {
    padding: 6rem 0;
    background: linear-gradient(to bottom, var(--bg-color), var(--bg-secondary));
    position: relative;
}

.contact-header {
    display: flex;
    justify-content: space-between;
    align-items: end;
    margin-bottom: 4rem;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.contact-item {
    padding: 2.5rem;
    transition: 0.3s;
    position: relative;
    overflow: hidden;
}

.contact-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-main);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.contact-item:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.05);
}

.contact-item:hover::before {
    transform: scaleX(1);
}

.contact-item h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: white;
}

.contact-item p:not(:last-child) {
    color: var(--text-main);
    font-size: 1.1rem;
    font-weight: 500;
}

.contact-icon {
    font-size: 2rem;
    background: var(--gradient-main);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1.5rem;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

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

    .hero {
        grid-template-columns: 1fr;
        padding-top: 100px;
    }

    .hero-content {
        padding: 0 2rem;
        max-width: 100%;
        text-align: center;
    }

    .hero-image-container {
        position: relative;
        height: 50vh;
        mask-image: linear-gradient(to bottom, transparent 0%, black 20%, black 80%, transparent 100%);
        -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 20%, black 80%, transparent 100%);
        opacity: 0.6;
        margin-top: -100px;
        z-index: 0;
    }

    .calc-wrapper {
        grid-template-columns: 1fr;
        padding: 2rem;
    }

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

    .nav-links {
        gap: 1.5rem;
        flex-wrap: wrap;
    }
}

@media (max-width: 768px) {
    .burger {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 72px;
        right: 1.5rem;
        left: 1.5rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        padding: 1.25rem 1.5rem;
        background: rgba(15, 23, 42, 0.97);
        border-radius: 16px;
        border: 1px solid var(--glass-border);
        box-shadow: 0 20px 40px rgba(15, 23, 42, 0.8);
        display: none;
        z-index: 1500;
    }

    body.nav-open .nav-links {
        display: flex;
    }

    .contact-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }

    .contact-header .btn {
        align-self: flex-start;
    }
}

@media (max-width: 600px) {
    .container {
        padding: 0 4%;
    }

    h1 {
        font-size: 1.9rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    p {
        font-size: 0.95rem;
    }

    .nav-links a {
        font-size: 0.9rem;
    }

    .contact-item h3 {
        font-size: 1.3rem;
    }

    /* Dealer page header spacing */
    .dealer-section {
        padding: 6rem 0 4rem;
    }

    /* Modal/gallery tighter on mobile */
    .modal-content {
        width: 95%;
    }

    .modal-gallery {
        padding: 1.5rem 1.25rem;
    }

    .modal-info {
        padding: 1.75rem 1.5rem;
    }

    .gallery-tabs {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    /* Constrain and center main gallery image on mobile */
    .gallery-view {
        max-width: 90%;
        margin: 0 auto;
    }

    .gallery-view img {
        width: 100%;
    }

    .gallery-carousel-main img {
        max-height: 220px;
        object-fit: cover;
    }

    /* Tighter, single-column calculator on very small screens */
    .calculator-section {
        padding: 3.5rem 0;
    }

    .calc-wrapper {
        padding: 1.25rem 1rem;
        gap: 2rem;
    }

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

    .price-box {
        margin-top: 1.5rem;
        padding: 1.75rem 1.5rem;
    }

    .price-box .value {
        font-size: 3rem;
    }
}

/* Login Page */
.login-body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image:
        radial-gradient(circle at 50% 50%, rgba(59, 130, 246, 0.15) 0%, transparent 50%);
}

.login-container {
    width: 100%;
    max-width: 450px;
    padding: 2rem 3rem;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    animation: slideUp 0.6s ease-out;
}

.login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.login-header h1 {
    font-size: 2rem;
    height: auto;
    padding-bottom: 4px;
    margin-bottom: 0.5rem;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.login-footer {
    margin-top: 2rem;
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.login-footer a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.login-footer a:hover {
    text-decoration: underline;
}

/* Login mobile tweaks (must be after base login styles) */
@media (max-width: 600px) {
    .login-body {
        align-items: flex-start;
        padding: 2.5rem 0.75rem 1.5rem;
    }

    .login-container {
        max-width: 380px;
        padding: 1rem 1.5rem;
        margin: 0 auto;
    }

    .login-header h1 {
        font-size: 1.6rem;
    }

    .login-header p {
        font-size: 0.9rem;
    }

    .login-footer {
        font-size: 0.8rem;
        margin-top: 1.5rem;
    }
}

/* Language Selector */
.lang-select {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: var(--text-main);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    outline: none;
    transition: all 0.3s ease;
    appearance: none;
    /* Custom Arrow */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='white'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 0.8rem;
    padding-right: 2rem;
}

.lang-select:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='white'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 0.8rem;
    padding-right: 2rem;
}

.lang-select option {
    background: var(--bg-secondary);
    color: white;
}

/* Dealer Page Specifics */
.dealer-section {
    padding: 8rem 0;
    min-height: 100vh;
}
/* Dealer title heading – a bit smaller but with safe line-height */
.dealer-section h1[data-i18n="dealer_title"] {
    font-size: 2rem;
    line-height: 1.3;
    padding-bottom: 0.1em;
}

.car-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.car-card {
    cursor: pointer;
    transition: all 0.3s ease;
    overflow: hidden;
}

.car-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px -10px var(--primary-glow);
}

.car-img-container {
    height: 200px;
    width: 100%;
    overflow: hidden;
    position: relative;
}

.car-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.car-card:hover .car-img {
    transform: scale(1.1);
}

.status-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.25rem 0.75rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    z-index: 2;
}

.status-purchasing {
    background: rgba(59, 130, 246);
    color: #FFFFFF;
    border: 1px solid rgba(59, 130, 246, 0.6);
}

.status-loading {
    background: rgba(245, 158, 11, 1);
    color: #ffffff;
    border: 1px solid rgba(245, 158, 11, 0.6);
}

.status-arrived {
    background: rgba(16, 185, 129 );
    color: #FFFFFF;
    border: 1px solid rgba(16, 185, 129, 0.6);
}

.status-transit {
    background: rgba(59, 130, 246, 0.25);
    color: #60a5fa;
    border: 1px solid rgba(59, 130, 246, 0.45);
}

/* Ensure Font Awesome icons render correctly (override global font) */
.fa,
.fa-solid,
.fa-regular,
.fa-light,
.fa-thin,
.fa-duotone,
.fa-sharp,
.fa-solid::before,
.fa-regular::before,
.fa-light::before,
.fa-thin::before,
.fa-duotone::before,
.fa-sharp::before {
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 900;
}

.fa-brands,
.fa-brands::before {
    font-family: "Font Awesome 6 Brands" !important;
}

.car-details {
    padding: 1.5rem;
}

.car-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: white;
}

.car-meta {
    display: flex;
    justify-content: space-between;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(3, 7, 18, 0.8);
    backdrop-filter: blur(8px);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

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

.modal-content {
    width: 90%;
    max-width: 1000px;
    max-height: 90vh;
    overflow-y: auto;
    background: #0f172a;
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    position: relative;
    transform: translateY(20px);
    transition: transform 0.3s ease;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

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

.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1;
    transition: 0.2s;
    z-index: 10;
    opacity: 1;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.modal-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}

.modal-gallery {
    background: #030712;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.gallery-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.gallery-tab {
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 0.85rem;
    line-height: 1.2;
    display: inline-flex;
    align-items: center;
    transition: 0.2s;
}

.gallery-tab.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.gallery-view {
    width: 100%;
    aspect-ratio: 16/9;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
}

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

.gallery-carousel {
    position: relative;
    margin-top: 1.25rem;
}

.gallery-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border-radius: 999px;
    border: 1px solid var(--glass-border);
    background: rgba(15, 23, 42, 0.9);
    color: var(--text-main);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.2s;
}

.gallery-arrow:first-child {
    left: 0.75rem;
}

.gallery-arrow:last-child {
    right: 0.75rem;
}

.gallery-arrow:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.gallery-carousel-main {
    max-width: 100%;
    margin: 0 auto;
}

.gallery-carousel-main img {
    width: 100%;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    cursor: zoom-in;
}

.gallery-thumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.gallery-thumb {
    padding: 0;
    border: 1px solid transparent;
    background: transparent;
    border-radius: 8px;
    cursor: pointer;
    overflow: hidden;
}

.gallery-thumb img {
    width: 56px;
    height: 40px;
    object-fit: cover;
    display: block;
}

.gallery-thumb.active {
    border-color: var(--primary-color);
}

/* Image lightbox */
.image-lightbox-overlay {
    position: fixed;
    inset: 0;
    background: rgba(3, 7, 18, 0.9);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 3000;
}

.image-lightbox-overlay.active {
    display: flex;
}

.image-lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90vh;
}

.image-lightbox-content img {
    width: 100%;
    height: auto;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 16px;
    border: 1px solid var(--glass-border);
}

.image-lightbox-close {
    position: absolute;
    top: -1.5rem;
    right: 0;
    width: 32px;
    height: 32px;
    border-radius: 999px;
    border: none;
    background: rgba(15, 23, 42, 0.9);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

.modal-info {
    padding: 2.5rem;
    overflow-y: auto;
}

.info-group {
    margin-bottom: 2rem;
}

.info-group h4 {
    color: var(--accent-color);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 0.5rem;
}

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

.info-item label {
    display: block;
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-bottom: 0.25rem;
}

.info-item span {
    color: white;
    font-weight: 500;
    font-size: 1rem;
}

@media (max-width: 768px) {
    .modal-body {
        grid-template-columns: 1fr;
    }
}

@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    10%,
    30%,
    50%,
    70%,
    90% {
        transform: translateX(-5px);
    }

    20%,
    40%,
    60%,
    80% {
        transform: translateX(5px);
    }
}

.shake {
    animation: shake 0.5s cubic-bezier(.36, .07, .19, .97) both;
}