﻿/* ==========================================================================
   STYLE: TECH REVIEWER (DARK MODE DEFAULT)
   Based on "Hybrid" Style but tuned for Tech/Gaming Aesthetic
   ========================================================================== */

:root {
    /* Main Theme: Deep Space & Electric Indigo */
    --bg-main: #020617;
    /* Slate 950 - Deepest Dark */
    --text-main: #f1f5f9;
    /* Slate 100 - Crisp White */
    --text-muted: #94a3b8;
    /* Slate 400 - Soft Grey */

    /* Brand Colors - Electric & Neon */
    --brand-primary: #6366f1;
    /* Indigo 500 - Base */
    --brand-glow: #818cf8;
    /* Indigo 400 - Glow */
    --brand-secondary: #a855f7;
    /* Purple 500 */
    --brand-accent: #f43f5e;
    /* Rose 500 */
    --brand-amazon: #ff9900;
    /* Amazon Orange */

    /* Glass Effects - Premium Frosted */
    --glass-bg: rgba(15, 23, 42, 0.45);
    /* Slightly less transparent for better blur */
    --glass-border: rgba(255, 255, 255, 0.12);
    /* Crisper border */
    --glass-shiny: rgba(255, 255, 255, 0.05);

    /* Shadows & Glows */
    --glow-primary: 0 0 30px rgba(99, 102, 241, 0.4);
    --glow-text: 0 0 20px rgba(99, 102, 241, 0.6);
    --shadow-card: 0 20px 40px -10px rgba(0, 0, 0, 0.5);

    /* Dimensions */
    --header-h: 70px;
    --sidebar-h: 80px;

    /* Fonts */
    --font-main: 'Outfit', sans-serif;
}



/* RESET & BASE */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
    padding-top: var(--header-h);
    padding-bottom: 100px;
    /* Space for bottom nav */
    -webkit-font-smoothing: antialiased;
    background-attachment: fixed;
    /* Fix background color/image */
}

/* GLOBAL BACKGROUND TEXTURE (Office Tech Vibe) - Restored from Index */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* OFFICE BACKGROUND - High quality tech workspace */
    background: url('https://images.unsplash.com/photo-1497215728101-856f4ea42174?q=80&w=2070&auto=format&fit=crop') no-repeat center center/cover;
    z-index: -2;
    opacity: 0.15;
    /* Dimmed for readability */
    pointer-events: none;
    filter: blur(8px);
    transform: scale(1.02);
    /* Scale fix to hide blurred edges */
}

/* CUSTOM SCROLLBAR (Global for all elements) */
* {
    scrollbar-width: thin;
    scrollbar-color: #334155 #020617;
}

/* CUSTOM SCROLLBAR (Webkit) */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #020617;
    /* Dark Slate Background */
}

::-webkit-scrollbar-thumb {
    background-color: #334155;
    /* Slate 700 */
    border-radius: 20px;
    border: 2px solid #020617;
    /* Creates padding effect */
}

::-webkit-scrollbar-thumb:hover {
    background-color: #475569;
    /* Slate 600 */
}

/* Typography */
h1,
h2,
h3,
h4 {
    font-weight: 800;
    /* Bolder */
    letter-spacing: -0.04em;
    /* Tighter for modern look */
    color: white;
    text-transform: uppercase;
    /* CONSTANT POWER */
    line-height: 1.1;
}

/* UTILITY: Premium Text Gradient (Silver/White/Indigo) */
.text-gradient-premium {
    background: linear-gradient(135deg, #ffffff 0%, #e2e8f0 50%, #818cf8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(255, 255, 255, 0.1);
}

/* PREMIUM PAGE HEADER */
.page-header-premium {
    text-align: center;
    padding: 60px 20px 40px;
    animation: fadeInSlideUp 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.main-page-title-premium {
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    font-weight: 800;
    letter-spacing: -3px;
    margin-bottom: 15px;
    text-transform: uppercase;
    background: linear-gradient(135deg, #fff 20%, #94a3b8 50%, var(--brand-primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.page-subtitle-premium {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto;
    font-weight: 400;
    letter-spacing: 0.5px;
    line-height: 1.6;
}

@keyframes fadeInSlideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* CARDS: GLASSMORPHISM RESTORED */
.tech-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: var(--shadow-card);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    position: relative;
}

.tech-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--glass-shiny), transparent);
    opacity: 0.5;
}

.tech-card:hover {
    transform: translateY(-5px);
    border-color: rgba(99, 102, 241, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 20px rgba(99, 102, 241, 0.1);
}

.card-img-container {
    border-radius: 12px;
    overflow: hidden;
}

.tech-card:hover .card-img-container {
    filter: none;
}

/* BUTTONS: RESTORED */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--brand-primary);
    color: white;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
    transition: all 0.3s ease;
    text-transform: none;
    /* Reset uppercase if set elsewhere */
    font-family: var(--font-main);
}

.btn-primary:hover {
    transform: translateY(-2px);
    background: #565ce0;
    box-shadow: 0 0 30px rgba(99, 102, 241, 0.6);
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s;
}

ul {
    list-style: none;
}

