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

:root {
    --primary-color: #00a8ff;
    --primary-dark: #0088cc;
    --secondary-color: #ffa502;
    --accent-color: #26de81;
    --success-color: #26de81;
    --warning-color: #ffa502;
    --error-color: #ff6348;
    --dark-bg: #1a1a2e;
    --darker-bg: #0f0f1e;
    --card-bg: #252544;
    --text-primary: #ffffff;
    --text-secondary: #b8b8d1;
    --border-color: #3a3a5c;
    --gradient-1: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-2: linear-gradient(135deg, #00a8ff 0%, #0088cc 100%);
    --gradient-3: linear-gradient(135deg, #ffa502 0%, #ff6348 100%);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--darker-bg);
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--secondary-color);
}

.header {
    background: rgba(26, 26, 46, 0.95);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.logo-icon {
    font-size: 2rem;
}

.logo-accent {
    color: var(--primary-color);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-menu a {
    color: var(--text-secondary);
    font-weight: 500;
    transition: color 0.3s ease;
}

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

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

.hero {
    position: relative;
    padding: 120px 0 80px;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-2);
    opacity: 0.1;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto 2.5rem;
    line-height: 1.8;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 3rem;
}

.hero-features {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

.feature-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--card-bg);
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    border: 1px solid var(--border-color);
}

.badge-icon {
    font-size: 1.5rem;
}

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background: var(--gradient-2);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 168, 255, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--primary-color);
}

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

.btn-large {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 3rem;
    font-size: 1.1rem;
}

.games-section {
    padding: 80px 0;
    background: var(--dark-bg);
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.game-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    text-align: center;
    transition: all 0.3s ease;
}

.game-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary-color);
    box-shadow: 0 20px 40px rgba(0, 168, 255, 0.2);
}

.game-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.game-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.game-card p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.benefits-section {
    padding: 80px 0;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.benefit-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.benefit-card:hover {
    border-color: var(--accent-color);
    transform: translateY(-4px);
}

.benefit-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.benefit-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
}

.benefit-card p {
    color: var(--text-secondary);
    line-height: 1.8;
}

.cta-section {
    padding: 100px 0;
    background: var(--gradient-2);
    text-align: center;
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.footer {
    background: var(--darker-bg);
    padding: 60px 0 20px;
    border-top: 1px solid var(--border-color);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-column h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

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

.footer-column ul li {
    margin-bottom: 0.5rem;
}

.footer-column ul li a {
    color: var(--text-secondary);
    transition: color 0.3s ease;
}

.footer-column ul li a:hover {
    color: var(--primary-color);
}

.footer-disclaimer {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    border: 1px solid var(--border-color);
}

.footer-disclaimer p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.8;
}

.help-links {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.help-links a {
    color: var(--primary-color);
    font-weight: 600;
}

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

.footer-minimal {
    padding: 20px 0;
}

.modal {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: var(--card-bg);
    padding: 3rem;
    border-radius: 16px;
    max-width: 500px;
    width: 90%;
    border: 2px solid var(--border-color);
}

.modal-content h2 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.modal-content p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.checkbox-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.checkbox-container input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.checkbox-container label {
    cursor: pointer;
    user-select: none;
}

.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--card-bg);
    padding: 1.5rem;
    border-top: 2px solid var(--border-color);
    z-index: 9999;
    display: none;
}

.cookie-consent.show {
    display: block;
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.cookie-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.cookie-link {
    color: var(--primary-color);
    font-weight: 600;
}

.content-page {
    min-height: calc(100vh - 200px);
    padding: 60px 0;
}

.content-page h1 {
    font-size: 3rem;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.content-section {
    margin-bottom: 3rem;
}

.content-section h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.content-section h3 {
    font-size: 1.5rem;
    margin: 2rem 0 1rem;
    color: var(--text-primary);
}

.content-section p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.8;
}

.content-section ul, .content-section ol {
    margin-left: 2rem;
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
}

.content-section li {
    margin-bottom: 0.75rem;
    line-height: 1.8;
}

.cta-box {
    background: var(--card-bg);
    padding: 3rem;
    border-radius: 16px;
    text-align: center;
    border: 2px solid var(--primary-color);
    margin-top: 4rem;
}

.cta-box h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.cta-box p {
    margin-bottom: 2rem;
}

.update-date {
    color: var(--text-secondary);
    font-style: italic;
    margin-bottom: 2rem;
}

.faq-item {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    border: 1px solid var(--border-color);
}

.faq-item h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.note {
    background: rgba(255, 165, 2, 0.1);
    border-left: 4px solid var(--warning-color);
    padding: 1rem;
    margin: 1.5rem 0;
    border-radius: 4px;
}

.cookie-table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
}

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

