:root {
    --primary-black: #000000;
    --primary-gold: #FFD700;
    --primary-red: #DC143C;
    --secondary-gold: #FFC107;
    --text-white: #FFFFFF;
    --text-gray: #CCCCCC;
    --bg-dark: #121212;
    --bg-card: #1E1E1E;
    --border-gold: 2px solid var(--primary-gold);
    --shadow-gold: 0 4px 20px rgba(255, 215, 0, 0.3);
    --transition: all 0.3s ease;
    --gradient-gold: linear-gradient(135deg, var(--primary-gold) 0%, var(--secondary-gold) 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, var(--bg-dark) 0%, #0a0a0a 100%);
    color: var(--text-white);
    line-height: 1.6;
    padding: 0;
    margin: 0;
    background-attachment: fixed;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Header Styles */
header {
    background: linear-gradient(135deg, var(--primary-black) 0%, var(--bg-dark) 100%);
    padding: 30px 0;
    text-align: center;
    border-bottom: var(--border-gold);
    box-shadow: var(--shadow-gold);
    position: relative;
    overflow: hidden;
}

header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,215,0,0.1) 0%, transparent 70%);
    z-index: 0;
}

.header-content {
    position: relative;
    z-index: 1;
}

h1 {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 15px;
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
    letter-spacing: -0.5px;
}

.subtitle {
    font-size: 1.2rem;
    color: var(--text-gray);
    margin-bottom: 20px;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
    flex-wrap: wrap;
}

/* Button Styles */
.btn {
    display: inline-block;
    padding: 15px 35px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    transition: var(--transition);
    text-align: center;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    border: none;
    font-family: inherit;
}

.btn-primary {
    background: var(--gradient-gold);
    color: var(--primary-black);
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.6);
}

.btn-primary:active {
    transform: translateY(1px);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-gold);
    border: 2px solid var(--primary-gold);
    box-shadow: 0 4px 10px rgba(255, 215, 0, 0.2);
}

.btn-secondary:hover {
    background: rgba(255, 215, 0, 0.1);
    transform: translateY(-2px);
}

.btn-cta {
    background: linear-gradient(135deg, var(--primary-red) 0%, #B22222 100%);
    color: var(--text-white);
    box-shadow: 0 4px 15px rgba(220, 20, 60, 0.4);
}

.btn-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(220, 20, 60, 0.6);
}

/* Navigation */
nav {
    background: var(--primary-black);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.nav-container {
    display: flex;
    justify-content: center;
    padding: 15px 0;
    gap: 5px;
    flex-wrap: wrap;
}

.nav-link {
    color: var(--text-gray);
    text-decoration: none;
    padding: 10px 15px;
    border-radius: 5px;
    transition: var(--transition);
    font-size: 0.95rem;
    font-weight: 500;
}

.nav-link:hover, .nav-link.active {
    background: var(--primary-gold);
    color: var(--primary-black);
}

/* Content Sections */
.content-wrapper {
    max-width: 1000px;
    margin: 40px auto;
}

.section {
    margin-bottom: 50px;
    padding: 30px;
    background: var(--bg-card);
    border-radius: 10px;
    border: 1px solid rgba(255, 215, 0, 0.1);
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    transition: var(--transition);
}

.section:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.15);
}

h2 {
    font-size: 2rem;
    color: var(--primary-gold);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 215, 0, 0.3);
}

h3 {
    font-size: 1.5rem;
    color: var(--secondary-gold);
    margin: 25px 0 15px 0;
}

p {
    margin-bottom: 15px;
    line-height: 1.7;
}

.highlight {
    background: rgba(255, 215, 0, 0.1);
    padding: 20px;
    border-left: 4px solid var(--primary-gold);
    margin: 20px 0;
    border-radius: 5px;
}

.warning {
    background: rgba(220, 20, 60, 0.1);
    padding: 20px;
    border-left: 4px solid var(--primary-red);
    margin: 20px 0;
    border-radius: 5px;
}

/* Image Styles */
.featured-image {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    border-radius: 10px;
    margin: 20px 0;
    border: 2px solid var(--primary-gold);
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

.image-caption {
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-gray);
    margin-top: 5px;
    font-style: italic;
}

/* List Styles */
ul, ol {
    margin: 15px 0 15px 30px;
}

li {
    margin-bottom: 8px;
    line-height: 1.7;
}

/* Table Styles */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: var(--bg-card);
    border-radius: 8px;
    overflow: hidden;
}

th {
    background: var(--gradient-gold);
    color: var(--primary-black);
    padding: 12px;
    text-align: left;
    font-weight: 600;
}

