/* CSS Variables */
:root {
    /* Brand Colors */
    --main-color: #1b1f2d;
    --top-bar-color: #2d344c;
    --gameblock-color: #3e486a;
    --main-button-color: #02fc2a;
    --main-button-text-color: #1b1f2d;
    --main-text-color: #cacfee;
    --main-text-header-color: #ffffff;
    --accordion-body-background: #49547d;
    
    /* Spacing */
    --app-height: 100vh;
    --nav-height: 64px;
    --nav-sidebar-width: 120px;
    
    /* Typography */
    --font-family: 'Open Sans', Verdana, sans-serif;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    font-size: 16px;
    font-weight: 500;
    line-height: 1.6;
    color: var(--main-text-color);
    background-color: var(--main-color);
    overflow-x: hidden;
    -webkit-text-size-adjust: none;
    -webkit-tap-highlight-color: rgba(0,0,0,0);
}

ul {
    list-style: none;
}

a {
    color: #eff0f2;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--main-button-color);
}

button {
    background: transparent;
    border: none;
    font-family: inherit;
    font-size: inherit;
    cursor: pointer;
    transition: all 0.3s ease;
}

/* Typography */
h1, .h1 {
    font-size: 30px;
    line-height: 36px;
    color: var(--main-text-header-color);
    font-weight: 500;
    margin-bottom: 16px;
}

h2, .h2 {
    font-size: 26px;
    line-height: 30px;
    color: var(--main-text-header-color);
    font-weight: 500;
    margin-bottom: 16px;
}

h3, .h3 {
    font-size: 22px;
    line-height: 28px;
    color: var(--main-text-header-color);
    font-weight: 500;
    margin-bottom: 12px;
}

h4, .h4 {
    font-size: 18px;
    line-height: 24px;
    color: var(--main-text-header-color);
    font-weight: 500;
    margin-bottom: 8px;
}

p {
    margin-bottom: 16px;
    line-height: 1.6;
}

strong {
    color: var(--main-button-color);
    font-weight: 600;
}

/* Layout */
#app {
    max-width: 100%;
    overflow-y: visible;
    position: fixed;
    width: 100vw;
}

.app {
    display: flex;
    flex-flow: row;
    max-width: 100%;
    overflow: hidden;
    width: 100vw;
}

#container {
    display: flex;
    flex: 1;
    flex-direction: column;
    height: var(--app-height);
    overflow-x: hidden;
    overflow-y: auto;
    margin-left: var(--nav-sidebar-width);
}

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

/* Header */
header {
    background: var(--top-bar-color);
    position: sticky;
    top: 0;
    z-index: 104;
    box-shadow: 0 0 1px rgba(0,0,0,0.32), 0 4px 8px rgba(0,0,0,0.24);
    height: var(--nav-height);
    padding: 0 20px;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    height: 40px;
    width: auto;
}

.nav-menu ul {
    display: flex;
    gap: 24px;
    align-items: center;
}

