:root {
    /* Colors based on screenshot */
    --primary: #6C3CF0;
    /* Purple accent */
    --primary-hover: #5427d0;
    --secondary: #9E7BFF;
    /* Soft violet */
    --accent: #d2a95c;
    /* Gold/welcome bonus accent typical for casino, using similar to image */
    --accent-btn: linear-gradient(180deg, #F3D07C 0%, #D8A53B 100%);

    --bg-main: #F5F6F8;
    /* Light grey background */
    --bg-card: #FFFFFF;
    /* White cards */
    --bg-header: #FFFFFF;

    --text-main: #1C1F26;
    /* Dark grey/black for text */
    --text-muted: #6B7280;
    --text-light: #FFFFFF;

    --border-color: #E5E7EB;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);

    /* Radiuses */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;

    /* Transitions */
    --transition: all 0.3s ease;
}

/* Reset & Base */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

ul,
ol {
    list-style: none;
}

img,
picture {
    max-width: 100%;
    display: block;
}

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

/* Utilities */
.container {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 16px;
}

@media (min-width: 1024px) {
    .container {
        padding: 0 32px;
    }
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 24px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 14px;
    transition: var(--transition);
    text-align: center;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--text-light);
}

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

.btn-outline {
    border: 1px solid var(--primary);
    color: var(--primary);
    background-color: transparent;
}

.btn-outline:hover {
    background-color: var(--primary);
    color: var(--text-light);
}

/* Visually Hidden */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* ================= HEADER ================= */
.header {
    background-color: var(--bg-header);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
    height: 70px;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.header-left,
.header-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    color: var(--text-main);
}

.logo img {
    height: 32px;
    width: auto;
}

.desktop-nav {
    display: none;
}

.desktop-nav ul {
    display: flex;
    gap: 24px;
    align-items: center;
    margin-left: 16px;
}

.desktop-nav a {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 6px;
}

.desktop-nav a:hover {
    color: var(--primary);
}

.desktop-nav .badge {
    background-color: var(--bg-main);
    color: var(--text-muted);
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 10px;
}

.icon-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-main);
    transition: var(--transition);
}

.icon-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.auth-buttons {
    display: none;
    gap: 12px;
}

.lang-selector {
    display: none;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    cursor: pointer;
}

/* Mobile Sticky Nav */
.mobile-sticky-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #3b207d;
    /* Dark purple matching screenshot bottom mobile nav */
    z-index: 100;
    padding: 8px 16px;
    display: block;
}

.mobile-sticky-nav ul {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mobile-sticky-nav li {
    flex: 1;
}

.mobile-sticky-nav a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: #b3a0db;
    font-size: 11px;
    font-weight: 500;
}

.mobile-sticky-nav a.active,
.mobile-sticky-nav a:hover {
    color: var(--text-light);
}

.mobile-sticky-nav svg {
    color: inherit;
}

.signup-nav {
    position: relative;
    top: -20px;
}

.mobile-main-cta {
    background: var(--accent-btn);
    color: #000 !important;
    /* contrast */
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    margin: 0 auto;
}

.mobile-main-cta span {
    position: absolute;
    bottom: -18px;
    color: #b3a0db !important;
}

.main-content {
    min-height: calc(100vh - 70px);
    padding-bottom: 70px;
    /* Space for mobile nav */
}

/* Desktop Header Media Queries */
@media (min-width: 1024px) {
    .header {
        height: 80px;
    }

    .logo img {
        height: 48px;
    }

    .desktop-nav {
        display: block;
    }

    .auth-buttons {
        display: flex;
    }

    .lang-selector {
        display: flex;
    }

    .mobile-sticky-nav {
        display: none;
    }

    .main-content {
        padding-bottom: 0;
    }
}

/* ================= HERO SLIDER ================= */
.hero-slider {
    position: relative;
    width: 100%;
    overflow: hidden;
    background-color: var(--bg-main);
}

.slider-container {
    position: relative;
    max-width: 1920px;
    margin: 0 auto;
}

.slides-wrapper {
    display: flex;
    transition: transform 0.5s ease-in-out;
    width: 100%;
}

.slide {
    flex: 0 0 100%;
    position: relative;
    width: 100%;
}

.slide img {
    width: 100%;
    height: 380px;
    /* fixed height for mobile */
    object-fit: cover;
    object-position: 55% center;
    /* focus on interesting parts but not completely at the edge */
}