/* UTILITY: Background Gradient Animation */
.bg-gradient-animate {
    background: linear-gradient(-45deg, #0f172a, #1e1b4b, #312e81, #0f172a);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
}

@keyframes gradientBG {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* UTILITY: Line Clamp (Truncate to N lines) */
.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* CAROUSEL OFFERS SPECIFIC */
.offer-desc {
    font-size: 1.1rem;
    color: #cbd5e1;
    margin-bottom: 20px;
    line-height: 1.5;
}

/* GRID OFFERS SPECIFIC */
.offer-desc-grid {
    /* Styles inline or here */
    font-size: 0.85rem;
    color: #94a3b8;
}

/* PRICE ERROR BADGE ANIMATION */
@keyframes shake-badge {

    0%,
    100% {
        transform: translateX(-50%) rotate(0deg) scale(1);
    }

    10% {
        transform: translateX(-50%) rotate(-5deg) scale(1.1);
    }

    20% {
        transform: translateX(-50%) rotate(5deg) scale(1.1);
    }

    30% {
        transform: translateX(-50%) rotate(-5deg) scale(1.1);
    }

    40% {
        transform: translateX(-50%) rotate(5deg) scale(1.1);
    }

    50% {
        transform: translateX(-50%) rotate(0deg) scale(1);
    }
}

.shake-badge {
    animation: shake-badge 2s infinite ease-in-out;
    transform-origin: center center;
    box-shadow: 0 0 15px rgba(244, 63, 94, 0.6);
    /* Brand Accent Glow */
    z-index: 10 !important;
}

/* FIX: Offers Title Alignment */
.offers-mode .section-title-premium {
    text-align: left !important;
    align-items: flex-start !important;
}

.offers-mode {
    justify-content: flex-start !important;
    text-align: left !important;
}

/* ==========================================================================
   HEADER (Glassmorphism)
   ========================================================================== */
.top-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-h);
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.top-bar.header-hidden {
    transform: translateY(-100%);
}

.brand-logo {
    font-size: 1.5rem;
    font-weight: 800;
    background: linear-gradient(to right, #fff, #94a3b8);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: flex;
    align-items: center;
    gap: 8px;
}

.brand-highlight {
    color: var(--brand-primary);
    -webkit-text-fill-color: var(--brand-primary);
}

.desktop-nav {
    display: none;
    /* Mobile first */
}

@media (min-width: 768px) {
    .desktop-nav {
        display: flex;
        gap: 32px;
        /* Decreased from 40px (20%) */
        align-items: center;
        height: 100%;
    }

    .nav-link {
        color: var(--text-muted);
        font-weight: 500;
        font-size: 0.95rem;
        position: relative;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        transition: color 0.3s;
    }

    .nav-link:hover {
        color: white;
    }

    .nav-link.active {
        color: var(--brand-primary);
    }

    .nav-link.active::after {
        content: '';
        position: absolute;
        bottom: -24px;
        /* Adjust based on header height centering */
        left: 0;
        width: 100%;
        height: 2px;
        background: var(--brand-primary);
        box-shadow: 0 0 10px var(--brand-primary);
    }
}

/* Mobile Menu Toggle */
.menu-trigger {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    display: block;
}

@media (min-width: 768px) {
    .menu-trigger {
        display: none;
    }
}

/* ==========================================================================
   MOBILE MENU OVERLAY
   ========================================================================== */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(2, 6, 23, 0.98);
    z-index: 2000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 30px;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-menu-overlay.active {
    transform: translateX(0);
}

.mobile-menu-overlay a {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.mobile-menu-overlay a:hover {
    color: var(--brand-primary);
}

/* ==========================================================================
   HERO CAROUSEL (Enhanced 3D Look)
   ========================================================================== */
/* PREMIUM CAROUSEL CONTAINER */
.carousel-premium-container {
    height: 60vh;
    min-height: 500px;
    transition: height 0.3s ease;
}

@media (min-width: 768px) {
    .carousel-premium-container {
        height: 65vh !important;
        /* Adjusted: -10% from previous 72vh approx */
        min-height: 550px !important;
    }
}

.hero-wrapper {
    position: relative;
    width: 100%;
    /* Height and min-height now ideally controlled by .carousel-premium-container */
    height: 60vh;
    min-height: 500px;
    overflow: hidden;
    margin-bottom: 40px;
    display: flex;
    justify-content: center;
    perspective: 1000px;
    /* For 3D depth */
}

/* Specific Wrapper for Offers Page - Reduced Height (Maintained as requested) */
#offers-carousel-wrapper {
    height: 50vh !important;
    min-height: 450px !important;
}

.carousel-slide {
    position: absolute;
    top: 50%;
    width: 70%;
    /* Active slide width restored */
    height: 80%;
    /* Slightly smaller than wrapper to allow dots below */
    background-size: cover;
    background-position: center;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    transition: transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.7s ease, visibility 0.7s ease;
    /* Smoother Animation */
    opacity: 0;
    visibility: hidden;
    /* Hide form layout/clicks when not active */
    pointer-events: none;
    /* Prevent clicks on hidden slides */
    z-index: 0;
    transform: translateY(-50%) translateX(-50%) scale(0.85);
    left: 50%;
    /* Center origin */
    cursor: pointer;
    display: flex !important;
    /* Forces split layout */
    align-items: stretch;
    overflow: hidden;
    /* Ensures rounded corners clip content */
}

.carousel-slide::after {
    content: '';
    position: absolute;
    inset: 0;
    background: black;
    opacity: 0.4;
    transition: opacity 0.5s;
    border-radius: 20px;
}

/* ACTIVE STATE */
.carousel-slide.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    z-index: 10;
    transform: translateY(-50%) translateX(-50%) scale(1);
    /* LED Aura Glow */
    box-shadow: 0 0 25px 2px rgba(99, 102, 241, 0.5), 0 10px 40px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.carousel-slide.active::after {
    opacity: 0;
}

/* Reveal content */

/* PREVIOUS SLIDE (Left) */
.carousel-slide.prev {
    opacity: 0.8;
    visibility: visible;
    pointer-events: auto;
    /* Allow clicking to navigate */
    z-index: 5;
    transform: translateY(-50%) translateX(-130%) scale(0.85);
    /* Visible on Left */
    cursor: pointer;
}

/* NEXT SLIDE (Right) */
.carousel-slide.next {
    opacity: 0.8;
    visibility: visible;
    pointer-events: auto;
    /* Allow clicking to navigate */
    z-index: 5;
    transform: translateY(-50%) translateX(30%) scale(0.85);
    /* Visible on Right */
    cursor: pointer;
}

.carousel-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, var(--bg-main) 0%, rgba(2, 6, 23, 0.1) 50%, rgba(2, 6, 23, 0));
    border-radius: 20px;
}

.hero-content {
    position: absolute;
    inset: 0;
    /* Use inset to fill the container */
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    /* Align content to the bottom */
    text-align: left;
    z-index: 20;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    max-width: 100%;
}

@media (min-width: 1024px) {
    .hero-content {
        padding: 60px;
        max-width: 95%;
        /* Increased from 80% to use more space */
    }
}

/* Make content visible (but dimmed) in side slides */
.carousel-slide.prev .hero-content,
.carousel-slide.next .hero-content {
    opacity: 0.4;
    /* Dimmed but visible */
    transform: translateY(0);
}

.carousel-slide.active .hero-content {
    opacity: 1;
    transform: translateY(0);
}

.badge-tag {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(99, 102, 241, 0.2);
    border: 1px solid rgba(99, 102, 241, 0.5);
    color: #a5b4fc;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
    backdrop-filter: blur(4px);
    width: fit-content;
}

.hero-title {
    font-size: clamp(1.6rem, 4vw, 2.8rem);
    line-height: 1.1;
    margin-bottom: 15px;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.6);
    font-weight: 900;
    text-transform: uppercase;
    display: -webkit-box;
    -webkit-line-clamp: 5;
    /* Increased from 3 to allow more text */
    line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-wrap: break-word;
    /* Ensure long words don't overflow */
}

/* DYNAMIC FONT SIZES FOR LONG TITLES */
.hero-title-md {
    font-size: clamp(1.4rem, 3.5vw, 2.2rem) !important;
}

.hero-title-sm {
    font-size: clamp(1.2rem, 3vw, 1.8rem) !important;
}


/* DOTS NAVIGATION */
.carousel-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 50;
}

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

.dot.active {
    background: var(--brand-primary);
    transform: scale(1.3);
    box-shadow: 0 0 10px var(--brand-primary);
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--brand-primary);
    color: white;
    padding: 12px 30px;
    /* Stesso padding di btn-amazon */
    border-radius: 50px;
    /* Stesso border-radius arrotondato */
    font-weight: 800;
    /* Stesso font-weight di btn-amazon */
    font-size: 1rem;
    border: none;
    /* Importante per button HTML */
    cursor: pointer;
    /* Cursore pointer per button HTML */
    text-decoration: none;
    /* Per link styled come button */
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
    /* Shadow simile */
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    background: #565ce0;
    box-shadow: 0 0 30px rgba(99, 102, 241, 0.6), 0 0 10px rgba(255, 255, 255, 0.4);
    /* Extra shine */
}

/* AMAZON STYLE BUTTON */
.btn-amazon {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #FFD814;
    /* Amazon Yellow */
    color: #111;
    padding: 12px 30px;
    /* UNIFORMATO A BTN-PRIMARY */
    border-radius: 50px;
    /* UNIFORMATO A BTN-PRIMARY */
    font-weight: 800;
    /* UNIFORMATO A BTN-PRIMARY */
    font-size: 1rem;
    /* UNIFORMATO A BTN-PRIMARY */
    border: none;
    cursor: pointer;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(255, 216, 20, 0.3);
    transition: all 0.3s ease;
}

.btn-amazon:hover {
    transform: translateY(-2px);
    background: #F7CA00;
    box-shadow: 0 0 25px rgba(255, 216, 20, 0.6);
    color: black;
}

