/* === Reset & Base === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, sans-serif;
    background: #0a0a14;
    color: #e0e0e0;
    line-height: 1.6;
    overflow-x: hidden;
}
a { color: #d4af37; text-decoration: none; transition: color 0.3s; }
a:hover { color: #f5d060; }
ul { list-style: none; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.gold { color: #d4af37; }
.section-title { text-align: center; font-size: 2.2rem; margin-bottom: 0.5rem; color: #fff; }
.section-subtitle { text-align: center; color: #aaa; margin-bottom: 2.5rem; font-size: 1.1rem; }

/* === Simulation Banner === */
.simulation-banner {
    background: linear-gradient(90deg, #d32f2f, #ff8f00, #d32f2f);
    background-size: 200% 100%;
    animation: bannerScroll 4s linear infinite;
    color: #fff;
    text-align: center;
    padding: 8px 16px;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    position: sticky;
    top: 0;
    z-index: 1000;
}
@keyframes bannerScroll { 0%{background-position:0% 50%} 100%{background-position:200% 50%} }

/* === Header === */
.main-header {
    background: rgba(10, 10, 20, 0.95);
    backdrop-filter: blur(10px);
    padding: 12px 0;
    position: sticky;
    top: 36px;
    z-index: 999;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; }
.logo { display: flex; align-items: center; gap: 10px; font-size: 1.5rem; font-weight: 700; color: #fff; }
.logo-icon { font-size: 1.8rem; }
.dice { color: #d4af37; }
.main-nav { display: flex; gap: 24px; }
.main-nav a { color: #ccc; font-weight: 500; transition: color 0.3s; }
.main-nav a:hover { color: #d4af37; }
.header-actions { display: flex; gap: 10px; align-items: center; }
.btn { border: none; cursor: pointer; padding: 8px 20px; border-radius: 6px; font-weight: 600; font-size: 0.9rem; transition: all 0.3s; }
.btn-outline { background: transparent; border: 1px solid #d4af37; color: #d4af37; }
.btn-outline:hover { background: #d4af37; color: #0a0a14; }
.btn-primary { background: #d4af37; color: #0a0a14; }
.btn-primary:hover { background: #f5d060; transform: translateY(-1px); }
.btn-cta { background: linear-gradient(135deg, #d4af37, #f5d060); color: #0a0a14; padding: 14px 36px; font-size: 1.1rem; border-radius: 8px; display: inline-block; }
.btn-cta:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(212, 175, 55, 0.4); }
.btn-play { background: #d4af37; color: #0a0a14; padding: 6px 16px; font-size: 0.8rem; border-radius: 4px; width: 100%; }
.btn-play:hover { background: #f5d060; }

/* Mobile menu toggle */
.mobile-menu-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 5px; }
.mobile-menu-toggle span { width: 24px; height: 2px; background: #d4af37; transition: 0.3s; }

/* === Hero === */
.hero {
    position: relative;
    padding: 120px 0 80px;
    background: linear-gradient(135deg, #0a0a14 0%, #1a0a2e 50%, #0a0a14 100%);
    overflow: hidden;
    text-align: center;
}
.hero-bg-elements { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.card-element, .dice-element { position: absolute; font-size: 5rem; opacity: 0.06; animation: float 8s ease-in-out infinite; }
.card-1 { top: 10%; left: 5%; animation-delay: 0s; }
.card-2 { top: 60%; right: 10%; animation-delay: 2s; }
.card-3 { bottom: 20%; left: 20%; animation-delay: 4s; }
.card-4 { top: 30%; right: 25%; animation-delay: 1s; }
.dice-1 { bottom: 10%; right: 5%; animation-delay: 3s; }
.dice-2 { top: 15%; left: 40%; animation-delay: 5s; }
@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(10deg); }
}
.hero-content { position: relative; z-index: 1; }
.hero h1 { font-size: 3.5rem; margin-bottom: 16px; }
.hero-subtitle { font-size: 1.4rem; color: #ccc; margin-bottom: 8px; }
.hero-offer { font-size: 1.2rem; color: #d4af37; margin-bottom: 32px; }
.hero-stats { display: flex; justify-content: center; gap: 60px; margin-top: 50px; }
.stat { text-align: center; }
.stat-number { display: block; font-size: 2rem; font-weight: 700; color: #d4af37; }
.stat-label { font-size: 0.85rem; color: #999; text-transform: uppercase; letter-spacing: 1px; }

/* === Games Grid === */
.games-section { padding: 80px 0; }
.games-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.game-card {
    background: #14142a;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid rgba(255,255,255,0.05);
}
.game-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(212, 175, 55, 0.15);
    border-color: rgba(212, 175, 55, 0.3);
}
.game-image {
    height: 160px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 10px;
    position: relative;
}
.game-category {
    background: rgba(0,0,0,0.6);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.game-rtp {
    background: rgba(212, 175, 55, 0.9);
    color: #0a0a14;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
}
.game-info { padding: 14px; }
.game-info h3 { font-size: 1rem; margin-bottom: 2px; color: #fff; }
.game-provider { font-size: 0.8rem; color: #888; margin-bottom: 10px; }

/* === Promotions === */
.promotions-section { padding: 80px 0; background: linear-gradient(180deg, #0a0a14, #120a20); }
.promos-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.promo-card {
    background: linear-gradient(135deg, #1a1a35, #14142a);
    border: 1px solid rgba(212, 175, 55, 0.15);
    border-radius: 16px;
    padding: 32px 24px;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s, border-color 0.3s;
}
.promo-card:hover { transform: translateY(-4px); border-color: rgba(212, 175, 55, 0.5); }
.promo-badge {
    position: absolute;
    top: 16px;
    right: -28px;
    background: #d4af37;
    color: #0a0a14;
    padding: 4px 36px;
    font-size: 0.7rem;
    font-weight: 700;
    transform: rotate(45deg);
}
.promo-card h3 { font-size: 1.3rem; color: #fff; margin-bottom: 12px; }
.promo-value { font-size: 1.8rem; font-weight: 700; color: #d4af37; }
.promo-extra { font-size: 1rem; color: #f5d060; margin-bottom: 12px; }
.promo-desc { font-size: 0.85rem; color: #999; margin-bottom: 20px; }

/* === VIP Club === */
.vip-section { padding: 80px 0; }
.vip-tiers { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; margin-bottom: 40px; }
.vip-tier {
    background: #14142a;
    border-radius: 12px;
    padding: 24px 16px;
    text-align: center;
    border: 1px solid rgba(255,255,255,0.05);
    transition: transform 0.3s, border-color 0.3s;
}
.vip-tier:hover { transform: translateY(-4px); }
.tier-icon { font-size: 1.6rem; margin-bottom: 8px; }
.vip-tier h3 { margin-bottom: 12px; font-size: 1rem; }
.vip-tier ul { text-align: left; }
.vip-tier li { font-size: 0.78rem; color: #aaa; padding: 3px 0; }
.tier-bronze { border-color: #cd7f32; }
.tier-bronze .tier-icon, .tier-bronze h3 { color: #cd7f32; }
.tier-silver { border-color: #c0c0c0; }
.tier-silver .tier-icon, .tier-silver h3 { color: #c0c0c0; }
.tier-gold { border-color: #d4af37; }
.tier-gold .tier-icon, .tier-gold h3 { color: #d4af37; }
.tier-platinum { border-color: #b0c4de; }
.tier-platinum .tier-icon, .tier-platinum h3 { color: #b0c4de; }
.tier-diamond { border-color: #b9f2ff; }
.tier-diamond .tier-icon, .tier-diamond h3 { color: #b9f2ff; }
.tier-royal { border-color: #ff6b6b; }
.tier-royal .tier-icon, .tier-royal h3 { color: #ff6b6b; }

.vip-progress-container { margin-top: 20px; }
.vip-progress-bar {
    position: relative;
    background: #1a1a35;
    height: 8px;
    border-radius: 4px;
    overflow: visible;
}
.vip-progress-fill {
    height: 100%;
    width: 0%;
    border-radius: 4px;
    background: linear-gradient(90deg, #cd7f32, #c0c0c0, #d4af37, #b0c4de, #b9f2ff, #ff6b6b);
    transition: width 1.5s ease;
}
.vip-progress-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
    font-size: 0.7rem;
    color: #888;
}

/* === Payments === */
.payments-section { padding: 60px 0; background: #0e0e1a; }
.payment-logos { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; margin-bottom: 20px; }
.payment-logo {
    background: #1a1a35;
    border: 1px solid rgba(255,255,255,0.08);
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    color: #ccc;
    transition: border-color 0.3s;
}
.payment-logo:hover { border-color: #d4af37; color: #d4af37; }
.payment-logo.bitcoin { color: #f7931a; border-color: rgba(247, 147, 26, 0.3); }
.security-note { text-align: center; color: #888; font-size: 0.9rem; }

/* === Responsible Gaming === */
.responsible-section { padding: 80px 0; }
.responsible-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-bottom: 32px; }
.responsible-card {
    background: #14142a;
    border-radius: 12px;
    padding: 28px;
    text-align: center;
    border: 1px solid rgba(255,255,255,0.05);
}
.responsible-icon { font-size: 2rem; margin-bottom: 12px; }
.responsible-card h3 { color: #fff; margin-bottom: 8px; }
.responsible-card p { font-size: 0.85rem; color: #999; }
.responsible-links { display: flex; justify-content: center; align-items: center; gap: 24px; flex-wrap: wrap; }
.responsible-link {
    background: #1a1a35;
    padding: 10px 24px;
    border-radius: 8px;
    font-weight: 600;
    border: 1px solid rgba(255,255,255,0.1);
}
.responsible-link:hover { border-color: #d4af37; }
.age-badge {
    background: #d32f2f;
    color: #fff;
    font-weight: 700;
    font-size: 1.2rem;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* === Compliance === */
.compliance-section { padding: 60px 0; background: #0e0e1a; }
.license-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.license-badge {
    background: #14142a;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    transition: border-color 0.3s;
}
.license-badge:hover { border-color: #d4af37; }
.license-icon { display: block; font-size: 1.8rem; margin-bottom: 8px; color: #d4af37; }
.license-name { display: block; font-weight: 600; color: #fff; font-size: 0.85rem; margin-bottom: 4px; }
.license-number { display: block; font-size: 0.75rem; color: #888; }

/* === Log Viewer === */
.logs-section { padding: 80px 0; }
.log-viewer {
    background: #0c0c1a;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    overflow: hidden;
    max-height: 450px;
}
.log-header {
    background: #1a1a2e;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.log-dot { width: 12px; height: 12px; border-radius: 50%; }
.log-dot.red { background: #ff5f57; }
.log-dot.yellow { background: #febc2e; }
.log-dot.green { background: #28c840; }
.log-title { color: #888; font-size: 0.8rem; margin-left: 8px; font-family: monospace; }
.log-content {
    padding: 16px;
    font-family: 'Menlo', 'Courier New', monospace;
    font-size: 0.78rem;
    line-height: 1.8;
    max-height: 380px;
    overflow-y: auto;
}
.log-entry { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.log-entry .timestamp { color: #666; }
.log-entry .level-info { color: #28c840; }
.log-entry .level-warn { color: #febc2e; }
.log-entry .level-error { color: #ff5f57; }
.log-entry .service { color: #7c8aff; }
.log-entry .message { color: #ccc; }

/* === Book Section === */
.book-section { padding: 80px 0; background: linear-gradient(180deg, #0a0a14, #1a0a2e); }
.book-topics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 32px; }
.topic-card {
    background: #14142a;
    border: 1px solid rgba(212, 175, 55, 0.1);
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    transition: transform 0.3s, border-color 0.3s;
}
.topic-card:hover { transform: translateY(-4px); border-color: rgba(212, 175, 55, 0.4); }
.topic-icon { font-size: 1.6rem; margin-bottom: 8px; display: block; }
.topic-card h3 { font-size: 0.9rem; color: #fff; margin-bottom: 4px; }
.topic-card p { font-size: 0.78rem; color: #999; }
.book-cta { text-align: center; }
.btn-book { font-size: 1.2rem; padding: 16px 40px; }

/* === Footer === */
.main-footer { padding: 60px 0 24px; background: #06060e; border-top: 1px solid rgba(212, 175, 55, 0.1); }
.footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-brand p { color: #888; font-size: 0.85rem; margin-top: 8px; }
.footer-links h4 { color: #d4af37; margin-bottom: 12px; font-size: 0.9rem; }
.footer-links a { display: block; color: #888; font-size: 0.85rem; margin-bottom: 6px; }
.footer-links a:hover { color: #d4af37; }
.social-icons { display: flex; gap: 10px; }
.social-icon {
    width: 36px; height: 36px;
    background: #1a1a35;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: #ccc; font-size: 0.8rem; font-weight: 700;
    transition: background 0.3s;
}
.social-icon:hover { background: #d4af37; color: #0a0a14; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.05); padding-top: 20px; text-align: center; }
.footer-bottom p { color: #666; font-size: 0.8rem; margin-bottom: 4px; }
.footer-disclaimer {
    color: #d32f2f;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 1px;
    padding: 8px;
    margin: 8px 0;
}

/* === Responsive === */
@media (max-width: 1024px) {
    .games-grid { grid-template-columns: repeat(3, 1fr); }
    .vip-tiers { grid-template-columns: repeat(3, 1fr); }
    .license-grid { grid-template-columns: repeat(2, 1fr); }
    .book-topics { grid-template-columns: repeat(2, 1fr); }
    .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
    .main-nav { display: none; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: #0a0a14; padding: 20px; gap: 16px; border-bottom: 1px solid rgba(212,175,55,0.2); }
    .main-nav.active { display: flex; }
    .mobile-menu-toggle { display: flex; }
    .hero h1 { font-size: 2.2rem; }
    .hero-stats { flex-direction: column; gap: 20px; }
    .games-grid { grid-template-columns: repeat(2, 1fr); }
    .promos-grid { grid-template-columns: 1fr; }
    .vip-tiers { grid-template-columns: repeat(2, 1fr); }
    .responsible-grid { grid-template-columns: 1fr; }
    .license-grid { grid-template-columns: 1fr; }
    .book-topics { grid-template-columns: 1fr; }
    .footer-top { grid-template-columns: 1fr; }
    .section-title { font-size: 1.8rem; }
}
@media (max-width: 480px) {
    .games-grid { grid-template-columns: 1fr; }
    .vip-tiers { grid-template-columns: 1fr; }
    .hero h1 { font-size: 1.8rem; }
}

/* === Category Filter Bar === */
.category-filter {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}
.filter-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #ccc;
    padding: 10px 24px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    letter-spacing: 0.5px;
}
.filter-btn:hover {
    background: rgba(212, 175, 55, 0.15);
    border-color: rgba(212, 175, 55, 0.4);
    color: #d4af37;
}
.filter-btn.active {
    background: linear-gradient(135deg, #d4af37, #f5d060);
    color: #0a0a14;
    border-color: #d4af37;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

/* === Game Emoji Icon === */
.game-emoji {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 56px;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.4));
    line-height: 1;
    z-index: 1;
}
.game-image {
    position: relative;
}
.game-image .game-category,
.game-image .game-rtp {
    position: relative;
    z-index: 2;
}

/* === Game Card Hide Animation === */
.game-card.hidden {
    display: none;
}
