/* ==========================================================================
   TRONILL GLOBAL STYLING SYSTEM (Premium Glassmorphism & High-Tech Dark Mode)
   ========================================================================== */

/* Design Tokens & Theme Variables */
:root {
    --bg-dark-base: #f8fafc; /* Ultra-clean Slate Light Gray */
    --bg-dark-surface: rgba(255, 255, 255, 0.75); /* Translucent glass panel */
    --bg-dark-card: rgba(241, 245, 249, 0.85); /* Slightly darker cards */
    
    /* Tronill Brand Orange & Slate Gray Accents */
    --accent-cyan: #f7921e; /* Tronill brand orange for high-contrast active text */
    --accent-cyan-glow: rgba(247, 146, 30, 0.20);
    --accent-green: #e07c10; /* Deeper orange for main titles & buttons */
    --accent-green-glow: rgba(224, 124, 16, 0.18);
    --accent-purple: #475569; /* Cool Medium Slate Gray (matches logo wordmark) */
    --accent-purple-glow: rgba(71, 85, 105, 0.1);
    
    /* Text & Interface Colors */
    --text-primary: #0f172a; /* Slate 900 for absolute readability */
    --text-secondary: #334155; /* Slate 700 for subtitles */
    --text-muted: #64748b; /* Slate 500 */
    --border-light: rgba(15, 23, 42, 0.08); /* Clean dark borders */
    --border-active: rgba(247, 146, 30, 0.35);
    
    /* System Colors */
    --color-success: #10b981;
    --color-warning: #f59e0b;
    --color-error: #ef4444;
    
    /* Font Families */
    --font-heading: 'Outfit', 'Inter', system-ui, -apple-system, sans-serif;
    --font-body: 'Inter', system-ui, -apple-system, sans-serif;
    
    /* UI Scale Constants */
    --header-height: 80px;
    --border-radius-sm: 8px;
    --border-radius-md: 16px;
    --border-radius-lg: 24px;
    
    /* Transition Speed */
    --transition-smooth: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* CSS Resets & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scrollbar-width: thin;
    scrollbar-color: var(--border-active) var(--bg-dark-base);
}

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

body {
    background-color: var(--bg-dark-base);
    color: var(--text-primary);
    font-family: var(--font-body);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(254, 240, 138, 0.18) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(148, 163, 184, 0.08) 0%, transparent 40%);
    background-attachment: fixed;
}

/* Modern Premium Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-dark-base);
}
::-webkit-scrollbar-thumb {
    background: rgba(0, 240, 255, 0.15);
    border-radius: 10px;
    border: 2px solid var(--bg-dark-base);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--accent-cyan);
}

/* Typography Elements */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-smooth);
}

/* Premium Layout Helper Utilities */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.glass-panel {
    background: var(--bg-dark-surface);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border: 1px solid var(--border-light);
    border-radius: var(--border-radius-md);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    transition: var(--transition-smooth);
}

.glass-panel:hover {
    border-color: var(--border-active);
    box-shadow: 0 8px 32px 0 rgba(0, 240, 255, 0.06);
}

/* Dynamic Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 12px 28px;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    transition: var(--transition-smooth);
    border: 1px solid transparent;
}

.btn-primary {
    background: linear-gradient(135deg, #ffd753, #eab308);
    color: #0f172a;
    box-shadow: 0 4px 14px rgba(234, 179, 8, 0.25);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(234, 179, 8, 0.45);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border-color: var(--accent-cyan);
    box-shadow: 0 4px 14px rgba(0, 240, 255, 0.05);
}

.btn-secondary:hover {
    background: rgba(0, 240, 255, 0.08);
    transform: translateY(-2px);
}

.btn-accent {
    background: linear-gradient(135deg, #eab308, #ca8a04);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(202, 138, 4, 0.25);
}

.btn-accent:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(202, 138, 4, 0.45);
}

.btn-danger {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
    border-color: rgba(239, 68, 68, 0.3);
}

.btn-danger:hover {
    background: #ef4444;
    color: #fff;
}

.btn-block {
    display: flex;
    width: 100%;
}

.badge {
    display: inline-block;
    padding: 4px 10px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 20px;
}

.badge-cyan {
    background: rgba(0, 240, 255, 0.15);
    color: var(--accent-cyan);
    border: 1px solid var(--accent-cyan);
}

.badge-green {
    background: rgba(0, 223, 137, 0.15);
    color: var(--accent-green);
    border: 1px solid var(--accent-green);
}

/* Main Navigation Header */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    z-index: 1000;
    border-radius: 0;
    border-top: none;
    border-left: none;
    border-right: none;
    background: rgba(255, 255, 255, 0.85);
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.header-container {
    max-width: 1300px;
    height: 100%;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand-logo {
    display: flex;
    align-items: center;
    line-height: 0;
}

.brand-logo-img {
    height: 44px;
    width: auto;
    display: block;
    transition: var(--transition-smooth);
}

.brand-logo:hover .brand-logo-img {
    transform: scale(1.03);
    filter: drop-shadow(0 2px 10px var(--accent-cyan-glow));
}

.logo-accent {
    color: var(--accent-cyan);
    text-shadow: 0 0 12px var(--accent-cyan-glow);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-secondary);
    position: relative;
    padding: 8px 0;
}

