:root {
            --color-cream: #F5F1E8;
            --color-charcoal: #2B2B2B;
            --color-forest: #1A4D2E;
            --color-gold: #C9A961;
            --color-white: #FFFFFF;
        }
        
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        
        body {
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
            color: var(--color-charcoal);
            background-color: var(--color-cream);
            line-height: 1.6;
            overflow-x: hidden;
        }
        
        /* Typography */
        h1, h2, h3, h4, h5, h6 {
            font-weight: 600;
            line-height: 1.2;
        }
        
        h1 {
            font-size: 3.5rem;
            font-weight: 500;
            letter-spacing: -0.02em;
        }
        
        h2 {
            font-size: 2.5rem;
            font-weight: 500;
        }
        
        h3 {
            font-size: 1.75rem;
        }
        
        p {
            line-height: 1.6;
        }
        
        /* Header */
        .navbar {
            background-color: var(--color-white);
            border-bottom: 1px solid rgba(43, 43, 43, 0.1);
            padding: 1.25rem 0;
            width: 100%;
        }

        .navbar .container {
            display: flex;
            align-items: center;
            justify-content: space-between;
        }

        .navbar-brand {
            font-size: 1.5rem;
            font-weight: 600;
            color: var(--color-charcoal);
            letter-spacing: -0.01em;
        }

        .navbar-nav .nav-link {
            color: var(--color-charcoal);
            font-size: 0.95rem;
            padding: 0.5rem 1.25rem;
            transition: color 0.2s;
        }

        .navbar-nav .nav-link:hover {
            color: var(--color-forest);
        }
        
        .btn-primary {
            background-color: var(--color-forest);
            border: none;
            padding: 0.75rem 2rem;
            font-weight: 500;
            border-radius: 2rem;
            transition: all 0.3s;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .btn-primary:hover {
            background-color: #153d24;
            transform: translateY(-1px);
        }

        .btn-outline-primary {
            color: var(--color-charcoal);
            border: 2px solid var(--color-charcoal);
            padding: 0.75rem 2rem;
            font-weight: 500;
            border-radius: 2rem;
            background-color: transparent;
            transition: all 0.3s;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }
        
        .btn-outline-primary:hover {
            background-color: var(--color-charcoal);
            color: var(--color-white);
            border-color: var(--color-charcoal);
        }
        
        /* Hero Section */
        .hero-section {
            background-color: var(--color-white);
            padding: 5rem 0;
            border-bottom: 1px solid rgba(43, 43, 43, 0.1);
        }
        
        .hero-title {
            margin-bottom: 1.5rem;
        }
        
        .hero-subtitle {
            font-size: 1.25rem;
            color: #5A5A5A;
            margin-bottom: 2.5rem;
            line-height: 1.6;
        }
        
        .hero-features {
            list-style: none;
            padding: 0;
            margin-bottom: 2.5rem;
        }
        
        .hero-features li {
            display: flex;
            align-items: center;
            margin-bottom: 1rem;
            font-size: 1.05rem;
        }
        
        .hero-features li i {
            color: var(--color-forest);
            font-size: 1.25rem;
            margin-right: 0.75rem;
        }
        
        .hero-image {
            width: 100%;
            height: 500px;
            object-fit: cover;
            border-radius: 0.5rem;
        }
        
        /* Comparison Section — base grigia diagonale + due layer di SVG
           inline con blob asimmetrici (path organici, NON ellissi/cerchi)
           pieni di gradienti casinò (oro, champagne, viola, bordeaux,
           lavanda). preserveAspectRatio='none' fa stretchare i blob
           proporzionalmente alla section, così la composizione si
           ridistribuisce in modo coerente su tutte le risoluzioni.
           Statico per performance. */
        .comparison-section {
            padding: 2.5rem 0 5rem;
            background:
                linear-gradient(165deg, #EFF1F5 0%, #DCDFE3 45%, #C9CDD3 100%);
            position: relative;
            overflow: hidden;
            isolation: isolate;
        }

        /* Layer 1 — SVG blob CALDI (oro + champagne) con feGaussianBlur
           interno alla SVG per far diffondere i bordi senza usare CSS filter
           (più leggero del blur su layer DOM). */
        .comparison-section::before {
            content: "";
            position: absolute;
            inset: 0;
            background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' preserveAspectRatio='none' viewBox='0 0 1200 700'><defs><filter id='f' x='-15%25' y='-15%25' width='130%25' height='130%25'><feGaussianBlur stdDeviation='28'/></filter><radialGradient id='ga' cx='50%25' cy='50%25' r='60%25'><stop offset='0%25' stop-color='rgb(255,196,40)' stop-opacity='.9'/><stop offset='100%25' stop-color='rgb(255,196,40)' stop-opacity='0'/></radialGradient><radialGradient id='gb' cx='50%25' cy='50%25' r='60%25'><stop offset='0%25' stop-color='rgb(255,215,80)' stop-opacity='.7'/><stop offset='100%25' stop-color='rgb(255,215,80)' stop-opacity='0'/></radialGradient><radialGradient id='gc' cx='50%25' cy='50%25' r='60%25'><stop offset='0%25' stop-color='rgb(214,162,48)' stop-opacity='.55'/><stop offset='100%25' stop-color='rgb(214,162,48)' stop-opacity='0'/></radialGradient></defs><g filter='url(%23f)'><path d='M-50,80 C170,10 380,130 410,290 C430,440 280,560 130,540 C-30,520 -130,400 -120,260 C-110,150 -110,150 -50,80 Z' fill='url(%23ga)'/><path d='M1250,40 C1080,90 920,200 1010,360 C1110,520 1300,460 1330,310 C1350,200 1340,80 1250,40 Z' fill='url(%23gb)'/><path d='M740,180 C920,160 990,310 920,420 C840,540 680,510 630,420 C580,330 600,210 740,180 Z' fill='url(%23gc)'/></g></svg>");
            background-size: 100% 100%;
            background-repeat: no-repeat;
            pointer-events: none;
            z-index: -2;
        }

        /* Layer 2 — SVG blob FREDDI/SATURI (viola, lavanda, bordeaux) con
           mix-blend-mode: multiply: dove incrociano l'oro nascono toni
           ambra/rame/sangria — luce filtrata di sala slot. */
        .comparison-section::after {
            content: "";
            position: absolute;
            inset: 0;
            background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' preserveAspectRatio='none' viewBox='0 0 1200 700'><defs><filter id='f' x='-15%25' y='-15%25' width='130%25' height='130%25'><feGaussianBlur stdDeviation='32'/></filter><radialGradient id='ha' cx='50%25' cy='50%25' r='60%25'><stop offset='0%25' stop-color='rgb(130,50,195)' stop-opacity='.7'/><stop offset='100%25' stop-color='rgb(130,50,195)' stop-opacity='0'/></radialGradient><radialGradient id='hb' cx='50%25' cy='50%25' r='60%25'><stop offset='0%25' stop-color='rgb(170,40,70)' stop-opacity='.55'/><stop offset='100%25' stop-color='rgb(170,40,70)' stop-opacity='0'/></radialGradient><radialGradient id='hc' cx='50%25' cy='50%25' r='60%25'><stop offset='0%25' stop-color='rgb(180,110,220)' stop-opacity='.45'/><stop offset='100%25' stop-color='rgb(180,110,220)' stop-opacity='0'/></radialGradient></defs><g filter='url(%23f)'><path d='M1180,720 C990,680 830,540 890,420 C940,310 1110,300 1210,400 C1310,500 1310,690 1260,720 Z' fill='url(%23ha)'/><path d='M-50,720 C150,690 330,560 290,440 C240,310 80,310 -50,400 C-160,500 -130,690 -50,720 Z' fill='url(%23hb)'/><path d='M340,290 C500,260 580,400 510,510 C420,620 250,580 220,470 C200,370 240,310 340,290 Z' fill='url(%23hc)'/></g></svg>");
            background-size: 100% 100%;
            background-repeat: no-repeat;
            mix-blend-mode: multiply;
            pointer-events: none;
            z-index: -1;
        }

        .comparison-section > * {
            position: relative;
            z-index: 1;
        }

        /* "Updated {month} {year}" pill above the comparison title — interactive
           live indicator with pulsing dot, hover lift, and freshness affordance */
        .updated-badge {
            background-color: rgba(26, 77, 46, 0.08);
            color: var(--color-charcoal);
            border: 1px solid rgba(26, 77, 46, 0.18);
            transition: background-color 0.25s ease, border-color 0.25s ease,
                        transform 0.25s ease, box-shadow 0.25s ease;
            cursor: default;
            letter-spacing: 0.5px;
            font-weight: 600;
        }

        .updated-badge:hover {
            background-color: rgba(26, 77, 46, 0.16);
            border-color: rgba(26, 77, 46, 0.35);
            transform: translateY(-1px);
            box-shadow: 0 4px 12px rgba(26, 77, 46, 0.12);
        }

        .updated-dot {
            display: inline-block;
            width: 8px;
            height: 8px;
            background-color: #22c55e;
            border-radius: 50%;
            box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
            animation: updated-dot-pulse 2s infinite;
            flex-shrink: 0;
        }

        @keyframes updated-dot-pulse {
            0%   { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7); }
            70%  { box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); }
            100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
        }

        @media (prefers-reduced-motion: reduce) {
            .updated-dot { animation: none; }
            .updated-badge { transition: none; }
        }

        /* "Claimed today" counter pill — sibling of .updated-badge.
           Tonalità ambra/oro per distinguerlo dal verde dell'updated badge,
           usa la stessa silhouette pill (small px-3 py-1 rounded-3) per coerenza.
           Il numero ha font-variant-numeric:tabular-nums così le cifre non
           "ballano" mentre il counter incrementa live via JS. */
        .claimed-badge {
            background-color: rgba(201, 131, 26, 0.10);
            color: var(--color-charcoal);
            border: 1px solid rgba(201, 131, 26, 0.22);
            transition: background-color 0.25s ease, border-color 0.25s ease,
                        transform 0.25s ease, box-shadow 0.25s ease;
            cursor: default;
            letter-spacing: 0.5px;
            font-weight: 600;
        }

        .claimed-badge:hover {
            background-color: rgba(201, 131, 26, 0.18);
            border-color: rgba(201, 131, 26, 0.40);
            transform: translateY(-1px);
            box-shadow: 0 4px 12px rgba(201, 131, 26, 0.14);
        }

        .claimed-icon {
            color: #C9831A;
            font-size: 0.95rem;
            line-height: 1;
        }

        .claimed-count {
            font-variant-numeric: tabular-nums;
            display: inline-block;
            transition: color 0.3s ease, transform 0.3s ease;
        }

        .claimed-count.claimed-bump {
            color: var(--color-forest);
            transform: scale(1.08);
        }

        @media (prefers-reduced-motion: reduce) {
            .claimed-badge { transition: none; }
            .claimed-count { transition: none; }
            .claimed-count.claimed-bump { transform: none; }
        }

        /* Riga meta sopra l'H1 (Updated + Claimed today) — su mobile shrink
           le due pill per farle stare affiancate sulla stessa riga senza wrap. */
        @media (max-width: 575.98px) {
            .chart-meta-row {
                gap: 6px !important;
            }
            .chart-meta-row .updated-badge,
            .chart-meta-row .claimed-badge {
                font-size: 0.62rem;
                padding: 3px 8px !important;
                letter-spacing: 0.3px;
                gap: 5px !important;
                white-space: nowrap;
                min-width: 0;
            }
            .chart-meta-row .updated-dot {
                width: 6px;
                height: 6px;
            }
            .chart-meta-row .claimed-icon {
                font-size: 0.78rem;
            }
        }
        
        .section-header {
            text-align: center;
            margin-bottom: 3rem;
        }
        
        .section-subtitle {
            color: #5A5A5A;
            font-size: 1.1rem;
            margin-top: 0.75rem;
        }
        
        .comparison-card {
            background-color: var(--color-white);
            border: 1px solid rgba(43, 43, 43, 0.1);
            border-radius: 0.75rem;
            padding: 2rem;
            margin-bottom: 1.5rem;
            transition: all 0.3s;
        }
        
        .comparison-card:hover {
            box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
            transform: translateY(-2px);
        }
        
        .rank-badge {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 40px;
            height: 40px;
            background-color: var(--color-forest);
            color: var(--color-white);
            border-radius: 50%;
            font-weight: 600;
            font-size: 1.25rem;
        }
        
        .platform-name {
            font-size: 1.5rem;
            font-weight: 600;
            margin-bottom: 0.5rem;
        }
        
        .bonus-badge {
            display: inline-block;
            background-color: var(--color-gold);
            color: var(--color-white);
            padding: 0.5rem 1.25rem;
            border-radius: 2rem;
            font-weight: 600;
            font-size: 1.1rem;
            margin-bottom: 1rem;
        }
        
        .score-badge {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 60px;
            height: 60px;
            background-color: var(--color-forest);
            color: var(--color-white);
            border-radius: 50%;
            font-weight: 700;
            font-size: 1.5rem;
        }
        
        .rating-stars {
            color: var(--color-gold);
            font-size: 1.25rem;
            margin-bottom: 1rem;
        }
        
        .feature-list {
            list-style: none;
            padding: 0;
            margin: 1.5rem 0;
        }
        
        .feature-list li {
            display: flex;
            align-items: center;
            margin-bottom: 0.75rem;
            color: #5A5A5A;
        }
        
        .feature-list li i {
            color: var(--color-forest);
            margin-right: 0.75rem;
            font-size: 1.1rem;
        }
        
        .btn-claim {
            background-color: var(--color-forest);
            color: var(--color-white);
            border: none;
            padding: 0.875rem 2rem;
            font-weight: 600;
            border-radius: 2rem;
            width: 100%;
            margin-bottom: 0.75rem;
            transition: all 0.3s;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .btn-claim:hover {
            background-color: #153d24;
            transform: translateY(-1px);
        }

        .btn-visit {
            background-color: transparent;
            color: var(--color-charcoal);
            border: 2px solid var(--color-charcoal);
            padding: 0.875rem 2rem;
            font-weight: 600;
            border-radius: 2rem;
            width: 100%;
            transition: all 0.3s;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }
        
        .btn-visit:hover {
            background-color: var(--color-charcoal);
            color: var(--color-white);
        }
        
        /* Methodology Section */
        .methodology-section {
            padding: 5rem 0;
            background-color: var(--color-white);
        }
        
        .methodology-card {
            background-color: var(--color-cream);
            border: 1px solid rgba(43, 43, 43, 0.1);
            border-radius: 0.75rem;
            padding: 2.5rem;
            height: 100%;
            transition: all 0.3s;
        }
        
        .methodology-card:hover {
            transform: translateY(-4px);
            box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
        }
        
        .methodology-icon {
            width: 60px;
            height: 60px;
            background-color: var(--color-forest);
            color: var(--color-white);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.75rem;
            margin-bottom: 1.5rem;
        }
        
        .methodology-title {
            font-size: 1.5rem;
            font-weight: 600;
            margin-bottom: 1rem;
        }
        
        .methodology-text {
            color: #5A5A5A;
            line-height: 1.6;
        }
        
        /* Responsible Gambling Section */
        .responsible-section {
            background-color: #FFF8E7;
            border: 2px solid var(--color-gold);
            border-radius: 0.75rem;
            padding: 2.5rem;
            margin: 4rem 0;
        }
        
        .responsible-icon {
            width: 70px;
            height: 70px;
            background-color: var(--color-gold);
            color: var(--color-white);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 2rem;
            margin-bottom: 1.5rem;
        }
        
        .responsible-title {
            font-size: 2rem;
            font-weight: 600;
            margin-bottom: 1rem;
        }
        
        .responsible-text {
            color: #5A5A5A;
            font-size: 1.1rem;
            margin-bottom: 2rem;
            line-height: 1.6;
        }
        
        .btn-help {
            background-color: var(--color-charcoal);
            color: var(--color-white);
            border: none;
            padding: 0.875rem 2rem;
            font-weight: 600;
            border-radius: 2rem;
            margin-right: 1rem;
            transition: all 0.3s;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .btn-help:hover {
            background-color: #1a1a1a;
        }

        .btn-resources {
            background-color: transparent;
            color: var(--color-charcoal);
            border: 2px solid var(--color-charcoal);
            padding: 0.875rem 2rem;
            font-weight: 600;
            border-radius: 2rem;
            transition: all 0.3s;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }
        
        .btn-resources:hover {
            background-color: var(--color-charcoal);
            color: var(--color-white);
        }
        
        /* Footer */
        .footer {
            background-color: var(--color-charcoal);
            color: var(--color-white);
            padding: 4rem 0 2rem;
        }
        
        .footer-brand {
            font-size: 1.75rem;
            font-weight: 600;
            margin-bottom: 1rem;
        }
        
        .footer-description {
            color: #B8B8B8;
            line-height: 1.6;
            margin-bottom: 2rem;
        }
        
        .footer-title {
            font-size: 1.1rem;
            font-weight: 600;
            margin-bottom: 1.25rem;
        }
        
        .footer-links {
            list-style: none;
            padding: 0;
        }
        
        .footer-links li {
            margin-bottom: 0.75rem;
        }
        
        .footer-links a {
            color: #B8B8B8;
            text-decoration: none;
            transition: color 0.2s;
        }
        
        .footer-links a:hover {
            color: var(--color-white);
        }
        
        .footer-bottom {
            border-top: 1px solid rgba(255, 255, 255, 0.1);
            margin-top: 3rem;
            padding-top: 2rem;
            text-align: center;
            color: #B8B8B8;
        }

        .footer-bottom p {
            font-size: 11px;
            line-height: 1.5;
            letter-spacing: 0.2px;
            margin-bottom: 0;
        }
        
        .trust-badges {
            display: flex;
            gap: 1.5rem;
            margin-top: 2rem;
            flex-wrap: wrap;
        }
        
        .trust-badge {
            background-color: rgba(255, 255, 255, 0.1);
            padding: 0.75rem 1.5rem;
            border-radius: 0.5rem;
            font-size: 0.9rem;
            color: #B8B8B8;
        }
        
        /* Responsive */
        @media (max-width: 768px) {
            h1 {
                font-size: 2.5rem;
            }
            
            h2 {
                font-size: 2rem;
            }
            
            .hero-section {
                padding: 3rem 0;
            }
            
            .hero-image {
                height: 300px;
                margin-top: 2rem;
            }
            
            .comparison-section,
            .methodology-section {
                padding: 3rem 0;
            }

            .comparison-section {
                padding: 1.5rem 0 3rem;
            }
            
            .btn-help {
                margin-right: 0;
                margin-bottom: 1rem;
                width: 100%;
            }
            
            .btn-resources {
                width: 100%;
            }
        }
        /* Match golden-ticket CTA sizing/typography to the standard .btn-primary used in the other comparison cards — only the color (warning) differs */
.promo-card .btn-warning {
    border: none;
    padding: 0.75rem 2rem;
    font-weight: 500;
    border-radius: 2rem;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.promo-card .btn-warning:hover {
    transform: translateY(-1px);
}

/* Comparison card baseline height — moved out of inline style="min-height: 180px"
   in commons/comparison.php so the desktop override can reduce it cleanly */
.c-card {
    min-height: 180px;
}

@media (min-width: 992px) {
    .c-card {
        min-height: 130px;
    }
}

/* Ombra minima sulle card standard (esclusa la promo che ha già il suo glow gold).
   Light shadow at rest + lift on hover, in linea con la transizione `.promo-card`. */
.c-card:not(.promo-card) {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.c-card:not(.promo-card):hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.10);
}

/* Mobile — comparison card CTAs were oversized vs the rest of the card content */
@media (max-width: 575.98px) {
    .c-card .btn-primary,
    .c-card .btn-warning {
        padding: 0.5rem 1.25rem;
        font-size: 0.8rem;
        letter-spacing: 0.3px;
    }
}

/* Standard comparison cards — match the bonus typography sizing of the promo card on mobile.
   Promo card overrides live in lp.php (.promo-bonus-amount / .promo-bonus-label); these mirror them
   for the other cards so all rows look visually balanced. */
@media (max-width: 991.98px) {
    .c-card:not(.promo-card) h6 {
        font-size: .95rem;
        line-height: 1.2;
    }
    .c-card:not(.promo-card) .text-primary.small {
        font-size: .65rem;
    }
}

@media (max-width: 575.98px) {
    .c-card:not(.promo-card) h6 {
        font-size: .82rem;
    }
    .c-card:not(.promo-card) .text-primary.small {
        font-size: .58rem;
    }
}

/* Style for the "BEST CHOICE" badge on comparison cards */
.best-choice-badge {
    /* Positioning */
    top: 0;
    left: 0;
    z-index: 2; /* Ensure it is above card content */

    /* Layout — flex to align icon + label, stessa larghezza per tutte e tre le varianti */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 170px;

    /* Look and Feel */
    padding: 6px 15px;
    background-color: #FACC4A; /* Gold/Orange background color */
    color: #212529; /* Dark text color */
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    line-height: 1;
    letter-spacing: 0.5px;

    /* Border Radius for the perfect corner fit (assuming Bootstrap's .rounded-3 is 0.3rem) */
    border-top-left-radius: 0.3rem; /* Match the card's top-left radius */
    border-top-right-radius: 0;      /* Sharp corner */
    border-bottom-left-radius: 0;    /* Sharp corner */
    border-bottom-right-radius: 0.3rem; /* Optional: Slight rounding on bottom-right for a neat cutout look */
}

/* Reviews count under stars — 10px mobile, 11px desktop */
.reviews-count {
    font-size: 10px;
}
@media (min-width: 992px) {
    .reviews-count { font-size: 11px; }
}

/* "Visit Site" link below CTA — 11px mobile, Bootstrap .small on desktop */
@media (max-width: 991.98px) {
    .visit-site { font-size: 11px; }
}

/* H1 ".fs-1" — ridotto di 2px su mobile rispetto al calc fluido di Bootstrap */
@media (max-width: 991.98px) {
    h1.fs-1 { font-size: calc(1.375rem + 1.5vw - 2px) !important; }
}

/* "Welcome Bonus" label sulle card regolari — verde della CTA (forest) +
   stessa scala responsive della .promo-bonus-label sul promo card */
.welcome-bonus-label {
    color: var(--color-forest);
}
@media (max-width: 991.98px) {
    .welcome-bonus-label { font-size: .65rem; }
}
@media (max-width: 575.98px) {
    .welcome-bonus-label { font-size: .58rem; letter-spacing: .5px; }
}

/* Variante "MOST POPULAR" sulla 2ª card — stesse dimensioni della "BEST CHOICE"
   ma palette rosa/rosé caldo che si lega al cuore rosso dell'icona: comunica
   "amato dagli utenti" senza competere con l'oro del campione */
.most-popular-badge {
    background-color: #FFD9E0;
    color: #8B1538;
}

/* Variante "NEW & HOT" sulla 3ª card — stesse dimensioni di .best-choice-badge
   ma con gradiente caldo (rosso → arancio) + pulse glow per dare l'idea di
   "nuovo / speciale / in salita" senza competere con la badge oro della promo */
.trending-badge {
    background: linear-gradient(135deg, #FF3D6E 0%, #FF8A3D 100%);
    color: #FFFFFF;
    animation: trending-pulse 2.4s ease-in-out infinite;
}

.top-rated-badge {
    background: linear-gradient(135deg, #2E7D32 0%, #66BB6A 100%);
    color: #FFFFFF;
}

.trending-spark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.25em;
    height: 1.25em;
    margin-right: 4px;
    border-radius: 50%;
    background-color: #1a1300;
    color: #FFE680;
    font-size: 0.85em;
    line-height: 1;
    text-shadow: 0 0 6px rgba(255, 230, 128, 0.9);
    box-shadow: 0 0 0 1px rgba(255, 230, 128, 0.45);
    animation: trending-spark-spin 3s linear infinite;
}

/* Cuore che batte sulla badge MOST POPULAR — heartbeat in due tempi
   (sistole + diastole) per dare il senso di "amato dagli utenti".
   Colore rosso saturo che spicca sull'argento neutro della badge. */
.trending-heart {
    display: inline-block;
    margin-right: 4px;
    color: #E53935;
    text-shadow: 0 0 4px rgba(229, 57, 53, 0.55);
    transform-origin: center;
    animation: trending-heart-beat 1.2s ease-in-out infinite;
}

@keyframes trending-heart-beat {
    0%   { transform: scale(1);    }
    14%  { transform: scale(1.25); }
    28%  { transform: scale(1);    }
    42%  { transform: scale(1.18); }
    70%  { transform: scale(1);    }
    100% { transform: scale(1);    }
}

/* Fiamma "che brucia" sulla badge NEW & HOT — flicker che combina:
   - oscillazione verticale + scale per simulare la combustione
   - lieve rotazione asimmetrica per sfarfallio realistico
   - glow rosso/arancio pulsante */
.trending-flame {
    display: inline-block;
    margin-right: 2px;
    transform-origin: 50% 100%;
    filter: drop-shadow(0 0 4px rgba(255, 138, 0, 0.85))
            drop-shadow(0 0 8px rgba(255, 61, 0, 0.45));
    animation: trending-flame-burn 1.1s ease-in-out infinite;
}

@keyframes trending-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255, 61, 110, 0.55); }
    50%      { box-shadow: 0 0 0 6px rgba(255, 61, 110, 0); }
}