/* ==========================================================================
   CARDS & GRID
   ========================================================================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.grid-3 {
    display: grid;
    /* Reduced min-width from 300px to 260px to fit 4 items on standard screens */
    /* Changed auto-fit to auto-fill to prevent single items from stretching to full width */
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    /* Slight gap reduction to help fit 4 items */
}

.tech-card {
    background: var(--glass-bg);
    /* Glassmorphism background */
    backdrop-filter: blur(12px);
    /* Blur effect */
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
    text-align: center;
    /* Universal Centering */

    display: flex;
    flex-direction: column;
    height: 100%;
}

.tech-card:hover {
    transform: translateY(-5px);
    border-color: rgba(99, 102, 241, 0.5);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.card-img-container {
    height: 220px;
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
}

.card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s;
}

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

.card-body {
    padding: 25px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex: 1;
    text-align: center;
    /* Redundant but safe */
}

/* NEW: Push buttons to bottom within card body */
.card-body .btn-primary,
.card-body .btn-amazon,
.card-body a.btn-primary {
    width: 100%;
    justify-content: center;
}

.card-meta {
    display: flex;
    justify-content: center;
    gap: 15px;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 15px;
    text-transform: uppercase;
    font-weight: 600;
}

.card-title {
    font-size: 1.25rem;
    margin-bottom: 10px;
    line-height: 1.3;
}

.card-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: white;
    margin-top: auto;
    margin-bottom: 25px;
}

/* ==========================================================================
   REVIEW DETAIL SPECIFIC
   ========================================================================== */
.video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    /* 16:9 Aspect Ratio */
    background: black;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    margin: 30px 0;
    box-shadow: var(--shadow-card);
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.amazon-box {
    background: linear-gradient(135deg, #1e293b, #0f172a);
    padding: 30px;
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 40px;
}

.btn-amazon {
    background: #fbbf24;
    color: #1a1a1a;
    padding: 12px 25px;
    border-radius: 12px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: transform 0.2s;
}

.btn-amazon:hover {
    transform: scale(1.05);
    background: #f59e0b;
}

/* ==========================================================================
   RANKINGS LAYOUT (Split View)
   ========================================================================== */
.rankings-layout {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding-top: 20px !important;
    /* Override standard padding */
}

.rankings-sidebar {
    width: 100%;
    margin-bottom: 20px;
}

.rankings-content {
    width: 100%;
}

@media (min-width: 1024px) {
    .rankings-layout {
        flex-direction: row;
        gap: 40px;
        align-items: flex-start;
    }

    .rankings-sidebar {
        width: 300px;
        flex-shrink: 0;
        position: sticky;
        top: calc(var(--header-h) + 20px);
        height: calc(100vh - var(--header-h) - 40px);
        overflow-y: auto;
        /* Scroll ONLY sidebar */
    }

    .rankings-content {
        flex: 1;
        /* Scroll with main page */
    }
}

/* ==========================================================================
   SIDEBAR (Bottom Nav) - Glass & Floating
   ========================================================================== */
.bottom-nav {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(0);
    width: auto;
    background: rgba(15, 23, 42, 0.9);
    /* Dark Glass increased opacity */
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
    border-radius: 20px;
    /* Less rounded to accommodate text */
    padding: 10px 20px;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 20px;
    /* More gap */
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s;
}

.bottom-nav.nav-hidden {
    transform: translateX(-50%) translateY(150px);
    opacity: 0;
}

.nav-item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 50px;
    /* ensure width */
    color: var(--text-muted);
    transition: all 0.2s;
    cursor: pointer;
    text-decoration: none;
}

.nav-item i {
    font-size: 1.4rem;
    margin-bottom: 4px;
    transition: transform 0.2s;
}

/* ==========================================================================
   SIDEBAR / BOTTOM NAV (MOBILE) - BUBBLE STYLE
   ========================================================================== */
/* ==========================================================================
   SIDEBAR / BOTTOM NAV (MOBILE) - BUBBLE FLOATING STYLE
   ========================================================================== */
/* ==========================================================================
   SIDEBAR / BOTTOM NAV (MOBILE) - BUBBLE FLOATING STYLE
   ========================================================================== */
.bottom-nav {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: auto;
    /* Tighter sizing */
    min-width: 260px;
    max-width: 85%;
    height: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* Wet Glass Effect - More Transparent */
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    /* High border radius for pill shape */
    border-radius: 50px;
    box-shadow:
        0 15px 35px -5px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    /* Top highlight */
    padding: 8px 25px;
    /* Reduced vertical padding */
    margin: 0;
    z-index: 10000;
    box-sizing: border-box;
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* Hide on Desktop */
@media (min-width: 769px) {
    .bottom-nav {
        display: none !important;
    }
}

.bottom-nav.nav-hidden {
    transform: translate(-50%, 150%);
}

.b-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    /* Tighter gap */
    color: #94a3b8;
    transition: all 0.2s ease;
    position: relative;
    padding: 4px;
    min-width: 50px;
    cursor: pointer;
    text-decoration: none;
    pointer-events: auto;
}

.b-nav-item.active-state,
.b-nav-item:hover {
    color: #6366f1;
    text-shadow: 0 0 10px rgba(99, 102, 241, 0.3);
}

.b-nav-item.active-state .b-nav-icon,
.b-nav-item:hover .b-nav-icon {
    transform: translateY(-2px);
    color: white;
    /* Brighter active state */
}

.b-nav-icon {
    font-size: 1.35rem;
    /* Slightly smaller icons if needed, or keep same */
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
    margin-bottom: 2px;
}

.nav-label {
    font-size: 0.65rem;
    /* Slightly smaller text */
    font-weight: 600;
    opacity: 0.9;
    letter-spacing: 0.3px;
}

/* BUBBLE MENUS (Sub-categories) */
.bubble-menu {
    position: fixed;
    /* Raised position */
    bottom: 105px;
    left: 50%;
    transform: translateX(-50%) scale(0.9);
    /* Wet Glass */
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    /* Pill shape */
    border-radius: 40px;
    padding: 10px 15px;
    display: flex;
    gap: 10px;
    /* Tighter gap */
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 10001;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
}

.bubble-menu.active {
    transform: translateX(-50%) scale(1);
    opacity: 1;
    pointer-events: auto;
}

.bubble-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 55px;
    /* Slightly narrower */
    text-align: center;
    color: white;
    font-size: 0.7rem;
    text-decoration: none;
    padding: 6px;
    border-radius: 16px;
    transition: background 0.2s;
}

.bubble-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.bubble-icon {
    font-size: 1.5rem;
    margin-bottom: 5px;
    color: var(--brand-primary);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
    background: #020617;
    border-top: 1px solid var(--glass-border);
    padding: 60px 0 20px;
    margin-top: 80px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.footer-disclaimer {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: 40px;
    padding-top: 20px;
    font-size: 0.75rem;
    font-style: italic;
    opacity: 0.6;
    text-align: center;
}

/* ==========================================================================
   VIDEO CARD ENHANCEMENTS (Play Overlay & Stars)
   ========================================================================== */

/* Stars Badge - Top Right */
.card-stars-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(4px);
    padding: 5px 10px;
    border-radius: 10px;
    color: #fbbf24;
    /* Amber */
    font-weight: 700;
    font-size: 0.85rem;
    z-index: 10;
    border: 1px solid rgba(251, 191, 36, 0.3);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Play Overlay - Center of Image */
.card-play-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 5;
    cursor: pointer;
}

.tech-card:hover .card-play-overlay {
    opacity: 1;
}

