/* -----------------------------------------------------
   RESET & BASE VARIABLES
----------------------------------------------------- */
:root {
    /* Colors */
    --bg-dark: #0f172a;
    --bg-dark-secondary: #1e293b;
    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;
    --accent-green: #22c55e;
    --accent-blue: #0ea5e9;
    --accent-blue-hover: #0284c7;

    /* Glassmorphism */
    --glass-bg: rgba(30, 41, 59, 0.7);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-blur: 12px;

    /* Spacing & Layout */
    --container-width: 1180px;
    --radius-lg: 16px;
    --radius-md: 10px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-dark);
    /* Subtle gradient background mesh effect */
    background-image:
        radial-gradient(circle at 10% 20%, rgba(34, 197, 94, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(14, 165, 233, 0.05) 0%, transparent 40%);
    background-attachment: fixed;
}

/* --- Layout helpers --- */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
}

/* Light/Alt Section (now just slightly lighter dark) */
.section-light {
    background: rgba(255, 255, 255, 0.02);
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
    padding: 80px 0;
}

h1,
h2,
h3,
h4 {
    color: #fff;
    font-weight: 700;
    line-height: 1.2;
}

.section h2,
.section-light h2 {
    font-size: 2.2rem;
    margin-bottom: 30px;
    text-align: center;
    background: linear-gradient(to right, #fff, var(--accent-blue));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section ol {
    margin-bottom: 30px;
}

section ul {
    padding-left: 25px;
    margin-bottom: 30px;
}

p {
    margin-bottom: 1.25rem;
    color: var(--text-secondary);
}

a {
    color: var(--accent-blue);
    text-decoration: none;
    transition: 0.3s;
}

a:hover {
    color: var(--accent-green);
}

/* -----------------------------------------------------
   GLASSMORPHISM UTILITIES
----------------------------------------------------- */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
}

/* -----------------------------------------------------
   HEADER
----------------------------------------------------- */
.site-header {
    background: rgba(15, 23, 42, 0.85);
    /* distinct from body for legibility */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 1.25rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.5px;
}

.logo img {
    width: 32px;
    margin-right: 12px;
}

/* Highlight "Online" or part of logo */
.logo span span {
    color: var(--accent-green);
}

/* Navigation */
.main-nav ul {
    display: flex;
    gap: 10px;
    list-style: none;
}

.main-nav a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.95rem;
    padding: 8px 16px;
    border-radius: 50px;
    /* Pill shape */
    transition: all 0.3s ease;
}

.main-nav a:hover,
.main-nav a.active {
    background: rgba(14, 165, 233, 0.15);
    color: var(--accent-blue);
    box-shadow: 0 0 15px rgba(14, 165, 233, 0.2);
}

/* Mobile Toggle */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-icon {
    width: 24px;
    height: 2px;
    background: #fff;
    display: block;
    position: relative;
    transition: 0.3s;
}

.mobile-menu-icon::before,
.mobile-menu-icon::after {
    content: "";
    position: absolute;
    width: 24px;
    height: 2px;
    background: #fff;
    left: 0;
    transition: 0.3s;
}

.mobile-menu-icon::before {
    top: -8px;
}

.mobile-menu-icon::after {
    bottom: -8px;
}

/* -----------------------------------------------------
   HERO SECTION
----------------------------------------------------- */
.hero {
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-text h1 {
    font-size: 3rem;
    margin-bottom: 24px;
    text-shadow: 0 0 30px rgba(34, 197, 94, 0.1);
}

.hero-text p {
    font-size: 1.15rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

.hero-badges span {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 0.85rem;
    color: var(--accent-green);
    font-weight: 500;
}

.hero-image {
    position: relative;
}

.hero-image img {
    width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--glass-border);
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }

    100% {
        transform: translateY(0);
    }
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    transition: 0.3s ease;
    cursor: pointer;
    border: none;
    text-decoration: none;
}

.btn-primary {
    background: var(--accent-green);
    color: #0f172a;
    /* Dark text on green for contrast */
    box-shadow: 0 0 20px rgba(34, 197, 94, 0.4);
}

.btn-primary:hover {
    background: #16a34a;
    transform: translateY(-2px);
    box-shadow: 0 5px 25px rgba(34, 197, 94, 0.5);
    color: #0f172a;
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--accent-blue);
    color: var(--accent-blue);
}

.btn-outline:hover {
    background: var(--accent-blue);
    color: #fff;
    box-shadow: 0 0 20px rgba(14, 165, 233, 0.4);
}

.btn-table {
    padding: 8px 16px;
    font-size: 0.9rem;
    background: rgba(34, 197, 94, 0.15);
    color: var(--accent-green);
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: 6px;
}

.btn-table:hover {
    background: var(--accent-green);
    color: #0f172a;
}

.hero-cta-group {
    display: flex;
    gap: 16px;
}

/* -----------------------------------------------------
   CARDS & GRID
----------------------------------------------------- */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 30px;
    transition: 0.3s;
    backdrop-filter: blur(var(--glass-blur));
}

.card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-blue);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.card img {
    width: 48px;
    margin-bottom: 20px;
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.2));
}