@keyframes trending-spark-spin {
    0%   { transform: rotate(0deg) scale(1); }
    50%  { transform: rotate(180deg) scale(1.15); }
    100% { transform: rotate(360deg) scale(1); }
}

@keyframes trending-flame-burn {
    0%   { transform: translateY(0)     scale(1)         rotate(-3deg); filter: drop-shadow(0 0 3px rgba(255,138,0,.7)) drop-shadow(0 0 6px rgba(255,61,0,.35)); }
    25%  { transform: translateY(-1px)  scale(1.1, 1.18) rotate(2deg);  filter: drop-shadow(0 0 6px rgba(255,170,30,.95)) drop-shadow(0 0 10px rgba(255,80,0,.55)); }
    50%  { transform: translateY(-0.5px) scale(.95, 1.1) rotate(-2deg); filter: drop-shadow(0 0 4px rgba(255,138,0,.8)) drop-shadow(0 0 8px rgba(255,61,0,.45)); }
    75%  { transform: translateY(-1.5px) scale(1.08, 1.2) rotate(3deg); filter: drop-shadow(0 0 7px rgba(255,200,60,1)) drop-shadow(0 0 12px rgba(255,80,0,.6)); }
    100% { transform: translateY(0)     scale(1)         rotate(-3deg); filter: drop-shadow(0 0 3px rgba(255,138,0,.7)) drop-shadow(0 0 6px rgba(255,61,0,.35)); }
}

