:root {
    --bg: #04070f;
    --bg-card: #0a111f;
    --bg-card-soft: #101828;
    --text-primary: #f5f7ff;
    --text-muted: #95a1c2;
    --blue: #2d6bff;
    --green: #31c48d;
    --red: #ff6b6b;
    --border: rgba(255, 255, 255, 0.06);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Source Sans Pro", "Segoe UI", sans-serif;
    background-color: var(--bg);
    color: var(--text-primary);
    line-height: 1.5;
}

a {
    color: inherit;
    text-decoration: none;
}

.page {
    min-height: 100vh;
    position: relative;
    background: var(--bg);
    overflow: hidden;
    isolation: isolate;
}

.page::before,
.page::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
    z-index: -1;
    will-change: transform, opacity;
}

.page::before {
    width: 80vw;
    height: 80vw;
    top: -30vw;
    left: -15vw;
    background: radial-gradient(circle, rgba(68, 95, 255, 0.5) 0%, rgba(99, 102, 241, 0.3) 40%, rgba(68, 95, 255, 0) 70%);
    animation: floatBlue 20s cubic-bezier(0.4, 0, 0.6, 1) infinite;
    box-shadow: 0 0 100px rgba(68, 95, 255, 0.3);
}

.page::after {
    width: 70vw;
    height: 70vw;
    bottom: -20vw;
    right: -15vw;
    background: radial-gradient(circle, rgba(58, 255, 219, 0.35) 0%, rgba(34, 211, 238, 0.25) 40%, rgba(58, 255, 219, 0) 70%);
    animation: floatGreen 25s cubic-bezier(0.4, 0, 0.6, 1) infinite;
    box-shadow: 0 0 100px rgba(58, 255, 219, 0.2);
}

@keyframes floatBlue {
    0% {
        transform: translate3d(0, 0, 0) scale(1) rotate(0deg);
        opacity: 0.6;
        filter: blur(80px);
    }
    20% {
        transform: translate3d(10vw, 6vw, 0) scale(1.2) rotate(72deg);
        opacity: 0.85;
        filter: blur(90px);
    }
    40% {
        transform: translate3d(-8vw, 10vw, 0) scale(0.85) rotate(144deg);
        opacity: 0.7;
        filter: blur(70px);
    }
    60% {
        transform: translate3d(-12vw, 4vw, 0) scale(1.15) rotate(216deg);
        opacity: 0.9;
        filter: blur(95px);
    }
    80% {
        transform: translate3d(6vw, -8vw, 0) scale(0.95) rotate(288deg);
        opacity: 0.75;
        filter: blur(85px);
    }
    100% {
        transform: translate3d(0, 0, 0) scale(1) rotate(360deg);
        opacity: 0.6;
        filter: blur(80px);
    }
}

@keyframes floatGreen {
    0% {
        transform: translate3d(0, 0, 0) scale(1) rotate(0deg);
        opacity: 0.5;
        filter: blur(80px);
    }
    15% {
        transform: translate3d(-10vw, -6vw, 0) scale(1.25) rotate(-54deg);
        opacity: 0.75;
        filter: blur(95px);
    }
    30% {
        transform: translate3d(7vw, -12vw, 0) scale(0.8) rotate(-108deg);
        opacity: 0.6;
        filter: blur(70px);
    }
    50% {
        transform: translate3d(12vw, -4vw, 0) scale(1.15) rotate(-180deg);
        opacity: 0.8;
        filter: blur(90px);
    }
    70% {
        transform: translate3d(-7vw, 10vw, 0) scale(0.9) rotate(-252deg);
        opacity: 0.65;
        filter: blur(75px);
    }
    85% {
        transform: translate3d(4vw, 8vw, 0) scale(1.1) rotate(-306deg);
        opacity: 0.7;
        filter: blur(85px);
    }
    100% {
        transform: translate3d(0, 0, 0) scale(1) rotate(-360deg);
        opacity: 0.5;
        filter: blur(80px);
    }
}

.container {
    width: min(1200px, 100% - 48px);
    margin: 0 auto;
}

.site-header {
    padding: 32px 0 48px;
    background: linear-gradient(160deg, rgba(20, 31, 54, 0.9), rgba(4, 7, 15, 0.95));
}

.nav-bar {
    display: flex;
    align-items: center;
    gap: 24px;
}

.logo {
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.logo span {
    color: var(--blue);
}

.nav-links {
    display: flex;
    gap: 20px;
    color: var(--text-muted);
    font-size: 0.95rem;
    flex: 1;
}

.nav-links a:hover {
    color: var(--text-primary);
}

.nav-links .nav-dropdown-toggle {
    color: var(--text-muted);
}

.nav-links .nav-dropdown-toggle:hover,
.nav-links .nav-dropdown-toggle.is-active {
    color: var(--text-primary);
}

/* Dropdown menu styles */
.nav-dropdown {
    position: relative;
    display: inline-block;
}

.nav-dropdown-toggle {
    cursor: pointer;
    display: inline-block;
    color: inherit;
    text-decoration: none;
    position: relative;
    padding-right: 16px;
    padding-bottom: 8px; /* Добавляем padding снизу, чтобы создать область для hover */
}

.nav-dropdown-toggle::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 4px solid currentColor;
    opacity: 0.6;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-dropdown:hover .nav-dropdown-toggle::after {
    transform: translateY(-50%) rotate(180deg);
    opacity: 1;
}

.nav-dropdown-menu {
    position: absolute;
    top: 100%; /* Меню прилегает к триггеру (padding-bottom триггера создает визуальный отступ) */
    left: 0;
    min-width: 200px;
    background: rgba(10, 17, 40, 0.98);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
    z-index: 100;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    pointer-events: none;
}

.nav-dropdown:hover .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.nav-dropdown-menu a {
    display: block;
    padding: 10px 16px;
    color: var(--text-muted);
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.nav-dropdown-menu a:hover {
    background: rgba(45, 107, 255, 0.15);
    color: var(--text-primary);
}

.nav-dropdown-menu a.is-active {
    background: rgba(45, 107, 255, 0.2);
    color: var(--blue);
}

.nav-actions {
    display: flex;
    gap: 12px;
}

.nav-actions .btn {
    min-width: 120px;
    justify-content: center;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 6px;
    font-weight: 600;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease;
}

.btn-primary {
    background: linear-gradient(135deg, var(--blue) 0%, #1e4fd9 100%);
    color: #fff;
    box-shadow: 0 4px 16px rgba(45, 107, 255, 0.35), 0 2px 8px rgba(45, 107, 255, 0.2);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
    transform: translate(-50%, -50%);
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1), height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 0;
}

.btn-primary::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.btn-primary:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary:hover::after {
    opacity: 1;
}

.btn-primary:hover {
    box-shadow: 0 8px 24px rgba(45, 107, 255, 0.45), 0 4px 12px rgba(45, 107, 255, 0.3);
    transform: translateY(-2px);
    background: linear-gradient(135deg, #3d7bff 0%, #2d5fe9 100%);
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 4px 12px rgba(45, 107, 255, 0.3);
}

.btn-primary > * {
    position: relative;
    z-index: 2;
}

.btn-outline {
    border-color: rgba(255, 255, 255, 0.25);
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.btn-outline::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}

.btn-outline:hover::before {
    opacity: 1;
}

.btn-outline:hover {
    border-color: rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25), 0 2px 8px rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.btn-outline:active {
    transform: translateY(0);
}

.btn-outline > * {
    position: relative;
    z-index: 1;
}

.btn-ghost {
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.cabinet-hero {
    padding: 80px 0 40px;
    background: radial-gradient(circle at top right, rgba(59, 110, 235, 0.3), transparent 55%);
}

.cabinet-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(320px, 0.8fr);
    gap: 48px;
    align-items: start;
}

.cabinet-hero-text h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin: 12px 0;
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.24em;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.hero-stats {
    margin-top: 32px;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.hero-stats div {
    padding: 16px 20px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    min-width: 160px;
}

.hero-stats span {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.hero-stats strong {
    display: block;
    margin-top: 6px;
    font-size: 1.4rem;
}

.hero-stats small {
    color: var(--text-muted);
}

.cabinet-plan-card {
    background: rgba(11, 19, 35, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.plan-progress {
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.02);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.plan-progress span {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    overflow: hidden;
}

.progress-bar span {
    display: block;
    height: 100%;
    background: var(--blue);
}

.plan-date {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.plan-actions {
    display: flex;
    gap: 12px;
}

.cabinet-main {
    padding: 24px 0 80px;
}

.cabinet-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 0.9fr);
    gap: 32px;
}

.cabinet-card,
.metric-card {
    background: rgba(6, 11, 23, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 18px;
    padding: 24px;
}

.metric-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}

.metric-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.metric-card strong {
    display: block;
    margin: 10px 0 4px;
    font-size: 1.4rem;
}

.metric-card span {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.card-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 20px;
}

.link-arrow {
    color: var(--blue);
    font-weight: 600;
}

.focus-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.focus-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding: 16px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.focus-list li:last-child {
    border-bottom: 0;
}

.focus-list span {
    color: var(--blue);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
}

.focus-list h4 {
    margin: 6px 0;
}

.tasks-list,
.notifications ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.tasks-list li,
.notifications li {
    padding: 16px 18px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    display: flex;
    justify-content: space-between;
    gap: 16px;
    background: rgba(255, 255, 255, 0.02);
}

.task-btn {
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: transparent;
    color: #fff;
    border-radius: 999px;
    padding: 8px 18px;
    font-size: 0.9rem;
    cursor: pointer;
}

.notifications small {
    color: var(--text-muted);
}

@media (max-width: 1100px) {
    .cabinet-hero-grid {
        grid-template-columns: 1fr;
    }

    .plan-actions {
        flex-direction: column;
    }

    .cabinet-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .cabinet-hero {
        padding-top: 48px;
    }

    .hero-stats div {
        flex: 1 1 calc(50% - 20px);
        min-width: 140px;
    }

    .focus-list li {
        flex-direction: column;
        align-items: flex-start;
    }

    .plan-actions .btn {
        width: 100%;
    }

    .tasks-list li,
    .notifications li {
        flex-direction: column;
        align-items: flex-start;
    }

    .nav-actions.is-open .btn {
        width: 100%;
    }
}

.btn:hover {
    transform: translateY(-1px);
}

.nav-toggle {
    width: 44px;
    height: 44px;
    margin-left: auto;
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
}

.nav-toggle span {
    height: 2px;
    width: 20px;
    background: #fff;
    margin-inline: auto;
}

.hero {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
    align-items: center;
    margin-top: 56px;
}

.hero-text h1 {
    font-size: clamp(2.8rem, 5vw, 4.6rem);
    margin: 12px 0 18px;
    line-height: 1.05;
}

.hero-text p {
    color: var(--text-muted);
    max-width: 480px;
}

.tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--blue);
}

.tag::before {
    content: "";
    display: inline-block;
    width: 32px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--blue));
}

.hero-actions {
    display: flex;
    gap: 16px;
    margin-top: 24px;
    flex-wrap: wrap;
}

.hero-illustration img {
    width: 100%;
    height: auto;
    display: block;
    filter: drop-shadow(0 30px 90px rgba(4, 7, 15, 0.8));
}

.ticker {
    margin-top: 48px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(6, 10, 20, 0.85);
}

.ticker-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    padding: 18px 0;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.ticker-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.pair {
    font-weight: 600;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.change.up { color: var(--green); }
.change.down { color: var(--red); }

.section {
    padding: 72px 0;
}

.section-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
    margin-bottom: 32px;
}

.section-head h2 {
    margin: 0 0 8px;
    font-size: clamp(2rem, 3vw, 3rem);
}

.section-head p {
    color: var(--text-muted);
    margin: 0;
    max-width: 520px;
}

.coins {
    background: var(--bg-card);
}

.coin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.coin-card {
    background: var(--bg-card-soft);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid var(--border);
}

.coin-head {
    display: flex;
    gap: 14px;
    align-items: center;
    margin-bottom: 16px;
}

.coin-head p {
    margin: 0;
    font-weight: 600;
}

.price {
    font-size: 1.1rem;
    color: #fff;
}

.coin-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0));
    position: relative;
    overflow: hidden;
}

.coin-icon::after {
    content: "";
    position: absolute;
    inset: 10px;
    border-radius: inherit;
    background: rgba(0, 0, 0, 0.38);
}