.play-icon-circle {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.play-icon-circle i {
    color: white;
    font-size: 1.5rem;
    margin-left: 4px;
    /* Optical center adjustment */
}

.tech-card:hover .play-icon-circle {
    transform: scale(1.1);
    background: var(--brand-accent);
    /* Red on hover like YouTube */
    border-color: var(--brand-accent);
}

/* ==========================================================================
   VIDEO MODAL (Lightbox)
   ========================================================================== */
.video-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.video-modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.video-modal-content {
    position: relative;
    width: 90%;
    max-width: 1000px;
    aspect-ratio: 16/9;
    background: black;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.8);
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.video-modal-overlay.active .video-modal-content {
    transform: scale(1);
}

.close-modal {
    position: absolute;
    top: -40px;
    right: 0;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.close-modal:hover {
    opacity: 1;
}

/* ==========================================================================
   GLOBAL MOBILE OPTIMIZATIONS
   ========================================================================== */
@media (max-width: 768px) {

    /* TYPOGRAPHY */
    body {
        font-size: 15px;
        /* Slightly smaller base font */
    }

    h1,
    h2 {
        word-wrap: break-word;
        /* Prevent overflow on long words */
    }

    .hero-title {
        font-size: 1.8rem !important;
        /* Force smaller hero title */
    }

    /* LAYOUT & GRID */
    .container {
        padding: 0 15px;
        /* Reduce side padding */
    }

    .grid-3 {
        grid-template-columns: 1fr !important;
        /* Force single column */
        gap: 20px;
    }

    /* HERO SECTION - Deprecated (See bottom of file for standard) */
    /* .hero-wrapper {
        height: 60vh !important;
        min-height: 350px !important;
    } */

    .carousel-slide {
        width: 85% !important;
        /* Wider slide on mobile */
    }

    .hero-content {
        left: 20px !important;
        right: 20px !important;
        bottom: 30px !important;
    }

    /* CARDS */
    .tech-card {
        margin-bottom: 10px;
    }

    .card-img-container {
        height: 180px;
        /* Slightly shorter images on mobile cards */
    }

    /* NOTIFICATIONS / MODALS */
    .video-modal-content {
        width: 95% !important;
    }
}

/* ==========================================================================
   OFFERS CAROUSEL - SPLIT VIEW & MOBILE OPTIMIZATIONS
   (Consolidated from JS Injection)
   ========================================================================== */

/* CONTAINER */
.carousel-slide {
    display: flex !important;
    flex-direction: row;
    background: #0f172a;
    /* Dark background */
    overflow: hidden;
}

/* LEFT: IMAGE COLUMN */
.offer-image-col {
    width: 45%;
    height: 100%;
    position: relative;
    background: #ffffff;
    /* White for image contrast consistency */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    box-sizing: border-box;
}

.offer-slide-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 10px;
    max-width: 100%;
    max-height: 100%;
}

/* RIGHT: CONTENT COLUMN */
.offer-content-col {
    width: 55%;
    height: 100%;
    padding: clamp(15px, 3vh, 30px);
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    /* Vertical Center overall */
    padding-bottom: clamp(30px, 6vh, 60px) !important;
    /* Push slightly up from very bottom */
    align-items: center !important;
    text-align: center !important;
    box-sizing: border-box;
    /* Premium Gradient */
    background: linear-gradient(to right, #ffffff, #f8fafc);
    border-left: 1px solid rgba(0, 0, 0, 0.05);
}

.offer-button-wrapper {
    /* Reset margins since it's now inside the flex stack */
    margin-top: 20px !important;
    display: flex !important;
    justify-content: center !important;
    width: 100%;
}

/* CONTENT ELEMENTS */
.offer-hero-content {
    /* Resetting previous legacy styles */
    position: static !important;
    width: 100% !important;
    padding: 0 !important;
    max-width: 100% !important;
    background: none !important;
}

.offer-badge {
    font-size: clamp(0.6rem, 2vmin, 0.8rem);
    padding: 4px 10px;
    background: var(--brand-amazon);
    color: black;
    border: none;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
    margin-bottom: clamp(5px, 1.5vh, 10px);
    align-self: center;
    /* Center Badge */
}

.offer-title {
    font-size: clamp(1.2rem, 4vmin, 1.8rem);
    /* Bigger on Desktop split view */
    margin-bottom: clamp(5px, 1.5vh, 15px);
    line-height: 1.2;
    color: #1e293b;
    /* Dark Slate 800 */
    text-shadow: none;
    /* Clean text */
}

/* Description with HIDDEN SCROLLBAR */
.offer-desc {
    font-size: clamp(0.8rem, 2.5vmin, 1rem);
    color: #475569;
    /* Slate 600 for visibility on white */
    line-height: 1.4;
    white-space: pre-wrap;
    max-height: 150px;
    overflow-y: auto;
    margin-bottom: clamp(10px, 2vh, 20px);

    /* Hide Scrollbar */
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.offer-desc::-webkit-scrollbar {
    display: none;
}

.offer-price {
    font-size: clamp(1.5rem, 5vmin, 2.2rem);
    margin-top: auto;
    /* Push to bottom */
    margin-bottom: clamp(10px, 2vh, 20px);
    font-weight: 800;
    color: #0f172a;
    /* Dark Slate for visibility on white */
}

.offer-btn {
    font-size: clamp(0.8rem, 2.5vmin, 1rem);
    padding: clamp(8px, 1.5vh, 12px) clamp(20px, 4vw, 30px);
    /* Background removed to respect btn-primary/btn-amazon classes */
    color: white;
    /* Text color white for contrast */
    border: none;
    pointer-events: auto;
    display: inline-block;
    border-radius: 50px;
    font-weight: 700;
}

/* MOBILE RESPONSIVE (STACKED) */
@media (max-width: 768px) {
    .carousel-slide {
        flex-direction: column !important;
        /* Stack Vertical */
        width: 95% !important;
        left: 50% !important;
    }

    /* Image Top Half */
    .offer-image-col {
        width: 100%;
        height: 45%;
        /* Slightly less than half */
        padding: 10px;
    }

    /* Content Bottom Half */
    .offer-content-col {
        width: 100%;
        height: 55%;
        padding: 20px 15px;
        /* Compact padding */
        justify-content: flex-start;
        /* Align top */
    }

    .offer-badge {
        margin-bottom: 10px;
        font-size: 0.7rem;
    }

    .offer-title {
        font-size: 1.3rem !important;
        margin-bottom: 8px;
    }

    .offer-desc {
        font-size: 0.9rem !important;
        max-height: 80px;
        margin-bottom: 10px;
    }

    .offer-price {
        font-size: 1.5rem !important;
        margin-bottom: 10px;
    }

    .offer-btn {
        width: 100%;
        text-align: center;
        padding: 10px;
        margin-top: auto;
    }
}

/* ==========================================================================
   DEVELOPER SIGNATURE CAPSULE
   ========================================================================== */
.dev-capsule-container {
    display: flex;
    justify-content: center;
    padding: 20px 0 40px;
    width: 100%;
    margin-top: -20px;
    /* Pull closer to footer if needed */
}

.dev-capsule {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: rgba(15, 23, 42, 0.6);
    /* Glass Dark */
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
}

.dev-capsule:hover {
    background: rgba(15, 23, 42, 0.9);
    border-color: var(--brand-primary);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.dev-text {
    font-size: 0.75rem;
    color: #94a3b8;
    /* Slate 400 */
    font-weight: 500;
}

.dev-name {
    color: var(--brand-primary);
    /* Indigo */
    font-weight: 700;
}

/* ==========================================================================
   AESTHETIC IMPROVEMENTS & CATEGORY TABS
   ========================================================================== */

/* 1. Carousel Image Background - White as requested */
.offer-image-col {
    background: #ffffff !important;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

/* 2. Text Visibility Fix - Removed justify-content override that broke layout */
.offer-content-col {
    /* REMOVED: justify-content: flex-start !important; - This broke the anchoring */
    overflow: hidden;
}

.offer-desc {
    max-height: none !important;
    /* Let text expand on Desktop */
    overflow-y: visible !important;
}

@media (max-width: 768px) {
    .offer-desc {
        max-height: 100px !important;
        /* Limit only on mobile */
        overflow-y: auto !important;
    }
}

/* ==========================================================================
   OFFER MODAL (Multi-Link Support)
   ========================================================================== */
.offer-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    /* Blur only background */
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.offer-modal-overlay.active {
    display: flex;
    opacity: 1;
}

.offer-modal-content {
    background-color: #1e293b;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    /* Slate 800 fallback */
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    padding: 40px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    animation: slideUp 0.3s ease-out;
    text-align: center;
}

/* Dark Overlay for readability */
.offer-modal-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(15, 23, 42, 0.4), rgba(15, 23, 42, 0.95));
    z-index: 1;
}

/* Ensure content is above overlay */
.offer-modal-content>* {
    position: relative;
    z-index: 2;
}

.offer-modal-content h2 {
    font-size: 2rem;
    font-weight: 800;
    color: white;
    margin-bottom: 10px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.offer-modal-content .offer-desc-full {
    color: #e2e8f0;
    font-size: 1.1rem;
    line-height: 1.6;
    text-align: center;
    /* Changed to center */
    white-space: pre-wrap;
    background: rgba(15, 23, 42, 0.6);
    /* Slight background for text block */
    padding: 20px;
    border-radius: 15px;
    backdrop-filter: blur(5px);
    margin-top: 20px;
    width: 100%;
    /* Ensure full width for centering */
}

/* Ensure links in modal look like buttons or distinct links */
.offer-modal-content .offer-desc-full a {
    display: block;
    /* Make them block buttons */
    background: var(--brand-primary);
    color: white !important;
    text-decoration: none !important;
    padding: 12px;
    border-radius: 10px;
    margin: 10px 0;
    text-align: center;
    font-weight: 700;
    transition: transform 0.2s;
}

.offer-modal-content .offer-desc-full a:hover {
    transform: scale(1.02);
    background: #565ce0;
}

.close-offer-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2rem;
    color: #94a3b8;
    cursor: pointer;
    transition: color 0.3s;
}

.close-offer-modal:hover {
    color: white;
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* --- CAROUSEL RESPONSIVENESS & TYPOGRAPHY FIXES --- */

.offer-info-stack {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: clamp(5px, 1vh, 10px);
    /* Reduced gap significantly and dynamic */
    width: 100%;
    height: 100%;
    /* Force full height for space-between */
    justify-content: space-between;
    /* Split Top/Bottom */
    overflow: hidden;
}

/* Dynamic Title Sizes */
/* Large (Short Titles) */
.offer-title.offer-title-lg {
    font-size: clamp(1.2rem, 4vmin, 2.2rem) !important;
    line-height: 1.1 !important;
}

/* Medium (Medium Titles) */
.offer-title.offer-title-md {
    font-size: clamp(1rem, 3.5vmin, 1.6rem) !important;
    line-height: 1.2 !important;
    /* Ensure max lines */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Small (Long Titles) */
.offer-title.offer-title-sm {
    font-size: clamp(0.9rem, 3vmin, 1.3rem) !important;
    line-height: 1.25 !important;
    /* Ensure long titles don't take too many lines even if small */
    display: -webkit-box;
    -webkit-line-clamp: 4;
    line-clamp: 4;
    /* Max 4 lines */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Mobile Adjustments for Offer Titles */
@media (max-width: 768px) {
    /* MOBILE CONTENT OPTIMIZATION (Proportional Scaling) */

    /* Standard Mobile Carousel Height */
    .hero-wrapper {
        margin-top: 20px;
        height: 85vh;
        min-height: 700px;
    }

    /* Override for specific IDs that use !important on desktop or inline styles */
    #offers-carousel-wrapper,
    #carosello-offerte-home {
        margin-top: 20px !important;
        height: 85vh !important;
        min-height: 700px !important;
    }

    .carousel-slide {
        width: 85% !important;
        /* Reduced width for peek effect */
        height: 88% !important;
        /* Force fit to wrapper but leave space for dots */
        min-height: auto !important;
        /* Remove fixed constraint */
        max-height: none !important;
        padding-bottom: 0px;
    }

    /* Adjust Prev/Next to be visible (Peek) on Mobile */
    .carousel-slide.prev {
        transform: translateY(-50%) translateX(-145%) scale(0.85) !important;
    }

    .carousel-slide.next {
        transform: translateY(-50%) translateX(45%) scale(0.85) !important;
    }

    /* FLEX LAYOUT: Enforce strict stacking without overlap */
    .carousel-slide {
        display: flex !important;
        flex-direction: column !important;
        justify-content: flex-start !important;
    }

    .offer-image-col {
        height: 55% !important;
        flex: 0 0 55% !important;
        border-radius: 20px 20px 0 0;
        overflow: hidden;
        padding: 5px;
        background: white;
        border-bottom: 2px solid white !important;
        /* WHITE DIVIDER */
        box-shadow: 0 4px 6px -4px rgba(0, 0, 0, 0.1);
        /* Subtle shadow instead of line for depth? Or just flat white */
    }

    .offer-slide-img {
        width: 100%;
        height: 100%;
        object-fit: contain !important;
    }

    .offer-content-col {
        height: 45% !important;
        flex: 0 0 45% !important;
        padding: 4px 8px !important;
        /* Reduced padding further */
        padding-bottom: 15px !important;

        display: flex !important;
        flex-direction: column !important;
        justify-content: space-between !important;
        /* Space between is better than evenly for tight fits */
        align-items: center !important;
        border-radius: 0 0 20px 20px;
        background: #f8fafc;
        /* Slight contrast for content area? Or keeps it consistent */
    }

    /* SHOW BADGE ON MOBILE (Fixed) */
    .badge-tag,
    .offer-badge {
        display: inline-block !important;
        font-size: 0.6rem !important;
        padding: 3px 8px !important;
        margin-bottom: 5px !important;
        letter-spacing: 0.5px !important;
        white-space: nowrap;
        flex-shrink: 0;
    }

    /* Titles: Simulating 'contain' - Shrink if needed, never overflow */
    .offer-content-col h1.hero-title,
    .offer-title.offer-title-lg,
    .offer-title.offer-title-md,
    .offer-title.offer-title-sm {
        font-size: clamp(0.70rem, 3vmin, 1.0rem) !important;
        /* Smaller min size for adaptation */
        line-height: 1.15 !important;
        margin-top: 5px !important;
        margin-bottom: 0 !important;
        text-align: center !important;

        /* CONTAINMENT LOGIC */
        flex: 0 1 auto !important;
        max-height: 42% !important;
        /* Give it a bit more room */
        overflow: hidden !important;

        white-space: normal !important;
        overflow-wrap: break-word !important;
        max-width: 100% !important;

        display: -webkit-box;
        -webkit-line-clamp: 3;
        line-clamp: 3;
        -webkit-box-orient: vertical;
    }

    .offer-badge {
        font-size: 0.6rem !important;
        padding: 2px 5px !important;
        margin-bottom: 2px !important;
    }

    .offer-desc {
        display: none !important;
    }

    .offer-price {
        font-size: clamp(1.1rem, 5vmin, 1.5rem) !important;
        margin-bottom: 0 !important;
        font-weight: 800;

        /* CONTAINMENT LOGIC */
        flex: 0 1 auto !important;
        max-height: 20% !important;
        overflow: hidden;
    }

    .offer-btn {
        padding: 5px 12px !important;
        font-size: 0.75rem !important;
        width: auto !important;
        min-width: 60%;
        margin-top: 2px !important;
        margin-bottom: 5px !important;

        /* CONTAINMENT LOGIC */
        flex: 0 0 auto !important;
        white-space: nowrap;
    }

    .carousel-dots {
        bottom: 2px !important;
    }
}

/* ==========================================================================
   ANIMATIONS (Scroll Reveal)
   ========================================================================== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-left.active {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(30px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-right.active {
    opacity: 1;
    transform: translateX(0);
}

.reveal-scale {
    opacity: 0;
    transform: scale(0.9);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-scale.active {
    opacity: 1;
    transform: scale(1);
}

/* ==========================================================================
   VERDICT BOX (Visual Ratings)
   ========================================================================== */
.verdict-box {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.8), rgba(30, 41, 59, 0.8));
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 30px;
    margin-top: 40px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
}

.verdict-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--brand-primary), var(--brand-secondary));
}

