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

:root {
    --primary: #6c3ce0;
    --primary-dark: #5428c0;
    --accent: #00e676;
    --accent-dark: #00c853;
    --cyan: #00f0ff;
    --magenta: #ff2d78;
    --dark: #080a12;
    --dark-light: #0e1120;
    --dark-card: #12152a;
    --gray: #6b7094;
    --gray-light: #9ba0be;
    --white: #edf0ff;
    --text: #b8bdd4;
    --border: #1e2245;
    --border-glow: #2a2f5a;
    --radius: 4px;
    --radius-lg: 8px;
    --shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
    --glow-cyan: 0 0 20px rgba(0, 240, 255, 0.15);
    --glow-accent: 0 0 20px rgba(0, 230, 118, 0.15);
    --glow-magenta: 0 0 20px rgba(255, 45, 120, 0.15);
}

/* === ANIMATIONS === */
@keyframes rgb-flow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes neon-pulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 15px rgba(0, 230, 118, 0.3), 0 0 30px rgba(0, 230, 118, 0.1); }
    50% { opacity: 0.92; box-shadow: 0 0 25px rgba(0, 230, 118, 0.5), 0 0 50px rgba(0, 230, 118, 0.2); }
}

@keyframes glitch {
    0%, 100% { transform: translate(0); }
    20% { transform: translate(-2px, 1px); }
    40% { transform: translate(2px, -1px); }
    60% { transform: translate(-1px, -1px); }
    80% { transform: translate(1px, 1px); }
}

@keyframes glitch-skew {
    0%, 100% { transform: skew(0deg); }
    20% { transform: skew(-0.5deg); }
    40% { transform: skew(0.5deg); }
    60% { transform: skew(-0.3deg); }
    80% { transform: skew(0.3deg); }
}

@keyframes scan-line {
    0% { top: -10%; }
    100% { top: 110%; }
}

@keyframes flicker {
    0%, 100% { opacity: 1; }
    92% { opacity: 1; }
    93% { opacity: 0.8; }
    94% { opacity: 1; }
    96% { opacity: 0.9; }
    97% { opacity: 1; }
}

@keyframes border-rgb {
    0% { border-color: var(--cyan); }
    33% { border-color: var(--magenta); }
    66% { border-color: var(--accent); }
    100% { border-color: var(--cyan); }
}

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

body {
    font-family: 'Exo 2', 'Segoe UI', Roboto, sans-serif;
    background: var(--dark);
    color: var(--text);
    line-height: 1.7;
    overflow-x: hidden;
}

/* Subtle grid background with hex pattern */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(0, 240, 255, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 240, 255, 0.025) 1px, transparent 1px),
        radial-gradient(circle, rgba(108, 60, 224, 0.03) 1px, transparent 1px);
    background-size: 60px 60px, 60px 60px, 30px 30px;
    pointer-events: none;
    z-index: 0;
}

a {
    color: var(--cyan);
    text-decoration: none;
    transition: color 0.2s, text-shadow 0.2s;
}

a:hover {
    color: var(--accent);
    text-shadow: 0 0 8px rgba(0, 230, 118, 0.4);
}

h1, h2, h3, h4 {
    font-family: 'Orbitron', 'Exo 2', sans-serif;
    color: var(--white);
    line-height: 1.3;
    letter-spacing: 0.5px;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

/* === HEADER === */
.site-header {
    background: rgba(14, 17, 32, 0.95);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(12px);
}

.site-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--cyan), var(--magenta), var(--accent), var(--primary), var(--cyan));
    background-size: 300% 100%;
    animation: rgb-flow 4s linear infinite;
    opacity: 0.7;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
}

.logo {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--white);
    letter-spacing: 1px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    width: 36px;
    height: 36px;
}

.logo span {
    color: var(--cyan);
    text-shadow: 0 0 12px rgba(0, 240, 255, 0.4);
    animation: flicker 4s infinite;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 28px;
}