td {
    padding: 10px 12px;
    border-bottom: 1px solid rgba(255, 215, 0, 0.1);
}

tr:hover td {
    background: rgba(255, 215, 0, 0.05);
}

.winner {
    color: var(--primary-gold);
    font-weight: bold;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--primary-black) 0%, var(--bg-dark) 100%);
    padding: 50px;
    text-align: center;
    border: var(--border-gold);
    border-radius: 10px;
    margin: 40px 0;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,215,0,0.05) 0%, transparent 70%);
    z-index: 0;
}

.cta-content {
    position: relative;
    z-index: 1;
}

.cta-title {
    font-size: 2.2rem;
    color: var(--primary-gold);
    margin-bottom: 20px;
}

.cta-text {
    font-size: 1.1rem;
    color: var(--text-gray);
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* Bonus Calculator Styles */
.calculator-container {
    background: rgba(20, 20, 20, 0.8);
    padding: 25px;
    border-radius: 12px;
    border: 1px solid rgba(255, 215, 0, 0.3);
    max-width: 600px;
    margin: 25px auto;
}

.input-group {
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-gray);
    font-weight: 500;
}

#deposit-amount {
    width: 100%;
    padding: 14px;
    background: #2a2a2a;
    border: 1px solid var(--primary-gold);
    border-radius: 8px;
    color: white;
    font-size: 1.1rem;
    outline: none;
}

#deposit-amount:focus {
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.3);
}

.calculator-result {
    margin-top: 20px;
    padding: 20px;
    background: rgba(30, 30, 30, 0.9);
    border-radius: 10px;
    border-left: 3px solid var(--primary-gold);
}

.result-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 215, 0, 0.1);
}

.result-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.result-label {
    color: var(--text-gray);
}

.result-value {
    font-weight: 600;
    color: white;
}

.result-value.bonus {
    color: var(--primary-gold);
}

.result-value.total {
    color: #4CAF50;
    font-size: 1.2rem;
}

.calculator-note {
    margin-top: 20px;
    padding: 15px;
    background: rgba(220, 20, 60, 0.1);
    border-radius: 8px;
    border-left: 3px solid var(--primary-red);
    font-size: 0.95rem;
    color: #ddd;
}

.calculator-note strong {
    color: var(--primary-gold);
}

/* Comparison Table */
.comparison-table {
    overflow-x: auto;
}

.comparison-table table {
    min-width: 600px;
}

/* Games Filter */
.games-filter {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.games-filter select {
    padding: 10px 15px;
    background: #2a2a2a;
    border: 1px solid var(--primary-gold);
    border-radius: 8px;
    color: white;
    font-size: 1rem;
    outline: none;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.game-card {
    background: rgba(30, 30, 30, 0.8);
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(255, 215, 0, 0.2);
    transition: transform 0.3s ease;
}

.game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.2);
}

.game-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.game-card h4 {
    padding: 15px 10px 5px;
    color: var(--primary-gold);
    font-size: 1.1rem;
}

