/* CSS Variables */
:root {
    --bg: #0b1020;
    --panel: rgba(16, 24, 43, 0.85);
    --card: rgba(15, 23, 41, 0.8);
    --stroke: rgba(255, 255, 255, 0.08);
    --text: rgba(255, 255, 255, 0.92);
    --muted: rgba(255, 255, 255, 0.65);
    --green: #55f06a;
    --green-dark: #3dd855;
    --purple: #7c3aed;
    --purple-light: #8b5cf6;
    --orange: #f97316;
    --radius: 16px;
    --radius-lg: 24px;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.3);
    --glow-green: 0 0 20px rgba(85, 240, 106, 0.4), 0 0 40px rgba(85, 240, 106, 0.2);
    --glow-purple: 0 0 20px rgba(124, 58, 237, 0.5), 0 0 40px rgba(124, 58, 237, 0.3);
    --blur-sm: blur(8px);
    --blur-md: blur(12px);
    --blur-lg: blur(20px);
}

/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.5;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font-family: inherit;
    font-size: inherit;
    border: none;
    background: none;
    cursor: pointer;
    color: inherit;
}

/* Layout */
.layout {
    display: flex;
    min-height: 100vh;
    padding-top: 70px;
}

/* Header */
.topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 70px;
    background: rgba(16, 24, 43, 0.75);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 clamp(16px, 4vw, 32px);
    z-index: 1000;
    backdrop-filter: blur(20px) saturate(180%);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.topbar__left {
    display: flex;
    align-items: center;
    gap: 24px;
}

.topbar__logo img {
    height: 120px;
    width: auto;
}

.topbar__search {
    position: relative;
    display: flex;
    align-items: center;
}

.search-btn {
    position: absolute;
    left: 12px;
    z-index: 1;
    color: var(--muted);
    padding: 8px;
}

.search-input {
    width: 300px;
    height: 40px;
    padding: 0 16px 0 44px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--stroke);
    border-radius: var(--radius);
    color: var(--text);
    font-size: 14px;
}

.search-input::placeholder {
    color: var(--muted);
}

.search-input:focus {
    outline: 2px solid var(--green);
    outline-offset: 2px;
}

.topbar__center {
    display: flex;
    align-items: center;
}

.btn-rake {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: linear-gradient(135deg, var(--purple), var(--purple-light));
    border-radius: 24px;
    color: white;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    box-shadow: var(--glow-purple);
    position: relative;
    overflow: hidden;
}

.btn-rake::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn-rake:hover::before {
    left: 100%;
}

.btn-rake:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(124, 58, 237, 0.6), 0 0 60px rgba(124, 58, 237, 0.3);
}

.btn-rake:focus {
    outline: 2px solid var(--green);
    outline-offset: 2px;
}

.topbar__right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.btn-login {
    padding: 10px 24px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius);
    color: var(--text);
    font-weight: 500;
    font-size: 14px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.btn-login:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.25);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    transform: translateY(-1px);
}

.btn-signup {
    padding: 10px 24px;
    background: var(--green);
    border-radius: var(--radius);
    color: var(--bg);
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    box-shadow: var(--glow-green);
    position: relative;
    overflow: hidden;
}

.btn-signup::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.btn-signup:hover::before {
    left: 100%;
}

.btn-signup:hover {
    background: var(--green-dark);
    box-shadow: 0 0 30px rgba(85, 240, 106, 0.6), 0 0 60px rgba(85, 240, 106, 0.3);
    transform: translateY(-2px);
}

.lang-selector {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius);
    font-size: 14px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.lang-selector:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.lang-flag {
    width: 20px;
    height: 15px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lang-flag svg {
    width: 100%;
    height: 100%;
}

/* Sidebar */
.sidebar {
    width: 280px;
    height: calc(100vh - 70px);
    background: rgba(16, 24, 43, 0.8);
    backdrop-filter: blur(20px) saturate(180%);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    padding: 24px 16px;
    position: fixed;
    top: 70px;
    left: 0;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 24px;
    z-index: 100;
    box-shadow: 4px 0 30px rgba(0, 0, 0, 0.3);
}

.sidebar__brand {
    padding-bottom: 16px;
    border-bottom: 1px solid var(--stroke);
}

.sidebar__brand img {
    height: 50px;
    width: auto;
}

.sidebar__nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: var(--radius);
    color: var(--muted);
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    border: 1px solid transparent;
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    transform: translateX(4px);
}

