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

:root {
    --bg-primary: #0a0a0f;
    --bg-secondary: #111118;
    --bg-card: rgba(20, 20, 30, 0.6);
    --bg-card-hover: rgba(30, 30, 45, 0.8);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-border-hover: rgba(255, 255, 255, 0.15);
    --text-primary: #f0f0f5;
    --text-secondary: #a0a0b8;
    --text-muted: #6b6b80;
    --accent: #7c3aed;
    --accent-hover: #6d28d9;
    --accent-glow: rgba(124, 58, 237, 0.3);
    --blue: #2563eb;
    --green: #16a34a;
    --orange: #ea580c;
    --red: #dc2626;
    --yellow: #eab308;
    --radius: 16px;
    --radius-sm: 10px;
    --radius-lg: 24px;
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.5);
    --transition: 0.2s ease;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --container-max: 1200px;
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--font);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: #a78bfa; }
img { max-width: 100%; display: block; }
input, button, textarea { font-family: inherit; }

.container { max-width: var(--container-max); margin: 0 auto; padding: 0 20px; }

.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    transition: all var(--transition);
}
.glass-card:hover { border-color: var(--glass-border-hover); }

.text-gradient {
    background: linear-gradient(135deg, #7c3aed, #2563eb, #06b6d4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 10px 20px; border-radius: var(--radius-sm);
    font-weight: 600; font-size: 14px; cursor: pointer;
    border: none; transition: all var(--transition); text-decoration: none;
    line-height: 1.4; white-space: nowrap;
}
.btn-sm { padding: 6px 14px; font-size: 13px; }
.btn-lg { padding: 14px 28px; font-size: 16px; }
.btn-full { width: 100%; justify-content: center; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); color: #fff; box-shadow: 0 0 20px var(--accent-glow); }
.btn-ghost { background: transparent; color: var(--text-secondary); border: 1px solid var(--glass-border); }
.btn-ghost:hover { color: var(--text-primary); border-color: var(--glass-border-hover); background: var(--bg-card); }
.btn-glass { background: var(--bg-card); color: var(--text-primary); border: 1px solid var(--glass-border); backdrop-filter: blur(10px); }
.btn-glass:hover { background: var(--bg-card-hover); border-color: var(--glass-border-hover); color: #fff; }

/* ===== INPUTS ===== */
.input {
    width: 100%; padding: 10px 16px; border-radius: var(--radius-sm);
    background: rgba(255,255,255,0.05); border: 1px solid var(--glass-border);
    color: var(--text-primary); font-size: 14px; transition: all var(--transition);
    outline: none;
}
.input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow); }
.input::placeholder { color: var(--text-muted); }