.game-card p {
    padding: 0 10px 15px;
    color: #aaa;
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* Providers Grid */
.providers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.provider-card {
    background: rgba(30, 30, 30, 0.8);
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    border: 1px solid rgba(255, 215, 0, 0.2);
}

.provider-card img {
    width: 120px;
    height: 60px;
    object-fit: contain;
    margin-bottom: 15px;
}

.provider-card h3 {
    color: var(--primary-gold);
    margin-bottom: 10px;
}

/* Strategies Grid */
.strategies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.strategy-card {
    background: rgba(30, 30, 30, 0.8);
    border-radius: 10px;
    padding: 20px;
    border-left: 3px solid var(--primary-gold);
}

.strategy-card h3 {
    color: var(--primary-gold);
    margin-bottom: 10px;
}

/* FAQ Accordion Styles */
.faq-accordion {
    width: 100%;
}

.faq-item {
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    background: rgba(30, 30, 30, 0.7);
    border: 1px solid rgba(255, 215, 0, 0.2);
}

.faq-question {
    width: 100%;
    padding: 18px 20px;
    background: var(--bg-card);
    color: var(--text-white);
    font-size: 1.2rem;
    font-weight: 600;
    text-align: left;
    border: none;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s ease;
    position: relative;
}

.faq-question:hover {
    background: rgba(255, 215, 0, 0.1);
}

.faq-toggle {
    font-size: 1.5rem;
    color: var(--primary-gold);
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.faq-question[aria-expanded="true"] .faq-toggle {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    background: rgba(20, 20, 20, 0.8);
    padding: 0 20px;
}

.faq-answer.show {
    max-height: 500px;
    padding: 20px;
}

.faq-answer p {
    color: #ddd;
    line-height: 1.7;
    margin: 0;
}

/* Fortune Wheel Popup */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.popup-overlay.show {
    opacity: 1;
    visibility: visible;
}

.popup-content {
    background: linear-gradient(135deg, #1a1a1a 0%, #0d0d0d 100%);
    padding: 30px;
    border-radius: 15px;
    border: 2px solid var(--primary-gold);
    box-shadow: 0 0 40px rgba(255, 215, 0, 0.4);
    max-width: 500px;
    width: 90%;
    position: relative;
    text-align: center;
}

.popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    color: var(--text-gray);
    font-size: 24px;
    cursor: pointer;
    transition: color 0.3s ease;
}

.popup-close:hover {
    color: var(--primary-gold);
}

.wheel-popup h3 {
    color: var(--primary-gold);
    margin-bottom: 10px;
    font-size: 1.8rem;
}

.wheel-container {
    position: relative;
    width: 280px;
    height: 280px;
    margin: 20px auto;
}

#wheel {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    position: relative;
    overflow: hidden;
    transition: transform 4s cubic-bezier(0.17, 0.67, 0.11, 0.99);
    transform: rotate(0deg);
}

.segment {
    position: absolute;
    width: 50%;
    height: 50%;
    transform-origin: bottom right;
    left: 0;
    top: 0;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 20px;
    box-sizing: border-box;
    font-weight: bold;
    color: white;
    font-size: 12px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
}

.segment span {
    transform: rotate(45deg);
    text-align: center;
    width: 80px;
}

.wheel-pointer {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 15px solid transparent;
    border-right: 15px solid transparent;
    border-top: 30px solid var(--primary-gold);
    z-index: 10;
}

/* Цвета сегментов */
.segment:nth-child(1) { background: #FF5252; transform: rotate(0deg); }
.segment:nth-child(2) { background: #4CAF50; transform: rotate(45deg); }
.segment:nth-child(3) { background: #2196F3; transform: rotate(90deg); }
.segment:nth-child(4) { background: #FFC107; transform: rotate(135deg); }
.segment:nth-child(5) { background: #9C27B0; transform: rotate(180deg); }
.segment:nth-child(6) { background: #FF9800; transform: rotate(225deg); }
.segment:nth-child(7) { background: #E91E63; transform: rotate(270deg); }
.segment:nth-child(8) { background: #00BCD4; transform: rotate(315deg); }

/* Специальный стиль для 500% */
.segment[data-prize="500%"] {
    background: linear-gradient(45deg, #FFD700, #FFA500) !important;
    color: #000 !important;
    font-weight: bold;
}

.wheel-btn {
    margin-top: 20px;
    padding: 12px 25px;
    font-size: 1.1rem;
}

#claim-prize-btn {
    margin-top: 15px;
    padding: 12px 25px;
    font-size: 1.1rem;
}

.wheel-terms {
    color: #aaa;
    font-size: 0.85rem;
    margin-top: 15px;
}

/* Анимация появления */
@keyframes popupSlideIn {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.popup-content {
    animation: popupSlideIn 0.4s ease forwards;
}

/* Footer */
footer {
    background: var(--primary-black);
    padding: 40px 0;
    text-align: center;
    border-top: var(--border-gold);
    margin-top: 40px;
}

.footer-content {
    max-width: 800px;
    margin: 0 auto;
}

.footer-text {
    color: var(--text-gray);
    margin-bottom: 20px;
    line-height: 1.8;
}

.age-restriction {
    background: var(--primary-red);
    color: var(--text-white);
    display: inline-block;
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: 600;
    margin: 10px 0;
}

.copyright {
    color: var(--text-gray);
    font-size: 0.9rem;
    margin-top: 20px;
}

/* Responsive Design */
@media (max-width: 768px) {
    h1 {
        font-size: 2.2rem;
    }
    
    h2 {
        font-size: 1.7rem;
    }
    
    h3 {
        font-size: 1.3rem;
    }
    
    .section {
        padding: 20px;
    }
    
    .cta-section {
        padding: 30px 20px;
    }
    
    .cta-title {
        font-size: 1.8rem;
    }
    
    .nav-container {
        flex-direction: column;
        gap: 10px;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
    }
    
    .games-filter {
        flex-direction: column;
    }
    
    .games-filter select {
        width: 100%;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.8rem;
    }
    
    .subtitle {
        font-size: 1rem;
    }
    
    .hero-buttons, .cta-buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    .btn {
        padding: 12px 25px;
        font-size: 1rem;
    }
}