@media(min-width: 768px) {
    .slide img {
        height: 320px;
        /* based on image height 1920x320 */
        object-position: center;
    }
}

.slide-content {
    position: absolute;
    top: 50%;
    left: 20px;
    transform: translateY(-50%);
    z-index: 10;
    color: var(--text-main);
}

@media(min-width: 1024px) {
    .slide-content {
        left: 10%;
    }
}

.slide-badge {
    display: inline-block;
    background-color: #d2a95c;
    /* gold from screenshot */
    color: #fff;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.slide h2 {
    font-size: 28px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 24px;
    color: #fff;
    /* text seems dark on white bk, but those are purple bk images so text needs to be white/dark based on the image */
}

/* Hardcode specific classes for image text color since they are mostly purple/light */
.slide h2 {
    color: #1c1f26;
}

/* Default dark */
.slide:nth-child(2) h2 {
    color: #1c1f26;
}

.slide:nth-child(3) h2 {
    color: #1c1f26;
}

@media(min-width: 768px) {
    .slide h2 {
        font-size: 42px;
    }
}

.cta-btn {
    padding: 14px 32px;
    font-size: 16px;
    border-radius: var(--radius-md);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background-color: var(--primary);
    color: #fff;
    box-shadow: 0 4px 15px rgba(108, 60, 240, 0.4);
}

.cta-btn:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(108, 60, 240, 0.6);
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    cursor: pointer;
    z-index: 20;
    color: var(--text-main);
    transition: var(--transition);
}

.slider-btn:hover {
    background-color: #fff;
    color: var(--primary);
}

.prev-btn {
    left: 16px;
}

.next-btn {
    right: 16px;
}

@media(max-width: 768px) {
    .slider-btn {
        display: none;
    }

    /* Hide arrows on mobile mostly */
}

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

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: var(--transition);
}

.dot.active {
    background-color: var(--primary);
    width: 24px;
    border-radius: 4px;
}

/* ================= CATEGORIES ================= */
.game-categories {
    margin-top: 32px;
    margin-bottom: 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.categories-scroll {
    display: flex;
    overflow-x: auto;
    gap: 12px;
    padding-bottom: 8px;
    /* space for scrollbar */
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE and Edge */
}

.categories-scroll::-webkit-scrollbar {
    display: none;
    /* Chrome, Safari and Opera */
}

.category-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 90px;
    height: 80px;
    background-color: var(--bg-card);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    flex-shrink: 0;
    transition: var(--transition);
}

.category-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    color: var(--primary);
}

.category-card img {
    width: 28px;
    height: 28px;
    object-fit: contain;
    /* Soft filter to match icons color if needed, but they are SVGs so we just use them directly */
}

.category-card span {
    font-size: 11px;
    font-weight: 600;
    text-align: center;
    color: inherit;
}

.provider-filter {
    display: none;
}

@media(min-width: 1024px) {
    .provider-filter {
        display: flex;
        flex-shrink: 0;
    }

    .filter-btn {
        display: flex;
        align-items: center;
        gap: 8px;
        background-color: var(--bg-card);
        padding: 0 16px;
        height: 48px;
        border-radius: var(--radius-sm);
        box-shadow: var(--shadow-sm);
        color: var(--text-main);
        font-weight: 600;
        font-size: 14px;
    }
}

/* ================= GAME SECTIONS ================= */
.game-section {
    margin-bottom: 48px;
}

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

.section-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-title h2 {
    font-size: 20px;
    font-weight: 800;
    color: var(--text-main);
}

.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
}

.badge.yellow {
    background-color: #d2a95c;
    color: #fff;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 10px;
}

.badge.small {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 5;
}

.badge.purple {
    background-color: var(--secondary);
    color: #fff;
}

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

.show-all {
    font-size: 14px;
    font-weight: 700;
    color: var(--primary);
}

.show-all:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}

.nav-arrows {
    display: none;
}

@media(min-width: 768px) {
    .nav-arrows {
        display: flex;
        gap: 8px;
    }
}

.nav-arrow {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: var(--bg-card);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
    color: var(--text-main);
    transition: var(--transition);
}

.nav-arrow:hover {
    background-color: var(--primary);
    color: #fff;
}

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

@media(min-width: 640px) {
    .game-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }
}