.verdict-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 20px;
}

.final-score {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: var(--bg-main);
    border: 4px solid var(--brand-accent);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
}

.score-value {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1;
    color: white;
}

.score-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    color: var(--text-muted);
}

.rating-bar {
    margin-bottom: 15px;
}

.rating-bar-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 5px;
}

.progress-track {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--brand-primary), var(--brand-secondary));
    border-radius: 10px;
    width: 0%;
    transition: width 1.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   PRO & CONS CARDS (Neon Style)
   ========================================================================== */
.pros-cons-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 20px;
}

.pro-card,
.con-card {
    background: rgba(15, 23, 42, 0.6);
    border-radius: 15px;
    padding: 25px;
    backdrop-filter: blur(10px);
    border: 1px solid transparent;
    transition: transform 0.3s;
}

.pro-card {
    border-color: rgba(74, 222, 128, 0.3);
    box-shadow: 0 10px 30px rgba(74, 222, 128, 0.05);
}

.con-card {
    border-color: rgba(248, 113, 113, 0.3);
    box-shadow: 0 10px 30px rgba(248, 113, 113, 0.05);
}

.pro-card:hover,
.con-card:hover {
    transform: translateY(-5px);
}

.pro-title {
    color: #4ade80;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.2rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.con-title {
    color: #f87171;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.2rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.pc-list li {
    margin-bottom: 10px;
    padding-left: 25px;
    position: relative;
    color: #cbd5e1;
    font-size: 0.95rem;
}

