:root {
    /* Premium Gradient Palette */
    --gradient-main: linear-gradient(135deg, #FF0055 0%, #7000FF 100%);
    --gradient-hover: linear-gradient(135deg, #FF2E63 0%, #B24BF3 100%);
    --gradient-gold: linear-gradient(135deg, #FFD700 0%, #FDB931 100%);
    --gradient-dark: radial-gradient(circle at top center, #3a0050 0%, #050010 100%);

    /* Hero Dynamic Settings (Default) */
    --hero-bg: url('images/hero_cinematic_bg_clear.png');
    --hero-speed: 45s;
    --hero-overlay-opacity-top: 0.2;
    /* Center-top visibility */
    --hero-overlay-opacity-bottom: 0.9;
    /* Bottom darkness */

    /* Brighter Purple for visibility */
    --primary-red: #D90429;
    --neon-red: #FF2E63;
    --gold: #FFD700;
    --neon-purple: #B24BF3;
    /* ... rest of vars ... */
    --bg-dark: #050505;
    --bg-panel: #0F0F0F;
    --text-main: #ffffff;
    --text-muted: #d0d0d0;

    /* Glow Effects - Mixed */
    --glow-text: 0 0 10px rgba(255, 46, 99, 0.8), 0 0 20px rgba(178, 75, 243, 0.4);
    --glow-box: 0 0 20px rgba(217, 4, 41, 0.2), 0 0 40px rgba(178, 75, 243, 0.1);
    --glow-border: 0 0 5px rgba(255, 46, 99, 0.8), 0 0 10px rgba(178, 75, 243, 0.5);
    --glow-gold: 0 0 15px rgba(255, 215, 0, 0.7);
    /* Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.03);
    /* Lighter tint for better glass contrast */
    --glass-border: 1px solid rgba(255, 75, 243, 0.15);
    /* Purple tint border */
    --glass-blur: blur(16px);

    /* Fonts */
    --font-heading: 'Cinzel',
        serif;
    --font-body: 'Montserrat',
        sans-serif;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-medium: 0.4s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    /* APK Optimization: Remove tap delay */
    touch-action: manipulation;
}

html,
body {
    background-color: var(--bg-dark);
    background-image: var(--gradient-dark);
    background-attachment: scroll;
    color: var(--text-main);
    font-family: var(--font-body);
    overflow-x: hidden;
    width: 100%;
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

/* Background Texture */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 15% 50%, rgba(255, 0, 60, 0.08) 0%, transparent 25%),
        radial-gradient(circle at 85% 30%, rgba(255, 215, 0, 0.05) 0%, transparent 25%);
    pointer-events: none;
    z-index: -1;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ... rest ... */

/* HERO SECTION UPDATES */
/* Background Image Layer with Angle */
.hero-premium::after {
    content: '';
    position: absolute;
    top: -15%;
    left: -10%;
    width: 130%;
    height: 130%;
    background-image: var(--hero-bg);
    /* UPDATED */
    /* Ensure image is larger than container for movement */
    background-size: 120%;
    background-position: center center;
    background-repeat: no-repeat;
    /* Beautiful Cinematic Angle */
    transform: rotate(-8deg) scale(1.1);
    transform-origin: center center;
    z-index: 0;
    filter: brightness(0.8) contrast(1.1);
    /* Cinematic Motion */
    animation: cinematicPan var(--hero-speed) ease-in-out infinite alternate;
    /* UPDATED */
}

/* Dynamic Live Poster Grid (Replaces ::after image when active) */
/* Dynamic Live Poster Grid (Marquee) */
.hero-poster-grid {
    position: absolute;
    top: -20%;
    left: -20%;
    height: 150%;
    width: max-content;
    /* Allow grid to grow as wide as needed */
    display: grid;
    grid-template-rows: repeat(3, 1fr);
    /* 3 Rows of posters */
    grid-auto-flow: column;
    /* Fill columns first (horizontal flow) */
    gap: 15px;

    transform: rotate(-8deg);
    /* Maintain the angle */
    transform-origin: center center;
    z-index: 0;
    filter: brightness(0.6) contrast(1.1);
    /* Darker for text readability */

    /* Infinite Scroll Animation */
    /* Use '33.33%' translateX because we have 5 sets, wait. 
       If we have 5 sets.
       Looping usually requires moving by 1 set length.
       If we just want continuous stream... 
       Keyframe move -50% assumes width is huge.
       Let's stick to -50% but ensure width is huge.
    */
    animation: marqueeSlide var(--hero-speed, 60s) linear infinite;
    will-change: transform;
}

/* Pause on hover (optional, maybe not for BG) */
/* .hero-poster-grid:hover { animation-play-state: paused; } */

@keyframes marqueeSlide {
    0% {
        transform: rotate(-8deg) translateX(0);
    }

    100% {
        transform: rotate(-8deg) translateX(-20%);
    }

    /* Move 1/5th (since we have 5 sets) to loop seamlessly? No. */
    /* 
       We have 5 duplicates. 
       To loop cleanly, we must move exactly the length of ONE set.
       Total width = 5 sets.
       One set = 20%.
       So move to -20%.
       Then it snaps back to 0. (Start of set 2 looks like start of set 1).
    */
}

.hero-poster-item {
    height: 100%;
    width: auto;
    aspect-ratio: 2/3;
    object-fit: cover;
    border-radius: 6px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.6);
}

/* Duplicate keyframe removed */

/* Dark Gradient Overlay - Netflix Style */
.hero-premium::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Vignette + Gradient: Clear center-top, dark bottom */
    /* Using variables for opacity control */
    background: radial-gradient(circle at 50% 30%, rgba(0, 0, 0, var(--hero-overlay-opacity-top)) 0%, rgba(0, 0, 0, 0.6) 80%, #000 100%),
        linear-gradient(to bottom, rgba(0, 0, 0, 0.4) 0%, transparent 30%, rgba(0, 0, 0, var(--hero-overlay-opacity-bottom)) 100%);
    z-index: 1;
}

/* Typography Overrides */
h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    letter-spacing: 1px;
}

/* Header */
.main-header {
    padding: 15px 0;
    background: rgba(10, 5, 20, 0.7);
    /* Deep Purple Tint */
    border-bottom: 1px solid var(--border-glass);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

/* Logo Styles */
.logo-wrapper {
    display: flex;
    align-items: center;
    text-decoration: none;
    padding: 0;
    border: 2px solid var(--gold);
    border-radius: 50%;
    background: #D90429;
    /* Red background to act as matte for logo gaps */
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.4), inset 0 0 10px rgba(255, 215, 0, 0.1);
    transition: var(--transition-medium);
    width: 85px;
    height: 85px;
    justify-content: center;
    overflow: hidden;
}

.logo-wrapper:hover {
    box-shadow: 0 0 25px rgba(255, 215, 0, 0.8), inset 0 0 15px rgba(255, 215, 0, 0.3);
    transform: scale(1.05);
    border-color: var(--primary-red);
}

.logo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    transform: scale(1.60);
    /* Aggressive zoom to align internal border with ring */
}

/* Navigation */
.main-nav {
    flex-grow: 1;
    display: flex;
    justify-content: center;
}

.nav-links {
    display: flex;
    gap: 30px;
    list-style: none;
}

.nav-links a {
    color: #ccc;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: var(--transition-fast);
    position: relative;
    padding: 5px 0;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--gold);
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--primary-red);
    box-shadow: 0 0 5px var(--primary-red);
    transition: var(--transition-medium);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-links a:hover {
    color: var(--neon-red);
}

/* Social Media Links */
.social-links {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-right: 20px;
    padding-right: 20px;
    border-right: 1px solid rgba(255, 46, 99, 0.2);
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: transparent;
    border: none;
    transition: var(--transition-fast);
    text-decoration: none;
    overflow: hidden;
}

.social-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.social-icon:hover {
    transform: translateY(-3px) scale(1.2);
    box-shadow: 0 8px 25px rgba(255, 46, 99, 0.5);
}

.social-icon svg {
    width: 18px;
    height: 18px;
}

/* Header Icons */
.header-icons {
    display: flex;
    gap: 15px;
    align-items: center;
}

.icon-btn {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 1.8rem;
    cursor: pointer;
    padding: 12px;
    border-radius: 50%;
    transition: var(--transition-fast);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 50px;
    min-height: 50px;
}

.icon-btn:hover {
    background: rgba(255, 0, 60, 0.1);
    color: var(--gold);
    text-shadow: 0 0 10px var(--gold);
    transform: translateY(-2px) scale(1.1);
}

.cart-btn {
    position: relative;
}

.cart-count {
    position: absolute;
    top: 0;
    right: -5px;
    background: var(--primary-red);
    color: white;
    font-size: 0.7rem;
    font-weight: bold;
    padding: 2px 5px;
    border-radius: 10px;
    box-shadow: 0 0 5px var(--primary-red);
}

@media (max-width: 900px) {
    .nav-links {
        display: none;
        /* Mobile menu to be implemented if needed */
    }
}

/* =========================================
   Hero Section Premium Redesign
   ========================================= */
/* Hero Section Premium Redesign */
.hero-premium {
    padding: 140px 0 120px;
    text-align: center;
    position: relative;
    overflow: hidden;
    /* Clean Dark Overlay */
    box-shadow: inset 0 0 100px #000;
}

/* Background Image Layer with Angle */
.hero-premium::after {
    content: '';
    position: absolute;
    top: -15%;
    left: -10%;
    width: 130%;
    height: 130%;
    background-image: url('images/hero_cinematic_bg_clear.png');
    /* Ensure image is larger than container for movement */
    background-size: 120%;
    background-position: center center;
    background-repeat: no-repeat;
    /* Beautiful Cinematic Angle */
    transform: rotate(-8deg) scale(1.1);
    transform-origin: center center;
    z-index: 0;
    filter: brightness(0.8) contrast(1.1);
    /* Cinematic Motion */
    animation: cinematicPan 45s ease-in-out infinite alternate;
}

/* Cinematic Pan Animation */
@keyframes cinematicPan {
    0% {
        background-position: 10% 20%;
    }

    100% {
        background-position: 90% 20%;
    }
}

/* Dark Gradient Overlay - Netflix Style */
.hero-premium::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Vignette + Gradient: Clear center-top, dark bottom */
    background: radial-gradient(circle at 50% 30%, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.6) 80%, #000 100%),
        linear-gradient(to bottom, rgba(0, 0, 0, 0.4) 0%, transparent 30%, rgba(0, 0, 0, 0.9) 100%);
    z-index: 1;
}