.nav-item.active {
    background: rgba(85, 240, 106, 0.15);
    color: var(--green);
    border-color: rgba(85, 240, 106, 0.3);
    box-shadow: 0 0 15px rgba(85, 240, 106, 0.3);
}

.nav-item:focus {
    outline: 2px solid var(--green);
    outline-offset: 2px;
}

.nav-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-icon svg {
    width: 100%;
    height: 100%;
}

.nav-arrow {
    margin-left: auto;
    color: var(--muted);
    font-size: 18px;
}

.sidebar__cta {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.btn-vip {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px;
    background: linear-gradient(135deg, #a855f7, #ec4899);
    border-radius: var(--radius);
    color: white;
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 25px rgba(168, 85, 247, 0.5), 0 0 50px rgba(236, 72, 153, 0.3);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.btn-vip::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.5s;
}

.btn-vip:hover::before {
    opacity: 1;
}

.btn-vip:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 35px rgba(168, 85, 247, 0.7), 0 0 70px rgba(236, 72, 153, 0.5);
}

.btn-tournois {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    border-radius: var(--radius);
    color: white;
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 25px rgba(59, 130, 246, 0.5), 0 0 50px rgba(139, 92, 246, 0.3);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.btn-tournois::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.5s;
}

.btn-tournois:hover::before {
    opacity: 1;
}

.btn-tournois:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 35px rgba(59, 130, 246, 0.7), 0 0 70px rgba(139, 92, 246, 0.5);
}

.sidebar__mini {
    padding: 16px;
    background: var(--card);
    border-radius: var(--radius);
    border: 1px solid var(--stroke);
}

.mini-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text);
}

.mini-carousel {
    overflow: hidden;
    margin-bottom: 12px;
}

.mini-track {
    display: flex;
    gap: 8px;
}

.mini-card {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
}

.mini-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mini-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
}

.mini-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    border: none;
    padding: 0;
    cursor: pointer;
    transition: background 0.2s;
}

.mini-dot.active {
    background: var(--green);
    width: 20px;
    border-radius: 3px;
}

.sidebar__app {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px;
    background: var(--green);
    border-radius: var(--radius);
    color: var(--bg);
    font-weight: 600;
    font-size: 13px;
    text-align: center;
    transition: background 0.2s;
}

.sidebar__app:hover {
    background: var(--green-dark);
}

.sidebar__crypto {
    padding: 16px;
    background: var(--card);
    border-radius: var(--radius);
    border: 1px solid var(--stroke);
}

.crypto-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    font-size: 14px;
    font-weight: 500;
}

.crypto-arrow {
    color: var(--muted);
}

.crypto-payments {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 12px;
    color: var(--muted);
}

.btn-crypto {
    width: 100%;
    padding: 10px;
    background: var(--green);
    border-radius: 8px;
    color: var(--bg);
    font-weight: 600;
    font-size: 13px;
    transition: background 0.2s;
}

.btn-crypto:hover {
    background: var(--green-dark);
}

/* Main Content */
.main {
    flex: 1;
    padding: 32px clamp(16px, 4vw, 48px);
    margin-left: 280px;
    max-width: calc(100vw - 280px);
}

/* Hero Slider */
.hero {
    position: relative;
    margin-bottom: 48px;
    border-radius: 32px;
    overflow: hidden;
    min-height: 400px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4), 0 0 30px rgba(124, 58, 237, 0.2);
    backdrop-filter: blur(5px);
}

.hero__viewport {
    width: 100%;
    overflow: hidden;
    border-radius: 32px;
}

.hero__track {
    display: flex;
    width: 400%;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    align-items: stretch;
}

.hero__slide {
    width: 25%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
}

.hero__slide img {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    object-fit: contain;
    border-radius: 32px;
}

.hero__dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.hero__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    border: none;
    padding: 0;
    cursor: pointer;
    transition: all 0.2s;
}

.hero__dot.active {
    background: var(--green);
    width: 24px;
    border-radius: 4px;
}

