/* ==========================================================================
   EXCLUSIVE UNLOCKS — SHARED DESIGN SYSTEM
   Used by index.php, outfits.php and discord.php.
   Page-specific overrides live in a small <style> block on each page.
   ========================================================================== */
/* ==========================================================================
   RESET, VARIABLE SYSTEM & THEMING
   ========================================================================== */
*{margin:0;padding:0;box-sizing:border-box}

:root {
    --gold: #F5C453;
    --gold-light: #FFF0CE;
    --gold-dim: #A67C1E;
    --gold-glow: rgba(245, 196, 83, 0.15);
    --gold-glow-intense: rgba(245, 196, 83, 0.35);
    
    --bg-deep: #070709;
    --bg-card: #111115;
    --bg-layer: #181822;
    --bg-layer-light: #242432;
    
    --text-primary: #FFFFFF;
    --text-secondary: #A0A0AA;
    --text-muted: #52525B;
    
    --border-subtle: rgba(245, 196, 83, 0.06);
    --border-ui: rgba(245, 196, 83, 0.18);
    --border-bright: rgba(245, 196, 83, 0.4);
    
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 32px;
    
    --shadow-main: 0 10px 40px rgba(0,0,0,0.6);
    --shadow-glow: 0 0 25px var(--gold-glow);
    --ease-fluid: cubic-bezier(0.25, 1, 0.5, 1);
}

body {
    background: var(--bg-deep);
    color: var(--text-primary);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    min-height: 100vh;
    line-height: 1.4;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

/* ==========================================================================
   CREATIVE KEYFRAMES & VISUAL ANIMATIONS
   ========================================================================== */
@keyframes sectionEntrance {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes pulseGlow {
    0%, 100% { box-shadow: 0 0 15px var(--gold-glow); }
    50% { box-shadow: 0 0 25px var(--gold-glow-intense); }
}

@keyframes badgeScale {
    0% { transform: scale(0) rotate(-20deg); opacity: 0; }
    50% { transform: scale(1.1) rotate(10deg); }
    100% { transform: scale(1) rotate(0deg); opacity: 1; }
}

/* ==========================================================================
   HEADER SECTION
   ========================================================================== */
.site-header {
    padding: 4rem 1.5rem 2.5rem;
    text-align: center;
    position: relative;
    background: radial-gradient(circle at top, rgba(245,196,83,0.05) 0%, transparent 70%);
}

.site-header h1 {
    font-size: clamp(2rem, 6.5vw, 3.8rem);
    font-weight: 900;
    letter-spacing: 6px;
    text-transform: uppercase;
    background: linear-gradient(135deg, #FFFFFF 20%, var(--gold-light) 60%, var(--gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 2px 10px rgba(0,0,0,0.5));
}

.header-sub {
    font-size: 0.75rem;
    color: var(--gold);
    letter-spacing: 4px;
    margin-top: 8px;
    text-transform: uppercase;
    font-weight: 700;
    opacity: 0.8;
}

.gold-line {
    width: 45px;
    height: 3px;
    background: var(--gold);
    margin: 1.5rem auto;
    border-radius: 20px;
    box-shadow: 0 0 12px var(--gold);
}

.header-stats {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1rem;
}

.stat {
    background: var(--bg-card);
    padding: 0.6rem 1.75rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-main);
    transition: border-color 0.3s ease, transform 0.3s ease;
}

.stat:hover {
    border-color: var(--border-ui);
    transform: translateY(-2px);
}

.stat-num {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--gold);
    font-variant-numeric: tabular-nums;
}

.stat-label {
    font-size: 0.6rem;
    letter-spacing: 1.5px;
    color: var(--text-secondary);
    text-transform: uppercase;
    margin-top: 2px;
}

/* ==========================================================================
   STILL GLUING STICKY NAVIGATION TOOLBAR
   ========================================================================== */
.toolbar {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 1rem 2rem;
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(7, 7, 9, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-subtle);
    transition: background 0.3s;
}

.search-wrap {
    flex: 1;
    min-width: 200px;
    position: relative;
}

.search-wrap input {
    width: 100%;
    background: var(--bg-layer);
    border: 1px solid transparent;
    border-radius: 14px;
    padding: 12px 16px 12px 42px;
    color: var(--text-primary);
    font-size: 0.85rem;
    outline: none;
    transition: all 0.3s var(--ease-fluid);
}

.search-wrap input:focus {
    border-color: var(--border-bright);
    box-shadow: var(--shadow-glow);
    background: var(--bg-layer-light);
}

.search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    font-size: 16px;
}