.main-nav a {
    color: var(--gray-light);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.main-nav a:hover {
    color: var(--white);
    text-shadow: none;
}

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

/* === HERO === */
.hero {
    background:
        radial-gradient(ellipse at 20% 50%, rgba(108, 60, 224, 0.15) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 50%, rgba(0, 240, 255, 0.1) 0%, transparent 60%),
        radial-gradient(ellipse at 50% 100%, rgba(255, 45, 120, 0.08) 0%, transparent 50%),
        linear-gradient(180deg, var(--dark-light) 0%, var(--dark) 100%);
    padding: 90px 0 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Horizontal scan lines + moving scan beam */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0, 240, 255, 0.02) 2px,
        rgba(0, 240, 255, 0.02) 4px
    );
    pointer-events: none;
}


/* Top/bottom border glow */
.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--cyan), var(--accent), transparent);
    opacity: 0.3;
}

.hero-content {
    display: flex;
    align-items: center;
    gap: 40px;
}

.hero-text {
    flex: 1;
    text-align: left;
}

.hero-image {
    flex: 0 0 460px;
}

.hero-image img {
    width: 100%;
    height: auto;
    display: block;
}

.hero h1 {
    font-size: 2.2rem;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: linear-gradient(135deg, var(--white) 0%, var(--cyan) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    transition: filter 0.4s ease;
}

.hero h1:hover {
    filter: drop-shadow(0 0 6px var(--cyan)) drop-shadow(0 0 20px rgba(0, 255, 255, 0.3));
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--gray-light);
    max-width: 550px;
}

.hero-subtitle strong {
    color: var(--cyan);
}

/* === TOC === */
.toc {
    background: var(--dark-card);
    border-bottom: 1px solid var(--border);
    padding: 20px 0;
    position: relative;
    z-index: 1;
    border-left: 3px solid var(--cyan);
}

/* TOC details/summary — open by default on desktop */
.toc-details {
    display: contents;
}

.toc-details summary {
    display: block;
    list-style: none;
    cursor: default;
}

.toc-details summary::-webkit-details-marker {
    display: none;
}

.toc strong {
    font-family: 'Orbitron', sans-serif;
    color: var(--white);
    display: block;
    margin-bottom: 10px;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.toc ol {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 24px;
    list-style: none;
    counter-reset: toc;
}

.toc li {
    counter-increment: toc;
}

.toc li::before {
    content: counter(toc) ".";
    color: var(--cyan);
    font-weight: 700;
    margin-right: 4px;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.8rem;
}

.toc a {
    color: var(--gray-light);
    font-size: 0.9rem;
}

.toc a:hover {
    color: var(--white);
}

/* === SECTIONS === */
.section {
    padding: 70px 0;
    position: relative;
    z-index: 1;
}

#classifica {
    padding-top: 30px;
}

.section-alt {
    background: var(--dark-light);
    position: relative;
}

/* Circuit-line separator between sections */
.section + .section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    max-width: 600px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--cyan) 20%, var(--magenta) 50%, var(--accent) 80%, transparent);
    background-size: 300% 100%;
    animation: rgb-flow 5s linear infinite;
    opacity: 0.25;
}


.section h2 {
    font-size: 1.6rem;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    display: inline-block;
}

.section h2::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 80px;
    height: 2px;
    background: linear-gradient(90deg, var(--cyan), var(--magenta), transparent);
    background-size: 300% 100%;
    animation: rgb-flow 3s linear infinite;
}

.section h2::before {
    content: '//';
    color: var(--cyan);
    opacity: 0.3;
    margin-right: 10px;
    font-size: 0.8em;
}

.section > .container > p:first-of-type {
    color: var(--gray-light);
    margin-bottom: 40px;
    max-width: 750px;
}

/* === BOOKMAKER TABLE === */
.bookmaker-table {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.bookmaker-card {
    background: var(--dark-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px 28px;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

/* Angled corner cut */
.bookmaker-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 40px;
    height: 40px;
    background: linear-gradient(225deg, var(--border-glow) 50%, transparent 50%);
    transition: background 0.3s;
}

.bookmaker-card:hover {
    border-color: var(--cyan);
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.2), 0 0 40px rgba(0, 240, 255, 0.05), inset 0 0 30px rgba(0, 240, 255, 0.03);
    animation: border-rgb 3s linear infinite;
}

.bookmaker-card:hover::before {
    background: linear-gradient(225deg, var(--cyan) 50%, transparent 50%);
}

/* RGB bottom line on card hover */
.bookmaker-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--cyan), var(--magenta), var(--accent), var(--cyan));
    background-size: 300% 100%;
    opacity: 0;
    transition: opacity 0.3s;
}