/* Quick Categories */
.quick {
    margin-bottom: 48px;
}

.quick-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.quick-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    min-height: 200px;
    transition: all 0.3s ease;
    display: block;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.quick-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4), 0 0 20px rgba(85, 240, 106, 0.2);
    border-color: rgba(85, 240, 106, 0.3);
}

.quick-card img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

.quick-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 24px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.5), transparent);
    font-size: clamp(20px, 3vw, 32px);
    font-weight: 700;
    color: white;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
    z-index: 2;
    pointer-events: none;
}

/* Section Header */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.section-title {
    font-size: clamp(24px, 4vw, 36px);
    font-weight: 700;
    color: var(--text);
}

.section-controls {
    display: flex;
    align-items: center;
    gap: 16px;
}

.section-link {
    color: var(--green);
    font-weight: 600;
    font-size: 14px;
    transition: color 0.2s;
}

.section-link:hover {
    color: var(--green-dark);
}

.section-arrows {
    display: flex;
    gap: 8px;
}

.arrow-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--stroke);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text);
    transition: all 0.2s;
}

.arrow-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--green);
}

.arrow-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* Games Scroll */
.games-scroll {
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
    margin: 0 -16px;
    padding: 0 16px;
}

.games-scroll::-webkit-scrollbar {
    display: none;
}

.games-track {
    display: flex;
    gap: 16px;
    padding-bottom: 8px;
}

.game-card,
a.game-card {
    flex-shrink: 0;
    width: 120px;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: inherit;
}

.game-card img {
    width: 120px;
    height: 120px;
    border-radius: var(--radius);
    object-fit: cover;
    margin-bottom: 8px;
}

.game-name {
    display: block;
    font-size: 12px;
    font-weight: 500;
    color: var(--text);
    text-align: center;
}

/* Slot Cards */
.slot-card,
a.slot-card {
    flex-shrink: 0;
    width: 200px;
    scroll-snap-align: start;
    position: relative;
    display: block;
    text-decoration: none;
    color: inherit;
}

.slot-card img {
    width: 200px;
    height: 200px;
    border-radius: var(--radius);
    object-fit: cover;
    display: block;
}

.slot-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 16px 12px 12px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0.4), transparent);
    border-radius: 0 0 var(--radius) var(--radius);
    display: flex;
    flex-direction: column;
    gap: 4px;
    z-index: 2;
    pointer-events: none;
}

.slot-name {
    font-size: 14px;
    font-weight: 700;
    color: white;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
    line-height: 1.2;
}

.slot-provider {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.8);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

/* Live Cards */
.live-card,
a.live-card {
    flex-shrink: 0;
    width: 300px;
    scroll-snap-align: start;
    position: relative;
    transition: all 0.3s ease;
    border-radius: var(--radius);
    overflow: hidden;
    display: block;
    text-decoration: none;
    color: inherit;
}

.live-card:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4), 0 0 15px rgba(124, 58, 237, 0.2);
}

.live-card img {
    width: 300px;
    height: 200px;
    border-radius: var(--radius);
    object-fit: cover;
    display: block;
    transition: filter 0.3s ease;
}

.live-card:hover img {
    filter: brightness(1.1);
}

.live-name {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 16px 12px 12px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0.4), transparent);
    border-radius: 0 0 var(--radius) var(--radius);
    font-size: 14px;
    font-weight: 700;
    color: white;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
    line-height: 1.2;
    z-index: 2;
    pointer-events: none;
}

/* Payments Section */
.trust {
    margin: 48px 0;
}

