/* DUX DEV PREMIUM THEME */

:root {
    /* =================================================================
       ACTIVE SETTINGS
       ================================================================= */
    --accent-primary: #00eeee;
    --accent-secondary: #00a8a8;
    --accent-rgb: 0, 238, 238;
    --accent-glow: rgba(0, 238, 238, 0.5);
    --border-color: rgba(0, 238, 238, 0.2);

    /* Auto-generated Gradient (Do not change) */
    --accent-gradient: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
    
    /* =========================================
       BACKGROUND & TEXT (DARK MODE)
       ========================================= */
    --bg-body: #050507;        
    --bg-card: #0f0f13;        
    --bg-header: rgba(5, 5, 7, 0.85); 
    --bg-input: #181820;       
    
    --text-main: #ffffff;      
    --text-muted: #a1a1aa;     
    
    /* =========================================
       LAYOUT & SPACING
       ========================================= */
    --container-width: 1200px;
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    
    /* Shadows */
    --shadow-card: 0 8px 30px rgba(0,0,0,0.4);
    --shadow-glow: 0 0 30px var(--accent-glow);
}

/* =========================================
   GENERAL RESET & TYPOGRAPHY
   ========================================= */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-body);
    color: var(--text-main);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    font-size: 16px;
    overflow-x: hidden;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a { 
    text-decoration: none; 
    color: inherit; 
    transition: color 0.15s ease-out; 
}

a:hover { color: #ffffff; }

ul { list-style: none; }
img { max-width: 100%; display: block; height: auto; }

/* =========================================
   ANIMATIONS
   ========================================= */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-in {
    animation: fadeInUp 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    opacity: 0;
    will-change: transform, opacity;
    transform: translateZ(0); 
}

.delay-1 { animation-delay: 0.05s; }
.delay-2 { animation-delay: 0.1s; }
.delay-3 { animation-delay: 0.15s; }

/* =========================================
   UTILITY CLASSES
   ========================================= */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.text-gradient {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
}

.text-center { text-align: center; }
.text-right { text-align: right; }
.hidden { display: none; }

/* =========================================
   BUTTONS
   ========================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: 50px; 
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    border: none;
    transition: transform 0.1s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
    gap: 8px;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: none;
    user-select: none;
    will-change: transform, box-shadow;
}

.btn:active {
    transform: scale(0.96);
}

.btn-primary {
    background: var(--accent-gradient);
    color: #fff;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2); 
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px var(--accent-glow);
    color: #fff;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-main);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--accent-primary);
    color: #fff;
}

/* Symmetrical Icon Buttons */
.btn-icon-only {
    width: 42px;
    height: 42px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    aspect-ratio: 1/1; 
    overflow: visible !important; 
}

.btn-danger {
    background: #ef4444;
    color: white;
}
.btn-danger:hover {
    background: #dc2626;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.4);
}

.btn-success {
    background: #10b981;
    color: white;
}
.btn-success:hover {
    background: #059669;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
}
.btn-block { width: 100%; }
.btn-sm { padding: 8px 16px; font-size: 0.8rem; }

/* Highlight Action Button (Green for Buy/Subscribe) */
.btn-highlight-action {
    display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; padding: 18px;
    background: linear-gradient(135deg, #4ade80 0%, #22c55e 100%);
    color: white; font-weight: 800; font-size: 1.2rem; text-transform: uppercase;
    border-radius: 12px; border: none; cursor: pointer; text-decoration: none;
    box-shadow: 0 0 20px rgba(74, 222, 128, 0.4), 0 4px 0 #16a34a;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1); position: relative; top: 0;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}
.btn-highlight-action:hover {
    background: linear-gradient(135deg, #86efac 0%, #4ade80 100%);
    box-shadow: 0 0 35px rgba(74, 222, 128, 0.6), 0 6px 0 #16a34a;
    transform: translateY(-2px);
    color: white;
}
.btn-highlight-action:active {
    top: 4px;
    box-shadow: 0 0 10px rgba(74, 222, 128, 0.4), 0 0 0 #16a34a;
    transform: translateY(0);
}

/* Checkout Proceed Button */
.btn-checkout-action {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 20px; 
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%); 
    color: #fff;
    font-weight: 900; 
    font-size: 1.2rem; 
    text-transform: uppercase;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    box-shadow: 0 0 20px rgba(34, 197, 94, 0.4), 0 4px 0 #15803d; 
    transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    top: 0;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.btn-checkout-action:hover {
    background: linear-gradient(135deg, #4ade80 0%, #22c55e 100%); 
    box-shadow: 0 0 35px rgba(34, 197, 94, 0.6), 0 6px 0 #15803d; 
    transform: translateY(-2px);
    color: white;
}
.btn-checkout-action:active {
    top: 4px;
    box-shadow: 0 0 10px rgba(34, 197, 94, 0.4), 0 0 0 #15803d;
    transform: translateY(0);
}


/* =========================================
   HEADER & NAVIGATION
   ========================================= */
header {
    background-color: var(--bg-header);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    transform: translateZ(0);
    will-change: transform;
}

.navbar-full {
    display: grid;
    /* Left (1fr) | Center (auto) | Right (1fr) */
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    position: relative;
    padding: 0 40px; 
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 1px;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 10;
    justify-self: start;
    min-width: max-content; 
    /* Added for Santa Hat positioning */
    position: relative;
}

.logo i { 
    color: var(--accent-primary); 
    filter: drop-shadow(0 0 8px var(--accent-primary));
}

.navbar-full > nav {
    justify-self: center;
    z-index: 5;
}

.nav-links {
    display: flex;
    gap: 15px; 
    align-items: center;
    margin: 0;
    padding: 0;
    list-style: none;
    justify-content: center;
}

.nav-links > li {
    position: relative;
    white-space: nowrap; 
}

.nav-links a {
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 10px 5px;
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    transition: color 0.2s ease;
    border-bottom: none;
    white-space: nowrap; 
}

.nav-links a:hover, 
.nav-links li.active > a {
    color: var(--text-main);
}

/* Nav Link Underline with Glow */
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 8px;   
    left: 5px;      
    width: calc(100% - 10px); 
    height: 3px;   
    background-color: var(--accent-primary);
    border-radius: 2px;
    box-shadow: 0 0 8px var(--accent-primary), 0 0 15px var(--accent-secondary);
    opacity: 0;
    transform: scaleX(0.5); 
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-links a:hover::after,
.nav-links li.active > a::after {
    opacity: 1;
    transform: scaleX(1); 
}

.nav-actions {
    z-index: 10;
    position: relative;
    justify-self: end;
    display: flex;
    align-items: center;
    gap: 15px; 
    min-width: max-content; 
}

/* =======================================================
   GLOBAL SEARCH STYLES
   ======================================================= */
.global-search-wrapper { 
    position: relative; 
    margin-right: 0; 
}

.search-input-box { 
    position: relative; 
    display: flex; 
    align-items: center; 
}

/* Input disguised as ghost button */
.search-input-field {
    background: rgba(255, 255, 255, 0.03); 
    border: 1px solid rgba(255, 255, 255, 0.15); 
    border-radius: 50px; 
    padding: 0;
    color: transparent; 
    font-size: 0.95rem;
    
    width: 42px; 
    height: 42px; 
    
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

/* Expand on focus */
.search-input-field:focus {
    width: 240px; 
    height: 42px;
    padding: 0 15px 0 42px;
    background: rgba(0,0,0,0.6);
    border-color: var(--accent-primary);
    color: #fff;
    outline: none;
    cursor: text;
    box-shadow: 0 0 15px rgba(var(--accent-rgb), 0.15);
}

.search-input-field::placeholder {
    color: transparent;
    transition: color 0.2s;
}
.search-input-field:focus::placeholder {
    color: rgba(255,255,255,0.4);
}

/* Centered Icon */
.search-icon {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    color: var(--text-main); 
    pointer-events: none;
    font-size: 1rem;
    transition: all 0.3s ease;
}

/* Icon moves left on open */
.search-input-field:focus + .search-icon { 
    left: 18px;
    transform: translate(-50%, -50%) scale(0.9);
    color: var(--accent-primary); 
}

.search-input-box:hover .search-input-field:not(:focus) {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--accent-primary);
}

/* Dropdown Results */
.search-dropdown-menu {
    position: absolute;
    top: 120%; 
    right: 0;
    width: 320px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: 0 10px 40px rgba(0,0,0,0.6);
    z-index: 1050;
    overflow: hidden;
    display: none;
    animation: fadeInUp 0.2s ease-out;
}

.search-result-item {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    transition: background 0.2s;
    text-decoration: none;
}
.search-result-item:last-child { border-bottom: none; }
.search-result-item:hover { background: rgba(255,255,255,0.05); }

.search-result-thumb {
    width: 45px; height: 45px;
    border-radius: 8px;
    object-fit: cover;
    margin-right: 12px;
    background: #222;
    flex-shrink: 0;
}

.search-result-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }

.search-result-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-result-category {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.search-result-price {
    font-size: 0.85rem;
    color: var(--accent-primary);
    font-weight: 700;
    margin-left: 10px;
    white-space: nowrap;
}

.no-results {
    padding: 20px;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

@media (max-width: 900px) {
    .global-search-wrapper { margin-right: 10px; }
    .search-input-field:focus { width: 160px; }
    .search-dropdown-menu { width: 280px; position: fixed; right: 20px; left: 20px; width: auto; top: 70px; }
}


/* =========================================
   HERO SECTION
   ========================================= */
.hero-landing {
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    padding: 100px 0;
    contain: layout; 
}

/* IMPORTANT: Text & Buttons must be above the canvas */
.hero-landing > .container {
    position: relative;
    z-index: 10; 
}

/* Hero Background Glow */
.hero-landing::before {
    content: '';
    position: absolute;
    top: -20%;
    left: 50%;
    transform: translateX(-50%) translateZ(0);
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, var(--accent-glow) 0%, rgba(0,0,0,0) 70%);
    z-index: -1;
    pointer-events: none;
    will-change: transform; 
}

.hero-landing h1 {
    font-size: 4rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 25px;
}

.hero-landing p {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto 40px;
}

/* Hero Media Background (Video/GIF support) */
.hero-media-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -2;
}

.hero-media-bg video,
.hero-media-bg img {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: translate(-50%, -50%);
}

.hero-media-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(5, 5, 7, 0.7);
    z-index: 1;
}

/* Interactive Canvas Layer */
#hero-canvas-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2; 
    pointer-events: none; 
    overflow: hidden;
}


/* =========================================
   FEATURES SECTION
   ========================================= */
.features-section {
    padding: 80px 0;
    background: #0a0a0e;
    content-visibility: auto;
    contain-intrinsic-size: 600px;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2.2rem;
    margin-bottom: 15px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    background: var(--bg-card);
    padding: 30px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    transition: transform 0.2s ease-out, box-shadow 0.2s ease-out, border-color 0.2s ease;
    text-align: center;
    will-change: transform, box-shadow; 
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-glow);
    border-color: var(--accent-primary);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: rgba(var(--accent-rgb), 0.1); 
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: var(--accent-primary);
    font-size: 1.5rem;
}

/* =========================================
   PRODUCTS GRID & CARDS
   ========================================= */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.product-card {
    background: linear-gradient(180deg, var(--bg-card) 0%, rgba(15, 15, 19, 0.95) 100%);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: 0 4px 6px rgba(0,0,0,0.2);
    cursor: pointer;
    contain: content;
}

.product-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent-primary);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4), 0 0 0 1px var(--accent-primary);
}