.coin-icon.btc { background: linear-gradient(135deg, #ffbe44, #f7931a); }
.coin-icon.eth { background: linear-gradient(135deg, #8b5cf6, #5b21b6); }
.coin-icon.xrp { background: linear-gradient(135deg, #34d399, #059669); }
.coin-icon.bch { background: linear-gradient(135deg, #fb7185, #e11d48); }
.coin-icon.neo { background: linear-gradient(135deg, #2dd4bf, #0f766e); }

.coin-chart {
    height: 80px;
    border-radius: 10px;
    background-image: linear-gradient(120deg, rgba(255, 255, 255, 0.08), transparent);
    position: relative;
    overflow: hidden;
}

.coin-chart::after {
    content: "";
    position: absolute;
    inset: 12px 16px;
    background-repeat: no-repeat;
    background-size: cover;
}

.coin-chart.up::after {
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 120 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cpolyline fill='none' stroke='%2331c48d' stroke-width='3' points='0,30 15,28 30,20 50,25 70,10 95,12 120,5'/%3E%3C/svg%3E");
}

.coin-chart.down::after {
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 120 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cpolyline fill='none' stroke='%23ff6b6b' stroke-width='3' points='0,10 25,14 45,20 70,30 90,27 120,32'/%3E%3C/svg%3E");
}

.process {
    background: radial-gradient(circle at top left, rgba(58, 255, 219, 0.1), transparent 60%), var(--bg);
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.process-grid article {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 14px;
    padding: 28px;
    box-shadow: 0 15px 40px rgba(2, 4, 10, 0.6);
    min-height: 220px;
}

.step-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--blue);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    margin-bottom: 14px;
}

.process-grid h3 {
    margin: 0 0 8px;
}

.process-grid p {
    margin: 0 0 12px;
    color: var(--text-muted);
}

.process-grid a {
    font-weight: 600;
    color: var(--blue);
}

.why {
    background: var(--bg-card);
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
    align-items: center;
}

.why-text ul {
    list-style: none;
    padding: 0;
    margin: 32px 0 0;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.why-text li {
    display: flex;
    gap: 16px;
    background: var(--bg-card-soft);
    border-radius: 12px;
    padding: 16px 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
}

.why-text li span {
    font-weight: 600;
    color: var(--blue);
}

.why-text li h3 {
    margin: 0;
}

.why-text li p {
    margin: 8px 0 0;
    color: var(--text-muted);
}

.why-art img {
    width: 100%;
    height: auto;
}

.testimonials-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}

.testimonial {
    background: var(--bg-card);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.04);
    padding: 24px;
    box-shadow: 0 25px 60px rgba(2, 4, 12, 0.65);
}

.author {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.author img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
}

.author span {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.testimonial p {
    margin: 0;
    color: var(--text-muted);
}

.app {
    background: var(--bg-card-soft);
}

.app-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
    align-items: center;
}

.store-row {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.store-btn {
    padding: 12px 24px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.05);
    font-weight: 600;
    color: #fff;
}

.app-art img {
    width: 100%;
    filter: drop-shadow(0 24px 80px rgba(3, 4, 12, 0.85));
}

.faq {
    background: var(--bg-card);
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-list details {
    background: var(--bg-card-soft);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 18px 20px;
}

.faq-list summary {
    cursor: pointer;
    font-weight: 600;
    outline: none;
    padding-right: 32px;
    position: relative;
}

.faq-list summary::after {
    content: "+";
    position: absolute;
    right: 0;
    top: 0;
    color: var(--text-muted);
    font-weight: 700;
}

.faq-list details[open] summary::after {
    content: "–";
}

.faq-list p {
    margin-top: 12px;
    color: var(--text-muted);
}

.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 24px;
    background: radial-gradient(circle at 20% 0, rgba(68, 95, 255, 0.35), transparent 45%),
                radial-gradient(circle at 80% 10%, rgba(58, 255, 219, 0.25), transparent 35%),
                var(--bg);
}

.auth-shell {
    width: min(1200px, 100%);
    display: grid;
    grid-template-columns: 510px 1fr;
    gap: 48px;
    align-items: center;
}

.auth-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 40px;
    display: flex;
    flex-direction: column;
    gap: 32px;
    box-shadow: 0 50px 120px rgba(3, 6, 15, 0.55);
}

.auth-head h1 {
    font-size: 2.4rem;
    margin: 0 0 8px;
    text-align: center;
}

.auth-head p {
    color: var(--text-muted);
    margin: 0;
    text-align: center;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.auth-field {
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-weight: 600;
    color: var(--text-muted);
}

.auth-field input {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 6px;
    padding: 14px 16px;
    color: var(--text-primary);
    font-size: 1rem;
}

.auth-field input::placeholder {
    color: rgba(255, 255, 255, 0.45);
}

.auth-field.has-icon {
    position: relative;
}

.input-toggle {
    position: absolute;
    right: 14px;
    bottom: 14px;
    border: none;
    background: none;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    padding: 0;
}

.auth-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.password-hint {
    margin: -12px 0 0;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.95rem;
}

.auth-checkbox {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.auth-checkbox input {
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    position: relative;
    flex-shrink: 0;
}

.auth-checkbox input:checked {
    background: var(--blue);
    border-color: var(--blue);
}

.auth-checkbox input:checked::after {
    content: "";
    position: absolute;
    inset: 3px 4px;
    border: 2px solid #fff;
    border-left: 0;
    border-top: 0;
    transform: rotate(45deg);
}

.auth-submit {
    width: 100%;
    font-size: 1.1rem;
}

.auth-link {
    color: var(--text-muted);
    text-align: center;
    display: inline-block;
    margin-top: -8px;
}

.auth-helper {
    text-align: center;
    color: var(--text-muted);
    margin: 0;
}

.auth-helper a {
    color: #fff;
}

.auth-visual {
    background: rgba(27, 112, 241, 0.04);
    border: none;
    border-radius: 18px;
    padding: 32px;
    text-align: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-visual-inner {
    background: radial-gradient(circle, rgba(12, 19, 33, 0.9), rgba(4, 7, 15, 0.9));
    border-radius: 16px;
    padding: 32px;
}

.auth-visual img {
    width: 100%;
    max-width: 420px;
    filter: drop-shadow(0 40px 120px rgba(4, 7, 15, 0.9));
}

.auth-copy {
    margin-top: 28px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.95rem;
}

.auth-visual::after {
    content: "";
    position: absolute;
    inset: 12px;
    border: none;
    border-radius: 14px;
    pointer-events: none;
}

.nav-links a.is-active {
    color: var(--text-primary);
}

.blog-header {
    padding-bottom: 32px;
    background: linear-gradient(155deg, rgba(10, 16, 34, 0.95), rgba(4, 7, 15, 0.95));
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.blog-hero-section {
    background: linear-gradient(160deg, rgba(17, 26, 48, 0.9), rgba(6, 10, 26, 0.95));
    padding: 40px 0 10px;
    position: relative;
    overflow: hidden;
}

.blog-hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(45, 107, 255, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(60px);
    animation: pulse 8s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.6; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.1); }
}

.blog-hero {
    display: flex;
    justify-content: space-between;
    gap: 48px;
    margin-top: 48px;
    position: relative;
    z-index: 1;
}

.blog-hero h1 {
    font-size: clamp(2.6rem, 5vw, 3.6rem);
    margin-bottom: 16px;
    background: linear-gradient(135deg, #ffffff 0%, rgba(255, 255, 255, 0.85) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.blog-hero p {
    color: var(--text-muted);
    max-width: 520px;
    font-size: 1.15rem;
    line-height: 1.7;
}

.blog-hero-meta {
    display: grid;
    gap: 16px;
    min-width: 260px;
}

.blog-hero-meta div {
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    gap: 6px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.blog-hero-meta div::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.blog-hero-meta div:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.blog-hero-meta div:hover::before {
    left: 100%;
}

.hero-telegram {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.hero-telegram .telegram-link {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(45, 107, 255, 0.18);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #2d6bff;
}

.hero-telegram svg {
    display: block;
}

.blog-hero-meta strong {
    display: block;
    font-size: 1.4rem;
    margin-bottom: 4px;
    font-weight: 700;
    background: linear-gradient(135deg, #ffffff 0%, rgba(255, 255, 255, 0.8) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.blog-hero-meta span {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.5;
}

.pill {
    display: inline-flex;
    align-items: center;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--blue);
    background: rgba(45, 107, 255, 0.15);
    padding: 6px 14px;
    border-radius: 999px;
    font-weight: 600;
    transition: all 0.25s ease;
    border: 1px solid transparent;
}

.blog-card:hover .pill {
    background: rgba(45, 107, 255, 0.25);
    border-color: rgba(45, 107, 255, 0.3);
    transform: scale(1.05);
}

.blog-feature {
    background: var(--bg-card-soft);
    padding: 64px 0;
    position: relative;
    overflow: hidden;
}

.blog-feature::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 50%, rgba(45, 107, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.blog-feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 48px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.blog-feature-media {
    min-height: 360px;
    border-radius: 20px;
    background:
        radial-gradient(circle at 25% 25%, rgba(79, 126, 255, 0.65), transparent 55%),
        linear-gradient(145deg, #050a18, #060b1d);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 50px 140px rgba(4, 6, 16, 0.7), 0 0 60px rgba(45, 107, 255, 0.2);
    position: relative;
    overflow: hidden;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.blog-feature-media:hover {
    transform: translateY(-4px);
    box-shadow: 0 60px 160px rgba(4, 6, 16, 0.8), 0 0 80px rgba(45, 107, 255, 0.3);
}

.blog-feature-media::after {
    content: "";
    position: absolute;
    inset: 18px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    pointer-events: none;
}

.blog-feature-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
    display: block;
}

.blog-feature-text h2 {
    margin: 16px 0;
    font-size: clamp(2rem, 4vw, 2.8rem);
    line-height: 1.3;
    font-weight: 700;
}

.blog-feature-text h2 a {
    color: #fff;
    transition: color 0.25s ease;
    background: linear-gradient(135deg, #ffffff 0%, rgba(255, 255, 255, 0.9) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.blog-feature-text h2 a:hover {
    background: linear-gradient(135deg, #4d8bff 0%, #2d6bff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
}

.blog-feature-text p {
    color: var(--text-muted);
    margin-bottom: 16px;
    font-size: 1.1rem;
    line-height: 1.7;
}

.blog-card-meta {
    display: flex;
    gap: 16px;
    color: var(--text-muted);
    font-size: 0.9rem;
    flex-wrap: wrap;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.blog-card:hover .blog-card-meta {
    border-top-color: rgba(255, 255, 255, 0.12);
}

.blog-card-meta span:not(:last-child)::after {
    content: '•';
    margin-left: 16px;
    opacity: 0.4;
    color: var(--text-muted);
}

.blog-filter-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: -8px;
}

.blog-filter {
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: transparent;
    color: var(--text-muted);
    padding: 8px 16px;
    border-radius: 999px;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.blog-filter.is-active,
.blog-filter:hover {
    background: rgba(45, 107, 255, 0.15);
    color: #fff;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.blog-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 280px;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.25), 0 2px 8px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(20px);
}

.blog-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, rgba(45, 107, 255, 0.3), rgba(58, 255, 219, 0.1));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.35s ease;
    pointer-events: none;
}

.blog-card:hover {
    transform: translateY(-10px) scale(1.015);
    border-color: rgba(45, 107, 255, 0.3);
    box-shadow: 0 20px 60px rgba(45, 107, 255, 0.3), 0 8px 32px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(45, 107, 255, 0.1);
    background: rgba(255, 255, 255, 0.06);
}

.blog-card:hover::before {
    opacity: 1;
}

.blog-thumb {
    width: 100%;
    height: 320px; /* Фиксированная высота для вертикальной ориентации */
    min-height: 320px;
    overflow: hidden;
    position: relative;
    background: rgba(255,255,255,0.03);
    border-radius: 12px 12px 0 0;
}

.blog-thumb::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.3) 100%);
    opacity: 0;
    transition: opacity 0.35s ease;
    pointer-events: none;
}

.blog-card:hover .blog-thumb::after {
    opacity: 1;
}

.blog-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Обрезаем изображение, сохраняя пропорции */
    object-position: center; /* Центрируем изображение при обрезке */
    display: block;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.blog-card:hover .blog-thumb img {
    transform: scale(1.08);
}

.blog-thumb::after {
    content: "";
    position: absolute;
    inset: 0;
    border: none;
    border-radius: 0;
    opacity: 0;
    pointer-events: none;
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
    .blog-thumb {
        height: 240px;
        min-height: 240px;
    }
    
    .blog-filters-form {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-group {
        min-width: 100%;
    }
    
    .filter-actions {
        width: 100%;
        flex-direction: column;
    }
    
    .filter-actions .btn {
        width: 100%;
    }
    
    .blog-card:hover {
        transform: translateY(-4px) scale(1.01);
    }
    
    .blog-hero-meta div:hover {
        transform: none;
    }
}

.blog-card-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    flex: 1;
    background: linear-gradient(180deg, transparent 0%, rgba(10, 17, 31, 0.3) 100%);
}

.blog-card-body h3 {
    margin: 0;
    font-size: 1.4rem;
    line-height: 1.35;
    font-weight: 700;
    transition: color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    letter-spacing: -0.01em;
}

.blog-card-body h3 a {
    color: #fff;
    transition: color 0.25s ease;
    display: block;
}

.blog-card-body h3 a:hover {
    color: #4d8bff;
}

.blog-card:hover .blog-card-body h3 a {
    color: #4d8bff;
}

.blog-card-body p {
    color: var(--text-muted);
    margin: 0;
    line-height: 1.65;
    font-size: 0.95rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.pill-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.vip-flag {
    padding: 4px 10px;
    border-radius: 999px;
    background: linear-gradient(135deg, #f97316, #fb923c);
    color: #0b0f1b;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    box-shadow: 0 2px 8px rgba(249, 115, 22, 0.3);
    transition: all 0.25s ease;
}

.blog-card:hover .vip-flag {
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.5);
    transform: scale(1.05);
}

.vip-card {
    border: 1px solid rgba(249, 115, 22, 0.4);
    position: relative;
}

.vip-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    border: 1px solid rgba(249, 115, 22, 0.2);
    pointer-events: none;
}

.blog-subscribe {
    background: linear-gradient(140deg, rgba(45, 107, 255, 0.3), rgba(12, 17, 33, 0.9));
    position: relative;
    overflow: hidden;
}

.blog-subscribe::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(45, 107, 255, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(60px);
    animation: pulse 8s ease-in-out infinite;
}

.blog-subscribe-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    position: relative;
    z-index: 1;
}

.blog-subscribe-inner h2 {
    font-size: clamp(1.8rem, 4vw, 2.4rem);
    margin-bottom: 12px;
    background: linear-gradient(135deg, #ffffff 0%, rgba(255, 255, 255, 0.9) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

.blog-subscribe-inner p {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.6;
}

.subscribe-form {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    align-items: center;
}

.subscribe-form input {
    flex: 1;
    min-width: 220px;
    padding: 14px 16px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(0, 0, 0, 0.3);
    color: #fff;
    font-size: 15px;
    transition: all 0.25s ease;
}

.subscribe-form input:focus {
    outline: none;
    border-color: rgba(45, 107, 255, 0.5);
    background: rgba(0, 0, 0, 0.4);
    box-shadow: 0 0 0 3px rgba(45, 107, 255, 0.1);
}

.subscribe-form input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.subscribe-form button {
    flex: 0 0 auto;
    min-width: 180px;
    align-self: center;
}

.blog-post {
    padding-bottom: 80px;
}

.blog-post-header {
    padding: 48px 0 40px;
    position: relative;
}

.blog-post-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: -10%;
    width: 120%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(45, 107, 255, 0.3), transparent);
}

.blog-post-header h1 {
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    line-height: 1.15;
    font-weight: 800;
    margin: 20px 0 16px 0;
    background: linear-gradient(135deg, #ffffff 0%, rgba(255, 255, 255, 0.85) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.03em;
}

.blog-post-header p {
    color: var(--text-muted);
    max-width: 700px;
    font-size: 1.2rem;
    line-height: 1.75;
    margin-top: 16px;
    font-weight: 400;
}

.blog-post-meta {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    color: var(--text-muted);
    padding: 8px 0;
    margin: 12px 0 16px 0;
    border: none;
    background: transparent;
    backdrop-filter: none;
    box-shadow: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: visible;
}


.blog-post-meta:hover {
    opacity: 0.9;
}


.blog-post-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    line-height: 1.4;
    color: var(--text-muted);
}

.blog-post-meta span:not(:last-child)::after {
    content: '·';
    margin-left: 12px;
    color: var(--text-muted);
    opacity: 0.5;
}

.blog-post-meta span::before {
    content: '';
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: rgba(45, 107, 255, 0.5);
    display: inline-block;
    flex-shrink: 0;
}

/* Теги постов - улучшенный стиль */
.post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.post-tag {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.post-tag::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(45, 107, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.4s ease, height 0.4s ease;
    z-index: 0;
}

.post-tag:hover::before {
    width: 200px;
    height: 200px;
}

.post-tag:hover {
    background: rgba(45, 107, 255, 0.15);
    border-color: rgba(45, 107, 255, 0.4);
    color: #6bd6ff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(45, 107, 255, 0.2);
}

.post-tag:active {
    transform: translateY(0);
}

.post-tag span {
    position: relative;
    z-index: 1;
}

.author-badge {
    display: flex;
    align-items: center;
    gap: 12px;
}

.author-badge img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 6px 18px rgba(3, 5, 12, 0.4);
}

.author-name {
    color: #fff;
    font-weight: 600;
    display: block;
}

.author-role {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.support-btn {
    margin-top: 8px;
    border-color: rgba(45, 107, 255, 0.6);
    color: var(--blue);
    background: rgba(45, 107, 255, 0.12);
}

.blog-post-main {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(240px, 1fr);
    gap: 40px;
}

.blog-post-article {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 40px 120px rgba(4, 6, 18, 0.6), 0 0 60px rgba(45, 107, 255, 0.1);
    position: relative;
}

.blog-post-article::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, rgba(45, 107, 255, 0.2), rgba(58, 255, 219, 0.1));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0.5;
    pointer-events: none;
}

.blog-post-cover {
    height: 480px;
    background: radial-gradient(circle at 20% 20%, rgba(25, 65, 255, 0.5), transparent 60%),
                linear-gradient(160deg, #040914, #050a1b);
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    overflow: hidden;
    position: relative;
    margin-bottom: 40px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.blog-post-cover::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.2) 100%);
    pointer-events: none;
}

.blog-post-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.blog-post-content {
    padding: 48px;
    position: relative;
}

.blog-post-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(45, 107, 255, 0.3), transparent);
}

.blog-post-content h2 {
    margin-top: 48px;
    margin-bottom: 20px;
    font-size: clamp(1.8rem, 4vw, 2.4rem);
    font-weight: 700;
    line-height: 1.3;
    color: #fff;
    background: linear-gradient(135deg, #ffffff 0%, rgba(255, 255, 255, 0.85) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    padding-bottom: 12px;
    border-bottom: 2px solid rgba(45, 107, 255, 0.2);
}

.blog-post-content h3 {
    margin-top: 40px;
    margin-bottom: 16px;
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 600;
    line-height: 1.4;
    color: #fff;
}

.blog-post-content p {
    color: rgba(255, 255, 255, 0.85);
    margin: 20px 0;
    line-height: 1.9;
    font-size: 17px;
}

.blog-post-content ul {
    padding-left: 20px;
    color: var(--text-muted);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

blockquote {
    margin: 32px 0;
    padding: 24px 28px;
    border-left: 4px solid var(--blue);
    background: linear-gradient(90deg, rgba(45, 107, 255, 0.1), rgba(45, 107, 255, 0.05));
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    line-height: 1.7;
    position: relative;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

blockquote::before {
    content: '"';
    position: absolute;
    top: 12px;
    left: 20px;
    font-size: 48px;
    color: rgba(45, 107, 255, 0.3);
    font-family: Georgia, serif;
    line-height: 1;
}

.blog-tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 32px;
}

.blog-tags span {
    padding: 6px 16px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    font-size: 0.9rem;
    color: var(--text-muted);
}

.blog-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sidebar-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.sidebar-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, rgba(45, 107, 255, 0.5), rgba(58, 255, 219, 0.3));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sidebar-card:hover {
    border-color: rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.06);
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.sidebar-card:hover::before {
    opacity: 1;
}

.sidebar-card h4 {
    margin-top: 0;
}

.sidebar-card p {
    color: var(--text-muted);
}

.sidebar-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
.sidebar-card form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sidebar-card input {
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(0, 0, 0, 0.2);
    padding: 12px 14px;
    color: #fff;
}
    flex-direction: column;
    gap: 12px;
}

.sidebar-card a {
    color: #fff;
}

.blog-related > div:first-child {
    margin-bottom: 24px;
}

.vip-article {
    position: relative;
}

.vip-preview {
    position: relative;
    min-height: 160px;
}

.vip-fade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(4, 7, 15, 0) 0%, rgba(4, 7, 15, 0.9) 90%);
    pointer-events: none;
}

.vip-lock {
    padding: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.02);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.vip-lock p {
    color: var(--text-muted);
    margin: 0;
}

.vip-lock .btn {
    align-self: flex-start;
}

.comments-section {
    background: rgba(4, 7, 15, 0.9);
    position: relative;
    overflow: hidden;
}

.comments-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(45, 107, 255, 0.3), transparent);
}

.comments-wrapper {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.comments-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 8px;
}

.comments-head h2 {
    font-size: clamp(1.8rem, 4vw, 2.4rem);
    font-weight: 700;
    background: linear-gradient(135deg, #ffffff 0%, rgba(255, 255, 255, 0.9) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
}

.comments-head p {
    color: var(--text-muted);
    margin: 8px 0 0;
}

.comments-count {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.comment-form {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 18px;
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.comment-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, rgba(45, 107, 255, 0.5), rgba(58, 255, 219, 0.3));
}

.comment-form label {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 0.95rem;
    color: var(--text-muted);
}

.comment-form input,
.comment-form textarea {
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(0, 0, 0, 0.2);
    padding: 12px 14px;
    color: #fff;
    font-family: inherit;
    resize: vertical;
}

.comment-form button {
    align-self: flex-start;
    min-width: 200px;
}

.comment-form textarea {
    transition: all 0.25s ease;
}

.comment-form textarea:focus {
    outline: none;
    border-color: rgba(45, 107, 255, 0.5);
    background: rgba(0, 0, 0, 0.3);
    box-shadow: 0 0 0 3px rgba(45, 107, 255, 0.1);
}

/* Улучшенные стили для блока действий поста */
.blog-post-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 40px;
    padding: 24px 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: linear-gradient(180deg, transparent 0%, rgba(255, 255, 255, 0.02) 100%);
    backdrop-filter: blur(10px);
    border-radius: 0 0 20px 20px;
}

.telegram-channel-cta {
    display: flex;
    justify-content: center;
    padding: 0 32px 40px;
    margin-top: 12px;
}

.sidebar-telegram-cta {
    padding: 20px;
    text-align: center;
}

.sidebar-telegram-cta .telegram-channel-btn {
    width: 100%;
    min-width: 0;
}

.telegram-channel-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 22px;
    min-width: 240px;
    border-radius: 8px;
    background: linear-gradient(135deg, #6eb2ff 0%, #4a90e2 100%);
    color: #fff;
    font-weight: 600;
    box-shadow: 0 12px 28px rgba(74, 144, 226, 0.35);
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.telegram-channel-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 32px rgba(74, 144, 226, 0.45);
    filter: brightness(1.03);
}

.telegram-channel-btn:active {
    transform: translateY(0);
    box-shadow: 0 10px 20px rgba(74, 144, 226, 0.3);
}

/* Улучшенные стили для тегов поста */
.blog-post-header .tag-link,
.blog-post-header a[href*="tag.php"] {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
    position: relative;
    overflow: hidden;
}

.blog-post-header .tag-link::before,
.blog-post-header a[href*="tag.php"]::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.blog-post-header .tag-link:hover,
.blog-post-header a[href*="tag.php"]:hover {
    background: rgba(45, 107, 255, 0.2);
    border-color: rgba(45, 107, 255, 0.4);
    color: #4d8bff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(45, 107, 255, 0.2);
}

.blog-post-header .tag-link:hover::before,
.blog-post-header a[href*="tag.php"]:hover::before {
    left: 100%;
}

.comment-alert {
    background: rgba(255, 255, 255, 0.02);
    border: 1px dashed rgba(255, 255, 255, 0.2);
    border-radius: 14px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    color: var(--text-muted);
}

.comment-alert-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.comment-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.comment-item {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 20px 24px;
    transition: all 0.3s ease;
    position: relative;
}

.comment-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, rgba(45, 107, 255, 0.5), rgba(58, 255, 219, 0.3));
    border-radius: 16px 0 0 16px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.comment-item:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.12);
    transform: translateX(4px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.comment-item:hover::before {
    opacity: 1;
}

.comment-meta {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 8px;
}

.comment-meta span {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.comment-item p {
    margin: 0;
    color: var(--text-muted);
}


.footer {
    background: #020410;
    padding: 56px 0 32px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 32px;
    margin-bottom: 32px;
}

.footer h4 {
    margin: 0 0 12px;
    font-size: 1rem;
}

.footer a {
    display: block;
    color: var(--text-muted);
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.social-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 16px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

@media (max-width: 1100px) {
    .auth-shell {
        grid-template-columns: 1fr;
        max-width: 560px;
    }

    .auth-visual {
        display: none;
    }
}

@media (max-width: 960px) {
    .nav-links,
    .nav-actions {
        display: none;
    }

    /* Мобильное меню - объединенный блок */
    .nav-links.is-open {
        display: flex;
        flex-direction: column;
        gap: 8px;
        position: absolute;
        top: 72px;
        left: 50%;
        transform: translateX(-50%);
        width: min(360px, 90vw);
        background: rgba(4, 7, 15, 0.98);
        border: 1px solid rgba(255, 255, 255, 0.12);
        padding: 20px 20px 16px 20px;
        border-radius: 12px 12px 0 0;
        z-index: 10;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    }

    /* Навигационные ссылки внутри мобильного меню */
    .nav-links.is-open a {
        display: block;
        padding: 12px 16px;
        color: rgba(255, 255, 255, 0.9);
        text-decoration: none;
        border-radius: 8px;
        transition: all 0.2s ease;
        font-size: 15px;
        text-align: left;
    }

    .nav-links.is-open a:hover,
    .nav-links.is-open a.is-active {
        background: rgba(45, 107, 255, 0.15);
        color: #4d8bff;
    }

    /* Мобильная версия dropdown меню */
    .nav-links.is-open .nav-dropdown {
        position: static;
    }

    .nav-links.is-open .nav-dropdown-toggle {
        display: block;
    }

    .nav-links.is-open .nav-dropdown-toggle::after {
        display: none;
    }

    .nav-links.is-open .nav-dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        background: transparent;
        border: none;
        box-shadow: none;
        padding: 0;
        margin: 0;
        margin-left: 16px;
    }

    .nav-links.is-open .nav-dropdown-menu a {
        padding: 8px 16px;
        font-size: 14px;
        color: rgba(255, 255, 255, 0.7);
    }

    /* Кнопки действий - позиционируются под навигацией */
    .nav-actions.is-open {
        display: flex;
        flex-direction: column;
        gap: 10px;
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        width: min(360px, 90vw);
        background: rgba(4, 7, 15, 0.98);
        border: 1px solid rgba(255, 255, 255, 0.12);
        border-top: 1px solid rgba(255, 255, 255, 0.08);
        padding: 16px 20px 20px 20px;
        border-radius: 0 0 12px 12px;
        z-index: 9;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
        margin-top: -1px;
        /* Позиция top будет устанавливаться через JavaScript */
        top: auto;
    }

    /* Разделитель перед кнопками действий */
    .nav-actions.is-open::before {
        content: '';
        display: block;
        height: 1px;
        background: rgba(255, 255, 255, 0.1);
        margin: -16px -20px 12px -20px;
    }

    .nav-actions.is-open .btn {
        width: 100%;
        justify-content: center;
        padding: 12px 20px;
    }

    /* Общий контейнер для мобильного меню с прокруткой */
    .site-header.blog-header .nav-bar {
        position: relative;
    }

    /* Когда меню открыто, добавляем затемнение фона */
    .nav-links.is-open::after {
        content: '';
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: -1;
        top: 72px;
    }

    /* Ограничиваем максимальную высоту меню и добавляем прокрутку */
    .nav-links.is-open {
        max-height: calc(100vh - 140px);
        overflow-y: auto;
    }

    .nav-actions.is-open {
        max-height: none;
        overflow: visible;
    }

    /* Скрываем скроллбар, но оставляем прокрутку */
    .nav-links.is-open::-webkit-scrollbar {
        width: 6px;
    }

    .nav-links.is-open::-webkit-scrollbar-track {
        background: rgba(255, 255, 255, 0.05);
        border-radius: 3px;
    }

    .nav-links.is-open::-webkit-scrollbar-thumb {
        background: rgba(255, 255, 255, 0.2);
        border-radius: 3px;
    }

    .nav-links.is-open::-webkit-scrollbar-thumb:hover {
        background: rgba(255, 255, 255, 0.3);
    }

    .nav-toggle {
        display: flex;
    }

    .hero {
        margin-top: 32px;
    }

    .blog-hero {
        flex-direction: column;
    }

    .blog-hero-meta {
        width: 100%;
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }

    .blog-subscribe-inner {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .site-header {
        text-align: center;
    }

    .hero {
        text-align: center;
        gap: 32px;
    }

    .hero-illustration {
        order: -1;
    }

    .hero-illustration img {
        max-width: 360px;
        margin: 0 auto;
    }

    .hero-actions {
        justify-content: center;
        width: 100%;
    }

    .ticker-row {
        display: flex;
        overflow-x: auto;
        gap: 14px;
        padding-bottom: 8px;
        scrollbar-width: none;
    }

    .ticker-row::-webkit-scrollbar {
        display: none;
    }

    .ticker-item {
        min-width: 180px;
        background: rgba(255, 255, 255, 0.02);
        padding: 12px 16px;
        border-radius: 10px;
        border: 1px solid rgba(255, 255, 255, 0.05);
    }

    .section {
        padding: 56px 0;
    }

    .process-grid article,
    .why-text,
    .why-text li,
    .testimonial,
    .app-grid,
    .faq-list details {
        text-align: center;
    }

    .why-text li {
        flex-direction: column;
        align-items: center;
    }

    .testimonials-row {
        display: flex;
        overflow-x: auto;
        gap: 16px;
        scrollbar-width: none;
    }

    .testimonials-row::-webkit-scrollbar {
        display: none;
    }

    .testimonial {
        min-width: 260px;
    }

    .blog-feature-grid {
        grid-template-columns: 1fr;
    }

    .blog-post-main {
        grid-template-columns: 1fr;
    }

    .blog-post-meta {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 12px;
    }
}

@media (max-width: 640px) {
    .auth-page {
        padding: 24px 16px;
    }

    .auth-card {
        padding: 32px 24px;
    }

    .auth-row {
        grid-template-columns: 1fr;
    }

    .site-header {
        padding: 24px 0 40px;
    }

    .section-head {
        flex-direction: column;
        text-align: center;
    }

    .hero-actions,
    .store-row {
        flex-direction: column;
        align-items: stretch;
    }

    .coin-grid,
    .process-grid,
    .testimonials-row {
        grid-template-columns: 1fr;
    }

    .footer-grid,
    .footer-bottom {
        text-align: center;
        flex-direction: column;
        align-items: center;
    }

    .blog-post-header {
        flex-direction: column;
    }
}

/* Улучшенные фильтры блога */
.blog-filters-container {
    margin-bottom: 40px;
    padding: 24px;
    background: rgba(10, 17, 31, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.blog-filters-form {
    display: flex;
    gap: 20px;
    align-items: flex-end;
    flex-wrap: wrap;
}

.filter-group {
    flex: 1;
    min-width: 200px;
}

.filter-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 10px;
    color: rgba(255, 255, 255, 0.95);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.filter-select {
    width: 100%;
    padding: 12px 16px;
    background: rgba(15, 22, 36, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    color: #fff;
    font-size: 14px;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.25s ease;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 40px;
}

.filter-select:hover {
    border-color: rgba(255, 255, 255, 0.2);
    background-color: rgba(15, 22, 36, 0.95);
}

.filter-select:focus {
    outline: none;
    border-color: rgba(45, 107, 255, 0.5);
    box-shadow: 0 0 0 3px rgba(45, 107, 255, 0.1);
    background-color: rgba(15, 22, 36, 0.95);
}

.filter-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.filter-actions .btn {
    white-space: nowrap;
}

/* Темный фон для выпадающих списков фильтров */
select,
.filter-select {
    background-color: #0f1624 !important;
    color: #fff !important;
}

select option,
.filter-select option {
    background-color: #0f1624 !important;
    color: #fff !important;
    padding: 10px;
}

select option:hover,
select option:checked,
select option:focus,
.filter-select option:hover,
.filter-select option:checked,
.filter-select option:focus {
    background-color: #1a2032 !important;
    color: #fff !important;
}

/* Светлая тема: фильтры и select'ы */
body.light-theme .blog-filters-container {
    background: rgba(248, 249, 250, 0.9);
    border-color: rgba(0, 0, 0, 0.08);
}

body.light-theme .filter-group label {
    color: rgba(33, 37, 41, 0.9);
}

body.light-theme select,
body.light-theme .filter-select {
    background-color: #ffffff !important;
    color: #212529 !important;
    border-color: rgba(0, 0, 0, 0.12) !important;
}

body.light-theme select option,
body.light-theme .filter-select option {
    background-color: #ffffff !important;
    color: #212529 !important;
}

body.light-theme select option:hover,
body.light-theme select option:checked,
body.light-theme select option:focus,
body.light-theme .filter-select option:hover,
body.light-theme .filter-select option:checked,
body.light-theme .filter-select option:focus {
    background-color: #f1f3f5 !important;
    color: #212529 !important;
}

/* Улучшенные стили для секции монет на главной */
.home-top-coins {
    padding-top: 16px;
    padding-bottom: 0;
}

#topCoinsGrid {
    gap: 16px;
}

.coin-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    transition: transform 0.3s ease;
}

.coin-card-link:hover {
    transform: translateY(-4px);
}

.coin-card {
    background: rgba(255, 255, 255, 0.04) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 16px !important;
    padding: 18px !important;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.coin-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(45, 107, 255, 0.1), rgba(58, 255, 219, 0.05));
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.coin-card-link:hover .coin-card {
    border-color: rgba(255, 255, 255, 0.2) !important;
    box-shadow: 0 8px 24px rgba(45, 107, 255, 0.2);
    transform: translateY(-2px);
}

.coin-card-link:hover .coin-card::before {
    opacity: 1;
}

/* Дополнительные улучшения для страницы поста */
.blog-post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 24px 0;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease;
}

.blog-post-content img:hover {
    transform: scale(1.02);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
}

.blog-post-content code {
    background: rgba(45, 107, 255, 0.15);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.9em;
    color: #4d8bff;
    font-family: 'Courier New', monospace;
}

.blog-post-content pre {
    background: rgba(10, 17, 31, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 20px;
    overflow-x: auto;
    margin: 24px 0;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.blog-post-content pre code {
    background: none;
    padding: 0;
    color: rgba(255, 255, 255, 0.9);
}

/* Адаптивность для страницы поста */
@media (max-width: 768px) {
    .blog-post-header {
        flex-direction: column;
        gap: 24px;
    }
    
    .blog-post-content {
        padding: 32px 24px !important;
    }
    
    .telegram-channel-cta {
        padding: 0 20px 32px;
    }
    
    .telegram-channel-btn {
        width: 100%;
        min-width: 0;
    }
    
    .sidebar-telegram-cta {
        padding: 16px;
    }
    
    .blog-post-actions {
        flex-wrap: wrap;
        padding: 20px 24px !important;
    }
    
    .blog-post-cover {
        height: 320px !important;
        margin-bottom: 24px !important;
    }
    
    .sidebar-card {
        padding: 20px;
    }
    
    .related-post-card:hover {
        transform: translateY(-2px) scale(1.01) !important;
    }
    
    .blog-post-meta {
        min-width: auto;
    }
}

/* Улучшенные стили для страницы автора */
.author-profile-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 40px;
    margin: 32px 0;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), 0 0 40px rgba(45, 107, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.author-profile-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, rgba(45, 107, 255, 0.5), rgba(58, 255, 219, 0.3));
}

.author-profile-header {
    display: flex;
    align-items: center;
    gap: 32px;
    margin-bottom: 40px;
    position: relative;
    z-index: 1;
}

.author-avatar {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3), 0 0 0 8px rgba(45, 107, 255, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.author-avatar::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    padding: 4px;
    background: linear-gradient(135deg, rgba(45, 107, 255, 0.5), rgba(58, 255, 219, 0.3));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.author-profile-card:hover .author-avatar {
    transform: scale(1.05);
    box-shadow: 0 12px 32px rgba(45, 107, 255, 0.3), 0 0 0 8px rgba(45, 107, 255, 0.15);
}

.author-profile-card:hover .author-avatar::after {
    opacity: 1;
}

.author-avatar-placeholder {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(45, 107, 255, 0.4), rgba(99, 102, 241, 0.4));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 56px;
    font-weight: 700;
    color: #fff;
    border: 4px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3), 0 0 0 8px rgba(45, 107, 255, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.author-avatar-placeholder::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    padding: 4px;
    background: linear-gradient(135deg, rgba(45, 107, 255, 0.5), rgba(58, 255, 219, 0.3));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.author-profile-card:hover .author-avatar-placeholder {
    transform: scale(1.05);
    box-shadow: 0 12px 32px rgba(45, 107, 255, 0.3), 0 0 0 8px rgba(45, 107, 255, 0.15);
}

.author-profile-card:hover .author-avatar-placeholder::after {
    opacity: 1;
}

.author-info {
    flex: 1;
}

.author-info h1 {
    margin: 0 0 12px 0;
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 700;
    background: linear-gradient(135deg, #ffffff 0%, rgba(255, 255, 255, 0.9) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.author-info p {
    margin: 0;
    opacity: 0.85;
    font-size: 17px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
}

.author-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 32px;
}

.author-stat-item {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 24px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.author-stat-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent);
    transition: left 0.5s ease;
}

.author-stat-item:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(45, 107, 255, 0.2);
}

.author-stat-item:hover::before {
    left: 100%;
}

.author-stat-item strong {
    display: block;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 8px;
    background: linear-gradient(135deg, #2f80ed 0%, #4d8bff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.author-stat-item span {
    display: block;
    font-size: 14px;
    opacity: 0.85;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.author-pl {
    background: linear-gradient(135deg, rgba(47, 128, 237, 0.15), rgba(47, 128, 237, 0.08));
    border: 1px solid rgba(47, 128, 237, 0.3);
    border-radius: 16px;
    padding: 28px;
    margin-top: 32px;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(47, 128, 237, 0.2);
    transition: all 0.3s ease;
}

.author-pl::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, rgba(47, 128, 237, 0.5), rgba(58, 255, 219, 0.3));
}

.author-pl:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(47, 128, 237, 0.3);
}

.author-pl strong {
    display: block;
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.2;
}

.author-pl.positive {
    background: linear-gradient(135deg, rgba(48, 224, 161, 0.15), rgba(48, 224, 161, 0.08));
    border-color: rgba(48, 224, 161, 0.3);
    box-shadow: 0 8px 24px rgba(48, 224, 161, 0.2);
}

.author-pl.positive::before {
    background: linear-gradient(90deg, rgba(48, 224, 161, 0.5), rgba(58, 255, 219, 0.3));
}

.author-pl.positive:hover {
    box-shadow: 0 12px 32px rgba(48, 224, 161, 0.3);
}

.author-pl.positive strong {
    color: #30E0A1;
    text-shadow: 0 0 20px rgba(48, 224, 161, 0.3);
}

.author-pl.negative {
    background: linear-gradient(135deg, rgba(255, 77, 77, 0.15), rgba(255, 77, 77, 0.08));
    border-color: rgba(255, 77, 77, 0.3);
    box-shadow: 0 8px 24px rgba(255, 77, 77, 0.2);
}

.author-pl.negative::before {
    background: linear-gradient(90deg, rgba(255, 77, 77, 0.5), rgba(255, 107, 107, 0.3));
}

.author-pl.negative:hover {
    box-shadow: 0 12px 32px rgba(255, 77, 77, 0.3);
}

.author-pl.negative strong {
    color: #FF4D4D;
    text-shadow: 0 0 20px rgba(255, 77, 77, 0.3);
}

.author-pl span {
    display: block;
    font-size: 14px;
    opacity: 0.85;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.author-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    margin-top: 16px;
}

.author-badges .badge-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 14px;
    padding: 6px;
    cursor: help;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.author-badges .badge-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(45, 107, 255, 0.2), rgba(58, 255, 219, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.author-badges .badge-item:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-4px) scale(1.1);
    box-shadow: 0 8px 24px rgba(45, 107, 255, 0.3);
}

.author-badges .badge-item:hover::before {
    opacity: 1;
}

/* Адаптивность для страницы автора */
@media (max-width: 768px) {
    .author-profile-card {
        padding: 28px 24px;
        margin: 24px 0;
    }
    
    .author-profile-header {
        flex-direction: column;
        text-align: center;
        gap: 24px;
    }
    
    .author-avatar,
    .author-avatar-placeholder {
        width: 120px;
        height: 120px;
        font-size: 48px;
    }
    
    .author-info h1 {
        font-size: 2rem;
    }
    
    .author-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    
    .author-stat-item {
        padding: 20px;
    }
    
    .author-stat-item strong {
        font-size: 28px;
    }
    
    .author-pl {
        padding: 24px;
    }
    
    .author-pl strong {
        font-size: 32px;
    }
}

@media (max-width: 480px) {
    .author-stats {
        grid-template-columns: 1fr;
    }
    
    .author-profile-card {
        padding: 24px 20px;
    }
}

/* ============================================
   ПЕРЕКЛЮЧАТЕЛЬ ТЕМЫ
   ============================================ */
.theme-toggle {
    display: flex;
    gap: 4px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 2px;
    backdrop-filter: blur(10px);
}

.theme-toggle button {
    padding: 6px 8px;
    border: none;
    background: transparent;
    color: var(--text-muted);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 28px;
}

.theme-toggle button:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
}