.bookmaker-card:hover::after {
    opacity: 1;
    animation: rgb-flow 2s linear infinite;
}


.bookmaker-rank {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--cyan);
    flex: 0 0 40px;
    text-align: center;
    text-shadow: 0 0 15px rgba(0, 240, 255, 0.5);
    animation: flicker 6s infinite;
}

/* Top 3 special rank colors */
.bookmaker-card:nth-child(1) .bookmaker-rank {
    color: #ffd700;
    text-shadow: 0 0 15px rgba(255, 215, 0, 0.5);
}

.bookmaker-card:nth-child(2) .bookmaker-rank {
    color: #c0c0c0;
    text-shadow: 0 0 15px rgba(192, 192, 192, 0.4);
}

.bookmaker-card:nth-child(3) .bookmaker-rank {
    color: #cd7f32;
    text-shadow: 0 0 15px rgba(205, 127, 50, 0.4);
}

.bookmaker-logo {
    flex: 0 0 165px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.logo-rating {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
}

.placeholder-logo {
    background: var(--border);
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 0.85rem;
    color: var(--gray);
    display: inline-block;
}

.bookmaker-logo-img {
    width: 165px;
    height: 68px;
    object-fit: contain;
    display: block;
}

.bookmaker-logo-text {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}

.bookmaker-info {
    display: flex;
    gap: 20px;
    flex: 1;
    min-width: 0;
}

.bookmaker-info > div {
    display: flex;
    flex-direction: column;
}

.bookmaker-bonus {
    flex: 2 1 0;
    min-width: 0;
}

.bookmaker-games {
    flex: 1 1 0;
    text-align: center;
}

.bookmaker-markets {
    flex: 1 1 0;
    text-align: center;
}

.bookmaker-info .label {
    display: block;
    font-size: 0.8rem;
    color: var(--gray);
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.bookmaker-info strong {
    color: var(--white);
    font-size: 1.05rem;
    line-height: 1.3;
}

.rating {
    color: var(--accent) !important;
    text-shadow: 0 0 8px rgba(0, 230, 118, 0.3);
}

.bookmaker-cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    flex: 0 0 170px;
}

.btn {
    display: inline-block;
    padding: 14px 28px;
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    white-space: nowrap;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    position: relative;
    clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
    color: var(--dark);
    box-shadow: 0 0 15px rgba(0, 230, 118, 0.2);
    animation: neon-pulse 2.5s ease-in-out infinite;
}

.btn-primary:hover {
    box-shadow: 0 0 30px rgba(0, 230, 118, 0.5), 0 0 60px rgba(0, 230, 118, 0.2), 0 4px 16px rgba(0, 0, 0, 0.3);
    color: var(--dark);
    text-shadow: none;
    animation: none;
}

.mobile-bonus {
    display: none;
}

.adm-badge-img {
    height: 24px;
    width: auto;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.bookmaker-card:hover .adm-badge-img {
    opacity: 1;
}

/* === REVIEWS === */
.review-block {
    background: var(--dark-card);
    border: 1px solid var(--border);
    border-left: 3px solid var(--cyan);
    border-radius: var(--radius);
    padding: 32px;
    margin-bottom: 20px;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.review-block:hover {
    border-left-color: var(--accent);
    box-shadow: 0 0 20px rgba(0, 230, 118, 0.1), 0 0 40px rgba(0, 230, 118, 0.05);
}

/* HUD-style corner on reviews */
.review-block::after {
    content: '';
    position: absolute;
    bottom: 8px;
    right: 8px;
    width: 16px;
    height: 16px;
    border-bottom: 2px solid var(--accent);
    border-right: 2px solid var(--accent);
    opacity: 0;
    transition: opacity 0.3s;
}

.review-block {
    position: relative;
}

.review-block:hover::after {
    opacity: 0.5;
}

.review-block h3 {
    font-size: 1.05rem;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.review-block p {
    margin-bottom: 16px;
}

.pros-cons-wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.pros-cons-wrap .pros-label,
.pros-cons-wrap .cons-label {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 8px;
    display: block;
}

.pros-cons-wrap .pros-label {
    color: var(--accent);
}

.pros-cons-wrap .cons-label {
    color: var(--magenta);
}

.pros-cons {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.pros-cons li {
    padding: 8px 14px;
    border-radius: var(--radius);
    font-size: 0.85rem;
    font-weight: 600;
}

.pro::before {
    content: '\2713';
    margin-right: 6px;
    font-weight: 900;
}

.pro {
    background: rgba(0, 230, 118, 0.08);
    color: var(--accent);
    border: 1px solid rgba(0, 230, 118, 0.2);
    border-left: 3px solid var(--accent);
}

.con::before {
    content: '\2717';
    margin-right: 6px;
    font-weight: 900;
}

.con {
    background: rgba(255, 45, 120, 0.08);
    color: var(--magenta);
    border: 1px solid rgba(255, 45, 120, 0.2);
    border-left: 3px solid var(--magenta);
}

/* === GAMES GRID === */
.games-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.game-card {
    background: var(--dark-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.game-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--cyan), var(--primary), var(--magenta));
    opacity: 0;
    transition: opacity 0.3s;
}

.game-card:hover {
    border-color: var(--cyan);
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.15), 0 0 40px rgba(0, 240, 255, 0.05);
    transform: translateY(-4px);
}

.game-card:hover::after {
    opacity: 1;
    background: linear-gradient(90deg, var(--cyan), var(--magenta), var(--accent), var(--cyan));
    background-size: 300% 100%;
    animation: rgb-flow 2s linear infinite;
}

/* Corner brackets on game cards */
.game-card::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 8px;
    width: 16px;
    height: 16px;
    border-top: 2px solid var(--cyan);
    border-left: 2px solid var(--cyan);
    opacity: 0;
    transition: opacity 0.3s;
}

.game-card:hover::before {
    opacity: 0.6;
}

/* Icons are inline in h3 elements */

.game-card h3 {
    font-size: 1rem;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.game-card p {
    font-size: 0.9rem;
    color: var(--gray-light);
}

/* === BET TYPES === */
.bet-types {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.bet-type {
    background: var(--dark-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    transition: border-color 0.3s;
}

.bet-type:hover {
    border-color: var(--cyan);
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.08);
}

.bet-type {
    position: relative;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%);
}

.bet-type h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.85rem;
    margin-bottom: 10px;
    color: var(--cyan);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.bet-type p {
    font-size: 0.9rem;
}

/* === STEPS === */
.steps {
    display: flex;
    flex-direction: column;
    gap: 24px;
    position: relative;
}

/* Vertical connecting line */
.steps::before {
    content: '';
    position: absolute;
    left: 23px;
    top: 48px;
    bottom: 24px;
    width: 2px;
    background: linear-gradient(180deg, var(--cyan), var(--primary), var(--magenta));
    opacity: 0.2;
}

.step {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    position: relative;
}

.step-number {
    font-family: 'Orbitron', sans-serif;
    min-width: 48px;
    height: 48px;
    background: var(--dark-card);
    border: 2px solid var(--cyan);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    font-weight: 900;
    color: var(--cyan);
    flex-shrink: 0;
    text-shadow: 0 0 10px rgba(0, 240, 255, 0.4);
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.1);
    position: relative;
    z-index: 1;
    clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
    animation: flicker 5s infinite;
}

.step-content h3 {
    font-size: 1rem;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.step-content p {
    font-size: 0.95rem;
}

/* === TIPS === */
.tips-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.tip {
    background: var(--dark-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    border-left: 3px solid var(--magenta);
    transition: box-shadow 0.3s;
}

.tip:hover {
    box-shadow: 0 0 20px rgba(255, 45, 120, 0.15), 0 0 40px rgba(255, 45, 120, 0.05);
    border-left-color: var(--magenta);
    border-left-width: 3px;
}

.tip {
    position: relative;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%);
}

.tip h3 {
    font-size: 0.95rem;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tip p {
    font-size: 0.9rem;
}

/* === FAQ === */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.faq-item {
    background: var(--dark-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    transition: border-color 0.3s;
}

.faq-item:hover {
    border-color: var(--cyan);
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.08);
}

.faq-item {
    position: relative;
    border-left: 3px solid transparent;
    transition: border-color 0.3s, border-left-color 0.3s, box-shadow 0.3s;
}

.faq-item:hover {
    border-left-color: var(--cyan);
}

.faq-item h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.85rem;
    margin-bottom: 10px;
    color: var(--cyan);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.faq-item p {
    font-size: 0.95rem;
}

/* === FOOTER === */
.site-footer {
    background: var(--dark-light);
    border-top: 1px solid var(--border);
    padding: 60px 0 30px;
    position: relative;
    z-index: 1;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--cyan), var(--magenta), var(--accent), var(--primary), var(--cyan));
    background-size: 300% 100%;
    animation: rgb-flow 4s linear infinite;
    opacity: 0.5;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand p {
    margin-top: 12px;
    font-size: 0.9rem;
    color: var(--gray);
}

.footer-links {
    padding-top: 6px;
}

.footer-links h4 {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.75rem;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--gray-light);
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    color: var(--gray-light);
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--white);
}

.footer-badges {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 20px;
}

.footer-badges-img {
    height: 50px;
    width: auto;
}

.footer-badge-square {
    height: 45px;
}

.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 30px;
    text-align: center;
}

