/* ==========================================
   СВЕТЛАЯ ТЕМА — ПРЕМИАЛЬНАЯ (БОРДО + ТЕРРАКОТА + КРЕМ)
   ИСПРАВЛЕНА: ТЁМНЫЙ ТЕКСТ, ПРИГЛУШЁННАЯ НЕЙРОСЕТЬ
   ========================================== */

body.light-theme {
    background: linear-gradient(135deg, #f5f1ea 0%, #fdfaf5 50%, #f5efe6 100%);
    color: #1e1b18;
}

/* === НЕЙРОСЕТЬ НА ФОНЕ === */
body.light-theme #neural-canvas {
    opacity: 0.25;
    filter: brightness(0.25) contrast(1.4) sepia(0.4) hue-rotate(-15deg);
    mix-blend-mode: normal;
}

/* === ВСЕ БЕЛЫЕ ТЕКСТЫ ПЕРЕКРАШИВАЕМ В ТЁМНЫЙ === */
body.light-theme .text-white,
body.light-theme h1.text-white,
body.light-theme h2.text-white,
body.light-theme h3.text-white,
body.light-theme h4.text-white,
body.light-theme span.text-white,
body.light-theme div.text-white,
body.light-theme p.text-white {
    color: #1e1b18 !important;
}

/* Заголовки и основной текст — максимальный контраст */
body.light-theme h1,
body.light-theme h2,
body.light-theme h3,
body.light-theme h4,
body.light-theme h5,
body.light-theme h6 {
    color: #1c1814;
    font-weight: 800;
}

body.light-theme p,
body.light-theme li,
body.light-theme .text-stone-300,
body.light-theme .text-stone-400 {
    color: #2d2a26 !important;
}

/* ТАРИФЫ */
body.light-theme .pricing-card {
    background: #ffffff !important;
    border: 1px solid #d6cfc4 !important;
    box-shadow: 0 4px 16px rgba(28, 25, 23, 0.08) !important;
}

body.light-theme .pricing-card:hover {
    border-color: #6b2714 !important;
    box-shadow: 0 8px 24px rgba(28, 25, 23, 0.15) !important;
}

body.light-theme .pricing-card.popular {
    border: 2px solid #6b2714 !important;
    box-shadow: 0 8px 32px rgba(107, 39, 20, 0.25) !important;
    transform: scale(1.03);
}