/* ===== BADGES ===== */
.badge {
    display: inline-block; padding: 2px 10px; border-radius: 20px;
    font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px;
}
.badge-default { background: rgba(158,158,158,0.2); color: #9e9e9e; }
.badge-vip { background: rgba(76,175,80,0.2); color: #4caf50; }
.badge-premium { background: rgba(255,152,0,0.2); color: #ff9800; }
.badge-helper { background: rgba(33,150,243,0.2); color: #2196f3; }
.badge-admin { background: rgba(244,67,54,0.2); color: #f44336; }

/* ===== NAVBAR ===== */
.navbar {
    position: sticky; top: 0; z-index: 1000;
    background: rgba(10, 10, 15, 0.85);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
}
.nav-inner {
    max-width: var(--container-max); margin: 0 auto; padding: 0 20px;
    display: flex; align-items: center; height: 64px; gap: 32px;
}
.nav-logo {
    display: flex; align-items: center; gap: 10px;
    font-weight: 800; font-size: 18px; color: var(--text-primary); text-decoration: none;
}
.nav-logo-icon { width: 32px; height: 32px; }
.nav-logo-img { width: 32px; height: 32px; object-fit: contain; border-radius: 8px; }
.nav-links { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav-link {
    display: flex; align-items: center; gap: 4px;
    padding: 8px 16px; border-radius: var(--radius-sm);
    color: var(--text-secondary); font-weight: 500; font-size: 14px;
    transition: all var(--transition); background: none; border: none; cursor: pointer;
}
.nav-link:hover, .nav-link.active { color: var(--text-primary); background: rgba(255,255,255,0.05); }
.nav-btn-play { color: var(--green); font-weight: 600; }

.nav-right { display: flex; align-items: center; gap: 8px; margin-left: 24px; }

/* Dropdown */
.nav-dropdown { position: relative; }
.dropdown-menu {
    position: absolute; top: calc(100% + 8px); left: 50%; transform: translateX(-50%);
    min-width: 220px; background: var(--bg-secondary); border: 1px solid var(--glass-border);
    border-radius: var(--radius); padding: 8px; box-shadow: var(--shadow-lg);
    opacity: 0; visibility: hidden; transform: translateX(-50%) translateY(-8px);
    transition: all 0.2s ease; z-index: 1001;
}
.dropdown-menu-right { left: auto; right: 0; transform: translateX(0) translateY(-8px); }
.nav-dropdown:hover .dropdown-menu,
.nav-dropdown.show .dropdown-menu,
.nav-user:hover .dropdown-menu,
.nav-user.show .dropdown-menu {
    opacity: 1; visibility: visible;
    transform: translateX(-50%) translateY(0);
}
.nav-dropdown:hover .dropdown-menu-right,
.nav-dropdown.show .dropdown-menu-right,
.nav-user:hover .dropdown-menu-right,
.nav-user.show .dropdown-menu-right {
    transform: translateX(0) translateY(0);
}
.dropdown-header { padding: 6px 12px; font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; font-weight: 600; }
.dropdown-ip {
    display: flex; align-items: center; justify-content: space-between;
    padding: 8px 12px; margin: 4px 0; background: rgba(255,255,255,0.05); border-radius: 8px;
}
.ip-address { font-family: monospace; font-weight: 700; color: var(--green); font-size: 14px; }
.btn-copy-ip {
    background: none; border: none; color: var(--text-muted); cursor: pointer;
    padding: 4px; border-radius: 6px; transition: all var(--transition);
}
.btn-copy-ip:hover { color: var(--text-primary); background: rgba(255,255,255,0.1); }
.dropdown-divider { height: 1px; background: var(--glass-border); margin: 6px 0; }
.dropdown-item {
    display: flex; align-items: center; gap: 10px;
    padding: 8px 12px; border-radius: 8px; color: var(--text-secondary);
    font-size: 14px; transition: all var(--transition); text-decoration: none;
}
.dropdown-item:hover { background: rgba(255,255,255,0.05); color: var(--text-primary); }
.dropdown-item-danger { color: var(--red); }
.dropdown-item-danger:hover { background: rgba(220,38,38,0.1); color: var(--red); }
.dropdown-user-info { padding: 8px 12px; display: flex; align-items: center; gap: 8px; }

/* User Avatar */
.user-avatar {
    width: 36px; height: 36px; border-radius: 50%; overflow: hidden;
    background: linear-gradient(135deg, var(--accent), var(--blue));
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; transition: all var(--transition); border: 2px solid transparent;
}
.user-avatar:hover { border-color: var(--accent); }
.user-avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar-initials { color: #fff; font-weight: 700; font-size: 14px; }
.avatar-initials-lg { font-size: 20px; }
.nav-user { position: relative; }

/* Burger */
.nav-burger {
    display: none; flex-direction: column; gap: 5px;
    background: none; border: none; cursor: pointer; padding: 4px;
}
.nav-burger span { display: block; width: 22px; height: 2px; background: var(--text-secondary); border-radius: 2px; transition: all var(--transition); }

/* Mobile Menu */
.mobile-menu {
    display: none; flex-direction: column; padding: 12px 20px 20px;
    border-top: 1px solid var(--glass-border);
}
.mobile-menu.open { display: flex; }
.mobile-link {
    padding: 12px 0; color: var(--text-secondary); font-weight: 500;
    border-bottom: 1px solid rgba(255,255,255,0.05); text-decoration: none;
}
.mobile-link:hover { color: var(--text-primary); }
.mobile-link-danger { color: var(--red); }
.mobile-divider { height: 1px; background: var(--glass-border); margin: 8px 0; }
.mobile-section { padding: 12px 0; color: var(--text-muted); font-size: 13px; }

/* ===== HERO ===== */
.hero {
    position: relative; min-height: 100vh; display: flex; align-items: center;
    justify-content: center; text-align: center; overflow: hidden;
}
.hero-slider { position: absolute; inset: 0; }
.hero-slide {
    position: absolute; inset: 0; background-size: cover; background-position: center;
    opacity: 0; transition: opacity 1.5s ease; animation: heroZoom 20s infinite;
}
.hero-slide:first-child { opacity: 1; }
@keyframes heroZoom { 0%,100% { transform: scale(1); } 50% { transform: scale(1.05); } }
.hero-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to bottom, rgba(10,10,15,0.6) 0%, rgba(10,10,15,0.8) 100%);
    z-index: 1;
}
.hero-content { position: relative; z-index: 2; max-width: 720px; padding: 100px 20px 60px; }
.hero-logo { width: 80px; height: 80px; object-fit: contain; margin: 0 auto 16px; display: block; border-radius: 16px; }
.hero-title { font-size: clamp(2.5rem, 6vw, 4rem); font-weight: 800; line-height: 1.1; margin-bottom: 20px; }
.hero-subtitle { font-size: 1.125rem; color: var(--text-secondary); margin-bottom: 36px; line-height: 1.7; }
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-bottom: 48px; }
.btn-hero { padding: 16px 36px; font-size: 18px; border-radius: 14px; }
.hero-stats { display: flex; gap: 48px; justify-content: center; flex-wrap: wrap; }
.stat-item { text-align: center; }
.stat-number { display: block; font-size: 2rem; font-weight: 800; color: var(--text-primary); }
.stat-label { font-size: 0.875rem; color: var(--text-muted); }

/* ===== SECTIONS ===== */
.section { padding: 80px 0; }
.section-header { text-align: center; margin-bottom: 48px; }
.section-title { font-size: 2rem; font-weight: 800; margin-bottom: 12px; }
.section-subtitle { color: var(--text-secondary); font-size: 1rem; }

/* ===== NEWS GRID ===== */
.news-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
@media (max-width: 768px) { .news-grid { grid-template-columns: 1fr; } }

.news-card {
    background: var(--bg-card); border: 1px solid var(--glass-border);
    border-radius: var(--radius); overflow: hidden; transition: all var(--transition);
}
.news-card:hover { border-color: var(--glass-border-hover); transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.news-card-link { text-decoration: none; color: inherit; display: block; }
.news-card-image { height: 200px; overflow: hidden; background: var(--bg-secondary); position: relative; }
.news-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.news-card:hover .news-card-image img { transform: scale(1.05); }
.news-card-overlay {
    position: absolute; inset: 0; background: rgba(0,0,0,0.5);
    display: flex; align-items: center; justify-content: center;
    opacity: 0; transition: opacity 0.3s ease;
}
.news-card:hover .news-card-overlay { opacity: 1; }
.news-card-placeholder { display: flex; align-items: center; justify-content: center; height: 100%; }
.news-card-body { padding: 20px; }
.news-card-labels { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.news-label {
    display: inline-block; padding: 2px 8px; border-radius: 4px;
    font-size: 11px; font-weight: 600; color: #fff; text-transform: uppercase;
    letter-spacing: 0.03em;
}
.news-label-tag { opacity: 0.8; }
.news-card-meta { display: flex; gap: 6px; color: var(--text-muted); font-size: 13px; }
.news-card-title { font-size: 1.2rem; font-weight: 700; margin-bottom: 8px; color: var(--text-primary); }
.news-card:hover .news-card-title { color: #6366f1; }
.news-card-excerpt { color: var(--text-secondary); font-size: 14px; line-height: 1.6; }

/* Table of Contents */
.news-toc a:hover { border-left-color: #6366f1 !important; color: #f0f0f5 !important; }

/* News Article Content */
.news-article-content h2,
.news-article-content h3 { scroll-margin-top: 80px; }

/* ===== PAGINATION ===== */
.pagination { display: flex; justify-content: center; gap: 6px; margin-top: 40px; }

/* ===== FEATURES ===== */
.section-features { background: rgba(255,255,255,0.01); }
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }

/* ===== AUTH ===== */
.auth-page {
    min-height: calc(100vh - 64px); display: flex; align-items: center;
    justify-content: center; padding: 40px 20px;
}
.auth-card { width: 100%; max-width: 420px; padding: 40px; }
.auth-header { text-align: center; margin-bottom: 32px; }
.auth-header h1 { font-size: 1.5rem; font-weight: 800; margin-bottom: 4px; }
.auth-header p { color: var(--text-secondary); font-size: 14px; }
.auth-form { display: flex; flex-direction: column; gap: 20px; }
.auth-footer { text-align: center; margin-top: 24px; color: var(--text-muted); font-size: 14px; }

/* ===== FORM ===== */
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-weight: 600; font-size: 13px; color: var(--text-secondary); }
.form-hint { font-size: 12px; color: var(--text-muted); }

/* ===== ALERTS ===== */
.alert { padding: 12px 16px; border-radius: var(--radius-sm); font-size: 14px; margin-bottom: 4px; }
.alert-error { background: rgba(220,38,38,0.1); border: 1px solid rgba(220,38,38,0.3); color: #fca5a5; }
.alert-success { background: rgba(22,163,74,0.1); border: 1px solid rgba(22,163,74,0.3); color: #86efac; }

/* ===== PAGE HEADER ===== */
.page-header {
    padding: 60px 0 40px; text-align: center;
    background: radial-gradient(ellipse at center, rgba(124,58,237,0.08) 0%, transparent 70%);
}
.page-title { font-size: 2rem; font-weight: 800; margin-bottom: 8px; }
.page-subtitle { color: var(--text-secondary); }

/* ===== LAYOUT SIDEBAR ===== */
.layout-sidebar { display: grid; grid-template-columns: 1fr 320px; gap: 32px; padding: 0 20px 80px; align-items: start; }

/* ===== SIDEBAR ===== */
.sidebar-profile { position: sticky; top: 80px; display: flex; flex-direction: column; gap: 16px; }
.sidebar-card { padding: 20px; }
.sidebar-user { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.sidebar-avatar {
    width: 48px; height: 48px; border-radius: 50%; overflow: hidden;
    background: linear-gradient(135deg, var(--accent), var(--blue));
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.sidebar-avatar img { width: 100%; height: 100%; object-fit: cover; }
.sidebar-user-info { min-width: 0; }
.sidebar-username { font-weight: 700; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidebar-group { margin-top: 2px; }
.sidebar-mc-nick {
    display: flex; align-items: center; gap: 6px;
    padding: 8px 12px; background: rgba(255,255,255,0.03); border-radius: 8px;
    font-size: 13px; color: var(--text-secondary); margin-bottom: 12px;
}
.sidebar-coins { margin-bottom: 16px; }
.coins-label { font-size: 12px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 4px; }
.coins-value { display: flex; align-items: center; gap: 6px; font-weight: 700; font-size: 16px; color: #fbbf24; }
.sidebar-actions { display: flex; flex-direction: column; gap: 8px; }

.sidebar-quick-nav { display: flex; flex-direction: column; gap: 2px; }
.sidebar-nav-item {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 12px; border-radius: 8px; color: var(--text-secondary);
    font-size: 14px; font-weight: 500; transition: all var(--transition); text-decoration: none;
}
.sidebar-nav-item:hover { background: rgba(255,255,255,0.05); color: var(--text-primary); }

/* ===== SHOP ===== */
.shop-filters { padding: 16px; margin-bottom: 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.filter-tabs { display: flex; gap: 4px; flex-wrap: wrap; }
.filter-tab {
    padding: 6px 14px; border-radius: 8px; font-size: 13px; font-weight: 500;
    color: var(--text-muted); transition: all var(--transition); text-decoration: none;
}
.filter-tab:hover { color: var(--text-primary); background: rgba(255,255,255,0.05); }
.filter-tab.active { color: var(--accent); background: rgba(124,58,237,0.1); }
.filter-search { display: flex; gap: 8px; }
.filter-search .input { width: 200px; }

.shop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.shop-card { overflow: hidden; }
.shop-card-image { height: 160px; background: var(--bg-secondary); position: relative; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.shop-card-image img { width: 100%; height: 100%; object-fit: cover; }
.shop-card-placeholder { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; }
.shop-card-category {
    position: absolute; top: 10px; left: 10px; padding: 3px 10px; border-radius: 6px;
    background: rgba(0,0,0,0.6); backdrop-filter: blur(8px); font-size: 11px;
    font-weight: 600; color: var(--text-secondary);
}
.shop-card-body { padding: 16px; }
.shop-card-title { font-weight: 700; margin-bottom: 6px; font-size: 15px; }
.shop-card-desc { color: var(--text-secondary); font-size: 13px; line-height: 1.5; margin-bottom: 12px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.shop-card-price { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.price-coins { display: flex; align-items: center; gap: 4px; font-weight: 700; color: #fbbf24; font-size: 15px; }
.price-rub { font-weight: 700; color: var(--text-secondary); font-size: 15px; }
.price-bonus-badge {
    display:inline-block; padding:1px 6px; border-radius:4px;
    background:rgba(22,163,74,0.15); color:var(--green); font-size:10px; font-weight:700;
    margin-left:4px;
}
.shop-card-bonus-tag {
    display:block; margin-top:6px; padding:4px 8px; border-radius:6px;
    background:rgba(251,191,36,0.08); font-size:11px; color:#fbbf24; font-weight:600;
    text-align:center;
}

/* ===== WIKI v3 - GitBook Style ===== */
.wiki-page-header {
    padding: 40px 0 24px;
    background: radial-gradient(ellipse at center, rgba(124,58,237,0.08) 0%, transparent 70%);
}

.wiki-layout {
    display: grid;
    grid-template-columns: 260px 1fr 200px;
    gap: 0;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px 80px;
    align-items: start;
    position: relative;
}

/* ===== Left Sidebar ===== */
.wiki-sidebar {
    position: sticky;
    top: 80px;
    height: calc(100vh - 100px);
    overflow-y: auto;
    padding-right: 16px;
    border-right: 1px solid var(--glass-border);
}
.wiki-sidebar::-webkit-scrollbar { width: 4px; }
.wiki-sidebar::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.08); border-radius: 2px; }

.wiki-sidebar-inner { padding: 8px 0; }

.wiki-search-widget {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    margin-bottom: 16px;
    border-radius: 8px;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--glass-border);
    transition: border-color 0.2s;
}
.wiki-search-widget:focus-within { border-color: var(--accent); }
.wiki-search-widget svg { color: var(--text-muted); flex-shrink: 0; width: 14px; height: 14px; }
.wiki-search-input {
    flex: 1;
    background: none;
    border: none;
    outline: none;
    color: var(--text-primary);
    font-size: 13px;
    min-width: 0;
}
.wiki-search-input::placeholder { color: var(--text-muted); }

.wiki-search-results {
    display: none;
    margin-bottom: 16px;
    max-height: 300px;
    overflow-y: auto;
}
.wiki-search-result {
    display: block;
    padding: 8px 12px;
    border-radius: 8px;
    color: var(--text-primary);
    text-decoration: none;
    transition: background 0.2s;
    font-size: 13px;
}
.wiki-search-result:hover { background: rgba(255,255,255,0.05); }
.wiki-search-result strong { display: block; font-weight: 600; }
.wiki-search-cat { font-size: 11px; color: var(--text-muted); }
.wiki-search-empty { padding: 12px; text-align: center; color: var(--text-muted); font-size: 13px; }

.wiki-sidebar-categories { display: block; }

.wiki-sidebar-nav { display: flex; flex-direction: column; gap: 2px; }
.wiki-sidebar-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.15s;
}
.wiki-sidebar-link:hover { background: rgba(255,255,255,0.04); color: var(--text-primary); }
.wiki-sidebar-link.active { background: rgba(124,58,237,0.1); color: var(--accent); font-weight: 600; }
.wiki-sidebar-link svg { flex-shrink: 0; width: 14px; height: 14px; }
.sidebar-chevron { margin-left: auto; transition: transform 0.2s; }

.wiki-sidebar-sublinks {
    display: none;
    padding-left: 24px;
    margin: 2px 0;
}
.wiki-sidebar-sublink {
    display: block;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    color: var(--text-muted);
    text-decoration: none;
    transition: all 0.15s;
}
.wiki-sidebar-sublink:hover { color: var(--text-primary); background: rgba(255,255,255,0.03); }
.wiki-sidebar-sublink.active { color: var(--accent); font-weight: 600; }

/* ===== Center Content ===== */
.wiki-content {
    min-width: 0;
    padding: 0 32px;
}

.wiki-breadcrumbs {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 16px;
    font-size: 13px;
    color: var(--text-muted);
    flex-wrap: wrap;
}
.wiki-breadcrumbs a { color: var(--text-muted); text-decoration: none; }
.wiki-breadcrumbs a:hover { color: var(--accent); }
.wiki-breadcrumbs svg { width: 10px; height: 10px; flex-shrink: 0; }

.wiki-article {
    padding: 40px;
    line-height: 1.7;
}
.wiki-article h2 {
    font-size: 1.6rem;
    font-weight: 800;
    margin: 32px 0 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--glass-border);
    scroll-margin-top: 80px;
}
.wiki-article h2:first-child { margin-top: 0; }
.wiki-article h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin: 24px 0 12px;
    color: var(--text-primary);
    scroll-margin-top: 80px;
}
.wiki-article p { color: var(--text-secondary); margin-bottom: 16px; line-height: 1.8; }
.wiki-article ol, .wiki-article ul { color: var(--text-secondary); padding-left: 24px; margin-bottom: 16px; }
.wiki-article li { margin-bottom: 6px; line-height: 1.7; }
.wiki-article li > ul, .wiki-article li > ol { margin-bottom: 0; }
.wiki-article code {
    padding: 2px 8px;
    border-radius: 6px;
    background: rgba(124,58,237,0.1);
    color: #a78bfa;
    font-size: 13px;
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
}
.wiki-article a { color: var(--accent); }
.wiki-article a:hover { text-decoration: underline; }
.wiki-article strong { color: var(--text-primary); }
.wiki-article table { width: 100%; border-collapse: collapse; margin: 16px 0 20px; font-size: 14px; }
.wiki-article th {
    padding: 10px 14px;
    text-align: left;
    border-bottom: 2px solid var(--glass-border);
    font-weight: 600;
    color: var(--text-muted);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.wiki-article td {
    padding: 10px 14px;
    border-bottom: 1px solid var(--glass-border);
    color: var(--text-secondary);
}
.wiki-article tr:hover td { background: rgba(255,255,255,0.02); }

/* Code blocks */
.wiki-article .code-block {
    position: relative;
    margin: 16px 0;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
}
.wiki-article .code-block pre {
    padding: 16px 20px;
    background: rgba(0,0,0,0.3);
    overflow-x: auto;
    margin: 0;
}
.wiki-article .code-block code {
    background: none;
    padding: 0;
    color: var(--text-primary);
    font-size: 13px;
    line-height: 1.6;
}
.copy-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    padding: 6px;
    border-radius: 6px;
    background: rgba(255,255,255,0.06);
    border: 1px solid var(--glass-border);
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
}
.code-block:hover .copy-btn { opacity: 1; }
.copy-btn:hover { background: rgba(124,58,237,0.15); color: var(--accent); }

/* GitBook Callouts */
.gitbook-callout {
    padding: 16px 20px;
    margin: 16px 0;
    border-radius: 10px;
    border-left: 4px solid;
    font-size: 14px;
    line-height: 1.6;
}
.callout-note {
    background: rgba(37,99,235,0.08);
    border-color: #2563eb;
    color: #93c5fd;
}
.callout-warning {
    background: rgba(234,179,8,0.08);
    border-color: #eab308;
    color: #fde68a;
}
.callout-tip {
    background: rgba(22,163,74,0.08);
    border-color: #16a34a;
    color: #86efac;
}
.gitbook-callout strong { color: inherit; }
.gitbook-callout code { background: rgba(0,0,0,0.2); color: inherit; }

/* GitBook Tabs */
.gitbook-tabs {
    margin: 16px 0;
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    overflow: hidden;
}
.tabs-nav {
    display: flex;
    border-bottom: 1px solid var(--glass-border);
    background: rgba(255,255,255,0.02);
    overflow-x: auto;
}
.tab-btn {
    padding: 10px 16px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    border-bottom: 2px solid transparent;
    white-space: nowrap;
}
.tab-btn:hover { color: var(--text-primary); }
.tab-btn.active { color: var(--accent); border-bottom-color: var(--accent); }
.tabs-content { padding: 16px 20px; }
.tab-pane { display: none; }
.tab-pane.active { display: block; }

/* ===== Right Sidebar TOC ===== */
.wiki-toc-sidebar {
    position: sticky;
    top: 80px;
    height: calc(100vh - 100px);
    overflow-y: auto;
    padding-left: 16px;
}
.wiki-toc-sidebar::-webkit-scrollbar { width: 4px; }
.wiki-toc-sidebar::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.08); border-radius: 2px; }

.wiki-toc-sticky {
    padding: 8px 0;
}
.wiki-toc-title {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    margin-bottom: 12px;
}
.wiki-toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.wiki-toc-list li { margin: 0; }
.wiki-toc-list a {
    display: block;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 12px;
    color: var(--text-muted);
    text-decoration: none;
    border-left: 2px solid transparent;
    transition: all 0.15s;
}
.wiki-toc-list a:hover { color: var(--text-primary); }
.wiki-toc-list a.active {
    color: var(--accent);
    border-left-color: var(--accent);
    font-weight: 600;
}
.wiki-toc-list .toc-h3 a { padding-left: 24px; font-size: 11px; }

/* ===== Wiki Home ===== */
.wiki-home { padding: 20px 0; }
.wiki-home h2 { font-size: 1.8rem; font-weight: 800; margin-bottom: 12px; border: none; }
.wiki-home-desc { color: var(--text-secondary); font-size: 15px; margin-bottom: 32px; }

.wiki-home-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}
.wiki-home-card {
    display: block;
    padding: 24px;
    text-align: center;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.2s;
}
.wiki-home-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent);
    box-shadow: 0 8px 32px rgba(124,58,237,0.15);
}
.wiki-home-icon { font-size: 36px; margin-bottom: 12px; }
.wiki-home-card h3 { font-size: 15px; font-weight: 700; margin: 0 0 6px; border: none; scroll-margin-top: 0; }
.wiki-home-card p { font-size: 13px; color: var(--text-muted); margin: 0; }

/* ===== Wiki Empty / Error ===== */
.wiki-empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}
.wiki-empty h2 { font-size: 1.4rem; border: none; margin-bottom: 12px; }

/* ===== Wiki Footer Nav ===== */
.wiki-footer-nav {
    display: flex;
    justify-content: space-between;
    margin-top: 24px;
}

/* ===== Section Index ===== */
.wiki-section-index { padding: 10px 0; }
.wiki-section-index h2 { font-size: 1.5rem; font-weight: 800; margin-bottom: 24px; border: none; }
.wiki-subcategories { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.wiki-subcat-card {
    display: block;
    padding: 16px;
    border-radius: 10px;
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--glass-border);
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.2s;
}
.wiki-subcat-card:hover {
    border-color: var(--accent);
    background: rgba(124,58,237,0.04);
}
.wiki-subcat-card h4 { font-size: 14px; font-weight: 600; margin: 0; }
.wiki-subcat-card p { font-size: 12px; color: var(--text-muted); margin: 4px 0 0; }

/* ===== Wiki Mobile Toggle ===== */
.wiki-mobile-toggle {
    display: none;
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 999;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--accent);
    border: none;
    color: #fff;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px var(--accent-glow);
    transition: all 0.2s;
}
.wiki-mobile-toggle:hover { transform: scale(1.1); }

/* ===== Responsive Wiki ===== */
@media (max-width: 1100px) {
    .wiki-layout { grid-template-columns: 220px 1fr; }
    .wiki-toc-sidebar { display: none; }
}
@media (max-width: 768px) {
    .wiki-layout { grid-template-columns: 1fr; padding: 0 16px; }
    .wiki-sidebar { display: none; position: fixed; inset: 0; z-index: 1000; background: var(--bg-primary); height: 100vh; padding: 80px 20px 20px; }
    .wiki-sidebar.open { display: block; }
    .wiki-content { padding: 0; }
    .wiki-article { padding: 20px; }
    .wiki-home-grid { grid-template-columns: repeat(2, 1fr); }
    .wiki-subcategories { grid-template-columns: 1fr; }
    .wiki-mobile-toggle { display: flex; }
}

/* ===== COMING SOON ===== */
.coming-soon { text-align: center; padding: 80px 40px; }
.coming-soon svg { margin: 0 auto 20px; color: var(--text-muted); }
.coming-soon h2 { font-size: 1.5rem; margin-bottom: 12px; }
.coming-soon p { color: var(--text-secondary); margin-bottom: 24px; }

/* ===== EMPTY STATE ===== */
.empty-state { text-align: center; padding: 60px 20px; color: var(--text-muted); }

/* ===== FOOTER ===== */
.footer {
    background: rgba(0,0,0,0.3); border-top: 1px solid var(--glass-border);
    padding: 60px 0 32px; margin-top: 60px;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; margin-bottom: 12px; }
.footer-desc { color: var(--text-muted); font-size: 14px; line-height: 1.6; max-width: 320px; }
.footer-col h4 { font-weight: 700; font-size: 14px; margin-bottom: 16px; color: var(--text-primary); }
.footer-col a, .footer-col span {
    display: block; color: var(--text-muted); font-size: 14px;
    margin-bottom: 8px; text-decoration: none; transition: color var(--transition);
}
.footer-col a:hover { color: var(--text-primary); }
.footer-ip { font-family: monospace; color: var(--green) !important; font-weight: 600; }
.footer-payments { display:flex;gap:8px;margin-top:12px; }
.footer-payments span {
    display:inline-flex;width:40px;height:24px;border-radius:4px;
    background:rgba(255,255,255,0.08);border:1px solid var(--glass-border);
    position:relative;
}
.footer-payments span::after {
    content:'';position:absolute;inset:4px;border-radius:2px;
    background:rgba(255,255,255,0.15);
}
.footer-bottom {
    border-top: 1px solid var(--glass-border); padding-top: 24px;
    display:flex;justify-content:space-between;flex-wrap:wrap;gap:12px;
    color: var(--text-muted); font-size: 13px;
}
.footer-bottom-links { display:flex;gap:16px; }
.footer-bottom-links a { color:var(--text-muted);text-decoration:none;font-size:13px; }
.footer-bottom-links a:hover { color:var(--text-primary); }

/* ===== TOAST ===== */
.toast {
    position: fixed; bottom: 24px; right: 24px; z-index: 9999;
    padding: 12px 20px; border-radius: var(--radius-sm);
    background: var(--bg-secondary); border: 1px solid var(--glass-border);
    color: var(--text-primary); font-size: 14px; font-weight: 500;
    box-shadow: var(--shadow-lg); transform: translateY(100px);
    opacity: 0; transition: all 0.3s ease;
}
.toast.show { transform: translateY(0); opacity: 1; }
.toast-success { border-color: rgba(22,163,74,0.4); }
.toast-error { border-color: rgba(220,38,38,0.4); }

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
    .layout-sidebar { grid-template-columns: 1fr; }
    .sidebar-profile { position: static; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .nav-right { display: none; }
    .nav-burger { display: flex; }
    .hero { min-height: 80vh; padding: 80px 20px 40px; }
    .hero-title { font-size: 2rem; }
    .hero-stats { gap: 24px; }
    .stat-number { font-size: 1.5rem; }
    .news-grid { grid-template-columns: 1fr; }
    .features-grid { grid-template-columns: 1fr; }
    .shop-grid { grid-template-columns: 1fr; }
    .shop-filters { flex-direction: column; align-items: stretch; }
    .filter-search { flex-direction: column; }
    .filter-search .input { width: 100%; }
    .footer-grid { grid-template-columns: 1fr; gap: 24px; }
    .wiki-content { padding: 20px; }
}

@media (max-width: 480px) {
    .hero-actions { flex-direction: column; }
    .hero-actions .btn { width: 100%; justify-content: center; }
    .auth-card { padding: 24px; }
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.2); }

/* ===== PARTICLE DOT ===== */
.particle {
    position: absolute; border-radius: 50%; background: rgba(124,58,237,0.3);
    animation: float linear infinite;
}
@keyframes float {
    0% { transform: translateY(0) translateX(0); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateY(-100vh) translateX(50px); opacity: 0; }
}

/* ===== COPY TOAST ===== */
.copy-toast {
    position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%) scale(0.8);
    padding: 16px 32px; border-radius: var(--radius);
    background: rgba(0,0,0,0.9); backdrop-filter: blur(20px);
    color: #fff; font-weight: 700; font-size: 16px; z-index: 10000;
    opacity: 0; transition: all 0.3s ease; pointer-events: none;
}
.copy-toast.show { opacity: 1; transform: translate(-50%, -50%) scale(1); }

/* ===== SIDEBAR EXTRAS ===== */
.sidebar-avatar-badge {
    position: absolute; bottom: -2px; right: -2px;
    width: 18px; height: 18px; border-radius: 50%;
    font-size: 10px; font-weight: 700; color: #fff;
    display: flex; align-items: center; justify-content: center;
    border: 2px solid var(--bg-primary);
}
.sidebar-avatar { position: relative; }
.sidebar-section-title {
    font-weight: 700; font-size: 13px; color: var(--text-muted);
    text-transform: uppercase; letter-spacing: 0.5px;
    margin-bottom: 12px; display: flex; align-items: center; gap: 8px;
}

/* ===== DAILY REWARD ===== */
.daily-reward-widget { text-align: center; }
.daily-streak { margin-bottom: 12px; }
.daily-streak-number { font-size: 2rem; font-weight: 800; color: #fbbf24; }
.daily-streak-label { font-size: 13px; color: var(--text-muted); margin-left: 4px; }
.daily-calendar {
    display: flex; gap: 4px; justify-content: center; margin-bottom: 12px;
}
.daily-day {
    width: 36px; height: 44px; border-radius: 8px;
    background: rgba(255,255,255,0.03); border: 1px solid var(--glass-border);
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    font-size: 11px; transition: all var(--transition);
}
.daily-day.claimed { background: rgba(251,191,36,0.15); border-color: rgba(251,191,36,0.3); }
.daily-day.day-special { border-color: rgba(251,191,36,0.4); }
.daily-day-num { font-weight: 700; color: var(--text-primary); }
.daily-day-bonus { font-size: 9px; color: #fbbf24; }
.daily-claim-btn { margin-top: 4px; }

/* ===== ACHIEVEMENTS ===== */
.achievements-grid { display: flex; gap: 6px; flex-wrap: wrap; }
.achievement-mini {
    width: 36px; height: 36px; border-radius: 8px;
    background: rgba(251,191,36,0.08); border: 1px solid rgba(251,191,36,0.15);
    display: flex; align-items: center; justify-content: center;
    font-size: 16px; transition: all var(--transition); cursor: default;
}
.achievement-mini:hover { transform: scale(1.1); border-color: rgba(251,191,36,0.4); }
.achievement-icon-mini { line-height: 1; }
.achievement-more {
    background: rgba(255,255,255,0.05); border-color: var(--glass-border);
    font-size: 11px; font-weight: 700; color: var(--text-muted);
}

/* ===== FRIENDS SIDEBAR ===== */
.friends-list { display: flex; flex-direction: column; gap: 6px; }
.friend-item { display: flex; align-items: center; gap: 8px; padding: 4px 0; }
.friend-avatar-sm {
    width: 28px; height: 28px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.friend-name { font-size: 13px; color: var(--text-secondary); }

/* ===== CASES ===== */
.cases-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; }
.case-card {
    display: block; text-decoration: none; color: var(--text-primary);
    overflow: hidden; transition: all var(--transition);
}
.case-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.case-card-visual {
    height: 180px; display: flex; align-items: center; justify-content: center;
    position: relative; background: rgba(124,58,237,0.05);
}
.case-box-icon { font-size: 48px; filter: drop-shadow(0 0 20px rgba(124,58,237,0.3)); }
.case-box-icon-lg { font-size: 64px; }
.case-card-glow {
    position: absolute; inset: 0;
    background: radial-gradient(circle at center, rgba(124,58,237,0.15) 0%, transparent 70%);
}
.case-card-body { padding: 16px; text-align: center; }
.case-card-body h3 { margin-bottom: 8px; font-weight: 700; }
.case-price { display: flex; align-items: center; gap: 4px; justify-content: center; font-weight: 700; color: #fbbf24; font-size: 15px; }

.case-detail-header { display: flex; gap: 24px; align-items: center; }
.case-box-3d { perspective: 600px; }
.case-box-visual {
    width: 120px; height: 120px; border-radius: 16px;
    background: rgba(124,58,237,0.1); border: 2px solid rgba(124,58,237,0.3);
    display: flex; align-items: center; justify-content: center;
    animation: caseFloat 3s ease-in-out infinite;
}
@keyframes caseFloat {
    0%, 100% { transform: translateY(0) rotateY(0deg); }
    50% { transform: translateY(-8px) rotateY(5deg); }
}

.case-items-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
.case-item-card {
    padding: 14px; border-radius: 12px;
    background: var(--bg-secondary); border: 1px solid var(--glass-border);
    text-align: center;
}
.case-item-rarity {
    font-size: 10px; text-transform: uppercase; letter-spacing: 1px;
    font-weight: 700; margin-bottom: 6px;
}
.rarity-common .case-item-rarity { color: #9e9e9e; }
.rarity-uncommon .case-item-rarity { color: #4caf50; }
.rarity-rare .case-item-rarity { color: #2196f3; }
.rarity-epic .case-item-rarity { color: #9c27b0; }
.rarity-legendary .case-item-rarity { color: #ff9800; }
.rarity-legendary { border-color: rgba(255,152,0,0.3); background: rgba(255,152,0,0.05); }
.case-item-name { font-weight: 600; font-size: 13px; margin-bottom: 4px; }
.case-item-reward { color: #fbbf24; font-size: 13px; font-weight: 700; }
.case-item-chance { color: var(--text-muted); font-size: 11px; margin-top: 4px; }

.case-result {
    position: fixed; inset: 0; z-index: 9999;
    display: flex; align-items: center; justify-content: center;
    background: rgba(0,0,0,0.7); backdrop-filter: blur(8px);
}
.case-result-overlay { position: absolute; inset: 0; }
.case-result-content {
    position: relative; z-index: 2; text-align: center;
    padding: 40px; max-width: 400px; width: 90%;
}
.case-result-icon { font-size: 48px; margin-bottom: 12px; }

/* ===== AUCTION ===== */
.auction-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.auction-card { padding: 20px; }
.auction-card-header { display: flex; justify-content: space-between; align-items: start; margin-bottom: 8px; }
.auction-card-header h3 { font-size: 1rem; font-weight: 700; }
.auction-timer { font-size: 12px; color: var(--orange); font-weight: 600; }
.auction-desc { color: var(--text-secondary); font-size: 13px; margin-bottom: 12px; }
.auction-info { display: flex; gap: 16px; margin-bottom: 8px; }
.auction-price { display: flex; flex-direction: column; }
.auction-label { font-size: 11px; color: var(--text-muted); text-transform: uppercase; }
.auction-value { font-weight: 700; font-size: 1rem; }
.auction-seller { font-size: 12px; color: var(--text-muted); }

/* ===== GALLERY ===== */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.gallery-card { overflow: hidden; }
.gallery-image { height: 200px; overflow: hidden; background: var(--bg-secondary); }
.gallery-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.gallery-card:hover .gallery-image img { transform: scale(1.05); }
.gallery-placeholder { display: flex; align-items: center; justify-content: center; height: 100%; }
.gallery-card-body { padding: 14px; }
.gallery-card-body h4 { font-size: 14px; margin-bottom: 4px; }
.gallery-meta { display: flex; justify-content: space-between; color: var(--text-muted); font-size: 12px; }

/* ===== TICKETS ===== */
.ticket-list { display: flex; flex-direction: column; gap: 8px; }
.ticket-item {
    display: block; padding: 14px 16px; text-decoration: none; color: var(--text-primary);
    transition: all var(--transition);
}
.ticket-item:hover { border-color: var(--glass-border-hover); }
.ticket-item-header { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.ticket-id { font-weight: 700; color: var(--text-muted); font-size: 13px; }
.ticket-subject { font-weight: 600; flex: 1; }
.ticket-item-meta { display: flex; gap: 12px; color: var(--text-muted); font-size: 12px; }

.ticket-messages { display: flex; flex-direction: column; gap: 12px; max-height: 400px; overflow-y: auto; padding-right: 8px; }
.ticket-message { padding: 12px; border-radius: 10px; }
.ticket-message.user { background: rgba(124,58,237,0.08); border-left: 3px solid var(--accent); }
.ticket-message.staff { background: rgba(33,150,243,0.08); border-left: 3px solid var(--blue); }
.ticket-msg-header { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; font-size: 13px; }
.ticket-msg-body { font-size: 14px; color: var(--text-secondary); line-height: 1.6; }

/* ===== FEATURES V2 ===== */
.feature-card { display:flex;align-items:center;gap:16px;padding:20px;text-align:left; }
.feature-icon {
    width:52px;height:52px;border-radius:14px;flex-shrink:0;
    display:flex;align-items:center;justify-content:center;
    transition:all var(--transition);
}
.feature-card:hover .feature-icon { transform:translateY(-4px); }
.feature-icon-shield { background:rgba(76,175,80,0.12); color:#4caf50; }
.feature-icon-bolt { background:rgba(255,152,0,0.12); color:#ff9800; }
.feature-icon-heart { background:rgba(244,67,54,0.12); color:#f44336; }
.feature-icon-map { background:rgba(33,150,243,0.12); color:#2196f3; }
.feature-body h3 { font-size:14px;font-weight:700;margin-bottom:4px; }
.feature-body p { color:var(--text-secondary);font-size:13px;line-height:1.5; }

/* ===== HOME ROW ===== */
.home-row { display:grid;grid-template-columns:1fr 1fr;gap:20px; }
@media (max-width:768px) { .home-row { grid-template-columns:1fr; } }
.home-col { min-width:0; }
.ref-link-wrap { display:flex;gap:6px; }
.ref-link-wrap .input { flex:1;min-width:0; }

/* ===== SHOWCASE V2 ===== */
.showcase-thumb {
    position:relative;cursor:pointer;overflow:hidden;border-radius:12px;
    aspect-ratio:16/9;background:var(--bg-secondary);
}
.showcase-thumb img { width:100%;height:100%;object-fit:cover;transition:transform 0.3s; }
.showcase-thumb:hover img { transform:scale(1.05); }
.showcase-play {
    position:absolute;inset:0;display:flex;align-items:center;justify-content:center;
    background:rgba(0,0,0,0.3);opacity:0;transition:opacity 0.3s;
}
.showcase-thumb:hover .showcase-play { opacity:1; }
.showcase-play svg { width:56px;height:56px;color:#fff;filter:drop-shadow(0 0 20px rgba(255,255,255,0.3)); }
.showcase-empty {
    grid-column:1/-1;padding:60px 20px;text-align:center;
    color:var(--text-muted);display:flex;flex-direction:column;align-items:center;gap:8px;
}

/* ===== MOBILE CTA ===== */
.mobile-cta {
    display:none;position:fixed;bottom:0;left:0;right:0;z-index:998;
    padding:12px 16px;background:var(--bg-primary);border-top:1px solid var(--glass-border);
}
.mobile-cta .btn { border-radius:12px; }
@media (max-width:768px) { .mobile-cta { display:block; } body { padding-bottom:70px; } }

/* ===== POLLS ===== */
.section-poll { padding-bottom: 0; }
.poll-card { padding: 24px; }
.poll-header { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.poll-header h3 { font-weight: 700; }
.poll-icon { font-size: 20px; }
.poll-question { font-weight: 600; font-size: 1.1rem; margin-bottom: 16px; }
.poll-options { display: flex; flex-direction: column; gap: 8px; }
.poll-option {
    position: relative; padding: 12px 16px; border-radius: 10px;
    background: rgba(255,255,255,0.03); border: 1px solid var(--glass-border);
    cursor: pointer; overflow: hidden; transition: all var(--transition);
}
.poll-option:hover { border-color: var(--accent); }
.poll-option-bar {
    position: absolute; left: 0; top: 0; bottom: 0;
    background: rgba(124,58,237,0.1); border-radius: 10px;
    transition: width 0.5s ease;
}
.poll-option-text { position: relative; z-index: 1; font-weight: 500; }
.poll-option-pct { position: relative; z-index: 1; float: right; font-weight: 700; color: var(--accent); }
.poll-total { margin-top: 8px; font-size: 13px; color: var(--text-muted); text-align: center; }

/* ===== LEADERBOARD ===== */
.leaderboard-item {
    display: flex; align-items: center; padding: 12px 16px;
    border-bottom: 1px solid var(--glass-border);
}
.leaderboard-item:last-child { border-bottom: none; }
.leaderboard-rank {
    width: 32px; height: 32px; border-radius: 8px;
    background: rgba(255,255,255,0.05); display: flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: 14px; margin-right: 12px; flex-shrink: 0;
}
.leaderboard-rank.top { background: linear-gradient(135deg, #fbbf24, #f59e0b); color: #000; }
.leaderboard-name { flex: 1; font-weight: 600; }
.leaderboard-count { color: var(--text-muted); font-size: 13px; }

/* ===== STREAMS ===== */
.streams-grid { min-height: 200px; }
.stream-placeholder { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 300px; }

/* ===== GUIDES ===== */
.guides-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.guide-card { display: block; text-decoration: none; color: var(--text-primary); overflow: hidden; }
.guide-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.guide-card-image { height: 160px; background: var(--bg-secondary); overflow: hidden; }
.guide-card-image img { width: 100%; height: 100%; object-fit: cover; }
.guide-placeholder { display: flex; align-items: center; justify-content: center; height: 100%; }
.guide-card-body { padding: 16px; }
.guide-category { font-size: 11px; text-transform: uppercase; letter-spacing: 0.5px; color: var(--accent); font-weight: 600; margin-bottom: 4px; display: block; }
.guide-card-body h3 { font-size: 1rem; margin-bottom: 6px; }
.guide-card-body p { font-size: 13px; color: var(--text-secondary); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.guide-meta { display: flex; gap: 12px; color: var(--text-muted); font-size: 12px; margin-top: 8px; }

/* ===== CALCULATOR ===== */
.calc-slider {
    width: 100%; height: 6px; -webkit-appearance: none; appearance: none;
    background: rgba(255,255,255,0.1); border-radius: 3px; outline: none;
}
.calc-slider::-webkit-slider-thumb {
    -webkit-appearance: none; width: 20px; height: 20px;
    border-radius: 50%; background: var(--accent); cursor: pointer;
    box-shadow: 0 0 10px var(--accent-glow);
}
.calc-result { text-align: center; padding: 24px; background: rgba(255,255,255,0.02); border-radius: 12px; margin-bottom: 16px; }
.calc-coins { display: flex; align-items: center; gap: 8px; justify-content: center; margin-bottom: 8px; }
.calc-bonus { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.calc-bonus-item { padding: 4px 12px; border-radius: 20px; background: rgba(22,163,74,0.1); color: var(--green); font-size: 13px; font-weight: 600; }
.calc-items { display: flex; flex-direction: column; gap: 6px; }
.calc-item { display: flex; justify-content: space-between; padding: 8px 12px; border-radius: 8px; background: rgba(255,255,255,0.02); font-size: 14px; }
.calc-item-name { color: var(--text-secondary); }
.calc-item-price { font-weight: 600; color: var(--text-primary); }

/* ===== TOAST SYSTEM ===== */
.toast-container {
    position: fixed; top: 80px; right: 24px; z-index: 10001;
    display: flex; flex-direction: column; gap: 8px;
}
.toast-item {
    padding: 12px 20px; border-radius: var(--radius-sm);
    background: var(--bg-secondary); border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-lg); display: flex; align-items: center; gap: 10px;
    animation: toastIn 0.3s ease, toastOut 0.3s ease 3.7s forwards;
    max-width: 360px;
}
.toast-item-success { border-left: 3px solid var(--green); }
.toast-item-error { border-left: 3px solid var(--red); }
.toast-item-info { border-left: 3px solid var(--blue); }
.toast-icon { font-size: 18px; }
.toast-msg { font-size: 14px; flex: 1; }

@keyframes toastIn { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
@keyframes toastOut { from { opacity: 1; } to { opacity: 0; transform: translateX(100%); } }

/* ===== GLOBAL SEARCH ===== */
.search-overlay {
    position: fixed; inset: 0; z-index: 10002;
    background: rgba(0,0,0,0.6); backdrop-filter: blur(4px);
    display: none; align-items: flex-start; justify-content: center; padding-top: 120px;
}
.search-overlay.active { display: flex; }
.search-box {
    width: 90%; max-width: 600px; background: var(--bg-secondary);
    border: 1px solid var(--glass-border); border-radius: var(--radius);
    box-shadow: var(--shadow-lg); overflow: hidden;
}
.search-input-wrap { display: flex; align-items: center; padding: 16px; gap: 12px; border-bottom: 1px solid var(--glass-border); }
.search-input-wrap svg { color: var(--text-muted); flex-shrink: 0; }
.search-input {
    flex: 1; background: none; border: none; outline: none;
    color: var(--text-primary); font-size: 16px;
}
.search-input::placeholder { color: var(--text-muted); }
.search-results { max-height: 400px; overflow-y: auto; padding: 8px; }
.search-result-item {
    display: block; padding: 10px 14px; border-radius: 8px;
    color: var(--text-primary); text-decoration: none; transition: background var(--transition);
}
.search-result-item:hover { background: rgba(255,255,255,0.05); }
.search-result-item .sr-label { font-size: 11px; color: var(--text-muted); text-transform: uppercase; display: block; margin-bottom: 2px; }
.search-result-item .sr-title { font-weight: 600; }
.search-empty { padding: 24px; text-align: center; color: var(--text-muted); }
.search-hint { padding: 10px 14px; border-top: 1px solid var(--glass-border); color: var(--text-muted); font-size: 12px; text-align: center; }

/* ===== CHAT WIDGET ===== */
.chat-widget {
    position: fixed; bottom: 24px; right: 24px; z-index: 999;
    width: 360px; border-radius: var(--radius);
    background: var(--bg-secondary); border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-lg); overflow: hidden;
    transition: all 0.3s ease;
    display: flex; flex-direction: column;
}
.chat-widget.minimized { width: 200px; height: 48px; cursor: pointer; }
.chat-widget.minimized .chat-body { display: none; }
.chat-widget:not(.minimized) { height: 480px; max-height: 80vh; }

.chat-header {
    padding: 10px 14px; display: flex; align-items: center; gap: 8px;
    background: rgba(124,58,237,0.12); cursor: pointer; user-select: none;
    flex-shrink: 0;
}
.chat-header h4 { flex: 1; font-size: 13px; font-weight: 700; letter-spacing: 0.02em; }
.chat-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); flex-shrink: 0; }
.chat-chevron { transition: transform 0.3s ease; flex-shrink: 0; }
.chat-widget:not(.minimized) .chat-chevron { transform: rotate(180deg); }
.chat-header-badges { display: flex; align-items: center; gap: 4px; }
.chat-unread {
    background: #ef4444; color: #fff; font-size: 10px; font-weight: 700;
    padding: 1px 5px; border-radius: 8px; min-width: 16px; text-align: center;
    line-height: 1.4;
}

.chat-body { display: flex; flex-direction: column; flex: 1; overflow: hidden; }

/* Channels */
.chat-channels {
    display: flex; gap: 4px; padding: 6px 10px;
    border-bottom: 1px solid var(--glass-border); overflow-x: auto;
    flex-shrink: 0;
}
.chat-channels::-webkit-scrollbar { height: 2px; }
.chat-channel-btn {
    padding: 3px 10px; border-radius: 10px; border: 1px solid var(--glass-border);
    background: transparent; color: var(--text-muted); font-size: 11px; font-weight: 600;
    cursor: pointer; white-space: nowrap; transition: all 0.2s;
}
.chat-channel-btn:hover { border-color: #6366f1; color: var(--text-primary); }
.chat-channel-btn.active { background: rgba(99,102,241,0.15); border-color: #6366f1; color: #6366f1; }

/* Messages */
.chat-messages {
    flex: 1; overflow-y: auto; padding: 10px; display: flex; flex-direction: column; gap: 4px;
    background: rgba(0,0,0,0.15);
}
.chat-loading, .chat-empty { color: var(--text-muted); font-size: 12px; text-align: center; padding: 20px; }

.chat-msg {
    padding: 6px 8px; border-radius: 8px; transition: background 0.2s;
    position: relative;
}
.chat-msg:hover { background: rgba(255,255,255,0.03); }
.chat-msg:hover .chat-msg-actions { opacity: 1; }
.chat-msg-system { text-align: center; }
.chat-msg-system .chat-msg-text { color: var(--text-muted); font-size: 11px; font-style: italic; }

.chat-msg-header {
    display: flex; align-items: center; gap: 6px; margin-bottom: 2px;
    position: relative;
}
.chat-msg-avatar { width: 20px; height: 20px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.chat-msg-name { font-weight: 700; font-size: 12px; cursor: pointer; }
.chat-msg-name:hover { text-decoration: underline; }
.chat-msg-badge {
    font-size: 9px; padding: 1px 5px; border-radius: 4px; color: #fff; font-weight: 600;
    letter-spacing: 0.02em; flex-shrink: 0;
}
.chat-msg-time { font-size: 10px; color: var(--text-muted); margin-left: auto; flex-shrink: 0; }
.chat-msg-actions {
    display: flex; gap: 2px; opacity: 0; transition: opacity 0.2s;
    position: absolute; right: 0; top: -2px;
}
.chat-msg-delete-btn, .chat-msg-report-btn {
    background: rgba(255,255,255,0.08); border: none; color: var(--text-muted);
    width: 20px; height: 20px; border-radius: 4px; cursor: pointer;
    display: flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 700;
    transition: all 0.2s;
}
.chat-msg-delete-btn:hover { background: rgba(239,68,68,0.2); color: #ef4444; }
.chat-msg-report-btn:hover { background: rgba(251,191,36,0.2); color: #fbbf24; }

.chat-msg-text { font-size: 12.5px; line-height: 1.5; word-break: break-word; }
.chat-msg-text a { color: #6366f1; }
.chat-msg-text .chat-link-blocked { color: #ef4444; text-decoration: line-through; cursor: not-allowed; }
.chat-msg-text .chat-mention { color: #6366f1; font-weight: 600; cursor: pointer; }
.chat-msg-text img.chat-embed-img { margin: 4px 0; display: block; }
.chat-msg-text iframe { margin: 4px 0; display: block; max-width: 100%; }
.chat-msg-deleted { color: var(--text-muted); font-size: 11px; font-style: italic; text-align: center; padding: 4px; }

/* Reactions */
.chat-reactions { display: flex; flex-wrap: wrap; gap: 3px; margin-top: 4px; }
.chat-reaction-btn {
    padding: 1px 6px; border-radius: 8px; border: 1px solid rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.04); color: var(--text-muted); font-size: 11px;
    cursor: pointer; transition: all 0.2s;
}
.chat-reaction-btn:hover { border-color: #6366f1; background: rgba(99,102,241,0.1); }
.chat-reaction-btn span { margin-left: 2px; font-weight: 600; font-size: 10px; }

.chat-reaction-picker {
    display: none; gap: 2px; margin-top: 2px;
}
.chat-msg:hover .chat-reaction-picker { display: flex; }
.chat-reaction-add {
    background: none; border: none; color: var(--text-muted); font-size: 13px;
    cursor: pointer; padding: 1px 3px; border-radius: 4px; transition: background 0.2s;
    line-height: 1;
}
.chat-reaction-add:hover { background: rgba(255,255,255,0.08); }

/* Input */
.chat-input-wrap { display: flex; padding: 8px 10px; gap: 6px; border-top: 1px solid var(--glass-border); align-items: center; flex-shrink: 0; }
.chat-input {
    flex: 1; background: rgba(255,255,255,0.06); border: 1px solid var(--glass-border);
    border-radius: 8px; padding: 7px 10px; color: var(--text-primary); font-size: 12.5px;
    outline: none; transition: border-color 0.2s;
}
.chat-input:focus { border-color: #6366f1; }
.chat-input::placeholder { color: var(--text-muted); }
.chat-send-btn {
    background: #6366f1; border: none; color: #fff; width: 32px; height: 32px;
    border-radius: 8px; cursor: pointer; display: flex; align-items: center; justify-content: center;
    transition: background 0.2s; flex-shrink: 0;
}
.chat-send-btn:hover { background: #4f46e5; }
.chat-send-btn:disabled { opacity: 0.4; cursor: not-allowed; }

/* Typing indicator */
.chat-typing {
    padding: 2px 14px 6px; font-size: 11px; color: var(--text-muted); font-style: italic;
    flex-shrink: 0;
}

@media (max-width: 480px) {
    .chat-widget { width: calc(100% - 24px); right: 12px; bottom: 12px; }
    .chat-widget:not(.minimized) { height: 60vh; }
}

/* ===== THEME TOGGLE ===== */
.theme-toggle {
    background: none; border: 1px solid var(--glass-border); border-radius: 8px;
    padding: 6px 10px; cursor: pointer; color: var(--text-muted);
    display: flex; align-items: center; gap: 6px; font-size: 13px;
    transition: all var(--transition);
}
.theme-toggle:hover { color: var(--text-primary); border-color: var(--glass-border-hover); }

/* ===== LIGHT THEME ===== */
body.light {
    --bg-primary: #f5f5f7;
    --bg-secondary: #ffffff;
    --bg-card: rgba(255, 255, 255, 0.7);
    --bg-card-hover: rgba(255, 255, 255, 0.9);
    --glass-border: rgba(0, 0, 0, 0.08);
    --glass-border-hover: rgba(0, 0, 0, 0.15);
    --text-primary: #1a1a2e;
    --text-secondary: #555570;
    --text-muted: #8888a0;
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.12);
}
body.light .navbar { background: rgba(245, 245, 247, 0.85); }
body.light .hero-bg {
    background: radial-gradient(ellipse at 20% 50%, rgba(124,58,237,0.08) 0%, transparent 50%),
                radial-gradient(ellipse at 80% 20%, rgba(37,99,235,0.06) 0%, transparent 50%);
}
body.light ::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.15); }

@media (max-width: 480px) {
    .case-detail-header { flex-direction: column; text-align: center; }
    .daily-calendar { gap: 2px; }
    .daily-day { width: 30px; height: 38px; }
}

/* ===== WHEEL OF FORTUNE ===== */
.wheel-container { text-align: center; padding: 24px; max-width: 500px; margin: 0 auto; }
#wheelCanvas { max-width: 100%; height: auto; border-radius: 50%; box-shadow: 0 0 60px rgba(124,58,237,0.3); margin-bottom: 16px; transition: transform 0.1s; }
.wheel-result { margin-top: 16px; padding: 16px; border-radius: 12px; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); }
.wheel-result .prize-name { font-size: 20px; font-weight: 700; }
.wheel-result .prize-desc { font-size: 14px; color: var(--text-muted); margin-top: 4px; }

/* ===== BUILD BLOG ===== */
.builds-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.build-card { border-radius: var(--radius); overflow: hidden; transition: transform 0.2s, box-shadow 0.2s; }
.build-card:hover { transform: translateY(-4px); box-shadow: 0 8px 32px rgba(124,58,237,0.2); }
.build-card-img { aspect-ratio: 16/9; overflow: hidden; }
.build-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.build-card:hover .build-card-img img { transform: scale(1.05); }
.build-card-body { padding: 16px; }
.build-card-body h3 { font-size: 15px; font-weight: 600; margin-bottom: 8px; }
.build-card-meta { display: flex; gap: 12px; font-size: 12px; color: var(--text-muted); }
.build-card-meta span { display: flex; align-items: center; gap: 4px; }
.builds-toolbar { display: flex; gap: 8px; margin-bottom: 20px; flex-wrap: wrap; }

/* ===== EXCHANGE ===== */
.exchange-card { overflow: hidden; }
.exchange-card:hover { border-color: rgba(124,58,237,0.3); }

/* ===== STATS ===== */
.stat-card { transition: transform 0.2s; }
.stat-card:hover { transform: translateY(-2px); }

/* ===== MODAL ===== */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.7); backdrop-filter: blur(4px); display: flex; align-items: center; justify-content: center; z-index: 1000; }
.modal { width: 90%; max-height: 90vh; overflow-y: auto; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 13px; font-weight: 500; margin-bottom: 6px; color: var(--text-muted); }
.form-input { width: 100%; padding: 10px 14px; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); border-radius: 8px; color: var(--text-primary); font-size: 14px; transition: border-color 0.2s; }
.form-input:focus { outline: none; border-color: #7c3aed; }
select.form-input { appearance: none; cursor: pointer; }
textarea.form-input { resize: vertical; min-height: 80px; }

/* ===== SHOWCASE ===== */
.showcase-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.showcase-video { border-radius: 12px; overflow: hidden; aspect-ratio: 16/9; position: relative; }
.showcase-video iframe { width: 100%; height: 100%; border: none; }
.showcase-video-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.5); display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity 0.2s; cursor: pointer; }
.showcase-video:hover .showcase-video-overlay { opacity: 1; }

/* ===== BONUS CALENDAR ===== */
#bonusCalendar { font-size: 12px; }
#bonusCalendar > div[onclick]:hover { opacity: 0.8; }

/* ===== SHOP V2 ===== */
.shop-toolbar {
    display: flex; align-items: center; gap: 12px; margin-bottom: 20px;
    flex-wrap: wrap; justify-content: space-between;
}
.shop-tabs { display: flex; gap: 4px; flex-wrap: wrap; }
.shop-tab {
    padding: 7px 14px; border-radius: 8px; font-size: 13px; font-weight: 500;
    color: var(--text-muted); transition: all var(--transition); text-decoration: none;
    background: none; border: none; cursor: pointer;
}
.shop-tab:hover { color: var(--text-primary); background: rgba(255,255,255,0.05); }
.shop-tab.active { color: var(--accent); background: rgba(124,58,237,0.1); }
.shop-toolbar-actions { display: flex; align-items: center; gap: 8px; }

.compare-panel {
    padding: 12px 16px; margin-bottom: 16px;
    background: rgba(99,102,241,0.08); border: 1px solid rgba(99,102,241,0.2);
    border-radius: var(--radius-sm);
}
.compare-panel .compare-header { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 13px; }
.compare-slots { display: flex; gap: 6px; flex: 1; }
.compare-slot {
    padding: 4px 10px; border-radius: 6px;
    background: rgba(99,102,241,0.15); font-size: 12px; font-weight: 600;
}
.compare-checkbox {
    display: inline-flex; align-items: center; gap: 4px;
    width: 28px; height: 28px; border-radius: 6px;
    border: 1px solid var(--glass-border); cursor: pointer;
    justify-content: center;
}
.compare-input { width: 14px; height: 14px; cursor: pointer; }

.compare-table-wrap { overflow-x: auto; }

.shop-card-badge-sale {
    position: absolute; top: 10px; right: 10px;
    padding: 3px 8px; border-radius: 6px;
    background: rgba(239,68,68,0.8); color: #fff; font-size: 11px; font-weight: 700;
}
.shop-card-lore { font-size: 12px; color: var(--text-muted); line-height: 1.4; margin-bottom: 8px; }
.shop-card-lore span { display: block; }
.shop-card-actions { display: flex; align-items: center; gap: 4px; margin-top: 8px; flex-wrap: wrap; }

.compare-table-inner { width: 100%; border-collapse: collapse; }
.compare-table-inner th, .compare-table-inner td {
    padding: 8px 12px; text-align: center; border-bottom: 1px solid var(--glass-border);
    font-size: 13px;
}
.compare-table-inner th { font-weight: 700; background: rgba(255,255,255,0.02); }
.compare-table-inner td:first-child { text-align: left; font-weight: 600; }

.features-list { display: flex; flex-direction: column; gap: 6px; }
.feature-row {
    display: flex; justify-content: space-between; padding: 8px 12px;
    border-radius: 8px; background: rgba(255,255,255,0.03); font-size: 13px;
}

/* Bundle */
.bundle-panel {
    padding: 20px; margin-bottom: 20px;
    background: rgba(251,191,36,0.05); border: 1px solid rgba(251,191,36,0.15);
    border-radius: var(--radius);
}
.bundle-slots { display: grid; grid-template-columns: repeat(auto-fill,minmax(140px,1fr)); gap: 12px; margin-bottom: 16px; }
.bundle-slot {
    position: relative; padding: 16px 12px; border-radius: var(--radius-sm);
    border: 2px dashed var(--glass-border); text-align: center; min-height: 100px;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    transition: all var(--transition); background: rgba(255,255,255,0.02);
}
.bundle-slot:hover { border-color: var(--glass-border-hover); }
.bundle-slot.selected { border-color: var(--accent); border-style: solid; }
.bundle-slot-placeholder { font-size: 12px; color: var(--text-muted); line-height: 1.4; }
.bundle-slot-selected { font-size: 14px; }
.bundle-slot-remove {
    position: absolute; top: 4px; right: 4px;
    width: 20px; height: 20px; border-radius: 50%;
    background: rgba(239,68,68,0.2); border: none; color: #ef4444;
    font-size: 11px; cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.bundle-summary {
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    padding: 12px 16px; border-radius: var(--radius-sm);
    background: rgba(0,0,0,0.2);
}
.bundle-total { font-size: 14px; }
.bundle-price { font-weight: 800; font-size: 18px; color: var(--green); }
.bundle-discount { font-size: 12px; color: var(--green); margin-left: 8px; }

/* Live Preview */
.live-preview { display: flex; flex-direction: column; gap: 8px; }
.live-preview-display {
    padding: 12px; border-radius: 8px;
    background: rgba(0,0,0,0.3); text-align: center; font-size: 16px;
    min-height: 44px; display: flex; align-items: center; justify-content: center; gap: 4px;
}
.live-preview-controls { display: flex; gap: 6px; }
.live-preview-controls select { font-size: 12px; }

/* Modal header */
.modal-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px 20px; border-bottom: 1px solid var(--glass-border);
}
.modal-header h3 { font-size: 16px; font-weight: 700; }
.modal-body { padding: 20px; }

/* Payment Status */
.payment-loader { padding: 40px; }
.payment-loader svg { width: 64px; height: 64px; }
