/* ============================================================
   A-PLUS AUTOS — DARK LUXURY DESIGN SYSTEM
   ============================================================ */

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

:root {
    --primary: #1BADE4;
    --primary-dark: #0f8bb8;
    --primary-glow: rgba(27, 173, 228, 0.3);
    --primary-glow-strong: rgba(27, 173, 228, 0.5);
    --bg-dark: #0A0A0F;
    --bg-card: #111118;
    --bg-card-hover: #16161F;
    --bg-section: #0D0D14;
    --text-white: #FFFFFF;
    --text-muted: #8892A4;
    --border: rgba(27, 173, 228, 0.2);
    --border-subtle: rgba(255,255,255,0.06);
    --red-accent: #E41B1B;
    --red-glow: rgba(228, 27, 27, 0.3);
    --font-display: 'Bebas Neue', sans-serif;
    --font-body: 'Inter', sans-serif;
    --radius: 12px;
    --radius-sm: 8px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===================== RESET / BASE ===================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
    font-family: var(--font-body);
    background: var(--bg-dark);
    color: var(--text-white);
    line-height: 1.6;
    overflow-x: hidden;
}

a { color: var(--primary); text-decoration: none; transition: var(--transition); }
a:hover { color: #fff; }

img { max-width: 100%; height: auto; display: block; }

/* ===================== SCROLLBAR ===================== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-dark); }
::-webkit-scrollbar-thumb { background: var(--primary-dark); border-radius: 3px; }

/* ===================== ANNOUNCEMENT BAR ===================== */
.announcement-bar {
    background: var(--primary);
    color: #fff;
    text-align: center;
    padding: 10px 20px;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    position: relative;
    z-index: 1001;
}
.announcement-bar a { color: #fff; font-weight: 700; text-decoration: underline; }

/* ===================== NAVBAR ===================== */
.navbar-custom {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(10, 10, 15, 0.88);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--border);
    padding: 0.5rem 2rem;
    min-height: 72px;   /* min-height (not fixed) so the mobile menu expands inside the bar */
    transition: var(--transition);
}

.navbar-custom.scrolled {
    background: rgba(10, 10, 15, 0.97);
    box-shadow: 0 4px 30px rgba(27,173,228,0.08);
}

.nav-logo-text {
    font-family: var(--font-display);
    font-size: 1.6rem;
    letter-spacing: 0.05em;
    color: #fff;
    white-space: nowrap;
}
.nav-logo-text span { color: var(--primary); }

.navbar-nav .nav-link {
    color: rgba(255,255,255,0.8) !important;
    font-weight: 500;
    font-size: 0.9rem;
    letter-spacing: 0.04em;
    padding: 0.5rem 1rem !important;
    position: relative;
    transition: var(--transition);
}
.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px; left: 50%; right: 50%;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
}
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active { color: #fff !important; }
.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after { left: 10%; right: 10%; }

.btn-nav-cta {
    background: var(--primary) !important;
    color: #fff !important;
    border-radius: 6px !important;
    padding: 0.5rem 1.4rem !important;
    font-weight: 700 !important;
    font-size: 0.85rem !important;
    letter-spacing: 0.06em !important;
    text-transform: uppercase !important;
    transition: var(--transition) !important;
    box-shadow: 0 0 20px var(--primary-glow) !important;
    border: 1px solid var(--primary) !important;
}
.btn-nav-cta:hover {
    background: transparent !important;
    color: var(--primary) !important;
    box-shadow: 0 0 30px var(--primary-glow-strong) !important;
    transform: translateY(-1px) !important;
}

.navbar-toggler {
    border: 1px solid var(--border) !important;
    background: rgba(27,173,228,0.08) !important;
    border-radius: 10px !important;
    padding: 0.45rem 0.6rem !important;
    box-shadow: none !important;
}
.navbar-toggler:focus { box-shadow: 0 0 0 2px rgba(27,173,228,0.35) !important; }
.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2827%2C173%2C228%2C1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

/* ---- Mobile nav menu: proper dropdown panel instead of floating links ---- */
@media (max-width: 991.98px) {
    .navbar-custom .navbar-collapse {
        background: rgba(13, 13, 20, 0.98);
        border: 1px solid var(--border);
        border-radius: 14px;
        margin: 0.75rem 0 0.5rem;
        padding: 0.75rem;
        box-shadow: 0 18px 50px rgba(0,0,0,0.55);
    }
    .navbar-custom .navbar-nav {
        gap: 0 !important;
        align-items: stretch !important;
        margin-right: 0 !important;
    }
    .navbar-custom .navbar-nav .nav-link {
        padding: 0.85rem 1rem !important;
        font-size: 1rem;
        border-radius: 8px;
        border-bottom: 1px solid rgba(255,255,255,0.05);
    }
    .navbar-custom .navbar-nav .nav-link:last-child { border-bottom: none; }
    .navbar-custom .navbar-nav .nav-link::after { display: none; }  /* underline animation is a desktop thing */
    .navbar-custom .navbar-nav .nav-link.active {
        background: rgba(27,173,228,0.12);
        color: var(--primary) !important;
    }
    .navbar-custom .btn-nav-cta {
        display: block;
        text-align: center;
        margin-top: 0.75rem;
        padding: 0.8rem 1rem !important;
    }
}

/* ===================== HERO SECTION ===================== */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: linear-gradient(135deg, #0A0A0F 0%, #0D1520 50%, #0A0A0F 100%);
}

.hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 70% 50%, rgba(27,173,228,0.08) 0%, transparent 60%),
        radial-gradient(ellipse 60% 80% at 20% 80%, rgba(27,173,228,0.05) 0%, transparent 50%);
}

