@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
    --bg-main: #f8fafc;
    --bg-surface: #ffffff;
    --bg-subtle: #f1f5f9;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    --accent: #2563eb;
    --accent-hover: #1d4ed8;
    --accent-light: #eff6ff;
    --border-color: #e2e8f0;
    --border-hover: #cbd5e1;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 30px -10px rgb(0 0 0 / 0.15);
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-full: 9999px;
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: var(--text-primary);
    background: var(--bg-main);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

button,
input,
select,
textarea {
    font: inherit;
    color: inherit;
}

button {
    cursor: pointer;
    border: none;
    background: none;
}

.container {
    width: min(1240px, calc(100% - 48px));
    margin: 0 auto;
}

/* =========================
   HEADER
========================= */

.header {
    height: 80px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    height: 100%;
    display: flex;
    align-items: center;
    gap: 40px;
}

.logo {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav {
    display: flex;
    gap: 8px;
    height: 100%;
    align-items: center;
}

    .nav a {
        color: var(--text-secondary);
        font-size: 14px;
        font-weight: 600;
        padding: 8px 16px;
        border-radius: var(--radius-sm);
        border-bottom: none;
    }

        .nav a:hover {
            color: var(--text-primary);
            background: var(--bg-subtle);
        }

        .nav a.active {
            color: var(--accent);
            background: var(--accent-light);
        }

.header-phone {
    margin-left: auto;
    font-weight: 700;
    font-size: 15px;
    color: var(--text-primary);
    padding: 8px 16px;
    background: var(--bg-subtle);
    border-radius: var(--radius-full);
}

    .header-phone:hover {
        background: var(--border-color);
    }

/* =========================
   HERO
========================= */

.hero {
    background: radial-gradient(circle at top right, #1e293b, #0f172a);
    color: #fff;
    min-height: 480px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 60px 0;
}

    .hero::after {
        content: '';
        position: absolute;
        top: -50%;
        right: -10%;
        width: 600px;
        height: 600px;
        background: radial-gradient(circle, rgba(37, 99, 235, 0.15) 0%, rgba(0,0,0,0) 70%);
        pointer-events: none;
    }

.hero-content {
    max-width: 680px;
    position: relative;
    z-index: 1;
}

.hero-label,
.eyebrow {
    display: inline-block;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
    color: #38bdf8;
    margin-bottom: 16px;
    background: rgba(56, 189, 248, 0.1);
    padding: 6px 12px;
    border-radius: var(--radius-full);
}

.hero h1 {
    margin: 0 0 20px;
    font-size: clamp(42px, 5.5vw, 64px);
    line-height: 1.05;
    letter-spacing: -1.5px;
    font-weight: 800;
}

.hero p {
    color: #94a3b8;
    font-size: 18px;
    line-height: 1.6;
    margin: 0;
}

/* =========================
   CATALOG
========================= */

.catalog {
    padding: 80px 0;
}

.section-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 32px;
}

    .section-heading h2,
    .archive-hero h1 {
        margin: 0;
        font-size: 36px;
        font-weight: 800;
        letter-spacing: -1px;
    }

.cars-count {
    color: var(--text-muted);
    font-weight: 600;
    font-size: 15px;
}

/* =========================
   FILTERS
========================= */

.filters {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 16px;
    margin-bottom: 40px;
    background: var(--bg-surface);
    padding: 16px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

    .filters input,
    .filters select {
        width: 100%;
        height: 48px;
        border: 1px solid var(--border-color);
        background: var(--bg-main);
        padding: 0 16px;
        border-radius: var(--radius-sm);
        outline: none;
        font-weight: 500;
        transition: var(--transition);
    }

        .filters input:focus,
        .filters select:focus {
            border-color: var(--accent);
            background: var(--bg-surface);
            box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
        }

/* =========================
   CARDS
========================= */

.cars-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.car-card {
    background: var(--bg-surface);
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

    .car-card:hover {
        transform: translateY(-4px);
        box-shadow: var(--shadow-lg);
        border-color: var(--border-hover);
    }

.car-image {
    height: 230px;
    position: relative;
    overflow: hidden;
    background: var(--bg-subtle);
}

    .car-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
        transition: transform 0.5s ease;
    }

.car-card:hover .car-image img {
    transform: scale(1.04);
}

.photo-count,
.sold-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 6px 12px;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(8px);
    color: #fff;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.3px;
}

.sold-badge {
    background: #ef4444;
}

.car-card-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.car-title-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: flex-start;
}

    .car-title-row h3 {
        margin: 0;
        font-size: 20px;
        font-weight: 700;
    }

.car-year {
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 600;
    background: var(--bg-subtle);
    padding: 2px 8px;
    border-radius: 6px;
}

.car-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    margin: 16px 0 24px;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
}

.car-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid var(--bg-subtle);
}