@media (prefers-reduced-motion: reduce) {
    .trending-badge { animation: none; }
    .trending-spark { animation: none; text-shadow: none; }
    .trending-flame { animation: none; filter: none; }
    .trending-heart { animation: none; text-shadow: none; }
}

/* Logo brand nelle comparison card — 100px desktop, ridotto su mobile */
.card-logo {
    max-width: 100px;
}
@media (max-width: 991.98px) {
    .card-logo { max-width: 90px; }
}
@media (max-width: 575.98px) {
    .card-logo { max-width: 80px; }
}

/* White-on-white loghi: Playtana, Dexyplay e Sweepshark hanno logo bianco,
   servono un background scuro con bordi stondati per renderli leggibili sulla
   card chiara (.bg-light delle non-promo card). Dimensioni leggermente
   maggiorate rispetto al default per compensare il padding del riquadro. */
.card-logo[src*="playtana"],
.card-logo[src*="dexyplay"],
.card-logo[src*="sweepshark"] {
    background: #1a1a1a;
    padding: 10px 14px;
    border-radius: 10px;
    box-sizing: border-box;
    max-width: 150px;
}
@media (max-width: 991.98px) {
    .card-logo[src*="playtana"],
    .card-logo[src*="dexyplay"],
    .card-logo[src*="sweepshark"] { max-width: 135px; }
}
@media (max-width: 575.98px) {
    .card-logo[src*="playtana"],
    .card-logo[src*="dexyplay"],
    .card-logo[src*="sweepshark"] { max-width: 120px; }
}

