@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800;900&display=swap');

:root {
    /* --- СВЕТЛАЯ ТЕМА --- */
    --bg-main: #f5f6f8;
    --bg-grid: rgba(0, 0, 0, 0.04);
    --bg-radial-center: #ffffff;
    --bg-radial-edge: #eef0f5;
    
    --text-main: #1a1a24;
    --text-muted: #535366;
    --text-light: #7a7a8c;
    
    --panel-bg: rgba(255, 255, 255, 0.9);
    --header-bg: rgba(255, 255, 255, 0.95);
    --card-bg: #ffffff;
    --card-secondary: #f0f2f6;
    
    --border-main: #e5e5ea;
    --border-light: rgba(0, 0, 0, 0.08);
    
    --shadow-main: rgba(0, 0, 0, 0.04);
    --shadow-heavy: rgba(0, 0, 0, 0.08);
    
    --accent-gold: #a36a00; /* Читаемый тёмно-бронзовый вместо жёлтого */
    --accent-cyan: #00828a;
}

[data-theme="dark"] {
    /* --- ТЕМНАЯ ТЕМА --- */
    --bg-main: #050508;
    --bg-grid: rgba(255, 215, 0, 0.02);
    --bg-radial-center: #0c0c16;
    --bg-radial-edge: #050508;
    
    --text-main: #f0f0f5;
    --text-muted: #aaaaee;
    --text-light: #6c6c82;
    
    --panel-bg: rgba(11, 11, 17, 0.85);
    --header-bg: rgba(6, 6, 10, 0.9);
    --card-bg: #06060a;
    --card-secondary: #111117;
    
    --border-main: #1c1c28;
    --border-light: rgba(255, 215, 0, 0.1);
    
    --shadow-main: rgba(0, 0, 0, 0.6);
    --shadow-heavy: rgba(0, 0, 0, 0.8);
    
    --accent-gold: #FFD700;
    --accent-cyan: #55ffff;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Montserrat', sans-serif; }

@keyframes gridMove {
    0% { background-position: 0 0; }
    100% { background-position: 40px 40px; }
}

html, body {
    background-color: var(--bg-main) !important;
    background-image:
        linear-gradient(var(--bg-grid) 1px, transparent 1px),
        linear-gradient(90deg, var(--bg-grid) 1px, transparent 1px),
        radial-gradient(circle at 50% 50%, var(--bg-radial-center) 0%, var(--bg-radial-edge) 100%) !important;
    background-size: 40px 40px, 40px 40px, auto !important;
    animation: gridMove 8s linear infinite !important;
    color: var(--text-main);
    min-height: 100vh;
    overflow-x: hidden;
    transition: background-color 0.3s, color 0.3s;
}

.main-wrapper {
    max-width: 1400px; margin: 40px auto; padding: 0 20px;
    display: grid; grid-template-columns: 1fr 350px; gap: 30px; align-items: start;
    width: 100%;
}
@media (max-width: 1100px) { .main-wrapper { grid-template-columns: 1fr; } .sidebar { width: 100% !important; } }

.content-page, .news {
    background: var(--panel-bg) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--border-main) !important;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 20px 50px var(--shadow-main); position: relative; width: 100%;
    transition: background 0.3s, border-color 0.3s;
}

header {
    background: var(--header-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-main);
    padding: 20px 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 10px 40px var(--shadow-main);
    transition: background 0.3s, border-color 0.3s;
}