.cookie-table th {
    background: var(--card-bg);
    color: var(--primary-color);
    font-weight: 600;
}

.cookie-table td {
    color: var(--text-secondary);
}

.important-notice {
    background: rgba(255, 99, 72, 0.1);
    border: 2px solid var(--error-color);
    border-radius: 12px;
    padding: 2rem;
}

.resource-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    border: 1px solid var(--border-color);
}

.resource-card h3 {
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.emergency-box {
    background: var(--error-color);
    color: white;
    padding: 2rem;
    border-radius: 12px;
    margin-top: 3rem;
}

.emergency-box h3 {
    color: white;
    margin-bottom: 1rem;
}

.emergency-box ul {
    list-style: none;
    margin-left: 0;
}

.emergency-box li {
    margin-bottom: 0.5rem;
}

.highlight {
    background: rgba(0, 168, 255, 0.1);
    border-left: 4px solid var(--primary-color);
    padding: 1.5rem;
    border-radius: 4px;
    font-weight: 500;
}

.game-page {
    padding: 40px 0;
    min-height: calc(100vh - 200px);
}

.game-header {
    text-align: center;
    margin-bottom: 3rem;
}

.game-header h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.game-header p {
    color: var(--text-secondary);
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

.back-link {
    display: inline-block;
    color: var(--primary-color);
    font-weight: 600;
    transition: transform 0.3s ease;
}

.back-link:hover {
    transform: translateX(-5px);
}

.game-container {
    max-width: 900px;
    margin: 0 auto;
}

.game-stats {
    display: flex;
    justify-content: space-around;
    gap: 1.5rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.stat-box {
    background: var(--card-bg);
    padding: 1.5rem 2rem;
    border-radius: 12px;
    text-align: center;
    border: 1px solid var(--border-color);
    flex: 1;
    min-width: 150px;
}

.stat-label {
    display: block;
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.stat-value {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-color);
}

.slots-machine {
    background: var(--card-bg);
    padding: 3rem;
    border-radius: 16px;
    border: 2px solid var(--border-color);
    margin-bottom: 2rem;
}

.slots-reels {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.reel {
    width: 120px;
    height: 120px;
    background: var(--darker-bg);
    border: 3px solid var(--primary-color);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    transition: all 0.3s ease;
}

.reel.spinning {
    animation: spin 0.5s ease-in-out;
}

@keyframes spin {
    0%, 100% { transform: rotateY(0deg); }
    50% { transform: rotateY(180deg); }
}

.symbol {
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.5); }
    to { opacity: 1; transform: scale(1); }
}

.game-message {
    text-align: center;
    font-size: 1.3rem;
    font-weight: 600;
    min-height: 40px;
    margin-top: 1rem;
}

.game-message.win {
    color: var(--accent-color);
    animation: pulse 0.5s ease-in-out;
}

.game-message.lose {
    color: var(--error-color);
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.game-controls {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
    margin-bottom: 3rem;
}

.bet-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.bet-display {
    font-size: 1.2rem;
    font-weight: 600;
    min-width: 120px;
    text-align: center;
}

.game-info {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.game-info h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    text-align: center;
}

.payout-table {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.payout-row {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    background: var(--darker-bg);
    border-radius: 8px;
}

.poker-table {
    background: var(--card-bg);
    padding: 3rem;
    border-radius: 16px;
    border: 2px solid var(--border-color);
    margin-bottom: 2rem;
}

.poker-hand {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.card {
    width: 100px;
    height: 140px;
    background: white;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.card:hover {
    transform: translateY(-10px);
}

.card.held {
    border: 3px solid var(--accent-color);
    transform: translateY(-15px);
}

.card-back {
    background: var(--gradient-2);
    color: white;
}

.card-content {
    font-size: 3rem;
}

.card-red {
    color: #ff0000;
}

.card-black {
    color: #000000;
}

.game-instructions {
    text-align: center;
    color: var(--text-secondary);
    font-style: italic;
    margin-top: 1rem;
}

.roulette-wheel-container {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 16px;
    border: 2px solid var(--border-color);
    margin-bottom: 2rem;
}

.roulette-wheel-outer {
    position: relative;
    width: 400px;
    max-width: 100%;
    margin: 0 auto 1.5rem;
    aspect-ratio: 1;
}

#roulette-canvas {
    width: 100%;
    height: 100%;
    display: block;
}

.roulette-result-display {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.9);
    border: 3px solid var(--primary-color);
    border-radius: 50%;
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.winning-number {
    font-size: 3rem;
    font-weight: 700;
    color: white;
}

.roulette-table-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.table-zero {
    display: flex;
    justify-content: center;
}

.table-numbers {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(50px, 1fr));
    gap: 0.25rem;
}

.table-number {
    padding: 1rem 0.5rem;
    border: 2px solid var(--border-color);
    border-radius: 4px;
    background: var(--darker-bg);
    color: white;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.table-number:hover {
    transform: scale(1.05);
    border-color: var(--accent-color);
    box-shadow: 0 0 15px rgba(38, 222, 129, 0.3);
}

.table-number.active {
    border-color: var(--accent-color);
    box-shadow: 0 0 20px rgba(38, 222, 129, 0.5);
}

.table-number.active::after {
    content: attr(data-chip-count);
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--accent-color);
    color: white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
}

.red-bg {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
}

.black-bg {
    background: linear-gradient(135deg, #2c3e50 0%, #1a1a2e 100%);
}

.green-bg {
    background: linear-gradient(135deg, #27ae60 0%, #229954 100%);
}

.table-outside-bets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 0.5rem;
    margin-top: 1rem;
}

.outside-bet-btn {
    padding: 1.25rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    background: var(--darker-bg);
    color: white;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.outside-bet-btn:hover {
    transform: scale(1.05);
    border-color: var(--accent-color);
    box-shadow: 0 0 15px rgba(38, 222, 129, 0.3);
}

.outside-bet-btn.active {
    border-color: var(--accent-color);
    box-shadow: 0 0 20px rgba(38, 222, 129, 0.5);
}

.outside-bet-btn.active::after {
    content: attr(data-chip-count);
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--accent-color);
    color: white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
}

.current-bets-display {
    margin-top: 1.5rem;
    padding: 1rem;
    background: var(--darker-bg);
    border-radius: 8px;
    min-height: 60px;
    text-align: center;
}

.betting-board {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    margin-bottom: 2rem;
}

.betting-board h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    text-align: center;
    font-size: 1.5rem;
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--dark-bg);
        flex-direction: column;
        padding: 2rem;
        border-bottom: 1px solid var(--border-color);
    }

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

    .mobile-menu-toggle {
        display: block;
    }

    .hero-title {
        font-size: 2.5rem;
    }

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

    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .cookie-content {
        flex-direction: column;
        text-align: center;
    }

    .game-header h1 {
        font-size: 2rem;
    }

    .slots-reels {
        gap: 0.5rem;
    }

    .reel {
        width: 90px;
        height: 90px;
        font-size: 3rem;
    }

    .poker-hand {
        gap: 0.5rem;
    }

    .card {
        width: 70px;
        height: 98px;
    }

    .card-content {
        font-size: 2rem;
    }

    .content-page h1 {
        font-size: 2rem;
    }

    .section-title {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .modal-content {
        padding: 2rem 1.5rem;
    }

    .stat-box {
        padding: 1rem;
    }

    .stat-value {
        font-size: 1.5rem;
    }

    .slots-machine, .poker-table {
        padding: 1.5rem;
    }

    .roulette-wheel-container {
        padding: 1rem;
    }

    .roulette-wheel-outer {
        width: 100%;
        max-width: 300px;
    }

    .roulette-result-display {
        width: 80px;
        height: 80px;
    }

    .winning-number {
        font-size: 2rem;
    }

    .table-numbers {
        grid-template-columns: repeat(auto-fit, minmax(40px, 1fr));
    }

    .table-number {
        padding: 0.75rem 0.25rem;
        font-size: 0.9rem;
    }

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

    .outside-bet-btn {
        padding: 1rem;
        font-size: 0.9rem;
    }

    .betting-board {
        padding: 1rem;
    }
}