.hero-grid-overlay {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(27,173,228,0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(27,173,228,0.04) 1px, transparent 1px);
    background-size: 80px 80px;
    mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 100%);
    -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 100%);
}

.hero-content { position: relative; z-index: 2; }

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(27,173,228,0.1);
    border: 1px solid var(--border);
    color: var(--primary);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    padding: 6px 16px;
    border-radius: 100px;
    margin-bottom: 1.5rem;
    animation: fadeInDown 0.8s ease both;
}
.hero-eyebrow::before {
    content: '';
    width: 6px; height: 6px;
    background: var(--primary);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(3rem, 8vw, 7rem);
    line-height: 0.95;
    letter-spacing: 0.03em;
    color: #fff;
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.9s ease 0.1s both;
}
.hero-title .accent { color: var(--primary); display: block; }

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 480px;
    margin-bottom: 2.5rem;
    line-height: 1.7;
    animation: fadeInUp 0.9s ease 0.2s both;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    animation: fadeInUp 0.9s ease 0.3s both;
}

.hero-indicators {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 1.5rem;
    z-index: 2;
    animation: fadeIn 1s ease 0.5s both;
}

.hero-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
}
.hero-indicator.active { color: var(--primary); }
.hero-indicator-line { width: 30px; height: 1px; background: var(--text-muted); }
.hero-indicator.active .hero-indicator-line { background: var(--primary); width: 50px; }

/* ---- Real-photo 3D hero car ---- */
.hero-stage {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 620px;
    perspective: 1200px;            /* gives the tilt real depth */
    will-change: transform;
}

.hero-car-3d {
    position: relative;
    transform-style: preserve-3d;
    /* idle float; JS overrides transform on mouse move and resets to this */
    animation: floatCar 7s ease-in-out infinite;
    transition: transform 0.25s cubic-bezier(.2,.8,.2,1);
    will-change: transform;
}
@keyframes floatCar {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-14px); }
}
/* While the cursor is steering: kill the float AND the transition so the tilt
   tracks the mouse 1:1 (the 0.25s transition stays for the smooth reset on leave). */
.hero-car-3d.is-steering { animation: none; transition: none; }

.hero-car-photo {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 18px;
    object-fit: cover;
    box-shadow: 0 30px 70px rgba(0,0,0,0.6), 0 0 60px rgba(27,173,228,0.18);
    transform: translateZ(40px);   /* lifts the car above the gloss/shadow layers */
}
.hero-car-photo.is-fallback {
    max-width: 520px;
    box-shadow: none;
    filter: drop-shadow(0 0 40px rgba(27,173,228,0.35));
}

/* Transparent brand logo in the hero: no photo-card frame, glow instead */
.hero-car-photo.is-logo {
    max-width: 480px;
    margin: 0 auto;
    border-radius: 0;
    box-shadow: none;
    filter: drop-shadow(0 25px 55px rgba(0,0,0,0.55)) drop-shadow(0 0 45px rgba(27,173,228,0.30));
}
/* The gloss highlight is designed for photo cards — disable it over the logo */
.hero-car-3d:has(.is-logo) .hero-car-gloss { display: none; }

/* Moving gloss/reflection that tracks the cursor across the paint */
.hero-car-gloss {
    position: absolute;
    inset: 0;
    border-radius: 18px;
    background: radial-gradient(circle at var(--gx, 50%) var(--gy, 0%),
                rgba(255,255,255,0.28) 0%, rgba(255,255,255,0.06) 18%, transparent 45%);
    mix-blend-mode: screen;
    opacity: 0;
    transition: opacity 0.3s ease;
    transform: translateZ(60px);
    pointer-events: none;
}
.hero-stage:hover .hero-car-gloss { opacity: 1; }

/* Soft ground shadow / glow under the car */
.hero-car-shadow {
    position: absolute;
    bottom: -14%; left: 8%; right: 8%;
    height: 50%;
    background: radial-gradient(ellipse at center, rgba(27,173,228,0.28) 0%, transparent 70%);
    filter: blur(26px);
    transform: translateZ(0);
    z-index: -1;
}

/* Mobile hero logo — fills the space where the 3D car is hidden */
.hero-mobile-logo {
    display: flex;
    justify-content: center;
    padding: 1.5rem 0 0.5rem;
}
.hero-mobile-logo img {
    height: clamp(120px, 34vw, 170px);
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 0 35px rgba(27,173,228,0.35));
    animation: floatCar 7s ease-in-out infinite;
}
@media (prefers-reduced-motion: reduce) {
    .hero-mobile-logo img { animation: none; }
}