.product-card:active {
    transform: scale(0.98);
}

.product-image {
    height: 220px;
    background: #121216;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

.product-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-card:hover .product-image::after {
    opacity: 1;
}

.product-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 10px;
    line-height: 1.4;
    min-height: 1.4em;
}

.product-price { 
    color: #fff; 
    font-weight: 800; 
    font-size: 1.25rem; 
    display: flex;
    align-items: center;
    gap: 8px;
}
.product-price small {
    font-size: 0.6em;
    font-weight: 500;
    color: var(--text-muted);
}

.product-action-btn {
    padding: 8px 18px;
    border-radius: 10px;
    background: rgba(255,255,255,0.05);
    color: var(--text-main);
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.product-card:hover .product-action-btn {
    background: var(--accent-primary);
    color: #fff;
    box-shadow: 0 4px 15px var(--accent-glow);
}

/* Category Card Specifics */
.category-card-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 30px;
    text-align: center;
    transition: 0.3s;
}

.category-card-inner i {
    font-size: 3rem;
    margin-bottom: 15px;
    color: var(--text-muted);
    transition: 0.3s;
}

.product-card:hover .category-card-inner i {
    color: var(--accent-primary);
    transform: scale(1.1) rotate(-5deg);
}

/* =========================================
   TEBEX DROPDOWNS & MENUS
   ========================================= */
.dropdown {
    position: relative; 
}

/* Center Alignment */
.dropdown-menu-center {
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%) !important; 
    transform-origin: top center !important;
    animation: fadeInUpCenter 0.15s ease-out forwards !important; 
}

@keyframes fadeInUpCenter {
    from { 
        opacity: 0; 
        transform: translate(-50%, 20px); 
    }
    to { 
        opacity: 1; 
        transform: translate(-50%, 0); 
    }
}

.dropdown-menu-right {
    left: auto !important;
    right: 0 !important;
    transform-origin: top right !important;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    margin-top: 10px;
    left: 0;
    z-index: 1000;
    display: none; 
    min-width: 200px;
    padding: 10px 0;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    list-style: none;
    transform-origin: top center;
}

/* Secondary Bridge attached to the menu itself */
.dropdown-menu::before {
    content: '';
    position: absolute;
    top: -15px; 
    left: 0; 
    width: 100%;
    height: 15px; 
    background: transparent;
}

/* Bridge to keep hover active */
.dropdown:hover::after {
    content: '';
    position: absolute;
    top: 90%; 
    left: 0;
    width: 100%; 
    height: 25px; 
    background: transparent;
    z-index: 999;
}

.dropdown-menu.show, 
.dropdown:hover .dropdown-menu {
    display: block;
    animation: fadeInUp 0.15s ease-out forwards;
}

.dropdown-menu li a {
    display: block;
    padding: 8px 20px;
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.9rem;
    white-space: nowrap;
    transition: 0.15s ease;
}

