:root {
    --font-primary: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
    --bg-dark: #0f172a;
    --bg-darker: #020617;
    --text-light: #f8fafc;
    --text-dark: #334155;
    --text-muted: #64748b;
    --bg-white: #ffffff;
    --bg-alt: #f1f5f9;
    --primary-cta: #eab308;
    --primary-cta-hover: #ca8a04;
    --border-color: #e2e8f0;
    --success-color: #065f46; /* Darker emerald for 7:1 contrast on white */
    --danger-color: #ef4444;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --max-width: 960px;
}

*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px; /* Adjust for sticky header */
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--font-primary);
    background-color: var(--bg-dark);
    color: var(--text-dark);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

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

/* Typography */
h1, h2, h3, h4 {
    margin-top: 0;
    margin-bottom: 1.5rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-dark);
}

h1 { font-size: 2.25rem; }
h2 { font-size: 1.875rem; border-bottom: 2px solid var(--primary-cta); padding-bottom: 0.5rem; display: inline-block; }
h3 { font-size: 1.5rem; color: #1e293b; }
h4 { font-size: 1.25rem; }

p, ul, ol { margin-bottom: 1.25rem; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--primary-cta);
    color: var(--bg-darker);
    font-weight: 700;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    transition: background-color 0.2s ease, transform 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.875rem;
    text-align: center;
    border: none;
    cursor: pointer;
}

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

.btn-header {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
}

/* Read More */
.read-more {
    display: inline-block;
    margin-top: 0.75rem;
    color: var(--primary-color);
    font-weight: 700;
    text-decoration: none;
    font-size: 0.9rem;
}

.read-more:hover {
    text-decoration: underline;
}

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background-color: rgba(2, 6, 23, 0.95);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.75rem 0;
}

.header-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.main-nav {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links a {
    color: var(--text-light);
    font-weight: 500;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

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

/* Language Selector */
.lang-selector {
    position: relative;
    display: inline-block;
}

.lang-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--text-light);
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.lang-btn:hover {
    border-color: var(--text-light);
}

.lang-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 0.5rem;
    background: var(--bg-white);
    border-radius: 4px;
    box-shadow: var(--shadow-lg);
    min-width: 120px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 100;
}

.lang-dropdown.show {
    display: block;
}

.lang-dropdown a {
    display: block;
    padding: 0.5rem 1rem;
    color: var(--text-dark);
    font-size: 0.85rem;
    text-decoration: none;
}

.lang-dropdown a:hover {
    background: var(--bg-alt);
    color: var(--primary-cta-hover);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.25rem;
}

/* Hero Section */
.hero {
    position: relative;
    background-image: url('img/background.webp');
    background-size: cover;
    background-position: center;
    padding: 5rem 1rem;
    text-align: center;
    color: var(--text-light);
}

.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(2, 6, 23, 0.85);
    z-index: 1;
}

.hero-small {
    min-height: 40vh;
    padding: 6rem 1rem 3rem;
}

.hero-small h1 {
    font-size: 3rem;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    color: var(--text-light);
    font-size: 3.5rem;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    border-bottom: none;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
}

/* Demo Section */
.demo-section-wrapper {
    background-color: var(--bg-darker);
    padding: 2rem 1rem 4rem;
    text-align: center;
}

.demo-container {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    aspect-ratio: 16 / 9;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    background-color: #000;
}

.demo-placeholder {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: url('img/background.webp');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.demo-placeholder::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(2, 6, 23, 0.6);
    z-index: 1;
}

.demo-placeholder .btn {
    position: relative;
    z-index: 3;
    font-size: 1.25rem;
    padding: 1rem 2.5rem;
}

.demo-iframe {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    border: none;
    z-index: 1;
}

.demo-actions {
    margin-top: 2rem;
}

/* Main Content Wrappers */
.page-wrapper {
    background: var(--bg-white);
    max-width: var(--max-width);
    margin: 0 auto;
    box-shadow: var(--shadow-lg);
    position: relative;
    z-index: 10;
}

/* Sections */
.section {
    padding: 3rem 2rem;
    border-bottom: 1px solid var(--border-color);
}

.section-alt {
    background-color: var(--bg-alt);
}

/* Quick Facts Table */
.table-responsive {
    overflow-x: auto;
    margin-bottom: 1.5rem;
}

.custom-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-white);
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    margin-top: 1rem;
}

.custom-table th:first-child, .custom-table td:first-child {
    width: 120px;
    white-space: nowrap;
}

.custom-table th, .custom-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    text-align: left;
}

.custom-table th {
    background-color: var(--bg-dark);
    color: var(--text-light);
    font-weight: 600;
}

.custom-table tr:last-child th,
.custom-table tr:last-child td {
    border-bottom: none;
}

.custom-table tr:hover td {
    background-color: var(--bg-alt);
}