.hero-heading {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 30px;
    color: #fff;
    text-transform: uppercase;
    font-family: var(--font-heading);
    letter-spacing: -1px;
    position: relative;
    z-index: 2;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.gradient-text {
    /* Premium White to Gold/Yellow Gradient */
    background: linear-gradient(to right, #ffffff 0%, #FFD700 50%, #FFCC00 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    position: relative;
    display: inline-block;
    filter: drop-shadow(0 0 20px rgba(255, 215, 0, 0.3));
}

/* Value Props */
.hero-value-props {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.prop-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 10px 20px;
    border-radius: 50px;
    color: #ddd;
    font-size: 0.95rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
    backdrop-filter: blur(5px);
    transition: transform 0.3s ease;
}

.prop-item:hover {
    transform: translateY(-3px);
    border-color: var(--gold);
    background: rgba(255, 215, 0, 0.1);
}

.prop-icon {
    font-size: 1.2rem;
}

/* Action Buttons */
.hero-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.btn-hero-primary {
    background: linear-gradient(90deg, var(--primary-red), #d62955);
    color: #fff;
    padding: 15px 40px;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 0 20px rgba(255, 46, 99, 0.4);
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-hero-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(255, 46, 99, 0.6);
}

.btn-hero-secondary {
    background: transparent;
    color: #fff;
    padding: 15px 40px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-hero-secondary:hover {
    border-color: var(--gold);
    color: var(--gold);
    background: rgba(255, 215, 0, 0.05);
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .hero-premium {
        padding: 80px 0 60px;
    }

    .hero-heading {
        font-size: 2.2rem;
    }

    .hero-value-props {
        gap: 10px;
    }

    .prop-item {
        padding: 8px 15px;
        font-size: 0.85rem;
    }

    .hero-actions {
        flex-direction: column;
        gap: 15px;
        padding: 0 20px;
    }

    .btn-hero-primary,
    .btn-hero-secondary {
        width: 100%;
    }
}

/* Hero Logo Styles */
.hero-logo-wrapper {
    width: 200px;
    height: 200px;
    margin: 0 auto 30px;
    border-radius: 50%;
    border: 4px solid var(--gold);
    box-shadow: 0 0 40px rgba(255, 215, 0, 0.4), inset 0 0 20px rgba(255, 215, 0, 0.2);
    overflow: hidden;
    position: relative;
    background: #000;
    animation: floatLogo 4s ease-in-out infinite;
    z-index: 2;
}

.hero-logo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.hero-logo-wrapper:hover .hero-logo-img {
    transform: scale(1.1);
}

@keyframes floatLogo {

    0%,
    100% {
        transform: translateY(0);
        box-shadow: 0 0 40px rgba(255, 215, 0, 0.4);
    }

    50% {
        transform: translateY(-10px);
        box-shadow: 0 0 60px rgba(255, 215, 0, 0.7);
    }
}

/* Category Sections */
.category-section {
    padding: 60px 0;
}

.category-header {
    display: flex;
    align-items: center;
    margin-bottom: 40px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 15px;
}

.category-header h2 {
    font-size: 2rem;
    color: var(--gold);
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
    margin-right: 20px;
}

.category-line {
    flex-grow: 1;
    height: 2px;
    background: linear-gradient(to right, var(--primary-red), transparent);
    box-shadow: 0 0 10px var(--primary-red);
}

/* Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

/* Product Card */
.product-card {
    background: var(--glass-bg);
    border: 1px solid rgba(255, 0, 60, 0.3);
    border-radius: 12px;
    padding: 25px;
    position: relative;
    overflow: hidden;
    transition: var(--transition-medium);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    backdrop-filter: var(--glass-blur);
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--primary-red);
    box-shadow: var(--glow-border);
    opacity: 0.5;
    transition: var(--transition-medium);
}

.product-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-red);
    box-shadow: 0 0 30px rgba(255, 0, 60, 0.2);
}

.product-card:hover::before {
    opacity: 1;
    box-shadow: 0 0 20px var(--primary-red);
}

.card-logo-wrapper {
    width: calc(100% + 50px);
    height: 220px;
    margin: -25px -25px 20px -25px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #000;
    border-bottom: 2px solid var(--primary-red);
    overflow: hidden;
    position: relative;
    border-radius: 0;
    box-shadow: none;
}

.card-logo-wrapper::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60%;
    background: linear-gradient(to top, var(--glass-bg) 0%, transparent 100%);
    z-index: 1;
    pointer-events: none;
}

.card-logo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
    transition: transform 0.5s ease;
    z-index: 0;
}

.product-card:hover .card-logo-img {
    transform: scale(1.1);
}

/* Fallback Styling */
.card-logo-fallback {
    width: 100%;
    height: 100%;
    background: var(--bg-dark);
    color: var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    font-weight: 800;
    font-family: var(--font-heading);
}

/* Specific overrides for square-logo class if needed, checking simply makes it redundant now but keeping safe */
.card-logo-wrapper.square-logo {
    border-radius: 0;
}

.card-logo-wrapper.square-logo .card-logo-img {
    border-radius: 0;
}

.product-card h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
    color: #fff;
}

.product-card p {
    font-size: 0.9rem;
    color: #ccc;
    margin-bottom: 20px;
    flex-grow: 1;
}

.btn-glow {
    background: var(--gradient-main);
    background-size: 200% auto;
    border: none;
    color: #fff;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: 0.5s;
    box-shadow: var(--glow-box);
    font-family: var(--font-body);
    position: relative;
    z-index: 1;
}

.btn-glow:hover {
    background-position: right center;
    /* change the direction of the change here */
    box-shadow: 0 0 30px rgba(255, 0, 85, 0.6);
    transform: translateY(-2px);
}

.btn-glow::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background: var(--primary-red);
    transition: var(--transition-fast);
    z-index: -1;
}

.btn-glow:hover {
    color: #fff;
    box-shadow: 0 0 20px var(--primary-red);
}

.btn-glow:hover::after {
    width: 100%;
}

/* Modal - Full Canvas OTT Style Premium Layout */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(20px);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-container {
    background: linear-gradient(145deg, #1a1a1a, #0d0d0d);
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8);
    border-radius: 24px;
    max-width: 1000px;
    width: 90%;
    /* max-height: 85vh; -- Changed to fixed height to ensure scroll works */
    height: 85vh;
    /* Reduced from fixed height */
    /* display: grid;  -- Keeping grid but ensuring it doesn't force height */
    display: flex;
    /* Changed from Grid to Flex for better scroll control */
    flex-direction: row;
    /* grid-template-columns: 40% 60%; -- Removed */
    overflow: hidden;
    position: relative;
    transform: translateY(20px) scale(0.98);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-overlay.active .modal-container {
    transform: translateY(0) scale(1);
}

.modal-close {
    position: absolute;
    top: 25px;
    right: 25px;
    color: rgba(255, 255, 255, 0.7);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 1.8rem;
    cursor: pointer;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 50;
    backdrop-filter: blur(5px);
}

.modal-close:hover {
    background: var(--primary-red);
    color: white;
    transform: rotate(90deg) scale(1.1);
    border-color: transparent;
}

/* Modal Left: Immersive Image with Gradient */
.modal-image-col {
    position: relative;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Gradient Overlay for Cinematic Feel */
/* Gradient Overlay Removed for Clear Picture */
.modal-image-col::after {
    display: none;
}

/* Background Glow */
.modal-image-col {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    justify-content: center;
    padding: 0;
    width: 40%;
    /* Fixed width for Flex layout */
    height: auto;
    /* Allow height to stretch */
    min-height: 100%;
    /* Removed heavy gradient for cleaner look */
    background: transparent;
    z-index: 1;
}

.modal-display-img {
    width: 90%;
    max-width: 420px;
    height: auto;
    object-fit: contain;
    /* Reduced shadow for sharper appearance */
    filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.5));
    position: relative;
    z-index: 2;
    transition: transform 0.5s ease;
    border-radius: 8px;
    /* Slight rounded corner for poster */
}

.modal-display-img:hover {
    transform: scale(1.05) translateY(-10px);
}


/* Sound Toggle Button */
.sound-toggle-btn {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.2rem;
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
    z-index: 20;
    opacity: 0;
    transform: translateY(10px);
}

.trailer-card:hover .sound-toggle-btn {
    opacity: 1;
    transform: translateY(0);
}

.sound-toggle-btn:hover {
    background: var(--primary-red);
    transform: scale(1.1);
}

/* Modal Right: Glass Details Card */
.modal-details-col {
    padding: 20px 20px 40px 20px;
    /* Reduced from 25px */
    display: flex;
    flex-direction: column;
    width: 60%;
    /* Details take remaining space */
    gap: 15px;
    /* Reduced gap from 20px */
    max-height: 100%;
    /* Ensure it doesn't exceed parent */
    height: 100%;
    /* Force it to fill grid area for scrolling */
    min-height: 0;
    /* Critical for grid/flex scrolling */
    overflow-y: auto;
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(10px);
    border-left: 1px solid rgba(255, 255, 255, 0.05);
}

/* Custom Scrollbar */
.modal-details-col::-webkit-scrollbar {
    width: 8px;
}

.modal-details-col::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.02);
}