.nav-links .dropdown-menu a::after {
    display: none !important;
    content: none !important;
}

.dropdown-menu li a:hover {
    background: transparent;
    color: var(--accent-primary);
    padding-left: 24px;
}

/* =========================================
   BASKET DROPDOWN STYLES
   ========================================= */
.basket-dropdown {
    right: 0;
    left: auto;
    width: 350px;
    padding: 0;
    max-height: 85vh; 
    border: 1px solid var(--border-color);
}

.basket-item {
    display: flex;
    align-items: center; 
    justify-content: space-between;
    padding: 15px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    gap: 15px; 
}
.basket-item:last-child { border-bottom: none; }

.basket-item-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 4px;
    flex: 1; 
}

.basket-item-name { 
    color: #fff; 
    font-weight: 600; 
    font-size: 0.95rem; 
    line-height: 1.3;
}

.basket-item-price { 
    color: var(--accent-primary); 
    font-size: 0.85rem; 
    font-weight: 700;
}

/* Clean trash icon button */
.basket-actions a { 
    color: #ef4444; 
    font-size: 0.9rem; 
    transition: 0.2s; 
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    background: rgba(239, 68, 68, 0.1);
}
.basket-actions a:hover { 
    background: #ef4444;
    color: white;
}

.basket-footer {
    padding: 20px;
    background: rgba(0,0,0,0.3);
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.05);
}
.basket-total {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-weight: 800;
    color: #fff;
    font-size: 1.1rem;
}

/* =========================================
   FORMS & ALERTS
   ========================================= */
.form-control {
    display: block;
    width: 100%;
    padding: 12px 15px;
    font-size: 1rem;
    color: #fff;
    background-color: var(--bg-input);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-sm);
    transition: border-color 0.2s, box-shadow 0.2s;
}
.form-control:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.2);
}

.alert {
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    color: #fff;
    animation: fadeInUp 0.3s ease-out;
}
.alert-info { background: rgba(59, 130, 246, 0.2); border-color: rgba(59, 130, 246, 0.5); }
.alert-success { background: rgba(16, 185, 129, 0.2); border-color: rgba(16, 185, 129, 0.5); }
.alert-danger { background: rgba(239, 68, 68, 0.2); border-color: rgba(239, 68, 68, 0.5); }

.badge {
    display: inline-block;
    padding: 4px 8px;
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1;
    color: #fff;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: 10px;
}

.badge-cart {
    background: #ef4444; 
    position: absolute;
    top: -5px;
    right: -5px;
    animation: bounceIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    width: 20px;
    height: 20px;
    border-radius: 50%;
    
    /* Default Hidden on Desktop */
    display: none; 
    
    align-items: center;
    justify-content: center;
    padding: 0;
    z-index: 50;
}