.nav-link:hover, .nav-link.active {
    color: var(--accent-cyan);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-cyan);
    box-shadow: 0 0 8px var(--accent-cyan);
    transition: var(--transition-smooth);
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Shopping Cart Trigger Badge */
.cart-trigger-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-light);
    color: var(--text-primary);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}

.cart-trigger-btn:hover {
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);
    box-shadow: 0 0 12px var(--accent-cyan-glow);
}

.cart-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--accent-cyan);
    color: #040814;
    font-size: 0.7rem;
    font-weight: 800;
    min-width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--bg-dark-base);
}

/* Language Selector styling */
.language-selector {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-light);
    padding: 2px;
    border-radius: 30px;
    display: flex;
    gap: 2px;
}

.lang-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.75rem;
    padding: 6px 12px;
    border-radius: 20px;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.lang-btn:hover {
    color: var(--text-primary);
}

.lang-btn.active {
    background: var(--accent-cyan);
    color: #040814;
    box-shadow: 0 0 10px var(--accent-cyan-glow);
}

.mobile-toggle {
    display: none;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Active Main Container Content Area */
#app-content {
    margin-top: var(--header-height);
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Page loader */
.page-loader {
    display: flex;
    flex: 1;
    align-items: center;
    justify-content: center;
    min-height: 400px;
}

.loader-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(0, 240, 255, 0.15);
    border-top: 3px solid var(--accent-cyan);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    box-shadow: 0 0 10px var(--accent-cyan-glow);
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ==========================================================================
   VIEW 1: HOME PAGE / LANDING BRAND SHOWCASE
   ========================================================================== */

/* Hero Banner */
.hero-section {
    position: relative;
    padding: 100px 0 140px 0;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.hero-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.hero-logo {
    height: 72px;
    width: auto;
    align-self: flex-start;
    margin-bottom: 4px;
}

/* Featured Product Banner (TR80 Series) — eye-catching */
.promo-banner-section {
    position: relative;
    padding: 70px 0 50px 0;
    overflow: hidden;
}

/* Decorative animated orange glows behind the banner */
.promo-bg-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: 0;
    pointer-events: none;
    animation: breathe 9s ease-in-out infinite;
}
.promo-bg-glow-1 {
    width: 420px; height: 420px;
    top: -80px; left: -60px;
    background: radial-gradient(rgba(247, 146, 30, 0.35) 0%, transparent 70%);
}
.promo-bg-glow-2 {
    width: 520px; height: 520px;
    bottom: -140px; right: -80px;
    background: radial-gradient(rgba(224, 124, 16, 0.28) 0%, transparent 70%);
    animation-delay: 2.5s;
}

.promo-banner-section .container {
    position: relative;
    z-index: 1;
}

/* Eyebrow badge with pulse */
.promo-head {
    display: flex;
    justify-content: center;
    margin-bottom: 26px;
}
.promo-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 20px;
    font-family: var(--font-heading);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #fff;
    border-radius: 30px;
    background: linear-gradient(135deg, #f7921e, #e07c10);
    box-shadow: 0 6px 18px rgba(247, 146, 30, 0.45);
    animation: promoPulse 2.4s ease-in-out infinite;
}
.promo-badge i { color: #fff3d6; }

/* Banner card with animated gradient glow border + float */
.promo-banner-wrap {
    position: relative;
    max-width: 920px;
    margin: 0 auto;
    animation: promoFloat 6s ease-in-out infinite;
}

/* Banner used inside the hero visual column */
.hero-banner-wrap {
    max-width: 100%;
    width: 100%;
    z-index: 2;
}
.promo-banner-wrap::before {
    content: "";
    position: absolute;
    inset: -3px;
    border-radius: calc(var(--border-radius-lg) + 3px);
    background: linear-gradient(120deg, #f7921e, #ffd753, #e07c10, #f7921e);
    background-size: 300% 300%;
    filter: blur(8px);
    opacity: 0.75;
    z-index: 0;
    animation: promoGrad 6s linear infinite;
}

.promo-banner-link {
    position: relative;
    z-index: 1;
    display: block;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.18);
    transition: var(--transition-smooth);
}
.promo-banner-link:hover {
    transform: scale(1.012);
    box-shadow: 0 32px 70px rgba(247, 146, 30, 0.35);
}

.promo-banner-img {
    display: block;
    width: 100%;
    height: auto;
}

/* Diagonal NEW ribbon */
.promo-ribbon {
    position: absolute;
    top: 20px;
    right: -46px;
    z-index: 3;
    transform: rotate(45deg);
    background: linear-gradient(135deg, #f7921e, #e07c10);
    color: #fff;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 0.8rem;
    letter-spacing: 0.15em;
    padding: 7px 60px;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.25);
}

/* Connectivity chips */
.promo-banner-models {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px 22px;
    margin-top: 34px;
}
.promo-model {
    display: inline-flex;
    align-items: center;
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--text-secondary);
    background: rgba(247, 146, 30, 0.10);
    border: 1px solid rgba(247, 146, 30, 0.30);
    border-radius: 30px;
    padding: 9px 18px;
}
.promo-model b { color: var(--text-primary); }
.promo-model i {
    color: var(--accent-cyan);
    margin-right: 8px;
    font-size: 1.05rem;
}

/* Bright orange CTA with glow pulse */
.promo-banner-cta {
    display: flex;
    justify-content: center;
    margin-top: 32px;
}
.btn-promo {
    background: linear-gradient(135deg, #f7921e, #e07c10);
    color: #fff;
    font-weight: 700;
    padding: 15px 34px;
    font-size: 1.05rem;
    box-shadow: 0 8px 24px rgba(247, 146, 30, 0.45);
    animation: promoPulse 2.4s ease-in-out infinite;
}
.btn-promo:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 12px 32px rgba(247, 146, 30, 0.6);
}

@keyframes promoFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}
@keyframes promoGrad {
    0% { background-position: 0% 50%; }
    100% { background-position: 300% 50%; }
}
@keyframes promoPulse {
    0%, 100% { box-shadow: 0 6px 18px rgba(247, 146, 30, 0.45); }
    50% { box-shadow: 0 6px 26px rgba(247, 146, 30, 0.75); }
}