.modal-details-col::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.modal-header h2 {
    color: #fff;
    font-size: 2rem;
    /* Reduced from 2.2rem */
    margin-bottom: 8px;
    /* Reduced margin */
    font-weight: 800;
    letter-spacing: -1px;
    line-height: 1.1;
    background: linear-gradient(to right, #fff, #ccc);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Highlights Badges */
.modal-highlights {
    display: flex;
    gap: 12px;
    margin-top: 15px;
}

.highlight-badge {
    font-size: 0.8rem;
    color: var(--gold);
    background: rgba(255, 215, 0, 0.05);
    padding: 6px 12px;
    border-radius: 6px;
    border: 1px solid rgba(255, 215, 0, 0.2);
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* Price Section */
.modal-price-area {
    display: flex;
    align-items: baseline;
    gap: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.price-current {
    font-size: 1.8rem;
    /* Reduced from 2rem */
    font-weight: 800;
    color: var(--primary-red);
    text-shadow: 0 0 30px rgba(255, 46, 99, 0.2);
}

.price-original {
    font-size: 1.5rem;
    color: #666;
    text-decoration: line-through;
}

/* Features List - Grid */
.modal-features h4 {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.modal-features ul {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.modal-features li {
    background: rgba(255, 255, 255, 0.03);
    padding: 10px 15px;
    border-radius: 8px;
    font-size: 0.95rem;
    color: #ddd;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: background 0.2s;
}

.modal-features li:hover {
    background: rgba(255, 255, 255, 0.06);
}

/* Plan Tables / Options as Cards */
.modal-options-grid {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.option-group label {
    font-size: 1rem;
    color: #fff;
    margin-bottom: 15px;
    display: block;
    font-weight: 600;
}

.option-buttons.vertical {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    /* Grid Cards */
    gap: 12px;
}

.option-btn {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #aaa;
    padding: 10px;
    /* Reduced from 15px */
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
    font-size: 0.9rem;
    /* Smaller font */
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.option-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    color: #fff;
}

/* Selected State */
.option-btn.selected {
    background: linear-gradient(135deg, rgba(37, 211, 102, 0.2), rgba(37, 211, 102, 0.05));
    border-color: #25D366;
    color: #25D366;
    box-shadow: 0 0 20px rgba(37, 211, 102, 0.15);
}

/* Modern Info Box */
.modal-info-box {
    background: rgba(0, 180, 216, 0.05);
    border: 1px solid rgba(0, 180, 216, 0.1);
    border-radius: 12px;
    padding: 20px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
    font-size: 0.85rem;
    border: none;
    padding: 0;
}

.info-item strong {
    color: #00b4d8;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
}

.info-item span {
    color: #eee;
    font-weight: 500;
}

/* Bottom Action Bar */
.modal-action-area {
    margin-top: auto;
    padding-top: 20px;
    /* Reduced from 30px */
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    gap: 20px;
}

.modal-qty-area {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 5px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.qty-control {
    width: 40px;
    height: 40px;
    background: transparent;
    color: #fff;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    border-radius: 8px;
    transition: background 0.2s;
}

.qty-control:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Action Area Layout */
.modal-actions-buttons {
    display: flex;
    gap: 15px;
    flex-grow: 1;
}

/* Common Styles for All Action Elements (Qty, Buttons) */
.modal-qty-area,
.btn-cart,
.btn-buy {
    height: 55px;
    /* Fixed Height for perfect alignment */
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

/* Quantity Box - Glassy Premium */
.modal-qty-area {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0 10px;
    /* Internal spacing */
    min-width: 120px;
    gap: 10px;
}

.qty-control {
    width: 35px;
    height: 35px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    border-radius: 8px;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qty-control:hover {
    background: var(--primary-red);
    box-shadow: 0 0 10px var(--primary-red);
}

.qty-display {
    width: 30px;
    text-align: center;
    font-weight: 700;
    color: #fff;
    font-size: 1.2rem;
    border: none;
    background: transparent;
}

/* Action Buttons - Text & Layout */
.btn-cart,
.btn-buy {
    border: none;
    padding: 0 24px;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    flex: 1;
    font-family: var(--font-heading);
    color: #fff;
}

/* GLOWING RED GRADIENT & SHINE (Applying to BOTH as requested) */
.btn-cart,
.btn-buy {
    background: linear-gradient(135deg, var(--primary-red), #990011);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 20px -5px rgba(217, 4, 41, 0.4);
}

/* Differentiate slightly: Cart is Darker Red, Buy is Bright */
.btn-cart {
    background: linear-gradient(135deg, #8a0c20, #4a0410);
    /* Deep Red */
    border-color: rgba(217, 4, 41, 0.3);
}

.btn-buy {
    background: linear-gradient(135deg, var(--primary-red), #ff2e63);
    /* Neon Red */
    border-color: rgba(255, 46, 99, 0.3);
    box-shadow: 0 0 20px rgba(255, 46, 99, 0.4);
}

/* Shine Effect for BOTH */
.btn-cart::after,
.btn-buy::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: 0.5s;
    z-index: 1;
}

.btn-cart:hover,
.btn-buy:hover {
    transform: translateY(-3px);
    filter: brightness(1.2);
}

.btn-buy:hover {
    box-shadow: 0 0 30px rgba(255, 46, 99, 0.7);
}

.btn-cart:hover::after,
.btn-buy:hover::after {
    left: 100%;
}

@media (max-width: 960px) {
    .modal-container {
        grid-template-columns: 1fr;
        height: 100vh;
        width: 100vw;
        max-width: none;
        border-radius: 0;
        margin: 0;
    }

    .modal-image-col {
        height: 250px;
        order: -1;
    }

    .modal-display-img {
        max-width: 200px;
    }

    .modal-info-box {
        grid-template-columns: 1fr;
    }
}

/* Action Buttons - Distinct Colors */
/* Removed .modal-actions and .btn-add-cart/.btn-buy-now specific styles as per instruction to update to .modal-action-area */
.btn-action {
    flex: 1;
    padding: 0 25px;
    height: 50px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
    cursor: pointer;
    border: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Modal Action Area */
.modal-action-area {
    display: flex;
    gap: 20px;
    align-items: center;
    margin-top: auto;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
}

.modal-action-area .btn-action {
    flex: 2;
    background: var(--primary-red);
    color: white;
    box-shadow: 0 0 20px rgba(217, 4, 41, 0.4);
}

.modal-action-area .btn-action:hover {
    background: #ff0a33;
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(217, 4, 41, 0.6);
}


/* Description Area */
.modal-desc-area {
    margin-top: 10px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-desc-area h3 {
    font-size: 1.1rem;
    color: #fff;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.modal-desc-text {
    font-size: 0.95rem;
    color: #ccc;
    line-height: 1.7;
}

@media (max-width: 900px) {
    .modal-container {
        flex-direction: column;
        /* Stack on mobile */
        height: auto;
        max-height: 95vh;
        overflow-y: scroll;
        width: 100%;
        border-radius: 0;
    }

    .modal-image-col {
        padding: 40px;
        width: 100%;
        /* Full width on mobile */
        min-height: 250px;
        background: radial-gradient(circle at center, rgba(30, 30, 30, 0.8) 0%, #000 100%);
    }

    .modal-display-img {
        max-width: 200px;
    }

    .modal-details-col {
        width: 100%;
        /* Full width on mobile */
        padding: 30px 20px 100px;
        /* Extra padding at bottom for mobile scrolling */
        gap: 20px;
        overflow-y: visible;
        height: auto;
        min-height: auto;
    }

    /* Removed .modal-actions from here as it's replaced by .modal-action-area */
    /* Removed .btn-action from here as it's handled by the new .modal-action-area media query */
}

@media (max-width: 768px) {
    .modal-container-grid {
        grid-template-columns: 1fr !important;
    }

    .modal-details-col {
        padding: 20px;
    }

    .modal-features ul {
        grid-template-columns: 1fr;
    }

    .modal-options-grid {
        grid-template-columns: 1fr !important;
    }

    .modal-action-area {
        flex-direction: column;
    }

    .modal-action-area .btn-action {
        width: 100%;
    }
}

/* Footer Styles base */
.main-footer {
    background: radial-gradient(circle at bottom, #0d001a, #000);
    padding: 60px 0 20px;
    position: relative;
    overflow: hidden;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.main-footer::before {
    content: '';

    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary-red), var(--gold), var(--primary-red), transparent);
    box-shadow: 0 0 10px var(--primary-red);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

.footer-col h3 {
    color: var(--gold);
    font-size: 1.2rem;
    margin-bottom: 25px;
    text-transform: uppercase;
    text-shadow: 0 0 5px rgba(255, 215, 0, 0.3);
    border-bottom: 2px solid rgba(255, 0, 60, 0.3);
    padding-bottom: 10px;
    display: inline-block;
}

.mission-text {
    color: #bbb;
    margin: 20px 0;
    line-height: 1.8;
}

.footer-links,
.contact-info {
    list-style: none;
}

.footer-links li,
.contact-info li {
    margin-bottom: 15px;
}

.footer-links a {
    color: #ccc;
    text-decoration: none;
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-links a:hover {
    color: var(--primary-red);
    transform: translateX(5px);
    text-shadow: 0 0 8px var(--primary-red);
}

.badge-genuine {
    font-size: 0.7rem;
    background: rgba(255, 215, 0, 0.1);
    color: var(--gold);
    padding: 2px 6px;
    border: 1px solid var(--gold);
    border-radius: 4px;
    margin-left: 5px;
}

/* Social & Subscribe */
.social-links {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.social-icon {
    display: inline-block;
    width: 40px;
    height: 40px;
    transition: var(--transition-fast);
    border-radius: 50%;
}

.social-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.5));
}

.social-icon:hover {
    transform: scale(1.1);
    filter: drop-shadow(0 0 10px var(--primary-red));
}

.btn-subscribe {
    border-color: #ff0000;
    background: rgba(255, 0, 0, 0.1);
    font-weight: bold;
}

.btn-subscribe:hover {
    background: #ff0000;
    color: white;
    box-shadow: 0 0 15px #ff0000;
}

/* Trust Badge */
.trust-badge {
    display: flex;
    align-items: center;
    gap: 15px;
    background: linear-gradient(45deg, rgba(20, 20, 20, 0.8), rgba(40, 40, 40, 0.8));
    padding: 15px;
    border-radius: 8px;
    border-left: 3px solid var(--gold);
    margin-top: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.badge-icon {
    font-size: 2rem;
}

.trust-badge strong {
    color: var(--gold);
    display: block;
    margin-bottom: 2px;
}

/* Footer Bottom */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    text-align: center;
}

/* Search Overlay */
.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(5, 5, 5, 0.95);
    backdrop-filter: blur(10px);
    z-index: 9999;
    display: none;
    align-items: flex-start;
    justify-content: center;
    padding-top: 100px;
}

.search-overlay.active {
    display: flex;
}

.search-container {
    width: 90%;
    max-width: 800px;
}

.search-input-wrapper {
    position: relative;
    margin-bottom: 30px;
}

.search-input {
    width: 100%;
    padding: 20px 60px 20px 30px;
    font-size: 1.3rem;
    background: var(--glass-bg);
    border: 2px solid var(--primary-red);
    border-radius: 50px;
    color: var(--text-main);
    font-family: var(--font-body);
    outline: none;
    box-shadow: var(--glow-box);
    transition: var(--transition-fast);
}

.search-input:focus {
    border-color: var(--neon-red);
    box-shadow: 0 0 20px rgba(255, 46, 99, 0.5);
}

.search-input::placeholder {
    color: var(--text-muted);
}

.search-close-btn {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-main);
    font-size: 2rem;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition-fast);
}

.search-close-btn:hover {
    background: rgba(255, 46, 99, 0.2);
    color: var(--neon-red);
}

.search-results {
    max-height: 60vh;
    overflow-y: auto;
    padding: 10px 0;
}

.search-result-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 15px 20px;
    background: var(--glass-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: var(--transition-fast);
}

.search-result-item:hover {
    background: rgba(217, 4, 41, 0.1);
    border-color: var(--primary-red);
    transform: translateX(5px);
}

.search-result-logo {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    object-fit: contain;
    background: var(--bg-panel);
    padding: 5px;
}

.search-result-fallback {
    width: 50px;
    height: 50px;
    background: var(--bg-panel);
    color: var(--gold);
    border: 2px solid var(--primary-red);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: bold;
}

.search-result-info {
    flex: 1;
}

.search-result-name {
    color: var(--text-main);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.search-result-category {
    color: var(--primary-red);
    font-size: 0.85rem;
    text-transform: uppercase;
}

.search-no-results {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* Cart Sidebar */
.cart-sidebar {
    position: fixed;
    top: 0;
    right: -450px;
    width: 450px;
    height: 100%;
    background: var(--bg-dark);
    border-left: 2px solid var(--primary-red);
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.8);
    z-index: 10000;
    transition: right 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    display: flex;
    flex-direction: column;
}

.cart-sidebar.active {
    right: 0;
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px;
    background: linear-gradient(135deg, rgba(217, 4, 41, 0.1), rgba(178, 75, 243, 0.1));
    border-bottom: 2px solid var(--primary-red);
}

.cart-header h2 {
    color: var(--gold);
    font-family: var(--font-heading);
    font-size: 1.5rem;
}

.cart-close-btn {
    background: none;
    border: none;
    color: var(--text-main);
    font-size: 2.5rem;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition-fast);
}

.cart-close-btn:hover {
    background: rgba(255, 46, 99, 0.2);
    color: var(--neon-red);
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.cart-item {
    display: flex;
    gap: 15px;
    background: var(--glass-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 12px;
    transition: var(--transition-fast);
}

.cart-item:hover {
    border-color: var(--primary-red);
    box-shadow: 0 0 15px rgba(217, 4, 41, 0.2);
}

.cart-item-image {
    width: 60px;
    height: 60px;
    background: var(--bg-panel);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 5px;
}

.cart-item-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-panel);
    color: var(--gold);
    font-weight: bold;
    font-size: 1.2rem;
    border: 2px solid var(--primary-red);
    border-radius: 8px;
}

.cart-item-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.cart-item-name {
    color: var(--text-main);
    font-weight: 600;
    font-size: 1rem;
}

.cart-item-plan {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.cart-item-price {
    color: var(--gold);
    font-weight: 700;
    font-size: 1.1rem;
    margin-top: auto;
}

.cart-item-remove {
    background: rgba(255, 0, 0, 0.1);
    border: 1px solid rgba(255, 0, 0, 0.3);
    color: #f00;
    padding: 5px 10px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: var(--transition-fast);
    align-self: flex-start;
}

.cart-item-remove:hover {
    background: rgba(255, 0, 0, 0.2);
}

.cart-empty {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    text-align: center;
}

.empty-icon {
    font-size: 5rem;
    margin-bottom: 20px;
    opacity: 0.3;
}

.cart-empty h3 {
    color: var(--gold);
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.cart-empty p {
    color: var(--text-muted);
    margin-bottom: 25px;
}

.btn-continue-shopping {
    padding: 12px 30px;
    background: var(--primary-red);
    border: none;
    border-radius: 8px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-fast);
    box-shadow: var(--glow-box);
}

.btn-continue-shopping:hover {
    background: var(--neon-red);
    box-shadow: 0 0 25px rgba(255, 46, 99, 0.5);
}

.cart-footer {
    padding: 20px;
    background: rgba(0, 0, 0, 0.5);
    border-top: 2px solid var(--primary-red);
}

.cart-subtotal {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    font-size: 1.2rem;
}

.cart-subtotal span:first-child {
    color: var(--text-main);
    font-weight: 600;
}

.subtotal-amount {
    color: var(--gold);
    font-weight: 700;
    font-size: 1.4rem;
    font-family: var(--font-heading);
}

.cart-note {
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-bottom: 20px;
    font-style: italic;
}

.cart-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.btn-view-cart {
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: var(--text-main);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-fast);
}

.btn-view-cart:hover {
    background: rgba(217, 4, 41, 0.15);
    border-color: var(--primary-red);
}

.btn-checkout {
    padding: 14px;
    background: linear-gradient(135deg, var(--primary-red), var(--neon-purple));
    border: none;
    border-radius: 8px;
    color: white;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    transition: var(--transition-fast);
    box-shadow: var(--glow-box);
}

.btn-checkout:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(255, 46, 99, 0.6);
}

@media (max-width: 768px) {
    .cart-sidebar {
        width: 100%;
        right: -100%;
    }
}

.payment-methods {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.payment-icons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.pay-icon {
    background: #fff;
    color: #333;
    padding: 4px 10px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.8rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.copyright {
    color: #666;
    font-size: 0.85rem;
}

@media (min-width: 768px) {
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }

    .payment-methods {
        flex-direction: row;
    }
}

/* Official Product Logo Styling - REMOVED */

/* Animated Background Canvas */
#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

/* Quantity Selector & related styles moved out of #bg-canvas nesting */
.quantity-selector-container {
    margin: 20px 0;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(255, 255, 255, 0.05);
    padding: 10px;
    border-radius: 8px;
    width: fit-content;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.qty-btn {
    background: var(--primary-red);
    color: white;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

.qty-btn:hover {
    background: var(--neon-red);
    box-shadow: 0 0 10px var(--neon-red);
}

#qty-count {
    color: var(--gold);
    font-size: 1.2rem;
    font-weight: 700;
    min-width: 30px;
    text-align: center;
}

/* Checkout Modal Styles */
.checkout-container {
    background: #111;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.8);
    border-radius: 16px;
    width: 90%;
    max-width: 900px;
    max-height: 85vh;
    /* Restrict height to 85% of viewport */
    overflow-y: auto;
    /* Enable internal scrolling */
    position: relative;
    padding: 30px;
    transform: translateY(20px) scale(0.98);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-overlay.active .checkout-container {
    transform: translateY(0) scale(1);
}

.checkout-header {
    text-align: center;
    margin-bottom: 25px;
}

.checkout-header h2 {
    color: #fff;
    margin-bottom: 10px;
}

.checkout-section {
    background: rgba(255, 255, 255, 0.03);
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.checkout-section h3 {
    color: var(--primary-red);
    font-size: 1.1rem;
    margin-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 8px;
}

/* Order Summary */
.checkout-items-list {
    margin-bottom: 15px;
    font-size: 0.95rem;
    color: #ddd;
}

.checkout-total {
    display: flex;
    justify-content: space-between;
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--gold-accent);
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Form Styles */
.checkout-grid-row {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    color: #aaa;
    margin-bottom: 5px;
    font-size: 0.9rem;
}

.form-group input {
    width: 100%;
    padding: 12px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #fff;
    font-family: inherit;
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-red);
    box-shadow: 0 0 10px rgba(217, 4, 41, 0.2);
}

/* Payment Methods Grid */
.payment-methods-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 15px;
}

.payment-option {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid transparent;
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.payment-option:hover {
    background: rgba(255, 255, 255, 0.1);
}

.payment-option.selected {
    border-color: var(--gold-accent);
    background: rgba(255, 215, 0, 0.1);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.2);
}

.payment-option .pay-text {
    font-weight: 700;
    display: block;
}

/* Utility */
.full-width {
    width: 100%;
    padding: 15px;
    font-size: 1.1rem;
}

/* Floating Chat Widget */
.chat-widget {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 15px;
}

.chat-toggle {
    width: 60px;
    height: 60px;
    background: var(--primary-red);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    cursor: pointer;
    box-shadow: 0 5px 20px rgba(217, 4, 41, 0.4);
    border: none;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    animation: pulse-red 2s infinite;
}

.chat-toggle:hover {
    transform: scale(1.1);
}

.chat-toggle svg {
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.chat-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
    opacity: 0;
    transform: translateY(20px) scale(0.9);
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.chat-widget.active .chat-options {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: all;
}

.chat-widget.active .chat-toggle {
    transform: rotate(45deg);
    background: #333;
    animation: none;
}

.chat-link {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(17, 17, 17, 0.9);
    backdrop-filter: blur(10px);
    padding: 10px 15px;
    border-radius: 30px;
    color: #fff;
    text-decoration: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.2s ease;
    width: max-content;
}

.chat-link:hover {
    transform: translateX(-5px);
}

.chat-icon {
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.chat-label {
    font-weight: 500;
    font-size: 0.9rem;
    padding-right: 5px;
}

/* Specific Colors */
.whatsapp .chat-icon {
    background: #25D366;
}

.telegram .chat-icon {
    background: #0088cc;
}

.messenger .chat-icon {
    background: #0084FF;
}

@keyframes pulse-red {
    0% {
        box-shadow: 0 0 0 0 rgba(217, 4, 41, 0.7);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(217, 4, 41, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(217, 4, 41, 0);
    }
}

/* FIX: Custom Footer Grid for Large Screens to allow big Trust Badge */
@media (min-width: 1200px) {
    .footer-content {
        grid-template-columns: 1fr 0.8fr 0.8fr 1.8fr;
    }
}

/* Payment Method Logos */
.payment-logo {
    width: 80px;
    height: 50px;
    object-fit: contain;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: #fff;
    padding: 2px;
    transition: transform 0.2s ease;
}

.payment-logo:hover {
    transform: scale(1.1);
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
    border-color: var(--gold);
}

/* =========================================
   Auto-Play Product Carousel (Marquee)
   ========================================= */
.offer-carousel-section {
    width: 100%;
    overflow: hidden;
    background: var(--bg-panel);
    padding: 20px 0;
    border-bottom: 1px solid rgba(255, 215, 0, 0.1);
}

.marquee-wrapper {
    width: 100%;
    overflow: hidden;
    position: relative;
}

.marquee-track {
    display: flex;
    gap: 20px;
    width: max-content;
    /* Important for marquee to work */
    animation: scroll-rtl 30s linear infinite;
}

/* Pause animation on hover */
.marquee-track:hover {
    animation-play-state: paused;
}

@keyframes scroll-rtl {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.offer-card {
    flex: 0 0 auto;
    width: 280px;
    background: linear-gradient(145deg, #1a1a1a, #0d0d0d);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: transform 0.3s ease, border-color 0.3s ease;
    user-select: none;
    /* Prevent text selection while dragging/scrolling */
}

.offer-card:hover {
    transform: translateY(-5px);
    border-color: var(--gold);
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.1);
}

.offer-card-img {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    object-fit: cover;
}

.offer-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.offer-name {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-main);
    margin: 0;
}

.offer-desc {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.offer-badge {
    background: var(--primary-red);
    color: white;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 4px;
    width: fit-content;
    font-weight: bold;
}

.offer-btn {
    background: transparent;
    border: 1px solid var(--gold);
    color: var(--gold);
    border-radius: 4px;
    padding: 5px 10px;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 5px;
    width: 100%;
}

.offer-btn:hover {
    background: var(--gold);
    color: black;
}

/* =========================================
   Trailer Showcase Section (Dedicated)
   ========================================= */
.trailer-showcase-section {
    position: relative;
    width: 100%;
    height: 60vh;
    /* Cinematic height */
    min-height: 400px;
    background: #000;
    overflow: hidden;
    border-bottom: 2px solid var(--primary-red);
}

/* =========================================
   Hero Trailer Carousel (Background)
   ========================================= */
.hero {
    position: relative;
    overflow: hidden;
    /* Ensure content stays on top */
}

/* Container for the background carousel */
.hero-trailer-carousel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    opacity: 1;
    /* Full visibility as requested */
    pointer-events: auto;
}

/* Gradient overlay to blend edges from bottom only */
.hero-overlay-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, #000 0%, transparent 20%);
    pointer-events: none;
    z-index: 2;
}

.hero-marquee-track {
    /* Used as a wrapper now */
    width: 100%;
    height: 100%;
    position: relative;
}

/* Individual Fullscreen Slides */
.trailer-card {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    background: #000;
    border: none;
    border-radius: 0;
    z-index: 1;
}

.trailer-card.active {
    opacity: 1;
    z-index: 2;
}

.trailer-img,
.trailer-video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* Shows full content without cropping */
    object-position: center;
}

.trailer-video {
    display: block;
    opacity: 0;
    transition: opacity 0.5s ease;
    /* Ensure it stays on top of image but hidden until ready */
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
}

.trailer-img {
    position: relative;
    z-index: 1;
    opacity: 1;
    transition: opacity 0.5s ease;
}

/* State-based visibility controlled by JS */
.trailer-card.video-playing .trailer-video {
    opacity: 1;
}

.trailer-card.video-playing .trailer-img {
    opacity: 0;
}

/* Sound Toggle Button */
.sound-toggle-btn {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
    font-size: 1.2rem;
}

.sound-toggle-btn:hover {
    background: var(--primary-red);
    border-color: var(--primary-red);
    transform: scale(1.1);
}

/* Hero Navigation Buttons */
.hero-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 1.5rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    line-height: 1;
}

.hero-nav:hover {
    background: var(--gold);
    color: black;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
    border-color: var(--gold);
}

.hero-nav.prev {
    left: 20px;
}

.hero-nav.next {
    right: 20px;
}

/* =========================================
   Mobile Header Optimization
   ========================================= */
@media (max-width: 768px) {
    .main-header .social-links {
        display: none !important;
        /* Hide social icons on mobile to prevent clutter */
    }

    .header-content {
        justify-content: space-between;
        padding: 0 10px;
    }

    .logo-wrapper {
        width: 50px;
        height: 50px;
    }

    .header-icons {
        gap: 10px;
    }

    .icon-btn {
        width: 35px;
        height: 35px;
        font-size: 1.2rem;
        padding: 8px;
        min-width: 35px;
        min-height: 35px;
    }
}


/* =========================================
   SAFE MODAL SYSTEM (No Layout Breakage)
   ========================================= */
.safe-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    z-index: 9999;
    /* Highest priority */
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.safe-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Modal Content Card */
.safe-modal-content {
    position: relative;
    background: rgba(20, 20, 20, 0.95);
    border: 1px solid rgba(255, 215, 0, 0.3);
    padding: 30px;
    border-radius: 20px;
    width: 700px;
    height: 700px;
    /* Square Shape */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    /* PC Default Size */
    max-width: 90%;
    text-align: center;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.8);
    transform: scale(0.8);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Mobile Specific Size for Modals */
@media (max-width: 768px) {
    .safe-modal-content {
        width: 90% !important;
        padding: 20px !important;
        width: 85% !important;
        /* Slightly smaller for better borders */
        height: auto !important;
        /* Reset square height for mobile */
    }
}

.safe-modal-overlay.active .safe-modal-content {
    transform: scale(1);
}

/* Close Button */
.safe-close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    color: #888;
    font-size: 2rem;
    cursor: pointer;
    transition: 0.3s;
}

.safe-close-btn:hover {
    color: var(--primary-red);
    transform: rotate(90deg);
}

/* Offer Specifics */
.offer-style {
    border-color: var(--primary-red);
    background: linear-gradient(160deg, #1a0505 0%, #000 100%);
}

.offer-badge-float {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-red);
    color: white;
    padding: 5px 20px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.9rem;
    box-shadow: 0 0 20px rgba(217, 4, 41, 0.5);
}

.offer-style h2 {
    color: var(--gold);
    margin: 15px 0 10px;
    font-size: 1.8rem;
}

.offer-timer {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    margin: 15px 0 20px;
    font-family: monospace;
    background: rgba(255, 255, 255, 0.1);
    padding: 10px;
    border-radius: 8px;
}

/* Thank You Specifics */
.success-style {
    border-color: #25D366;
    /* WhatsApp Green */
}

.success-icon-anim {
    width: 80px;
    height: 80px;
    background: #25D366;
    border-radius: 50%;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 30px rgba(37, 211, 102, 0.4);
    animation: popUp 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.checkmark-svg {
    width: 40px;
    height: 40px;
}

.success-style h2 {
    color: #fff;
    margin-bottom: 10px;
}

.sub-text {
    font-size: 0.9rem;
    color: #aaa;
    margin-bottom: 25px;
}

@keyframes popUp {
    0% {
        transform: scale(0);
    }

    100% {
        transform: scale(1);
    }
}

/* =========================================
   Category Dashboard Styles
   ========================================= */
/* =========================================
   3D ROTATING CAROUSEL DASHBOARD
   ========================================= */

/* The Scene Container */
.scene-3d {
    width: 100%;
    height: 600px;
    perspective: 1200px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: visible;
    pointer-events: auto;
    /* ENABLE DRAG */
    cursor: grab;
}

/* The Carousel Ring */
.carousel-3d {
    width: 100%;
    height: 100%;
    position: absolute;
    transform-style: preserve-3d;
    /* animation: rotateCarousel 80s infinite linear; <-- DISABLED BY JS */
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: auto;
    /* ENABLE DRAG */
    transition: transform 0.1s ease-out;
    /* Smooth drag */
}

.scene-3d:active {
    cursor: grabbing;
}

@keyframes rotateCarousel {
    from {
        transform: rotateY(0deg);
    }

    to {
        transform: rotateY(360deg);
    }
}

/* Individual Cards in 3D Space */
.category-card-3d {
    position: absolute;
    width: 220px;
    height: 150px;
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid var(--gold);
    border-radius: 15px;
    /* Typography */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.2);
    backface-visibility: visible;
    backface-visibility: visible;
    transition: background 0.3s, transform 0.3s;
    /* FIX: Force Interactions */
    pointer-events: auto !important;
    /* Force re-enable */
    cursor: pointer;
}

/* Ensure content is readable */


.category-card-3d:hover {
    background: var(--gold);
    color: #000;
    box-shadow: 0 0 40px rgba(255, 215, 0, 0.6);
    /* transform: scale(1.1) !important; <-- REMOVED */
    z-index: 10;
}

.category-card-3d h3 {
    margin: 0;
    font-size: 1rem;
    color: inherit;
    /* Inherit form parent (white or black) */
    text-shadow: none;
    text-align: center;
}

.category-card-3d .category-icon {
    font-size: 2.5rem;
    color: var(--primary-red);
    margin: 0;
}

.category-card-3d:hover .category-icon {
    color: #000;
}

/* 3D Product Card Styles */
/* 3D Product Card Styles */
.product-card-3d {
    position: absolute;
    width: 320px;
    height: 450px;
    /* Move background/border to inner for clean scaling */
    background: transparent;
    border: none;
    perspective: 1000px;
    /* For inner 3d pop */
    cursor: pointer;
    /* Keep position stable */
    backface-visibility: visible;
    transform-style: preserve-3d;
    transform-origin: center center;
    /* Ensure scaling is perfectly centered */
    pointer-events: auto !important;
    /* FIX: Force Interactions */
    cursor: pointer;
    cursor: pointer;
    /* FIX */
}

/* Inner Wrapper handles the visuals */
.product-card-inner {
    width: 100%;
    height: 100%;
    background: rgba(15, 15, 15, 0.98);
    border: 2px solid var(--gold);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 25px;
    gap: 20px;
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.2);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    /* Bouncy pop */
    transform-style: preserve-3d;
    transform-origin: center center;
    /* Ensure scaling is perfectly centered */
}

/* Hover Effect on Inner Wrapper */
.product-card-3d:hover .product-card-inner {
    background: var(--gold);
    color: #000;
    box-shadow: 0 0 80px rgba(255, 215, 0, 0.9);
    /* Stronger Glow */
    transform: scale(1.15) translateZ(50px);
    /* Significant Zoom */
    border-color: #fff;
}

.product-card-3d:hover {
    z-index: 1000;
    /* Ensure parent comes on top in 3D space */
}

/* Update children selector to look inside inner */
.product-card-inner .product-logo-wrapper {
    width: 100%;
    height: 220px;
    overflow: hidden;
    border-radius: 12px;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transform: translateZ(20px);
    /* Pop out image usually */
}

.product-card-inner .product-logo-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 10px;
}

.product-card-inner .product-info {
    text-align: center;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 5px;
    transform: translateZ(30px);
    /* Text pops out more */
}

.product-card-inner h4 {
    margin: 5px 0;
    font-size: 1.4rem;
    font-weight: 700;
    color: inherit;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-card-inner .price-tag {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--primary-red);
    margin-bottom: 5px;
}

.product-card-inner:hover .price-tag {
    color: #000;
}

.product-card-inner .btn-buy {
    background: var(--primary-red);
    color: white;
    padding: 12px 30px;
    border-radius: 25px;
    border: none;
    font-weight: bold;
    font-size: 1rem;
    width: 100%;
    margin-top: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: background 0.3s;
    /* FIX: Force Clickability */
    position: relative;
    z-index: 10001;
    pointer-events: auto;
    cursor: pointer;
}

.product-card-inner:hover .btn-buy {
    background: #000;
    color: var(--gold);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}


/* Category View Controls */
.category-view-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.btn-back {
    background: transparent;
    border: 1px solid var(--primary-red);
    color: var(--primary-red);
    padding: 10px 20px;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

.btn-back:hover {
    background: var(--primary-red);
    color: #fff;
    box-shadow: 0 0 15px rgba(255, 46, 99, 0.4);
}

/* Make grid responsive on mobile */
@media (max-width: 600px) {
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
        /* 2 columns on mobile */
        gap: 15px;
    }

    .category-card {
        padding: 20px 10px;
    }

    .category-card h3 {
        font-size: 0.9rem;
    }

    .category-icon {
        font-size: 2rem;
    }
}


/* =========================================
   High Profile Header (Zamve Style)
   ========================================= */
.main-header {
    background: rgba(10, 10, 10, 0.95);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    padding: 15px 0;
}

.header-top-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 15px;
    min-width: 200px;
}

.mobile-menu-btn {
    display: none;
    /* Show on mobile */
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
}

.logo-img {
    height: 50px;
    width: auto;
}

/* Search System */
.header-search-container {
    flex: 1;
    max-width: 700px;
    position: relative;
    display: flex;
    align-items: center;
}

.modern-search-input {
    width: 100%;
    background: #1a1a1a;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px 0 0 50px;
    padding: 12px 25px;
    color: #fff;
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
}

.modern-search-input:focus {
    border-color: var(--primary-red);
    box-shadow: 0 0 15px rgba(217, 4, 41, 0.2);
}

.modern-search-btn {
    background: var(--primary-red);
    border: none;
    padding: 0 25px;
    height: 48px;
    /* Match input height roughly */
    border-radius: 0 50px 50px 0;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.modern-search-btn:hover {
    background: var(--neon-red);
}

/* User Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 25px;
}

.action-item {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    color: #fff;
    transition: transform 0.2s ease;
}

.action-item:hover {
    transform: translateY(-2px);
}

.action-icon {
    font-size: 1.5rem;
    position: relative;
}

.action-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.action-text small {
    color: #888;
    font-size: 0.75rem;
}

.action-text span {
    font-weight: 600;
    font-size: 0.9rem;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--primary-red);
    color: #fff;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 50%;
    font-weight: bold;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}

.search-results-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #111;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0 0 15px 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
    z-index: 1001;
    max-height: 400px;
    overflow-y: auto;
    display: none;
}

.search-results-dropdown.active {
    display: block;
}


/* =========================================
   Phase 2: Main Layout (Sidebar + Content)
   ========================================= */
.main-layout-wrapper {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 30px;
    margin-top: 30px;
    margin-bottom: 50px;
}

/* Sidebar Styles */
.sidebar-menu {
    background: #111;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    overflow: hidden;
    height: fit-content;
    position: sticky;
    top: 100px;
}

.sidebar-header {
    background: var(--primary-red);
    color: #fff;
    padding: 15px 20px;
    font-weight: 700;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sidebar-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: background 0.2s ease;
}

.sidebar-item:last-child {
    border-bottom: none;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 20px;
    color: #ccc;
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.sidebar-link:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--gold);
    padding-left: 25px;
}

.sidebar-icon {
    width: 25px;
    text-align: center;
    font-size: 1.2rem;
}

/* Main Content Adjustment */
.content-area-wrapper {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* Mobile Responsive Layout */
@media (max-width: 992px) {
    .main-layout-wrapper {
        grid-template-columns: 1fr;
    }

    .sidebar-menu {
        display: none;
        /* Hide sidebar on mobile (use drawer later) */
    }
}


/* =========================================
   Phase 2: Main Layout (Sidebar + Content)
   ========================================= */
.main-layout-wrapper {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 30px;
    margin-top: 30px;
    margin-bottom: 50px;
}

/* Sidebar Styles */
.sidebar-menu {
    background: #111;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    overflow: hidden;
    height: fit-content;
    display: block;
    /* Force display */
    position: sticky;
    top: 100px;
}

.sidebar-header {
    background: var(--primary-red);
    color: #fff;
    padding: 15px 20px;
    font-weight: 700;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sidebar-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: background 0.2s ease;
}

.sidebar-item:last-child {
    border-bottom: none;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 20px;
    color: #ccc;
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.sidebar-link:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--gold);
    padding-left: 25px;
}

.sidebar-icon {
    width: 25px;
    text-align: center;
    font-size: 1.2rem;
}

/* Main Content Adjustment */
.content-area-wrapper {
    display: flex;
    flex-direction: column;
    gap: 30px;
    width: 100%;
}

/* Mobile Responsive Layout */
@media (max-width: 992px) {
    .main-layout-wrapper {
        grid-template-columns: 1fr;
    }

    .sidebar-menu {
        display: none;
        /* Hide sidebar on mobile (use drawer later) */
    }
}

/* =========================================
   Auth Modal Styles (Login/Register)
   ========================================= */
.auth-modal-content {
    background: rgba(15, 15, 15, 0.95);
    border: 1px solid rgba(255, 0, 85, 0.3);
    box-shadow: 0 0 30px rgba(255, 0, 85, 0.2);
    border-radius: 20px;
    padding: 40px;
    width: 100%;
    max-width: 520px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.auth-tabs {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 15px;
}

.auth-tab {
    background: transparent;
    border: none;
    color: #888;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    padding: 10px 20px;
    transition: var(--transition-medium);
    font-family: var(--font-heading);
}

.auth-tab.active {
    color: #fff;
    border-bottom: 2px solid var(--primary-red);
}

.auth-form {
    display: none;
    animation: fadeIn 0.4s ease;
}

.auth-form.active {
    display: block;
}

.auth-form h3 {
    text-align: center;
    margin-bottom: 20px;
    color: var(--gold);
    font-size: 1.8rem;
}

.auth-form .form-group {
    margin-bottom: 20px;
}

.auth-form .form-group label {
    display: block;
    margin-bottom: 8px;
    color: #ccc;
    font-size: 0.9rem;
}

.auth-form .form-group input {
    width: 100%;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #fff;
    font-size: 1rem;
    transition: 0.3s;
}

.auth-form .form-group input:focus {
    border-color: var(--primary-red);
    outline: none;
    box-shadow: 0 0 10px rgba(255, 0, 85, 0.2);
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 20px;
}

.checkbox-group input {
    width: auto !important;
    margin-top: 4px;
    accent-color: var(--primary-red);
}

.checkbox-group label {
    font-size: 0.85rem !important;
    color: #ccc !important;
    line-height: 1.4;
    cursor: pointer;
}

.checkbox-group a {
    color: var(--gold);
    text-decoration: none;
}

.checkbox-group a:hover {
    text-decoration: underline;
}

.full-width {
    width: 100%;
    margin-top: 10px;
    display: block;
}

.auth-footer {
    text-align: center;
    margin-top: 20px;
    color: #888;
    font-size: 0.9rem;
}

.auth-footer a {
    color: var(--neon-red);
    text-decoration: none;
    font-weight: 600;
}

.auth-footer a:hover {
    text-decoration: underline;
}



/* Social Login Buttons */
.social-login-options {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.btn-social {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #fff;
    font-family: var(--font-body);
}

.btn-google {
    background: #fff;
    color: #333;
    border: 1px solid #ddd;
}

.btn-google:hover {
    background: #f1f1f1;
}

.btn-facebook {
    background: #1877F2;
    color: #fff;
}

.btn-facebook:hover {
    background: #166fe5;
}

.social-divider {
    text-align: center;
    margin: 15px 0;
    position: relative;
    color: #aaa;
    font-size: 0.85rem;
}

.social-divider::before,
.social-divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 40%;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
}

.social-divider::before {
    left: 0;
}

.social-divider::after {
    right: 0;
}

/* =========================================
   Fake Sales Notification Popup
   ========================================= */
.sales-notification {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background: rgba(20, 20, 20, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-left: 3px solid var(--primary-red);
    padding: 15px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    gap: 15px;
    z-index: 9999;
    min-width: 300px;
    max-width: 350px;
    transform: translateX(-150%);
    transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.6s ease;
    opacity: 0;
    pointer-events: none;
    /* Prevent clicks initially */
}

.sales-notification.active {
    transform: translateX(0);
    opacity: 1;
    pointer-events: auto;
}

.sales-notification img {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.sales-notification-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.sales-notification-text {
    font-size: 0.9rem;
    color: #eee;
    line-height: 1.4;
}

.sales-notification-text strong {
    color: #fff;
    font-weight: 700;
}

.sales-notification-time {
    font-size: 0.75rem;
    color: #aaa;
}

.sales-notification-close {
    position: absolute;
    top: 5px;
    right: 8px;
    color: #666;
    font-size: 1rem;
    cursor: pointer;
    background: transparent;
    border: none;
}

.sales-notification-close:hover {
    color: #fff;
}

@media (max-width: 768px) {
    .sales-notification {
        bottom: 10px;
        /* Lower on mobile */
        left: 10px;
        right: 10px;
        /* Full widthish */
        max-width: none;
        width: auto;
        transform: translateY(150%);
        /* Slide UP on mobile */
    }

    .sales-notification.active {
        transform: translateY(0);
    }
}


/* =========================================
   Premium Category Card Redesign (PSD Style)
   ========================================= */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    padding: 20px 0;
}

.category-card {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.01) 100%);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Glow Effect */
.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(255, 46, 99, 0.2), transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 0;
}

.category-card:hover {
    transform: translateY(-5px) scale(1.02);
    border-color: var(--primary-red);
    box-shadow: 0 15px 40px rgba(255, 46, 99, 0.15);
}

.category-card:hover::before {
    opacity: 1;
}

.category-icon {
    font-size: 3rem;
    color: var(--gold);
    /* Classy Gold */
    z-index: 1;
    transition: all 0.4s ease;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
    /* Gradient Text Effect */
    background: linear-gradient(to bottom, #FFD700, #FFA500);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.category-card:hover .category-icon {
    transform: scale(1.1) rotate(5deg);
    filter: drop-shadow(0 0 15px rgba(255, 215, 0, 0.6));
}

.category-card h3 {
    color: #fff;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center;
    z-index: 1;
    margin: 0;
    font-family: var(--font-heading);
    transition: color 0.3s;
}

.category-card:hover h3 {
    color: var(--primary-red);
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
        /* 2 Columns on Mobile */
        gap: 15px;
    }

    .category-card {
        padding: 20px 10px;
    }

    .category-icon {
        font-size: 2.2rem;
    }

    .category-card h3 {
        font-size: 0.8rem;
    }
}

/* =========================================
   User Dashboard & Login Styles
   ========================================= */

/* Logged In Indicator */
.icon-btn.user-btn.logged-in::after {
    content: '';
    position: absolute;
    bottom: 5px;
    right: 5px;
    width: 10px;
    height: 10px;
    background: #00ff88;
    border-radius: 50%;
    border: 2px solid var(--bg-panel);
    box-shadow: 0 0 5px #00ff88;
}

/* Dashboard Modal Specifics */
.auth-modal-content.dashboard-style {
    max-width: 1600px;
    /* Very wide */
    width: 90%;
    /* Almost full screen width */
    border: 1px solid var(--gold);
    box-shadow: 0 0 40px rgba(255, 215, 0, 0.3);
    min-height: 80vh;
    /* Taller height for immersive feel */
    display: flex;
    flex-direction: column;
}

.dashboard-header {
    text-align: center;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.user-avatar-large {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-red), var(--purple));
    border-radius: 50%;
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    font-weight: bold;
    color: white;
    border: 3px solid var(--gold);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.3);
}

#dashboard-username {
    color: var(--gold);
    font-size: 1.4rem;
    margin-bottom: 5px;
}

#dashboard-email {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.user-badge {
    display: inline-block;
    background: rgba(255, 215, 0, 0.2);
    color: var(--gold);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    border: 1px solid var(--gold);
}

.dashboard-section {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 20px;
}

.dashboard-section h4 {
    margin-bottom: 15px;
    color: white;
    font-size: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 8px;
}

.dashboard-stat {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.status-active {
    color: #00ff88;
    font-weight: bold;
}

.btn-logout {
    background: transparent;
    border: 1px solid rgba(255, 46, 99, 0.5);
    color: var(--neon-red);
}

.btn-logout:hover {
    background: rgba(255, 46, 99, 0.1);
    box-shadow: 0 0 15px rgba(255, 46, 99, 0.2);
}

/* Forced Z-Index Override for Auth Modal */
.auth-modal-overlay {
    z-index: 99999 !important;
    background: rgba(0, 0, 0, 0.8);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    align-items: center;
    justify-content: center;
}

.auth-modal-overlay.active {
    display: flex !important;
}

.auth-modal-content {
    z-index: 100000 !important;
    position: relative !important;
    top: auto !important;
    left: auto !important;
    transform: none !important;
}

/* =========================================
   Hero Inline Auth Dashboard Styles
   ========================================= */
.hero-auth-wrapper {
    max-width: 400px;
    margin: 30px auto 0;
    position: relative;
    z-index: 5;
}

.hero-inline-card {
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 0.5s ease;
}

.auth-title {
    color: #fff;
    text-align: center;
    margin-bottom: 20px;
    font-size: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 2px solid var(--primary-red);
    display: inline-block;
    padding-bottom: 5px;
}

.inline-avatar {
    margin: 0 auto 15px;
    width: 60px;
    height: 60px;
    font-size: 2rem;
}

.inline-email {
    color: #aaa;
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.inline-logout {
    margin-top: 10px;
    color: #ff4444 !important;
    border-color: #ff4444 !important;
}

.hero-dashboard-actions {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Ensure input fields inside hero look good */
#hero-login-inline input {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

#hero-login-inline input:focus {
    background: rgba(255, 255, 255, 0.2);
    border-color: var(--gold);
}

/* Hero Layout Adjustments (Reduced Gap & New Order) */
.hero-premium {
    padding-top: 50px !important;
    padding-bottom: 50px !important;
    min-height: auto !important;
}

.hero-logo-wrapper {
    margin-bottom: 20px !important;
}

.hero-heading {
    margin-top: 30px !important;
}

#hero-auth-wrapper {
    margin-top: 10px !important;
    margin-bottom: 25px !important;
    max-width: 480px !important;
}

.hero-value-props {
    margin-top: 30px !important;
}

/* Hero Layout Compact Refinements V3 */
.hero-premium {
    padding-top: 10px !important;
    padding-bottom: 30px !important;
    overflow: hidden !important;
    /* Fix for horizontal gap */
    position: relative;
    width: 100%;
}

.hero-logo-wrapper {
    margin-bottom: 15px !important;
    transform: scale(0.9);
}

#hero-auth-wrapper {
    margin-top: 0px !important;
    margin-bottom: 15px !important;
    max-width: 350px !important;
}

.hero-inline-card {
    padding: 45px !important;
    border-radius: 25px !important;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7) !important;
    backdrop-filter: blur(15px) !important;
}

.auth-title {
    font-size: 1.8rem !important;
    margin-bottom: 25px !important;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}

.auth-footer {
    margin-top: 10px !important;
}

.hero-heading {
    margin-top: 15px !important;
    font-size: 2.2rem !important;
}

.hero-value-props {
    margin-top: 20px !important;
}

@media (max-width: 768px) {
    .hero-premium {
        padding-top: 20px !important;
    }

    .hero-heading {
        font-size: 1.8rem !important;
    }
}

/* FINAL FIX: Auth Modal Visibility Logic */
.auth-modal-overlay {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.auth-modal-overlay.active {
    display: flex !important;
    opacity: 1 !important;
    visibility: visible !important;
    z-index: 2147483647 !important;
    /* MAX integer value */
}

/* Enhanced Registration Form Styles */
.error-message {
    display: block;
    color: #ff4444;
    font-size: 0.85rem;
    margin-top: 5px;
    min-height: 18px;
}

.password-requirements {
    margin-top: 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.requirement {
    color: #888;
    font-size: 0.8rem;
    transition: color 0.3s;
}

.requirement.valid {
    color: #25D366;
}

.requirement.valid::before {
    content: '';
    margin-right: 4px;
}

.checkbox-group {
    margin: 20px 0;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    color: #ccc;
    font-size: 0.9rem;
    line-height: 1.5;
}

.checkbox-label input[type='checkbox'] {
    margin-top: 3px;
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--primary-red);
}

.checkbox-label a {
    color: var(--neon-red);
    text-decoration: underline;
}

.checkbox-label a:hover {
    color: var(--gold);
}

button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    filter: grayscale(50%);
}

#register-success-message {
    animation: fadeInScale 0.5s ease;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Auth Modal Active State */
.auth-modal-overlay.active {
    display: flex !important;
    opacity: 1 !important;
}

/* Auth Modal Overlay Base */
.auth-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    z-index: 100000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    /* APK Optimization: Force Hardware Acceleration */
    transform: translateZ(0);
    will-change: opacity;
}

.auth-modal-overlay.active {
    display: flex !important;
    opacity: 1 !important;
}

/* =========================================
   MOBILE RESPONSIVENESS FIXES (Final Polish)
   ========================================= */
@media (max-width: 600px) {

    /* 1. Auth Modal Compactness */
    .auth-modal-content {
        padding: 20px 15px !important;
        width: 90% !important;
        max-width: 90% !important;
        max-height: 90vh;
        overflow-y: auto;
        /* Scroll if content (keyboard) pushes up */
    }

    .auth-tab {
        padding: 8px 12px;
        font-size: 0.95rem;
    }

    .btn-social {
        font-size: 0.85rem;
        /* Smaller text on social buttons */
        padding: 10px;
    }

    /* 2. Inline Auth Card on Mobile */
    #hero-auth-wrapper {
        max-width: 100% !important;
        margin-left: 15px !important;
        margin-right: 15px !important;
    }

    .hero-inline-card {
        padding: 20px 15px !important;
    }

    .auth-title {
        font-size: 1.1rem !important;
    }

    /* 3. Hero Adjustments */
    .hero-heading {
        font-size: 1.6rem !important;
        padding: 0 10px;
    }

    .hero-logo-img {
        max-width: 160px;
        /* Prevent huge logo on mobile */
        height: auto;
    }

    /* 4. Sales Notification Mobile */
    .sales-notification {
        width: calc(100% - 30px);
        left: 15px;
        right: 15px;
        bottom: 15px;
        flex-direction: row;
        /* Keep horizontal but smaller */
        padding: 12px;
    }

    .sales-notification img {
        width: 40px;
        height: 40px;
    }

    .sales-notification-text {
        font-size: 0.8rem;
    }
}

/* Fix for very small screens (iPhone SE / Fold) */
@media (max-width: 360px) {
    .hero-nav {
        display: none !important;
        /* Hide arrows on tiny screens to save space */
    }

    .auth-tabs {
        gap: 5px;
    }
}

/* FINAL OVERRIDE: Fix Hero Logo Size on Mobile */
@media (max-width: 600px) {
    .hero-logo-img {
        max-width: 200px !important;
        margin-bottom: 10px !important;
    }

    .hero-logo-wrapper {
        margin-bottom: 20px !important;
    }

    .hero-heading {
        margin-top: 10px !important;
    }
}

/* Custom Social Buttons */
.btn-social {
    width: 100%;
    height: 48px;
    padding: 12px;
    border: none;
    border-radius: 50px;
    background: #fff;
    color: #333;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: transform 0.3s, box-shadow 0.3s;
    font-size: 0.95rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    margin-bottom: 15px;
}

.btn-social:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.btn-google {
    background: #fff;
    color: #555;
    border: 1px solid #ddd;
}

.btn-facebook {
    background: #1877F2;
    color: #fff;
    border: 1px solid #1877F2;
}

.btn-facebook:hover {
    background: #166fe5;
}

/* =========================================
   NEW DASHBOARD LAYOUT (Daraz Style)
   ========================================= */

.auth-modal-content.dashboard-style {
    max-width: 1100px;
    width: 95%;
    height: 85vh;
    padding: 0 !important;
    /* Reset padding for full layout */
    overflow: hidden;
    background: #1a1a1a;
    display: flex;
    flex-direction: column;
}

.dashboard-container {
    display: flex;
    height: 100%;
    overflow: hidden;
}

/* --- Left Sidebar --- */
.dash-sidebar {
    width: 280px;
    /* Increased slightly */
    background: #222;
    border-right: 1px solid #333;
    display: flex;
    flex-direction: column;
    padding: 20px;
    flex-shrink: 0;
    overflow-y: auto;
    /* Allow scrolling if content is tall */
}

.sidebar-header {
    display: flex;
    align-items: center;
    gap: 15px;
    /* Space between logo and text */
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #333;
    text-align: left;
    /* Reset alignment */
}

/* New: User Photo in Sidebar */
#sidebar-user-photo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--gold);
    flex-shrink: 0;
    /* Prevent shrinking */
}

/* New: Info Container */
.sidebar-user-info {
    flex: 1;
    min-width: 0;
    /* Critical for wrapping inside flex item */
}

#dashboard-username {
    color: var(--gold);
    font-size: 1.1rem;
    /* Adjusted size */
    margin: 2px 0 5px 0;
    word-wrap: break-word;
    /* Wrap long names */
    overflow-wrap: break-word;
    line-height: 1.2;
    font-weight: 600;
}



