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

:root {
    --primary-bg: #1a1a2e;
    --secondary-bg: #16213e;
    --card-bg: #0f1419;
    --accent-orange: #ff6b35;
    --accent-green: #00d9a3;
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --sidebar-width: 240px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #1a1a2e 100%);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
}

/* Header Styles */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: rgba(26, 26, 46, 0.95);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 24px;
    cursor: pointer;
    padding: 5px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 800;
    font-size: 20px;
}

.logo-icon {
    font-size: 28px;
}

.header-center {
    display: flex;
    gap: 20px;
}

.header-link {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.header-link:hover {
    background: rgba(255, 255, 255, 0.1);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.search-btn {
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 20px;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.search-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.btn-login {
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-primary);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    animation: pulse-subtle 2s ease-in-out infinite;
}

.btn-login:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.2);
}

.btn-register {
    padding: 10px 24px;
    background: linear-gradient(135deg, var(--accent-orange), #ff8c42);
    border: none;
    color: #ffffff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 700;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.4);
    animation: pulse-glow 2s ease-in-out infinite;
    position: relative;
    overflow: hidden;
}

.btn-register::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.btn-register:hover::before {
    left: 100%;
}

.btn-register:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.6);
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 4px 15px rgba(255, 107, 53, 0.4);
    }
    50% {
        box-shadow: 0 4px 25px rgba(255, 107, 53, 0.7);
    }
}

@keyframes pulse-subtle {
    0%, 100% {
        box-shadow: 0 2px 8px rgba(255, 255, 255, 0.1);
    }
    50% {
        box-shadow: 0 2px 12px rgba(255, 255, 255, 0.2);
    }
}

/* Main Container */
.main-container {
    display: flex;
    margin-top: 60px;
}

/* Sidebar Styles */
.sidebar {
    position: fixed;
    left: 0;
    top: 60px;
    width: var(--sidebar-width);
    height: calc(100vh - 60px);
    background: rgba(22, 33, 62, 0.95);
    backdrop-filter: blur(10px);
    padding: 20px 0;
    overflow-y: auto;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease;
    z-index: 999;
    box-shadow: 4px 0 16px rgba(0, 0, 0, 0.2);
}

.sidebar::-webkit-scrollbar {
    width: 6px;
}

.sidebar::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

.sidebar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 0 12px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: var(--text-primary);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(4px);
}

.nav-icon {
    font-size: 20px;
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.support-btn {
    margin: 20px 12px;
    padding: 14px 20px;
    background: linear-gradient(135deg, var(--accent-green), #00b894);
    border: none;
    color: var(--text-primary);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 217, 163, 0.3);
}

.support-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 217, 163, 0.5);
}

.language-selector {
    padding: 0 12px;
    margin: 20px 0;
}

.lang-btn {
    width: 100%;
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.lang-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 12px;
    padding: 20px 12px;
}

.social-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    text-decoration: none;
    font-size: 20px;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.sidebar-footer {
    padding: 20px 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.license-info {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--text-secondary);
}

.license-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

/* Content Styles */
.content {
    margin-left: var(--sidebar-width);
    flex: 1;
    padding: 30px;
    min-height: calc(100vh - 60px);
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.1) 0%, rgba(22, 33, 62, 0.1) 100%);
    border-radius: 16px 0 0 0;
}

/* Typography for content blocks */
.content {
    color: var(--text-primary);
}

.content h1,
.content h2,
.content h3,
.content h4,
.content h5,
.content h6 {
    line-height: 1.25;
    margin: 20px 0 12px;
    font-weight: 800;
}

.content h1 { font-size: 32px; }
.content h2 { font-size: 26px; }
.content h3 { font-size: 20px; }
.content h4 { font-size: 18px; font-weight: 700; }
.content h5 { font-size: 16px; font-weight: 700; }
.content h6 { font-size: 14px; font-weight: 700; color: var(--text-secondary); }

.content p {
    margin: 12px 0;
    line-height: 1.75;
    color: var(--text-secondary);
}

.content strong { color: var(--text-primary); font-weight: 700; }
.content em { font-style: italic; }

.content a { color: #ffd700; text-decoration: none; font-weight: 600; }
.content a:hover { color: #ffed4e; text-decoration: underline; }

.content ul,
.content ol {
    margin: 12px 0 12px 20px;
    padding-left: 16px;
}

.content li {
    margin: 6px 0;
    line-height: 1.6;
}

.content blockquote {
    margin: 16px 0;
    padding: 12px 16px;
    border-left: 3px solid var(--accent-orange);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    border-radius: 6px;
}

/* Tables */
.content table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    overflow: hidden;
}

.content thead th {
    background: rgba(255, 255, 255, 0.06);
}

.content th,
.content td {
    text-align: left;
    padding: 10px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    vertical-align: top;
}

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

/* Images inside content */
.content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

/* Code blocks */
.content code {
    padding: 2px 6px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 4px;
}

.content pre {
    margin: 12px 0;
    padding: 12px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    overflow: auto;
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 320px;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 40px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.hero-slides {
    position: relative;
    height: 100%;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background-size: cover;
    background-position: center;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.hero-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.2));
    z-index: 1;
}