/* ====================================================================
   STICKY SIDEBAR WITH BELL TRIGGER STYLES
   ==================================================================== */

/* Bell Notification Trigger Button in Header */
.header-bell-trigger {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    margin-left: auto;
    padding: 8px;
    color: var(--color-charcoal);
    transition: all 0.3s ease;
}

.header-bell-trigger:hover {
    color: var(--color-forest);
    transform: scale(1.1);
}

.header-bell-trigger.bell-active {
    color: var(--color-gold);
}

/* Attention-grabbing bell ring — short shake every ~4s, swung from the top
   like a real bell. Hover (or once the sidebar is open) pauses the wobble
   so the icon settles when the user is interacting with it. */
.header-bell-trigger i {
    display: inline-block;
    transform-origin: top center;
    animation: bell-ring 4s ease-in-out infinite;
}

.header-bell-trigger:hover i,
.header-bell-trigger.bell-active i {
    animation: none;
}

@keyframes bell-ring {
    0%, 88%, 100% { transform: rotate(0deg); }
    90% { transform: rotate(-14deg); }
    92% { transform: rotate(12deg); }
    94% { transform: rotate(-9deg); }
    96% { transform: rotate(6deg); }
    98% { transform: rotate(-3deg); }
}

/* Notification Badge on Bell */
.sidebar-notification-badge {
    position: absolute;
    top: 4px;
    right: 4px;
    background-color: #dc3545;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 700;
    border: 2px solid white;
    /* Pulsing red halo to draw the eye to the unread offers count */
    box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.6);
    animation: badge-pulse 2s infinite;
}