/* Cursor-following spotlight over the whole hero */
.hero-spotlight {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: radial-gradient(600px circle at var(--mx, 70%) var(--my, 40%),
                rgba(27,173,228,0.10) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.4s ease;
}
.hero-section:hover .hero-spotlight { opacity: 1; }

/* Scroll cue */
.hero-scroll-cue {
    position: absolute;
    bottom: 2rem; left: 50%;
    transform: translateX(-50%);
    flex-direction: column;
    align-items: center;
    gap: 10px;
    z-index: 2;
    color: var(--text-muted);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.25em;
    animation: fadeIn 1s ease 0.6s both;
}
.hero-scroll-track {
    width: 22px; height: 36px;
    border: 2px solid var(--border);
    border-radius: 12px;
    display: flex;
    justify-content: center;
    padding-top: 6px;
}
.hero-scroll-dot {
    width: 4px; height: 8px;
    background: var(--primary);
    border-radius: 2px;
    animation: scrollDot 1.8s ease-in-out infinite;
}
@keyframes scrollDot {
    0% { transform: translateY(0); opacity: 1; }
    70% { transform: translateY(12px); opacity: 0; }
    100% { transform: translateY(0); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
    .hero-car-3d { animation: none; }
    .hero-scroll-dot { animation: none; }
}

/* ===================== BUTTONS ===================== */
.btn-primary-custom {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--primary);
    color: #fff;
    border: 2px solid var(--primary);
    border-radius: var(--radius-sm);
    padding: 0.85rem 2rem;
    font-weight: 700;
    font-size: 0.875rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}
.btn-primary-custom:hover {
    background: var(--primary-dark);
    box-shadow: 0 0 30px var(--primary-glow-strong), 0 8px 25px rgba(0,0,0,0.4);
    transform: translateY(-2px);
    color: #fff;
}

.btn-outline-custom {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: var(--radius-sm);
    padding: 0.85rem 2rem;
    font-weight: 600;
    font-size: 0.875rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    transition: var(--transition);
}
.btn-outline-custom:hover {
    border-color: #fff;
    background: rgba(255,255,255,0.08);
    color: #fff;
    transform: translateY(-2px);
}

.btn-cyan {
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    padding: 0.75rem 1.5rem;
    font-weight: 700;
    font-size: 0.875rem;
    letter-spacing: 0.04em;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 0 15px var(--primary-glow);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.btn-cyan:hover {
    background: var(--primary-dark);
    box-shadow: 0 0 25px var(--primary-glow-strong);
    transform: translateY(-1px);
    color: #fff;
}

.btn-danger-custom {
    background: var(--red-accent);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    padding: 0.75rem 1.5rem;
    font-weight: 700;
    font-size: 0.875rem;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.btn-danger-custom:hover {
    background: #c01515;
    box-shadow: 0 0 20px var(--red-glow);
    color: #fff;
    transform: translateY(-1px);
}

.btn-outline-cyan {
    background: transparent;
    color: var(--primary);
    border: 1.5px solid var(--primary);
    border-radius: var(--radius-sm);
    padding: 0.65rem 1.2rem;
    font-weight: 600;
    font-size: 0.82rem;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.btn-outline-cyan:hover {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 0 15px var(--primary-glow);
}

/* ===================== SECTION STYLES ===================== */
.section-heading {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    letter-spacing: 0.04em;
    color: #fff;
    line-height: 1;
}
.section-heading .cyan { color: var(--primary); }

.section-label {
    display: inline-block;
    color: var(--primary);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}

.section-divider {
    width: 60px; height: 3px;
    background: linear-gradient(90deg, var(--primary), transparent);
    margin: 1rem 0 2rem;
}

/* ===================== SEARCH BAR SECTION ===================== */
.search-section {
    background: var(--bg-section);
    padding: 3rem 0;
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
}

.search-form-dark {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1rem;
    align-items: end;
}

.form-group-dark label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.form-control-dark, .form-select-dark {
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    color: #fff;
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    width: 100%;
    transition: var(--transition);
    font-family: var(--font-body);
    -webkit-appearance: none;
}
.form-control-dark:focus, .form-select-dark:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(27,173,228,0.06);
    box-shadow: 0 0 0 3px var(--primary-glow);
}
.form-select-dark option { background: #111118; color: #fff; }

/* Bootstrap form override for dark theme */
.form-control, .form-select {
    background-color: rgba(255,255,255,0.04) !important;
    border: 1px solid var(--border-subtle) !important;
    color: #fff !important;
    border-radius: var(--radius-sm) !important;
}
.form-control:focus, .form-select:focus {
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 3px var(--primary-glow) !important;
    background-color: rgba(27,173,228,0.06) !important;
    color: #fff !important;
}
.form-control::placeholder { color: var(--text-muted) !important; }
.form-select option { background: #111118; color: #fff; }
.form-label { color: var(--text-muted) !important; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
.form-check-input { background-color: rgba(255,255,255,0.1) !important; border-color: var(--border-subtle) !important; }
.form-check-input:checked { background-color: var(--primary) !important; border-color: var(--primary) !important; }
.form-check-label { color: var(--text-muted); }
textarea.form-control { min-height: 100px; resize: vertical; }

/* ===================== CAR CARDS (GRID) ===================== */
.car-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
}
.car-card:hover {
    transform: translateY(-8px);
    border-color: var(--border);
    box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 0 40px var(--primary-glow);
}

/* Diagonal ribbon badge */
.car-badge-wrap {
    position: absolute;
    top: 0; right: 0;
    width: 80px; height: 80px;
    overflow: hidden;
    z-index: 3;
}
.car-badge {
    position: absolute;
    top: 18px; right: -28px;
    background: var(--primary);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 4px 36px;
    transform: rotate(35deg);
    box-shadow: 0 2px 10px rgba(27,173,228,0.4);
    white-space: nowrap;
}
.car-badge.used { background: #2a2a3a; box-shadow: none; }

.car-image-wrap {
    position: relative;
    width: 100%;
    padding-top: 62%;
    overflow: hidden;
    background: #0D0D14;
}
.car-image-wrap img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.car-card:hover .car-image-wrap img { transform: scale(1.04); }

.car-image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10,10,15,0.6) 0%, transparent 50%);
}

.car-img-dots {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 4;
}
.car-img-dot {
    width: 6px; height: 6px;
    background: rgba(255,255,255,0.4);
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
}
.car-img-dot.active { background: var(--primary); width: 18px; border-radius: 3px; }

.car-body {
    padding: 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.car-title {
    font-family: var(--font-display);
    font-size: 1.35rem;
    letter-spacing: 0.03em;
    color: #fff;
    line-height: 1.1;
    margin-bottom: 0.2rem;
}
.car-trim { color: var(--text-muted); font-size: 0.82rem; margin-bottom: 0.85rem; }

.car-price-row {
    display: flex;
    align-items: baseline;
    gap: 1rem;
    margin-bottom: 0.85rem;
}
.car-price {
    font-size: 1.6rem;
    font-weight: 800;
    color: #fff;
    line-height: 1;
}
.car-price .dollar { font-size: 1rem; vertical-align: super; color: var(--primary); }
.car-mileage { font-size: 0.85rem; color: var(--text-muted); font-weight: 500; }

.car-specs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.4rem;
    margin-bottom: 1rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border-subtle);
}
.car-spec-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    color: var(--text-muted);
}
.car-spec-item i { color: var(--primary); font-size: 0.7rem; width: 12px; }

.car-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    margin-top: auto;
    padding-top: 0.85rem;
    border-top: 1px solid var(--border-subtle);
}
.btn-card-call {
    display: flex; align-items: center; justify-content: center; gap: 6px;
    background: var(--primary); color: #fff; border: none;
    border-radius: var(--radius-sm); padding: 0.6rem;
    font-size: 0.78rem; font-weight: 600; transition: var(--transition);
}
.btn-card-call:hover { background: var(--primary-dark); color: #fff; box-shadow: 0 0 15px var(--primary-glow); }
.btn-card-email {
    display: flex; align-items: center; justify-content: center; gap: 6px;
    background: transparent; color: var(--text-muted);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm); padding: 0.6rem;
    font-size: 0.78rem; font-weight: 600; transition: var(--transition);
}
.btn-card-email:hover { border-color: var(--primary); color: var(--primary); }