.disclaimer {
    background: rgba(255, 200, 0, 0.04);
    border: 1px solid rgba(255, 200, 0, 0.12);
    border-left: 3px solid #ffc800;
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 20px;
}

.disclaimer p {
    font-size: 0.85rem;
    color: var(--gray-light);
}

.disclaimer strong {
    color: #ffc800;
}

.copyright {
    font-size: 0.8rem;
    color: var(--gray);
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .logo {
        font-size: 0.95rem;
        letter-spacing: 0;
        gap: 6px;
    }

    .logo-icon {
        width: 28px;
        height: 28px;
    }

    .mobile-toggle {
        display: block;
    }

    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(14, 17, 32, 0.98);
        border-bottom: 1px solid var(--border);
        padding: 20px;
        backdrop-filter: blur(12px);
    }

    .main-nav.open {
        display: block;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 16px;
    }

    .hero {
        padding: 50px 0 40px;
    }

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

    .hero-text {
        text-align: center;
    }

    .hero-image {
        display: none;
    }

    .hero h1 {
        font-size: 1.5rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .toc-details {
        display: block;
    }

    .toc-details summary {
        display: flex;
        align-items: center;
        justify-content: space-between;
        cursor: pointer;
        list-style: none;
    }

    .toc-details summary::after {
        content: '+';
        font-family: 'Orbitron', sans-serif;
        font-size: 1.2rem;
        color: var(--cyan);
        font-weight: 700;
        line-height: 1;
    }

    .toc-details[open] summary::after {
        content: '\2212';
    }

    .toc-details summary strong {
        margin-bottom: 0;
    }

    .toc-details ol {
        margin-top: 12px;
    }

    .toc ol {
        flex-direction: column;
        gap: 6px;
    }

    /* === MOBILE BOOKMAKER CARD === */
    .bookmaker-card {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 20px;
        gap: 0;
    }

    .bookmaker-card::before {
        display: none;
    }

    .bookmaker-rank {
        display: none;
    }

    /* Row 1: Logo full width */
    .bookmaker-logo {
        flex: unset;
        align-items: center;
        gap: 0;
        width: 100%;
        margin-bottom: 8px;
    }

    .bookmaker-logo-img {
        width: min(250px, 70%);
        height: auto;
        max-height: 95px;
    }

    /* Row 2: Voto */
    .logo-rating {
        font-size: 1.3rem;
        margin-bottom: 12px;
    }

    /* Row 3: Videogiochi + Mercati */
    .bookmaker-info {
        flex-direction: row;
        justify-content: center;
        gap: 24px;
        width: 100%;
        margin-bottom: 14px;
    }

    .bookmaker-bonus {
        display: none !important;
    }

    .bookmaker-games,
    .bookmaker-markets {
        flex: unset;
        text-align: center;
    }

    .bookmaker-info .label {
        font-size: 0.85rem;
        margin-bottom: 3px;
    }

    .bookmaker-games strong,
    .bookmaker-markets strong {
        font-size: 1.5rem;
    }

    /* Row 4: Bonus */
    .mobile-bonus {
        display: block;
        font-size: 1.25rem;
        font-weight: 700;
        color: var(--white);
        text-align: center;
        line-height: 1.3;
        margin-bottom: 16px;
    }

    .mobile-bonus .label {
        display: block;
        font-size: 0.85rem;
        color: var(--gray);
        text-transform: uppercase;
        letter-spacing: 1px;
        font-weight: 600;
        margin-bottom: 4px;
    }

    /* Row 5: CTA + ADM */
    .bookmaker-cta {
        flex: unset;
        align-items: center;
        gap: 10px;
        width: 100%;
    }

    .bookmaker-cta .btn {
        padding: 16px 28px;
        font-size: 0.9rem;
        letter-spacing: 1px;
        white-space: nowrap;
    }

    .adm-badge-img {
        height: 24px;
    }

    .games-grid {
        grid-template-columns: 1fr;
    }

    .bet-types {
        grid-template-columns: 1fr;
    }

    .tips-grid {
        grid-template-columns: 1fr;
    }

    .step {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .steps::before {
        display: none;
    }

    #back-to-top {
        right: 12px;
        bottom: 12px;
    }

    .pros-cons-wrap {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .section {
        padding: 50px 0;
    }

    .section h2 {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.2rem;
    }

    .pros-cons {
        flex-direction: column;
    }
}

/* === BACK TO TOP === */
@keyframes climb {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-2px); }
}