@media (prefers-reduced-motion: reduce) {
    .promo-bg-glow, .promo-banner-wrap, .promo-banner-wrap::before,
    .promo-badge, .btn-promo { animation: none; }
}

.hero-tag {
    align-self: flex-start;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    background: linear-gradient(135deg, #0f172a 30%, #475569 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.hero-btns {
    display: flex;
    gap: 16px;
    margin-top: 12px;
}

.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-glow-back {
    position: absolute;
    width: 350px;
    height: 350px;
    border-radius: 50%;
    background: radial-gradient(var(--accent-cyan-glow) 0%, transparent 70%);
    filter: blur(40px);
    animation: breathe 8s ease-in-out infinite;
    z-index: 1;
}

.hero-image {
    width: 100%;
    max-width: 480px;
    border-radius: var(--border-radius-md);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.05);
    z-index: 2;
    transition: var(--transition-smooth);
}

.hero-image:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 24px 48px rgba(0, 240, 255, 0.2);
    border-color: var(--accent-cyan);
}

@keyframes breathe {
    0%, 100% { transform: scale(1); opacity: 0.6; }
    50% { transform: scale(1.2); opacity: 0.9; }
}

/* Feature Section */
.features-section {
    padding: 80px 0;
    background: rgba(10, 15, 30, 0.4);
    position: relative;
}

.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 56px auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.section-title {
    font-size: 2.2rem;
    color: var(--text-primary);
}