@keyframes logoGlow { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } }
.logo {
    font-size: 24px; font-weight: 900; text-transform: uppercase; letter-spacing: 2px;
    background: linear-gradient(135deg, #FFD700 0%, #FFAA00 25%, #FFF5CC 50%, #FFAA00 75%, #FFD700 100%);
    background-size: 400% 400%; -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    animation: logoGlow 6s ease-in-out infinite; text-decoration: none;
    flex-shrink: 0;
}

nav { display: flex; justify-content: center; align-items: center; flex: 1; margin: 0 20px; }
nav a { color: var(--text-light); text-decoration: none; font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: 1px; margin: 0 22px; transition: all 0.3s ease; }
nav a:hover, nav a.active { color: var(--accent-gold); text-shadow: 0 0 15px rgba(255, 215, 0, 0.1); }

.theme-btn {
    background: none; border: none; cursor: pointer;
    color: var(--text-main); display: flex; align-items: center; justify-content: center;
    padding: 8px; border-radius: 8px; transition: all 0.2s ease;
}
.theme-btn:hover { background: var(--border-light); color: var(--accent-gold); }

.hero-btn, .start-btn, .save-btn, .confirm-buy-btn, .vote-link, .shop-tab-btn.active, .file-label-btn, .select-btn {
    display: inline-block !important; background: linear-gradient(135deg, #FFD700 0%, #ff9c00 100%) !important;
    color: #000 !important; border: none !important; padding: 13px 32px !important; font-weight: 800 !important;
    font-size: 12px !important; text-transform: uppercase !important; letter-spacing: 0.5px !important;
    border-radius: 8px !important; cursor: pointer !important; text-decoration: none !important;
     transition: all 0.3s ease !important;
    text-align: center;
}
.hero-btn:hover, .start-btn:hover, .save-btn:hover, .confirm-buy-btn:hover, .file-label-btn:hover, .select-btn:hover {
    background: linear-gradient(135deg, #1a1a24 0%, #333344 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.15) !important; transform: translateY(-2px) !important;
}

.hero-section {
    background: linear-gradient(rgba(0, 0, 0, 0.02), transparent);
    padding: 130px 20px; text-align: center; border-bottom: 1px solid var(--border-main); width: 100%; display: block;
}
[data-theme="dark"] .hero-section { background: linear-gradient(rgba(6, 6, 8, 0.2), #060608); }

.hero-content { max-width: 850px; margin: 0 auto; display: block; }
.hero-content h1 { font-size: 58px; font-weight: 900; letter-spacing: 4px; margin-bottom: 20px; color: var(--text-main); display: block; }
.hero-content p { color: var(--text-muted); font-size: 16px; line-height: 1.8; margin-bottom: 35px; display: block; }
.hero-buttons { display: flex; justify-content: center; width: 100%; margin-top: 10px; }

.info-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 25px 0; width: 100%; }
.info-box {
    background: var(--card-secondary) !important; padding: 20px !important; border-radius: 10px !important;
    border: 1px solid var(--border-main) !important; text-align: center !important; box-shadow: 0 4px 15px var(--shadow-main);
}
.info-label { color: var(--text-muted); font-size: 11px; text-transform: uppercase; margin-bottom: 8px; font-weight: 700; letter-spacing: 0.5px; }
.info-value { color: var(--accent-gold); font-weight: 800; font-size: 16px; }

.mods-container { background: var(--card-bg); border-radius: 12px; padding: 30px; margin-top: 30px; border: 1px solid var(--border-main); text-align: left; }
.mods-title { color: var(--text-main); margin-bottom: 20px; font-size: 14px; text-transform: uppercase; font-weight: 800; letter-spacing: 0.5px; }
.mods-list-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.mod-item { background: var(--card-secondary); padding: 14px 18px; border-radius: 8px; font-size: 13.5px; color: var(--text-main); border: 1px solid var(--border-main); }

.shop-controls { display: flex; justify-content: space-between; align-items: center; width: 100%; gap: 20px; }
.products-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 25px; margin-top: 25px; width: 100%; }
.product-card { background: var(--card-bg); border: 1px solid var(--border-main); border-radius: 14px; padding: 30px; display: flex; flex-direction: column; justify-content: space-between; text-align: left; }
.card-vip { border-left: 4px solid #55ff55; }
.card-premium { border-left: 4px solid #00a4cc; }
.card-deluxe { border-left: 4px solid #ff5555; }
.card-elite { border-left: 4px solid #ffaa00; }
.product-title { font-size: 24px; font-weight: 900; margin-bottom: 5px; }
.product-price { color: var(--accent-gold); font-size: 15px; font-weight: 700; margin-bottom: 20px; }
.product-features { list-style: none; padding: 15px 0 0 5px; margin: 0 0 25px 0; border-top: 1px solid var(--border-main); }
.product-features li { color: var(--text-muted); font-size: 13px; margin-bottom: 10px; display: flex; align-items: center; gap: 10px; }
.product-features li::before { content: '✔'; color: var(--accent-gold); font-weight: bold; }

.modal-overlay, .confirm-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(3, 3, 5, 0.4); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    display: none; justify-content: center; align-items: center; z-index: 2000;
}
.modal-overlay.active, .confirm-overlay.active { display: flex; }

.modal-window {
    background: var(--card-bg); border: 1px solid var(--border-main); border-radius: 16px;
    width: 100%; max-width: 640px; padding: 35px; box-shadow: 0 30px 70px var(--shadow-heavy); position: relative;
}
.modal-close { position: absolute; top: 20px; right: 20px; background: none; border: none; color: var(--text-muted); font-size: 26px; cursor: pointer; }
.modal-close:hover { color: var(--text-main); }

.modal-title { font-size: 22px; font-weight: 800; margin-bottom: 8px; text-transform: uppercase; text-align: left; color: var(--text-main); }
.modal-subtitle { color: var(--text-muted); font-size: 13px; margin-bottom: 25px; text-align: left; }
.modal-features-title { font-size: 14px; font-weight: 700; color: var(--accent-gold); margin-bottom: 12px; text-transform: uppercase; text-align: left; }

.modal-features-list {
    max-height: 220px; overflow-y: auto; list-style: none; padding: 15px;
    background: var(--card-secondary); border: 1px solid var(--border-main); border-radius: 8px; margin: 15px 0 25px 0;
}
.modal-features-list li { color: var(--text-main); font-size: 13.5px; margin-bottom: 10px; display: flex; gap: 10px; line-height: 1.5; text-align: left; }
.modal-features-list li::before { content: '✔'; color: var(--accent-gold); font-weight: bold; }

.modal-features-list::-webkit-scrollbar { width: 6px; }
.modal-features-list::-webkit-scrollbar-track { background: var(--card-secondary); border-radius: 8px; }
.modal-features-list::-webkit-scrollbar-thumb { background: var(--border-main); border-radius: 8px; }
.modal-features-list::-webkit-scrollbar-thumb:hover { background: var(--accent-gold); }

.period-selector { display: flex; flex-direction: row; justify-content: space-between; gap: 10px; margin: 20px 0; width: 100%; }
.period-card {
    flex: 1; background: var(--card-secondary); border: 1px solid var(--border-main); border-radius: 8px; padding: 15px 5px;
    text-align: center; cursor: pointer; transition: all 0.2s ease; position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.period-card.active { border-color: var(--accent-gold); background: rgba(255, 215, 0, 0.04); }
.period-days { font-size: 13px; font-weight: 700; color: var(--text-main); }
.period-card.active .period-days { color: var(--accent-gold); }
.period-discount { background: #ffaa00; color: #000; font-size: 9px; font-weight: 900; padding: 2px 6px; border-radius: 4px; margin-bottom: 5px; text-transform: uppercase; }

.modal-footer { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--border-main); padding-top: 20px; }
.total-price-zone { display: flex; flex-direction: column; text-align: left; }
.total-price-value { color: var(--accent-gold); font-size: 26px; font-weight: 800; }

.sidebar { display: flex; flex-direction: column; gap: 30px; width: 350px; }
.auth-card, .monitor-card { background: var(--card-bg); border: 1px solid var(--border-main); border-radius: 14px; padding: 30px; width: 100%; text-align: left; }
.main-footer { border-top: 1px solid var(--border-main); padding: 40px 20px; margin-top: 60px; text-align: center; color: var(--text-muted); font-size: 13px; }
.footer-links a { color: var(--text-light); text-decoration: none; margin: 0 15px; }
.footer-links a:hover { color: var(--accent-gold); }

.form-input, .input-group input, .form-group input {
    width: 100% !important;
    background: var(--card-secondary) !important;
    border: 1px solid var(--border-main) !important;
    color: var(--text-main) !important;
    padding: 14px 18px !important;
    border-radius: 8px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    outline: none !important;
    box-shadow: none !important;
    transition: all 0.2s ease !important;
}
.form-input:focus, .input-group input:focus, .form-group input:focus {
    border-color: var(--accent-gold) !important;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.1) !important;
    background: var(--card-bg) !important;
}
/* ==========================================================================
/* ==========================================================================
   ИСПРАВЛЕНИЕ ЧЁРНЫХ КАРТОЧЕК И ТЕКСТА В СВЕТЛОЙ ТЕМЕ
   ========================================================================== */

[data-theme="light"] h2,
[data-theme="light"] h3,
[data-theme="light"] .vote-card h3,
[data-theme="light"] .support-card h3,
[data-theme="light"] .content-page h2,
[data-theme="light"] .news h2,
[data-theme="light"] .news-posts h3,
[data-theme="light"] .post-content h3,
[data-theme="light"] .post-card h3 {
    color: #1a1a24 !important;
}

[data-theme="light"] .vote-card,
[data-theme="light"] .quest-card,
[data-theme="light"] .support-card,
[data-theme="light"] .kit-box,
[data-theme="light"] .rule-item,
[data-theme="light"] .rule-content,
[data-theme="light"] .rule-line,
[data-theme="light"] .kit-dropdown-content,
[data-theme="light"] [style*="background: #111117"],
[data-theme="light"] [style*="background: #06060a"],
[data-theme="light"] [style*="background: #0d0d14"],
[data-theme="light"] [style*="background: #161616"] {
    background: #ffffff !important;
    border-color: #e5e5ea !important;
}

[data-theme="light"] .kit-preview-zone,
[data-theme="light"] .kit-collapse-btn,
[data-theme="light"] .s-btn,
[data-theme="light"] .progress-bar-bg,
[data-theme="light"] .kit-item-tag {
    background: #f0f2f6 !important;
    border-color: #e5e5ea !important;
    color: #1a1a24 !important;
}

[data-theme="light"] .s-btn:hover {
    background: #e5e5ea !important;
}

[data-theme="light"] .category-title,
[data-theme="light"] .quest-reward,
[data-theme="light"] .vote-reward-badge,
[data-theme="light"] .kit-box-title,
[data-theme="light"] summary,
[data-theme="light"] [style*="color: #FFD700"],
[data-theme="light"] [style*="color: #ffaa00"],
[data-theme="light"] [style*="color: #ff9c00"],
[data-theme="light"] [style*="color:#FFD700"] {
    color: #b37400 !important;
    border-color: #b37400 !important;
}

[data-theme="light"] .rule-text,
[data-theme="light"] .quest-title,
[data-theme="light"] .quest-desc,
[data-theme="light"] .support-card p,
[data-theme="light"] [style*="color: #fff"],
[data-theme="light"] [style*="color: #ccc"],
[data-theme="light"] [style*="color: #aaa"],
[data-theme="light"] [style*="color: #6c6c82"] {
    color: #1a1a24 !important;
}

[data-theme="light"] [style*="color: #55ffff"],
[data-theme="light"] [style*="color:#55ffff"] {
    color: #00828a !important;
}

[data-theme="light"] [style*="background: #1c1c28"] {
    background: #e5e5ea !important;
}

/* === ДОПОЛНИТЕЛЬНЫЕ ИСПРАВЛЕНИЯ ИЗ СКРИНШОТОВ === */

[data-theme="light"] .skin-requirements {
    background: #f0f2f6 !important;
    border-color: #e5e5ea !important;
}
[data-theme="light"] .skin-requirements span,
[data-theme="light"] .skin-requirements li {
    color: #1a1a24 !important;
}

[data-theme="light"] [style*="rgba(255, 215, 0, 0.6)"] {
    color: #4a4a5a !important;
}

[data-theme="light"] [style*="background: rgba(6, 6, 10, 0.4)"] {
    background: #f0f2f6 !important;
    border-color: #e5e5ea !important;
    color: #1a1a24 !important;
}

[data-theme="light"] .btn-claimed {
    background: #e5e5ea !important;
    border-color: #d1d1d6 !important;
    color: #7a7a8c !important;
}

[data-theme="light"] .post-content p,
[data-theme="light"] .post-card p,
[data-theme="light"] .vote-card p {
    color: #4a4a5a !important;
}

[data-theme="light"] .preset-btn {
    background: #f0f2f6 !important;
    border-color: #e5e5ea !important;
    color: #1a1a24 !important;
}
[data-theme="light"] .preset-btn:hover {
    background: #e5e5ea !important;
    color: #b37400 !important;
}
[data-theme="light"] .result-panel {
    background: #f0f2f6 !important;
    border-color: #e5e5ea !important;
    border-left-color: #b37400 !important;
}
[data-theme="light"] #final_display {
    color: #1a1a24 !important;
}
[data-theme="light"] #bonus_display span,
[data-theme="light"] #final_display span {
    color: #b37400 !important;
}