.theme-toggle button.active {
    background: var(--blue);
    color: #fff;
    box-shadow: 0 2px 8px rgba(45, 107, 255, 0.3);
}

.theme-toggle button svg {
    flex-shrink: 0;
    width: 12px;
    height: 12px;
}

/* ============================================
   СВЕТЛАЯ ТЕМА
   ============================================ */
body.light-theme {
    --bg: #ffffff;
    --bg-card: #f8f9fa;
    --bg-card-soft: #f1f3f5;
    --text-primary: #1a1a1a;
    --text-muted: #6c757d;
    --border: rgba(0, 0, 0, 0.1);
}

body.light-theme .page {
    background: var(--bg);
}

body.light-theme .page::before,
body.light-theme .page::after {
    opacity: 0.3;
}

/* Header */
body.light-theme .site-header {
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.95), rgba(248, 249, 250, 0.95));
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

body.light-theme .nav-links a {
    color: var(--text-muted);
}

body.light-theme .nav-links a:hover {
    color: var(--text-primary);
}

body.light-theme .nav-links a.is-active {
    color: var(--blue);
}

body.light-theme .nav-links .nav-dropdown-toggle {
    color: var(--text-muted);
}

body.light-theme .nav-links .nav-dropdown-toggle:hover,
body.light-theme .nav-links .nav-dropdown-toggle.is-active {
    color: var(--blue);
}