.header-bell-trigger.bell-active .sidebar-notification-badge {
    animation: none;
}

@keyframes badge-pulse {
    0%   { box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.6); }
    70%  { box-shadow: 0 0 0 10px rgba(220, 53, 69, 0); }
    100% { box-shadow: 0 0 0 0 rgba(220, 53, 69, 0); }
}

@media (prefers-reduced-motion: reduce) {
    .header-bell-trigger i,
    .sidebar-notification-badge { animation: none; }
}

/* Overlay Background */
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.sidebar-overlay.overlay-visible {
    opacity: 1;
    visibility: visible;
}

/* Sidebar Container - Hidden by Default */
.sticky-sidebar {
    position: fixed;
    top: 0;
    right: 0;
    width: 320px;
    height: 100vh;
    height: 100dvh; /* Dynamic viewport height for mobile */
    z-index: 1000;
    transform: translateX(100%);
    opacity: 0;
    transition: all 0.4s ease;
    pointer-events: none;
    /* Dark "premium" gradient — radial forest glow at top fades into a charcoal vertical gradient */
    background:
        radial-gradient(ellipse at top, rgba(26, 77, 46, 0.35) 0%, transparent 60%),
        linear-gradient(180deg, #1a1d24 0%, #0f1216 100%);
    color: var(--color-white);
    padding: 20px;
    overflow-y: scroll; /* Changed from auto to scroll for iOS */
    overflow-x: hidden;
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.5);
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-y: contain;
    touch-action: pan-y;
}