.dash-nav {
    list-style: none;
    padding: 0;
    margin: 0;
    flex: 1;
}

.dash-nav li {
    padding: 12px 15px;
    margin-bottom: 5px;
    color: #aaa;
    cursor: pointer;
    border-radius: 5px;
    transition: all 0.2s;
    font-size: 0.95rem;
}

.dash-nav li:hover,
.dash-nav li.active {
    background: rgba(255, 215, 0, 0.1);
    color: var(--gold);
}

.btn-logout-sidebar {
    background: transparent;
    color: #ff4444;
    border: 1px solid #333;
    padding: 10px;
    border-radius: 5px;
    cursor: pointer;
    margin-top: auto;
    transition: 0.3s;
}

.btn-logout-sidebar:hover {
    background: rgba(255, 68, 68, 0.1);
    border-color: #ff4444;
}

/* --- Right Content Area --- */
.dash-content {
    flex: 1;
    padding: 30px;
    overflow-y: auto;
    background: #151515;
}

.section-title {
    font-size: 1.4rem;
    margin-bottom: 25px;
    color: #fff;
    border-left: 4px solid var(--gold);
    padding-left: 15px;
}

/* Profile Grid Cards */
.profile-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.dash-card {
    background: #1e1e1e;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.card-header {
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid #333;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-header h4 {
    margin: 0;
    font-size: 1rem;
    color: #ddd;
}