.payments-banner {
    margin-bottom: 32px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    backdrop-filter: blur(5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3), 0 0 20px rgba(85, 240, 106, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.payments-banner img {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    object-fit: contain;
    filter: drop-shadow(0 4px 15px rgba(0, 0, 0, 0.3));
}

/* FAQ */
.faq {
    margin: 48px 0;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.faq-item {
    background: rgba(15, 23, 41, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: rgba(85, 240, 106, 0.3);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.3), 0 0 15px rgba(85, 240, 106, 0.1);
}

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    text-align: left;
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
    transition: all 0.3s ease;
}

.faq-question:hover {
    background: rgba(255, 255, 255, 0.05);
}

.faq-question svg {
    flex-shrink: 0;
    transition: transform 0.2s;
}

.faq-item[aria-expanded="true"] .faq-question svg {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.faq-item[aria-expanded="true"] .faq-answer {
    max-height: 500px;
}

.faq-answer p {
    padding: 0 24px 20px;
    color: var(--muted);
    line-height: 1.6;
}

/* SEO Title Section */
.seo-title-section {
    margin: 48px 0 32px;
    padding: 0 24px;
}

.seo-main-title {
    font-size: clamp(28px, 5vw, 42px);
    font-weight: 700;
    text-align: center;
    line-height: 1.3;
    margin: 0;
    position: relative;
    padding: 24px 32px;
    background: linear-gradient(135deg, 
        rgba(15, 23, 41, 0.9) 0%, 
        rgba(15, 23, 41, 0.7) 100%);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(85, 240, 106, 0.2) inset,
        0 0 40px rgba(85, 240, 106, 0.1);
    background-clip: padding-box;
    overflow: hidden;
    color: var(--text);
    text-shadow: 
        0 0 20px rgba(85, 240, 106, 0.5),
        0 2px 4px rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.seo-main-title::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(85, 240, 106, 0.2) 50%, 
        transparent 100%);
    animation: shimmer 3s infinite;
    pointer-events: none;
    z-index: 0;
}

.seo-main-title::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, 
        rgba(85, 240, 106, 0.4) 0%, 
        rgba(138, 43, 226, 0.4) 50%,
        rgba(85, 240, 106, 0.4) 100%);
    border-radius: var(--radius-lg);
    z-index: -1;
    opacity: 0.6;
    filter: blur(8px);
}

@keyframes shimmer {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

/* SEO Text Section */
#seo-text {
    margin: 64px 0 24px;
    padding: 48px 0 16px;
}

.seo-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.seo-toggle-btn {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    padding: 20px 32px;
    background: rgba(15, 23, 41, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    color: var(--green);
    font-size: clamp(16px, 2vw, 18px);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 24px;
}

.seo-toggle-btn:hover {
    background: rgba(15, 23, 41, 0.8);
    border-color: rgba(85, 240, 106, 0.3);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.seo-toggle-btn svg {
    transition: transform 0.3s ease;
}

.seo-content[aria-expanded="true"] .seo-toggle-btn svg {
    transform: rotate(180deg);
}

.seo-text-content {
    background: rgba(15, 23, 41, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: 48px clamp(24px, 4vw, 64px);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-out, padding 0.5s ease-out;
}

.seo-content[aria-expanded="true"] .seo-text-content {
    max-height: 10000px;
    padding: 48px clamp(24px, 4vw, 64px);
}

.seo-content[aria-expanded="false"] .seo-text-content {
    padding-top: 0;
    padding-bottom: 0;
}

.seo-content article {
    background: transparent;
    backdrop-filter: none;
    border: none;
    padding: 0;
}

.seo-content h2 {
    font-size: clamp(22px, 4vw, 32px);
    font-weight: 700;
    color: var(--text);
    margin-top: 48px;
    margin-bottom: 20px;
    line-height: 1.4;
}

.seo-content h2:first-of-type {
    margin-top: 0;
}

.seo-content h3 {
    font-size: clamp(18px, 3vw, 24px);
    font-weight: 600;
    color: var(--green);
    margin-top: 24px;
    margin-bottom: 12px;
}

.seo-content p {
    font-size: clamp(15px, 2vw, 17px);
    line-height: 1.8;
    color: var(--muted);
    margin-bottom: 20px;
}

.seo-table-wrapper {
    overflow-x: auto;
    margin: 32px 0;
    border-radius: var(--radius);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.seo-table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(15, 23, 41, 0.8);
    backdrop-filter: blur(10px);
    font-size: clamp(13px, 1.5vw, 15px);
}

.seo-table thead {
    background: rgba(85, 240, 106, 0.1);
    border-bottom: 2px solid rgba(85, 240, 106, 0.3);
}

.seo-table th {
    padding: 16px 12px;
    text-align: left;
    font-weight: 600;
    color: var(--green);
    font-size: clamp(14px, 1.8vw, 16px);
}

.seo-table td {
    padding: 14px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--muted);
    line-height: 1.6;
}

.seo-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.03);
}