.pro-card .pc-list li::before {
    content: '\f00c';
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    left: 0;
    color: #4ade80;
}

.con-card .pc-list li::before {
    content: '\f00d';
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    left: 0;
    color: #f87171;
}

/* ==========================================================================
   GLASS SPECS TABLE
   ========================================================================== */
.specs-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 15px;
    overflow: hidden;
}

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

.specs-table th {
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8rem;
    width: 40%;
}

.specs-table td {
    color: white;
    font-weight: 500;
}

.specs-table tr:last-child td,
.specs-table tr:last-child th {
    border-bottom: none;
}

/* ==========================================================================
   RANKINGS PAGE LAYOUT (NEW)
   ========================================================================== */
.rankings-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
    padding-top: 40px;
}

/* Sidebar Styling (Desktop) */
.rankings-sidebar {
    display: block;
}

.filters-inner {
    background: #0f172a;
    padding: 25px;
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    position: sticky;
    top: 100px;
}

.filters-title {
    margin-bottom: 25px;
    font-size: 1.2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 15px;
}

.filter-group {
    margin-bottom: 25px;
}

.filter-group h4 {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
}

.filter-chips {
    display: flex;
    flex-direction: column;
    /* Vertical on Desktop */
    gap: 10px;
}

/* Chip Styling */
.filter-chip {
    cursor: pointer;
    position: relative;
    user-select: none;
}