/* Table of Contents (TOC) */
.toc-container {
    margin: 2rem 0;
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.toc-container details summary {
    padding: 1rem 1.5rem;
    font-weight: 700;
    cursor: pointer;
    background-color: var(--bg-alt);
    color: var(--text-dark);
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.toc-container details summary::after {
    content: '▼';
    font-size: 0.8rem;
    transition: transform 0.2s;
}

.toc-container details[open] summary::after {
    transform: rotate(180deg);
}

.toc-content {
    padding: 1rem 1.5rem;
}

.toc-content ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.toc-content li {
    margin-bottom: 0.5rem;
}

.toc-content a {
    color: var(--text-muted);
    transition: color 0.2s;
}

.toc-content a:hover {
    color: var(--primary-cta-hover);
    text-decoration: underline;
}

/* Pros & Cons */
.pros-cons-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

.pc-box {
    background: var(--bg-white);
    border-radius: 0.5rem;
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
    border-top: 4px solid var(--border-color);
}

.pc-box.pros { border-top-color: var(--success-color); }
.pc-box.cons { border-top-color: var(--danger-color); }

.pc-box h3 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0;
    border-bottom: none;
}

.pc-box.pros h3 { color: var(--success-color); }
.pc-box.cons h3 { color: var(--danger-color); }

.pc-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pc-list li {
    position: relative;
    padding-left: 1.75rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.pc-list li::before {
    position: absolute;
    left: 0;
    top: 0.1rem;
    font-weight: bold;
}

.pc-box.pros .pc-list li::before {
    content: '✓';
    color: var(--success-color);
}

.pc-box.cons .pc-list li::before {
    content: '✕';
    color: var(--danger-color);
}

/* Casino Cards */
.casino-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin: 2rem 0;
}

.casino-card {
    display: flex;
    align-items: center;
    background: var(--bg-white);
    border-radius: 0.5rem;
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    gap: 1.5rem;
    transition: transform 0.2s, box-shadow 0.2s;
}

.casino-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.casino-logo {
    flex-shrink: 0;
    width: 100px;
    height: 100px;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.casino-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.casino-info {
    flex-grow: 1;
}

.casino-info h3 {
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
    color: var(--bg-darker);
    border-bottom: none;
}

.casino-bonus {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--success-color);
    margin-bottom: 0.5rem;
}

.casino-features {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin: 0;
}

.casino-action {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

/* FAQ Accordion */
.faq-accordion details {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.faq-accordion summary {
    padding: 1.25rem 1.5rem;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--bg-white);
    transition: background-color 0.2s;
}

.faq-accordion summary:hover {
    background-color: var(--bg-alt);
}

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

.faq-accordion summary::after {
    content: '+';
    font-size: 1.5rem;
    line-height: 1;
    color: var(--primary-cta);
    transition: transform 0.2s;
}

.faq-accordion details[open] summary::after {
    content: '−';
}

.faq-accordion .faq-answer {
    padding: 0 1.5rem 1.25rem;
    color: var(--text-muted);
}

/* Figures */
figure {
    margin: 2rem 0;
    background-color: var(--bg-alt);
    padding: 1rem;
    border-radius: 0.5rem;
    border: 1px solid var(--border-color);
}

figcaption {
    text-align: center;
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-top: 1rem;
    font-style: italic;
}

/* Footer */
.site-footer {
    background-color: var(--bg-darker);
    color: var(--text-light);
    padding: 4rem 1rem 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-grid {
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-col h4 {
    color: var(--text-light);
    margin-top: 0;
    margin-bottom: 1.5rem;
    border-bottom: none;
}

.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 0.5rem; }
.footer-links a { color: var(--text-muted); transition: color 0.2s ease; }
.footer-links a:hover { color: var(--text-light); }

.footer-bottom {
    max-width: var(--max-width);
    margin: 0 auto;
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* Content Text Specifics */
blockquote {
    border-left: 4px solid var(--primary-cta);
    background-color: var(--bg-alt);
    margin: 1.5rem 0;
    padding: 1rem 1.5rem;
    font-style: italic;
    border-radius: 0 0.5rem 0.5rem 0;
}

/* Responsive */
@media (max-width: 768px) {
    .header-container {
        gap: 1rem;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-darker);
        flex-direction: column;
        padding: 1rem;
        gap: 1rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .nav-links.active {
        display: flex;
    }

    .mobile-menu-btn {
        display: block;
        order: 3;
    }

    .logo {
        flex-shrink: 0;
        order: 1;
    }

    .btn-header {
        margin-left: auto;
        order: 2; /* Keep CTA visible in header */
        font-size: 0.75rem;
        padding: 0.5rem 0.75rem;
    }

    .lang-selector {
        display: none; /* Hide language selector on mobile or move it into menu */
    }

    .hero h1 { font-size: 2.25rem; }
    .hero { padding: 3rem 1rem; }

    .section {
        padding: 2rem 1rem;
    }

    .demo-container {
        width: 80%;
        aspect-ratio: 9 / 16;
    }

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

    .casino-card {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem 1rem;
    }
    
    .casino-action {
        width: 100%;
    }
    
    .casino-action .btn {
        width: 100%;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-col img {
        margin-left: auto;
        margin-right: auto;
    }
}
/* Contact Form & Alerts */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--bg-darker);
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    background: var(--bg-white);
    color: var(--bg-darker);
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.alert {
    padding: 1rem 1.5rem;
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.alert-success {
    background-color: #d1fae5;
    color: #065f46;
    border: 1px solid #10b981;
}

.alert-error {
    background-color: #fee2e2;
    color: #991b1b;
    border: 1px solid #ef4444;
}

.btn-block {
    display: block;
    width: 100%;
    text-align: center;
}

.content-text h2 {
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.content-text p {
    margin-bottom: 1rem;
}

.content-text ul {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

@media (max-width: 768px) {
    .hero-small h1 {
        font-size: 2.5rem;
    }
}