body.light-theme .nav-dropdown-menu {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

body.light-theme .nav-dropdown-menu a {
    color: var(--text-muted);
}

body.light-theme .nav-dropdown-menu a:hover {
    background: rgba(45, 107, 255, 0.1);
    color: var(--text-primary);
}

body.light-theme .nav-dropdown-menu a.is-active {
    background: rgba(45, 107, 255, 0.15);
    color: var(--blue);
}

/* Основные элементы */
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: var(--text-primary);
}

body.light-theme p {
    color: var(--text-primary);
}

body.light-theme small {
    color: var(--text-muted);
}

body.light-theme span {
    color: var(--text-primary);
}

body.light-theme strong {
    color: var(--text-primary);
}

body.light-theme .eyebrow {
    color: var(--text-muted);
}

/* Кнопки */
body.light-theme .btn-primary {
    background: linear-gradient(135deg, #2d6bff 0%, #1e4fd9 100%);
    color: #fff;
    box-shadow: 0 4px 12px rgba(45, 107, 255, 0.3);
}

body.light-theme .btn-primary:hover {
    box-shadow: 0 6px 20px rgba(45, 107, 255, 0.4);
}

body.light-theme .btn-outline,
body.light-theme .btn-ghost {
    border-color: rgba(0, 0, 0, 0.2);
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.8);
}