/* Custom Scrollbar for Sidebar — light on dark */
.sticky-sidebar::-webkit-scrollbar {
    width: 8px;
}

.sticky-sidebar::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.sticky-sidebar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
}

.sticky-sidebar::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.35);
}

/* Sidebar Visible State */
.sticky-sidebar.sidebar-visible {
    transform: translateX(0);
    opacity: 1;
    pointer-events: all;
    overflow-y: auto !important;
}

/* Close Button — light on dark sidebar */
.sidebar-close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 36px;
    height: 36px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
}

.sidebar-close-btn:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.sidebar-close-btn i {
    font-size: 1rem;
    color: var(--color-white);
}

/* Sidebar Title — gold on dark, with subtle gradient underline.
   Top padding maggiorato così il titolo (anche su 2 righe) non finisce
   sopra il close button (`.sidebar-close-btn` 36×36 a top:20 right:20). */
.sidebar-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--color-white);
    margin: 0;
    padding: 60px 50px 12px 0;
    border-bottom: 2px solid;
    border-image: linear-gradient(90deg, var(--color-gold) 0%, transparent 100%) 1;
    margin-bottom: 16px;
    letter-spacing: 0.3px;
    line-height: 1.25;
}

.sticky-sidebar-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
    overflow: visible;
    flex-shrink: 0;
}