.toolbar-right {
    margin-left: auto;
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.nav-links {
    display: flex;
    gap: 4px;
    background: var(--bg-card);
    border-radius: 14px;
    padding: 4px;
    border: 1px solid var(--border-subtle);
}

.nav-link {
    padding: 6px 16px;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-secondary);
    transition: all 0.2s ease;
}

.nav-link:hover { color: var(--text-primary); }

.nav-link.active {
    background: var(--gold);
    color: #000000;
    box-shadow: 0 4px 12px var(--gold-glow);
}

.view-toggle {
    display: flex;
    background: var(--bg-card);
    border-radius: 10px;
    padding: 4px;
    border: 1px solid var(--border-subtle);
}

.view-btn {
    padding: 6px 12px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s ease;
    border-radius: 6px;
}

.view-btn:hover { color: var(--text-secondary); }

.view-btn.active {
    background: var(--bg-layer-light);
    color: var(--gold);
}

.admin-btn {
    padding: 10px 18px;
    border-radius: 14px;
    border: 1px solid var(--border-ui);
    background: transparent;
    color: var(--gold);
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s var(--ease-fluid);
}

.admin-btn:hover {
    background: var(--gold);
    color: #000000;
    box-shadow: var(--shadow-glow);
}

/* ==========================================================================
   CAR CARDS CONFIGURATIONS (GRID LAYOUT)
   ========================================================================== */
.cars-section {
    padding: 2rem;
    max-width: 1650px;
    margin: 0 auto;
    width: 100%;
}

#carsGrid {
    display: grid;
    gap: 28px;
    animation: sectionEntrance 0.5s var(--ease-fluid) both;
}

/* Grid Responsiveness updates */
@media (min-width: 1400px) { #carsGrid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1024px) and (max-width: 1399px) { #carsGrid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 680px) and (max-width: 1023px) { #carsGrid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 679px) { #carsGrid { grid-template-columns: 1fr; } }

/* Shared card bases rules */
.car-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    overflow: hidden;
    cursor: pointer;
    transition: all 0.4s var(--ease-fluid);
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-main);
    position: relative;
}

.car-card:hover {
    border-color: var(--border-bright);
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.7), var(--shadow-glow);
}

.car-card.selected {
    border-color: var(--gold);
    box-shadow: 0 0 0 1px var(--gold), var(--shadow-glow);
    animation: pulseGlow 3s infinite ease-in-out;
}

.card-img-wrap {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/10;
    background: #0d0d11;
}

.card-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit:cover;
    display: block;
    transition: transform 0.7s var(--ease-fluid);
}

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

.img-count {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(7, 7, 9, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 5px 12px;
    border-radius: 30px;
    font-size: 0.65rem;
    color: var(--gold-light);
    font-weight: 600;
    border: 1px solid rgba(255,255,255,0.04);
}

.selected-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--gold);
    color: #000000;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 900;
    box-shadow: 0 4px 12px rgba(0,0,0,0.5);
    z-index: 2;
}

.car-card.selected .selected-badge {
    display: flex;
    animation: badgeScale 0.4s var(--ease-fluid) both;
}

.card-body {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 16px;
}

.card-name {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.25;
    letter-spacing: -0.2px;
}

.car-card:hover .card-name {
    color: var(--gold-light);
}