#back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    -webkit-tap-highlight-color: transparent;
    width: 40px;
    height: 70px;
    text-decoration: none;
    font-size: 0;
    color: transparent;
    cursor: pointer;
    border: 1px solid rgba(0, 240, 255, 0.15);
    border-radius: 20px;
    /* Rope as centered vertical line */
    background:
        repeating-linear-gradient(to bottom, #8b5a2b 0px, #8b5a2b 2px, #a0724b 2px, #a0724b 4px)
            no-repeat center 10px / 2px 32px,
        rgba(10, 10, 26, 0.4);
    transition: opacity 0.3s, visibility 0.3s, border-color 0.3s, box-shadow 0.3s;
}

#back-to-top.visible {
    opacity: 1;
    visibility: visible;
}


#back-to-top:focus,
#back-to-top:focus-visible,
#back-to-top:focus-within,
#back-to-top:active {
    outline: none !important;
    box-shadow: none !important;
    border-color: transparent !important;
    -webkit-tap-highlight-color: transparent;
}

#back-to-top:hover {
    border-color: rgba(0, 230, 118, 0.4);
    box-shadow: 0 0 20px rgba(0, 230, 118, 0.15);
}

/* Arrow tip at top of rope */
#back-to-top::before {
    content: '';
    position: absolute;
    top: 4px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-bottom: 6px solid #a0724b;
}