/* ===================== STATS BAR ===================== */
.stats-section {
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 3.5rem 0;
}
.stat-item { text-align: center; }
.stat-number {
    font-family: var(--font-display);
    font-size: 3rem;
    color: var(--primary);
    line-height: 1;
    letter-spacing: 0.02em;
    display: block;
}
.stat-label {
    font-size: 0.78rem;
    color: var(--text-muted);
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-top: 0.4rem;
}
.stat-divider { width: 1px; height: 60px; background: var(--border); margin: auto; }

/* ===================== PAGE HERO ===================== */
.page-hero {
    background: linear-gradient(135deg, #0D0D14 0%, #111118 100%);
    border-bottom: 1px solid var(--border);
    padding: 4rem 0 3rem;
    position: relative;
    overflow: hidden;
}
.page-hero::before {
    content: '';
    position: absolute;
    right: 0; top: 0; bottom: 0;
    width: 40%;
    background: radial-gradient(ellipse at right center, rgba(27,173,228,0.08) 0%, transparent 60%);
}
.page-hero-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3.5rem);
    letter-spacing: 0.04em;
    color: #fff;
    line-height: 1;
    margin-bottom: 0.5rem;
    position: relative;
}
.page-hero-sub { color: var(--text-muted); font-size: 1rem; position: relative; }

.breadcrumb { background: none !important; padding: 0 !important; margin: 0 !important; }
.breadcrumb-item { font-size: 0.82rem; color: var(--text-muted); }
.breadcrumb-item a { color: var(--primary); }
.breadcrumb-item.active { color: var(--text-muted); }
.breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,0.2) !important; }

/* ===================== INVENTORY CONTROLS ===================== */
.inventory-controls {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius);
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}
.results-count { font-size: 0.9rem; color: var(--text-muted); white-space: nowrap; }
.results-count strong { color: #fff; }

.filter-panel {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    animation: slideDown 0.25s ease;
}
@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===================== INVENTORY LIST CARD ===================== */
.inv-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 1.5rem;
    display: flex;
    transition: var(--transition);
    position: relative;
}
.inv-card:hover {
    border-color: var(--border);
    box-shadow: 0 8px 30px rgba(0,0,0,0.4), 0 0 20px var(--primary-glow);
    transform: translateY(-3px);
}