.select-btn {
    font-size: 0.8rem;
    font-weight: 800;
    padding: 12px 20px;
    border-radius: 14px;
    background: var(--bg-layer);
    color: var(--text-primary);
    border: 1px solid var(--border-subtle);
    cursor: pointer;
    width: 100%;
    text-align: center;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: all 0.2s var(--ease-fluid);
}

.select-btn:hover {
    background: var(--gold);
    color: #000000;
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(245,196,83,0.3);
}

.car-card.selected .select-btn {
    background: var(--gold);
    color: #000000;
    border-color: transparent;
}

/* ==========================================================================
   ADVANCED REMODEL: BALANCED HIGH-END LIST VIEW WORKSPACE
   ========================================================================== */
#carsGrid.list-view {
    display: flex;
    flex-direction: column;
    gap: 14px;
    max-width: 1000px;
    margin: 0 auto;
}

#carsGrid.list-view .car-card.list-view-card {
    flex-direction: row;
    align-items: center;
    padding: 12px 24px;
    height: 110px;
}

#carsGrid.list-view .list-view-card .card-img-wrap {
    width: 130px;
    min-width: 130px;
    height: 82px;
    border-radius: var(--radius-md);
    aspect-ratio: auto;
}

#carsGrid.list-view .list-view-card .card-body {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 0 0 0 12px;
    width: 100%;
    height: 100%;
}

#carsGrid.list-view .list-view-card .card-name {
    margin-bottom: 0;
    font-size: 1.2rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 60%;
}

#carsGrid.list-view .list-view-card .card-footer {
    width: auto;
    min-width: 140px;
}

#carsGrid.list-view .list-view-card .select-btn {
    padding: 10px 24px;
    font-size: 0.75rem;
}

/* Responsive Overrides Layer for List View on Small Screens */
@media (max-width: 640px) {
    #carsGrid.list-view .car-card.list-view-card {
        flex-direction: column;
        align-items: stretch;
        height: auto;
        padding: 16px;
        gap: 14px;
    }
    #carsGrid.list-view .list-view-card .card-img-wrap {
        width: 100%;
        height: auto;
        aspect-ratio: 16/10;
        border-radius: var(--radius-lg);
    }
    #carsGrid.list-view .list-view-card .card-body {
        flex-direction: column;
        align-items: stretch;
        padding: 0;
        gap: 12px;
    }
    #carsGrid.list-view .list-view-card .card-name {
        max-width: 100%;
        white-space: normal;
    }
    #carsGrid.list-view .list-view-card .card-footer {
        width: 100%;
    }
}

/* ==========================================================================
   SLIDERS, MODALS & REMAINING SITE OBJECTS
   ========================================================================== */
.empty { text-align: center; padding: 5rem 1rem; color: var(--text-muted); }

.cart-bar {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    background: rgba(17, 17, 21, 0.85);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-top: 1px solid var(--border-ui);
    padding: 14px 2rem;
    display: flex;
    align-items: center;
    gap: 16px;
    z-index: 200;
    transform: translateY(100%);
    transition: transform 0.4s var(--ease-fluid);
    box-shadow: 0 -10px 40px rgba(0,0,0,0.5);
}
.cart-bar.visible { transform: translateY(0); }

.cart-count {
    background: var(--gold);
    color: #000000;
    min-width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.8rem;
    box-shadow: 0 2px 8px var(--gold-glow);
}

.cart-names {
    flex: 1;
    font-size: 0.8rem;
    color: var(--text-secondary);
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-weight: 500;
}

.cart-action {
    padding: 10px 20px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
    transition: all 0.2s;
}