.seo-table tbody tr:last-child td {
    border-bottom: none;
}

.seo-faq {
    margin-top: 32px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.seo-faq-item {
    background: rgba(15, 23, 41, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all 0.3s ease;
}

.seo-faq-item:hover {
    border-color: rgba(85, 240, 106, 0.3);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.seo-faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    text-align: left;
    font-size: clamp(16px, 2vw, 18px);
    font-weight: 600;
    color: var(--green);
    transition: all 0.3s ease;
    background: transparent;
    border: none;
    cursor: pointer;
}

.seo-faq-question:hover {
    background: rgba(255, 255, 255, 0.03);
}

.seo-faq-question svg {
    flex-shrink: 0;
    transition: transform 0.3s ease;
    margin-left: 16px;
}

.seo-faq-item[aria-expanded="true"] .seo-faq-question svg {
    transform: rotate(180deg);
}

.seo-faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.seo-faq-item[aria-expanded="true"] .seo-faq-answer {
    max-height: 500px;
}

.seo-faq-answer p {
    padding: 0 24px 20px;
    margin-bottom: 0;
    color: var(--muted);
    line-height: 1.8;
}

/* Footer */
.footer {
    background: rgba(16, 24, 43, 0.8);
    backdrop-filter: blur(20px) saturate(180%);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 48px clamp(16px, 4vw, 48px);
    margin-top: 32px;
    box-shadow: 0 -4px 30px rgba(0, 0, 0, 0.3);
}

.footer__top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 48px;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--stroke);
}

.footer__lang {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.footer-flag {
    width: 24px;
    height: 18px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-flag svg {
    width: 100%;
    height: 100%;
}

.footer__badges {
    display: flex;
    gap: 24px;
    align-items: center;
}

.badge {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(15, 23, 41, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius);
    font-size: 12px;
    font-weight: 600;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.badge:hover {
    border-color: rgba(85, 240, 106, 0.3);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3), 0 0 15px rgba(85, 240, 106, 0.1);
}

.badge-text {
    color: var(--text);
}

.footer__content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 32px;
}

.footer__title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text);
}

.footer__list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer__list a {
    color: var(--muted);
    font-size: 14px;
    transition: color 0.2s;
}

.footer__list a:hover {
    color: var(--green);
}

.footer__social {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}

.social-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 41, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.social-link:hover {
    border-color: var(--green);
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 4px 20px rgba(85, 240, 106, 0.4), 0 0 15px rgba(85, 240, 106, 0.2);
    background: rgba(15, 23, 41, 0.95);
}

.social-link img {
    width: 24px;
    height: 24px;
}

/* Bottom Nav (Mobile) */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 70px;
    background: rgba(16, 24, 43, 0.85);
    backdrop-filter: blur(20px) saturate(180%);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: none;
    align-items: center;
    justify-content: space-around;
    z-index: 1000;
    padding: 0 8px;
    box-shadow: 0 -4px 30px rgba(0, 0, 0, 0.3);
}

.nav-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 8px;
    color: var(--muted);
    font-size: 11px;
    transition: color 0.2s;
    flex: 1;
    max-width: 80px;
}

.nav-btn.active {
    color: var(--green);
}

.nav-btn svg {
    width: 24px;
    height: 24px;
}

.nav-btn .nav-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-btn .nav-icon svg {
    width: 100%;
    height: 100%;
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg);
    z-index: 2000;
    display: none;
    flex-direction: column;
    padding: 24px;
    overflow-y: auto;
}

.mobile-menu.active {
    display: flex;
}

.mobile-menu__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--stroke);
}

.mobile-menu__close {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text);
}

.mobile-menu__nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 24px;
}

.mobile-nav-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: var(--card);
    border: 1px solid var(--stroke);
    border-radius: var(--radius);
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
    transition: all 0.2s;
}

.mobile-nav-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--green);
}

.mobile-nav-item.active {
    background: rgba(85, 240, 106, 0.1);
    color: var(--green);
    border-color: var(--green);
}