.section-desc {
    color: var(--text-secondary);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.feature-card {
    padding: 40px 32px;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.feature-icon-box {
    width: 60px;
    height: 60px;
    border-radius: var(--border-radius-sm);
    background: rgba(0, 240, 255, 0.05);
    border: 1px solid rgba(0, 240, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: var(--accent-cyan);
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.05);
}

.feature-card h3 {
    font-size: 1.3rem;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Interactive Timeline Showcase */
.timeline-section {
    padding: 80px 0;
}

.timeline-container {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    padding-left: 32px;
}

.timeline-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 8px;
    width: 2px;
    height: 100%;
    background: linear-gradient(to bottom, var(--accent-cyan), var(--accent-purple));
}

.timeline-item {
    position: relative;
    margin-bottom: 48px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -30px;
    top: 6px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--bg-dark-base);
    border: 3px solid var(--accent-cyan);
    box-shadow: 0 0 8px var(--accent-cyan);
}

.timeline-year {
    font-family: var(--font-heading);
    font-weight: 800;
    color: var(--accent-cyan);
    font-size: 1.2rem;
    margin-bottom: 8px;
}

.timeline-content {
    padding: 24px;
}

.timeline-content h3 {
    font-size: 1.25rem;
    margin-bottom: 8px;
}

.timeline-content p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ==========================================================================
   VIEW 2: PRODUCT CATALOG & SHOPPING SYSTEM
   ========================================================================== */

.catalog-layout {
    padding: 60px 0 100px 0;
}

/* Clickable product cards -> detail page */
.product-card-link {
    cursor: pointer;
    transition: var(--transition-smooth);
}
.product-card-link:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 44px var(--accent-cyan-glow);
    border-color: var(--border-active);
}
.product-view-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--accent-cyan);
    font-weight: 600;
    font-size: 0.9rem;
}
.product-view-link i { transition: transform 0.25s ease; }
.product-card-link:hover .product-view-link i { transform: translateX(4px); }

/* Product detail page */
.product-detail-layout {
    padding: 60px 0 100px 0;
}
.detail-back-btn {
    margin-bottom: 28px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.detail-top {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
    margin-bottom: 60px;
}
.detail-media {
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--border-light);
}
.detail-image {
    width: 100%;
    height: auto;
    display: block;
}
.detail-info {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.detail-title {
    font-size: 2.4rem;
    font-weight: 800;
    line-height: 1.15;
    color: var(--text-primary);
}
.detail-subtitle {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-top: 8px;
}
.detail-desc {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 1.05rem;
}
.detail-specs-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.detail-specs-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-secondary);
}
.detail-specs-list li i { color: var(--accent-cyan); }
.detail-docs { margin-top: 20px; }

/* Lenovo-style driver finder */
.driver-finder {
    padding: 30px 32px;
    border-radius: var(--border-radius-lg);
    margin-bottom: 44px;
    border-top: 3px solid var(--accent-cyan);
}
.finder-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    color: var(--text-primary);
    margin-bottom: 20px;
}
.finder-title i { color: var(--accent-cyan); margin-right: 10px; }
.finder-grid {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 18px;
    align-items: end;
}
.finder-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.finder-field label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
}
.finder-field select {
    width: 100%;
    padding: 13px 16px;
    border-radius: var(--border-radius-sm);
    border: 1px solid var(--border-light);
    background: #fff;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.95rem;
    cursor: pointer;
}
.finder-field select:focus {
    outline: none;
    border-color: var(--accent-cyan);
    box-shadow: 0 0 0 3px var(--accent-cyan-glow);
}
.finder-field select:disabled {
    background: rgba(15, 23, 42, 0.04);
    color: var(--text-muted);
    cursor: not-allowed;
}
.finder-go {
    height: 48px;
    white-space: nowrap;
}
.finder-go:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}
.finder-hint {
    margin-top: 16px;
    font-size: 0.88rem;
    color: var(--text-muted);
}
.support-browse-title {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--text-primary);
    margin-bottom: 22px;
}

@media (max-width: 768px) {
    .finder-grid { grid-template-columns: 1fr; }
    .finder-go { width: 100%; }
}

@media (max-width: 768px) {
    .detail-top { grid-template-columns: 1fr; gap: 28px; }
    .detail-title { font-size: 1.8rem; }
}

/* Search and Filters Drawer */
.catalog-toolbar {
    margin-bottom: 40px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 24px;
}

.search-box {
    position: relative;
    flex: 1;
    min-width: 280px;
}

.search-box i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

.search-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-light);
    color: var(--text-primary);
    padding: 12px 16px 12px 48px;
    border-radius: var(--border-radius-sm);
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: var(--transition-smooth);
}

.search-input:focus {
    outline: none;
    border-color: var(--accent-cyan);
    background: rgba(0, 240, 255, 0.03);
    box-shadow: 0 0 10px var(--accent-cyan-glow);
}

.filter-categories {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.filter-btn {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-light);
    color: var(--text-secondary);
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.85rem;
    transition: var(--transition-smooth);
}

.filter-btn:hover {
    color: var(--text-primary);
    border-color: var(--text-muted);
}

.filter-btn.active {
    background: rgba(0, 240, 255, 0.1);
    color: var(--accent-cyan);
    border-color: var(--accent-cyan);
    box-shadow: 0 0 10px var(--accent-cyan-glow);
}

/* Products Grid layout */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 32px;
}

.product-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    height: 100%;
}