/* Sidebar cards reuse the .c-card mobile-stack markup from commons/comparison.php
   so they look identical to the comparison-list cards as seen on mobile.
   Since the sidebar is always narrow (~280-320px) regardless of viewport,
   apply the mobile sizing on every breakpoint via .sidebar-card-mobile. */
.sticky-sidebar .sidebar-card-mobile.c-card {
    min-height: auto;
    padding: 0.875rem 0.75rem !important;
    /* Cream off-white invece del bg-light (#f8f9fa) per ammorbidire il
       contrasto col fondo scuro della sidebar. Tonalità coerente con la
       palette cream del resto del sito. Anche il colore del testo è
       forzato a charcoal qui dentro per non ereditare il bianco
       definito sul parent .sticky-sidebar. */
    background-color: var(--color-cream) !important;
    color: var(--color-charcoal);
}

.sticky-sidebar .sidebar-card-mobile .card-logo {
    max-width: 80px;
}

.sticky-sidebar .sidebar-card-mobile .welcome-bonus-label {
    font-size: 0.55rem;
    letter-spacing: 0.5px;
}

.sticky-sidebar .sidebar-card-mobile h6 {
    font-size: 0.78rem;
    line-height: 1.2;
}

.sticky-sidebar .sidebar-card-mobile .fs-1 {
    font-size: 1.6rem !important;
}

.sticky-sidebar .sidebar-card-mobile .reviews-count {
    font-size: 9px;
    color: #5A5A5A;
}

/* Stelle (★★★★★) — il glifo è renderizzato come testo, quindi font-size lo controlla */
.sticky-sidebar .sidebar-card-mobile .text-warning {
    font-size: 0.75rem;
    line-height: 1;
}

.sticky-sidebar .sidebar-card-mobile .btn-primary {
    padding: 0.45rem 1rem;
    font-size: 0.75rem;
    letter-spacing: 0.3px;
}

.sticky-sidebar .sidebar-card-mobile .visit-site {
    font-size: 10px;
}

.sticky-sidebar .sidebar-card-mobile .best-choice-badge {
    font-size: 0.6rem;
    padding: 3px 8px;
}

/* Responsive Styles */
@media (min-width: 768px) and (max-width: 1199px) {
    .header-bell-trigger {
        font-size: 1.3rem;
    }

    .sidebar-notification-badge {
        width: 18px;
        height: 18px;
        font-size: 0.65rem;
    }

    .sticky-sidebar {
        width: 280px;
        padding: 18px;
    }

    .sidebar-title {
        font-size: 1.3rem;
        padding: 15px 0 8px 0;
        margin-bottom: 15px;
    }
}

@media (min-width: 1200px) and (max-width: 1599px) {
    .sticky-sidebar {
        width: 300px;
        padding: 20px;
    }

    .sidebar-title {
        font-size: 1.4rem;
    }
}

@media (min-width: 1600px) {
    .sticky-sidebar {
        width: 350px;
        padding: 24px;
    }

    .sidebar-title {
        font-size: 1.6rem;
        padding: 24px 0 12px 0;
        margin-bottom: 24px;
    }

    .header-bell-trigger {
        font-size: 1.6rem;
    }
}

/* Mobile - Sidebar slide from right */
@media (max-width: 767px) {
    .navbar .container {
        padding-left: 15px;
        padding-right: 15px;
    }

    .navbar img {
        max-width: 180px;
    }

    .header-bell-trigger {
        font-size: 1.2rem;
        padding: 6px;
    }

    .sidebar-notification-badge {
        width: 18px;
        height: 18px;
        font-size: 0.65rem;
        top: 2px;
        right: 2px;
    }

    .sticky-sidebar {
        width: 85%;
        max-width: 320px;
        right: 0;
        top: 0;
        height: 100vh;
        height: 100dvh;
        transform: translateX(100%);
        padding: 15px;
        box-shadow: -4px 0 16px rgba(0, 0, 0, 0.2);
        overflow-y: scroll !important;
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior-y: contain;
        touch-action: pan-y;
    }

    .sticky-sidebar.sidebar-visible {
        transform: translateX(0);
        overflow-y: scroll !important;
    }

    .sidebar-title {
        font-size: 1.25rem;
        padding: 12px 0 8px 0;
        margin-bottom: 15px;
    }

    .sidebar-close-btn {
        top: 15px;
        right: 15px;
    }
}

/* Disclaimer in comparison cards */
.disclaimer-col {
    padding-top: 8px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    margin-top: 4px;
    text-align: center;
}

.disclaimer-text {
    font-size: 9px;
    color: #666;
    line-height: 1.4;
    margin: 0;
    text-align: center;
}
@media (min-width: 992px) {
    .disclaimer-text { font-size: 10px; }
}

.disclaimer-read-more,
.disclaimer-read-less {
    display: none;
}