.edit-link {
    color: var(--gold);
    font-size: 0.85rem;
    cursor: pointer;
    font-weight: bold;
}

.card-body {
    padding: 20px;
    color: #fff;
}

/* --- Tables --- */
.orders-table-wrapper {
    background: #1e1e1e;
    border-radius: 8px;
    overflow: hidden;
}

.dash-table {
    width: 100%;
    border-collapse: collapse;
    color: #eee;
    font-size: 0.9rem;
}

.dash-table th {
    background: rgba(255, 255, 255, 0.05);
    padding: 15px;
    text-align: left;
    color: #aaa;
    font-weight: 600;
}

.dash-table td {
    padding: 15px;
    border-bottom: 1px solid #333;
}

.dash-table tr:last-child td {
    border-bottom: none;
}

/* --- Mobile Responsive --- */
@media (max-width: 768px) {
    .dashboard-container {
        flex-direction: column;
        overflow-y: auto;
    }

    .dash-sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #333;
        padding: 15px;
    }

    .dash-nav {
        display: flex;
        overflow-x: auto;
        gap: 10px;
        padding-bottom: 10px;
    }

    .dash-nav li {
        white-space: nowrap;
        margin: 0;
        background: #2a2a2a;
    }

    .dash-content {
        padding: 15px;
    }

    .profile-grid {
        grid-template-columns: 1fr;
    }

    .auth-modal-content.dashboard-style {
        height: 100%;
        max-height: 100vh;
        border-radius: 0;
    }
}