body.light-theme .btn-outline:hover,
body.light-theme .btn-ghost:hover {
    background: rgba(255, 255, 255, 1);
    border-color: rgba(0, 0, 0, 0.3);
}

/* Карточки блога */
body.light-theme .blog-card {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.08);
}

body.light-theme .blog-card:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
    border-color: rgba(45, 107, 255, 0.2);
}

body.light-theme .blog-card-body {
    background: transparent;
}

body.light-theme .blog-card-body h3 a {
    color: var(--text-primary) !important;
    -webkit-text-fill-color: var(--text-primary) !important;
    background: none !important;
}

body.light-theme .blog-card-body h3 a:hover {
    color: var(--blue) !important;
    -webkit-text-fill-color: var(--blue) !important;
}

body.light-theme .blog-card-body p {
    color: var(--text-muted);
}

/* Featured post title */
body.light-theme .blog-feature-text h2 a {
    background: linear-gradient(135deg, #1a1a1a 0%, #4a5568 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    color: var(--text-primary) !important;
}

body.light-theme .blog-feature-text h2 a:hover {
    background: linear-gradient(135deg, #2d6bff 0%, #1e4ed8 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
}

/* Статья блога */
body.light-theme .blog-post-article {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(0, 0, 0, 0.08);
}

body.light-theme .blog-post-content {
    color: var(--text-primary);
}

body.light-theme .blog-post-content h2,
body.light-theme .blog-post-content h3 {
    color: var(--text-primary);
}

/* Таблицы */
body.light-theme table thead th {
    background: rgba(255, 255, 255, 0.5);
    border-bottom: 2px solid rgba(0, 0, 0, 0.1);
    color: var(--text-primary);
}

body.light-theme table tbody tr {
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
}

body.light-theme table tbody tr:hover {
    background: rgba(0, 0, 0, 0.03);
}

body.light-theme table td {
    color: var(--text-primary);
}

/* Footer */
body.light-theme .footer {
    background: var(--bg-card);
    border-top: 1px solid var(--border);
}

body.light-theme .footer h4 {
    color: var(--text-primary);
}

body.light-theme .footer a {
    color: var(--text-muted);
}

body.light-theme .footer a:hover {
    color: var(--blue);
}

body.light-theme .footer p {
    color: var(--text-muted);
}

body.light-theme .footer-bottom {
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    color: var(--text-muted);
}

body.light-theme .footer-bottom a {
    color: var(--text-muted);
}

body.light-theme .footer-bottom a:hover {
    color: var(--blue);
}

body.light-theme .footer .logo {
    color: var(--text-primary);
}

body.light-theme .footer .logo span {
    color: var(--blue);
}

body.light-theme .social-row a {
    color: var(--text-muted);
}

body.light-theme .social-row a:hover {
    color: var(--blue);
}

/* Cookie consent */
body.light-theme #cookie-consent-banner div {
    background: rgba(255, 255, 255, 0.98) !important;
    border: 1px solid rgba(0, 0, 0, 0.12) !important;
    color: var(--text-primary) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15) !important;
}

body.light-theme #cookie-consent-banner a {
    color: #2f80ed !important;
}

/* Flash сообщения */
body.light-theme .flash {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: var(--text-primary);
}

body.light-theme .flash.flash-success {
    background: rgba(49, 196, 141, 0.1);
    border-color: rgba(49, 196, 141, 0.3);
    color: #1a1a1a;
}

body.light-theme .flash.flash-error {
    background: rgba(255, 107, 107, 0.1);
    border-color: rgba(255, 107, 107, 0.3);
    color: #1a1a1a;
}

/* Переключатель темы в светлой теме */
body.light-theme .theme-toggle {
    background: rgba(0, 0, 0, 0.04);
    border-color: rgba(0, 0, 0, 0.12);
}

body.light-theme .theme-toggle button {
    color: var(--text-muted);
}

body.light-theme .theme-toggle button:hover {
    background: rgba(0, 0, 0, 0.06);
    color: var(--text-primary);
}

body.light-theme .theme-toggle button.active {
    background: var(--blue);
    color: #fff;
    box-shadow: 0 2px 8px rgba(45, 107, 255, 0.3);
}

/* Хлебные крошки в светлой теме */
body.light-theme .breadcrumbs {
    background: transparent;
}

body.light-theme .breadcrumbs-inner {
    color: var(--text-muted);
}

body.light-theme .breadcrumbs-link {
    color: var(--text-muted);
}

body.light-theme .breadcrumbs-link:hover {
    color: var(--blue);
}

body.light-theme .breadcrumbs-current {
    color: var(--text-primary);
}

body.light-theme .breadcrumbs-separator {
    color: var(--text-muted);
    opacity: 0.5;
}