.cart-clear {
    border: 1px solid var(--border-ui);
    background: transparent;
    color: var(--text-secondary);
}
.cart-clear:hover { background: rgba(255,255,255,0.04); color: #fff; }

.cart-order {
    background: var(--gold);
    color: #000000;
}
.cart-order:hover { transform: scale(1.02); box-shadow: 0 4px 15px var(--gold-glow-intense); }

/* LIGHTBOX GLASS REDESIGN */
.lightbox {
    position: fixed; inset: 0;
    background: rgba(5, 5, 7, 0.94);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 500;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0; pointer-events: none;
    padding: 2rem;
    transition: opacity 0.3s var(--ease-fluid);
}
.lightbox.open { opacity: 1; pointer-events: all; }

.lb-close {
    position: absolute; top: 24px; right: 24px;
    background: var(--bg-layer);
    border: 1px solid var(--border-ui);
    color: var(--gold);
    width: 40px; height: 40px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; font-size: 16px;
    transition: all 0.2s;
}
.lb-close:hover { transform: scale(1.1); background: var(--bg-layer-light); }

.lb-main-img {
    max-width: 90%; max-height: 65vh;
    object-fit: contain;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-main);
    transform: scale(0.95);
    transition: transform 0.4s var(--ease-fluid);
}
.lightbox.open .lb-main-img { transform: scale(1); }

.lb-title {
    margin-top: 16px;
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: -0.3px;
}

.lb-thumbs {
    display: flex; gap: 10px;
    overflow-x: auto; max-width: 90%;
    margin-top: 20px; padding: 4px;
}
.lb-thumb {
    width: 70px; height: 50px;
    object-fit: cover; border-radius: var(--radius-sm);
    border: 2px solid transparent; cursor: pointer;
    opacity: 0.4; transition: all 0.2s;
}
.lb-thumb.active, .lb-thumb:hover { border-color: var(--gold); opacity: 1; transform: translateY(-2px); }