.card h3 {
    margin-bottom: 12px;
    font-size: 1.3rem;
}

.card-link {
    display: inline-block;
    margin-top: 15px;
    font-weight: 600;
}

/* -----------------------------------------------------
   ICON LIST (Safety & Licensing)
----------------------------------------------------- */
.icon-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 24px;
}

.icon-list-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    background: var(--glass-bg);
    padding: 20px;
    border-radius: var(--radius-md);
    border: 1px solid var(--glass-border);
}

.icon-list-item img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    flex-shrink: 0;
}

.icon-list-item h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: #fff;
}

.icon-list-item p {
    margin: 0;
    font-size: 0.95rem;
}

/* -----------------------------------------------------
   TABLES (Glassmorphism)
----------------------------------------------------- */
.table-wrapper {
    overflow-x: auto;
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.ranking-table,
.table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
    /* Ensure scroll on mobile */
    background: var(--bg-dark-secondary);
}

.ranking-table th,
.table th {
    background: rgba(15, 23, 42, 0.9);
    padding: 16px;
    text-align: left;
    font-size: 0.95rem;
    color: var(--accent-blue);
    border-bottom: 1px solid var(--glass-border);
}

.ranking-table td,
.table td {
    padding: 16px;
    border-bottom: 1px solid var(--glass-border);
    vertical-align: middle;
    color: var(--text-primary);
}

.ranking-table tbody tr {
    transition: 0.2s;
}

.ranking-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.03);
}

.casino-cell {
    display: flex;
    align-items: center;
    gap: 12px;
}

.casino-cell img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    border-radius: 50%;
    background: #fff;
    padding: 2px;
}

.disclaimer {
    font-size: 0.85rem;
    opacity: 0.5;
    margin-top: 20px;
    text-align: center;
}

/* -----------------------------------------------------
   PAYMENTS & STEPS
----------------------------------------------------- */
.payments-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    text-align: center;
    margin-bottom: 30px;
}

.payment-item {
    background: var(--glass-bg);
    padding: 24px;
    border-radius: var(--radius-md);
    border: 1px solid var(--glass-border);
    transition: 0.3s;
}

.payment-item:hover {
    border-color: var(--accent-green);
    transform: translateY(-3px);
}

.payment-item img {
    height: 40px;
    margin-bottom: 16px;
    object-fit: contain;
}

.steps-list {
    counter-reset: steps;
    list-style: none;
    display: grid;
    gap: 20px;
}

.steps-list li {
    position: relative;
    padding-left: 60px;
}

.steps-list li::before {
    counter-increment: steps;
    content: counter(steps);
    position: absolute;
    left: 0;
    top: 0;
    width: 40px;
    height: 40px;
    background: var(--accent-blue);
    color: #fff;
    font-weight: bold;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 15px rgba(14, 165, 233, 0.6);
}

.steps-list strong {
    display: block;
    color: #fff;
    margin-bottom: 4px;
}

/* Visual Steps with Images */
.steps-with-images {
    display: flex;
    flex-direction: column;
    gap: 40px;
    margin-top: 40px;
}

.step-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.step-item:nth-child(even) {
    direction: rtl;
    /* Alternate layout */
}

.step-item:nth-child(even) .step-text {
    direction: ltr;
    /* Reset text direction */
}

.step-image img {
    width: 100%;
    max-width: 400px;
    /* Limit size */
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--glass-border);
    display: block;
    margin: 0 auto;
}

.step-text h3 {
    color: var(--accent-green);
    margin-bottom: 16px;
}