.inv-card-badge {
    position: absolute;
    top: 12px; left: 12px;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    z-index: 5;
}
.inv-card-badge.new { background: var(--primary); color: #fff; }
.inv-card-badge.used { background: #2a2a3a; color: var(--text-muted); }

.inv-card-image {
    width: 300px;
    min-width: 300px;
    position: relative;
    overflow: hidden;
    background: #0D0D14;
}
.inv-card-image img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.inv-card:hover .inv-card-image img { transform: scale(1.04); }

.inv-card-body { flex: 1; padding: 1.5rem; display: flex; flex-direction: column; }
.inv-card-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    letter-spacing: 0.03em;
    color: #fff;
    margin-bottom: 0.2rem;
    line-height: 1.1;
}
.inv-card-trim { color: var(--text-muted); font-size: 0.85rem; margin-bottom: 0.85rem; }
.inv-card-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    margin-bottom: 0.85rem;
}
.inv-spec { font-size: 0.82rem; color: var(--text-muted); display: flex; align-items: center; gap: 5px; }
.inv-spec i { color: var(--primary); }
.inv-card-stock { font-size: 0.75rem; color: var(--text-muted); margin-top: auto; }

.inv-card-right {
    width: 200px;
    min-width: 200px;
    padding: 1.5rem;
    border-left: 1px solid var(--border-subtle);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 0.75rem;
}
.inv-price {
    font-size: 1.9rem;
    font-weight: 800;
    color: #fff;
    line-height: 1;
}
.inv-price .dollar { color: var(--primary); font-size: 1.2rem; vertical-align: super; }
.inv-mileage { font-size: 0.85rem; color: var(--text-muted); }

/* ===================== CAR DETAILS ===================== */
.gallery-main {
    border-radius: var(--radius);
    overflow: hidden;
    background: #0D0D14;
    position: relative;
    aspect-ratio: 16/9;
    cursor: pointer;
}
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-main-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    font-size: 2rem;
    color: rgba(255,255,255,0);
}
.gallery-main:hover .gallery-main-overlay { background: rgba(0,0,0,0.25); color: rgba(255,255,255,0.8); }

.gallery-thumbs { display: flex; gap: 0.5rem; margin-top: 0.75rem; overflow-x: auto; padding-bottom: 0.25rem; }
.gallery-thumbs::-webkit-scrollbar { height: 3px; }
.gallery-thumb {
    width: 80px; min-width: 80px; height: 56px;
    border-radius: var(--radius-sm); overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
    opacity: 0.55;
}
.gallery-thumb:hover, .gallery-thumb.active {
    border-color: var(--primary); opacity: 1;
    box-shadow: 0 0 12px var(--primary-glow);
}
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }

.price-panel {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    position: sticky;
    top: 90px;
}
.detail-price {
    font-size: 2.5rem;
    font-weight: 800;
    color: #fff;
    line-height: 1;
    margin-bottom: 0.25rem;
}
.detail-price .dollar { color: var(--primary); font-size: 1.5rem; vertical-align: super; }
.detail-mileage { font-size: 0.95rem; color: var(--text-muted); margin-bottom: 1.25rem; }