/* Заголовок поста в светлой теме */
body.light-theme .blog-post-header h1 {
    background: linear-gradient(135deg, #1a1a1a 0%, #4a5568 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

body.light-theme .blog-post-header p {
    color: var(--text-primary);
}

/* Правая панель метаданных поста в светлой теме */
body.light-theme .blog-post-meta {
    background: transparent;
    border: none;
    color: var(--text-muted);
    box-shadow: none;
}

body.light-theme .blog-post-meta:hover {
    opacity: 0.9;
}

body.light-theme .blog-post-meta span {
    color: var(--text-primary);
}

body.light-theme .blog-post-meta span::before {
    background: rgba(45, 107, 255, 0.6);
}

/* Теги в светлой теме */
body.light-theme .post-tag {
    background: rgba(0, 0, 0, 0.04);
    border-color: rgba(0, 0, 0, 0.12);
    color: var(--text-primary);
}

body.light-theme .post-tag:hover {
    background: rgba(45, 107, 255, 0.12);
    border-color: rgba(45, 107, 255, 0.3);
    color: var(--blue);
    box-shadow: 0 4px 12px rgba(45, 107, 255, 0.15);
}

/* Комментарии в светлой теме */
body.light-theme .comments-section {
    background: var(--bg);
}

body.light-theme .comments-head h2 {
    background: linear-gradient(135deg, #1a1a1a 0%, #4a5568 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

body.light-theme .comments-head p {
    color: var(--text-muted);
}

body.light-theme .comments-count {
    color: var(--text-muted);
}

body.light-theme .comment-form {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

body.light-theme .comment-form label {
    color: var(--text-primary);
}

body.light-theme .comment-form input,
body.light-theme .comment-form textarea {
    border: 1px solid rgba(0, 0, 0, 0.15);
    background: rgba(255, 255, 255, 1);
    color: var(--text-primary);
}

body.light-theme .comment-form input:focus,
body.light-theme .comment-form textarea:focus {
    border-color: var(--blue);
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 0 0 3px rgba(45, 107, 255, 0.1);
}

body.light-theme .comment-item {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

body.light-theme .comment-item:hover {
    background: rgba(255, 255, 255, 1);
    border-color: rgba(45, 107, 255, 0.2);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

body.light-theme .comment-meta span {
    color: var(--text-muted);
}

body.light-theme .comment-item p {
    color: var(--text-primary);
}

/* Стили для ответов на комментарии */
.comment-reply-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.7);
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
    margin-left: 8px;
}

.comment-reply-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.3);
}

.comment-reply {
    margin-top: 16px;
}

.comment-replies {
    margin-left: 32px;
    margin-top: 16px;
    padding-left: 16px;
    border-left: 2px solid rgba(255, 255, 255, 0.1);
}

.comment-reply-form {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

body.light-theme .comment-reply-btn {
    border-color: rgba(0, 0, 0, 0.15);
    color: var(--text-muted);
}

body.light-theme .comment-reply-btn:hover {
    background: rgba(0, 0, 0, 0.05);
    color: var(--text-primary);
    border-color: rgba(0, 0, 0, 0.25);
}

body.light-theme .comment-replies {
    border-left-color: rgba(0, 0, 0, 0.1);
}

body.light-theme .comment-reply-form {
    border-top-color: rgba(0, 0, 0, 0.1);
}

/* Карточки валют на главной в светлой теме */
body.light-theme .coin-card {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

body.light-theme .coin-card:hover {
    border-color: rgba(45, 107, 255, 0.3);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

body.light-theme .coin-head p {
    color: var(--text-primary);
}

body.light-theme .price {
    color: var(--text-primary);
}

body.light-theme .coin-icon::after {
    background: rgba(255, 255, 255, 0.3);
}

body.light-theme .coin-chart {
    background: rgba(248, 249, 250, 0.8);
    border: 1px solid rgba(0, 0, 0, 0.08);
}

/* Дополнительные стили для элементов поста */
body.light-theme .blog-post-header .pill {
    background: rgba(45, 107, 255, 0.1);
    color: var(--blue);
    border: 1px solid rgba(45, 107, 255, 0.2);
}

body.light-theme .blog-post-header a[href*="tag.php"] {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: var(--text-primary);
}

body.light-theme .blog-post-header a[href*="tag.php"]:hover {
    background: rgba(45, 107, 255, 0.1);
    border-color: rgba(45, 107, 255, 0.3);
    color: var(--blue);
}

/* Стили для pill-меток в светлой теме */
body.light-theme .pill {
    background: rgba(45, 107, 255, 0.1);
    color: var(--blue);
}

body.light-theme .vip-flag {
    background: rgba(255, 193, 7, 0.15);
    color: #ff9800;
    border: 1px solid rgba(255, 193, 7, 0.3);
}

/* Карточки валют на главной - переопределение inline стилей */
body.light-theme .coin-card-link .coin-card {
    background: rgba(255, 255, 255, 0.95) !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
}

body.light-theme .coin-card-link:hover .coin-card {
    border-color: rgba(45, 107, 255, 0.3) !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1) !important;
}

body.light-theme .coin-card-link .coin-card strong {
    color: var(--text-primary) !important;
}

body.light-theme .coin-card-link .coin-card span {
    color: var(--text-muted) !important;
}

/* Автор профиль и похожие статьи в светлой теме */
body.light-theme .author-profile-card {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

body.light-theme .author-profile-card:hover {
    border-color: rgba(45, 107, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

body.light-theme .author-profile-header h3 {
    color: var(--text-primary);
}

body.light-theme .author-profile-header p {
    color: var(--text-muted);
}

/* Улучшенные стили для карточек валют - более выразительный дизайн */
body.light-theme .coin-card {
    transition: all 0.3s ease;
}

body.light-theme .coin-card:hover {
    transform: translateY(-4px);
}

body.light-theme .coin-chart {
    background: rgba(248, 249, 250, 0.5);
}

/* Дополнительные стили для элементов, которые могут использовать белый текст */
body.light-theme .section h1,
body.light-theme .section h2,
body.light-theme .section h3 {
    color: var(--text-primary);
}

body.light-theme .blog-post-header::before {
    background: linear-gradient(90deg, transparent, rgba(45, 107, 255, 0.2), transparent);
}

body.light-theme .comments-section::before {
    background: linear-gradient(90deg, transparent, rgba(45, 107, 255, 0.2), transparent);
}

/* Дополнительные стили для карточек автора */
body.light-theme .author-info h1 {
    background: linear-gradient(135deg, #1a1a1a 0%, #4a5568 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

body.light-theme .author-info p {
    color: var(--text-muted);
}

body.light-theme .author-avatar {
    border-color: rgba(0, 0, 0, 0.1);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1), 0 0 0 8px rgba(45, 107, 255, 0.05);
}

body.light-theme .author-avatar-placeholder {
    border-color: rgba(0, 0, 0, 0.1);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1), 0 0 0 8px rgba(45, 107, 255, 0.05);
}

body.light-theme .author-profile-card:hover .author-avatar {
    box-shadow: 0 12px 32px rgba(45, 107, 255, 0.2), 0 0 0 8px rgba(45, 107, 255, 0.1);
}

body.light-theme .author-profile-card:hover .author-avatar-placeholder {
    box-shadow: 0 12px 32px rgba(45, 107, 255, 0.2), 0 0 0 8px rgba(45, 107, 255, 0.1);
}

/* Сайдбар карточки в светлой теме */
body.light-theme .sidebar-card {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

body.light-theme .sidebar-card:hover {
    border-color: rgba(45, 107, 255, 0.2);
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
}

body.light-theme .sidebar-card h4 {
    color: var(--text-primary);
}

body.light-theme .sidebar-card a {
    color: var(--text-primary);
}

body.light-theme .sidebar-card a:hover {
    color: var(--blue);
}

body.light-theme .sidebar-card input {
    border: 1px solid rgba(0, 0, 0, 0.15);
    background: rgba(255, 255, 255, 1);
    color: var(--text-primary);
}

body.light-theme .sidebar-card input:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(45, 107, 255, 0.1);
}

/* Похожие статьи в светлой теме */
body.light-theme .related-posts {
    border-top-color: rgba(0, 0, 0, 0.1);
}

body.light-theme .related-posts-title {
    color: var(--text-primary);
}

body.light-theme .related-post-card {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

body.light-theme .related-post-card:hover {
    border-color: rgba(45, 107, 255, 0.2);
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
}

body.light-theme .related-post-title {
    color: var(--text-primary);
}

body.light-theme .related-post-meta {
    color: var(--text-muted);
}

body.light-theme .related-post-category {
    color: var(--text-muted);
}

/* Telegram кнопка в сайдбаре */
body.light-theme .telegram-channel-btn {
    background: var(--blue);
    color: #fff;
}

body.light-theme .telegram-channel-btn:hover {
    background: #1e4fd9;
}

/* Блок социальных кнопок в светлой теме */
body.light-theme .social-share-block {
    background: rgba(255, 255, 255, 0.95) !important;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

body.light-theme .social-share-label {
    color: var(--text-primary) !important;
}

body.light-theme .social-share-btn {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: var(--text-primary);
}

body.light-theme .social-share-btn:hover {
    background: rgba(255, 255, 255, 1);
    border-color: rgba(0, 0, 0, 0.15);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

body.light-theme .social-share-btn.whatsapp:hover {
    background: rgba(37, 211, 102, 0.1);
    border-color: rgba(37, 211, 102, 0.3);
    color: #25d366;
}

body.light-theme .social-share-btn.telegram:hover {
    background: rgba(37, 150, 190, 0.1);
    border-color: rgba(37, 150, 190, 0.3);
    color: #2596be;
}

body.light-theme .social-share-btn.vk:hover {
    background: rgba(76, 117, 163, 0.1);
    border-color: rgba(76, 117, 163, 0.3);
    color: #4c75a3;
}

body.light-theme .social-share-btn.ok:hover {
    background: rgba(238, 130, 0, 0.1);
    border-color: rgba(238, 130, 0, 0.3);
    color: #ee8200;
}

/* Теги в посте - переопределение inline стилей */
body.light-theme .blog-post-header a[href*="tag.php"],
body.light-theme .blog-post-content a[href*="tag.php"] {
    background: rgba(255, 255, 255, 0.8) !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
    color: var(--text-primary) !important;
}

body.light-theme .blog-post-header a[href*="tag.php"]:hover,
body.light-theme .blog-post-content a[href*="tag.php"]:hover {
    background: rgba(45, 107, 255, 0.1) !important;
    border-color: rgba(45, 107, 255, 0.3) !important;
    color: var(--blue) !important;
}

/* Disclaimer блок в светлой теме */
body.light-theme .post-disclaimer {
    background: rgba(255, 193, 7, 0.1) !important;
    border: 1px solid rgba(255, 193, 7, 0.3) !important;
    color: var(--text-primary) !important;
}

body.light-theme .post-disclaimer strong {
    color: #ff9800 !important;
}

/* Дополнительные улучшения для карточек валют */
body.light-theme .coin-card-link .coin-card div {
    color: var(--text-primary) !important;
}

body.light-theme .coin-card-link .coin-card div div {
    color: var(--text-primary) !important;
}

/* Блок "Обратите внимание" в футере - переопределение inline стилей */
body.light-theme .container[style*="border-top"] {
    border-top-color: rgba(0, 0, 0, 0.1) !important;
    border-bottom-color: rgba(0, 0, 0, 0.1) !important;
}

body.light-theme .container[style*="border-top"] > div[style*="background: rgba(255, 193, 7"] {
    background: rgba(255, 193, 7, 0.15) !important;
    border-color: rgba(255, 193, 7, 0.4) !important;
}

body.light-theme .container[style*="border-top"] h4[style*="color: #ffc107"] {
    color: #ff9800 !important;
}

body.light-theme .container[style*="border-top"] p[style*="color: #E7ECF3"] {
    color: var(--text-primary) !important;
    opacity: 0.9 !important;
}

/* Улучшение стилей для social-share-block */
body.light-theme .social-share-block {
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

/* Блок действий поста в светлой теме */
body.light-theme .blog-post-actions {
    border-top: 1px solid rgba(0, 0, 0, 0.1) !important;
    border-bottom: none !important;
    background: rgba(255, 255, 255, 0.5) !important;
}

/* Карточка автора в сайдбаре - переопределение inline стилей */
body.light-theme .sidebar-card h4[style*="color: #fff"] {
    color: var(--text-primary) !important;
}

body.light-theme .sidebar-card p[style*="color: #fff"] {
    color: var(--text-primary) !important;
}

body.light-theme .sidebar-card p[style*="color: rgba(255, 255, 255, 0.7)"] {
    color: var(--text-muted) !important;
}

body.light-theme .sidebar-card p[style*="font-weight: 600"] {
    color: var(--text-primary) !important;
}

/* Кнопки лайка и комментариев в светлой теме */
body.light-theme .comments-link {
    background: rgba(255, 255, 255, 0.9) !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
    color: var(--text-primary) !important;
}

body.light-theme .comments-link:hover {
    background: rgba(255, 255, 255, 1) !important;
    border-color: rgba(45, 107, 255, 0.3) !important;
    color: var(--blue) !important;
}

body.light-theme .like-btn {
    background: rgba(255, 255, 255, 0.9) !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
    color: var(--text-primary) !important;
}

body.light-theme .like-btn:hover {
    background: rgba(255, 255, 255, 1) !important;
    border-color: rgba(255, 77, 77, 0.3) !important;
    color: #ff6b6b !important;
}

body.light-theme .like-btn.liked {
    background: rgba(255, 77, 77, 0.1) !important;
    border-color: rgba(255, 77, 77, 0.3) !important;
    color: #ff6b6b !important;
}

body.light-theme .like-btn.liked:hover {
    background: rgba(255, 77, 77, 0.15) !important;
    border-color: rgba(255, 77, 77, 0.4) !important;
    color: #ff5252 !important;
}

body.light-theme .like-count {
    color: inherit !important;
}

body.light-theme .favorite-btn {
    color: var(--text-muted) !important;
}

body.light-theme .favorite-btn:hover {
    background: rgba(255, 255, 255, 0.9) !important;
    color: var(--text-primary) !important;
}

body.light-theme .favorite-btn.favorited {
    color: #ffb300 !important;
}

body.light-theme .favorite-btn.favorited:hover {
    color: #ffa000 !important;
}

/* Дополнительные стили для карточки автора - более широкое покрытие */
body.light-theme .sidebar-card > div > p {
    color: var(--text-primary) !important;
}

body.light-theme .sidebar-card > div > p:first-of-type {
    color: var(--text-primary) !important;
}

/* Улучшение видимости элементов карточки автора */
body.light-theme .sidebar-card div[style*="flex-direction: column"] p[style*="font-weight: 600"] {
    color: var(--text-primary) !important;
}

body.light-theme .sidebar-card div[style*="flex-direction: column"] p:not([style*="font-weight"]) {
    color: var(--text-muted) !important;
}

/* Стили для badge-item в карточке автора */
body.light-theme .badge-item {
    background: rgba(255, 255, 255, 0.9) !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
}

body.light-theme .badge-item:hover {
    background: rgba(255, 255, 255, 1) !important;
    border-color: rgba(45, 107, 255, 0.3) !important;
}

/* Роль автора в карточке */
body.light-theme .sidebar-card span[style*="background: rgba(45, 107, 255"] {
    background: rgba(45, 107, 255, 0.1) !important;
    border-color: rgba(45, 107, 255, 0.3) !important;
    color: var(--blue) !important;
}

/* ============================================
   СТРАНИЦА QUOTES.PHP - СВЕТЛАЯ ТЕМА
   ============================================ */

/* Кнопки категорий рынка */
body.light-theme .market-cat {
    border: 1px solid rgba(0, 0, 0, 0.12) !important;
    background: rgba(255, 255, 255, 0.9) !important;
    color: var(--text-primary) !important;
}

body.light-theme .market-cat:hover {
    background: rgba(255, 255, 255, 1) !important;
    border-color: rgba(45, 107, 255, 0.3) !important;
}

body.light-theme .market-cat.is-active {
    background: linear-gradient(180deg, rgba(45, 107, 255, 0.1), rgba(45, 107, 255, 0.05)) !important;
    border-color: rgba(45, 107, 255, 0.4) !important;
    color: var(--blue) !important;
    box-shadow: inset 0 0 0 1px rgba(45, 107, 255, 0.1);
}

/* Поле поиска */
body.light-theme #searchInput {
    border: 1px solid rgba(0, 0, 0, 0.12) !important;
    background: rgba(255, 255, 255, 0.9) !important;
    color: var(--text-primary) !important;
}

body.light-theme #searchInput:focus {
    border-color: rgba(45, 107, 255, 0.4) !important;
    background: rgba(255, 255, 255, 1) !important;
    box-shadow: 0 0 0 3px rgba(45, 107, 255, 0.1);
}

body.light-theme #searchInput::placeholder {
    color: var(--text-muted);
}

/* Селект сортировки */
body.light-theme #sortSelect {
    border: 1px solid rgba(0, 0, 0, 0.12) !important;
    background: rgba(255, 255, 255, 0.9) !important;
    color: var(--text-primary) !important;
}

body.light-theme #sortSelect:focus {
    border-color: rgba(45, 107, 255, 0.4) !important;
    background: rgba(255, 255, 255, 1) !important;
    box-shadow: 0 0 0 3px rgba(45, 107, 255, 0.1);
}

body.light-theme #sortSelect,
body.light-theme #sortSelect option,
body.light-theme #sortSelect optgroup {
    background-color: rgba(255, 255, 255, 0.98) !important;
    color: var(--text-primary) !important;
}

/* Карточки настроений и секторов */
body.light-theme .quotes-sentiment-card,
body.light-theme .quotes-sectors-card {
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
    background: rgba(255, 255, 255, 0.95) !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

body.light-theme .quotes-sentiment-card h3,
body.light-theme .quotes-sectors-card h3 {
    color: var(--text-primary) !important;
}

body.light-theme .quotes-sectors-card p {
    color: var(--text-muted) !important;
}

/* Gauge (график настроений) */
body.light-theme #gaugeLabel {
    fill: var(--text-primary) !important;
}

/* Индикатор настроений */
body.light-theme .sentiment-bar-container {
    background: rgba(0, 0, 0, 0.08) !important;
}

body.light-theme .sentiment-values {
    color: var(--text-primary) !important;
}

body.light-theme .sentiment-indicator {
    color: var(--text-primary) !important;
}

/* Сектора - pill элементы */
body.light-theme #sectorsBox .pill {
    border: 1px solid rgba(0, 0, 0, 0.12) !important;
    background: rgba(255, 255, 255, 0.9) !important;
    color: var(--text-primary) !important;
}

/* Heatmap плитки */
body.light-theme .heatmap-tile {
    text-decoration: none !important;
}

body.light-theme .heatmap-tile > div {
    background: rgba(255, 255, 255, 0.95) !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important;
}

body.light-theme .heatmap-tile strong {
    color: var(--text-primary) !important;
}

body.light-theme .heatmap-tile span:first-of-type {
    color: var(--text-muted) !important;
}

/* Таблица */
body.light-theme .responsive-table {
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
    background: rgba(255, 255, 255, 0.95) !important;
}

body.light-theme .data-table th {
    background: rgba(248, 249, 250, 0.8) !important;
    color: var(--text-primary) !important;
    border-bottom: 2px solid rgba(0, 0, 0, 0.1) !important;
}

body.light-theme .data-table td {
    color: var(--text-primary) !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05) !important;
}

body.light-theme .data-table tbody tr:hover {
    background: rgba(0, 0, 0, 0.03) !important;
}

body.light-theme .data-table tbody tr:nth-child(even) {
    background: rgba(0, 0, 0, 0.01) !important;
}

body.light-theme .data-table tbody tr:nth-child(even):hover {
    background: rgba(0, 0, 0, 0.04) !important;
}

/* Иконки тикеров */
body.light-theme .sym-icon {
    background: rgba(255, 255, 255, 0.9) !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
}

/* Ссылки в таблице */
body.light-theme .data-table a {
    color: var(--text-primary) !important;
}

body.light-theme .data-table a:hover {
    color: var(--blue) !important;
}

/* Заголовок страницы */
body.light-theme .blog-hero h1 {
    background: linear-gradient(135deg, #1a1a1a 0%, #4a5568 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    color: var(--text-primary) !important;
}

body.light-theme .blog-hero h1 img {
    border: 1px solid rgba(0, 0, 0, 0.1);
}

body.light-theme .blog-hero p {
    color: var(--text-muted) !important;
}

/* Кнопка "Обновить" */
body.light-theme .blog-filter-row .btn-ghost {
    border: 1px solid rgba(0, 0, 0, 0.12) !important;
    background: rgba(255, 255, 255, 0.9) !important;
    color: var(--text-primary) !important;
}

body.light-theme .blog-filter-row .btn-ghost:hover {
    background: rgba(255, 255, 255, 1) !important;
    border-color: rgba(45, 107, 255, 0.3) !important;
    color: var(--blue) !important;
}

/* Улучшенные стили для heatmap плиток в светлой теме */
body.light-theme .heatmap-tile > div[style*="background:linear-gradient"] {
    background: rgba(255, 255, 255, 0.95) !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important;
}

/* Таблица - улучшенная читаемость */
body.light-theme .data-table thead {
    background: rgba(248, 249, 250, 0.8) !important;
}

body.light-theme .data-table tbody tr {
    transition: background-color 0.2s ease;
}

/* Gauge needle и текст в светлой теме */
body.light-theme #gaugeNeedle circle,
body.light-theme #gaugeNeedle rect {
    fill: var(--text-primary) !important;
}

/* Tag в заголовке */
body.light-theme .blog-hero .tag {
    background: rgba(45, 107, 255, 0.1) !important;
    color: var(--blue) !important;
    border: 1px solid rgba(45, 107, 255, 0.2) !important;
}

/* Heatmap плитки - переопределение inline стилей */
body.light-theme .heatmap-tile > div[style*="background:linear-gradient"] {
    background: rgba(255, 255, 255, 0.95) !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important;
}

/* Улучшенные стили для heatmap с цветовым индикатором в светлой теме */
body.light-theme .heatmap-tile > div[style*="rgba(48,224,161"] {
    background: linear-gradient(180deg, rgba(48, 224, 161, 0.15) 0%, rgba(255, 255, 255, 0.95) 100%) !important;
    border-left: 3px solid rgba(48, 224, 161, 0.6) !important;
}

body.light-theme .heatmap-tile > div[style*="rgba(255,77,77"] {
    background: linear-gradient(180deg, rgba(255, 77, 77, 0.15) 0%, rgba(255, 255, 255, 0.95) 100%) !important;
    border-left: 3px solid rgba(255, 77, 77, 0.6) !important;
}

/* ============================================
   СТРАНИЦА OPPORTUNITIES.PHP - СВЕТЛАЯ ТЕМА
   ============================================ */

/* Карточки возможностей */
body.light-theme .opp-card {
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
    background: rgba(255, 255, 255, 0.95) !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

body.light-theme .opp-card h3 {
    color: var(--text-primary) !important;
}

body.light-theme .opp-card p {
    color: var(--text-muted) !important;
}

/* Кнопки выбора символов */
body.light-theme .opp-symbol {
    background: rgba(255, 255, 255, 0.9) !important;
    border: 1px solid rgba(0, 0, 0, 0.12) !important;
    color: var(--text-primary) !important;
}

body.light-theme .opp-symbol:hover {
    background: rgba(255, 255, 255, 1) !important;
    border-color: rgba(45, 107, 255, 0.3) !important;
}

body.light-theme .opp-symbol.is-active {
    background: rgba(45, 107, 255, 0.15) !important;
    border-color: rgba(45, 107, 255, 0.4) !important;
    color: var(--blue) !important;
}

/* Индикатор Long/Short */
body.light-theme .long-short-bar-container {
    background: rgba(0, 0, 0, 0.08) !important;
}

body.light-theme .long-short-values {
    color: var(--text-primary) !important;
}

body.light-theme .long-short-indicator {
    color: var(--text-primary) !important;
}

/* Информационные блоки */
body.light-theme .info-box {
    background: rgba(45, 107, 255, 0.08) !important;
    border-left-color: rgba(45, 107, 255, 0.4) !important;
    color: var(--text-primary) !important;
}

body.light-theme .info-box strong {
    color: var(--text-primary) !important;
}

/* Gauge для страха и жадности */
body.light-theme #oppLabel {
    fill: var(--text-primary) !important;
}

body.light-theme #oppNeedle circle,
body.light-theme #oppNeedle rect {
    fill: var(--text-primary) !important;
}

/* Funding Rates и Open Interest элементы */
body.light-theme .funding-item,
body.light-theme .oi-volume-item {
    border-bottom-color: rgba(0, 0, 0, 0.05) !important;
    color: var(--text-primary) !important;
}

body.light-theme .funding-item strong,
body.light-theme .oi-volume-item strong {
    color: var(--text-primary) !important;
}

body.light-theme .funding-item div[style*="opacity:0.7"],
body.light-theme .oi-volume-item div[style*="opacity:0.7"] {
    color: var(--text-muted) !important;
}

/* Макроданные */
body.light-theme .macro-item {
    border-bottom-color: rgba(0, 0, 0, 0.05) !important;
    color: var(--text-primary) !important;
}

body.light-theme .macro-item > div > div:first-child {
    color: var(--text-primary) !important;
}

/* AI комментарий */
body.light-theme .ai-comment {
    background: rgba(45, 107, 255, 0.1) !important;
    border-color: rgba(45, 107, 255, 0.3) !important;
    color: var(--text-primary) !important;
}

body.light-theme .small-muted {
    color: var(--text-muted) !important;
}

/* Alert элементы */
body.light-theme .alert-bullish {
    background: rgba(48, 224, 161, 0.1) !important;
    border-left-color: rgba(48, 224, 161, 0.5) !important;
    color: var(--text-primary) !important;
}

body.light-theme .alert-bearish {
    background: rgba(255, 77, 77, 0.1) !important;
    border-left-color: rgba(255, 77, 77, 0.5) !important;
    color: var(--text-primary) !important;
}

body.light-theme .alert-neutral {
    background: rgba(255, 184, 77, 0.1) !important;
    border-left-color: rgba(255, 184, 77, 0.5) !important;
    color: var(--text-primary) !important;
}

/* Галерея сигналов */
body.light-theme .signals-gallery-nav {
    background: rgba(255, 255, 255, 0.9) !important;
    border-color: rgba(0, 0, 0, 0.12) !important;
    color: var(--text-primary) !important;
}

body.light-theme .signals-gallery-nav:hover {
    background: rgba(255, 255, 255, 1) !important;
    border-color: rgba(45, 107, 255, 0.3) !important;
}

/* Доминирование рынка */
body.light-theme #dominanceContainer div[style*="display:flex"] {
    color: var(--text-primary) !important;
}

body.light-theme #dominanceContainer div[style*="height:8px"] {
    background: rgba(0, 0, 0, 0.08) !important;
}

body.light-theme #dominanceContainer div[style*="padding-top:16px"] {
    border-top-color: rgba(0, 0, 0, 0.1) !important;
    color: var(--text-primary) !important;
}

