* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #1a1a2e;
    --secondary: #16213e;
    --accent: #e94560;
    --accent-hover: #d63851;
    --gold: #f5a623;
    --gold-hover: #e09000;
    --text: #ffffff;
    --text-muted: #b0b0c0;
    --bg-dark: #0f0f1a;
    --bg-card: #1e1e35;
    --bg-card-hover: #2a2a45;
    --success: #27ae60;
    --border: rgba(255,255,255,0.08);
    --radius: 12px;
    --shadow: 0 4px 24px rgba(0,0,0,0.3);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-dark);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.site-header {
    background: var(--primary);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: transform 0.3s;
}

.site-header.hide {
    transform: translateY(-100%);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
}

.logo a {
    display: flex;
    align-items: center;
    font-size: 28px;
    font-weight: 800;
    color: var(--gold);
    letter-spacing: -1px;
}

.logo span {
    color: var(--text);
    font-weight: 400;
    font-size: 14px;
    margin-left: 8px;
    opacity: 0.7;
}

.main-nav .nav-list {
    display: flex;
    list-style: none;
    gap: 4px;
}

.main-nav .nav-list li a {
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
    transition: all 0.2s;
}

.main-nav .nav-list li a:hover,
.main-nav .nav-list li a.active {
    color: var(--text);
    background: rgba(255,255,255,0.06);
}

.header-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.btn-login {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border);
}

.btn-login:hover {
    border-color: var(--gold);
    color: var(--gold);
}

.btn-register, .btn-primary {
    background: var(--gold);
    color: #000;
}

.btn-register:hover, .btn-primary:hover {
    background: var(--gold-hover);
}

.btn-accent {
    background: var(--accent);
    color: var(--text);
}

.btn-accent:hover {
    background: var(--accent-hover);
}

.btn-outline {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--text-muted);
}

.btn-outline:hover {
    border-color: var(--gold);
    color: var(--gold);
}

.btn-lg {
    padding: 14px 32px;
    font-size: 16px;
    border-radius: 10px;
}

.btn-xl {
    padding: 18px 40px;
    font-size: 18px;
    border-radius: 12px;
}

/* Hero Section */
.hero-section {
    padding: 80px 0 60px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(245,166,35,0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-content {
    max-width: 600px;
}

.hero-content h1 {
    font-size: 42px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 16px;
}

.hero-content .hero-subtitle {
    font-size: 18px;
    color: var(--text-muted);
    margin-bottom: 32px;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 12px;
}

.section-title .highlight {
    color: var(--gold);
}

.section-subtitle {
    font-size: 16px;
    color: var(--text-muted);
}

/* Category Cards */
.categories-section {
    padding: 60px 0;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 16px;
}

.category-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 12px;
    text-align: center;
    transition: all 0.3s;
    overflow: hidden;
}

.category-card:hover {
    background: var(--bg-card-hover);
    transform: translateY(-4px);
    box-shadow: var(--shadow);
    border-color: var(--gold);
}

.category-card .cat-icon {
    font-size: 36px;
    margin-bottom: 12px;
    display: block;
}

.category-card .cat-img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 12px;
}

.category-card .cat-name {
    font-size: 14px;
    font-weight: 600;
}

/* Content Cards / Articles */
.articles-section {
    padding: 60px 0;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 24px;
}

.article-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all 0.3s;
}

.article-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
    border-color: rgba(245,166,35,0.3);
}

.article-card .card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: var(--secondary);
}

.article-card .card-body {
    padding: 20px;
}

.article-card .card-category {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    color: var(--gold);
    background: rgba(245,166,35,0.1);
    padding: 4px 10px;
    border-radius: 4px;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.article-card .card-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.4;
}

.article-card .card-excerpt {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 16px;
}

.article-card .card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: var(--text-muted);
}

/* Promotions Grid */
.promotions-section {
    padding: 60px 0;
    background: var(--secondary);
}

.promotions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.promotion-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    text-align: center;
    transition: all 0.3s;
    position: relative;
}

.promotion-card:hover {
    border-color: var(--gold);
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.promotion-card .promo-icon {
    font-size: 48px;
    margin-bottom: 16px;
    display: block;
}

.promotion-card .promo-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--accent);
    color: var(--text);
    font-size: 11px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 4px;
    text-transform: uppercase;
}

.promotion-card h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

.promotion-card p {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 20px;
    line-height: 1.5;
}

/* Features */
.features-section {
    padding: 60px 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    text-align: center;
    transition: all 0.3s;
}

.feature-card:hover {
    border-color: var(--gold);
}

.feature-card .feature-icon {
    font-size: 40px;
    margin-bottom: 16px;
}

.feature-card h3 {
    font-size: 16px;
    margin-bottom: 8px;
}

.feature-card p {
    font-size: 13px;
    color: var(--text-muted);
}

/* VIP Section */
.vip-section {
    padding: 60px 0;
    background: linear-gradient(180deg, var(--primary) 0%, var(--bg-dark) 100%);
}

.vip-levels {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
    margin-top: 32px;
}

.vip-level-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    text-align: center;
}

.vip-level-card .level-header {
    padding: 20px;
}