.lb-nav { display: flex; gap: 16px; margin-top: 20px; }
.lb-nav-btn {
    padding: 8px 24px; border-radius: 30px;
    border: 1px solid var(--border-ui);
    background: var(--bg-card); color: var(--text-secondary);
    cursor: pointer; font-size: 0.8rem; font-weight: 600;
    transition: all 0.2s;
}
.lb-nav-btn:hover { border-color: var(--gold); color: #fff; }

/* REUSABLE PREMIUM MODERN MODALS */
.modal-overlay {
    position: fixed; inset: 0;
    background: rgba(4,4,6,0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 600; display: flex;
    align-items: center; justify-content: center;
    opacity: 0; pointer-events: none; padding: 1.5rem;
    transition: opacity 0.3s;
}
.modal-overlay.open { opacity: 1; pointer-events: all; }

.modal-box {
    background: var(--bg-card);
    border: 1px solid var(--border-ui);
    border-radius: var(--radius-xl);
    padding: 2rem; max-width: 100%; width: 480px;
    box-shadow: var(--shadow-main);
    transform: translateY(20px);
    transition: transform 0.3s var(--ease-fluid);
}
.modal-overlay.open .modal-box { transform: translateY(0); }

.modal-box h3 { font-size: 1.3rem; margin-bottom: 14px; font-weight: 800; }

.order-list {
    background: var(--bg-deep);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 1rem; font-family: monospace;
    font-size: 0.8rem; color: var(--gold-light);
    white-space: pre-wrap; margin-bottom: 1.5rem;
    max-height: 220px; overflow-y: auto;
}

.modal-actions { display: flex; gap: 12px; justify-content: flex-end; }
.modal-btn {
    padding: 10px 22px; border-radius: 12px;
    font-size: 0.75rem; font-weight: 700; cursor: pointer; border: none;
    text-transform: uppercase; letter-spacing: 0.5px;
}
.modal-btn-gold { background: var(--gold); color: #000; }
.modal-btn-outline { background: transparent; border: 1px solid var(--border-ui); color: var(--text-secondary); }
.modal-btn-outline:hover { color: #fff; border-color: var(--border-bright); }

/* ==========================================================================
   ADMIN SLIDE-OUT PANEL CONTROL CMS
   ========================================================================== */
.admin-overlay {
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.6); z-index: 400;
    opacity: 0; pointer-events: none; backdrop-filter: blur(4px);
    transition: opacity 0.3s;
}
.admin-overlay.open { opacity: 1; pointer-events: all; }

.admin-panel {
    position: fixed; top: 0; right: -100%;
    width: 100%; max-width: 460px; height: 100%;
    background: var(--bg-card);
    border-left: 1px solid var(--border-ui);
    z-index: 450; transition: right 0.4s var(--ease-fluid);
    display: flex; flex-direction: column;
    box-shadow: var(--shadow-main);
}
.admin-panel.open { right: 0; }

.admin-head {
    padding: 1.5rem; border-bottom: 1px solid var(--border-subtle);
    display: flex; justify-content: space-between; align-items: center;
    background: var(--bg-layer);
}
.admin-head h2 { color: var(--gold); font-size: 1.1rem; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; }
.admin-head-btns { display: flex; gap: 8px; }

.icon-btn {
    width: 34px; height: 34px; border-radius: 50%;
    border: 1px solid var(--border-ui); background: transparent;
    color: var(--text-secondary); display: flex; align-items: center; justify-content: center;
    cursor: pointer; font-size: 14px; transition: all 0.2s;
}
.icon-btn:hover { border-color: var(--gold); color: #fff; }

.admin-tabs { display: flex; background: var(--bg-deep); padding: 4px; gap: 4px; }
.admin-tab {
    flex: 1; padding: 10px 4px; background: transparent; border: none;
    color: var(--text-muted); font-size: 0.7rem; font-weight: 700;
    cursor: pointer; text-transform: uppercase; letter-spacing: 0.5px;
    border-radius: 8px; transition: all 0.2s;
}
.admin-tab.active { color: var(--gold); background: var(--bg-layer); }

.admin-body { flex: 1; overflow-y: auto; padding: 1.5rem; }
.admin-section { display: none; }
.admin-section.active { display: block; }

.form-row { margin-bottom: 16px; }
.form-row label { font-size: 0.7rem; color: var(--gold-dim); margin-bottom: 6px; display: block; text-transform: uppercase; font-weight: 700; letter-spacing: 0.5px; }
.form-row input, .form-row textarea, .form-row select {
    width: 100%; background: var(--bg-layer); border: 1px solid var(--border-subtle);
    border-radius: 10px; padding: 10px 14px; color: var(--text-primary); font-size: 0.8rem;
    outline: none; transition: border-color 0.2s;
}
.form-row input:focus, .form-row select:focus { border-color: var(--border-bright); }

.admin-btn-full {
    width: 100%; padding: 12px; border-radius: 12px;
    font-weight: 700; cursor: pointer; margin-top: 8px; font-size: 0.75rem;
    text-transform: uppercase; letter-spacing: 0.5px; border: none; transition: all 0.2s;
}
.abf-gold { background: var(--gold); color: #000; }
.abf-gold:hover { background: var(--gold-light); }
.abf-outline { background: transparent; border: 1px solid var(--border-ui); color: var(--text-secondary); }
.abf-outline:hover { border-color: var(--border-bright); color: #fff; }
.abf-danger { background: #3a1414; border: 1px solid #632020; color: #ff9999; }
.abf-danger:hover { background: #551c1c; }

.admin-car-list { max-height: 300px; overflow-y: auto; padding-right: 4px; }
.admin-car-row {
    display: flex; align-items: center; gap: 12px; padding: 10px 14px;
    background: var(--bg-layer); border: 1px solid var(--border-subtle);
    border-radius: 10px; margin-bottom: 8px;
}
.acr-name { font-size: 0.8rem; font-weight: 600; color: var(--text-primary); flex: 1; }
.acr-edit { padding: 4px 12px; border-radius: 8px; border: 1px solid var(--border-ui); background: transparent; color: var(--gold); cursor: pointer; font-size: 0.7rem; font-weight: 600; }
.acr-edit:hover { background: var(--gold); color: #000; }

.media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(105px, 1fr)); gap: 10px; margin-top: 12px; }
.media-item { background: var(--bg-layer); border: 1px solid var(--border-subtle); border-radius: 10px; overflow: hidden; cursor: pointer; position: relative; }
.media-item img { width: 100%; height: 75px; object-fit: cover; }
.media-item .media-name { font-size: 0.6rem; padding: 6px; text-align: center; word-break: break-all; color: var(--text-secondary); }
.media-item .delete-media { position: absolute; top: 4px; right: 4px; background: rgba(0,0,0,0.8); border-radius: 50%; width: 22px; height: 22px; display: flex; align-items: center; justify-content: center; cursor: pointer; font-size: 10px; color: #ff6666; }

.upload-area { border: 2px dashed var(--border-ui); border-radius: 16px; padding: 24px; text-align: center; margin-bottom: 16px; cursor: pointer; background: var(--bg-deep); transition: border-color 0.2s; }
.upload-area:hover { border-color: var(--gold); }

/* SYSTEM AUTHORIZATION SCREEN */
.login-overlay {
    position: fixed; inset: 0; background: rgba(4,4,6,0.96); backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px); z-index: 700; display: flex; align-items: center; justify-content: center; opacity: 0; pointer-events: none; transition: opacity 0.3s;
}
.login-overlay.open { opacity: 1; pointer-events: all; }
.login-box { background: var(--bg-card); border: 1px solid var(--border-ui); border-radius: var(--radius-xl); padding: 2.5rem; width: 100%; max-width: 340px; box-shadow: var(--shadow-main); text-align: center; }
.login-box h3 { margin-bottom: 16px; font-weight: 800; letter-spacing: -0.5px; }
.login-box input { width: 100%; background: var(--bg-layer); border: 1px solid var(--border-subtle); border-radius: 10px; padding: 12px; margin-bottom: 10px; color: #fff; outline: none; }
.login-box input:focus { border-color: var(--border-bright); }
.login-btn { width: 100%; padding: 12px; border-radius: 12px; background: var(--gold); color: #000; font-weight: 700; cursor: pointer; border: none; text-transform: uppercase; letter-spacing: 0.5px; }

/* FEEDBACK TOASTS SYSTEM */
.toast {
    position: fixed; bottom: 85px; left: 50%; transform: translateX(-50%) translateY(10px); background: var(--bg-layer-light); border: 1px solid var(--border-bright); padding: 8px 24px; border-radius: 30px; color: var(--gold-light); font-size: 0.75rem; font-weight: 600; z-index: 800; opacity: 0; transition: all 0.3s var(--ease-fluid); pointer-events: none; box-shadow: var(--shadow-main);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* REORDERABLE INTERACTION MANAGEMENT */
.image-reorder-list { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; max-height: 260px; overflow-y: auto; padding: 4px; }
.reorder-item { display: flex; align-items: center; gap: 12px; background: var(--bg-layer); border: 1px solid var(--border-subtle); border-radius: 12px; padding: 8px; cursor: grab; }
.reorder-item:active { cursor: grabbing; }
.reorder-item.dragging { opacity: 0.3; border-style: dashed; }
.drag-handle { font-size: 16px; color: var(--text-muted); padding: 0 4px; }
.reorder-thumb { width: 55px; height: 40px; object-fit: cover; border-radius: 6px; }
.reorder-filename { flex: 1; font-size: 0.7rem; color: var(--text-secondary); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.main-star { background: transparent; border: none; color: var(--text-muted); font-size: 16px; cursor: pointer; padding: 4px; transition: transform 0.2s; }
.main-star.active-star { color: var(--gold); filter: drop-shadow(0 0 4px var(--gold)); transform: scale(1.1); }
.remove-img-btn { background: rgba(255,102,102,0.15); border: none; color: #ff6666; border-radius: 50%; width: 24px; height: 24px; cursor: pointer; font-size: 11px; display: flex; align-items: center; justify-content: center; transition: background 0.2s; }
.remove-img-btn:hover { background: rgba(255,102,102,0.3); }

/* MEDIUM AND LARGE DEVICES ADJUSTMENTS */
@media (min-width: 768px) {
    .site-header { padding: 5rem 2rem 3rem; }
    .toolbar { padding: 1.25rem 3rem; gap: 24px; }
    .cars-section { padding: 2.5rem 3rem 7rem; }
}