/* Market Breadth */
body.light-theme #marketBreadthContainer div[style*="display:flex"] {
    color: var(--text-primary) !important;
}

body.light-theme #marketBreadthContainer div[style*="padding-top:16px"] {
    border-top-color: rgba(0, 0, 0, 0.1) !important;
}

body.light-theme #marketBreadthContainer div[style*="opacity:0.7"],
body.light-theme #marketBreadthContainer div[style*="opacity:0.6"] {
    color: var(--text-muted) !important;
}

/* ============================================
   СТРАНИЦА SYMBOL.PHP - СВЕТЛАЯ ТЕМА
   ============================================ */

/* Карточки графика и стакана */
body.light-theme .symbol-chart-card,
body.light-theme .symbol-orderbook-card {
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
    background: rgba(255, 255, 255, 0.95) !important;
}

body.light-theme .symbol-chart-card h3,
body.light-theme .symbol-orderbook-card h3 {
    color: var(--text-primary) !important;
}

/* Контролы графика */
body.light-theme #chartType,
body.light-theme #interval,
body.light-theme #range {
    border: 1px solid rgba(0, 0, 0, 0.12) !important;
    background: rgba(255, 255, 255, 0.9) !important;
    color: var(--text-primary) !important;
}

body.light-theme #chartType:focus,
body.light-theme #interval:focus,
body.light-theme #range:focus {
    border-color: rgba(45, 107, 255, 0.4) !important;
    box-shadow: 0 0 0 3px rgba(45, 107, 255, 0.1);
}

body.light-theme #chartType option,
body.light-theme #interval option,
body.light-theme #range option {
    background-color: rgba(255, 255, 255, 0.98) !important;
    color: var(--text-primary) !important;
}

/* Панель индикаторов */
body.light-theme #indicatorsPanel {
    background: rgba(255, 255, 255, 0.95) !important;
    border-color: rgba(0, 0, 0, 0.1) !important;
}

body.light-theme #indicatorsPanel label {
    color: var(--text-primary) !important;
}

body.light-theme #indicatorsPanel input[type="number"] {
    border: 1px solid rgba(0, 0, 0, 0.12) !important;
    background: rgba(255, 255, 255, 0.9) !important;
    color: var(--text-primary) !important;
}

/* Кнопки действий */
body.light-theme .action-btn {
    border: 1px solid rgba(0, 0, 0, 0.12) !important;
    background: rgba(255, 255, 255, 0.9) !important;
    color: var(--text-primary) !important;
}

body.light-theme .action-btn:hover {
    background: rgba(255, 255, 255, 1) !important;
    border-color: rgba(45, 107, 255, 0.3) !important;
}

body.light-theme .action-btn.is-active {
    background: rgba(99, 102, 241, 0.15) !important;
    border-color: rgba(99, 102, 241, 0.4) !important;
    color: var(--blue) !important;
}

/* Стакан (Orderbook) */
body.light-theme .ob-item {
    color: var(--text-primary) !important;
}

body.light-theme .ob-item.bid {
    color: #30E0A1 !important;
}

body.light-theme .ob-item.ask {
    color: #FF4D4D !important;
}

body.light-theme .ob-head {
    color: var(--text-primary) !important;
}

body.light-theme .ob-head strong {
    color: var(--text-primary) !important;
}

/* Панель данных */
body.light-theme #dataPanel {
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
    background: rgba(255, 255, 255, 0.95) !important;
}

body.light-theme #dataPanel h3,
body.light-theme #dataPanel h4 {
    color: var(--text-primary) !important;
}

body.light-theme #dataPanel small {
    color: var(--text-muted) !important;
}

body.light-theme #donutLegend {
    color: var(--text-primary) !important;
}

/* Панель новостей */
body.light-theme #newsPanel,
body.light-theme .symbol-news-panel {
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
    background: rgba(255, 255, 255, 0.95) !important;
}

body.light-theme #newsPanel h3,
body.light-theme .symbol-news-panel h3 {
    color: var(--text-primary) !important;
}

body.light-theme #newsPanel small,
body.light-theme .symbol-news-panel small {
    color: var(--text-muted) !important;
}

/* Элементы новостей */
body.light-theme .news-post-item {
    background: rgba(255, 255, 255, 0.9) !important;
    border-color: rgba(0, 0, 0, 0.1) !important;
}

body.light-theme .news-post-item:hover {
    background: rgba(255, 255, 255, 1) !important;
    border-color: rgba(45, 107, 255, 0.2) !important;
}

body.light-theme .news-post-item h4 a {
    color: var(--text-primary) !important;
}

body.light-theme .news-post-item h4 a:hover {
    color: var(--blue) !important;
}

body.light-theme .news-post-item p {
    color: var(--text-muted) !important;
}

body.light-theme .news-post-item span[style*="background: rgba(45, 107, 255"] {
    background: rgba(45, 107, 255, 0.1) !important;
    border-color: rgba(45, 107, 255, 0.3) !important;
    color: var(--blue) !important;
}

body.light-theme .news-post-item span[style*="background: rgba(255, 193, 7"] {
    background: rgba(255, 193, 7, 0.15) !important;
    border-color: rgba(255, 193, 7, 0.3) !important;
    color: #ff9800 !important;
}

body.light-theme .news-post-item span[style*="opacity: 0.7"] {
    color: var(--text-muted) !important;
}

body.light-theme .news-post-item span[style*="background: rgba(255,255,255,0.05)"] {
    background: rgba(255, 255, 255, 0.8) !important;
    border-color: rgba(0, 0, 0, 0.1) !important;
    color: var(--text-primary) !important;
}

body.light-theme .news-post-item a[style*="color: #2d6bff"] {
    color: var(--blue) !important;
}

body.light-theme .news-post-item a[style*="color: #2d6bff"]:hover {
    color: #1e4fd9 !important;
}

/* Tooltip графика */
body.light-theme #chartTooltip {
    background: rgba(255, 255, 255, 0.98) !important;
    border-color: rgba(0, 0, 0, 0.15) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
}

body.light-theme #chartTooltip > div:first-child {
    color: var(--text-primary) !important;
    border-bottom-color: rgba(0, 0, 0, 0.1) !important;
}

body.light-theme #chartTooltip div[style*="opacity:0.7"] {
    color: var(--text-muted) !important;
}

body.light-theme #chartTooltip div[style*="text-align:right"] {
    color: var(--text-primary) !important;
}

/* ============================================
   СТРАНИЦА MY-ARTICLES.PHP - СВЕТЛАЯ ТЕМА
   ============================================ */

/* Навигационные ссылки */
body.light-theme .section a[style*="color: rgba(255,255,255,0.7)"],
body.light-theme a[href="/cabinet.php"][style*="color: rgba(255,255,255,0.7)"],
body.light-theme a[href="/article-create.php"][style*="color: rgba(255,255,255,0.7)"] {
    color: var(--text-muted) !important;
}

body.light-theme .section a[style*="color: rgba(255,255,255,0.7)"]:hover,
body.light-theme a[href="/cabinet.php"][style*="color: rgba(255,255,255,0.7)"]:hover,
body.light-theme a[href="/article-create.php"][style*="color: rgba(255,255,255,0.7)"]:hover {
    color: var(--blue) !important;
}

body.light-theme .section span[style*="color: rgba(255,255,255,0.4)"] {
    color: var(--text-muted) !important;
    opacity: 0.5 !important;
}

/* Заголовок страницы */
body.light-theme .section h1[style*="font-size: 36px"],
body.light-theme .section h1[style*="margin: 0 0 8px 0"] {
    color: var(--text-primary) !important;
}

/* Статистика */
body.light-theme .section p[style*="color: rgba(255,255,255,0.7)"][style*="margin: 0"] {
    color: var(--text-muted) !important;
}

/* Пустое состояние */
body.light-theme .section > .container > div[style*="background: rgba(255,255,255,0.03)"][style*="text-align: center"] {
    background: rgba(255, 255, 255, 0.95) !important;
    border-color: rgba(0, 0, 0, 0.1) !important;
}

body.light-theme .section > .container > div[style*="background: rgba(255,255,255,0.03)"] p[style*="color: rgba(255,255,255,0.7)"][style*="font-size: 18px"] {
    color: var(--text-primary) !important;
}

/* Карточки статей */
body.light-theme .section article[style*="background: rgba(255,255,255,0.03)"] {
    background: rgba(255, 255, 255, 0.95) !important;
    border-color: rgba(0, 0, 0, 0.1) !important;
}

body.light-theme .section article[style*="background: rgba(255,255,255,0.03)"]:hover {
    background: rgba(255, 255, 255, 1) !important;
    border-color: rgba(45, 107, 255, 0.2) !important;
}