.car-price {
    font-size: 22px;
    font-weight: 800;
    color: var(--text-primary);
}

.arrow-button {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-full);
    background: var(--bg-subtle);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: var(--transition);
}

.car-card:hover .arrow-button {
    background: var(--accent);
    color: #fff;
}

/* =========================
   CAR PAGE
========================= */

.car-page {
    padding: 40px 0 100px;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    margin-bottom: 24px;
    font-weight: 600;
    font-size: 14px;
    padding: 8px 16px;
    background: var(--bg-surface);
    border-radius: var(--radius-full);
    border: 1px solid var(--border-color);
}

    .back-link:hover {
        color: var(--text-primary);
        border-color: var(--border-hover);
    }

.car-detail {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 48px;
}

.main-photo {
    height: 520px;
    background: var(--bg-subtle);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

    .main-photo img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.thumbs {
    display: flex;
    gap: 12px;
    margin-top: 16px;
    overflow-x: auto;
    padding-bottom: 8px;
}

.thumb {
    flex: 0 0 100px;
    height: 75px;
    padding: 0;
    border: 2px solid transparent;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: var(--bg-subtle);
    transition: var(--transition);
}

    .thumb.selected {
        border-color: var(--accent);
        box-shadow: var(--shadow-sm);
    }

    .thumb img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.detail-label {
    display: inline-block;
    color: var(--accent);
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 1.5px;
    font-weight: 800;
    margin-bottom: 12px;
}

.car-detail-info h1 {
    font-size: 44px;
    letter-spacing: -1px;
    font-weight: 800;
    margin: 0;
    line-height: 1.1;
}

.detail-year {
    color: var(--text-muted);
    font-size: 18px;
    margin-top: 8px;
    font-weight: 500;
}

.detail-price {
    font-size: 36px;
    font-weight: 800;
    margin: 24px 0 32px;
    color: var(--text-primary);
}

.spec-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    background: var(--bg-surface);
    padding: 20px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

.spec {
    padding: 8px 0;
    border-bottom: 1px solid var(--bg-subtle);
}

    .spec span {
        display: block;
        color: var(--text-muted);
        font-size: 13px;
        font-weight: 500;
        margin-bottom: 4px;
    }

    .spec strong,
    .spec div {
        font-weight: 600;
        color: var(--text-primary);
    }

.description {
    margin-top: 32px;
}

    .description h2 {
        font-size: 20px;
        font-weight: 700;
        margin-bottom: 12px;
    }

    .description p {
        color: var(--text-secondary);
        line-height: 1.7;
    }

.primary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    border: 0;
    border-radius: var(--radius-sm);
    padding: 0 32px;
    background: var(--accent);
    color: #fff;
    font-weight: 700;
    font-size: 15px;
    transition: var(--transition);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

    .primary-button:hover {
        background: var(--accent-hover);
        transform: translateY(-1px);
        box-shadow: 0 6px 20px rgba(37, 99, 235, 0.35);
    }

.sold-message {
    background: #fef2f2;
    color: #991b1b;
    padding: 16px 20px;
    border-radius: var(--radius-sm);
    margin-top: 24px;
    font-weight: 600;
    border: 1px solid #fecaca;
}

/* =========================
   ARCHIVE
========================= */

.archive-hero {
    background: var(--bg-surface);
    padding: 80px 0;
    border-bottom: 1px solid var(--border-color);
}

    .archive-hero p {
        color: var(--text-secondary);
        font-size: 18px;
        margin-top: 12px;
    }

/* =========================
   EMPTY & UTILS
========================= */

.empty {
    text-align: center;
    padding: 80px 20px;
    color: var(--text-muted);
    font-size: 18px;
    font-weight: 500;
}

.hidden {
    display: none !important;
}

/* =========================
   FOOTER
========================= */

.footer {
    border-top: 1px solid var(--border-color);
    background: var(--bg-surface);
    padding: 48px 0;
    margin-top: auto;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    color: var(--text-secondary);
    font-size: 14px;
}

.footer strong {
    color: var(--text-primary);
    font-weight: 700;
}

.footer p {
    margin: 6px 0 0;
}

/* =========================
   LOGIN
========================= */

.login-page {
    min-height: 100vh;
    background: radial-gradient(circle at center, #f1f5f9, #e2e8f0);
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-box {
    width: min(440px, calc(100% - 32px));
    background: var(--bg-surface);
    padding: 48px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border-color);
}

.login-logo {
    display: block;
    margin-bottom: 32px;
    text-align: center;
}

.login-box h1 {
    margin: 0 0 8px;
    font-size: 26px;
    font-weight: 800;
}

.login-description {
    color: var(--text-secondary);
    margin-bottom: 28px;
    font-size: 14px;
}

.login-box label,
.modal-window label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.login-box input,
.modal-window input,
.modal-window select,
.modal-window textarea {
    display: block;
    width: 100%;
    margin-top: 8px;
    border: 1px solid var(--border-color);
    background: var(--bg-main);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    outline: none;
    transition: var(--transition);
}

    .login-box input:focus,
    .modal-window input:focus,
    .modal-window select:focus,
    .modal-window textarea:focus {
        border-color: var(--accent);
        background: var(--bg-surface);
        box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
    }

.login-box .primary-button {
    width: 100%;
    margin-top: 12px;
}

.form-error {
    color: #ef4444;
    min-height: 20px;
    font-size: 13px;
    font-weight: 600;
    margin-top: 8px;
}

/* =========================
   ADMIN
========================= */

.admin-page {
    background: var(--bg-main);
}

.admin-header {
    background: #0f172a;
    color: #fff;
    border-bottom: 1px solid #1e293b;
}

.admin-header-inner {
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.admin-header .logo {
    color: #fff;
}

.admin-label {
    margin-left: 12px;
    color: #38bdf8;
    font-size: 11px;
    letter-spacing: 1.5px;
    background: rgba(56, 189, 248, 0.1);
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: 700;
}

.admin-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

    .admin-actions a {
        color: #94a3b8;
        font-size: 14px;
        font-weight: 600;
    }

        .admin-actions a:hover {
            color: #fff;
        }

.secondary-button {
    min-height: 42px;
    border: 1px solid var(--border-color);
    background: var(--bg-surface);
    border-radius: var(--radius-sm);
    padding: 0 20px;
    font-weight: 700;
    font-size: 14px;
    transition: var(--transition);
}

    .secondary-button:hover {
        background: var(--bg-subtle);
        border-color: var(--border-hover);
    }

.admin-header .secondary-button {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    border-color: #334155;
}

    .admin-header .secondary-button:hover {
        background: rgba(255, 255, 255, 0.1);
    }

.admin-main {
    padding: 48px 0 100px;
}

.admin-title {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 32px;
}

    .admin-title h1 {
        margin: 0;
        font-size: 36px;
        font-weight: 800;
    }

.stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 36px;
}

.stat {
    background: var(--bg-surface);
    padding: 28px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

    .stat span {
        display: block;
        color: var(--text-muted);
        font-weight: 600;
        font-size: 14px;
        margin-bottom: 8px;
    }

    .stat strong {
        font-size: 38px;
        font-weight: 800;
        color: var(--text-primary);
    }

.admin-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1px;
}

.tab {
    border: 0;
    background: transparent;
    padding: 12px 20px;
    color: var(--text-secondary);
    font-weight: 700;
    font-size: 15px;
    border-bottom: 2px solid transparent;
    transition: var(--transition);
}

    .tab.active {
        color: var(--accent);
        border-bottom-color: var(--accent);
    }

.admin-cars {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.admin-car {
    display: grid;
    grid-template-columns: 140px 1fr auto;
    gap: 24px;
    align-items: center;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    padding: 16px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

    .admin-car:hover {
        border-color: var(--border-hover);
        box-shadow: var(--shadow-md);
    }

.admin-car-image {
    width: 140px;
    height: 95px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: var(--bg-subtle);
}

    .admin-car-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.admin-car-info h3 {
    margin: 0 0 6px;
    font-size: 18px;
    font-weight: 700;
}

.admin-car-info strong {
    display: block;
    margin-top: 8px;
    font-size: 18px;
    color: var(--accent);
}

.admin-car-meta {
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 500;
}

.admin-car-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

.action-button {
    border: 1px solid var(--border-color);
    background: var(--bg-surface);
    border-radius: var(--radius-sm);
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 600;
    transition: var(--transition);
}

    .action-button:hover {
        background: var(--bg-subtle);
        border-color: var(--border-hover);
    }

    .action-button.danger {
        color: #ef4444;
        background: #fef2f2;
        border-color: #fecaca;
    }

        .action-button.danger:hover {
            background: #fee2e2;
            border-color: #fca5a5;
        }

/* =========================
   MODAL
========================= */

.modal {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 24px;
    z-index: 1000;
}

.modal-window {
    width: min(800px, 100%);
    max-height: 85vh;
    overflow-y: auto;
    background: var(--bg-surface);
    border-radius: var(--radius-lg);
    padding: 36px;
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border-color);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 28px;
}

    .modal-header h2 {
        margin: 0;
        font-size: 24px;
        font-weight: 800;
    }

.close-button {
    width: 36px;
    height: 36px;
    border: 0;
    background: var(--bg-subtle);
    border-radius: var(--radius-full);
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

    .close-button:hover {
        background: var(--border-color);
    }

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0 20px;
}

.file-input {
    margin-top: 12px;
}

    .file-input input {
        padding: 10px !important;
        background: var(--bg-surface);
    }

    .file-input small {
        display: block;
        color: var(--text-muted);
        margin-top: 6px;
    }

.modal-footer {
    border-top: 1px solid var(--border-color);
    padding-top: 24px;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 28px;
}

.existing-images {
    margin-top: 24px;
}

    .existing-images h4 {
        margin-bottom: 12px;
        font-size: 15px;
    }

.existing-images-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.existing-image {
    width: 100px;
    height: 75px;
    position: relative;
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 1px solid var(--border-color);
}

    .existing-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .existing-image button {
        position: absolute;
        top: 4px;
        right: 4px;
        width: 22px;
        height: 22px;
        border: 0;
        border-radius: var(--radius-full);
        background: rgba(15, 23, 42, 0.8);
        color: #fff;
        font-size: 12px;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: var(--transition);
    }

        .existing-image button:hover {
            background: #ef4444;
        }

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 900px) {
    .cars-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .car-detail {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .main-photo {
        height: 400px;
    }

    .header-phone {
        display: none;
    }
}

@media (max-width: 650px) {
    .container {
        width: min(100% - 32px, 1200px);
    }

    .header {
        height: 68px;
    }

    .header-inner {
        gap: 16px;
    }

    .nav {
        gap: 4px;
    }

        .nav a {
            font-size: 13px;
            padding: 6px 10px;
        }

    .hero {
        min-height: 360px;
        padding: 40px 0;
    }

        .hero h1 {
            font-size: 36px;
        }

    .catalog {
        padding: 48px 0;
    }

    .section-heading {
        display: block;
    }

        .section-heading h2,
        .archive-hero h1 {
            font-size: 28px;
        }

    .cars-count {
        display: block;
        margin-top: 6px;
    }

    .filters {
        grid-template-columns: 1fr;
        padding: 12px;
    }

    .cars-grid {
        grid-template-columns: 1fr;
    }

    .car-image {
        height: 210px;
    }

    .car-detail-info h1 {
        font-size: 32px;
    }

    .detail-price {
        font-size: 28px;
    }

    .main-photo {
        height: 280px;
    }

    .footer-inner {
        flex-direction: column;
        gap: 20px;
    }

    .admin-title {
        display: block;
    }

        .admin-title .primary-button {
            margin-top: 16px;
            width: 100%;
        }

    .stats {
        grid-template-columns: 1fr;
    }

    .admin-car {
        grid-template-columns: 90px 1fr;
        gap: 16px;
    }

    .admin-car-image {
        width: 90px;
        height: 70px;
    }

    .admin-car-actions {
        grid-column: 1 / -1;
        justify-content: flex-start;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .modal-window {
        padding: 24px;
    }

    /* =========================================================
   CAR BRAND / MODEL AUTOCOMPLETE
========================================================= */

    .autocomplete-field {
        position: relative;
    }

    .autocomplete-wrapper {
        position: relative;
        margin-top: 7px;
    }

        .autocomplete-wrapper input {
            margin-top: 0 !important;
        }

    .field-hint {
        display: block;
        margin-top: 6px;
        color: #999;
        font-size: 11px;
        font-weight: 500;
    }

    .autocomplete-list {
        position: absolute;
        top: calc(100% + 7px);
        left: 0;
        right: 0;
        max-height: 280px;
        overflow-y: auto;
        background: #fff;
        border: 1px solid #dedede;
        border-radius: 10px;
        box-shadow: 0 14px 35px rgba(0, 0, 0, 0.12);
        padding: 6px;
        z-index: 2000;
        animation: autocompleteAppear 0.12s ease-out;
    }

        .autocomplete-list.hidden {
            display: none;
        }

    .autocomplete-item {
        display: flex;
        width: 100%;
        min-height: 42px;
        align-items: center;
        border: 0;
        border-radius: 7px;
        background: transparent;
        padding: 0 12px;
        text-align: left;
        color: #222;
        font-size: 14px;
        font-weight: 600;
        cursor: pointer;
        transition: background 0.12s ease, color 0.12s ease;
    }

        .autocomplete-item:hover,
        .autocomplete-item.active {
            background: #f1f1f1;
            color: #111;
        }

        .autocomplete-item:active {
            background: #e7e7e7;
        }


    /* Scrollbar */

    .autocomplete-list::-webkit-scrollbar {
        width: 7px;
    }

    .autocomplete-list::-webkit-scrollbar-track {
        background: transparent;
    }

    .autocomplete-list::-webkit-scrollbar-thumb {
        background: #ccc;
        border-radius: 10px;
    }

        .autocomplete-list::-webkit-scrollbar-thumb:hover {
            background: #aaa;
        }


    @keyframes autocompleteAppear {

        from {
            opacity: 0;
            transform: translateY(-4px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
}