/* FIX: Reset Auth Modal Size (Prevent Zoom Effect) */
.auth-modal-content {
    max-width: 420px !important;
    width: 90% !important;
    padding: 30px !important;
    border-radius: 15px !important;
    margin: auto;
}

/* Maintain Large Size ONLY for Dashboard */
.auth-modal-content.dashboard-style {
    max-width: 1100px !important;
    height: 85vh !important;
    padding: 0 !important;
}

/* =========================================
   TRAILER SHOWCASE COMPONENT (Dynamic)
   ========================================= */
.trailer-showcase-section {
    padding: 0;
    /* Full Bleed / No whitespace */
    background: #000;
    position: relative;
    /* Margin top/bottom for separation if needed, or keep 0 for immersion */
    margin: 20px 0;
}

.hero-trailer-carousel {
    position: relative;
    width: 100%;
    overflow-x: auto;
    /* Manual scroll allowed if buttons fail */
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    /* Firefox */

    /* Center Snap Logic */
    /* Center Snap Logic */
    display: block;
    /* Was flex, caused collapse */
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    /* justify-content removed */
}

/* Hide scrollbar */
.hero-trailer-carousel::-webkit-scrollbar {
    display: none;
}

.hero-marquee-track {
    display: flex;
    gap: 0;
    /* Remove gap for seamless slide */
    padding: 0;
    /* Remove padding */
    width: max-content;
}