/* Категория и статус */
body.light-theme .section article span[style*="background: rgba(255,255,255,0.1)"] {
    background: rgba(255, 255, 255, 0.8) !important;
    color: var(--text-primary) !important;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

/* Заголовок статьи */
body.light-theme .section article h3[style*="font-size: 20px"] a[style*="color: #fff"],
body.light-theme .section article h3 a {
    color: var(--text-primary) !important;
}

body.light-theme .section article h3[style*="font-size: 20px"] a[style*="color: #fff"]:hover,
body.light-theme .section article h3 a:hover {
    color: var(--blue) !important;
}

/* Заголовок без ссылки */
body.light-theme .section article h3[style*="font-size: 20px"] {
    color: var(--text-primary) !important;
}

/* Описание статьи */
body.light-theme .section article p[style*="color: rgba(255,255,255,0.7)"][style*="font-size: 14px"],
body.light-theme .section article p[style*="margin: 0 0 12px 0"] {
    color: var(--text-muted) !important;
}

/* Дата создания */
body.light-theme .section article div[style*="color: rgba(255,255,255,0.5)"] {
    color: var(--text-muted) !important;
}

body.light-theme .section article div[style*="color: rgba(255,255,255,0.5)"] span {
    color: var(--text-muted) !important;
}

/* Блок "Ожидает модерации" */
body.light-theme .section article span[style*="background: rgba(255,255,255,0.05)"][style*="color: rgba(255,255,255,0.6)"] {
    background: rgba(255, 255, 255, 0.9) !important;
    border-color: rgba(0, 0, 0, 0.1) !important;
    color: var(--text-muted) !important;
}

/* Иконка placeholder для изображения */
body.light-theme .section article svg[stroke="rgba(255,255,255,0.3)"] {
    stroke: var(--text-muted) !important;
}

/* Placeholder изображения */
body.light-theme .section article div[style*="background: rgba(255,255,255,0.05)"][style*="display: flex"] {
    background: rgba(248, 249, 250, 0.8) !important;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

/* ============================================
   СТРАНИЦА ARTICLE-CREATE.PHP - СВЕТЛАЯ ТЕМА
   ============================================ */

/* Подложка редактора */
body.light-theme .post-editor {
    background: var(--bg);
}

/* Заголовок редактора */
body.light-theme .editor-eyebrow {
    color: var(--text-muted) !important;
}

body.light-theme .editor-head h1 {
    color: var(--text-primary) !important;
}

body.light-theme .editor-head p {
    color: var(--text-muted) !important;
}

/* Карточки редактора */
body.light-theme .editor-card {
    background: rgba(255, 255, 255, 0.95) !important;
    border-color: rgba(0, 0, 0, 0.1) !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

body.light-theme .editor-card h2,
body.light-theme .editor-card h3 {
    color: var(--text-primary) !important;
}

/* Поля формы */
body.light-theme .field label {
    color: var(--text-primary) !important;
}

body.light-theme .field input[type="text"],
body.light-theme .field textarea {
    background: rgba(255, 255, 255, 0.9) !important;
    border-color: rgba(0, 0, 0, 0.12) !important;
    color: var(--text-primary) !important;
}

body.light-theme .field input[type="text"]:focus,
body.light-theme .field textarea:focus {
    background: rgba(255, 255, 255, 1) !important;
    border-color: rgba(45, 107, 255, 0.4) !important;
    box-shadow: 0 0 0 3px rgba(45, 107, 255, 0.1);
}

body.light-theme .field input[type="text"]::placeholder,
body.light-theme .field textarea::placeholder {
    color: var(--text-muted);
    opacity: 0.6;
}

body.light-theme .field small {
    color: var(--text-muted) !important;
}

/* Кнопка загрузки */
body.light-theme .upload-btn {
    background: rgba(255, 255, 255, 0.9) !important;
    border-color: rgba(0, 0, 0, 0.12) !important;
    color: var(--text-primary) !important;
}

body.light-theme .upload-btn:hover {
    background: rgba(255, 255, 255, 1) !important;
    border-color: rgba(45, 107, 255, 0.3) !important;
}

body.light-theme .upload-btn small {
    color: var(--text-muted) !important;
}

/* Блок информации */
body.light-theme .editor-card[style*="background: rgba(99,102,241,0.1)"] {
    background: rgba(99, 102, 241, 0.08) !important;
    border-color: rgba(99, 102, 241, 0.3) !important;
}

body.light-theme .editor-card[style*="background: rgba(99,102,241,0.1)"] h3[style*="color: #a5b4fc"] {
    color: #6366f1 !important;
}

body.light-theme .editor-card[style*="background: rgba(99,102,241,0.1)"] p[style*="color: rgba(255,255,255,0.8)"] {
    color: var(--text-primary) !important;
}

body.light-theme .editor-card[style*="background: rgba(99,102,241,0.1)"] strong {
    color: var(--text-primary) !important;
    font-weight: 600;
}

/* Дополнительные стили для opportunities.php */
body.light-theme .chart-container canvas {
    background: rgba(255, 255, 255, 0.5);
}

/* ============================================
   СТРАНИЦА SETTINGS.PHP - СВЕТЛАЯ ТЕМА
   ============================================ */

/* Карточки настроек */
body.light-theme .section .card[style*="background: rgba(255,255,255,0.03)"] {
    background: rgba(255, 255, 255, 0.95) !important;
    border-color: rgba(0, 0, 0, 0.1) !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

/* Заголовки карточек */
body.light-theme .section .card h3[style*="font-size: 18px"],
body.light-theme .section .card h3[style*="margin: 0 0 8px 0"],
body.light-theme .section .card h3[style*="margin: 0 0 16px 0"],
body.light-theme .section .card h4 {
    color: var(--text-primary) !important;
}

/* Описания */
body.light-theme .section .card p[style*="opacity: .85"],
body.light-theme .section .card p[style*="opacity: .9"] {
    color: var(--text-muted) !important;
    opacity: 1 !important;
}

/* Поля ввода */
body.light-theme .section .card input[type="text"],
body.light-theme .section .card input[type="email"],
body.light-theme .section .card input[type="password"],
body.light-theme .section .card input[type="file"],
body.light-theme .section .card select {
    background: rgba(255, 255, 255, 0.9) !important;
    border-color: rgba(0, 0, 0, 0.12) !important;
    color: var(--text-primary) !important;
}

body.light-theme .section .card input[type="text"]:focus,
body.light-theme .section .card input[type="email"]:focus,
body.light-theme .section .card input[type="password"]:focus,
body.light-theme .section .card select:focus {
    background: rgba(255, 255, 255, 1) !important;
    border-color: rgba(45, 107, 255, 0.4) !important;
    box-shadow: 0 0 0 3px rgba(45, 107, 255, 0.1);
}

body.light-theme .section .card input::placeholder {
    color: var(--text-muted);
    opacity: 0.6;
}

/* Метки */
body.light-theme .section .card label {
    color: var(--text-primary) !important;
}

body.light-theme .section .card small,
body.light-theme .section .card code {
    color: var(--text-muted) !important;
}

/* Информационные блоки */
body.light-theme .section .card div[style*="background: rgba(99,102,241,0.08)"] {
    background: rgba(99, 102, 241, 0.08) !important;
    border-color: rgba(99, 102, 241, 0.3) !important;
}

body.light-theme .section .card div[style*="background: rgba(99,102,241,0.08)"] h4,
body.light-theme .section .card div[style*="background: rgba(99,102,241,0.08)"] ul,
body.light-theme .section .card div[style*="background: rgba(99,102,241,0.08)"] li,
body.light-theme .section .card div[style*="background: rgba(99,102,241,0.08)"] strong {
    color: var(--text-primary) !important;
}

body.light-theme .section .card div[style*="background: rgba(48,224,161,0.1)"] {
    background: rgba(48, 224, 161, 0.1) !important;
    border-color: rgba(48, 224, 161, 0.3) !important;
}

body.light-theme .section .card div[style*="background: rgba(48,224,161,0.1)"] p,
body.light-theme .section .card div[style*="background: rgba(48,224,161,0.1)"] strong {
    color: var(--text-primary) !important;
}

body.light-theme .section .card div[style*="background: rgba(255,77,77,0.1)"] {
    background: rgba(255, 77, 77, 0.1) !important;
    border-color: rgba(255, 77, 77, 0.3) !important;
}

body.light-theme .section .card div[style*="background: rgba(255,77,77,0.1)"] p {
    color: var(--text-primary) !important;
}

body.light-theme .section .card div[style*="background: rgba(255,255,255,0.02)"] {
    background: rgba(248, 249, 250, 0.8) !important;
    border-color: rgba(0, 0, 0, 0.08) !important;
}

body.light-theme .section .card div[style*="background: rgba(255,255,255,0.02)"] h4,
body.light-theme .section .card div[style*="background: rgba(255,255,255,0.02)"] ol,
body.light-theme .section .card div[style*="background: rgba(255,255,255,0.02)"] li,
body.light-theme .section .card div[style*="background: rgba(255,255,255,0.02)"] p,
body.light-theme .section .card div[style*="background: rgba(255,255,255,0.02)"] a {
    color: var(--text-primary) !important;
}

body.light-theme .section .card div[style*="background: rgba(255,255,255,0.02)"] a {
    color: var(--blue) !important;
}

body.light-theme .section .card ul[style*="opacity: .85"],
body.light-theme .section .card ol[style*="opacity: .85"],
body.light-theme .section .card li {
    color: var(--text-primary) !important;
    opacity: 1 !important;
}

body.light-theme .section .card strong {
    color: var(--text-primary) !important;
}

/* Аватар */
body.light-theme .section .card div[style*="border: 2px solid rgba(255,255,255,0.1)"] {
    border-color: rgba(0, 0, 0, 0.1) !important;
}

/* ============================================
   ГЛАВНАЯ СТРАНИЦА - БЛОК "ПРЕИМУЩЕСТВА"
   ============================================ */

body.light-theme .benefits-card {
    background: rgba(255, 255, 255, 0.95) !important;
    border-color: rgba(0, 0, 0, 0.1) !important;
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.15) !important;
}

body.light-theme .benefits-card h3 {
    color: var(--text-primary) !important;
}

body.light-theme .benefits-card ul[style*="color: #e7ecf3"],
body.light-theme .benefits-card ul {
    color: var(--text-primary) !important;
}

body.light-theme .benefits-card li {
    color: var(--text-primary) !important;
}

/* Дополнительные стили для symbol.php - график */
body.light-theme #chart,
body.light-theme #volumeChart,
body.light-theme #rsiChart {
    background: rgba(255, 255, 255, 0.5);
}

/* Дополнительные стили для элементов, создаваемых через JavaScript */
body.light-theme #fundingRatesContainer > div,
body.light-theme #oiVolumeContainer > div,
body.light-theme #dominanceContainer > div,
body.light-theme #marketBreadthContainer > div,
body.light-theme #macroContainer > div,
body.light-theme #alertsContainer > div {
    color: var(--text-primary) !important;
}

body.light-theme #fundingRatesContainer div[style*="text-align:center"],
body.light-theme #oiVolumeContainer div[style*="text-align:center"],
body.light-theme #dominanceContainer div[style*="text-align:center"],
body.light-theme #marketBreadthContainer div[style*="text-align:center"],
body.light-theme #macroContainer div[style*="text-align:center"],
body.light-theme #alertsContainer div[style*="text-align:center"] {
    color: var(--text-muted) !important;
}

/* ============================================
   СТРАНИЦЫ LOGIN.PHP И SIGNUP.PHP - СВЕТЛАЯ ТЕМА
   ============================================ */

/* Карточка авторизации */
body.light-theme .auth-card {
    background: rgba(255, 255, 255, 0.95) !important;
    border-color: rgba(0, 0, 0, 0.1) !important;
    box-shadow: 0 50px 120px rgba(0, 0, 0, 0.15) !important;
}

/* Заголовок */
body.light-theme .auth-head h1 {
    color: var(--text-primary) !important;
}

body.light-theme .auth-head p {
    color: var(--text-muted) !important;
}

/* Поля ввода */
body.light-theme .auth-field {
    color: var(--text-primary) !important;
}

body.light-theme .auth-field input {
    background: rgba(255, 255, 255, 0.9) !important;
    border-color: rgba(0, 0, 0, 0.12) !important;
    color: var(--text-primary) !important;
}

body.light-theme .auth-field input:focus {
    background: rgba(255, 255, 255, 1) !important;
    border-color: rgba(45, 107, 255, 0.4) !important;
    box-shadow: 0 0 0 3px rgba(45, 107, 255, 0.1);
    outline: none;
}

body.light-theme .auth-field input::placeholder {
    color: var(--text-muted) !important;
    opacity: 0.6 !important;
}

body.light-theme .auth-field span {
    color: var(--text-primary) !important;
}

/* Кнопка переключения видимости пароля */
body.light-theme .input-toggle {
    color: var(--text-muted) !important;
}

body.light-theme .input-toggle:hover {
    color: var(--text-primary) !important;
}

/* Подсказка о пароле */
body.light-theme .password-hint {
    color: var(--text-muted) !important;
}

/* Чекбокс */
body.light-theme .auth-checkbox {
    color: var(--text-primary) !important;
}

body.light-theme .auth-checkbox input {
    border-color: rgba(0, 0, 0, 0.2) !important;
}

body.light-theme .auth-checkbox input:checked::after {
    border-color: #fff !important;
}

/* Текст помощи */
body.light-theme .auth-helper {
    color: var(--text-primary) !important;
}

body.light-theme .auth-helper a {
    color: var(--blue) !important;
}

body.light-theme .auth-helper a:hover {
    color: #1e4ed8 !important;
}

/* Разделитель "или" */
body.light-theme div[style*="text-align: center"][style*="margin: 16px 0"] span[style*="color: rgba(255,255,255,0.5)"] {
    background: var(--bg) !important;
    color: var(--text-muted) !important;
}

body.light-theme div[style*="text-align: center"][style*="margin: 16px 0"] div[style*="background: rgba(255,255,255,0.1)"] {
    background: rgba(0, 0, 0, 0.1) !important;
}

/* Модальное окно ошибки */
body.light-theme .auth-error-modal {
    background: rgba(255, 255, 255, 0.95) !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25) !important;
}

body.light-theme .auth-error-modal h2 {
    color: var(--text-primary) !important;
}

body.light-theme .auth-error-text {
    color: var(--text-primary) !important;
}

body.light-theme #authErrorCloseBtn {
    background: rgba(248, 249, 250, 0.9) !important;
    border-color: rgba(0, 0, 0, 0.12) !important;
    color: var(--text-primary) !important;
}

body.light-theme #authErrorCloseBtn:hover {
    background: rgba(241, 243, 245, 1) !important;
    border-color: rgba(0, 0, 0, 0.2) !important;
    color: var(--text-primary) !important;
}

/* Визуальная часть */
body.light-theme .auth-visual {
    background: rgba(27, 112, 241, 0.08) !important;
}

/* Ссылки в чекбоксе согласия */
body.light-theme .auth-field span a[style*="color:#2d6bff"] {
    color: var(--blue) !important;
}

body.light-theme .auth-field span a[style*="color:#2d6bff"]:hover {
    color: #1e4ed8 !important;
}

/* Превью аватара */
body.light-theme #signup-avatar-img[style*="border: 2px solid rgba(255, 255, 255, 0.1)"] {
    border-color: rgba(0, 0, 0, 0.1) !important;
}

/* Блок ошибки на странице */
body.light-theme div[style*="background: #ef4444"][style*="color: white"] {
    background: #fee2e2 !important;
    color: #991b1b !important;
    border: 1px solid #fca5a5 !important;
}