/* -----------------------------------------------------
   FAQ
----------------------------------------------------- */
.faq-item {
    border-bottom: 1px solid var(--glass-border);
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    padding: 20px 0;
    text-align: left;
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-icon::before {
    content: "+";
    color: var(--accent-green);
    font-size: 1.5rem;
    transition: 0.3s;
}

.faq-question.active .faq-icon::before {
    content: "−";
    color: var(--accent-blue);
}

.faq-answer {
    display: none;
    padding-bottom: 20px;
    color: var(--text-secondary);
}

.faq-answer.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* -----------------------------------------------------
   FOOTER
----------------------------------------------------- */
.site-footer {
    background: #000;
    border-top: 1px solid var(--glass-border);
    padding: 80px 0 30px 0;
    margin-top: 60px;
    font-size: 0.95rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 50px;
}

.footer-logo img {
    width: 50px;
}

.footer-col h3 {
    font-size: 1.2rem;
    margin-bottom: 24px;
    color: #fff;
}

.footer-links a,
.link-button {
    display: block;
    margin-bottom: 12px;
    color: var(--text-secondary);
    transition: 0.3s;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
    text-align: left;
    padding: 0;
}

.footer-links a:hover,
.link-button:hover {
    color: var(--accent-green);
    transform: translateX(5px);
}

.footer-bottom {
    margin-top: 60px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    color: #64748b;
}

.footer-links {
    padding-left: 25px;
}

/* -----------------------------------------------------
   COOKIE CONSENT
----------------------------------------------------- */
/* -----------------------------------------------------
   COOKIE CONSENT
----------------------------------------------------- */
.cookie-banner {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    max-width: 1200px;
    margin: 0 auto;
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
    padding: 24px;
    z-index: 9000;
    transform: translateY(150%);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    display: none;
    /* JS toggles this */
}

.cookie-banner.show {
    transform: translateY(0);
    display: block;
    animation: slideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes slideUp {
    from {
        transform: translateY(150%);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.cookie-banner-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.cookie-banner-text {
    display: flex;
    align-items: center;
    gap: 20px;
}

.cookie-banner-text img {
    width: 48px;
    height: 48px;
    filter: drop-shadow(0 0 10px rgba(245, 158, 11, 0.3));
}

.cookie-banner-text p {
    margin: 0;
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.cookie-banner-actions {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

/* Modal Overlay */
.cookie-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.cookie-modal.show {
    opacity: 1;
    pointer-events: auto;
}

.cookie-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.cookie-modal-dialog {
    position: relative;
    width: 100%;
    max-width: 600px;
    background: #1e293b;
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    max-height: 85vh;
    transform: scale(0.95);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.cookie-modal.show .cookie-modal-dialog {
    transform: scale(1);
}

.cookie-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px;
    border-bottom: 1px solid var(--glass-border);
}

.cookie-modal-header h2 {
    font-size: 1.5rem;
    margin: 0;
    background: linear-gradient(to right, #fff, var(--text-secondary));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.cookie-modal-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    transition: 0.2s;
    padding: 0;
}

.cookie-modal-close:hover {
    color: #fff;
    transform: scale(1.1);
}

.cookie-modal-body {
    padding: 24px;
    overflow-y: auto;
}

.cookie-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.03);
    padding: 16px;
    border-radius: var(--radius-md);
    margin-bottom: 16px;
    border: 1px solid transparent;
    transition: 0.2s;
}

.cookie-option:hover {
    border-color: rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
}

.cookie-option h3 {
    font-size: 1.1rem;
    margin-bottom: 4px;
    color: #fff;
}

.cookie-option p {
    font-size: 0.9rem;
    margin: 0;
}

.cookie-modal-links {
    margin-top: 24px;
    font-size: 0.85rem;
    text-align: center;
}

.cookie-modal-footer {
    padding: 24px;
    border-top: 1px solid var(--glass-border);
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

/* Custom Toggle Switch */
.switch {
    position: relative;
    display: inline-block;
    width: 52px;
    height: 30px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.switch-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #334155;
    transition: .4s;
    border-radius: 34px;
    border: 1px solid var(--glass-border);
}

.switch-slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 3px;
    bottom: 3px;
    background-color: #cbd5e1;
    transition: .4s;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.switch input:checked+.switch-slider {
    background-color: var(--accent-green);
    box-shadow: 0 0 15px rgba(34, 197, 94, 0.4);
}

.switch input:checked+.switch-slider:before {
    transform: translateX(22px);
    background-color: #fff;
}

.switch input:focus+.switch-slider {
    box-shadow: 0 0 1px var(--accent-green);
}

/* Disabled Switch (e.g. Essential cookies) */
/* Note: We rely on standard checkbox styling for disabled inputs currently */
input[type="checkbox"][disabled] {
    accent-color: var(--accent-green);
    opacity: 0.5;
    width: 20px;
    height: 20px;
    cursor: not-allowed;
}

/* -----------------------------------------------------
   FORMS
----------------------------------------------------- */
.contact-form {
    background: var(--glass-bg);
    padding: 40px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(var(--glass-blur));
    max-width: 700px;
    margin: 0 auto;
}

.form-row {
    margin-bottom: 24px;
}

label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-primary);
    font-weight: 500;
}

input[type="text"],
input[type="email"],
textarea {
    width: 100%;
    padding: 12px 16px;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    color: #fff;
    font-family: inherit;
    font-size: 1rem;
    transition: 0.3s;
}

input:focus,
textarea:focus {
    outline: none;
    border-color: var(--accent-blue);
    background: rgba(15, 23, 42, 0.8);
    box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.1);
}

.form-actions {
    margin-top: 30px;
    text-align: center;
}

.form-note {
    margin-top: 20px;
    font-size: 0.85rem;
    opacity: 0.7;
    text-align: center;
}

/* -----------------------------------------------------
   RESPONSIVE
----------------------------------------------------- */
@media (max-width: 900px) {
    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--bg-dark);
        border-bottom: 1px solid var(--glass-border);
        padding: 20px;
        flex-direction: column;
        gap: 10px;
    }

    .main-nav.active {
        display: flex;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 5px;
    }

    .main-nav a {
        display: block;
        padding: 12px;
        background: rgba(255, 255, 255, 0.03);
    }

    .mobile-menu-btn {
        display: block;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-cta-group {
        justify-content: center;
    }

    .hero-badges {
        justify-content: center;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .cookie-banner-inner {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .step-item {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 30px;
    }

    .step-item:nth-child(even) {
        direction: ltr;
        /* Reset for mobile */
    }

    .step-image img {
        margin: 0 auto;
    }
}