.hero-slide.active {
    display: flex;
}

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

.hero-title {
    font-size: 48px;
    font-weight: 900;
    margin-bottom: 24px;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
    line-height: 1.2;
}

.btn-hero {
    padding: 16px 48px;
    background: linear-gradient(135deg, var(--accent-orange), #ff8c42);
    border: none;
    color: #ffffff;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 800;
    font-size: 20px;
    display: inline-block;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.5);
    animation: pulse-hero 2s ease-in-out infinite;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-hero:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 30px rgba(255, 107, 53, 0.7);
}

@keyframes pulse-hero {
    0%, 100% {
        box-shadow: 0 6px 20px rgba(255, 107, 53, 0.5);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 8px 30px rgba(255, 107, 53, 0.8);
        transform: scale(1.02);
    }
}

.hero-nav {
    position: absolute;
    bottom: 20px;
    right: 20px;
    display: flex;
    gap: 10px;
    z-index: 10;
}

.hero-nav-btn {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: none;
    border-radius: 50%;
    color: var(--text-primary);
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.hero-nav-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

/* Game Sections */
.game-section {
    margin-bottom: 50px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.section-title {
    font-size: 28px;
    font-weight: 800;
    color: var(--text-primary);
}

.view-all {
    color: var(--accent-orange);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.view-all:hover {
    color: #ff8c42;
    transform: translateX(4px);
}

.section-nav {
    display: flex;
    gap: 8px;
}

.nav-arrow {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.nav-arrow:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

/* Game Grid */
.game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 16px;
    padding: 4px;
}

.game-card {
    position: relative;
    background: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    color: var(--text-primary);
}

.game-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 107, 53, 0.3);
}

.game-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
    position: relative;
}

.game-emoji {
    font-size: 64px;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.game-info {
    padding: 12px;
}

.game-name {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
}

.game-win {
    font-size: 12px;
    color: var(--accent-green);
    font-weight: 700;
}

.game-favorite {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 32px;
    height: 32px;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    border: none;
    border-radius: 50%;
    color: var(--text-primary);
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.game-favorite:hover {
    background: rgba(255, 107, 53, 0.8);
    transform: scale(1.1);
}

/* Live Games */
.live-games .game-card {
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.1), rgba(255, 107, 53, 0.05));
}

.live-card .game-image {
    position: relative;
}

.live-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    padding: 4px 12px;
    background: rgba(255, 0, 0, 0.9);
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
    animation: pulse-live 2s ease-in-out infinite;
    z-index: 5;
}

@keyframes pulse-live {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

/* Providers Section */
.providers-section {
    margin-bottom: 50px;
}

.providers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}

.provider-card {
    padding: 30px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    text-align: center;
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 700;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100px;
}

.provider-card:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.provider-logo {
    max-width: 100%;
    max-height: 60px;
    object-fit: contain;
}

/* Footer */
.footer {
    background: rgba(22, 33, 62, 0.95);
    border-radius: 16px;
    padding: 40px;
    margin-top: 60px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.footer-payment {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 30px;
}

.payment-methods {
    display: flex;
    gap: 16px;
    align-items: center;
}

.payment-icon {
    height: 30px;
    object-fit: contain;
}

.responsible-gaming {
    display: flex;
    gap: 12px;
    align-items: center;
}

.age-icon,
.ssl-icon {
    height: 30px;
    object-fit: contain;
}

.footer-logo {
    text-align: center;
    margin-bottom: 40px;
}

.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 800;
    font-size: 24px;
}

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

.footer-column h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 16px;
}

.footer-column a {
    display: block;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    margin-bottom: 12px;
    transition: all 0.3s ease;
}

.footer-column a:hover {
    color: var(--accent-orange);
    transform: translateX(4px);
}

.footer-email {
    color: var(--accent-orange) !important;
    font-weight: 600;
}

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

.footer-license {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Mobile Responsive */
@media (max-width: 1024px) {
    .game-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    
    .header-center {
        display: none;
    }
    
    .sidebar {
        transform: translateX(-100%);
    }
    
    .sidebar.active {
        transform: translateX(0);
    }
    
    .content {
        margin-left: 0;
        padding: 20px;
    }
    
    .hero-title {
        font-size: 32px;
    }
    
    .btn-hero {
        padding: 12px 32px;
        font-size: 16px;
    }
    
    .game-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 12px;
    }
    
    .game-image {
        height: 140px;
    }
    
    .game-emoji {
        font-size: 48px;
    }
    
    .section-title {
        font-size: 22px;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
    }

    .payment-methods {
        flex-wrap: wrap;
    }
}

@media (max-width: 480px) {
    .header-right {
        gap: 8px;
    }
    
    .btn-login,
    .btn-register {
        padding: 8px 16px;
        font-size: 14px;
    }
    
    .logo-text {
        display: none;
    }
    
    .game-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .hero-section {
        height: 200px;
    }
    
    .hero-title {
        font-size: 24px;
    }

    .payment-icon {
        height: 24px;
    }

    .age-icon,
    .ssl-icon {
        height: 24px;
    }
}