/* Карточки и элементы интерфейса — тёмный текст 
body.light-theme .glass-card,
body.light-theme .glass-card-2,
body.light-theme .glass-card-hover,
body.light-theme .pricing-card {
    color: #1e1b18;
}

body.light-theme .glass-card p,
body.light-theme .glass-card li span {
    color: #2d2a26;
}
*/
/* Акцентный текст (бордовый) — остаётся, но ярче для читаемости */
body.light-theme .gradient-text {
    background: linear-gradient(135deg, #6b2714 0%, #8b3a1f 40%, #a04b2c 70%, #bf6a42 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.1));
}

body.light-theme .glow-text {
    text-shadow: 0 0 8px rgba(107, 39, 20, 0.3);
}

/* Тёмный фон для карточек, если нужно */
body.light-theme .bg-stone-900,
body.light-theme .bg-stone-800,
body.light-theme .bg-stone-800\/50 {
    background-color: #e8e0d3 !important;
}

/* Кнопки и обводки */
body.light-theme .border-stone-800 {
    border-color: #cbc0ae !important;
}

body.light-theme .bg-amber-500\/10 {
    background-color: rgba(107, 39, 20, 0.12) !important;
}

body.light-theme .text-amber-400,
body.light-theme .text-amber-500 {
    color: #8b3a1f !important;
    font-weight: 600;
}

/* Остальные элементы оставляем как в вашем премиальном варианте */
body.light-theme .glass-card {
    background: rgba(255, 252, 245, 0.95);
    border: 1px solid rgba(107, 39, 20, 0.25);
    box-shadow: 0 8px 32px rgba(61, 26, 10, 0.08);
    backdrop-filter: blur(12px);
}

body.light-theme .glass-card-2 {
    background: rgba(255, 252, 245, 0.96);
    border: 1px solid rgba(107, 39, 20, 0.3);
    box-shadow: 0 8px 32px rgba(61, 26, 10, 0.1);
    backdrop-filter: blur(16px);
}

body.light-theme .glass-card-hover {
    background: rgba(255, 252, 245, 0.92);
    border: 1px solid rgba(107, 39, 20, 0.2);
}

body.light-theme .glass-card-hover:hover {
    box-shadow: 0 0 32px rgba(107, 39, 20, 0.15);
    border-color: rgba(139, 58, 31, 0.5);
}

body.light-theme header {
    background: rgba(255, 252, 245, 0.98);
    border-bottom: 1px solid rgba(107, 39, 20, 0.2);
}

body.light-theme nav a {
    color: #3d2f24;
    font-weight: 600;
}

body.light-theme nav a:hover {
    color: #6b2714;
}

body.light-theme .pricing-card {
    background: rgba(255, 252, 245, 0.92);
    border: 1px solid rgba(107, 39, 20, 0.2);
}

body.light-theme .pricing-card.popular {
    border: 2px solid #8b3a1f;
    box-shadow: 0 0 35px rgba(139, 58, 31, 0.25);
    transform: scale(1.02);
}

body.light-theme footer {
    background: rgba(255, 252, 245, 0.96);
    border-top: 1px solid rgba(107, 39, 20, 0.2);
}


/* Кнопка переключения темы */
.theme-toggle {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6b2714 0%, #8b3a1f 100%);
    border: 3px solid rgba(255, 252, 245, 0.95);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 1000;
}

.theme-toggle:hover {
    transform: scale(1.1);
}

.theme-toggle svg {
    width: 28px;
    height: 28px;
    fill: #f5f1ea;
}

/* Переключатель темы */
.theme-toggle {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);/* желтый */
    border: 3px solid rgba(255, 255, 255, 0.9);
    cursor: pointer;
    box-shadow: 0 6px 30px rgba(245, 158, 11, 0.5),
                0 0 60px rgba(245, 158, 11, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
	opacity: 0.4;
}
body.light-theme .theme-toggle {
    background: linear-gradient(135deg, #6b2714 0%, #8b3a1f 100%); /* коричневый */
    border: 3px solid rgba(255, 255, 255, 0.95);
    box-shadow: 0 6px 30px rgba(245, 158, 11, 0.5),
                0 0 60px rgba(245, 158, 11, 0.3);
}
.theme-toggle:hover {
    transform: scale(1.15) rotate(15deg);
    box-shadow: 0 8px 40px rgba(245, 158, 11, 0.7),
                0 0 80px rgba(245, 158, 11, 0.4);
	opacity: 1;
}
/*
.theme-toggle svg {
    width: 26px;
    height: 26px;
    fill: white;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}
*/




/* Кнопка переключения анимации */
.animation-toggle {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6b2714 0%, #8b3a1f 100%); /* коричневый */
	background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%); /* желтый */
    border: 3px solid rgba(255, 252, 245, 0.95);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 1000;
	opacity: 0.4;
}

.toggle-tooltip {
    position: fixed;
    bottom: 165px;
    right: 25px;
    background: #2a1a10;
    color: #f5f1ea;
    padding: 8px 14px;
    border-radius: 10px;
    font-size: 12px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
    white-space: nowrap;
}

.toggle-tooltip.show {
    opacity: 1;
}


.animation-toggle:hover {
    transform: scale(1.15);
    box-shadow: 0 8px 40px rgba(245, 158, 11, 0.7),
                0 0 80px rgba(245, 158, 11, 0.4);
	opacity: 1;
}

.animation-toggle svg {
    width: 26px;
    height: 26px;
    fill: white;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

body.light-theme .animation-toggle {
    background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%); /* желтый */
	background: linear-gradient(135deg, #6b2714 0%, #8b3a1f 100%); /* коричневый */
    border: 3px solid rgba(255, 255, 255, 0.95);
    box-shadow: 0 6px 30px rgba(245, 158, 11, 0.5),
                0 0 60px rgba(245, 158, 11, 0.3);
}

body.light-theme .animation-toggle:hover {
    box-shadow: 0 8px 40px rgba(245, 158, 11, 0.7),
                0 0 80px rgba(245, 158, 11, 0.4);
}

/* Отключение анимации */
body.animation-disabled #neural-canvas {
    display: none;
}

body.animation-disabled .pulse-ring {
    animation: none;
    box-shadow: 0 0 0 0 rgba(245, 158, 11, 0);
}

body.animation-disabled .scan-line {
    display: none;
}

body.animation-disabled * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
}






@media (max-width: 768px) {
    .theme-toggle { bottom: 20px; right: 20px; width: 45px; height: 45px; }
    .animation-toggle { bottom: 82px; right: 20px; width: 45px; height: 45px; }
    .toggle-tooltip { bottom: 135px; right: 15px; font-size: 10px; }
    body.light-theme .pricing-card.popular { transform: scale(1); }
}

/* Премиальные полоски сверху карточек 
body.light-theme .glass-card::before,
body.light-theme .pricing-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #6b2714, #8b3a1f, #bf6a42);
    border-radius: 12px 12px 0 0;
}
*/
body.light-theme .pricing-card.popular::before {
    height: 3px;
}

/* Кнопки */
body.light-theme .bg-gradient-to-r.from-amber-600.to-amber-500 {
    background: linear-gradient(135deg, #6b2714, #8b3a1f) !important;
    color: #fefaf5 !important;
}