.key-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border-subtle);
    border-radius: 6px;
    padding: 0.5rem 0.85rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
}
.key-badge.clean { border-color: rgba(27,228,100,0.3); color: #1be464; background: rgba(27,228,100,0.05); }
.key-badge.accident { border-color: rgba(228,27,27,0.3); color: var(--red-accent); background: rgba(228,27,27,0.05); }

/* ===================== SPECS TABLE ===================== */
.specs-table { width: 100%; border-collapse: collapse; }
.specs-table tr { border-bottom: 1px solid var(--border-subtle); }
.specs-table tr:last-child { border-bottom: none; }
.specs-table td { padding: 0.85rem 1rem; font-size: 0.9rem; }
.specs-table td:first-child {
    color: var(--text-muted); font-weight: 600;
    font-size: 0.78rem; letter-spacing: 0.05em;
    text-transform: uppercase; width: 40%;
}
.specs-table td:last-child { color: #fff; }

/* ===================== TIMELINE ===================== */
.timeline { position: relative; padding-left: 2rem; }
.timeline::before {
    content: '';
    position: absolute;
    left: 8px; top: 0; bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--primary), rgba(27,173,228,0.1));
}
.timeline-item { position: relative; margin-bottom: 1.75rem; }
.timeline-dot {
    position: absolute;
    left: -1.6rem; top: 0.35rem;
    width: 16px; height: 16px;
    background: var(--primary);
    border-radius: 50%;
    border: 3px solid var(--bg-dark);
    box-shadow: 0 0 10px var(--primary-glow);
    z-index: 1;
}
.timeline-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    padding: 1.1rem 1.25rem;
    transition: var(--transition);
}
.timeline-card:hover { border-color: var(--border); box-shadow: 0 4px 20px rgba(0,0,0,0.3); }
.timeline-event-type { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--primary); margin-bottom: 0.2rem; }
.timeline-date { font-size: 0.78rem; color: var(--text-muted); margin-bottom: 0.35rem; }
.timeline-desc { font-size: 0.88rem; color: #fff; }
.timeline-provider { font-size: 0.78rem; color: var(--text-muted); margin-top: 0.2rem; }
.timeline-mileage { font-size: 0.78rem; color: var(--text-muted); margin-top: 0.2rem; }

/* ===================== FOOTER ===================== */
.footer {
    background: #080810;
    border-top: 1px solid var(--border);
    padding: 4rem 0 2rem;
}
.footer-logo { font-family: var(--font-display); font-size: 1.8rem; letter-spacing: 0.05em; color: #fff; margin-bottom: 1rem; }
.footer-logo span { color: var(--primary); }
.footer-desc { color: var(--text-muted); font-size: 0.9rem; line-height: 1.7; max-width: 300px; }
.footer-heading { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; color: var(--primary); margin-bottom: 1.25rem; }
.footer-links { list-style: none; padding: 0; }
.footer-links li { margin-bottom: 0.6rem; }
.footer-links a { color: var(--text-muted); font-size: 0.88rem; transition: var(--transition); display: inline-block; }
.footer-links a:hover { color: var(--primary); transform: translateX(4px); }
.footer-contact-item { display: flex; align-items: flex-start; gap: 10px; color: var(--text-muted); font-size: 0.88rem; margin-bottom: 0.75rem; line-height: 1.5; }
.footer-contact-item i { color: var(--primary); margin-top: 3px; min-width: 16px; }
.footer-contact-item a { color: var(--text-muted); }
.footer-contact-item a:hover { color: var(--primary); }
.footer-bottom {
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-subtle);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    color: var(--text-muted);
    font-size: 0.82rem;
}

/* ===================== ADMIN LAYOUT ===================== */
.admin-wrapper { display: flex; min-height: 100vh; }
.admin-sidebar {
    width: 260px; min-width: 260px;
    background: #0D0D14;
    border-right: 1px solid var(--border);
    display: flex; flex-direction: column;
    position: fixed; top: 0; left: 0; bottom: 0;
    z-index: 100; overflow-y: auto;
}
.sidebar-brand {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border);
    font-family: var(--font-display);
    font-size: 1.3rem;
    letter-spacing: 0.06em;
    color: #fff;
}
.sidebar-brand span { color: var(--primary); }
.sidebar-brand small { display: block; font-family: var(--font-body); font-size: 0.68rem; color: var(--text-muted); letter-spacing: 0.08em; text-transform: uppercase; margin-top: 0.15rem; }
.sidebar-nav { padding: 0.75rem 0; flex: 1; }
.sidebar-section-label { font-size: 0.62rem; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; color: var(--text-muted); padding: 0.75rem 1.5rem 0.35rem; }
.sidebar-link {
    display: flex; align-items: center; gap: 12px;
    padding: 0.7rem 1.5rem;
    color: rgba(255,255,255,0.6);
    font-size: 0.875rem; font-weight: 500;
    transition: var(--transition);
    border-left: 3px solid transparent;
}
.sidebar-link i { width: 18px; text-align: center; }
.sidebar-link:hover { color: #fff; background: rgba(27,173,228,0.06); border-left-color: rgba(27,173,228,0.4); }
.sidebar-link.active { color: var(--primary); background: rgba(27,173,228,0.1); border-left-color: var(--primary); font-weight: 600; }
/* min-width:0 is load-bearing: without it the wide vehicles table forces this
   flex child (and the whole page) wider than the viewport when the window
   shrinks, instead of scrolling inside its own wrapper. */
.admin-main { flex: 1; min-width: 0; margin-left: 260px; display: flex; flex-direction: column; min-height: 100vh; }
.admin-topbar {
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-subtle);
    padding: 1rem 2rem;
    display: flex; align-items: center; justify-content: space-between;
    position: sticky; top: 0; z-index: 50;
}
.admin-topbar-title { font-family: var(--font-display); font-size: 1.4rem; letter-spacing: 0.04em; color: #fff; }
.admin-content { padding: 2rem; flex: 1; }

/* Mobile hamburger for the admin sidebar (hidden on desktop) */
.admin-menu-toggle {
    display: none;
    background: rgba(27,173,228,0.1);
    border: 1px solid var(--border);
    color: var(--primary);
    width: 42px; height: 42px;
    border-radius: 10px;
    font-size: 1.1rem;
    cursor: pointer;
    align-items: center; justify-content: center;
    flex: 0 0 auto;
}
.admin-topbar-left { display: flex; align-items: center; gap: 0.85rem; min-width: 0; }
.admin-sidebar-backdrop {
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.55);
    z-index: 99;
    opacity: 0; visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
.admin-sidebar-backdrop.show { opacity: 1; visibility: visible; }

/* ===================== IMAGE REORDER (admin) ===================== */
.sortable-images .image-preview-item { touch-action: none; }   /* lets SortableJS own touch drags */
.img-drag-handle {
    cursor: grab;
    color: var(--primary);
    font-size: 0.8rem;
    padding: 4px 6px;             /* comfortable touch target */
    display: inline-flex;
    align-items: center;
}
.img-drag-handle:active { cursor: grabbing; }
.img-ghost { opacity: 0.35; outline: 2px dashed var(--primary); }
.img-compress-badge {
    position: absolute;
    top: 4px; right: 4px;
    background: rgba(0,0,0,0.65);
    color: #fff;
    font-size: 0.62rem;
    padding: 1px 6px;
    border-radius: 3px;
}
.image-preview-item.is-cover { border-color: var(--primary); }
.image-preview-item.is-cover::after {
    content: 'COVER';
    position: absolute;
    bottom: 4px; left: 4px;
    background: var(--primary);
    color: #fff;
    font-size: 0.6rem;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 3px;
}

/* ===================== BRAND LOGO ===================== */
.brand-logo { display: block; height: 60px; width: auto; object-fit: contain; }
.brand-logo-footer { height: 74px; margin-bottom: 0.5rem; }
.brand-logo-sidebar { height: 58px; margin: 0 auto 0.4rem; }
.brand-logo-login { height: 88px; margin: 0 auto 0.75rem; }

.admin-stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius);
    padding: 1.5rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}