.nav-link {
    font-weight: 500;
    padding: 8px 12px;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

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

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

/* Buttons */
.btn {
    padding: 12px 20px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-primary {
    background: var(--main-button-color);
    color: var(--main-button-text-color);
}

.btn-primary:hover {
    background: #3cff5b;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(2, 252, 42, 0.3);
}

.btn-secondary {
    background: var(--gameblock-color);
    color: var(--main-text-color);
    border-color: #556190;
}

.btn-secondary:hover {
    background: #556190;
    color: #ffffff;
}

.btn-orange {
    background: #f67024;
    color: #ffffff;
}

.btn-orange:hover {
    background: #e45809;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(246, 112, 36, 0.3);
}

.btn-large {
    padding: 16px 32px;
    font-size: 16px;
}

/* Sidebar Navigation */
.nav-sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: var(--nav-sidebar-width);
    height: 100vh;
    background: var(--gameblock-color);
    z-index: 103;
    border-right: 1px solid #49547d;
}

.nav-sidebar-content {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.nav-sidebar-header {
    height: var(--nav-height);
    background: var(--top-bar-color);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 0 0 1px rgba(0,0,0,0.32), 0 4px 8px rgba(0,0,0,0.24);
}

.nav-sidebar-header-toggle {
    padding: 8px;
    border-radius: 4px;
    color: #a2a5af;
    transition: all 0.3s ease;
}

.nav-sidebar-header-toggle:hover {
    color: var(--main-button-color);
    background: rgba(255,255,255,0.1);
}

.nav-sidebar-header-toggle svg {
    width: 24px;
    height: 24px;
}

.nav-sidebar-wrapped-content {
    padding: 16px 8px;
    text-align: center;
    overflow-y: auto;
    flex: 1;
}

.nav-sidebar-wrapped-item {
    margin-bottom: 24px;
    transition: transform 0.3s ease;
}

.nav-sidebar-wrapped-item:hover {
    transform: scale(1.1);
}

.nav-sidebar-wrapped-item img {
    border-radius: 8px;
    transition: box-shadow 0.3s ease;
}

.nav-sidebar-wrapped-item:first-child img {
    width: 40px;
    height: 40px;
    box-shadow: 0 0 20px rgba(2, 252, 42, 0.3);
}

.nav-sidebar-wrapped-item:not(:first-child) img {
    width: 24px;
    height: 24px;
}

.nav-sidebar-support {
    margin: 15px;
    padding: 11px 17px;
    background: #069815;
    color: #ffffff;
    border-radius: 1000px;
    font-weight: 400;
    transition: all 0.3s ease;
}

.nav-sidebar-support:hover {
    background: #07be1a;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(6, 152, 21, 0.3);
}

.m-button-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.m-button-content svg {
    width: 22px;
    height: 22px;
}

/* Main Content */
main {
    flex: 1;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--main-color) 0%, var(--top-bar-color) 100%);
    padding: 80px 20px;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(2, 252, 42, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 48px;
    line-height: 1.2;
    margin-bottom: 24px;
    background: linear-gradient(135deg, #ffffff 0%, var(--main-button-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 18px;
    margin-bottom: 32px;
    color: #9fabe0;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-image img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

/* Section Titles */
.section-title {
    text-align: center;
    margin-bottom: 48px;
    font-size: 36px;
    background: linear-gradient(135deg, #ffffff 0%, var(--main-button-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Bonus Section */
.bonus-section {
    padding: 80px 0;
    background: var(--top-bar-color);
}

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

.bonus-card {
    background: var(--gameblock-color);
    padding: 32px;
    border-radius: 12px;
    text-align: center;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.bonus-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(2, 252, 42, 0.1), transparent);
    transition: left 0.5s ease;
}

.bonus-card:hover::before {
    left: 100%;
}

.bonus-card:hover {
    border-color: var(--main-button-color);
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(2, 252, 42, 0.2);
}

.bonus-icon {
    font-size: 48px;
    margin-bottom: 16px;
    display: block;
}

.bonus-card h3 {
    margin-bottom: 16px;
    color: var(--main-button-color);
}

.bonus-amount {
    font-size: 24px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 8px;
}

/* Games Section */
.games-section {
    padding: 80px 0;
    background: var(--main-color);
}

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

.game-card {
    background: var(--gameblock-color);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.game-card:hover {
    transform: translateY(-8px);
    border-color: var(--main-button-color);
    box-shadow: 0 12px 24px rgba(2, 252, 42, 0.2);
}

.game-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.game-card:hover img {
    transform: scale(1.05);
}

.game-info {
    padding: 16px;
}

.game-info h3 {
    margin-bottom: 8px;
    color: var(--main-button-color);
}

.game-info p {
    color: #9fabe0;
    margin-bottom: 0;
}

/* App Section */
.app-section {
    padding: 80px 0;
    background: var(--top-bar-color);
}

.app-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.app-features {
    margin: 24px 0;
}

.app-features li {
    margin-bottom: 12px;
    font-size: 16px;
    color: var(--main-text-color);
}

.app-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.app-image img {
    width: 100%;
    max-width: 300px;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

/* Content Article */
.content-article {
    padding: 80px 0;
    background: var(--main-color);
}

.content-article h2 {
    font-size: 32px;
    margin-bottom: 32px;
    text-align: center;
    background: linear-gradient(135deg, #ffffff 0%, var(--main-button-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.content-article h3 {
    font-size: 24px;
    margin-top: 32px;
    margin-bottom: 16px;
    color: var(--main-button-color);
}

.content-article p {
    line-height: 1.8;
    margin-bottom: 20px;
    text-align: justify;
}

/* Footer */
footer {
    background: var(--top-bar-color);
    padding: 40px 0 20px;
    border-top: 1px solid #49547d;
}

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

.footer-section h4 {
    color: var(--main-button-color);
    margin-bottom: 16px;
}

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

.footer-section ul li {
    margin-bottom: 8px;
}

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

.footer-section ul li a:hover {
    color: var(--main-button-color);
}

.social-links {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}

.social-links a {
    font-size: 24px;
    transition: transform 0.3s ease;
}

.social-links a:hover {
    transform: scale(1.2);
}

.payment-methods {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 16px;
}

.payment-methods span {
    font-size: 24px;
    padding: 8px;
    background: var(--gameblock-color);
    border-radius: 6px;
    transition: transform 0.3s ease;
}

.payment-methods span:hover {
    transform: scale(1.1);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #49547d;
    color: #9fabe0;
}

.disclaimer {
    font-size: 14px;
    margin-top: 8px;
    color: #7e88b3;
}

/* Responsive Design */
@media screen and (max-width: 1024px) {
    .hero-content,
    .app-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .hero-title {
        font-size: 36px;
    }
    
    .section-title {
        font-size: 28px;
    }
}

@media screen and (max-width: 768px) {
    :root {
        --nav-sidebar-width: 0px;
    }
    
    #container {
        margin-left: 0;
    }
    
    .nav-sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }
    
    .nav-sidebar.opened {
        transform: translateX(0);
    }
    
    header {
        height: 50px;
    }
    
    .nav-menu {
        display: none;
    }
    
    .hero-section {
        padding: 40px 20px;
    }
    
    .hero-title {
        font-size: 28px;
    }
    
    .hero-subtitle {
        font-size: 16px;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .bonus-grid,
    .games-grid {
        grid-template-columns: 1fr;
    }
    
    .app-buttons {
        justify-content: center;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .content-article {
        padding: 40px 0;
    }
    
    .content-article p {
        text-align: left;
    }
}

@media screen and (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    
    .hero-title {
        font-size: 24px;
    }
    
    .section-title {
        font-size: 24px;
    }
    
    .bonus-card,
    .game-info {
        padding: 20px;
    }
    
    .hero-buttons,
    .app-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-large {
        width: 100%;
        max-width: 300px;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

/* Utility Classes */
.hidden {
    display: none;
    opacity: 0;
}

.fade-in {
    animation: fadeInUp 0.8s ease-out;
}

.slide-in {
    animation: slideInLeft 0.8s ease-out;
}

.pulse {
    animation: pulse 2s infinite;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--main-color);
}

::-webkit-scrollbar-thumb {
    background: var(--main-button-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #3cff5b;
}