:root {
    --primary-color: #2c5aa0;
    --secondary-color: #e67e22;
    --success-color: #27ae60;
    --danger-color: #e74c3c;
    --warning-color: #f39c12;
    --dark: #2c3e50;
    --light: #ecf0f1;
    --gray: #95a5a6;
    --red-bet: #c0392b;
    --black-bet: #000000;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f5f5f5;
}

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

header {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo a {
    color: white;
    text-decoration: none;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.age-badge {
    background: #e74c3c;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: bold;
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.main-nav a {
    color: white;
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 4px;
    transition: background 0.3s;
}

.main-nav a:hover {
    background: rgba(255,255,255,0.1);
}

.jackpot-ticker {
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
    color: white;
    text-align: center;
    padding: 10px;
    font-weight: bold;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.jackpot-ticker #jackpot-amount {
    font-size: 1.5rem;
    margin: 0 10px;
}

.coin-progress-bar {
    background: white;
    padding: 10px 0;
    border-bottom: 1px solid #ddd;
}

.coin-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 1.1rem;
}

.coin-amount {
    font-weight: bold;
    color: var(--secondary-color);
    font-size: 1.3rem;
}

.main-content {
    min-height: calc(100vh - 400px);
    padding: 20px 0;
}

footer {
    background: var(--dark);
    color: white;
    padding: 40px 0 20px;
    margin-top: 60px;
}

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

.footer-section h4 {
    margin-bottom: 15px;
    color: var(--secondary-color);
}

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

.footer-section a {
    color: #ecf0f1;
    text-decoration: none;
    line-height: 2;
}

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

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.no-real-money {
    background: #fff3cd;
    padding: 15px;
    border-radius: 5px;
    border-left: 4px solid var(--warning-color);
}

.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 80px 0;
    text-align: center;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 30px;
}

.hero-badges {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.badge {
    padding: 10px 20px;
    border-radius: 20px;
    font-weight: bold;
}

.badge-primary {
    background: var(--danger-color);
}

.badge-success {
    background: var(--success-color);
}

.badge-info {
    background: var(--primary-color);
}

.hero-disclaimer {
    background: rgba(0,0,0,0.3);
    padding: 20px;
    border-radius: 10px;
    margin: 30px auto;
    max-width: 600px;
}

.hero-cta {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 30px;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: transform 0.2s, box-shadow 0.2s;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

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

.btn-secondary {
    background: var(--gray);
    color: white;
}

.btn-large {
    padding: 15px 40px;
    font-size: 1.2rem;
}

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

.features-section, .games-preview {
    padding: 60px 0;
}

.features-section h2, .games-preview h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 40px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature-card {
    background: white;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

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

.game-preview-card {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    text-align: center;
}

.game-preview-icon {
    font-size: 4rem;
    margin-bottom: 15px;
}

.btn-play {
    margin-top: 20px;
}

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

.modal-content {
    background: white;
    padding: 40px;
    border-radius: 10px;
    max-width: 500px;
    position: relative;
    animation: slideDown 0.3s;
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-close {
    position: absolute;
    right: 15px;
    top: 15px;
    font-size: 2rem;
    cursor: pointer;
    color: var(--gray);
}

.modal-close:hover {
    color: var(--danger-color);
}

.modal-benefits ul {
    list-style: none;
    margin: 20px 0;
}

.modal-benefits li {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.modal-actions {
    display: flex;
    gap: 15px;
    margin: 20px 0;
}

.modal-privacy {
    font-size: 0.9rem;
    color: var(--gray);
    text-align: center;
}

.age-verification-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.age-verification-card {
    background: white;
    padding: 40px;
    border-radius: 10px;
    max-width: 600px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.age-logo {
    text-align: center;
    margin-bottom: 30px;
}

.age-badge-large {
    display: inline-block;
    background: var(--danger-color);
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 1.5rem;
    font-weight: bold;
    margin-top: 10px;
}

.age-form h3 {
    margin: 20px 0;
}

.age-buttons {
    display: flex;
    gap: 20px;
    margin-top: 20px;
}

.btn-yes {
    background: var(--success-color);
    color: white;
    flex: 1;
}

.btn-no {
    background: var(--danger-color);
    color: white;
    flex: 1;
}

.auth-container {
    max-width: 500px;
    margin: 60px auto;
}

.auth-card {
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.auth-subtitle {
    color: var(--gray);
    margin-bottom: 30px;
}

.alert {
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border-left: 4px solid var(--danger-color);
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border-left: 4px solid var(--success-color);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

.form-group small {
    color: var(--gray);
    font-size: 0.9rem;
}

.form-disclaimer {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 5px;
    margin: 20px 0;
}

.auth-footer {
    text-align: center;
    margin-top: 20px;
}

.games-hub {
    padding: 40px 0;
}

.page-header {
    text-align: center;
    margin-bottom: 40px;
}

.page-subtitle {
    color: var(--gray);
    font-size: 1.2rem;
}

.no-real-money-badge {
    display: inline-block;
    background: var(--danger-color);
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: bold;
    margin-top: 15px;
}

.games-grid-large {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.game-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    overflow: hidden;
}

.game-card-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 30px;
    text-align: center;
}

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

.game-card-body {
    padding: 30px;
}

.game-features {
    list-style: none;
    margin: 20px 0;
}

.game-features li {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.game-disclaimer {
    background: #fff3cd;
    padding: 10px;
    border-radius: 5px;
    text-align: center;
    margin-top: 15px;
}

.game-card-footer {
    padding: 20px 30px;
}

.game-container {
    padding: 40px 0;
}

.game-area {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    margin: 30px 0;
}

.slot-machine, .roulette-game, .blackjack-game {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.slot-reels {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin: 30px 0;
}

.reel {
    background: #f8f9fa;
    border: 3px solid var(--dark);
    border-radius: 10px;
    padding: 30px;
    min-width: 100px;
    text-align: center;
}

.symbol {
    font-size: 4rem;
}

.slot-controls, .game-controls {
    text-align: center;
    margin-top: 30px;
}

.bet-control {
    margin-bottom: 20px;
}

.bet-control input {
    width: 100px;
    padding: 10px;
    font-size: 1.2rem;
    text-align: center;
    margin: 0 10px;
}

.btn-small {
    padding: 8px 16px;
    background: var(--gray);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.result-message {
    margin-top: 20px;
    padding: 15px;
    border-radius: 5px;
    text-align: center;
    font-weight: bold;
}

.result-message.success {
    background: #d4edda;
    color: #155724;
}

.result-message.error {
    background: #f8d7da;
    color: #721c24;
}

.result-message.neutral {
    background: #d1ecf1;
    color: #0c5460;
}

.game-info {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.payout-table {
    width: 100%;
    margin: 20px 0;
}

.payout-table td {
    padding: 8px;
    border-bottom: 1px solid #eee;
}

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

.roulette-wheel {
    text-align: center;
    margin-bottom: 30px;
}

.winning-number {
    font-size: 4rem;
    font-weight: bold;
    color: var(--primary-color);
    margin: 20px 0;
}

.betting-board {
    margin-top: 30px;
}

.number-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(50px, 1fr));
    gap: 5px;
    margin: 20px 0;
}

.number-btn {
    padding: 15px;
    border: 2px solid #ddd;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    color: white;
}

.number-btn.green {
    background: #27ae60;
}

.number-btn.red {
    background: var(--red-bet);
}

.number-btn.black {
    background: var(--black-bet);
}

.outside-bets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
    margin: 20px 0;
}

.btn-bet {
    padding: 15px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
}

.btn-bet.red-bet {
    background: var(--red-bet);
}

.btn-bet.black-bet {
    background: var(--black-bet);
}

.blackjack-table {
    margin: 30px 0;
}

.dealer-section, .player-section {
    margin: 20px 0;
}

.card-area {
    display: flex;
    gap: 10px;
    min-height: 120px;
    padding: 20px;
    background: #2ecc71;
    border-radius: 10px;
    flex-wrap: wrap;
}

.card {
    width: 80px;
    height: 110px;
    background: white;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.card-back {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-size: 2rem;
}

.card-red {
    color: var(--red-bet);
}

.card-black {
    color: var(--black-bet);
}

.playing-controls {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.policy-container {
    padding: 40px 0;
}

.policy-content {
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    line-height: 1.8;
}

.policy-content h2 {
    margin-top: 30px;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.policy-content h3 {
    margin-top: 20px;
    margin-bottom: 10px;
    color: var(--dark);
}

.policy-updated {
    color: var(--gray);
    font-style: italic;
    margin-bottom: 30px;
}

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--dark);
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.2);
    z-index: 999;
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 15px;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 10px;
        width: 100%;
    }

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

    .game-area {
        grid-template-columns: 1fr;
    }

    .age-buttons {
        flex-direction: column;
    }

    .modal-content {
        margin: 20px;
        padding: 20px;
    }
}