.hero-trailer-card {
    flex: 0 0 100vw;
    /* Full Viewport Width */
    max-width: 100%;
    /* Use Auto Height + Aspect Ratio for Original Size */
    height: auto;
    aspect-ratio: 16 / 9;
    min-height: 250px;
    /* Ensure not too small */

    position: relative;
    border-radius: 0;
    /* Full bleed, no radius */
    overflow: hidden;
    cursor: pointer;
    border: none;
    background: #000;

    /* Strict Snap Logic */
    scroll-snap-align: start;
}

.hero-trailer-card:hover {
    transform: scale(1.01);
    /* Subtle zoom for full size */
    border-color: var(--gold);
    z-index: 10;
    /* Pop out */
}

.hero-trailer-card video {
    width: 100%;
    height: 100%;
    /* Original Size / Uncropped */
    object-fit: contain;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

.trailer-gradient-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    z-index: 2;
    pointer-events: none;
}

.trailer-info-overlay {
    position: absolute;
    /* Default: Center for 'Poster' look */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 5;
    display: flex;
    flex-direction: column;
    /* Stack logo and text */
    align-items: center;
    gap: 15px;
    pointer-events: none;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    width: 100%;
}

/* On Play (Hover/Scroll): Move to Bottom Left */
.hero-trailer-card.playing .trailer-info-overlay {
    top: auto;
    bottom: 15px;
    left: 15px;
    right: auto;
    transform: none;
    /* Reset center translate */
    align-items: flex-start;
    /* Align text left */
    flex-direction: row;
    /* Horizontal layout */
    gap: 10px;
}

.trailer-info-overlay img {
    /* Large Logo Default */
    width: 80px;
    height: 80px;
    border-radius: 12px;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.2);
    background: #fff;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
    transition: all 0.4s ease;
}

/* Small Logo on Play */
.hero-trailer-card.playing .trailer-info-overlay img {
    width: 45px;
    height: 45px;
    border-width: 1px;
    border-radius: 8px;
    box-shadow: none;
}

.trailer-info-overlay h4 {
    font-size: 1.4rem;
    /* Big Text */
    font-weight: 800;
    color: #fff;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.9);
    margin: 0;
    opacity: 0.9;
    transition: all 0.4s ease;
}