.product-image-box {
    width: 100%;
    height: 220px;
    overflow: hidden;
    position: relative;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid var(--border-light);
    padding: 16px;
}

.product-image {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: transform 0.4s ease;
}

.product-card:hover .product-image {
    transform: scale(1.06);
}

.product-card-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 2;
}

.product-info {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 12px;
}

.product-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
}

.product-desc {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
    flex: 1;
}

.product-specs {
    font-size: 0.8rem;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.02);
    padding: 8px 12px;
    border-radius: var(--border-radius-sm);
    border-left: 2px solid var(--accent-cyan);
}

.product-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 8px;
    border-top: 1px solid var(--border-light);
    padding-top: 16px;
}

.product-price {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--accent-cyan);
}

.product-stock {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.product-stock.low-stock {
    color: var(--color-warning);
    font-weight: 600;
}

.product-stock.out-of-stock {
    color: var(--color-error);
    font-weight: 600;
}

.product-actions {
    padding: 0 24px 24px 24px;
}

/* Slide-over shopping drawer */
.cart-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 1050;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-smooth);
}

.cart-backdrop.open {
    opacity: 1;
    visibility: visible;
}

.cart-drawer {
    position: fixed;
    top: 0;
    right: -420px;
    width: 420px;
    height: 100vh;
    z-index: 1100;
    border-radius: 0;
    border-top: none;
    border-bottom: none;
    border-right: none;
    display: flex;
    flex-direction: column;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: -10px 0 30px rgba(15, 23, 42, 0.08);
}

.cart-drawer.open {
    right: 0;
}

.cart-header {
    padding: 24px;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.close-cart-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 1.4rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.close-cart-btn:hover {
    color: var(--accent-cyan);
    background: rgba(255, 255, 255, 0.05);
}

.cart-items-container {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.cart-empty-message {
    color: var(--text-muted);
    text-align: center;
    padding: 40px 0;
}

/* Cart Item Cards */
.cart-item {
    display: flex;
    gap: 16px;
    align-items: center;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-light);
}

.cart-item-img {
    width: 64px;
    height: 64px;
    border-radius: var(--border-radius-sm);
    object-fit: cover;
    border: 1px solid var(--border-light);
}

.cart-item-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.cart-item-name {
    font-weight: 600;
    font-size: 0.95rem;
}

.cart-item-price {
    color: var(--accent-cyan);
    font-weight: 700;
    font-size: 0.9rem;
}

.cart-item-quantity {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 4px;
}

.qty-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-light);
    color: var(--text-primary);
    width: 24px;
    height: 24px;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    transition: var(--transition-smooth);
}

.qty-btn:hover {
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);
}

.qty-val {
    font-size: 0.85rem;
    font-weight: 600;
    min-width: 16px;
    text-align: center;
}

.remove-item-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.remove-item-btn:hover {
    color: var(--color-error);
}

.cart-footer {
    padding: 24px;
    border-top: 1px solid var(--border-light);
    background: rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.cart-summary-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
}

.cart-total-price {
    color: var(--accent-cyan);
}

.checkout-simulation-box {
    border-top: 1px solid var(--border-light);
    padding-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.checkout-simulation-box h3 {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--accent-green);
}

.simulation-desc {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.checkout-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.form-group-compact input {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-light);
    color: var(--text-primary);
    padding: 8px 12px;
    border-radius: 4px;
    font-family: var(--font-body);
    font-size: 0.85rem;
    transition: var(--transition-smooth);
}

.form-group-compact input:focus {
    outline: none;
    border-color: var(--accent-cyan);
}

/* ==========================================================================
   VIEW 3: DRIVER DOWNLOAD CENTER
   ========================================================================== */

.support-layout {
    padding: 60px 0 100px 0;
}

.support-search-panel {
    padding: 32px;
    margin-bottom: 40px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.support-search-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
}

.filter-select-box select {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-light);
    color: var(--text-secondary);
    padding: 12px 16px;
    border-radius: var(--border-radius-sm);
    font-family: var(--font-body);
    font-size: 0.95rem;
    outline: none;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.filter-select-box select:focus {
    border-color: var(--accent-cyan);
    color: var(--text-primary);
}

/* Driver Download Table/Grid */
.drivers-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.driver-card {
    padding: 24px;
    display: grid;
    grid-template-columns: 3fr 1fr 1fr 1fr;
    align-items: center;
    gap: 24px;
}