.vip-level-card .level-header.bronze { background: linear-gradient(135deg, #cd7f32 0%, #8b4513 100%); }
.vip-level-card .level-header.silver { background: linear-gradient(135deg, #c0c0c0 0%, #808080 100%); }
.vip-level-card .level-header.gold { background: linear-gradient(135deg, #ffd700 0%, #daa520 100%); }
.vip-level-card .level-header.diamond { background: linear-gradient(135deg, #b9f2ff 0%, #4169e1 100%); }

.vip-level-card .level-icon {
    font-size: 32px;
    margin-bottom: 8px;
}

.vip-level-card .level-name {
    font-size: 16px;
    font-weight: 700;
}

.vip-level-card .level-benefits {
    padding: 16px;
}

.vip-level-card .level-benefits p {
    font-size: 13px;
    color: var(--text-muted);
    padding: 6px 0;
    border-bottom: 1px solid var(--border);
}

.vip-level-card .level-benefits p:last-child {
    border-bottom: none;
}

/* Article Content Page */
.article-page {
    padding: 40px 0 80px;
}

.article-header {
    margin-bottom: 32px;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.breadcrumb a {
    color: var(--gold);
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb .separator {
    color: var(--text-muted);
}

.article-header h1 {
    font-size: 36px;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 16px;
}

.article-meta {
    display: flex;
    gap: 20px;
    font-size: 13px;
    color: var(--text-muted);
}

.article-content {
    max-width: 800px;
}

.article-content h2 {
    font-size: 24px;
    font-weight: 700;
    margin: 36px 0 16px;
    color: var(--text);
}

.article-content h3 {
    font-size: 20px;
    font-weight: 600;
    margin: 28px 0 12px;
}

.article-content p {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.article-content ul, .article-content ol {
    margin: 16px 0;
    padding-left: 24px;
}

.article-content li {
    font-size: 15px;
    color: var(--text-muted);
    margin-bottom: 8px;
    line-height: 1.6;
}

.article-content strong {
    color: var(--text);
}

.article-content .info-box {
    background: var(--bg-card);
    border-left: 4px solid var(--gold);
    padding: 20px;
    border-radius: 0 var(--radius) var(--radius) 0;
    margin: 24px 0;
}

.article-content .info-box p {
    margin-bottom: 0;
}

/* Sidebar */
.content-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 40px;
}

.sidebar {
    position: sticky;
    top: 80px;
    height: fit-content;
}

.sidebar-widget {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 20px;
}

.sidebar-widget h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}

.sidebar-widget .widget-link {
    display: block;
    padding: 10px 0;
    font-size: 14px;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border);
    transition: color 0.2s;
}

.sidebar-widget .widget-link:last-child {
    border-bottom: none;
}

.sidebar-widget .widget-link:hover {
    color: var(--gold);
}

.sidebar-cta {
    background: linear-gradient(135deg, var(--accent) 0%, #c0392b 100%);
    text-align: center;
}

.sidebar-cta h3 {
    border-bottom-color: rgba(255,255,255,0.2);
}

.sidebar-cta p {
    font-size: 14px;
    margin-bottom: 16px;
    color: rgba(255,255,255,0.8);
}

/* CTA Section */
.cta-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--accent) 0%, #9b59b6 100%);
    text-align: center;
}

.cta-section h2 {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 12px;
}

.cta-section p {
    font-size: 18px;
    opacity: 0.9;
    margin-bottom: 32px;
}

/* Footer */
.site-footer {
    background: var(--primary);
    border-top: 1px solid var(--border);
    padding: 48px 0 24px;
}

.footer-top {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    font-size: 24px;
    font-weight: 800;
    color: var(--gold);
    margin-bottom: 12px;
}

.footer-desc {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
}

.footer-nav {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.footer-nav-title {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-nav-list {
    list-style: none;
}

.footer-nav-list li {
    margin-bottom: 8px;
}

.footer-nav-list li a {
    font-size: 14px;
    color: var(--text-muted);
    transition: color 0.2s;
}

.footer-nav-list li a:hover {
    color: var(--gold);
}

.footer-social {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 18px;
    transition: all 0.2s;
}

.footer-social a:hover {
    background: var(--gold);
    color: #000;
    border-color: var(--gold);
}

.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 24px;
    text-align: center;
}

.footer-bottom p {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.footer-legal {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 12px;
}

.footer-legal a {
    font-size: 12px;
    color: var(--text-muted);
}

.footer-legal a:hover {
    color: var(--gold);
}

/* Mobile Menu */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    background: none;
    border: none;
    cursor: pointer;
}

.menu-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: all 0.3s;
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--primary);
    z-index: 1001;
    transition: right 0.3s;
    padding: 80px 24px 24px;
    pointer-events: none;
}

.mobile-menu.active {
    right: 0;
    pointer-events: auto;
}

.mobile-nav-list {
    list-style: none;
}

.mobile-nav-list li a {
    display: block;
    padding: 12px 0;
    font-size: 16px;
    border-bottom: 1px solid var(--border);
}

.menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.menu-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

/* Responsive */
@media (max-width: 1024px) {
    .content-layout {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: static;
    }
}

@media (max-width: 768px) {
    .main-nav {
        display: none;
    }

    .menu-toggle {
        display: flex;
    }

    .mobile-menu {
        display: block;
    }

    .menu-overlay {
        display: block;
    }

    .hero-content h1 {
        font-size: 28px;
    }

    .section-title {
        font-size: 24px;
    }

    .articles-grid {
        grid-template-columns: 1fr;
    }

    .footer-top {
        grid-template-columns: 1fr;
    }

    .footer-nav {
        grid-template-columns: repeat(2, 1fr);
    }

    .categories-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .vip-levels {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .vip-levels {
        grid-template-columns: 1fr;
    }
}