@media(min-width: 1024px) {
    .game-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 20px;
    }
}

@media(min-width: 1440px) {
    .game-grid {
        grid-template-columns: repeat(6, 1fr);
    }
}

.game-card {
    background-color: var(--bg-card);
    border-radius: var(--radius-md);
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.game-card:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-md);
}

.game-img-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
}

.game-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.game-card:hover .game-img-wrapper img {
    transform: scale(1.05);
}

.game-info {
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.game-info h3 {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-main);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.game-info p {
    font-size: 12px;
    color: var(--text-muted);
}

/* ================= PROVIDERS ================= */
.providers-section {
    padding: 32px 0;
    margin-bottom: 24px;
}

.providers-wrap {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 16px;
}

.providers-wrap a {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--bg-card);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    height: 56px;
    min-width: 100px;
}

.providers-wrap a:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.providers-wrap img {
    height: 24px;
    width: auto;
    object-fit: contain;
    filter: invert(1) opacity(0.8);
    transition: var(--transition);
}

.providers-wrap a:hover img {
    filter: invert(1) opacity(1);
}

@media(min-width: 768px) {
    .providers-wrap {
        gap: 24px;
    }

    .providers-wrap img {
        height: 32px;
    }

    .providers-wrap a {
        padding: 16px 24px;
        height: 64px;
        min-width: 120px;
    }
}

/* ================= PAYMENTS ================= */
.payments-section {
    padding: 32px 0;
    border-top: 1px solid var(--border-color);
    margin-bottom: 24px;
}

.payments-wrap {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 24px;
    opacity: 0.6;
    transition: var(--transition);
}

.payments-wrap:hover {
    opacity: 1;
}

.payments-wrap img {
    height: 24px;
    width: auto;
    object-fit: contain;
    filter: invert(1) opacity(0.7);
    /* The payment icons are white, invert them to dark grey and give slight opacity */
    transition: var(--transition);
}

.payments-wrap img:hover {
    filter: invert(1) opacity(1);
}

@media(min-width: 768px) {
    .payments-wrap {
        gap: 48px;
    }

    .payments-wrap img {
        height: 32px;
    }
}

/* ================= SEO CONTENT ================= */
.seo-content {
    background-color: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 32px 20px;
    margin-bottom: 64px;
    box-shadow: var(--shadow-sm);
}

@media(min-width: 768px) {
    .seo-content {
        padding: 48px 64px;
    }
}

.content-wrapper {
    max-width: 900px;
    margin: 0 auto;
}

.seo-content h1,
.seo-content h2,
.seo-content h3 {
    color: var(--text-main);
    margin-bottom: 16px;
    font-weight: 800;
}

.seo-content h1 {
    font-size: 28px;
    color: var(--primary);
    margin-bottom: 24px;
    text-align: center;
}

.seo-content h2 {
    font-size: 22px;
    margin-top: 40px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--border-color);
}

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

.seo-content p {
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 16px;
    font-size: 15px;
}

.seo-content ul {
    list-style-type: disc;
    margin-left: 20px;
    margin-bottom: 24px;
    color: var(--text-muted);
}

.seo-content li {
    margin-bottom: 8px;
    line-height: 1.6;
}

.seo-content strong {
    color: var(--text-main);
}

.seo-content hr {
    border: none;
    height: 1px;
    background-color: var(--border-color);
    margin: 48px 0;
}

.faq-item {
    margin-bottom: 24px;
}

.faq-item h3 {
    font-size: 16px;
    margin-top: 0;
    margin-bottom: 8px;
    color: var(--primary);
}

/* ================= FOOTER ================= */
.footer {
    background-color: var(--bg-main);
    /* Lighter background for logo visibility */
    color: var(--text-muted);
    padding: 48px 0 100px 0;
    /* Extra 100px padding bottom to clear mobile sticky nav */
    text-align: center;
}

@media(min-width: 768px) {
    .footer {
        padding: 48px 0;
    }
}

.footer-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
}

.footer-logo img {
    height: 48px;
    opacity: 1;
    /* Remove opacity since it's on a light background now */
}

.footer-links ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px 32px;
}

.footer-links a {
    color: var(--text-main);
    font-size: 14px;
    font-weight: 500;
}

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

.footer-disclaimer {
    font-size: 12px;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto;
}

.footer-disclaimer p {
    margin-bottom: 8px;
}