.driver-info-main {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.driver-name {
    font-size: 1.2rem;
    font-weight: 700;
}

.driver-desc {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.driver-meta-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 0.85rem;
}

.driver-meta-label {
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
}

.driver-meta-val {
    color: var(--text-primary);
    font-weight: 500;
}

.driver-os-icon {
    margin-right: 6px;
}

.driver-action-btn {
    justify-self: end;
}

/* ==========================================================================
   VIEW 4: ADMINISTRATIVE BACKOFFICE PANEL
   ========================================================================== */

.admin-layout {
    padding: 60px 0 100px 0;
}

.admin-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

@media(max-width: 992px) {
    .admin-grid {
        grid-template-columns: 1fr;
    }
}

.admin-section-box {
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.admin-section-title {
    font-size: 1.4rem;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-light);
    padding-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.admin-section-title i {
    color: var(--accent-cyan);
}

/* Admin product list */
.admin-prod-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 18px;
    max-height: 640px;
    overflow-y: auto;
}
.admin-prod-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 14px;
    border-radius: var(--border-radius-sm);
}
.admin-prod-thumb {
    width: 54px;
    height: 54px;
    object-fit: contain;
    background: #fff;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    flex-shrink: 0;
}
.admin-prod-meta {
    display: flex;
    flex-direction: column;
    gap: 3px;
    flex: 1;
    min-width: 0;
}
.admin-prod-meta strong {
    color: var(--text-primary);
    font-size: 0.95rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.admin-prod-cat {
    font-size: 0.75rem;
    color: var(--accent-cyan);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.admin-prod-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}
.admin-prod-actions .btn {
    padding: 7px 12px;
    font-size: 0.8rem;
}
@media (max-width: 768px) {
    .admin-prod-row { flex-wrap: wrap; }
    .admin-prod-actions { width: 100%; }
}

.admin-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.form-control {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-light);
    color: var(--text-primary);
    padding: 12px;
    border-radius: var(--border-radius-sm);
    font-family: var(--font-body);
    font-size: 0.9rem;
    width: 100%;
    transition: var(--transition-smooth);
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-cyan);
    box-shadow: 0 0 10px var(--accent-cyan-glow);
}

textarea.form-control {
    resize: vertical;
    min-height: 80px;
}

/* Orders list in admin panel */
.admin-orders-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-height: 480px;
    overflow-y: auto;
    padding-right: 8px;
}

.order-card {
    padding: 20px;
    border: 1px solid var(--border-light);
    background: rgba(255, 255, 255, 0.01);
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-light);
    padding-bottom: 10px;
    margin-bottom: 12px;
}

.order-id {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--accent-green);
    font-size: 0.95rem;
}

