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

:root {
    /* Color Scheme - Dark Blue Theme like example */
    --bg-primary: #0f1419;
    --bg-secondary: #1a1a2e;
    --bg-sidebar: #151a23;
    --bg-card: #1e2532;
    --bg-card-hover: #252d3a;
    --primary-blue: #4A90E2;
    --primary-blue-light: #5BA3F5;
    --primary-blue-dark: #357ABD;
    --accent-gold: #FFD700;
    --accent-gold-dark: #FFA500;
    --text-primary: #ffffff;
    --text-secondary: #b8c5d1;
    --text-muted: #8a9ba8;
    --border-color: #2a3441;
    --gradient-bonus-1: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-bonus-2: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-bonus-3: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Header */
.header {
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    padding: 15px 20px;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

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

.logo-img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.logo-text {
    font-size: 24px;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: 1px;
}

.search-box {
    flex: 1;
    max-width: 400px;
    position: relative;
}

.search-input {
    width: 100%;
    padding: 10px 40px 10px 15px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 14px;
}

.search-input::placeholder {
    color: var(--text-muted);
}

.search-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

.header-buttons {
    display: flex;
    gap: 15px;
}

.btn {
    padding: 10px 25px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-login {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-login:hover {
    border-color: var(--primary-blue);
    color: var(--primary-blue);
}

.btn-register {
    background: var(--primary-blue);
    color: var(--text-primary);
}

.btn-register:hover {
    background: var(--primary-blue-light);
}

.btn-bonus {
    background: var(--primary-blue);
    color: var(--text-primary);
    width: 100%;
    margin-top: 15px;
}

.btn-bonus:hover {
    background: var(--primary-blue-light);
}

/* Main Layout */
.main-layout {
    display: flex;
    max-width: 1400px;
    margin: 0 auto;
    min-height: calc(100vh - 70px);
}

/* Sidebar */
.sidebar {
    width: 280px;
    background: var(--bg-sidebar);
    border-right: 1px solid var(--border-color);
    padding: 20px 0;
    position: sticky;
    top: 70px;
    height: calc(100vh - 70px);
    overflow-y: auto;
}

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

.nav-section {
    margin-bottom: 30px;
    padding: 0 15px;
}

.nav-section-title {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
    padding: 0 10px;
}

.nav-menu {
    list-style: none;
}

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

.nav-item:hover {
    background: var(--bg-card);
    color: var(--text-primary);
}

.nav-item.active {
    background: var(--bg-card);
    color: var(--primary-blue);
}

.nav-icon {
    font-size: 18px;
    width: 24px;
    text-align: center;
}

.nav-arrow {
    margin-left: auto;
    font-size: 12px;
}

.nav-section-bottom {
    margin-top: auto;
    padding-bottom: 20px;
}

/* Main Content */
.main-content {
    flex: 1;
    padding: 40px;
    background: var(--bg-primary);
}

.content-section {
    margin-bottom: 50px;
}

.section-title {
    font-size: 32px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 25px;
    line-height: 1.3;
}

.subsection-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-blue);
    margin: 30px 0 15px;
}

.text-content {
    color: var(--text-secondary);
    font-size: 16px;
    line-height: 1.8;
}

.text-content p {
    margin-bottom: 20px;
}

.numbered-list {
    margin: 20px 0;
    padding-left: 25px;
    color: var(--text-secondary);
}

.numbered-list li {
    margin-bottom: 12px;
    line-height: 1.8;
}

/* Bonuses Grid */
.bonuses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.bonus-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 25px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.bonus-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-bonus-1);
}

.bonus-card:nth-child(2)::before {
    background: var(--gradient-bonus-2);
}

.bonus-card:nth-child(3)::before {
    background: var(--gradient-bonus-3);
}

.bonus-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border-color: var(--primary-blue);
}

.bonus-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: linear-gradient(135deg, #FF6B6B 0%, #FF8E53 100%);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.bonus-content {
    text-align: center;
    padding-top: 10px;
}

.bonus-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 15px;
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bonus-gift {
    font-size: 80px;
    margin: 20px 0;
    filter: drop-shadow(0 0 20px rgba(74, 144, 226, 0.5));
}

.bonus-percent {
    font-size: 48px;
    font-weight: 800;
    color: var(--primary-blue);
    margin: 20px 0;
    text-shadow: 0 0 20px rgba(74, 144, 226, 0.5);
}

.bonus-info {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--bg-card-hover);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.3s ease;
}

.bonus-info:hover {
    background: var(--primary-blue);
    color: white;
    border-color: var(--primary-blue);
}

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

::-webkit-scrollbar-track {
    background: var(--bg-sidebar);
}

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

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-blue);
}

/* Responsive */
@media (max-width: 1024px) {
    .main-layout {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
        top: 0;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
    }
    
    .sidebar-nav {
        flex-direction: row;
        overflow-x: auto;
        padding: 10px 0;
    }
    
    .nav-section {
        min-width: 200px;
        margin-bottom: 0;
        margin-right: 20px;
    }
    
    .main-content {
        padding: 20px;
    }
}

@media (max-width: 768px) {
    .header-container {
        flex-wrap: wrap;
    }
    
    .search-box {
        order: 3;
        width: 100%;
        max-width: 100%;
        margin-top: 10px;
    }
    
    .bonuses-grid {
        grid-template-columns: 1fr;
    }
    
    .section-title {
        font-size: 24px;
    }
    
    .subsection-title {
        font-size: 20px;
    }
}