/* Smaller Text on Play */
.hero-trailer-card.playing .trailer-info-overlay h4 {
    font-size: 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

/* Navigation Buttons */
/* Navigation Buttons */
.hero-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 50;
    /* Above video, below overlay if needed */
    background: rgba(255, 255, 255, 0.1);
    /* Glass effect */
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    backdrop-filter: blur(10px);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.hero-nav:hover {
    background: var(--gold);
    color: #000;
    border-color: var(--gold);
    transform: translateY(-50%) scale(1.15);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.6);
}

.hero-nav.prev {
    left: 30px;
}

.hero-nav.next {
    right: 30px;
}

.hero-nav i {
    font-size: 1.8rem;
    transition: transform 0.3s ease;
}

.hero-nav:hover i {
    transform: scale(1.1);
}

/* Mobile Adjustments for Nav */
@media (max-width: 768px) {
    .hero-nav {
        width: 50px;
        height: 50px;
        background: rgba(0, 0, 0, 0.3);
        /* Darker on mobile for contrast */
    }

    .hero-nav i {
        font-size: 1.5rem;
    }

    .hero-nav.prev {
        left: 10px;
    }

    .hero-nav.next {
        right: 10px;
    }
}


.hero-nav.prev {
    left: 20px;
}

.hero-nav.next {
    right: 20px;
}

/* PC Adjustments */
@media (min-width: 769px) {
    .hero-marquee-track {
        justify-content: flex-start;
    }

    .hero-trailer-card {
        flex: 0 0 100vw;
        width: 100vw;
        /* Let Aspect Ratio drive height on PC too */
        height: auto;
        aspect-ratio: 16 / 9;
        /* Limit max height so it fits within viewport reasonably */
        max-height: 95vh;
        /* Nearly full screen height */
        background: #000;
        /* Letterbox fill if max-height hit */
    }
}

/* =========================================
   Trailer Sound Toggle 
   ========================================= */
.sound-toggle-btn {
    position: absolute;
    bottom: 20px;
    right: 20px;
    z-index: 20;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    backdrop-filter: blur(4px);
    transition: all 0.3s ease;
}

.sound-toggle-btn:hover {
    background: var(--primary-red);
    border-color: var(--primary-red);
    transform: scale(1.1);
}

.sound-toggle-btn i {
    font-size: 1rem;
}

/* =========================================
   Trailer Sound Toggle 
   ========================================= */
.sound-toggle-btn {
    position: absolute;
    bottom: 20px;
    right: 20px;
    z-index: 9999 !important;
    /* Force Top Layer */
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.5);
    color: #fff;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex !important;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    backdrop-filter: blur(4px);
    transition: all 0.3s ease;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.sound-toggle-btn:hover {
    background: var(--primary-red);
    border-color: var(--primary-red);
    transform: scale(1.1);
}

.sound-toggle-btn i {
    font-size: 1rem;
}

/* =========================================
   Product Card Styles (Added to Fix Vertical Stretching)
   ========================================= */
.product-card {
    background: rgba(25, 25, 25, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    height: 100%;
    /* Fill grid cell */
    min-height: 280px;
    /* Consistent height */
    max-height: 350px;
    /* Prevent too long */
}

.product-card:hover {
    transform: translateY(-5px);
    border-color: var(--gold);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
}

.product-logo-wrapper {
    width: 100%;
    height: 150px;
    /* Fixed height for image area */
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    background: transparent;
    overflow: hidden;
}

.product-logo-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: contain !important;
    /* Force contain */
    transition: transform 0.3s ease;
}

.product-card:hover .product-logo-wrapper img {
    transform: scale(1.05);
}

.product-info {
    text-align: center;
    width: 100%;
}

.product-info h4 {
    color: #fff;
    font-size: 1.1rem;
    margin-bottom: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-info .price-tag {
    color: var(--gold);
    font-weight: bold;
    font-size: 1rem;
    margin-bottom: 15px;
}

.btn-buy {
    width: 100%;
    padding: 10px;
    background: transparent;
    border: 1px solid var(--primary-red);
    color: var(--primary-red);
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.product-card:hover .btn-buy {
    background: var(--primary-red);
    color: #fff;
    box-shadow: 0 0 10px rgba(255, 46, 99, 0.4);
}

/* Grid Container for Products */
#active-category-products {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    padding: 20px 0;
    align-items: start;
    /* Prevents vertical stretching */
}

/* Mobile Optimizations */
@media (max-width: 768px) {
    #active-category-products {
        grid-template-columns: repeat(2, 1fr);
        /* 2 Columns on Mobile */
        gap: 10px;
    }

    .product-card {
        min-height: auto;
        max-height: none;
        padding: 15px 10px;
    }

    .product-logo-wrapper {
        height: 100px;
    }

    .product-info h4 {
        font-size: 0.9rem;
    }

    .btn-buy {
        font-size: 0.8rem;
        padding: 8px;
    }
}

/* Trailer Watermark Logo */
.trailer-watermark {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 60px;
    /* Adjust size as needed */
    height: auto;
    z-index: 25;
    /* High enough to be on top */
    opacity: 0.9;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
    pointer-events: none;
    transition: all 0.3s ease;
}

/* Mobile Adjustments for Watermark */
@media (max-width: 768px) {
    .trailer-watermark {
        width: 45px;
        top: 15px;
        right: 15px;
    }
}

/* =========================================
   Trailer Side Logos (Left & Right)
   ========================================= */
/* =========================================
   Trailer Side Logos (Left & Right)
   ========================================= */
.trailer-side-logo {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 25%;
    /* Increased width to allow larger logo */
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 50;
    /* Top priority */
    pointer-events: none;
    background: transparent;
}

.trailer-side-logo img {
    width: 280px;
    /* Much bigger size */
    max-width: 90%;
    height: auto;
    opacity: 0.9;
    filter: drop-shadow(0 0 15px rgba(0, 0, 0, 0.9));
    transition: all 0.3s ease;
}

/* Position Left Logo */
.trailer-side-logo.left {
    left: 0;
    justify-content: center;
    /* Centers horizontally in the left 20% strip */
}

/* Position Right Logo */
.trailer-side-logo.right {
    right: 0;
    justify-content: center;
    /* Centers horizontally in the right 20% strip */
}

/* Hide on mobile */
@media (max-width: 768px) {
    .trailer-side-logo {
        display: none;
    }
}

.trailer-side-logo.right {
    right: 10px;
}


/* ----------------------------------------------------
   Product Modal Styles (Premium Glassmorphism) 
   ---------------------------------------------------- */
#product-modal.modal-overlay {
    z-index: 99999 !important;
    /* Ensure on top of everything */
}

/* Premium Glass Modal Box */
.product-modal-style {
    background: rgba(15, 15, 15, 0.95);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 24px;
    padding: 40px;
    max-width: 550px;
    width: 90%;
    position: relative;
    box-shadow: 0 0 60px rgba(255, 215, 0, 0.15), inset 0 0 20px rgba(255, 255, 255, 0.02);
    animation: fadeInUp 0.4s cubic-bezier(0.19, 1, 0.22, 1);
}

/* Close Button */
.product-modal-style .modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
}

.product-modal-style .modal-close:hover {
    background: var(--gold);
    color: #000;
    transform: rotate(90deg);
}

/* Header Typography */
.product-modal-style .modal-header {
    text-align: center;
    border-bottom: 1px solid rgba(255, 215, 0, 0.2);
    padding-bottom: 20px;
    margin-bottom: 25px;
}

.product-modal-style .modal-header h2 {
    font-family: 'Cinzel', serif;
    /* Or system serif for elegance */
    font-size: 2rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #fff;
    margin-bottom: 5px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.product-modal-style .modal-header p {
    font-size: 0.9rem;
    color: var(--gold);
    letter-spacing: 1px;
    text-transform: uppercase;
    opacity: 0.8;
}

/* Plan Selection Cards */
.product-modal-style .plans-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 25px;
}

.plan-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.plan-item:hover {
    border-color: var(--gold);
    background: rgba(255, 215, 0, 0.05);
    transform: translateY(-3px);
}

.plan-item.selected {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.9), rgba(212, 175, 55, 0.8));
    border-color: var(--gold);
    /* box-shadow: 0 5px 15px rgba(255, 215, 0, 0.3); */
}

/* Inner Text of Plans */
.plan-item .plan-name {
    font-weight: 700;
    font-size: 0.95rem;
    color: #eee;
    margin-bottom: 5px;
}

.plan-item.selected .plan-name {
    color: #000;
    /* Black text on Gold bg */
}

.plan-item .plan-price {
    font-size: 0.9rem;
    color: var(--gold);
}

.plan-item.selected .plan-price {
    color: #222;
    font-weight: 800;
}

/* Full Width Plan (if odd number) */
.plan-item:last-child:nth-child(odd) {
    grid-column: span 2;
}


/* Quantity Control */
.quantity-section {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin: 20px 0 30px 0 !important;
    gap: 15px;
}

.quantity-control {
    background: #222;
    border: 1px solid #444;
    border-radius: 8px;
    display: flex;
    align-items: center;
    padding: 5px;
}

.qty-btn {
    background: #333;
    color: #fff;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.2s;
}

.qty-btn:hover {
    background: #555;
}

#qty-count {
    min-width: 30px;
    text-align: center;
    font-size: 1.1rem;
    font-weight: bold;
    color: #fff;
}


/* Buy Buttons */
.btn-whatsapp {
    background: linear-gradient(45deg, #FFD700, #FDB931);
    color: #000;
    border: none;
    padding: 15px;
    border-radius: 8px;
    font-weight: 800;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(255, 215, 0, 0.3);
}

.btn-whatsapp:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.5);
    background: linear-gradient(45deg, #FDB931, #FFD700);
}

/* Base Modal Overlay */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ----------------------------------------------------
   Mobile Responsiveness & Performance Optimizations
   ---------------------------------------------------- */

/* Mobile Modal Adjustments */
@media (max-width: 768px) {
    .product-modal-style {
        width: 95%;
        padding: 25px 20px;
        max-height: 85vh;
        overflow-y: auto;
        /* Allow scrolling if content is tall */
    }

    .product-modal-style .modal-header h2 {
        font-size: 1.5rem;
        /* Smaller title on mobile */
    }

    .product-modal-style .plans-grid {
        grid-template-columns: 1fr;
        /* Stack plans on mobile */
    }

    .plan-item {
        padding: 12px;
    }

    /* Optimize glassmorphism for mobile */
    .product-modal-style {
        backdrop-filter: blur(10px);
        /* Reduce blur cost */
        -webkit-backdrop-filter: blur(10px);
    }
}

/* Performance Enhancements */
.product-card-3d,
.scene-3d,
.carousel-3d {
    will-change: transform;
    /* Hint to browser for GPU acceleration */
}

.modal-overlay {
    will-change: opacity, visibility;
}

/* ----------------------------------------------------
   Responsive Typography for Section Titles
   ---------------------------------------------------- */
.section-title-large {
    font-size: 3.5rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 3px;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.6);
    color: #fff;
    margin: 80px 0 20px 0;
    display: inline-block;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--gold);
}

@media (max-width: 768px) {
    .section-title-large {
        font-size: 1.8rem;
        /* Significantly smaller for mobile */
        letter-spacing: 1px;
        margin: 40px 0 20px 0;
        /* Reduced margin */
        text-shadow: 0 0 10px rgba(255, 215, 0, 0.6);
    }
}