.filter-chip input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.filter-chip span {
    display: block;
    padding: 10px 15px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: #cbd5e1;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

/* Checked State */
.filter-chip input:checked~span {
    background: #6366f1;
    color: white;
    border-color: #6366f1;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
    font-weight: 600;
}

.filter-chip:hover span {
    background: rgba(255, 255, 255, 0.06);
}

.filter-chip input:checked:hover span {
    background: #4f46e5;
}

/* Header Text */
.rankings-header-text h1 {
    font-size: 3rem;
    margin-bottom: 15px;
    background: linear-gradient(90deg, #fff, #94a3b8);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.rankings-header-text p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 40px;
}

.mobile-only {
    display: none;
}

/* ==========================================================================
   MOBILE RESPONSIVE (FILTERS ON TOP)
   ========================================================================== */
@media (max-width: 768px) {
    .rankings-layout {
        display: block;
        /* Stack */
        padding-top: 20px;
    }

    .rankings-header-text {
        text-align: center;
        margin-bottom: 20px;
    }

    .rankings-header-text h1 {
        font-size: 2.2rem;
    }

    /* Transform Sidebar into Horizontal Scroll Bar */
    .rankings-sidebar {
        margin-bottom: 30px;
        position: relative;
        z-index: 10;
        top: 0;
    }

    .filters-inner {
        background: transparent;
        border: none;
        padding: 0;
        position: static;
    }

    .filters-title {
        display: none;
    }

    .filter-group {
        margin-bottom: 15px;
    }

    .filter-group h4 {
        display: none;
    }

    .filter-chips {
        flex-direction: row;
        /* Horizontal */
        overflow-x: auto;
        padding-bottom: 10px;
        gap: 10px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .filter-chips::-webkit-scrollbar {
        display: none;
    }

    .filter-chip span {
        white-space: nowrap;
        padding: 8px 16px;
        font-size: 0.85rem;
        background: var(--glass-bg);
        border: 1px solid var(--glass-border);
        border-radius: 50px;
    }

    .mobile-only {
        display: block;
    }
}

/* Ranking Cards (Missing in some versions, ensuring presence) */
.rankings-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
}

.ranking-card {
    display: flex;
    align-items: center;
    background: #0f172a;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 20px;
    position: relative;
    transition: transform 0.3s;
    gap: 30px;
}

.ranking-card:hover {
    transform: translateY(-5px);
    background: #1e293b;
}

.border-gold {
    border: 1px solid #fbbf24;
    box-shadow: 0 0 20px rgba(251, 191, 36, 0.1);
}

.border-silver {
    border: 1px solid #94a3b8;
    box-shadow: 0 0 20px rgba(148, 163, 184, 0.1);
}

.border-bronze {
    border: 1px solid #b45309;
    box-shadow: 0 0 20px rgba(180, 83, 9, 0.1);
}

.rank-num {
    position: absolute;
    top: -10px;
    left: -10px;
    width: 40px;
    height: 40px;
    background: #334155;
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 800;
    font-size: 1.2rem;
    z-index: 2;
    border: 2px solid #0f172a;
}

.rank-num.gold {
    background: #fbbf24;
    color: #000;
    box-shadow: 0 0 15px rgba(251, 191, 36, 0.5);
}

.rank-num.silver {
    background: #e2e8f0;
    color: #475569;
    box-shadow: 0 0 15px rgba(226, 232, 240, 0.5);
}

.rank-num.bronze {
    background: #d97706;
    color: white;
    box-shadow: 0 0 15px rgba(217, 119, 6, 0.5);
}

.ranking-img-container {
    width: 250px;
    height: 160px;
    flex-shrink: 0;
    border-radius: 12px;
    overflow: hidden;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ranking-img-container img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.ranking-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.ranking-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
    font-size: 0.85rem;
}

.ranking-category {
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.ranking-rating {
    color: #fbbf24;
    font-weight: bold;
}

.ranking-title a {
    color: white;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 700;
    transition: color 0.3s;
}

.ranking-title a:hover {
    color: #6366f1;
}

.ranking-subtitle {
    color: #cbd5e1;
    font-size: 0.95rem;
    margin: 8px 0 15px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ranking-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
}

.ranking-price {
    font-size: 1.5rem;
    font-weight: 800;
    color: white;
}

.ranking-cta {
    display: inline-block;
    background: #6366f1;
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s;
}

.ranking-cta:hover {
    background: #4f46e5;
}

/* ==========================================================================
   PREMIUM SECTION TITLES (NEW)
   ========================================================================== */
.section-title-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 40px;
    position: relative;
    padding-left: 25px;
    border-left: 6px solid var(--brand-primary);
}

.section-title-wrapper.center {
    align-items: center;
    padding-left: 0;
    border-left: none;
    text-align: center;
}

.section-subtitle {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--brand-primary);
    text-transform: uppercase;
    letter-spacing: 4px;
    margin-bottom: 5px;
    text-shadow: 0 0 10px rgba(99, 102, 241, 0.3);
}

.section-title-premium {
    font-family: var(--font-main);
    font-weight: 900;
    font-size: clamp(1.7rem, 4.25vw, 3rem);
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: -1.5px;
    margin: 0;
    color: white;
    /* Gradient Text */
    background: linear-gradient(180deg, #ffffff 0%, #94a3b8 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.5));
}

.section-header-premium {
    text-align: center;
    margin-bottom: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.section-subtitle-premium {
    color: var(--brand-primary);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
    font-size: 0.8rem;
    /* Slightly reduced and fixed */
    display: inline-block;
    margin-bottom: 10px;
    position: relative;
    padding-bottom: 8px;
}

/* BUTTONS: SECTION LINKS (REDUCED BY 20%) */
.btn-section-premium {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    /* Reduced from 10/20 */
    border-radius: 30px;
    text-decoration: none;
    font-size: 0.75rem;
    /* Reduced from 0.9 */
    font-weight: 600;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
    color: white;
    backdrop-filter: blur(5px);
}

.btn-section-premium:hover {
    transform: scale(1.05);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.1);
}

/* Offers variant for button */
.btn-section-premium.offers-btn {
    background: var(--brand-accent);
    color: black;
    border: none;
    font-weight: 700;
}

.section-subtitle-premium::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: linear-gradient(90deg, var(--brand-primary), transparent);
    border-radius: 2px;
}

/* Centered specific version */
.section-header-premium .section-subtitle-premium::after {
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(90deg, transparent, var(--brand-primary), transparent);
    width: 50px;
}

/* THEMATIC GRADIENTS FOR TITLES */
.section-title-premium.rumors-text {
    background: linear-gradient(180deg, #ffffff 20%, #f43f5e 100%);
    -webkit-background-clip: text;
    background-clip: text;
}

.section-title-premium.guide-text {
    background: linear-gradient(180deg, #ffffff 20%, #10b981 100%);
    -webkit-background-clip: text;
    background-clip: text;
}

.section-title-premium.reviews-text {
    background: linear-gradient(180deg, #ffffff 20%, #6366f1 100%);
    -webkit-background-clip: text;
    background-clip: text;
}

.section-title-premium.mini-text {
    background: linear-gradient(180deg, #ffffff 20%, #a855f7 100%);
    -webkit-background-clip: text;
    background-clip: text;
}

.section-title-premium.mixed-text {
    background: linear-gradient(180deg, #ffffff 20%, #8b5cf6 100%);
    -webkit-background-clip: text;
    background-clip: text;
}

.section-title-premium.offers-text {
    background: linear-gradient(180deg, #ffffff 20%, #fbbf24 100%);
    -webkit-background-clip: text;
    background-clip: text;
}

/* OFFERS VARIANT WRAPPER */
.section-title-wrapper.offers-mode {
    border-left-color: var(--brand-amazon);
}

.section-title-wrapper.offers-mode .section-subtitle {
    color: var(--brand-amazon);
    text-shadow: 0 0 10px rgba(255, 153, 0, 0.3);
}


/* ==========================================================================
   HEADER / TOP BAR STYLES (Added for consistency)
   ========================================================================== */
.top-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(2, 6, 23, 0.85);
    /* Deep dark background */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.3s ease, background 0.3s ease;
    height: var(--header-h);
    /* Fixed height */
}

/* Hide header on scroll down */
.top-bar.header-hidden {
    transform: translateY(-100%);
}

/* ==========================================================================
   MOBILE MENU OVERLAY & TRIGGER (Added for functionality)
   ========================================================================== */

/* 1. Desktop: Hide Trigger, Show Nav */
.menu-trigger {
    display: none;
    /* Hidden by default on desktop */
    background: none;
    border: none;
    cursor: pointer;
    color: white;
    padding: 5px;
    transition: transform 0.2s;
}

.menu-trigger:active {
    transform: scale(0.95);
}

.desktop-nav {
    display: flex;
}

/* 2. Mobile Overlay Styles */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(2, 6, 23, 0.95);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    z-index: 2000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 30px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.mobile-menu-overlay a {
    font-size: 2rem;
    font-family: var(--font-main);
    font-weight: 700;
    color: white;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-decoration: none;
    transition: color 0.3s;
}

.mobile-menu-overlay a:hover {
    color: var(--brand-primary);
}

/* 3. Mobile Response */
@media (max-width: 768px) {
    .menu-trigger {
        display: block;
        /* Show trigger on mobile */
    }

    .desktop-nav {
        display: none !important;
        /* Hide desktop nav on mobile */
    }

    /* Adjust header padding/layout for mobile */
    .top-bar {
        padding: 0 15px;
    }
}

/* ==========================================================================
   MOBILE CAROUSEL HEIGHT INCREASE (User Request +70%)
   ========================================================================== */
@media (max-width: 768px) {
    .hero-wrapper {
        height: 85vh !important;
        /* Increased from default */
        min-height: 700px !important;
        /* Ensures it's tall enough */
    }

    #offers-carousel-wrapper {
        height: 85vh !important;
        min-height: 700px !important;
    }

    /* Adjust slide size to fill the taller wrapper */
    .carousel-slide {
        width: 85% !important;
        /* Slightly wider on mobile */
        height: 85% !important;
    }

    /* Adjust image/content split for taller slides if needed */
    .offer-image-col {
        height: 50%;
        /* Image takes top half */
    }

    .offer-content-col {
        height: 50%;
        /* Content takes bottom half */
        padding: 20px;
    }
}

/* ==========================================================================
   CATEGORY FILTERS (OFFERS PAGE)
   ========================================================================== */
.category-filters {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 10px 5px 20px 5px;
    /* Padding bottom for scrollbar space */
    margin-bottom: 30px;
    scrollbar-width: thin;
    scrollbar-color: var(--brand-primary) var(--glass-bg);
    -webkit-overflow-scrolling: touch;
}

.category-filters::-webkit-scrollbar {
    height: 6px;
}

.category-filters::-webkit-scrollbar-track {
    background: var(--glass-bg);
    border-radius: 10px;
}

.category-filters::-webkit-scrollbar-thumb {
    background-color: var(--brand-primary);
    border-radius: 10px;
}

.cat-btn {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-muted);
    padding: 10px 20px;
    border-radius: 50px;
    /* Pill shape */
    font-family: 'Outfit', sans-serif;
    font-weight: 500;
    font-size: 0.95rem;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.cat-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.3);
}

.cat-btn.active {
    background: var(--brand-primary);
    color: white;
    border-color: var(--brand-primary);
    box-shadow: 0 0 15px rgba(0, 204, 255, 0.4);
}

/* ==========================================================================
   SOCIAL CTA BOX ANIMATIONS (Pulse + Shine)
   ========================================================================== */
.social-cta-box {
    text-align: center;
    margin: 0 auto 50px auto;
    background: rgba(255, 255, 255, 0.03);
    padding: 30px;
    border-radius: 20px;
    max-width: 800px;
    position: relative;
    overflow: hidden;
    /* For shine effect */

    /* Border & Initial Shadow */
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);

    /* Pulse Animation */
    animation: boxWaterClick 2s infinite;
}

/* Shine Effect (Running Reflection) */
.social-cta-box::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right,
            transparent 0%,
            rgba(255, 255, 255, 0.1) 50%,
            transparent 100%);
    transform: skewX(-25deg);
    animation: boxShineRun 4s infinite;
    /* Slower 4s */
    pointer-events: none;
}