.order-date {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.order-body {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.order-customer-info {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.order-items-summary {
    background: rgba(0, 0, 0, 0.2);
    padding: 10px 16px;
    border-radius: 4px;
    font-size: 0.85rem;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.order-total-summary {
    display: flex;
    justify-content: space-between;
    font-weight: 700;
    border-top: 1px dotted var(--border-light);
    padding-top: 8px;
    margin-top: 4px;
    font-size: 0.9rem;
}

/* ==========================================================================
   TOAST NOTIFICATION BANNERS SYSTEM
   ========================================================================== */

.toast-container {
    position: fixed;
    bottom: 32px;
    left: 32px;
    z-index: 1200;
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none;
}

.toast {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-light);
    color: var(--text-primary);
    padding: 16px 24px;
    border-radius: var(--border-radius-sm);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 0.9rem;
    pointer-events: auto;
    animation: toast-slide-in 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    border-left: 4px solid var(--accent-cyan);
}

.toast.toast-success {
    border-left-color: var(--color-success);
}

.toast.toast-warning {
    border-left-color: var(--color-warning);
}

.toast.toast-error {
    border-left-color: var(--color-error);
}

.toast-icon {
    font-size: 1.1rem;
}

.toast.toast-success .toast-icon { color: var(--color-success); }
.toast.toast-warning .toast-icon { color: var(--color-warning); }
.toast.toast-error .toast-icon { color: var(--color-error); }

@keyframes toast-slide-in {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.toast.toast-fade-out {
    animation: toast-slide-out 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes toast-slide-out {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(-120%);
        opacity: 0;
    }
}

/* ==========================================================================
   GLOBAL FOOTER STYLING
   ========================================================================== */

.main-footer {
    border-top: 1px solid var(--border-light);
    background: rgba(241, 245, 249, 0.98);
    padding: 80px 0 40px 0;
    margin-top: auto;
}

.footer-grid {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer-brand-info {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-brand-info h3 {
    font-size: 1.6rem;
    letter-spacing: 0.1em;
    color: var(--accent-cyan);
    text-shadow: 0 0 10px var(--accent-cyan-glow);
}

.footer-logo-img {
    height: 46px;
    width: auto;
    display: block;
}

.footer-tagline {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--accent-cyan);
    margin-top: -4px;
}

.footer-brand-info p {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 0.95rem;
    max-width: 440px;
}

.footer-links-col {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-links-col h4, .footer-tech-col h4 {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-primary);
}

.footer-links-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links-col a {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.footer-links-col a:hover {
    color: var(--accent-cyan);
    padding-left: 4px;
}

.footer-tech-col {
    display: flex;
    flex-direction: column;
    gap: 12px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.footer-tech-col p {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-tech-col i {
    color: var(--accent-cyan);
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px 24px 0 24px;
    border-top: 1px solid var(--border-light);
    display: flex;
    justify-content: space-between;
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* ==========================================================================
   RESPONSIVE LAYOUT MEDIA QUERIES (Mobile First Enhancements)
   ========================================================================== */

@media (max-width: 992px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .hero-content {
        align-items: center;
    }
    
    .hero-tag {
        align-self: center;
    }
    
    .hero-btns {
        justify-content: center;
    }
    
    .features-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    :root {
        --header-height: 70px;
    }

    .brand-logo-img {
        height: 38px;
    }

    .hero-logo {
        height: 54px;
    }

    .footer-logo-img {
        height: 40px;
    }

    .mobile-toggle {
        display: block;
    }
    
    .nav-menu {
        position: fixed;
        top: var(--header-height);
        left: -100%;
        width: 100%;
        height: calc(100vh - var(--header-height));
        background: rgba(6, 9, 19, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        justify-content: center;
        gap: 32px;
        transition: var(--transition-smooth);
        z-index: 990;
    }
    
    .nav-menu.open {
        left: 0;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .support-search-grid {
        grid-template-columns: 1fr;
    }
    
    .driver-card {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .driver-action-btn {
        justify-self: start;
        width: 100%;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .cart-drawer {
        width: 100%;
        right: -100%;
    }
}

/* ==========================================================================
   ADMIN PANEL v2 (tabs, modal editor, large fields)
   ========================================================================== */
.form-lg {
    font-size: 1rem !important;
    padding: 13px 16px !important;
    line-height: 1.5 !important;
}
textarea.form-lg { min-height: 90px; resize: vertical; }
.field-hint { font-size: 0.82rem; color: var(--text-muted); margin-top: -4px; margin-bottom: 4px; }

.admin-topbar {
    display: flex; justify-content: space-between; align-items: center;
    padding: 16px 24px; margin-bottom: 20px; border-radius: var(--border-radius-sm);
}

/* Tabs */
.admin-tabs {
    display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px;
    border-bottom: 1px solid var(--border-light); padding-bottom: 14px;
}
.admin-tab {
    display: inline-flex; align-items: center; gap: 8px;
    font-family: var(--font-heading); font-weight: 600; font-size: 0.92rem;
    padding: 10px 18px; border-radius: 30px; cursor: pointer;
    background: rgba(15,23,42,0.04); color: var(--text-secondary);
    border: 1px solid transparent; transition: var(--transition-smooth);
}
.admin-tab:hover { color: var(--text-primary); }
.admin-tab.active {
    background: linear-gradient(135deg, #f7921e, #e07c10); color: #fff;
    box-shadow: 0 4px 14px rgba(247,146,30,0.4);
}
.admin-tab i { font-size: 0.9rem; }

.admin-sec-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; gap: 16px; flex-wrap: wrap; }

/* Rows (list items) */
.admin-rows { display: flex; flex-direction: column; gap: 12px; }
.admin-row {
    display: flex; align-items: center; gap: 14px;
    padding: 12px 16px; border-radius: var(--border-radius-sm);
}
.admin-reorder { display: flex; flex-direction: column; gap: 2px; }
.icon-btn {
    width: 30px; height: 26px; border-radius: 6px; cursor: pointer;
    background: rgba(15,23,42,0.05); color: var(--text-secondary);
    border: 1px solid var(--border-light); display: flex; align-items: center; justify-content: center;
    transition: var(--transition-smooth);
}
.icon-btn:hover:not(:disabled) { background: var(--accent-cyan-glow); color: var(--accent-cyan); }
.icon-btn:disabled { opacity: 0.35; cursor: not-allowed; }
.admin-thumb { width: 56px; height: 56px; object-fit: contain; background: #fff; border: 1px solid var(--border-light); border-radius: 8px; flex-shrink: 0; }
.admin-row-meta { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.admin-row-meta strong { color: var(--text-primary); font-size: 0.98rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-row-sub { font-size: 0.8rem; color: var(--text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-row-actions { display: flex; gap: 8px; flex-shrink: 0; }
.admin-row-actions .btn { padding: 8px 12px; font-size: 0.82rem; }

/* Modal */
.admin-modal-overlay {
    position: fixed; inset: 0; z-index: 2000;
    background: rgba(15,23,42,0.55); backdrop-filter: blur(4px);
    display: flex; align-items: flex-start; justify-content: center;
    padding: 40px 20px; overflow-y: auto;
}
.admin-modal {
    width: 100%; max-width: 1050px; border-radius: var(--border-radius-lg);
    display: flex; flex-direction: column; max-height: calc(100vh - 80px);
}
.admin-modal-head, .admin-modal-foot {
    display: flex; align-items: center; padding: 20px 28px; flex-shrink: 0;
}
.admin-modal-head { justify-content: space-between; border-bottom: 1px solid var(--border-light); }
.admin-modal-head h3 { font-family: var(--font-heading); font-size: 1.3rem; color: var(--text-primary); }
.admin-modal-foot { justify-content: flex-end; gap: 12px; border-top: 1px solid var(--border-light); }
.admin-modal-body { display: flex; flex-direction: column; gap: 24px; padding: 24px 28px; overflow-y: auto; }
.modal-main { display: grid; grid-template-columns: 1.6fr 1fr; gap: 28px; }
.modal-form { display: flex; flex-direction: column; gap: 14px; }
.modal-drivers { border-top: 1px solid var(--border-light); padding-top: 18px; }
.modal-sub { font-family: var(--font-heading); font-size: 1.05rem; color: var(--text-primary); margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.modal-sub i { color: var(--accent-cyan); }
#mdrv-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; }
.mdrv-row { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: rgba(15,23,42,0.03); border: 1px solid var(--border-light); border-radius: 8px; }
.mdrv-name { font-weight: 600; color: var(--text-primary); font-size: 0.9rem; }
.mdrv-meta { flex: 1; font-size: 0.8rem; color: var(--text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mdrv-actions { display: flex; gap: 6px; flex-shrink: 0; }
.mdrv-actions .icon-btn { width: 32px; height: 32px; }
.mdrv-del:hover { background: #ef4444 !important; color: #fff !important; border-color: #ef4444 !important; }
.mdrv-add { display: grid; grid-template-columns: 1.4fr 1fr 0.8fr auto auto; gap: 10px; align-items: center; }
.mdrv-btns { display: flex; gap: 8px; }
.file-pick { display: inline-flex; align-items: center; gap: 8px; padding: 12px 16px; border: 1px dashed var(--border-active); border-radius: var(--border-radius-sm); color: var(--text-secondary); cursor: pointer; font-size: 0.9rem; background: rgba(247,146,30,0.04); overflow: hidden; }
.file-pick span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 180px; }
.file-pick input[type=file] { display: none; }
@media (max-width: 860px) { .mdrv-add { grid-template-columns: 1fr; } }
.admin-preview { position: sticky; top: 0; }
.preview-label { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); margin-bottom: 12px; font-weight: 600; }

/* Gallery strip */
.gal-strip { display: flex; flex-wrap: wrap; gap: 10px; margin: 8px 0; }
.gal-thumb { position: relative; width: 64px; height: 64px; border-radius: 8px; overflow: hidden; border: 1px solid var(--border-light); background: #fff; }
.gal-thumb img { width: 100%; height: 100%; object-fit: contain; }
.gal-rm { position: absolute; top: 2px; right: 2px; width: 18px; height: 18px; border-radius: 50%; border: none; background: rgba(239,68,68,0.9); color: #fff; cursor: pointer; font-size: 12px; line-height: 1; display: flex; align-items: center; justify-content: center; }

@media (max-width: 860px) {
    .modal-main { grid-template-columns: 1fr; }
    .admin-preview { display: none; }
}

/* Upload progress overlay */
.upload-overlay {
    position: fixed; inset: 0; z-index: 3000;
    background: rgba(15,23,42,0.6); backdrop-filter: blur(4px);
    display: none; align-items: center; justify-content: center;
}
.upload-box {
    display: flex; flex-direction: column; align-items: center; gap: 18px;
    padding: 36px 44px; border-radius: var(--border-radius-lg); min-width: 320px;
}
.upload-text { font-family: var(--font-heading); font-weight: 600; color: var(--text-primary); font-size: 1rem; }
.upload-bar { width: 260px; height: 10px; border-radius: 10px; background: rgba(15,23,42,0.08); overflow: hidden; }
.upload-bar-fill { height: 100%; width: 0%; border-radius: 10px; background: linear-gradient(135deg, #f7921e, #e07c10); transition: width 0.2s ease; }