@media (max-width: 767px) {
    /* Tighter top spacing for the disclaimer block on mobile */
    .disclaimer-col {
        padding-top: 4px;
        margin-top: 0;
    }

    /* Collapsed state on mobile: text truncated to a single line with ellipsis,
       read-more sits inline at the end of that same line */
    .disclaimer-col:not(.expanded) {
        display: flex;
        align-items: baseline;
        gap: 4px;
        text-align: left;
    }

    .disclaimer-col:not(.expanded) .disclaimer-text {
        flex: 1 1 auto;
        min-width: 0;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        text-align: left;
    }

    .disclaimer-col:not(.expanded) .disclaimer-read-more {
        flex: 0 0 auto;
        display: inline;
        font-size: 9px;
        color: #666;
        text-decoration: underline;
        cursor: pointer;
        white-space: nowrap;
    }

    .disclaimer-col.expanded .disclaimer-read-more {
        display: none;
    }

    .disclaimer-col.expanded .disclaimer-read-less {
        display: inline;
        font-size: 9px;
        color: #666;
        text-decoration: underline;
        cursor: pointer;
    }

    .disclaimer-col:not(.expanded) .disclaimer-read-less {
        display: none;
    }
}

/* ====================================================================
   21+ COMPLIANCE — Age Gate, Disclaimer Banner, Footer Operator Line
   (attivati solo su index.php tramite $is_homepage = true)
   ==================================================================== */

/* Age Gate full-screen overlay */
.age-gate-overlay {
    position: fixed;
    inset: 0;
    background: rgba(43, 43, 43, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    animation: age-gate-fade-in 0.25s ease-out;
}
.age-gate-overlay[hidden] { display: none; }
@keyframes age-gate-fade-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.age-gate-modal {
    background: var(--color-white);
    border-radius: 16px;
    max-width: 480px;
    width: 100%;
    padding: 36px 32px 28px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.age-gate-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: rgba(26, 77, 46, 0.08);
    border: 2px solid var(--color-forest);
    color: var(--color-forest);
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 20px;
}

.age-gate-title {
    font-size: 1.6rem;
    font-weight: 600;
    line-height: 1.2;
    color: var(--color-charcoal);
    margin: 0 0 12px;
}

.age-gate-subtitle {
    font-size: 0.95rem;
    color: #5A5A5A;
    margin: 0 0 24px;
    line-height: 1.5;
}

.age-gate-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 22px;
}

.age-gate-btn {
    width: 100%;
    padding: 13px 20px;
    border-radius: 2rem;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    border: 2px solid transparent;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.age-gate-btn-accept {
    background: var(--color-forest);
    color: var(--color-white);
    border-color: var(--color-forest);
}
.age-gate-btn-accept:hover {
    background: #153d24;
    border-color: #153d24;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(26, 77, 46, 0.25);
}

.age-gate-btn-decline {
    background: transparent;
    color: var(--color-charcoal);
    border-color: rgba(43, 43, 43, 0.25);
}
.age-gate-btn-decline:hover {
    background: var(--color-charcoal);
    color: var(--color-white);
    border-color: var(--color-charcoal);
}

.age-gate-disclaimer {
    font-size: 0.72rem;
    color: #999;
    line-height: 1.5;
    padding-top: 18px;
    border-top: 1px solid rgba(43, 43, 43, 0.08);
    margin: 0;
}
.age-gate-disclaimer strong { color: #5A5A5A; }

/* 21+ Disclaimer Banner — variante chiara (post-header) */
.disclaimer-21 {
    background: #FFF8E7;
    border-top: 1px solid rgba(201, 169, 97, 0.3);
    border-bottom: 1px solid rgba(201, 169, 97, 0.3);
    padding: 18px 0;
}

.disclaimer-21-inner {
    display: flex;
    align-items: center;
    gap: 18px;
}

.disclaimer-21-badge {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(26, 77, 46, 0.08);
    border: 2px solid var(--color-forest);
    color: var(--color-forest);
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.disclaimer-21-text {
    font-size: 0.82rem;
    color: #5A5A5A;
    line-height: 1.55;
    margin: 0;
}
.disclaimer-21-text strong { color: var(--color-charcoal); }
.disclaimer-21-text a {
    color: var(--color-forest);
    text-decoration: underline;
}
.disclaimer-21-text a:hover { color: #153d24; }

/* Footer variant — palette invertita per il fondo charcoal del footer */
.disclaimer-21--footer {
    background: rgba(255, 255, 255, 0.04);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    margin-top: 1.5rem;
    padding: 16px 18px;
    border-radius: 8px;
}
.disclaimer-21--footer .disclaimer-21-badge {
    background: rgba(201, 169, 97, 0.12);
    border-color: var(--color-gold);
    color: var(--color-gold);
}
.disclaimer-21--footer .disclaimer-21-text { color: #B8B8B8; }
.disclaimer-21--footer .disclaimer-21-text strong { color: var(--color-white); }
.disclaimer-21--footer .disclaimer-21-text a { color: var(--color-gold); }

/* Mobile tweaks */
@media (max-width: 640px) {
    .age-gate-modal { padding: 28px 22px 22px; }
    .age-gate-title { font-size: 1.35rem; }
    .age-gate-badge { width: 64px; height: 64px; font-size: 18px; }
    .age-gate-subtitle { font-size: 0.88rem; }

    .disclaimer-21-inner {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }
    .disclaimer-21-badge { width: 46px; height: 46px; font-size: 14px; }
    .disclaimer-21-text { font-size: 0.78rem; }
}