.admin-stat-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--primary); opacity: 0; transition: var(--transition); }
.admin-stat-card:hover { border-color: var(--border); transform: translateY(-2px); }
.admin-stat-card:hover::before { opacity: 1; }
.admin-stat-icon { width: 46px; height: 46px; background: rgba(27,173,228,0.1); border-radius: 10px; display: flex; align-items: center; justify-content: center; color: var(--primary); font-size: 1.2rem; margin-bottom: 1rem; }
.admin-stat-number { font-family: var(--font-display); font-size: 2.2rem; color: #fff; line-height: 1; margin-bottom: 0.2rem; }
.admin-stat-label { font-size: 0.78rem; color: var(--text-muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; }

.table-card { background: var(--bg-card); border: 1px solid var(--border-subtle); border-radius: var(--radius); overflow: hidden; max-width: 100%; }
.table-card-header { padding: 1.25rem 1.5rem; border-bottom: 1px solid var(--border-subtle); display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.table-card-title { font-family: var(--font-display); font-size: 1.2rem; letter-spacing: 0.03em; color: #fff; }

.admin-table { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
.admin-table thead th { background: rgba(255,255,255,0.02); padding: 0.75rem 1rem; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); border-bottom: 1px solid var(--border-subtle); white-space: nowrap; }
.admin-table tbody tr { border-bottom: 1px solid rgba(255,255,255,0.04); transition: var(--transition); }
.admin-table tbody tr:hover { background: rgba(255,255,255,0.02); }
.admin-table td { padding: 0.85rem 1rem; color: var(--text-white); vertical-align: middle; }

/* Badges */
.badge-available { color: #1be464; background: rgba(27,228,100,0.1); border: 1px solid rgba(27,228,100,0.2); border-radius: 100px; padding: 2px 10px; font-size: 0.7rem; font-weight: 600; white-space: nowrap; }
.badge-unavailable { color: var(--text-muted); background: rgba(255,255,255,0.04); border: 1px solid var(--border-subtle); border-radius: 100px; padding: 2px 10px; font-size: 0.7rem; font-weight: 600; white-space: nowrap; }
.badge-featured { color: var(--primary); background: rgba(27,173,228,0.1); border: 1px solid var(--border); border-radius: 100px; padding: 2px 10px; font-size: 0.7rem; font-weight: 600; white-space: nowrap; }
.badge-new { color: var(--primary); background: rgba(27,173,228,0.1); border: 1px solid var(--border); border-radius: 100px; padding: 2px 10px; font-size: 0.7rem; font-weight: 600; }
.badge-used { color: var(--text-muted); background: rgba(255,255,255,0.05); border: 1px solid var(--border-subtle); border-radius: 100px; padding: 2px 10px; font-size: 0.7rem; font-weight: 600; }

/* Admin forms */
.form-card { background: var(--bg-card); border: 1px solid var(--border-subtle); border-radius: var(--radius); padding: 2rem; margin-bottom: 1.5rem; }
.form-card-title { font-family: var(--font-display); font-size: 1.1rem; letter-spacing: 0.04em; color: var(--primary); margin-bottom: 1.5rem; padding-bottom: 0.75rem; border-bottom: 1px solid var(--border-subtle); display: flex; align-items: center; gap: 8px; }

.upload-zone {
    border: 2px dashed var(--border);
    border-radius: var(--radius);
    padding: 2.5rem;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    background: rgba(27,173,228,0.02);
}
.upload-zone:hover { border-color: var(--primary); background: rgba(27,173,228,0.05); }
.upload-zone i { font-size: 2rem; color: var(--text-muted); display: block; margin-bottom: 0.75rem; }
.upload-zone p { color: var(--text-muted); font-size: 0.88rem; margin: 0; }
.upload-zone span { color: var(--primary); font-weight: 600; }

.image-preview-grid { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1rem; }
.image-preview-item { position: relative; border-radius: var(--radius-sm); overflow: hidden; width: 120px; height: 90px; border: 2px solid var(--border-subtle); transition: var(--transition); }
.image-preview-item.primary { border-color: var(--primary); box-shadow: 0 0 12px var(--primary-glow); }
.image-preview-item img { width: 100%; height: 100%; object-fit: cover; }
.image-preview-controls { position: absolute; inset: 0; background: rgba(0,0,0,0.6); display: flex; align-items: center; justify-content: center; gap: 6px; opacity: 0; transition: var(--transition); }
.image-preview-item:hover .image-preview-controls { opacity: 1; }

.history-row { background: rgba(255,255,255,0.02); border: 1px solid var(--border-subtle); border-radius: var(--radius-sm); padding: 1rem; margin-bottom: 0.75rem; }

/* Login */
.admin-login-page { min-height: 100vh; background: var(--bg-dark); display: flex; align-items: center; justify-content: center; }
.login-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 2.5rem; width: 100%; max-width: 420px; box-shadow: 0 30px 80px rgba(0,0,0,0.5); }
.login-logo { font-family: var(--font-display); font-size: 1.8rem; letter-spacing: 0.05em; color: #fff; text-align: center; margin-bottom: 0.25rem; }
.login-logo span { color: var(--primary); }
.login-subtitle { text-align: center; color: var(--text-muted); font-size: 0.85rem; margin-bottom: 2rem; }

/* ===================== ANIMATIONS ===================== */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(25px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeInDown { from { opacity: 0; transform: translateY(-15px); } to { opacity: 1; transform: translateY(0); } }
@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.6; transform: scale(0.85); } }
@keyframes glowPulse { 0%, 100% { box-shadow: 0 0 15px var(--primary-glow); } 50% { box-shadow: 0 0 35px var(--primary-glow-strong); } }

.fade-in-up { opacity: 0; transform: translateY(30px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-in-up.visible { opacity: 1; transform: translateY(0); }
.glow-pulse { animation: glowPulse 2.5s ease-in-out infinite; }

/* ===================== PAGINATION ===================== */
.pagination { gap: 0.25rem; }
.page-link { background: var(--bg-card) !important; border-color: var(--border-subtle) !important; color: var(--text-muted) !important; border-radius: var(--radius-sm) !important; padding: 0.5rem 0.85rem; transition: var(--transition); }
.page-link:hover { border-color: var(--primary) !important; color: var(--primary) !important; background: rgba(27,173,228,0.06) !important; }
.page-item.active .page-link { background: var(--primary) !important; border-color: var(--primary) !important; color: #fff !important; box-shadow: 0 0 15px var(--primary-glow); }

/* Validation */
.text-danger { color: #ff6b6b !important; font-size: 0.78rem; }
.field-validation-error { color: #ff6b6b; font-size: 0.78rem; }
.input-validation-error { border-color: var(--red-accent) !important; }

/* Alert overrides */
.alert { border-radius: var(--radius-sm) !important; }
.alert-success { background: rgba(27,228,100,0.08) !important; border-color: rgba(27,228,100,0.25) !important; color: #1be464 !important; }
.alert-danger { background: rgba(228,27,27,0.08) !important; border-color: rgba(228,27,27,0.25) !important; color: #ff6b6b !important; }

/* Misc */
.text-primary-custom { color: var(--primary) !important; }
.text-muted-custom { color: var(--text-muted) !important; }
.section-pad { padding: 5rem 0; }
.section-pad-sm { padding: 3rem 0; }
hr { border-color: var(--border-subtle) !important; opacity: 1 !important; }

/* ===================== RESPONSIVE ===================== */
@media (max-width: 991px) {
    .inv-card { flex-direction: column; }
    .inv-card-image { width: 100%; min-width: unset; height: 200px; }
    .inv-card-right { width: 100%; min-width: unset; border-left: none; border-top: 1px solid var(--border-subtle); padding: 1rem 1.5rem; flex-direction: row; justify-content: space-between; align-items: center; }

    /* Admin sidebar becomes a slide-in drawer instead of disappearing */
    .admin-main { margin-left: 0; }
    .admin-sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        box-shadow: 4px 0 40px rgba(0,0,0,0.5);
    }
    .admin-sidebar.open { transform: translateX(0); }
    .admin-menu-toggle { display: inline-flex; }
}
@media (max-width: 768px) {
    .search-form-dark { grid-template-columns: 1fr 1fr; }
    .hero-title { font-size: 3rem; }
    .admin-topbar { padding: 0.85rem 1rem; }
    .admin-topbar-title { font-size: 1.15rem; }
}
@media (max-width: 576px) {
    .search-form-dark { grid-template-columns: 1fr; }
    .hero-actions { flex-direction: column; }
    .btn-primary-custom, .btn-outline-custom { width: 100%; justify-content: center; }
    .inventory-controls { flex-direction: column; align-items: stretch; }
    .navbar-custom { padding: 0.4rem 1rem; }
    .brand-logo { height: 52px; }
    .announcement-bar { font-size: 0.72rem; padding: 7px 12px; letter-spacing: 0; }
    .admin-content { padding: 1rem; }

    /* Compact stat cards so two fit comfortably per row on phones */
    .admin-stat-card { padding: 1rem; }
    .admin-stat-icon { width: 38px; height: 38px; font-size: 1rem; margin-bottom: 0.6rem; }
    .admin-stat-number { font-size: 1.6rem; }
    .admin-stat-label { font-size: 0.68rem; }
    .table-card-header { padding: 1rem; }
    .admin-table td, .admin-table thead th { padding: 0.6rem 0.7rem; }
}