/* Pixel-art Mario climbing (2px per pixel, 5×8 grid) */
#back-to-top::after {
    content: '';
    position: absolute;
    top: 42px;
    left: 19px;
    width: 2px;
    height: 2px;
    background: #fbd000;
    animation: climb 0.8s ease-in-out infinite;
    box-shadow:
        /* Row 1: arms reaching up */
        -4px 2px 0 #fbd000,
         4px 2px 0 #fbd000,
        /* Row 2: hat top */
        -2px 4px 0 #e52521,
         0   4px 0 #e52521,
         2px 4px 0 #e52521,
        /* Row 3: hat brim */
        -4px 6px 0 #e52521,
        -2px 6px 0 #e52521,
         0   6px 0 #e52521,
         2px 6px 0 #e52521,
         4px 6px 0 #e52521,
        /* Row 4: face */
        -2px 8px 0 #fbd000,
         0   8px 0 #fbd000,
         2px 8px 0 #fbd000,
        /* Row 5: shirt */
        -2px 10px 0 #e52521,
         0   10px 0 #e52521,
         2px 10px 0 #e52521,
        /* Row 6: overalls */
        -2px 12px 0 #2038ec,
         0   12px 0 #2038ec,
         2px 12px 0 #2038ec,
        /* Row 7: legs */
        -2px 14px 0 #2038ec,
         2px 14px 0 #2038ec;
}

