/* --- ОСНОВНЫЕ СТИЛИ --- */
body {
    background: #e6e6e6;
    min-height: 100vh; /* Заставляем body быть минимум высотой с экран */
    display: flex;
    flex-direction: column; /* Выстраиваем элементы в колонку */
    font-family: 'Ubuntu', Arial, sans-serif;
    color: #414141;
    margin: 0;
    padding: 0;
}

/* HEADER */
.site-header {
    background: #232429;
    color: #fff;
    position: sticky;
    top: 0; left: 0; z-index: 999;
    height: 60px;
    box-shadow: 0 3px 7px #0002;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 36px;
}
.logo {
    color: #fff !important;
    background: #fff !important;
    border-radius: 10px;
    padding: 3px 18px;
    display: inline-block;
    z-index: 1001;
}
.logo a {
    color: #232429 !important;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.5em;
    font-family: 'Ubuntu', Arial, sans-serif;
}

/* NAV LINKS */
.main-nav { display: flex; align-items: center; }
.nav-link {
    color: #fff;
    background: none;
    text-decoration: none;
    font-size: 1em;
    border-radius: 5px;
    padding: 6px 20px;
    margin-left: 15px;
    transition: background .14s, color .14s;
    white-space: nowrap;
}
.nav-link:hover, .nav-link.active { background: #616161; color: #bada55; }

/* WIDGET TIME */
.game-timer-widget {
    display: inline-flex;
    align-items: center;
    background: #ffffff;
    padding: 5px 12px;
    border-radius: 8px;
    margin-left: 20px;
    height: 32px;
    white-space: nowrap;
}
.gt-label { margin-right: 8px; font-weight: 700; color: #2c3e50; font-size: 14px; }
.gt-time  { font-family: 'Ubuntu', monospace; font-weight: 700; color: #00a3f5; font-size: 15px; min-width: 44px; }

/* AUTH BLOCK (в шапке) */
.auth-block {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-left: 25px;
}
.nav-link.auth-link, .nav-link.reg-link { padding: 6px 18px; font-size: 1em; border-radius: 6px; margin-left: 0; }
.nav-link.reg-link { background: #00a3f5; color: #fff !important; font-weight: 700; }
.nav-link.reg-link:hover { background: #008cee; color: #fff !important; }
.user-profile-link {
    display: flex; align-items: center; color: #fff; background: #4582c7;
    text-decoration: none; font-weight: 700; padding: 5px 16px 5px 9px;
    border-radius: 24px; transition: .15s; font-size: 1em;
}
.user-profile-link:hover { background: #33497a; }
.header-avatar { width: 26px; height: 26px; border-radius: 50%; margin-right: 7px; object-fit: cover; }
.logout-btn {
    background: none; color: #ff4747; text-decoration: none; padding: 0 13px;
    border-radius: 7px; font-weight: 600; font-size: .99em; transition:.15s;
}
.logout-btn:hover { background: #322; color: #fff; }

/* BURGER */
.burger-menu {
    display: none; flex-direction: column; justify-content: space-between;
    width: 30px; height: 20px; cursor: pointer; z-index: 1001;
}
.burger-menu span { display: block; height: 3px; width: 100%; background: #fff; border-radius: 3px; transition: 0.3s; }

/* ГЛАВНЫЙ БЕЛЫЙ КОНТЕЙНЕР */
main {
    max-width: 1150px;
    width: 100%;
    box-sizing: border-box;
    margin: 25px auto 40px auto; /* Аккуратные отступы сверху и снизу */
    background: #fff;
    border-radius: 18px; /* Вернули красивые скругления */
    padding: 34px 15px 50px 15px;
    box-shadow: 0 8px 28px rgba(10,20,50,0.07), 0 2px 2px rgba(10,20,40,0.06);
}

/* ================= СТРУКТУРА ГЛАВНОЙ СТРАНИЦЫ ================= */
.main-page-title {
    text-align: center;
    font-size: 2.2em;
    color: #232429;
    margin: 10px 0 40px 0;
    font-weight: 700;
}
.home-section {
    margin-bottom: 45px;
    padding-bottom: 30px;
    border-bottom: 1px solid #eaeaea;
}
.section-title {
    text-align: center;
    font-size: 1.6em;
    color: #2a2a2a;
    margin-bottom: 25px;
    font-weight: 700;
}
.section-action {
    text-align: center;
    margin-top: 25px;
}

/* ================= СЕТКА ВОЗМОЖНОСТЕЙ ================= */
.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px; /* Уменьшили расстояние между карточками */
    max-width: 1000px;
    margin: 0 auto;
}
.feature-card {
    background: #fff;
    border-radius: 12px;
    padding: 16px 12px; /* Сильно убрали пустоту внутри карточек */
    border: 1px solid #eef2f6;
    transition: all 0.2s ease;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-shadow: 0 2px 6px rgba(0,0,0,0.03);
}
.feature-card:hover {
    transform: translateY(-3px); /* Сделали прыжок при наведении более аккуратным */
    box-shadow: 0 8px 16px rgba(0, 163, 245, 0.1);
    border-color: #b3e1ff;
}
.feature-icon {
    width: 46px; /* Уменьшили иконки с 64px до 46px */
    height: 46px;
    margin-bottom: 10px; /* Уменьшили отступ под иконкой */
    object-fit: contain;
}
.feature-title {
    font-size: 1.05em;
    font-weight: 700;
    color: #232429;
    margin-bottom: 5px; /* Уменьшили отступ под заголовком */
}
.feature-desc {
    font-size: 0.85em; /* Сделали текст описания чуть меньше и компактнее */
    color: #777;
    line-height: 1.3;
}

/* --- КАЛЬКУЛЯТОР --- */
#catHead {
    text-align: center;
    margin: 6px auto 0;
    color: #282828;
}
.category-menu {
    display: flex; flex-wrap: wrap; gap: 11px; margin: 12px auto 16px auto; justify-content: center;
}

.form-block {
    background: #f5f5f8;
    border-radius: 18px;
    box-shadow: 0 2px 16px #aeefff06;
    padding: 22px 21px 16px 21px;
    margin: 18px auto 0 auto;
    max-width: 590px;
    width: 100%;
    position: relative;
    box-sizing: border-box;
}
.form-block * { box-sizing: border-box; }

.wear-input {
    width: 100%; font-size: 1.09em; border: none; background: #444; color: #fff;
    font-family: 'Ubuntu', Arial, sans-serif; border-radius: 9px;
    margin: 6px 0 16px 0; padding: 11px 15px; box-shadow: 0 2px 9px #9991;
}
#item-select { margin-bottom: 11px; }
.form-block label { color: #343434; margin-bottom: 3px; margin-top: 7px; display: inline-block; font-weight: 500; }

.category-menu button {
    background: #f5f5f5; color: #484848; padding: 10px 22px; border-radius: 10px;
    border: 0; font-size: 1.07em; transition: background .13s, color .13s; cursor: pointer;
}
.category-menu button.active, .category-menu button:hover { background: #00a3f5; color: #fff; }
#stat-origin, #stat-current { font-size: 1.15em; margin-top: 9px; color: #393939; }

/* Кастомный SELECT для калькулятора */
.nice-select {
    width: 100%;
    position: relative;
    display: block;
    margin-bottom: 14px;
    box-sizing: border-box;
}
.nice-select .current,
.nice-select select {
    width: 100%;
    background: #444;
    color: #fff;
    font-size: 1.15em;
    border: none;
    border-radius: 10px;
    padding: 13px 14px;
    font-family: 'Ubuntu', Arial, sans-serif;
    font-weight: 700;
    box-shadow: 0 3px 9px #0001;
    margin-bottom: 4px;
    outline: none;
    cursor: pointer;
    box-sizing: border-box;
}
.nice-select .options-list {
    position: absolute;
    left: 0; right: 0; width: 100%;
    top: calc(100% + 4px);
    z-index: 10000;
    display: none;
    max-height: 278px;
    overflow-y: auto;
    background: #444;
    border-radius: 10px;
    box-shadow: 0 11px 23px rgba(0,0,0,.21);
}
.nice-select.open .options-list { display: block; }
.nice-select .option { padding: 13px 22px; color: #fff; font-size: 1.12em; cursor: pointer; transition: background .12s; border: none; background: none; }
.nice-select .option.selected, .nice-select .option:hover { background: #00a3f5; color: #f2f2f2; }
.nice-select select { display: none; }


/* --- ФОРМЫ (Вход / Регистрация / Профиль) --- */
.auth-wrapper {
    max-width: 420px; 
    margin: 26px auto 10px;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 6px 24px rgba(0,0,0,.08);
    padding: 22px 20px 20px;
    text-align: left;
}
.auth-wrapper h1, .auth-wrapper h2, .auth-wrapper h3 {
    margin: 0 0 14px 0;
    font-weight: 700;
    color: #2a2a2a;
}
.auth-input {
    width: 100%;
    padding: 12px 14px;
    margin: 0 0 12px 0;
    border: 1px solid #d8dbe2;
    border-radius: 9px;
    font-size: 1.05em;
    box-sizing: border-box;
    background: #fff;
    color: #232429;
    outline: none;
    transition: border .15s, box-shadow .15s, background .15s;
}
.auth-input:focus {
    border-color: #00a3f5;
    box-shadow: 0 0 0 3px rgba(0,163,245,.15);
}
.auth-btn {
    width: 100%;
    background: #00a3f5;
    color: #fff;
    border: none;
    padding: 12px 16px;
    border-radius: 9px;
    font-size: 1.08em;
    cursor: pointer;
    font-weight: 700;
    transition: background .18s, transform .02s;
}
.auth-btn:hover { background: #008ecc; }
.auth-btn:active { transform: translateY(1px); }

.auth-note { color:#6b7280; font-size: .95em; margin-top: 6px; }
.auth-link-inline { color:#00a3f5; text-decoration:none; font-weight:600; }
.auth-link-inline:hover { text-decoration:underline; }

/* Сообщения */
.alert-success {
    background:#e8fff0; color:#186a3b; border:1px solid #b5e6c7;
    padding:8px 10px; border-radius:8px; margin:8px 0;
}
.alert-error {
    background:#ffecec; color:#9b1c1c; border:1px solid #f3b7b7;
    padding:8px 10px; border-radius:8px; margin:8px 0;
}

/* Дроп-зона аватара */
#dropZone {
    border:2px dashed #c9d6e2;
    border-radius:12px;
    padding:14px;
    display:flex;
    align-items:center;
    gap:12px;
    background:#f7fbff;
}
#dropZone:hover { border-color:#8bbaf2; background:#eef6ff; }
#chosenFile { color:#0069c2; margin-top:6px; }

/* FISHPOINTS */
.fishpoints-block {
  display: flex; flex-wrap: wrap; gap: 24px; justify-content: center;
  margin: 0 auto; max-width: 1160px;
}
.fp-item {
  width: 205px; background: #f8fafd; border-radius: 14px; box-shadow: 0 1px 8px #48aaff12;
  padding: 11px 13px 15px 13px; display: flex; flex-direction: column; align-items: center;
  margin-bottom: 2px; min-height: 238px; border: 1px solid #e1ecf6; position: relative;
  transition: transform 0.2s;
}
.fp-item:hover { transform: translateY(-4px); box-shadow: 0 8px 16px #48aaff22; }
.fp-thumb {
  width: 100%; max-width: 180px; height: 78px; object-fit: cover; border-radius: 7px; box-shadow: 0 0 7px #88e9fa1a;
  margin-bottom: 9px; background: #e6f3fa;
}
.fp-thumb-empty {
  display: flex; align-items:center; justify-content:center; color:#8b8c95; font-size: 1em; height:78px;
  background:#f1f1f2; border:1px dashed #b0b0b7;
}
.fp-tags { font-size: 0.95em; color: #099edb; margin-bottom: 2px; font-weight: 500; text-align: center; min-height: 25px; }
.fp-text { color: #444; font-size: 0.97em; margin: 0 0 8px 0; text-align: center; min-height: 36px; }
.fp-more {
  text-align:center; background: #00a3f5; color: #fff !important; padding: 6px 21px; border-radius: 7px;
  text-decoration: none; margin-top: 5px; display: inline-block; transition:.15s; font-size: 1.03em;
}
.fp-more:hover { background:#3bcdfd; color:#232429 !important;}
.fp-all-btn {
  background: #31bfff; color: #fff; font-size: 1.14em; padding: 12px 28px; border-radius: 8px; text-decoration: none;
  font-weight: 600; transition:.18s; display: inline-block;
}
.fp-all-btn:hover { background:#2fa6d8; color: #fff; }

/* FOOTER */
.site-footer {
    margin-top: auto; /* Магия: прижимает футер к низу экрана на коротких страницах */
    background: #1e1e1e; 
    color: #fff; 
    text-align: center; 
    padding: 16px 0 10px 0;
    font-size: 1.1em; 
    letter-spacing: 0.02em; 
}
.site-footer a { color: #bada55; text-decoration: none; margin: 0 6px; transition: color .18s; }
.site-footer a:hover { color: #eaf3ff; text-decoration: underline; }
/* --- YOUTUBE ВИДЕО --- */
.yt-videos {
    display:flex;flex-wrap:wrap;gap:21px;justify-content:center;
}
.yt-video-item {
    width: 320px;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 2px 16px #128cfa10;
    padding: 7px 7px 16px 7px;
    transition: box-shadow .17s, transform 0.2s;
    text-align:left;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    border: 1px solid #f0f0f0;
}
.yt-video-item img { width: 100%; height: auto; border-radius: 11px; display: block; }
.yt-video-item:hover { box-shadow: 0 8px 24px #00a3f530; transform: translateY(-4px); }
.yt-title {margin-top:11px;font-size:1.06em;color:#262626;font-family:'Ubuntu',Arial,max-width: 1160px;
    margin: 0 auto;
}

.news-card {
    width: 320px;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 2px 14px rgba(0,0,0,0.06);
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    border: 1px solid #f0f0f0;
}

.news-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 163, 245, 0.15);
}

.news-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.news-content {
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.news-title {
    margin: 0 0 10px 0;
    font-size: 1.15em;
    color: #2a2a2a;
}

.news-text {
    color: #666;
    font-size: 0.95em;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 15px;
    flex-grow: 1;
}

.news-date {
    font-size: 0.85em;
    color: #aaa;
    margin-top: auto;
}

/* ADAPTIVE (АДАПТИВНОСТЬ) */
@media (max-width: 950px) {
    .site-header { padding: 0 20px; }
    .auth-block { margin-left: 6px; gap: 3px; flex-direction: column; width: 100%; margin: 17px 0 0 0; border-top: 1px solid #444; padding-top: 17px;}
    .main-nav {
        position: fixed; top: 0; right: -100%; width: 280px; height: 100vh; background: #232429;
        flex-direction: column; align-items: flex-start; padding: 80px 20px 20px 20px; transition: 0.3s;
        z-index: 1000; box-shadow: -5px 0 15px rgba(0,0,0,0.3);
    }
    .main-nav.nav-open { right: 0; }
    .burger-menu { display: flex; }
    .nav-link { margin: 10px 0; font-size: 1.1em; width: 100%; text-align: center; }
    .game-timer-widget { margin: 20px auto; width: 100%; justify-content: center; }
    
    .features-grid { grid-template-columns: repeat(2, 1fr); }
}

/* === ИСПРАВЛЕНИЯ ДЛЯ МОБИЛЬНОГО ВЫПАДАЮЩЕГО МЕНЮ === */
@media (max-width: 768px) {
    .dropdown-content { 
        position: static; 
        box-shadow: none; 
        display: block; 
        background: rgba(255,255,255,0.05); /* Полупрозрачный светлый фон */
        margin-top: 5px; 
        border-radius: 8px; 
        width: 100%; 
    }
    .dropdown-content a { 
        color: #fff; /* Белый текст */
        border-bottom: 1px solid rgba(255,255,255,0.1); /* Полупрозрачная граница */
        padding: 12px 16px; 
        text-align: center; /* Центрируем текст как и остальные ссылки */
    }
    .dropdown-content a:last-child {
        border-bottom: none;
    }
    .dropdown-content a:hover { 
        background-color: rgba(255,255,255,0.1); 
        color: #00a3f5 !important; 
    }
}

@media (max-width: 690px) {
    .site-header, main { border-radius: 0; }
    main { max-width: 99vw; padding:15px 3vw 25px 3vw; margin-top: 15px; }
    .auth-wrapper { margin: 18px 3vw; padding: 18px 14px; }
    .news-card { width: 100%; }
}

@media (max-width: 600px) { 
    .logo a { font-size: 1.1em; } 
    .features-grid { grid-template-columns: 1fr; }
}

@media(max-width:1099px){
    .yt-video-item { width:230px;}
    .yt-title{font-size:0.95em;}
}

@media(max-width:750px){
    .yt-video-item { width:99%;}
    .yt-videos { gap:10px;}
}

/* SCROLLBAR */
::-webkit-scrollbar { width:6px; background: #c0c0c0; }
::-webkit-scrollbar-thumb { background: #888; border-radius:4px; }

/* =========================================
   ТЁМНАЯ ТЕМА (DARK MODE)
========================================= */
body.dark-theme {
    background: #121212;
    color: #e0e0e0;
}

body.dark-theme main {
    background: #1e1e1e;
    box-shadow: 0 8px 28px rgba(0,0,0,0.4);
}

body.dark-theme .main-page-title, 
body.dark-theme .section-title, 
body.dark-theme .kl-title,
body.dark-theme h1, body.dark-theme h2, body.dark-theme h3 {
    color: #f5f5f5;
}

/* Карточки, блоки и посты */
body.dark-theme .feature-card, 
body.dark-theme .news-card, 
body.dark-theme .yt-video-item,
body.dark-theme .post,
body.dark-theme .auth-wrapper,
body.dark-theme .form-block,
body.dark-theme section[style*="background: #f8f9fa"] {
    background: #2a2a2a !important;
    border-color: #383838 !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2) !important;
}

/* Тексты внутри карточек */
body.dark-theme .feature-title,
body.dark-theme .news-title,
body.dark-theme .yt-title,
body.dark-theme .post-header {
    color: #e0e0e0;
}

body.dark-theme .feature-desc,
body.dark-theme .news-text,
body.dark-theme pre {
    color: #aaa;
}

/* Точки клева */
body.dark-theme .fp-item {
    background: #2a2a2a;
    border-color: #383838;
}
body.dark-theme .fp-text { color: #ccc; }
body.dark-theme .fp-thumb-empty { background: #333; border-color: #555; }

/* Формы и инпуты */
body.dark-theme .auth-input,
body.dark-theme .step-input,
body.dark-theme textarea {
    background: #333;
    color: #fff;
    border-color: #555;
}
body.dark-theme .auth-input:focus,
body.dark-theme .step-input:focus {
    border-color: #00a3f5;
}

/* Выпадающее меню десктоп */
body.dark-theme .dropdown-content {
    background: #2a2a2a;
    box-shadow: 0px 8px 16px rgba(0,0,0,0.5);
}
body.dark-theme .dropdown-content a {
    color: #ccc;
    border-bottom-color: #383838;
}
body.dark-theme .dropdown-content a:hover {
    background: #383838;
}

/* Комментарии и превью */
body.dark-theme .comments-section,
body.dark-theme .comm-list,
body.dark-theme .step-container,
body.dark-theme .preview-item {
    background: #2a2a2a !important;
    border-color: #444 !important;
    color: #e0e0e0;
}
body.dark-theme .comm-title { color: #ccc; }
body.dark-theme .preview-item b { color: #aaa; }

/* Теги */
body.dark-theme .one-tag {
    background: #333;
    color: #aaa;
}
body.dark-theme .one-tag.activefilter {
    background: #00a3f5;
    color: #fff;
}

/* Виджет времени */
body.dark-theme .game-timer-widget {
    background: #2a2a2a;
}
body.dark-theme .gt-label { color: #ccc; }
/* =========================================
   ТЁМНАЯ ТЕМА: ИСПРАВЛЕНИЯ ДЛЯ "ТОЧЕК КЛЕВА"
========================================= */
body.dark-theme .main-wrapper {
    background: #1e1e1e !important;
    box-shadow: 0 8px 28px rgba(0,0,0,0.5) !important;
}

body.dark-theme .kl-title,
body.dark-theme .tag-list b {
    color: #f5f5f5 !important;
}

body.dark-theme hr {
    border-color: #333 !important;
}

/* Перекрашиваем карточки постов */
body.dark-theme .post {
    background: #2a2a2a !important;
    border-color: #383838 !important;
}

/* Перекрашиваем неактивные теги */
body.dark-theme .tag-list a,
body.dark-theme .one-tag {
    background: #333 !important;
    color: #aaa !important;
}

/* Активные теги оставляем синими */
body.dark-theme .tag-list a.activeTag,
body.dark-theme .one-tag.activefilter {
    background: #00a3f5 !important;
    color: #fff !important;
}

/* Перекрашиваем кнопки страниц (пагинация) */
body.dark-theme .pag-btn {
    background: #333 !important;
    color: #aaa !important;
}
body.dark-theme .pag-btn.active {
    background: #00a3f5 !important;
    color: #fff !important;
}
body.dark-theme .pag-btn:hover:not(.active) {
    background: #444 !important;
}
/* =========================================
   ТЁМНАЯ ТЕМА: ИСПРАВЛЕНИЯ ФОРМЫ "ДОБАВИТЬ ПОСТ"
========================================= */

/* Делаем заголовки шагов белыми и читаемыми */
body.dark-theme .step-title {
    color: #ffffff !important;
}

/* Принудительно перекрашиваем серый текст правил (перебиваем inline-стили) */
body.dark-theme .step-container div[style*="color:#666"],
body.dark-theme .step-container div[style*="color: #666"],
body.dark-theme .step-container p[style*="color:#666"] {
    color: #d1d5db !important;
}

/* Перекрашиваем кнопки выбора (Трофей, Фарм и т.д.) */
body.dark-theme .checkbox-label {
    background: #333333 !important;
    border-color: #555555 !important;
    color: #ffffff !important;
}

/* Эффект при наведении на чекбокс */
body.dark-theme .checkbox-label:hover {
    background: #444444 !important;
    border-color: #00a3f5 !important;
}
/* =========================================
   ТЁМНАЯ ТЕМА: ИСПРАВЛЕНИЯ ДЛЯ КАЛЬКУЛЯТОРА
========================================= */

/* Заголовок выбранной категории ("Безынерционные" и т.д.) */
body.dark-theme #catHead {
    color: #f5f5f5 !important;
}

/* Кнопки переключения категорий */
body.dark-theme .category-menu button {
    background: #333333 !important;
    color: #e0e0e0 !important;
}
body.dark-theme .category-menu button.active,
body.dark-theme .category-menu button:hover {
    background: #00a3f5 !important;
    color: #ffffff !important;
}

/* Подписи к полям ввода (Катушка / Удилище, Износ) */
body.dark-theme .form-block label {
    color: #d1d5db !important;
}

/* Перекрашиваем слепящий нижний блок с инфой */
body.dark-theme div[style*="background-color: #f8f9fa"],
body.dark-theme div[style*="background: #f8f9fa"],
body.dark-theme div[style*="background-color: #ffffff"],
body.dark-theme div[style*="background: #ffffff"],
body.dark-theme div[style*="background-color:#fff"],
body.dark-theme div[style*="background:#fff"] {
    background: #2a2a2a !important;
    color: #e0e0e0 !important;
    border-color: #444 !important;
}
/* =========================================
   ТЁМНАЯ ТЕМА: КАЛЬКУЛЯТОРЫ (СКОРОСТИ И ПРИКОРМА)
========================================= */

/* Основные белые карточки */
body.dark-theme .speed-card,
body.dark-theme .calc-card {
    background: #2a2a2a !important;
    border-color: #383838 !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.4) !important;
}

/* Заголовки и подписи */
body.dark-theme .calc-card h2,
body.dark-theme .calc-card label,
body.dark-theme .speed-card label,
body.dark-theme .res-sub {
    color: #e0e0e0 !important;
}

/* Светло-серые блоки с информацией */
body.dark-theme .stat-box,
body.dark-theme .info-box {
    background: #333333 !important;
    border-color: #444444 !important;
    color: #cccccc !important;
}

/* Жирный текст и заголовки внутри инфо-блоков */
body.dark-theme .stat-row b,
body.dark-theme .info-box h5 {
    color: #ffffff !important;
}
body.dark-theme .stat-row {
    color: #aaaaaa !important;
}

/* Оранжевые блоки (Результат и Предупреждения) */
body.dark-theme .res-display,
body.dark-theme .dual-speed-note {
    background: #3d2c1d !important; /* Тёмно-оранжевый фон */
    border-color: #8c5310 !important; /* Тёмно-оранжевая рамка */
    color: #ff9d2e !important;
}
/* =========================================
   ТЁМНАЯ ТЕМА: РАЗДЕЛ "ГАЙДЫ"
========================================= */

/* Перекрашиваем огромный белый квадрат */
body.dark-theme .main-wrapper,
body.dark-theme div[style*="background: #ffffff"],
body.dark-theme div[style*="background:#fff"],
body.dark-theme div[style*="background-color: #ffffff"],
body.dark-theme div[style*="background-color: #fff"] {
    background: #2a2a2a !important;
    border-color: #383838 !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.4) !important;
}

/* Заголовок "Видео-Гайды" */
body.dark-theme h1, 
body.dark-theme h2, 
body.dark-theme h3 {
    color: #e0e0e0 !important;
}

/* Кнопки категорий ("Цены в магазинах" и т.д.) */
body.dark-theme a[style*="background: #eef2f5"],
body.dark-theme a[style*="background-color: #eef2f5"],
body.dark-theme .filter-btn,
body.dark-theme .nav-pills a {
    background: #333333 !important;
    color: #cccccc !important;
    border: 1px solid #444 !important;
}

/* Эффект наведения и активная кнопка */
body.dark-theme a[style*="background: #eef2f5"]:hover,
body.dark-theme .filter-btn:hover {
    background: #444444 !important;
    color: #ffffff !important;
}

/* Перекрашиваем сами карточки с видео, если у них есть белые рамки */
body.dark-theme .yt-video-item,
body.dark-theme .guide-card {
    background: #1e1e1e !important;
    border-color: #333 !important;
}