.mobile-menu__cta {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.mobile-menu__instant {
    padding: 16px;
    background: var(--card);
    border-radius: var(--radius);
    border: 1px solid var(--stroke);
}

/* Mobile Styles */
@media (max-width: 1024px) {
    .sidebar {
        display: none;
    }

    .main {
        margin-left: 0;
        max-width: 100%;
        padding-bottom: 100px;
    }

    .topbar {
        padding: 0 12px;
        justify-content: flex-start;
        gap: 8px;
    }

    .topbar__left {
        gap: 8px;
        flex: 1;
        min-width: 0;
    }

    .topbar__search {
        display: none;
    }

    .topbar__center {
        display: none;
    }

    .topbar__right {
        gap: 8px;
        flex-shrink: 0;
    }

    .bottom-nav {
        display: flex;
    }

    .topbar__logo {
        flex-shrink: 0;
        display: flex;
        align-items: center;
    }

    .topbar__logo img {
        height: 110px;
        width: auto;
        max-width: none;
        object-fit: contain;
        display: block;
    }

    .btn-login {
        padding: 12px 20px;
        font-size: 14px;
    }

    .btn-signup {
        padding: 12px 20px;
        font-size: 14px;
    }

    .lang-selector {
        padding: 4px 8px;
        font-size: 10px;
        gap: 4px;
    }

    .lang-flag {
        width: 16px;
        height: 12px;
    }

    .lang-flag {
        font-size: 14px;
    }

    .quick-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .quick-card {
        min-height: 120px;
        height: 120px;
        border-radius: var(--radius);
    }

    .quick-card img {
        object-fit: cover;
        width: 100%;
        height: 100%;
        position: absolute;
        top: 0;
        left: 0;
    }

    .quick-label {
        padding: 12px 14px;
        font-size: 20px;
        font-weight: 700;
        bottom: 0;
    }

    .hero {
        min-height: 300px;
        border-radius: var(--radius-lg);
    }

    .hero__viewport {
        border-radius: var(--radius-lg);
    }

    .hero__slide img {
        border-radius: var(--radius-lg);
    }

    .section-header {
        flex-wrap: wrap;
    }

    .footer__content {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer {
        padding-bottom: calc(48px + 70px);
    }

    /* Mobile Instant Games Layout */
    .instant {
        margin-bottom: 32px;
    }

    .instant .section-header {
        margin-bottom: 16px;
    }

    .instant .section-title {
        font-size: 20px;
    }

    .instant .section-controls {
        display: none;
    }

    .instant .games-scroll {
        margin: 0;
        padding: 0;
    }

    .instant .games-track {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 2px;
        padding: 0;
    }

    .instant .game-card {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 4px;
        background: transparent;
        border: none;
        padding: 0;
    }

    .instant .game-card img {
        width: 100%;
        height: auto;
        aspect-ratio: 1;
        border-radius: 8px;
        margin: 0;
    }

    .instant .game-name {
        text-align: center;
        font-size: 11px;
        font-weight: 500;
        line-height: 1.2;
    }

    /* Mobile Casino/Live - keep horizontal scroll */
    .casino .games-scroll,
    .live .games-scroll {
        margin: 0 -16px;
        padding: 0 16px;
    }

    .casino .games-track,
    .live .games-track {
        gap: 4px;
    }

    /* Mobile Payments Banner */
    .payments-banner {
        min-height: 150px;
        margin-bottom: 24px;
    }

    .payments-banner img {
        width: 100%;
        height: auto;
        object-fit: contain;
    }

    /* SEO Title Mobile */
    .seo-title-section {
        margin: 32px 0 24px;
        padding: 0 16px;
    }

    .seo-main-title {
        padding: 20px 24px;
        font-size: 24px;
    }

    /* SEO Content Mobile */
    .seo-content {
        padding: 0 16px;
    }

    .seo-toggle-btn {
        padding: 16px 24px;
        font-size: 16px;
    }

    .seo-text-content {
        padding: 32px 20px;
    }

    .seo-content[aria-expanded="true"] .seo-text-content {
        padding: 32px 20px;
    }

    .seo-content article {
        padding: 0;
    }

    .seo-content h2 {
        font-size: 20px;
        margin-top: 32px;
        margin-bottom: 16px;
    }

    .seo-content h3 {
        font-size: 18px;
    }

    .seo-content p {
        font-size: 15px;
        line-height: 1.7;
    }

    /* SEO Tables Mobile - Card Layout */
    .seo-table-wrapper {
        overflow-x: visible;
    }

    .seo-table {
        display: block;
        font-size: 12px;
    }

    .seo-table thead {
        display: none;
    }

    .seo-table tbody {
        display: block;
    }

    .seo-table tr {
        display: block;
        margin-bottom: 16px;
        background: rgba(15, 23, 41, 0.8);
        backdrop-filter: blur(10px);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: var(--radius);
        padding: 16px;
    }

    .seo-table td {
        display: block;
        padding: 10px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        text-align: left;
        position: relative;
        padding-left: 0;
        padding-top: 24px;
    }

    .seo-table td:first-child {
        padding-top: 0;
        font-weight: 600;
        color: var(--green);
        font-size: 13px;
        margin-bottom: 8px;
        border-bottom: 1px solid rgba(85, 240, 106, 0.2);
        padding-bottom: 8px;
    }

    .seo-table td:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }

    .seo-table td:nth-child(2)::before {
        content: "Comment ça se présente: ";
        font-weight: 600;
        color: var(--text);
        display: block;
        margin-bottom: 4px;
        font-size: 11px;
    }

    .seo-table td:nth-child(3)::before {
        content: "Ce qu'il faut vérifier: ";
        font-weight: 600;
        color: var(--text);
        display: block;
        margin-bottom: 4px;
        font-size: 11px;
    }

    .seo-table td:nth-child(4)::before {
        content: "Risque courant: ";
        font-weight: 600;
        color: var(--text);
        display: block;
        margin-bottom: 4px;
        font-size: 11px;
    }

    .seo-table td:nth-child(5)::before {
        content: "Bon réflexe: ";
        font-weight: 600;
        color: var(--text);
        display: block;
        margin-bottom: 4px;
        font-size: 11px;
    }

    /* Second table specific labels */
    .seo-table-wrapper:last-of-type .seo-table td:nth-child(2)::before {
        content: "Action: ";
    }

    .seo-table-wrapper:last-of-type .seo-table td:nth-child(3)::before {
        content: "Pourquoi: ";
    }

    .seo-table-wrapper:last-of-type .seo-table td:nth-child(4)::before {
        content: "À surveiller: ";
    }

    .seo-table-wrapper:last-of-type .seo-table td:nth-child(5)::before {
        content: "Astuce: ";
    }
}

@media (max-width: 640px) {
    .topbar {
        padding: 0 8px;
        justify-content: flex-start;
        gap: 6px;
    }

    .topbar__left {
        gap: 6px;
        flex: 1;
        min-width: 0;
    }

    .topbar__right {
        gap: 6px;
        flex-shrink: 0;
    }

    .topbar__logo {
        flex-shrink: 0;
        display: flex;
        align-items: center;
    }

    .topbar__logo img {
        height: 120px;
        width: auto;
        max-width: none;
        object-fit: contain;
        display: block;
    }

    .btn-login {
        padding: 10px 18px;
        font-size: 13px;
    }

    .btn-signup {
        padding: 10px 18px;
        font-size: 13px;
    }

    .lang-selector {
        padding: 4px 6px;
        font-size: 9px;
        gap: 3px;
    }

    .lang-flag {
        width: 14px;
        height: 10px;
    }

    .lang-flag {
        width: 14px;
        height: 10px;
    }

    .main {
        padding: 24px 16px 100px;
    }

    /* SEO Title Mobile Small */
    .seo-title-section {
        margin: 24px 0 20px;
        padding: 0 12px;
    }

    .seo-main-title {
        font-size: 22px;
        padding: 16px 20px;
    }

    /* SEO Content Mobile Small */
    .seo-content {
        padding: 0 12px;
    }

    .seo-toggle-btn {
        padding: 14px 20px;
        font-size: 15px;
    }

    .seo-text-content {
        padding: 24px 16px;
    }

    .seo-content[aria-expanded="true"] .seo-text-content {
        padding: 24px 16px;
    }

    .seo-content article {
        padding: 0;
    }

    .seo-content h2 {
        font-size: 18px;
        margin-top: 28px;
    }

    .seo-content h3 {
        font-size: 16px;
    }

    .seo-content p {
        font-size: 14px;
    }

    /* SEO Tables Mobile Small - Card Layout */
    .seo-table-wrapper {
        overflow-x: visible;
    }

    .seo-table {
        display: block;
        font-size: 11px;
    }

    .seo-table thead {
        display: none;
    }

    .seo-table tbody {
        display: block;
    }

    .seo-table tr {
        display: block;
        margin-bottom: 12px;
        background: rgba(15, 23, 41, 0.8);
        backdrop-filter: blur(10px);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: var(--radius);
        padding: 12px;
    }

    .seo-table td {
        display: block;
        padding: 8px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        text-align: left;
        padding-left: 0;
        padding-top: 20px;
    }

    .seo-table td:first-child {
        padding-top: 0;
        font-weight: 600;
        color: var(--green);
        font-size: 12px;
        margin-bottom: 6px;
        border-bottom: 1px solid rgba(85, 240, 106, 0.2);
        padding-bottom: 6px;
    }

    .seo-table td:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }

    .seo-table td:nth-child(2)::before {
        content: "Comment ça se présente: ";
        font-weight: 600;
        color: var(--text);
        display: block;
        margin-bottom: 4px;
        font-size: 10px;
    }

    .seo-table td:nth-child(3)::before {
        content: "Ce qu'il faut vérifier: ";
        font-weight: 600;
        color: var(--text);
        display: block;
        margin-bottom: 4px;
        font-size: 10px;
    }

    .seo-table td:nth-child(4)::before {
        content: "Risque courant: ";
        font-weight: 600;
        color: var(--text);
        display: block;
        margin-bottom: 4px;
        font-size: 10px;
    }

    .seo-table td:nth-child(5)::before {
        content: "Bon réflexe: ";
        font-weight: 600;
        color: var(--text);
        display: block;
        margin-bottom: 4px;
        font-size: 10px;
    }

    /* Second table specific labels */
    .seo-table-wrapper:last-of-type .seo-table td:nth-child(2)::before {
        content: "Action: ";
    }

    .seo-table-wrapper:last-of-type .seo-table td:nth-child(3)::before {
        content: "Pourquoi: ";
    }

    .seo-table-wrapper:last-of-type .seo-table td:nth-child(4)::before {
        content: "À surveiller: ";
    }

    .seo-table-wrapper:last-of-type .seo-table td:nth-child(5)::before {
        content: "Astuce: ";
    }

    .hero {
        margin-bottom: 32px;
    }

    .quick-grid {
        gap: 16px;
    }

    .section-title {
        font-size: 24px;
    }

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

    .footer__top {
        flex-direction: column;
        gap: 24px;
        align-items: flex-start;
    }

    .footer {
        padding-bottom: calc(48px + 70px);
    }

    .crypto-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .slot-card {
        width: 160px;
    }

    .slot-card img {
        width: 160px;
        height: 160px;
    }

    .live-card {
        width: 240px;
    }

    .live-card img {
        width: 240px;
        height: 160px;
    }

    .casino .games-track,
    .live .games-track {
        gap: 3px;
    }

    .instant .games-track {
        gap: 1px;
    }
}

/* Content Visibility for Performance */
@media (min-width: 1025px) {
    .footer {
        content-visibility: auto;
        contain-intrinsic-size: 500px;
    }

    #seo-text {
        content-visibility: auto;
        contain-intrinsic-size: 200px;
    }

    .faq {
        content-visibility: auto;
        contain-intrinsic-size: 400px;
    }
}

/* Image Optimization */
img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

/* Reduce repaints on scroll */
.topbar {
    will-change: box-shadow;
    transform: translateZ(0);
}

.games-scroll {
    will-change: scroll-position;
}

/* Optimize animations */
@media (prefers-reduced-motion: no-preference) {
    .hero__track {
        will-change: transform;
    }
}

/* Focus Styles */
*:focus-visible {
    outline: 2px solid var(--green);
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .topbar,
    .sidebar,
    .bottom-nav,
    .mobile-menu {
        display: none;
    }

    .main {
        max-width: 100%;
        padding: 0;
    }
}