/* Back to top mobile */
@media (max-width: 768px) {
    #back-to-top::before {
        top: 4px;
        width: 10px;
        height: 38px;
        border: none;
        background: repeating-linear-gradient(to bottom, #8b5a2b 0px, #8b5a2b 2px, #a0724b 2px, #a0724b 4px);
        clip-path: polygon(50% 0%, 100% 16%, calc(50% + 1px) 16%, calc(50% + 1px) 100%, calc(50% - 1px) 100%, calc(50% - 1px) 16%, 0% 16%);
    }
}

/* === PAGE CONTENT (chi siamo, contatti) === */
.last-updated {
    font-size: 0.85rem;
    color: var(--gray);
    margin-bottom: 24px;
    font-style: italic;
}

.page-content h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.2rem;
    color: var(--white);
    margin: 40px 0 16px;
}

.page-content p {
    color: var(--gray-light);
    margin-bottom: 16px;
    line-height: 1.8;
}

.page-content ul {
    list-style: none;
    margin-bottom: 20px;
    padding-left: 0;
}

.page-content ul li {
    color: var(--gray-light);
    padding: 8px 0 8px 20px;
    position: relative;
    line-height: 1.7;
}

.page-content ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 16px;
    width: 6px;
    height: 6px;
    background: var(--cyan);
    border-radius: 50%;
}

.page-content a {
    color: var(--cyan);
}

.page-content a:hover {
    color: var(--white);
}

/* === CONTACT FORM === */
.contact-form {
    max-width: 600px;
    margin-top: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--gray-light);
    margin-bottom: 6px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    background: var(--dark-card);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--white);
    font-family: 'Exo 2', sans-serif;
    font-size: 0.95rem;
    transition: border-color 0.3s;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--gray);
}

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

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Respect reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* === CONTACT FORM PLUGIN (BestWebSoft) — match original form styling === */
.cntctfrm_contact_form {
    max-width: 600px;
    margin-top: 30px;
}

.cntctfrm_field_wrap {
    margin-bottom: 20px;
}

.cntctfrm_contact_form label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--gray-light);
    margin-bottom: 6px;
}

.cntctfrm_contact_form input.text,
.cntctfrm_contact_form textarea {
    width: 100%;
    padding: 12px 16px;
    background: var(--dark-card);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--white);
    font-family: 'Exo 2', sans-serif;
    font-size: 0.95rem;
    transition: border-color 0.3s;
    box-sizing: border-box;
}

.cntctfrm_contact_form input.text::placeholder,
.cntctfrm_contact_form textarea::placeholder {
    color: var(--gray);
}

.cntctfrm_contact_form input.text:focus,
.cntctfrm_contact_form textarea:focus {
    outline: none;
    border-color: var(--cyan);
}

.cntctfrm_contact_form textarea {
    resize: vertical;
    min-height: 120px;
}

.cntctfrm_contact_form .cntctfrm_contact_submit {
    display: inline-block;
    padding: 14px 32px;
    font-family: 'Exo 2', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
    color: var(--dark);
    box-shadow: 0 0 15px rgba(0, 230, 118, 0.2);
    animation: neon-pulse 2.5s ease-in-out infinite;
    margin-top: 10px;
}

.cntctfrm_contact_form .cntctfrm_contact_submit:hover {
    box-shadow: 0 0 30px rgba(0, 230, 118, 0.5), 0 0 60px rgba(0, 230, 118, 0.2), 0 4px 16px rgba(0, 0, 0, 0.3);
    color: var(--dark);
    text-shadow: none;
    animation: none;
}

.cntctfrm_contact_form .required {
    color: var(--magenta);
}

.cntctfrm_contact_form .cntctfrm_label,
.cntctfrm_contact_form .cntctfrm_input {
    float: none;
    width: 100%;
    padding: 0;
}

.cntctfrm_contact_form .clear {
    clear: both;
}

.cntctfrm_contact_form .cntctfrm_submit_wrap {
    margin-top: 10px;
}