/* Keyframes */
@keyframes boxWaterClick {
    0% {
        box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.4);
        border-color: rgba(99, 102, 241, 0.5);
    }

    50% {
        box-shadow: 0 0 20px 10px rgba(99, 102, 241, 0);
        border-color: rgba(99, 102, 241, 0.2);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(99, 102, 241, 0);
        border-color: rgba(255, 255, 255, 0.1);
    }
}

@keyframes boxShineRun {
    0% {
        left: -100%;
        opacity: 0;
    }

    30% {
        opacity: 1;
    }

    100% {
        left: 200%;
        opacity: 0;
    }
}

/* ==========================================================================
   REVIEW ARTICLES (Mini-Reviews)
   ========================================================================== */
.hero-image-container {
    margin-bottom: 40px !important;
    border-radius: 24px !important;
    overflow: hidden !important;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4) !important;
    border: 1px solid var(--glass-border) !important;
    max-height: 475px !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    background: rgba(0, 0, 0, 0.2) !important;
}

.hero-image-container img {
    max-height: 475px !important;
    width: auto !important;
    max-width: 100% !important;
    object-fit: contain !important;
    display: block !important;
    transition: opacity 0.3s ease !important;
    margin: 0 auto !important;
}

@media (max-width: 768px) {
    .hero-image-container {
        max-height: 330px !important;
        border-radius: 16px !important;
        margin-bottom: 25px !important;
    }

    .hero-image-container img {
        max-height: 330px !important;
    }
}

.gallery-thumb {
    height: 75px !important;
    width: 75px !important;
    object-fit: cover !important;
    border-radius: 12px !important;
    cursor: pointer !important;
    border: 2px solid transparent !important;
    transition: all 0.3s ease !important;
}

.gallery-thumb:hover {
    border-color: var(--brand-primary) !important;
    transform: scale(1.05);
}

/* ==========================================================================
   BOT NOTIFICATION BOX
   ========================================================================== */
.bot-notification-box {
    background: rgba(0, 136, 204, 0.1);
    border: 1px solid rgba(0, 136, 204, 0.3);
    border-radius: 15px;
    padding: 20px;
    margin-top: 30px;
    text-align: center;
}

.bot-notification-box h4 {
    color: #0088cc;
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}


/* ==========================================================================
   SCROLL REVEAL ANIMATIONS
   ========================================================================== */
.reveal,
.reveal-left,
.reveal-right,
.reveal-scale {
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform, opacity;
}

.reveal {
    transform: translateY(30px);
}

.reveal-left {
    transform: translateX(-30px);
}

.reveal-right {
    transform: translateX(30px);
}

.reveal-scale {
    transform: scale(0.95);
}

.reveal.active,
.reveal-left.active,
.reveal-right.active,
.reveal-scale.active {
    opacity: 1;
    transform: translate(0) scale(1);
}

/* Delay staggered for list items or multiple reveals */
.reveal-list>*:nth-child(1) {
    transition-delay: 0.1s;
}

.reveal-list>*:nth-child(2) {
    transition-delay: 0.2s;
}

.reveal-list>*:nth-child(3) {
    transition-delay: 0.3s;
}

.reveal-list>*:nth-child(4) {
    transition-delay: 0.4s;
}

/* ==========================================================================
   DUAL OFFER GRID (Amazon + Bot)
   ========================================================================== */
@keyframes shine-move {
    0% {
        left: -100%;
        opacity: 0;
    }

    5% {
        opacity: 0.5;
    }

    20% {
        left: 100%;
        opacity: 0;
    }

    100% {
        left: 100%;
        opacity: 0;
    }
}

.shine-card {
    position: relative;
    overflow: hidden;
}

.shine-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.4), transparent);
    transform: skewX(-25deg);
    animation: shine-move 3s infinite;
    pointer-events: none;
}

.dual-offer-grid {
    display: grid;
    /* HORIZONTAL BY DEFAULT ON DESKTOP */
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 25px;
    margin: 40px auto;
    max-width: 850px;
    width: 100%;
}

aside .dual-offer-grid {
    grid-template-columns: 1fr !important;
}

.dual-offer-grid .glass-panel {
    min-height: 420px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-sizing: border-box;
    padding: 45px 35px !important;
    border-radius: 20px !important;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.dual-offer-grid .glass-panel h3,
.dual-offer-grid .glass-panel p,
.dual-offer-grid .glass-panel>div>div {
    text-align: center;
    width: 100%;
}

.offer-card-amazon {
    background: #18181b !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3) !important;
}

.offer-card-bot {
    background: #0f172a !important;
    border: 1px solid rgba(14, 165, 233, 0.3) !important;
    box-shadow: 0 10px 40px rgba(14, 165, 233, 0.05) !important;
}

.dual-offer-grid .glass-panel:hover {
    transform: translateY(-5px);
}

/* RESPONSIVE: STACK ON SMARTPHONES */
@media (max-width: 768px) {
    .dual-offer-grid {
        grid-template-columns: 1fr !important;
        max-width: 100%;
        width: 100%;
        gap: 20px;
        overflow-x: hidden;
    }
}

/* ==========================================================================
   BOT NOTIFICATION BOX
   ========================================================================== */
.bot-notification-box {
    background: var(--glass-bg);
    padding: 30px;
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    margin: 20px 0;
    text-align: center;
}

.bot-notification-box h4 {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 15px;
    color: white;
    font-size: 1.2rem;
}

.bot-notification-box h4 i {
    color: #0088cc;
}

.bot-notification-box p {
    color: #cbd5e1;
    margin-bottom: 25px;
    line-height: 1.6;
}

.btn-stack {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
}

.btn-stack a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 20px;
    border-radius: 50px;
    font-weight: bold;
    text-decoration: none;
    width: 100%;
    max-width: 300px;
    transition: transform 0.2s, filter 0.2s;
}

.btn-stack a:hover {
    transform: scale(1.02);
    filter: brightness(1.1);
}