.badge-wishlist {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ec4899; 
    width: 20px;         
    height: 20px;
    font-size: 0.75rem;  
    font-weight: 700;
    display: flex !important; 
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    box-shadow: 0 0 8px #ec4899;
    color: #fff;
    line-height: 1;      
    padding: 0;          
    z-index: 50;         
    pointer-events: none; 
    animation: bounceIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes bounceIn {
  from { transform: scale(0); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

/* =========================================
   MODALS
   ========================================= */
.modal {
    display: none; 
    position: fixed; 
    z-index: 2000; 
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    overflow: auto; 
    background-color: rgba(0,0,0,0.8); 
    backdrop-filter: blur(8px);
    will-change: opacity;
    animation: fadeIn 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background-color: var(--bg-card);
    margin: 5% auto; 
    padding: 30px;
    border: 1px solid var(--border-color);
    width: 90%; 
    max-width: 600px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
    position: relative;
    color: var(--text-main);
    animation: scaleIn 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes scaleIn {
    from { transform: scale(0.95); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.close {
    color: var(--text-muted);
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.2s;
}
.close:hover { color: #fff; transform: rotate(90deg); }


/* =========================================
   FOOTER
   ========================================= */
footer {
    border-top: 1px solid rgba(255,255,255,0.05);
    padding: 60px 0 30px;
    background: #08080a;
    text-align: center;
    content-visibility: auto;
    contain-intrinsic-size: 300px;
}


/* =========================================
   TECH DASHBOARD HEADER
   ========================================= */
.store-header-dashboard {
    padding: 80px 0;
    background-color: var(--bg-body);
    position: relative;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.05'/%3E%3C/svg%3E");
}

.dashboard-layout {
}

/* =========================================
   TECH DASHBOARD HEADER
   ========================================= */
.store-header-dashboard {
    padding: 80px 0;
    background-color: var(--bg-body);
    position: relative;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.05'/%3E%3C/svg%3E");
}

.dashboard-layout {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
}

.dashboard-info {
    flex: 1;
    min-width: 300px;
    border-left: 4px solid var(--accent-primary);
    padding-left: 25px;
}

.dashboard-actions {
    flex-shrink: 0;
    width: 100%;
    max-width: 400px;
}

.dashboard-title {
    font-size: 2.8rem;
    font-weight: 800;
    color: #fff;
    margin: 0 0 10px 0;
    line-height: 1;
    letter-spacing: -0.5px;
}

.dashboard-desc {
    color: var(--text-muted);
    font-size: 1.05rem;
    margin: 0;
    max-width: 600px;
    line-height: 1.5;
}

.dashboard-breadcrumbs {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255,255,255,0.4);
    margin-bottom: 10px;
    font-weight: 600;
}
.dashboard-breadcrumbs a:hover { color: #ffffff; }
.dashboard-breadcrumbs span { color: #fff; }

.search-dashboard { position: relative; width: 100%; }

.search-input-dashboard {
    width: 100%;
    padding: 16px 20px 16px 50px;
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #fff;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.search-input-dashboard:focus {
    outline: none;
    border-color: var(--accent-primary);
    background: rgba(255, 255, 255, 0.05);
}

.search-icon-dashboard {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255,255,255,0.3);
}

/* =========================================
   REVIEWS SECTION
   ========================================= */
.reviews-section {
    padding: 80px 0;
    background: radial-gradient(circle at center, rgba(var(--accent-rgb), 0.05) 0%, transparent 70%);
    border-top: 1px solid rgba(255,255,255,0.02);
    border-bottom: 1px solid rgba(255,255,255,0.02);
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.review-card {
    background: var(--bg-card);
    padding: 30px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    position: relative;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    overflow: hidden;
}

.review-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-card);
    border-color: var(--accent-primary);
}

.review-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    gap: 15px;
}

.review-avatar {
    width: 45px;
    height: 45px;
    aspect-ratio: 1/1;
    background: var(--accent-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #fff;
    font-size: 1.1rem;
    box-shadow: 0 0 10px rgba(var(--accent-rgb), 0.2);
}

.review-info {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.review-name {
    font-weight: 700;
    color: #fff;
    font-size: 1rem;
}

.review-role {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.review-stars {
    color: #fbbf24;
    font-size: 0.9rem;
    letter-spacing: 2px;
    align-self: flex-start;
    margin-top: 2px;
}

.review-text {
    color: var(--text-muted);
    font-style: italic;
    line-height: 1.6;
    font-size: 0.95rem;
}

.review-card::before {
    content: '\f10d'; 
    font-family: 'Font Awesome 6 Free'; 
    font-weight: 900;
    position: absolute;
    bottom: 10px;
    right: 20px;
    font-size: 4rem;
    color: #fff;
    opacity: 0.02;
    pointer-events: none;
    line-height: 1;
}

/* =========================================
   PACKAGE GALLERY SLIDER
   ========================================= */
.pkg-slider-wrapper {
    position: relative;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    overflow: hidden;
    border-radius: var(--radius-md);
    background-color: #000; 
}

.pkg-slides-viewport {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.pkg-slide-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.2s ease-in-out;
    will-change: opacity;
    z-index: 1;
}

.pkg-slide-item.active {
    opacity: 1;
    z-index: 2;
}

.pkg-slide-item img,
.pkg-slide-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Ken Burns Effect */
@keyframes kenBurnsEffect {
    from { transform: scale(1); }
    to { transform: scale(1.05); }
}
.pkg-slide-item[data-type="image"].active img {
    animation: kenBurnsEffect 10s ease-in-out infinite alternate;
}

.pkg-dots-nav {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    background-color: rgba(0, 0, 0, 0.4);
    padding: 8px 12px;
    border-radius: 20px;
    z-index: 10;
}

.pkg-dot-item {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.pkg-dot-item:hover { background-color: rgba(255, 255, 255, 0.8); }
.pkg-dot-item.active {
    background-color: var(--accent-primary);
    transform: scale(1.1);
}

/* =========================================
   SEASONAL & FX (Snow, Bats, Glow)
   ========================================= */

/* Cursor Stardust Trail */
.cursor-particle {
    position: fixed;
    top: 0;
    left: 0;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background-color: var(--accent-primary);
    box-shadow: 0 0 6px var(--accent-primary), 0 0 10px var(--accent-glow);
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    mix-blend-mode: screen; 
    opacity: 1;
    will-change: transform, opacity;
}

/* Snowfall */
.snow-container {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    pointer-events: none; z-index: 9999; overflow: hidden;
}
.snowflake {
    position: absolute; top: -10px; background-color: #fff; border-radius: 50%; opacity: 0.8;
    animation: snowfall linear infinite;
}
@keyframes snowfall {
    0% { transform: translateY(-10vh) translateX(0); opacity: 0; }
    10% { opacity: 0.8; }
    100% { transform: translateY(100vh) translateX(20px); opacity: 0.3; }
}
/* Snowflake Randomization (15) */
.snowflake:nth-child(1) { left: 5%; width: 4px; height: 4px; animation-duration: 12s; animation-delay: 0s; }
.snowflake:nth-child(2) { left: 15%; width: 6px; height: 6px; animation-duration: 15s; animation-delay: 2s; }
.snowflake:nth-child(3) { left: 25%; width: 3px; height: 3px; animation-duration: 10s; animation-delay: 4s; }
.snowflake:nth-child(4) { left: 35%; width: 5px; height: 5px; animation-duration: 18s; animation-delay: 1s; }
.snowflake:nth-child(5) { left: 45%; width: 4px; height: 4px; animation-duration: 14s; animation-delay: 6s; }
.snowflake:nth-child(6) { left: 55%; width: 6px; height: 6px; animation-duration: 11s; animation-delay: 3s; }
.snowflake:nth-child(7) { left: 65%; width: 3px; height: 3px; animation-duration: 16s; animation-delay: 7s; }
.snowflake:nth-child(8) { left: 75%; width: 5px; height: 5px; animation-duration: 13s; animation-delay: 2s; }
.snowflake:nth-child(9) { left: 85%; width: 4px; height: 4px; animation-duration: 17s; animation-delay: 5s; }
.snowflake:nth-child(10) { left: 95%; width: 5px; height: 5px; animation-duration: 19s; animation-delay: 0s; }
.snowflake:nth-child(11) { left: 10%; width: 3px; height: 3px; animation-duration: 22s; animation-delay: 8s; }
.snowflake:nth-child(12) { left: 50%; width: 4px; height: 4px; animation-duration: 20s; animation-delay: 10s; }
.snowflake:nth-child(13) { left: 80%; width: 3px; height: 3px; animation-duration: 25s; animation-delay: 1s; }
.snowflake:nth-child(14) { left: 30%; width: 5px; height: 5px; animation-duration: 21s; animation-delay: 12s; }
.snowflake:nth-child(15) { left: 60%; width: 4px; height: 4px; animation-duration: 23s; animation-delay: 15s; }

/* Halloween Bats */
.halloween-container {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    pointer-events: none; z-index: 9999; overflow: hidden;
}
.bat {
    position: absolute; bottom: -50px; font-size: 24px; opacity: 0;
    animation: batFly linear infinite; filter: drop-shadow(0 0 2px rgba(0,0,0,0.5));
}
@keyframes batFly {
    0% { transform: translate(0, 0) scale(0.5) rotate(-10deg); opacity: 0; bottom: -50px; }
    10% { opacity: 0.7; }
    100% { transform: translate(200px, -120vh) scale(1.2) rotate(20deg); opacity: 0; bottom: -50px; }
}
/* Bat Randomization */
.bat:nth-child(1) { left: 10%; animation-duration: 8s; animation-delay: 0s; font-size: 20px; }
.bat:nth-child(2) { left: 30%; animation-duration: 12s; animation-delay: 2s; font-size: 28px; }
.bat:nth-child(3) { left: 50%; animation-duration: 7s; animation-delay: 4s; font-size: 18px; }
.bat:nth-child(4) { left: 70%; animation-duration: 11s; animation-delay: 1s; font-size: 25px; }
.bat:nth-child(5) { left: 90%; animation-duration: 9s; animation-delay: 3s; font-size: 22px; }

/* Page Load Fade In */
@keyframes smoothPageFadeIn {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}
.page-fade-in-wrapper {
    animation: smoothPageFadeIn 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    opacity: 0; will-change: opacity, transform;
}

/* Scroll Trigger */
.scroll-fade-up {
    opacity: 0; transform: translateY(40px);
    transition: opacity 1.2s cubic-bezier(0.2, 0.8, 0.2, 1), transform 1.2s cubic-bezier(0.2, 0.8, 0.2, 1);
    will-change: opacity, transform;
}
.scroll-fade-up.is-visible {
    opacity: 1; transform: translateY(0);
}

/* Payment Methods */
.payment-methods-section {
    margin-top: 40px; text-align: center; padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.05);
}
.payment-icons {
    display: flex; justify-content: center; gap: 10px; flex-wrap: wrap;
}
.pay-card {
    background: #181820; width: 50px; height: 32px; border-radius: 5px;
    display: flex; align-items: center; justify-content: center;
    transition: transform 0.2s; cursor: default; font-size: 1.2rem;
    border: 1px solid rgba(255,255,255,0.1); color: #a1a1aa;
}
.pay-card.more {
    background: #1f2937; color: #fff; font-size: 0.75rem; font-weight: 700;
}
.fa-paypal { color: #3b82f6; }
.fa-cc-visa { color: #fff; }
.fa-cc-mastercard { color: #eb001b; }
.fa-university { color: #fff; }

/* =========================================
   ODOMETER / ROLLING NUMBERS
   ========================================= */
.odometer-wrapper {
    display: inline-flex;
    align-items: center;
    position: relative;
    height: 1em; 
    line-height: 1;
    overflow: hidden;
    vertical-align: text-bottom;
    mask-image: linear-gradient(to bottom, transparent 0%, black 20%, black 80%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 20%, black 80%, transparent 100%);
}

.odometer-digit {
    position: relative;
    height: 1em;
    width: 0.6em; 
    text-align: center;
    font-variant-numeric: tabular-nums;
    overflow: hidden;
    display: block; 
}

.odometer-ribbon {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    transition: transform 2.5s cubic-bezier(0.1, 1, 0.2, 1);
    will-change: transform;
}

.odometer-ribbon div {
    height: 1em;
    display: flex;
    align-items: center;
    justify-content: center;
    background: inherit; 
    -webkit-background-clip: text;
    background-clip: text;
    color: inherit; 
}

.stat-number .odometer-wrapper {
    color: #fff;
}

/* =========================================
   FiveM SERVER STATUS (HERO PRIMARY STAT)
   ========================================= */
.fivem-stat-wrap {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.fivem-players-slots {
    font-variant-numeric: tabular-nums;
}

.fivem-ping-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.7em;
    line-height: 1;
}

.fivem-ping-badge i {
    font-size: 0.9em;
    opacity: 0.9;
}

.fivem-offline {
    opacity: 0.85;
}

@media (max-width: 480px) {
    .fivem-stat-wrap {
        gap: 8px;
        justify-content: center;
    }
}

/* =========================================
   MODERN LUCKY WHEEL (WIDGET MODE)
   ========================================= */
.lucky-widget-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9990;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    pointer-events: none; 
}

.lucky-widget-card {
    background: rgba(18, 18, 24, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 40px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.05);
    width: 340px; 
    border-radius: 20px;
    padding: 25px;
    text-align: center;
    position: relative;
    animation: slideInRight 0.5s cubic-bezier(0.19, 1, 0.22, 1);
    overflow: hidden;
    pointer-events: auto;
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(50px); }
    to { opacity: 1; transform: translateX(0); }
}

.lucky-widget-card.closing {
    animation: slideOutRight 0.5s cubic-bezier(0.19, 1, 0.22, 1) forwards;
    pointer-events: none; 
}

@keyframes slideOutRight {
    from { opacity: 1; transform: translateX(0); }
    to { opacity: 0; transform: translateX(50px) scale(0.95); }
}

.lucky-widget-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
}

.lucky-close-btn {
    position: absolute; 
    top: 15px; 
    right: 15px;
    background: rgba(255,255,255,0.05); 
    width: 28px; height: 28px;
    border-radius: 50%;
    border: none; 
    color: var(--text-muted);
    font-size: 0.9rem; 
    cursor: pointer;
    transition: 0.2s;
    display: flex; align-items: center; justify-content: center;
    z-index: 30; 
}
.lucky-close-btn:hover { background: rgba(255,255,255,0.1); color: #fff; transform: rotate(90deg); }

.lucky-header { margin-bottom: 20px; }
.lucky-header h3 { 
    margin: 0; 
    color: #fff; 
    font-weight: 800;
    letter-spacing: -0.5px;
    text-shadow: 0 4px 10px rgba(0,0,0,0.5);
}

/* Wheel Container Styling */
.wheel-outer-ring {
    position: relative;
    width: 240px; height: 240px; 
    margin: 0 auto 25px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, #333, #111, #333, #111, #333);
    box-shadow: 
        0 0 0 4px rgba(0,0,0,0.5),
        0 0 0 6px rgba(var(--accent-rgb), 0.3),
        0 0 30px rgba(var(--accent-rgb), 0.15);
    display: flex; align-items: center; justify-content: center;
}

.wheel-wrapper {
    width: 210px; 
    height: 210px;
    position: relative;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #1a1a20;
    box-shadow: inset 0 0 20px rgba(0,0,0,0.8);
}

/* Modern Pointer */
.wheel-pointer-modern {
    position: absolute; 
    top: -12px; 
    left: 50%; 
    transform: translateX(-50%);
    width: 26px; height: 26px;
    background: #fff;
    clip-path: polygon(50% 100%, 0 0, 100% 0);
    z-index: 20;
    filter: drop-shadow(0 4px 4px rgba(0,0,0,0.5));
}

/* Spinner Gradients */
.wheel-spinner {
    width: 100%; 
    height: 100%;
    border-radius: 50%;
    background: conic-gradient(
        var(--accent-primary) 0deg 60deg,
        #222228 60deg 120deg,
        var(--accent-secondary) 120deg 180deg,
        #222228 180deg 240deg,
        var(--accent-primary) 240deg 300deg,
        #222228 300deg 360deg
    );
    position: relative;
    transition: transform 5s cubic-bezier(0.15, 0.85, 0.35, 1.05);
}

/* Wheel Hub */
.wheel-hub {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 44px; height: 44px;
    background: linear-gradient(135deg, #333, #111);
    border-radius: 50%;
    z-index: 10;
    border: 2px solid rgba(255,255,255,0.1);
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
    display: flex; align-items: center; justify-content: center;
    color: var(--accent-primary);
    font-size: 1.1rem;
}

/* Segment Text */
.wheel-segment {
    position: absolute; 
    top: 0; left: 0;
    width: 100%; height: 100%;
    transform-origin: center;
    pointer-events: none;
    z-index: 15;
}

.wheel-segment span {
    position: absolute;
    top: 50%; left: 50%;
    transform: 
        translate(-50%, -50%) 
        rotate(calc(((var(--i) - 1) * 60deg) + 30deg)) 
        translateY(-65px); 
    
    color: #fff; 
    font-weight: 800; 
    font-size: 1rem;
    text-transform: uppercase;
    text-shadow: 0 1px 4px rgba(0,0,0,0.8);
    white-space: nowrap;
    text-align: center;
}

/* Buttons & Footer */
.btn-spin-glow {
    position: relative;
    overflow: hidden;
    background: var(--accent-gradient);
    border: none;
    font-weight: 800;
    letter-spacing: 1px;
    padding: 14px;
    border-radius: 12px;
    box-shadow: 0 0 20px rgba(var(--accent-rgb), 0.4);
    transition: all 0.3s;
    font-size: 0.9rem;
}
.btn-spin-glow:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 40px rgba(var(--accent-rgb), 0.6);
}
.btn-spin-glow:active { transform: translateY(0); }

/* Result Area */
.win-animation-wrapper {
    margin-top: 20px;
    animation: fadeInUp 0.5s ease;
}
.win-label {
    color: #10b981;
    font-weight: 900;
    font-size: 1rem;
    letter-spacing: 1px;
    margin-bottom: 8px;
    text-transform: uppercase;
}
.coupon-modern-display {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 12px;
    padding: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}
.coupon-modern-display span {
    font-family: 'Courier New', monospace;
    font-size: 1.2rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: 1px;
}
.btn-copy-modern {
    width: 36px; height: 36px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    color: #fff;
    cursor: pointer;
    transition: 0.2s;
    display: flex; align-items: center; justify-content: center;
}
.btn-copy-modern:hover {
    background: #fff; color: #000;
}
.win-subtitle {
    font-size: 0.75rem; color: var(--text-muted); margin-top: 8px;
}

/* Win Pulse Animation */
.win-pulse {
    animation: winPulse 1s ease infinite alternate;
}
@keyframes winPulse {
    from { box-shadow: 0 0 20px rgba(16, 185, 129, 0.2); border-color: rgba(16, 185, 129, 0.3); }
    to { box-shadow: 0 0 50px rgba(16, 185, 129, 0.5); border-color: rgba(16, 185, 129, 0.8); }
}

.lucky-trigger-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: var(--accent-gradient);
    border-radius: 50%;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 9980;
    box-shadow: 0 0 20px rgba(var(--accent-rgb), 0.4);
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulse-trigger 3s infinite;
}
.lucky-trigger-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 0 30px rgba(var(--accent-rgb), 0.6);
}
.lucky-trigger-btn:active {
    transform: scale(0.95);
}
@keyframes pulse-trigger {
    0% { box-shadow: 0 0 0 0 rgba(var(--accent-rgb), 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(var(--accent-rgb), 0); }
    100% { box-shadow: 0 0 0 0 rgba(var(--accent-rgb), 0); }
}

/* Mobile Responsiveness for Lucky Wheel */
@media (max-width: 600px) {
    .lucky-widget-container {
        bottom: 0; right: 0; left: 0;
        align-items: center;
        padding: 15px;
    }
    .lucky-widget-card {
        width: 100%;
        max-width: 400px;
    }
}

/* =========================================
   MEDIA QUERIES & MOBILE MENU
   ========================================= */

/* Burger Toggle - Default Hidden */
.mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-main);
    font-size: 1.6rem;
    cursor: pointer;
    padding: 10px;
    z-index: 1010;
}

@media (max-width: 900px) {
    .hero-landing h1 { font-size: 3rem; }
    
    /* Navbar Adjustment for Mobile */
    .navbar-full {
        display: flex;
        flex-wrap: wrap; 
        justify-content: flex-start; 
        padding: 10px 20px; 
        align-items: center;
    }
    
    .logo {
        margin-right: auto;
    }
    
    .navbar-full > nav {
        position: static;
        width: 100%;
        order: 4; 
        margin: 0;
    }
    
    .mobile-toggle {
        display: flex; 
        order: 3;
        width: 42px;
        height: 42px;
        background: rgba(255, 255, 255, 0.03);
        border: 1px solid rgba(255, 255, 255, 0.15); 
        border-radius: 50%;
        color: #ffffff;
        align-items: center;
        justify-content: center;
        padding: 0;
        cursor: pointer;
        font-size: 1rem; 
        margin-left: 8px; 
        transition: all 0.2s ease;
    }
    
    .mobile-toggle:hover {
        background: rgba(255, 255, 255, 0.08);
        border-color: var(--accent-primary);
    }

    /* Actions Gap Update */
    .nav-actions {
        gap: 8px !important; 
    }

    /* Mobile Buttons Sizing Update */
    .nav-actions .btn-sm, .nav-actions .btn-primary {
        padding: 0 !important;
        width: 42px !important; 
        height: 42px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        border-radius: 50% !important;
        
        overflow: visible !important;
    }

    /* Hide text spans ONLY IF they are NOT badges */
    .nav-actions .btn-secondary span:not(.badge), 
    .nav-actions .btn-primary span:not(.badge) {
        display: none !important;
    }
    
    /* Ensure badges are always visible */
    .nav-actions .badge {
        display: flex !important;
    }

    /* Hidden by Default */
    .nav-links { 
        display: none; 
        flex-direction: column;
        width: 100%;
        background: rgba(15, 15, 19, 0.98);
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        padding: 20px 0;
        border-top: 1px solid rgba(255,255,255,0.05);
        border-bottom: 1px solid rgba(255,255,255,0.05);
        margin-top: 15px;
        animation: slideDownMenu 0.3s ease-out forwards;
    } 

    /* Opened State */
    .nav-links.mobile-open {
        display: flex;
    }

    .nav-links li {
        width: 100%;
        text-align: center;
        opacity: 0;
        animation: fadeInItem 0.4s ease forwards;
    }
    
    /* Staggered Animation for Items */
    .nav-links li:nth-child(1) { animation-delay: 0.05s; }
    .nav-links li:nth-child(2) { animation-delay: 0.1s; }
    .nav-links li:nth-child(3) { animation-delay: 0.15s; }
    .nav-links li:nth-child(4) { animation-delay: 0.2s; }
    .nav-links li:nth-child(5) { animation-delay: 0.25s; }

    .nav-links a {
        display: block;
        padding: 12px 0;
        font-size: 1.1rem;
        border-bottom: 1px solid rgba(255,255,255,0.02);
    }

    /* Mobile Dropdowns */
    .nav-links .dropdown-menu {
        position: static;
        float: none;
        width: 100%;
        background: transparent;
        border: none;
        box-shadow: none;
        padding: 0;
        display: none; 
        text-align: center;
    }
    
    .nav-links .dropdown-menu li a {
        padding: 10px 0;
        color: var(--text-muted);
        font-size: 0.95rem;
        padding-left: 0; 
    }
    
    .products-grid { grid-template-columns: 1fr; }
    
    .dashboard-layout {
        flex-direction: column;
        align-items: flex-start;
        gap: 30px;
    }
    .dashboard-actions { max-width: 100%; }
}

@keyframes slideDownMenu {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInItem {
    to { opacity: 1; }
}

/* =======================================================
   HEADER GRID LAYOUT (DESKTOP)
   ======================================================= */
@media (min-width: 901px) {
    .navbar-full {
        display: grid;
        grid-template-columns: 1fr auto 1fr; 
        align-items: center;
        gap: 20px;
    }
    
    .logo {
        justify-self: start;
        flex: initial;
    }
    
    .navbar-full > nav {
        justify-self: center;
        flex: initial;
        margin: 0;
    }
    
    .nav-actions {
        justify-self: end;
        flex: initial;
    }
}

/* =======================================================
   MOBILE SEARCH BEHAVIOR (FIXED MODE)
   ======================================================= */
@media (max-width: 900px) {
    
    /* 1. Stabilize Placeholder */
    .global-search-wrapper {
        width: 42px; 
        height: 42px;
    }

    /* 2. Input on Focus: Fixed Position & Opaque */
    .search-input-field:focus {
        position: fixed;          
        top: 12px;                
        
        left: 15px !important;
        right: auto !important;   
        
        width: 220px !important; 
        height: 40px;             
        
        z-index: 2000;            
        
        background: #0f0f13 !important; 
        border: 1px solid var(--accent-primary);
        box-shadow: 0 5px 20px rgba(0,0,0,0.8); 
        padding-left: 40px;       
        
        transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    }

    /* 3. Icon moves with input */
    .search-input-field:focus + .search-icon {
        position: fixed;
        top: 32px;                
        
        left: 27px !important; 
        right: auto !important;
        
        transform: translateY(-50%);
        z-index: 2001;            
        color: var(--accent-primary);
        font-size: 0.9rem; 
    }

    /* 4. Dropdown Results */
    .search-dropdown-menu {
        position: fixed;          
        top: 60px !important; 
        
        left: 15px !important;
        right: auto !important;
        
        width: 220px !important;
        
        z-index: 1999;            
        max-height: 50vh;
        overflow-y: auto;
        border-top: none;
    }
}

/* Wishlist Button on Product Card */
.wishlist-add-btn {
    position: absolute;
    top: 15px;
    left: 15px; 
    width: 35px;
    height: 35px;
    background: rgba(0,0,0,0.6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 20;
    border: 1px solid rgba(255,255,255,0.1);
    backdrop-filter: blur(4px);
}
.wishlist-add-btn:hover {
    background: #fff;
    color: #ec4899;
    transform: scale(1.1);
}
.wishlist-add-btn.active {
    background: #ec4899;
    color: #fff;
    border-color: #ec4899;
}
.wishlist-add-btn i {
    font-size: 1rem;
    margin-top: 1px;
}

/* Animation for Heart Button */
@keyframes heartBeat {
    0% { transform: scale(1); }
    15% { transform: scale(1.3); }
    30% { transform: scale(1); }
    45% { transform: scale(1.15); }
    60% { transform: scale(1); }
}
.heart-beat { animation: heartBeat 0.6s ease-in-out; }

/* Mobile Adjustments */
@media (max-width: 500px) {
    .wishlist-sidebar { width: 100%; right: -100%; }
}

/* Ensure Wishlist Badge is visible on Mobile/All devices */
#nav-wishlist-item button {
    overflow: visible !important;
}

/* =========================================
   COMPARISON TABLE
   ========================================= */
.compare-table-wrapper {
    overflow-x: auto;
    margin: 30px 0;
    border-radius: var(--radius-md);
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
}

.compare-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 500px; 
}

.compare-table th,
.compare-table td {
    padding: 15px 20px;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Header Styles */
.compare-table th {
    background: rgba(255, 255, 255, 0.03);
    font-weight: 800;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    color: #fff;
}

/* Feature Column (Left align) */
.compare-table .th-feature,
.compare-table .td-feature {
    text-align: left;
    font-weight: 600;
    color: var(--text-muted);
}
.compare-table .td-feature {
    color: #fff;
}

/* Data Columns */
.compare-table .td-data {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Highlight the Subscription Column */
.compare-table th:nth-child(2),
.compare-table td:nth-child(2) {
    background: rgba(var(--accent-rgb), 0.05); 
}

.compare-table th:nth-child(2) {
    color: var(--accent-primary);
    border-bottom: 2px solid var(--accent-primary);
}

/* Icons */
.compare-table i.fa-check {
    font-size: 1.1rem;
    filter: drop-shadow(0 0 5px rgba(16, 185, 129, 0.4));
}

/* =========================================
   KARUSSELL STYLES (Added & Optimized)
   ========================================= */
.reviews-carousel-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 40px;
}

.reviews-track-window {
    width: 100%;
    max-width: 1100px;
    overflow: hidden;
    padding: 40px 0; 
    /* Soft fade on edges */
    mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
}

.reviews-track {
    display: flex;
    gap: 30px; 
    width: max-content; 
    padding-left: 50%; 
    will-change: transform; 
}

.review-card {
    /* Fixed width for calculation */
    width: 350px; 
    min-width: 350px;
    
    /* Base Styles */
    background: var(--bg-card);
    padding: 30px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
    
    /* Transition for Animation */
    transition: all 0.5s ease;
    
    /* Default State (Inactive) */
    opacity: 0.3;
    transform: scale(0.85);
    filter: blur(2px);
    z-index: 1;
}

/* Active State (Center) */
.review-card.active {
    opacity: 1;
    transform: scale(1.05); 
    filter: blur(0);
    z-index: 10;
    border-color: var(--accent-primary);
    box-shadow: 0 0 30px rgba(var(--accent-rgb), 0.2);
}

/* Avatar Styles */
.review-avatar {
    width: 45px;
    height: 45px;
    aspect-ratio: 1/1; 
    background: var(--accent-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #fff;
    font-size: 1.1rem;
    box-shadow: 0 0 10px rgba(var(--accent-rgb), 0.2);
    overflow: hidden; 
}

.review-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Buttons */
.carousel-btn {
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: 0.2s;
    z-index: 20;
    position: absolute;
}

.carousel-btn:hover {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(var(--accent-rgb), 0.4);
}

.carousel-btn.prev { left: 0; }
.carousel-btn.next { right: 0; }

/* =========================================
   MOBILE STICKY FOOTER STYLES
   ========================================= */
.mobile-sticky-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(15, 15, 19, 0.95); /* Dark Glass */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 15px 20px;
    z-index: 10000; 
    display: flex;
    justify-content: center;
    align-items: center;
    transform: translateY(100%); /* Hidden by default */
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 -5px 20px rgba(0,0,0,0.5);
    padding-bottom: env(safe-area-inset-bottom, 20px); 
}

.mobile-sticky-footer.visible {
    transform: translateY(0) !important;
}

.sticky-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 600px;
}

.sticky-price-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.sticky-sale-wrapper {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.sticky-original-price {
    text-decoration: line-through;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 600;
}

.sticky-price {
    font-weight: 800;
    font-size: 1.3rem;
    color: #fff;
    line-height: 1.1;
}
.sticky-price small {
    font-size: 0.6em;
    color: var(--text-muted);
    font-weight: 600;
}
.sticky-price.free { color: #10b981; }
.sticky-price.sale { color: #ef4444; }

.sticky-name {
    font-size: 0.75rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 150px;
}

.sticky-btn {
    padding: 12px 25px;
    font-size: 0.95rem;
    box-shadow: 0 4px 15px rgba(var(--accent-rgb), 0.4);
    margin: 0; 
    min-width: 140px; 
}
.sticky-btn.icon-only {
    min-width: auto;
    width: 45px; height: 45px;
    padding: 0;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
}

/* Lucky Wheel Z-Index Override */
.lucky-widget-container, .lucky-trigger-btn {
    z-index: 10001 !important; 
}

/* Desktop Hide */
@media (min-width: 992px) {
    .mobile-sticky-footer { display: none !important; }
}

@media (max-width: 768px) {
    .review-card { width: 300px; min-width: 300px; }
    .reviews-track-window { mask-image: none; -webkit-mask-image: none; }
    .carousel-btn { width: 40px; height: 40px; font-size: 1rem; }
    /* Extra padding for sticky footer */
    body { padding-bottom: 90px; }
}

@media (max-width: 992px) {
    .package-layout { grid-template-columns: 1fr; }
    .package-sidebar { position: relative; top: 0; order: 1; margin-bottom: 40px; }
    .package-content { order: 2; }
}

/* =========================================
   FESTIVE LIGHTS (Added)
   ========================================= */
#festive-lights-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100px;
    z-index: 99999;
    pointer-events: none;
    overflow: visible;
    transform-origin: top center;
    /* Removed default falling transition to allow individual shakes */
}

/* Wire Shake Animation (Triggered via JS) */
#festive-lights-container.wire-shake {
    animation: wire-recoil 0.4s ease-out;
}

@keyframes wire-recoil {
    0% { transform: translateY(0); }
    25% { transform: translateY(-3px); } /* Spring up */
    50% { transform: translateY(2px); }  /* Bounce down */
    75% { transform: translateY(-1px); } /* Settle */
    100% { transform: translateY(0); }
}

/* Individual Bulb Drop Animation */
.festive-bulb.falling {
    /* Langsamer (2.5s) und ohne Ruckeln nach oben (ease-in) */
    animation: bulb-drop 2.5s ease-in forwards !important;
}

@keyframes bulb-drop {
    0% { 
        transform: translateY(0) rotate(0deg); 
        opacity: 1; 
    }
    /* Direkt nach unten fallen */
    100% { 
        transform: translateY(120vh) rotate(130deg); 
        opacity: 0; 
    }
}

.festive-bulb {
    position: absolute;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    transform-origin: top center;
    animation: swing-bulb 3s ease-in-out infinite alternate;
    box-shadow: 0 0 5px rgba(255,255,255,0.3); /* Base glow */
    will-change: transform;
}

/* Socket base (wire connector) */
.festive-bulb::before {
    content: '';
    position: absolute;
    top: -3px;
    left: 3px;
    width: 6px;
    height: 4px;
    background: #222;
}

/* Colors with specific Glows */
.bulb-red { background: #ff3b3b; box-shadow: 0 0 12px 2px rgba(255, 59, 59, 0.8); }
.bulb-green { background: #3bff3b; box-shadow: 0 0 12px 2px rgba(59, 255, 59, 0.8); }
.bulb-blue { background: #3b3bff; box-shadow: 0 0 12px 2px rgba(59, 59, 255, 0.8); }
.bulb-yellow { background: #ffff3b; box-shadow: 0 0 12px 2px rgba(255, 255, 59, 0.8); }

@keyframes swing-bulb {
    from { transform: rotate(-3deg); }
    to { transform: rotate(3deg); }
}

/* Mobile adjustments for lights */
@media (max-width: 768px) {
    .festive-bulb {
        width: 8px;
        height: 8px;
    }
    .festive-bulb::before {
        top: -2px;
        left: 2px;
        width: 4px;
        height: 3px;
    }
}

/* =========================================
   SANTA HAT (SEASONAL)
   ========================================= */
.santa-hat-icon {
    display: none; /* Controlled via JS in layout.html */
    position: absolute;
    top: -18px; 
    left: -12px; 
    width: 40px; 
    height: 40px; 
    z-index: 20; 
    transform: rotate(-25deg); 
    pointer-events: none; 
    filter: drop-shadow(2px 2px 2px rgba(0,0,0,0.3));
    animation: hat-bob 3s ease-in-out infinite alternate;
}

@keyframes hat-bob {
    0% { transform: rotate(-25deg) translateY(0); }
    100% { transform: rotate(-20deg) translateY(-2px); }
}

@media (max-width: 900px) {
    .santa-hat-icon {
        width: 30px;
        height: 30px;
        top: -12px;
        left: -8px;
    }
}

/* =========================================
   PACKAGE IMAGE LIGHTBOX (CLICK-TO-ZOOM)
   ========================================= */
img.pkg-zoomable {
    cursor: zoom-in;
}

.pkg-media-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 10002;
}

.pkg-media-lightbox.is-open {
    display: block;
}

.pkg-media-lightbox__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
}

.pkg-media-lightbox__dialog {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: min(1200px, 92vw);
    height: min(90vh, 900px);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255,255,255,0.12);
    background: rgba(0,0,0,0.15);
    box-shadow: 0 25px 80px rgba(0,0,0,0.6);
    padding: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pkg-media-lightbox__figure {
    margin: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.pkg-media-lightbox__figure img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: var(--radius-md);
    box-shadow: 0 15px 45px rgba(0,0,0,0.45);
}

.pkg-media-lightbox__caption {
    color: var(--text-muted);
    font-size: 0.95rem;
    text-align: center;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pkg-media-lightbox__close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.12);
    background: rgba(0,0,0,0.45);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s;
}

.pkg-media-lightbox__close:hover {
    background: rgba(0,0,0,0.65);
    transform: scale(1.02);
}

.pkg-media-lightbox__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.12);
    background: rgba(0,0,0,0.45);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s;
}

.pkg-media-lightbox__nav:hover {
    background: rgba(0,0,0,0.65);
    transform: translateY(-50%) scale(1.02);
}

.pkg-media-lightbox__nav--prev {
    left: 14px;
}

.pkg-media-lightbox__nav--next {
    right: 14px;
}

@media (max-width: 768px) {
    .pkg-media-lightbox__dialog {
        width: 94vw;
        height: 88vh;
        padding: 12px;
    }
    .pkg-media-lightbox__caption {
        font-size: 0.85rem;
    }
}

/* =========================================
   PACKAGE IMAGE VIEWER (FULLSCREEN + ZOOM)
   Overrides for the lightbox so it feels like a fullscreen viewer (no "box"),
   with zoom + pan (wheel/pinch/drag).
   ========================================= */

.pkg-media-lightbox__dialog {
    /* Override boxed dialog -> fullscreen canvas */
    top: 0;
    left: 0;
    transform: none;
    width: 100vw;
    height: 100vh;
    border-radius: 0;
    border: none;
    background: transparent;
    box-shadow: none;
    padding: 0;
}

.pkg-media-lightbox__figure {
    position: relative;
    width: 100%;
    height: 100%;
    gap: 0;
}

.pkg-media-lightbox__stage {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    touch-action: none; /* enable custom drag + pinch */
    display: block;
}

.pkg-media-lightbox__stage.is-grabbable {
    cursor: grab;
}

.pkg-media-lightbox__stage.is-grabbable.is-grabbing {
    cursor: grabbing;
}

.pkg-media-lightbox__stage img {
    position: absolute;
    top: 50%;
    left: 50%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;

    /* Center the image, then apply pan + scale via CSS vars */
    transform: translate(calc(-50% + var(--pan-x, 0px)), calc(-50% + var(--pan-y, 0px)))
              scale(var(--scale, 1));
    transform-origin: center center;
    will-change: transform;
}

.pkg-media-lightbox__caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 14px 16px;
    text-align: center;
    background: linear-gradient(to top, rgba(0,0,0,0.55), rgba(0,0,0,0));
    color: rgba(255,255,255,0.92);
    pointer-events: none;
}

.pkg-media-lightbox__toolbar {
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 999px;
    background: rgba(0,0,0,0.35);
    backdrop-filter: blur(8px);
    z-index: 3;
}

.pkg-media-lightbox__tool {
    width: 38px;
    height: 38px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.18);
    background: rgba(0,0,0,0.28);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.15s;
}

.pkg-media-lightbox__tool:hover {
    background: rgba(0,0,0,0.45);
}

.pkg-media-lightbox__zoomlevel {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.9);
    min-width: 56px;
    text-align: center;
}

/* Keep nav + close visible in fullscreen mode */
.pkg-media-lightbox__close {
    top: 12px;
    right: 12px;
    z-index: 4;
}

.pkg-media-lightbox__nav {
    z-index: 4;
}

@media (max-width: 768px) {
    .pkg-media-lightbox__toolbar {
        top: 10px;
        gap: 8px;
        padding: 7px 9px;
    }
    .pkg-media-lightbox__tool {
        width: 36px;
        height: 36px;
    }
}
