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

@font-face {
    font-family: 'PaluiSP';
    src: url('PaluiSP-Bold.otf') format('opentype');
    font-weight: bold;
    font-style: normal;
}

:root {
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --text-dark: #1a1c18;
    --text-gray: #6b7280;
    --accent: #A6F206;
    --accent-hover: #8ecc05;
    --dark-card: #15190e;

    --bg-dark: #0f172a;
    --text-white: #f1f5f9;


    --header-bg: rgba(255, 255, 255, 0.85);
    --border-color: rgba(0, 0, 0, 0.05);
    --shadow-color: rgba(0, 0, 0, 0.05);
    --schedule-empty-bg: rgba(0, 0, 0, 0.02);
}

[data-theme="dark"] {
    --bg-light: #0b0d09;
    --bg-white: #12150d;
    --text-dark: #f5f5f5;
    --text-gray: #a0aab5;
    --border-dark: rgba(255, 255, 255, 0.08);
    --header-bg: rgba(11, 13, 9, 0.8);
}

[data-theme="dark"] body {
    background-color: var(--bg-light);
    color: var(--text-dark);
}

[data-theme="dark"] .nav a {
    color: var(--text-dark);
}

[data-theme="dark"] .logo {
    color: var(--text-dark);
}

[data-theme="dark"] .burger-menu span {
    background-color: var(--text-dark);
}

@media (max-width: 1270px) {
    [data-theme="dark"] .nav {
        background-color: var(--bg-light);
    }
}


[data-theme="dark"] .card,
[data-theme="dark"] .profile-card,
[data-theme="dark"] .schedule-card,
[data-theme="dark"] .about-card,
[data-theme="dark"] .document-wrapper {
    background-color: var(--bg-white);
    border-color: var(--border-dark);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}


[data-theme="dark"] .about-section,
[data-theme="dark"] .shop-section,
[data-theme="dark"] .achievements-section {
    background-color: var(--bg-light);
}


[data-theme="dark"] .merch-section {
    background-color: var(--bg-light) !important;
}


[data-theme="dark"] .schedule-empty {
    background-color: rgba(255, 255, 255, 0.03);
}


[data-theme="dark"] .social-btn {
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--text-dark);
    border-color: var(--border-dark);
}

[data-theme="dark"] .social-btn:hover {
    color: #000000 !important;
}


[data-theme="dark"] .card-title,
[data-theme="dark"] .section-title,
[data-theme="dark"] .hero-title,
[data-theme="dark"] .profile-name,
[data-theme="dark"] .about-card h3,
[data-theme="dark"] .schedule-title,
[data-theme="dark"] .document-title,
[data-theme="dark"] .document-content h2 {
    color: var(--text-dark);
}


[data-theme="dark"] .footer {
    background-color: #080a06 !important;
    color: #f5f5f5 !important;
}

[data-theme="dark"] .footer .logo,
[data-theme="dark"] .footer-links a,
[data-theme="dark"] .footer-socials a {
    color: #f5f5f5 !important;
}

[data-theme="dark"] .footer-links a:hover {
    color: var(--accent) !important;
}


[data-theme="dark"] .footer-socials a:hover {
    background-color: var(--accent) !important;
    color: #000000 !important;
    border-color: var(--accent) !important;
}

[data-theme="dark"] .btn:hover {
    background-color: #ffffff !important;
    color: #000000 !important;
}

[data-theme="dark"] .hero-bg-text {
    color: rgba(255, 255, 255, 0.03) !important;
}

.theme-toggle-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 2.5rem;
    transition: color 0.3s;
}

.theme-toggle-btn:hover {
    color: var(--accent);
}


@media (max-width: 1270px) {
    .theme-toggle-btn {
        margin-left: 0;
        margin-top: 1rem;
        width: 50px;
        height: 50px;
        background: rgba(166, 242, 6, 0.1);
        border-radius: 50%;
        color: var(--accent);
    }
}


body,
.header,
.card,
.profile-card,
.schedule-card,
.about-card,
.document-wrapper,
.about-section,
.shop-section,
.achievements-section {
    transition: background-color 0.4s ease, border-color 0.4s ease, color 0.4s ease, box-shadow 0.4s ease;
}

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

::selection {
    background-color: var(--accent);
    color: #000;
}

::-moz-selection {
    background-color: var(--accent);
    color: #000;
}

html {
    scroll-padding-top: 100px;
    overflow-x: hidden;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

* {
    box-sizing: border-box !important;
}

h1,
h2,
h3,
.hero-title,
.profile-name,
.glitch-title,
.merch-title,
.reveal-text {
    word-break: normal !important;
    word-wrap: normal !important;
    overflow-wrap: break-word !important;
    -webkit-hyphens: none !important;
    hyphens: none !important;
}

img,
iframe,
video {
    max-width: 100% !important;
    height: auto;
}

html,
body {
    max-width: 100vw !important;
    width: 100% !important;
    overflow-x: hidden !important;
    position: relative;
    -webkit-text-size-adjust: 100%;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.text-center {
    text-align: center;
}

h1,
h2,
h3,
.logo,
.card-title {
    font-family: 'PaluiSP', 'Montserrat', sans-serif;
    font-weight: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;

}

/* ==========================================================================
   ДЕСКТОПНЫЙ ХЕДЕР И НАВИГАЦИЯ
   ========================================================================== */
.header {
    position: fixed;
    top: 15px;
    left: 15px; /* Безопасные отступы для всех экранов */
    width: calc(100% - 30px);
    background: var(--header-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    z-index: 1000;
    border-bottom: 1px solid var(--border-dark);
    transition: all 0.3s ease;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

/* На ПК хедер становится уже и смещается */
@media (min-width: 1271px) {
    .header { left: 100px; width: calc(100% - 200px); }
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.desktop-nav .nav-link {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    transition: color 0.3s;
}

.desktop-nav .nav-link:hover { color: var(--accent); }

/* Десктопный Dropdown */
.desktop-dropdown { position: relative; }
.dropdown-trigger {
    display: flex; align-items: center; gap: 6px;
    font-weight: 500; font-size: 0.9rem; text-transform: uppercase;
    color: var(--text-dark); cursor: pointer; transition: color 0.3s;
}
.dropdown-trigger:hover { color: var(--accent); }
.dropdown-trigger svg { transition: transform 0.3s; }
.desktop-dropdown:hover .dropdown-trigger svg { transform: rotate(180deg); }

.dropdown-content {
    position: absolute; top: 100%; left: 50%; transform: translateX(-50%) translateY(15px);
    background: var(--bg-white); border: 1px solid var(--border-color);
    border-radius: 12px; padding: 8px 0; min-width: 150px;
    box-shadow: 0 10px 25px var(--shadow-color);
    opacity: 0; visibility: hidden; transition: all 0.2s ease;
}
.desktop-dropdown:hover .dropdown-content {
    opacity: 1; visibility: visible; transform: translateX(-50%) translateY(5px);
}
.dropdown-content a {
    display: block; padding: 12px 20px; color: var(--text-dark);
    text-decoration: none; font-size: 0.9rem; transition: background 0.2s;
}
.dropdown-content a:hover { background: var(--bg-light); color: var(--accent); }

/* Прячем десктопное меню на планшетах/мобилках */
@media (max-width: 1270px) { .desktop-nav { display: none; } }

/* ==========================================================================
   МОБИЛЬНОЕ БОКОВОЕ МЕНЮ (БЕЗ КОСТЫЛЕЙ)
   ========================================================================== */
.mobile-overlay {
    position: fixed; inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
    z-index: 9998;
    opacity: 0; visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
.mobile-overlay.active { opacity: 1; visibility: visible; }

.mobile-sidebar {
    position: fixed; top: 0; right: 0; bottom: 0;
    width: 320px; max-width: 85vw;
    background: var(--bg-white);
    z-index: 9999;
    box-shadow: -10px 0 30px rgba(0,0,0,0.1);
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex; flex-direction: column;
    overflow: hidden; /* Важно для подменю */
}
.mobile-sidebar.active { transform: translateX(0); }

/* Верхняя панель: ПРОФИЛЬ + Кнопки */
.mobile-sidebar-header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 20px 25px; border-bottom: 1px solid var(--border-color);
}
.mobile-profile { display: flex; align-items: center; gap: 12px; }
.mobile-avatar { width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--accent); object-fit: cover; }
.mobile-name { font-weight: 700; font-size: 1rem; color: var(--text-dark); }
.mobile-actions { display: flex; align-items: center; gap: 15px; }
.mobile-close-btn { background: none; border: none; font-size: 2.8rem; line-height: 1; color: var(--text-gray); cursor: pointer; padding: 0; }
.mobile-theme-btn { margin: 0 !important; transform: scale(0.9); }

/* Тело меню */
.mobile-sidebar-body { padding: 20px 25px; overflow-y: auto; flex-grow: 1; }
.mobile-link {
    display: flex; justify-content: space-between; align-items: center;
    width: 100%; padding: 15px 0; border-bottom: 1px solid var(--border-color);
    font-family: 'Montserrat', sans-serif; font-size: 1.1rem; font-weight: 600;
    color: var(--text-dark); text-decoration: none; text-transform: uppercase; cursor: pointer;
}

/* Выезжающее Подменю (Комьюнити) */
.mobile-submenu {
    position: absolute; inset: 0; /* Накладывается ровно поверх сайдбара */
    background: var(--bg-white);
    z-index: 10;
    transform: translateX(100%); /* Спрятано вправо */
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex; flex-direction: column;
}
.mobile-submenu.active { transform: translateX(0); }

.mobile-submenu-back {
    display: flex; align-items: center; gap: 10px;
    padding: 25px; border-bottom: 1px solid var(--border-color);
    font-family: 'Montserrat', sans-serif; font-size: 1.1rem; font-weight: 700;
    color: var(--text-dark); cursor: pointer; background: var(--bg-light);
}
.mobile-submenu .mobile-link { padding: 15px 25px; border-bottom: 1px solid var(--border-color); }

.logo {
    font-size: 2rem;
    color: var(--text-dark);
    text-decoration: none;
    position: relative;
}

.logo::after {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    background-color: var(--accent);
    border-radius: 50%;
    bottom: 8px;
    right: -12px;
}

.nav {
    display: flex;
    align-items: center;
}

.nav a {
    text-decoration: none;
    color: var(--text-dark);
    margin-left: 2.5rem;
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    transition: color 0.3s;
}

.nav a:hover {
    color: var(--accent-hover);
}

.nav-close-btn { display: none; }

.hero {
    position: relative;
    padding: 220px 0 150px;
    background: var(--bg-light);
    overflow: hidden;
}

.hero-bg-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: 'PaluiSP', sans-serif;
    font-size: 25vw;
    color: rgba(0, 0, 0, 0.03);
    z-index: 1;
    white-space: nowrap;
    pointer-events: none;
}

.hero-title {

    font-size: clamp(1.8rem, 6.5vw, 4.5rem);
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
    text-transform: uppercase;
    position: relative;
    z-index: 2;
    word-wrap: break-word;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    color: var(--text-gray);
    max-width: 600px;
    margin: 0 auto 3rem;
}

.reveal-wrap {
    display: inline-block;
    overflow: hidden;
    vertical-align: bottom;
    margin-right: 0.3em;
}

.reveal-wrap:last-child {
    margin-right: 0;
}

.reveal-text {
    display: inline-block;
    transform: translateY(110%);
    padding-bottom: 5px;
}

.btn {
    display: inline-block;
    background-color: var(--accent);
    color: #000;
    padding: 1.2rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-family: 'Montserrat', sans-serif;
    text-transform: uppercase;
    transition: transform 0.3s, box-shadow 0.3s;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(166, 242, 6, 0.4);
    background-color: var(--bg-white);
    color: var(--text-dark);
}


.roster-section {
    padding: 100px 0;
}

.section-title {
    font-size: clamp(1.8rem, 4vw, 3rem);
    margin-bottom: 3rem;
    line-height: 1.1;
    text-align: center;
}

.left-align {
    text-align: center;
}

.roster-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    gap: 1.5rem;
    margin: 0 auto;
    max-width: 1100px;
}

.card {
    background-color: var(--bg-white);
    border-radius: 20px;
    overflow: hidden;
    max-width: 600px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.04);
}

@media (hover: hover) and (pointer: fine) {
    .card:hover {
        transform: translateY(-12px);
        box-shadow: 0 20px 40px rgba(166, 242, 6, 0.15);
    }
}



.card:active {

    transform: translateY(-4px);

    box-shadow: 0 8px 20px rgba(166, 242, 6, 0.2);

    transition: all 0.2s ease-out;
}

.card-img-wrap {
    height: 380px;
    overflow: hidden;
    background-color: var(--dark-card);
    position: relative;
    border-bottom: 4px solid var(--accent);
}

.card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    transition: transform 0.6s ease;
}

.card:hover .card-img {
    transform: scale(1.06);
}

.live-badge {
    position: absolute;
    top: 1.2rem;
    right: 1.2rem;
    background-color: var(--accent);
    color: #000;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 0 15px var(--accent);
    animation: pulse 2s infinite;
    z-index: 10;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(166, 242, 6, 0.8);
    }

    70% {
        box-shadow: 0 0 0 12px rgba(166, 242, 6, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(166, 242, 6, 0);
    }
}

.card-body {
    padding: 2.2rem;
}

.card-title {
    font-size: 1.8rem;
    margin-bottom: 0.8rem;
    color: var(--text-dark);
}

.card-desc {
    color: var(--text-gray);
    font-size: 0.95rem;
    margin-bottom: 1.8rem;
}

.social-links a {
    display: inline-block;
    margin-right: 1.2rem;
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    border-bottom: 2px solid rgba(166, 242, 6, 0.3);
    padding-bottom: 2px;
    transition: all 0.3s;
}

.social-links a:hover {
    color: var(--accent-hover);
    border-bottom-color: var(--accent);
}


.footer {
    background-color: var(--text-dark);
    color: var(--bg-white);
    padding: 60px 0;
    border-top: 5px solid var(--accent);
}

.footer .logo {
    color: var(--bg-white);
    margin-bottom: 1rem;
    display: inline-block;
}

@media (max-width: 768px) {
    .hero {
        padding: 150px 0 80px;
    }

    .preloader-logo {
        font-size: clamp(2rem, 12vw, 4rem) !important;
        white-space: nowrap !important;
    }

    .hero-title,
    .reveal-text {
        font-size: clamp(1.4rem, 9vw, 2.2rem) !important;
    }

    .profile-card {
        box-shadow: none !important;
        border: 1px solid rgba(0, 0, 0, 0.05) !important;
    }

    .profile-image-wrap img,
    .profile-card {
        transform: translateZ(0) !important;
        will-change: transform, opacity;
    }

    .profile-page .gs-fade-up,
    .profile-page .gs-slide-right,
    .profile-page .gs-slide-left {
        transform: none !important;
        opacity: 1 !important;
        animation: none !important;
        transition: none !important;
    }

    .profile-card {
        width: 100% !important;
        max-width: 100vw !important;
        overflow: hidden !important;
        padding: 1.5rem 1rem !important;
        box-sizing: border-box !important;
        display: block !important;
    }

    .profile-image-wrap {
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        aspect-ratio: 1 / 1 !important;
        flex-shrink: 1 !important;
    }

    .profile-image-wrap img {
        width: 100% !important;
        max-width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        display: block !important;
    }

    .profile-name {
        font-size: 11vw !important;
        text-align: center !important;
        margin-top: 1.5rem !important;
        word-break: break-all !important;
    }
}


.profile-page {
    padding: 140px 0 100px;
    min-height: 80vh;
}

.profile-card {
    background-color: var(--bg-white);
    padding: 4rem;
    border-radius: 24px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.profile-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;

    align-items: flex-start;
}

.profile-image-wrap {
    background-color: var(--dark-card);
    border-radius: 16px;
    height: 600px;
    position: relative;
    overflow: hidden;
    border-bottom: 5px solid var(--accent);
}

.profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
}

.profile-badge {
    top: 1.5rem;
    right: 1.5rem;
    font-size: 0.9rem;
    padding: 0.6rem 1.5rem;
}

.back-link {
    display: inline-block;
    color: var(--text-gray);
    text-decoration: none;
    margin-bottom: 2rem;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.3s;
}

.back-link:hover {
    color: var(--accent-hover);
}

.profile-name {
    font-size: clamp(2rem, 9vw, 4.5rem);
    color: var(--text-dark);
    margin-top: 0;
    margin-bottom: 1rem;
    line-height: 1;
    word-wrap: break-word;
}

.profile-about h3,
.profile-socials h3 {
    font-family: 'Inter', sans-serif;
    font-size: 1.2rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.profile-about p {
    color: var(--text-gray);
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.profile-socials {
    margin-top: 3rem;
}

.social-links-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.social-btn {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    background-color: var(--bg-light);
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 600;
    border: 1px solid rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
}

.social-btn:hover {
    background-color: var(--accent);
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(166, 242, 6, 0.3);
}


.profile-clips {
    margin-top: 3rem;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    padding-top: 2.5rem;
}

.profile-clips h3 {
    font-family: 'Inter', sans-serif;
    font-size: 1.2rem;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.clips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.clip-wrapper {
    position: relative;
    width: 100%;

    aspect-ratio: 16 / 9;
    background-color: var(--dark-card);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.clip-wrapper:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(166, 242, 6, 0.2);
    border-color: rgba(166, 242, 6, 0.4);
}


.clip-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}


.profile-contact-centered {
    text-align: center;
    margin-top: 3rem;
    padding-top: 3rem;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

@media (max-width: 900px) {
    .profile-card {
        padding: 1.5rem;
    }

    .profile-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .profile-image-wrap {
        height: 400px;
        border-radius: 12px;
    }

    .profile-name {
        font-size: clamp(2.2rem, 10vw, 3.5rem);
        margin-top: 0;
    }
}


.about-section {
    padding: 100px 0 50px;
    background-color: var(--bg-white);
}

.about-grid-new {
    max-width: 800px;
    margin: 0 auto;
}

.lead-text {
    font-size: 1.3rem;
    color: var(--text-dark);
    font-weight: 500;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}


.about-text-block p:not(.lead-text) {
    font-size: 1.05rem;
    color: var(--text-gray);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}


.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.about-card {
    background-color: var(--bg-light);
    padding: 2.5rem;
    border-radius: 20px;
    border: 1px solid rgba(0, 0, 0, 0.04);
    transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}

@media (hover: hover) and (pointer: fine) {
    .about-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.05);
        border-color: var(--accent);
    }
}

.about-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1.2rem;
    color: var(--text-dark);
    position: relative;
    padding-bottom: 0.8rem;

    word-wrap: break-word;
    overflow-wrap: break-word;
    -webkit-hyphens: auto;
    hyphens: auto;
}


.about-card h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 3px;
    background-color: var(--accent);
    border-radius: 2px;
    transition: width 0.3s ease;
}

.about-card:hover h3::after {
    width: 80px;
}

.about-card p {
    color: var(--text-gray);
    font-size: 0.95rem;
    line-height: 1.6;
}

.about-card strong {
    color: var(--text-dark);
    font-weight: 600;
}


.shop-section {
    padding: 0 0 100px;
    background-color: var(--bg-white);
}

.shop-banner {
    background-color: var(--text-dark);
    border-radius: 30px;
    padding: 4rem;
    display: flex;
    align-items: center;
    gap: 4rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    overflow: hidden;
}

.shop-content {
    flex: 1;
}

.shop-title {
    color: var(--bg-white);
    text-align: left;
    margin-bottom: 1.5rem;
}

.shop-content p {
    font-size: 1.1rem;
    color: #cccccc;
    margin-bottom: 2.5rem;
    line-height: 1.7;
    max-width: 500px;
}

.btn-shop {
    background-color: var(--accent);
    color: #000;
}

.btn-shop:hover {
    background-color: var(--bg-white);
    color: var(--text-dark);
    box-shadow: 0 10px 25px rgba(255, 255, 255, 0.2);
}

.shop-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

@media (hover: hover) and (pointer: fine) {
    .shop-banner:hover .merch-placeholder {
        transform: rotate(0deg) scale(1.05);
        border-style: solid;
    }
}

@media (max-width: 900px) {
    .shop-banner {
        flex-direction: column;
        padding: 2.5rem;
        text-align: center;
    }

    .shop-title {
        text-align: center;
    }

    .shop-content p {
        margin: 0 auto 2.5rem;
    }
}


.page-legal {
    background-color: var(--bg-light);
}

.legal-main {
    padding: 140px 0 100px;
    min-height: 80vh;
}

.container-narrow {
    max-width: 800px;
}

.document-wrapper {
    background-color: var(--bg-white);
    padding: 4rem 5rem;
    border-radius: 24px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.document-title {
    font-size: 3rem;
    color: var(--text-dark);
    margin-bottom: 3rem;
    text-align: center;
    border-bottom: 2px solid var(--bg-light);
    padding-bottom: 2rem;
}

.document-content h2 {
    font-family: 'Inter', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 2.5rem 0 1rem;
    position: relative;
    padding-left: 1.5rem;
}


.document-content h2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background-color: var(--accent);
    border-radius: 50%;
}

.document-content p {
    color: var(--text-gray);
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 1.2rem;
}

.document-content strong {
    color: var(--text-dark);
}

.document-content a {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 600;
    border-bottom: 2px solid var(--accent);
    transition: all 0.3s;
}

.document-content a:hover {
    background-color: var(--accent);
    color: #000;
}

.requisites-box {
    background-color: var(--bg-light);
    padding: 2rem;
    border-radius: 12px;
    margin-top: 2rem;
    border-left: 4px solid var(--accent);
}

.requisites-box p {
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.requisites-box p:last-child {
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .document-wrapper {
        padding: 2rem;
    }

    .document-title {
        font-size: 2.2rem;
    }

    .footer {
        padding: 40px 0 100px 0;
    }

    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 40px;
    }

    .footer-left,
    .footer-right {
        align-items: center;
        width: 100%;
        min-width: 100%;
    }

    .footer-socials {
        justify-content: center;
        margin-bottom: 25px;
    }

    .footer-links {

        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    .footer-links a {
        margin-right: 0 !important;
        font-size: 1rem;
    }

    .hero-title {
        font-size: clamp(1.4rem, 7vw, 2.5rem) !important;
        word-wrap: break-word;
    }

    .profile-name {
        font-size: clamp(1.8rem, 10vw, 3rem) !important;
        word-wrap: break-word;
    }

    .merch-title {
        font-size: clamp(1.5rem, 6vw, 2.2rem) !important;
    }

    .about-manifesto-title {
        font-size: clamp(1.3rem, 5vw, 1.8rem) !important;
    }


    .profile-page {
        padding: 100px 0 50px !important;
    }

    .profile-card {
        padding: 1.5rem !important;
        border-radius: 16px;
    }

    .profile-image-wrap {
        height: 350px !important;
    }


    .stat-item-massive .stat-number {
        font-size: clamp(2.5rem, 8vw, 3.5rem) !important;
    }
}


.burger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 32px;
    height: 22px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.burger-menu span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--text-dark);
    border-radius: 2px;
    transition: all 0.3s ease;
}

@media (max-width: 1270px) {
    .burger-menu {
        display: flex;
    }

    .nav {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: var(--bg-white);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2.5rem;

        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.4s cubic-bezier(0.77, 0, 0.175, 1);
        z-index: 1000;
    }


    .nav.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav a {
        margin: 0;
        font-size: clamp(1.2rem, 8vw, 2rem);
        font-family: 'PaluiSP', sans-serif;
        color: var(--text-dark);
        white-space: nowrap;
    }

    .nav a:hover {
        color: var(--accent);
    }


    .burger-menu.active span:nth-child(1) {
        transform: translateY(10px) rotate(45deg);
        background-color: var(--accent);
    }

    .burger-menu.active span:nth-child(2) {
        opacity: 0;
    }

    .burger-menu.active span:nth-child(3) {
        transform: translateY(-10px) rotate(-45deg);
        background-color: var(--accent);
    }

    .container {
        padding: 0 15px !important;
        width: 100% !important;
        max-width: 100vw !important;
    }

    .hero-title {
        font-size: clamp(1.2rem, 7vw, 2rem) !important;
        line-height: 1.2 !important;
    }

    .profile-name {

        font-size: clamp(1.8rem, 8vw, 2.5rem) !important;
        text-align: center;
        margin-top: 1.5rem !important;
    }


    .reveal-wrap {
        display: block !important;
        margin-bottom: 5px;
    }

    .roster-grid,
    .clips-grid,
    .profile-grid,
    .about-stats-container {
        display: grid !important;
        width: 100% !important;
        gap: 2rem !important;
    }

    .profile-page {
        padding: 100px 0 50px !important;
    }

    .profile-card {
        padding: 1.5rem 1rem !important;
        width: 100% !important;
        border-radius: 16px !important;
        overflow: hidden !important;
    }

    .profile-image-wrap {
        height: auto !important;
        aspect-ratio: 4 / 5 !important;
        width: 100% !important;
        border-radius: 12px !important;
    }
}

.achievements-section {
    padding: 50px 0 100px;
    background-color: var(--bg-white);
}

.timeline {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    padding-left: 30px;
    border-left: 2px solid rgba(166, 242, 6, 0.3);
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-dot {
    position: absolute;
    left: -39px;
    top: 5px;
    width: 16px;
    height: 16px;
    background-color: var(--bg-white);
    border: 4px solid var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(166, 242, 6, 0.5);
}

.timeline-title {
    font-size: 1.5rem;
    color: var(--text-dark);
    margin-bottom: 0.8rem;
}

.timeline-desc {
    color: var(--text-gray);
    font-size: 1.05rem;
    line-height: 1.6;
}




@keyframes livePulse {
    0% {
        box-shadow: 0 0 10px rgba(166, 242, 6, 0.1);
        border-color: rgba(166, 242, 6, 0.2);
    }

    100% {
        box-shadow: 0 0 35px rgba(166, 242, 6, 0.4);
        border-color: rgba(166, 242, 6, 0.7);
    }
}

.card.is-live-card {
    animation: livePulse 2s infinite alternate ease-in-out;
    border: 1px solid var(--accent) !important;
}


.card.is-live-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 20px 50px rgba(166, 242, 6, 0.5) !important;
}


.live-badge-link {
    position: absolute;
    top: 1.2rem;
    right: 1.2rem;
    z-index: 20;
    text-decoration: none;
}

.live-badge {

    position: relative;
    top: 0;
    right: 0;
    background-color: var(--accent);
    color: #000;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 0.75rem;
    text-transform: uppercase;
    box-shadow: 0 0 15px rgba(166, 242, 6, 0.5);
    transition: all 0.3s ease;
}

.live-badge:hover {
    transform: scale(1.1);
    background-color: #fff;
    box-shadow: 0 0 20px #fff;
}


.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
    flex-wrap: wrap;
}


.footer-left {
    flex: 1;
    text-align: left;
    min-width: 280px;
}

.footer-left .logo {
    color: var(--bg-white);
    margin-bottom: 20px;
    display: inline-block;
}

.footer-info p {
    color: var(--text-gray);
    font-size: 0.9rem;
    margin-bottom: 5px;
    line-height: 1.4;
}

.footer-info .copyright {
    margin-top: 15px;
    font-size: 0.8rem;
    opacity: 0.7;
}


.footer-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    min-width: 280px;
}

.footer-socials {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}

.footer-socials a {
    color: var(--bg-white);
    text-decoration: none;
    font-family: 'PaluiSP', sans-serif;
    font-size: 0.75rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.footer-socials a:hover {
    background-color: var(--accent);
    color: var(--text-dark);
    border-color: var(--accent);
    transform: translateY(-5px);
}

.footer-links a {
    color: var(--bg-white);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    border-bottom: 1px solid rgba(166, 242, 6, 0.4);
    padding-bottom: 2px;
    transition: all 0.3s;
}

.footer-links a:hover {
    color: var(--accent);
    border-bottom-color: var(--accent);
}


@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-left,
    .footer-right {
        text-align: center;
        align-items: center;
    }
}


.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

    background-color: var(--bg-light);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

.preloader-logo {

    color: var(--text-dark);
    font-size: 5rem;
    animation: neonPulsePreloader 1s infinite alternate ease-in-out;
}

@keyframes neonPulsePreloader {

    0% {
        text-shadow: 0 0 10px rgba(166, 242, 6, 0.4);
        transform: scale(0.98);
    }

    100% {
        text-shadow: 0 0 30px rgba(166, 242, 6, 1);
        transform: scale(1.02);
    }
}



.merch-section {
    padding: 4rem 0;
    background-color: #ffffff;
    border: none;
}

.merch-card {
    background: linear-gradient(135deg, #000000 0%, #180E19 50%, #180E18 100%);
    border-radius: 32px;
    padding: 4rem 4rem 5rem 4rem;
    position: relative;
    overflow: hidden;
    color: #ffffff;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    border: 2px solid rgba(247, 177, 255, 0.1);
}

.merch-promo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    position: relative;
    z-index: 2;
}

.merch-promo-content {
    flex: 1;
    max-width: 500px;
    z-index: 2;
}

.merch-title {
    font-family: 'PaluiSP', sans-serif;

    font-size: clamp(2.3rem, 4vw, 3.6rem);
    line-height: 1.1;
    margin-bottom: 1rem;
    color: #F7B1FF;
    text-transform: uppercase;
    text-shadow: 0 0 15px rgba(247, 177, 255, 0.6);

    word-break: normal;
    overflow-wrap: normal;
}

.merch-description {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

.merch-btn.btn {
    background-color: #F7B1FF;
    color: #000 !important;
    border: none;
    font-weight: 800;
    font-size: 1rem;
    padding: 1.1rem 2.8rem;
    box-shadow: 0 10px 30px rgba(247, 177, 255, 0.3);
    display: inline-block;
    position: relative;
    z-index: 10;
}

.merch-btn.btn:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 40px rgba(247, 177, 255, 0.5);
    background-color: #ffffff;
}

.merch-promo-image-wrap {
    flex: 1.3;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    position: relative;
    margin-left: -2rem;
}

.merch-mascot {
    width: 100%;
    max-width: 550px;
    height: auto;
    z-index: 2;
    filter: drop-shadow(0 0 25px rgba(247, 177, 255, 0.4));
}

.merch-neon-circle {
    position: absolute;
    width: 550px;
    height: 550px;
    background: radial-gradient(circle, rgba(247, 177, 255, 0.35) 0%, transparent 70%);
    opacity: 0.6;
    filter: blur(60px);
    z-index: 1;
    top: 50%;
    left: 45%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    animation: neonPulseMerch 4s infinite alternate ease-in-out;
}

@keyframes neonPulseMerch {
    0% {
        opacity: 0.5;
        transform: translate(-50%, -50%) scale(0.95);
    }

    100% {
        opacity: 0.8;
        transform: translate(-50%, -50%) scale(1.05);
    }
}


@media (max-width: 1024px) {
    .merch-section {

        padding: 3rem 1rem;
    }

    .merch-card {
        padding: 3rem 2rem;
        border-radius: 24px;
    }

    .merch-promo-container {
        flex-direction: column;
        text-align: center;

        gap: 3rem;
    }

    .merch-promo-content {
        max-width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .merch-title {
        font-size: clamp(2.2rem, 8vw, 3rem);
    }

    .merch-promo-image-wrap {
        margin-left: 0;
        justify-content: center;

        margin-top: 0;
    }

    .merch-mascot {
        max-width: 400px;
    }

    .merch-neon-circle {
        width: 350px;
        height: 350px;
        left: 50%;
    }
}

@media (pointer: fine) {


    *,
    *::before,
    *::after {
        cursor: none !important;
    }

    iframe,
    iframe * {
        cursor: auto !important;
    }

    .cursor-dot {
        position: fixed;
        top: 0;
        left: 0;
        width: 16px;
        height: 16px;
        background-color: var(--accent);
        border-radius: 50%;
        box-shadow: 0 0 10px var(--accent), 0 0 25px var(--accent);
        pointer-events: none;
        z-index: 99999;
        opacity: 0;

        transition: width 0.35s cubic-bezier(0.2, 0.8, 0.2, 1),
            height 0.35s cubic-bezier(0.2, 0.8, 0.2, 1),
            background-color 0.35s ease,
            box-shadow 0.35s ease,
            border 0.35s ease,
            opacity 0.2s ease;
    }


    .cursor-dot.hovered {
        width: 48px;
        height: 48px;
        background-color: rgba(166, 242, 6, 0.15);
        border: 2px solid var(--accent);
        box-shadow: 0 0 20px rgba(166, 242, 6, 0.4);
    }
}

@media (pointer: coarse) {
    .cursor-dot {
        display: none !important;
    }
}


.error-page-dark {
    background-color: #0b0d09 !important;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow-y: auto;
    position: relative;
    padding: 40px 0;
}

.error-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 1100px;
    z-index: 5;
    text-align: center;
}

.error-visual {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 60vh;
    margin-bottom: 1rem;
    overflow: visible;
}

.error-cat-final {
    height: 100%;
    width: auto;

    max-width: 850px;
    object-fit: contain;
    z-index: 5;

    mask-image: linear-gradient(to bottom, black 80%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 80%, transparent 100%);
    filter: drop-shadow(0 0 40px rgba(166, 242, 6, 0.4));
}


.glitch-text {
    position: absolute;
    font-family: 'PaluiSP', sans-serif;
    font-size: clamp(10rem, 35vw, 28rem);
    color: rgba(255, 255, 255, 0.05);
    z-index: 1;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.glitch-text::before,
.glitch-text::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.6;
    animation: glitch-loop 2.5s infinite linear alternate-reverse;
}

.glitch-text::before {
    left: 4px;
    text-shadow: -3px 0 #ff00ff;
    clip-path: inset(10% 0 80% 0);
}

.glitch-text::after {
    left: -4px;
    text-shadow: 3px 0 #00ffff;
    clip-path: inset(80% 0 10% 0);
    animation-delay: 0.4s;
}


@keyframes glitch-loop {
    0% {
        clip-path: inset(40% 0 20% 0);
        transform: translate(-10px, 5px);
    }

    20% {
        clip-path: inset(10% 0 80% 0);
        transform: translate(10px, -5px);
    }

    40% {
        clip-path: inset(50% 0 50% 0);
        transform: translate(-5px, 10px);
    }

    60% {
        clip-path: inset(80% 0 10% 0);
        transform: translate(5px, -10px);
    }

    80% {
        clip-path: inset(20% 0 60% 0);
        transform: translate(-10px, 5px);
    }

    100% {
        clip-path: inset(40% 0 20% 0);
        transform: translate(10px, -5px);
    }
}

@keyframes glitch-anim-2 {
    0% {
        clip: rect(90px, 9999px, 20px, 0);
        transform: skew(0.8deg);
    }

    5% {
        clip: rect(10px, 9999px, 80px, 0);
        transform: skew(0.2deg);
    }

    10% {
        clip: rect(50px, 9999px, 40px, 0);
        transform: skew(0.5deg);
    }

    15% {
        clip: rect(30px, 9999px, 70px, 0);
        transform: skew(0.1deg);
    }

    100% {
        clip: rect(30px, 9999px, 70px, 0);
        transform: skew(0.1deg);
    }
}


.glitch-title {
    font-family: 'PaluiSP', sans-serif;
    font-size: clamp(2rem, 5vw, 4rem);
    color: #fff;
    position: relative;
    display: inline-block;
}

.glitch-title::before {
    content: attr(data-text);
    position: absolute;
    left: -2px;
    text-shadow: 1px 0 #ff00ff;
    top: 0;
    color: #fff;
    background: #0b0d09;
    overflow: hidden;
    clip: rect(0, 900px, 0, 0);
    animation: glitch-anim-title 3s infinite linear alternate-reverse;
}

@keyframes glitch-anim-title {
    0% {
        clip: rect(10px, 9999px, 20px, 0);
    }

    10% {
        clip: rect(40px, 9999px, 50px, 0);
    }

    20% {
        clip: rect(10px, 9999px, 60px, 0);
    }

    100% {
        clip: rect(10px, 9999px, 60px, 0);
    }
}

.error-info p {
    color: rgba(255, 255, 255, 0.6);
    margin: 1rem auto 2.5rem;
    font-size: 1.1rem;
    max-width: 500px;
}

.btn-neon-large {
    background-color: var(--accent) !important;
    color: #000 !important;
    padding: 1.2rem 3.5rem;
    border-radius: 50px;
    font-weight: 800;
    font-size: 1.1rem;
    text-decoration: none;
    display: inline-block;
    box-shadow: 0 10px 40px rgba(166, 242, 6, 0.4);
    transition: all 0.3s ease;

    opacity: 1 !important;
    position: relative;
    z-index: 20;
}

.btn-neon-large:hover {
    transform: scale(1.05);
    background-color: #fff !important;
}


@media (max-width: 768px) {
    .error-cat-final {
        width: 90vw;
    }

    .error-container {
        padding-bottom: 4rem;
    }
}




html {
    scrollbar-width: thin !important;
    scrollbar-color: var(--accent) var(--bg-light) !important;
    background-color: var(--bg-light);
}

body {
    background-color: var(--bg-light) !important;
}

::-webkit-scrollbar {
    width: 6px !important;
    height: 6px !important;
    background-color: var(--bg-light) !important;
}

::-webkit-scrollbar-button {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
}

::-webkit-scrollbar-track {
    background-color: var(--bg-light) !important;
    border: none !important;
}

::-webkit-scrollbar-thumb {
    background-color: var(--accent) !important;
    border-radius: 10px !important;
}

::-webkit-scrollbar-corner {
    background-color: var(--bg-light) !important;
}


.about-stats-container {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    align-items: start;
    margin-top: 1rem;
}


.about-stats-left {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    border-left: 3px solid var(--accent);
    padding-left: 2rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-family: 'PaluiSP', sans-serif;
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    color: var(--text-dark);
    line-height: 1;
    margin-bottom: 0.5rem;
    display: block;
}

.stat-item-massive .stat-number {
    font-size: clamp(3rem, 5vw, 4.2rem);
    color: var(--text-dark);
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-gray);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: block;
}

.about-manifesto-title {
    font-family: 'PaluiSP', sans-serif;
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
    text-transform: uppercase;
}

.about-manifesto-desc {
    font-size: 1.1rem;
    color: var(--text-gray);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.about-manifesto-desc strong {
    color: var(--text-dark);
}

@media (max-width: 900px) {
    .about-stats-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .about-stats-left {
        border-left: none;
        padding-left: 0;
        border-top: 3px solid var(--accent);
        padding-top: 2rem;
    }
}

@media (hover: none) and (pointer: coarse) {
    ::-webkit-scrollbar {
        display: none !important;
        width: 0 !important;
        height: 0 !important;
        background: transparent !important;
        -webkit-appearance: none !important;
    }

    * {
        scrollbar-width: none !important;
    }
}


@media (max-width: 768px) {

    .hero-title .reveal-text {
        font-size: 6.8vw !important;
        letter-spacing: -1.5px !important;
        white-space: nowrap !important;
    }

    .hero-title {
        width: 100% !important;
        overflow: hidden !important;
    }

    .profile-card,
    .profile-image-wrap img,
    .about-text-block {
        -webkit-backface-visibility: hidden !important;
        backface-visibility: hidden !important;
        transform: translateZ(0) !important;
        -webkit-transform: translate3d(0, 0, 0) !important;
        perspective: 1000px !important;
    }
}

.profile-schedule {
    margin: 4rem auto;
    max-width: 1200px;
    padding: 0 20px;
}

.profile-schedule h3 {
    font-family: 'PaluiSP', sans-serif;
    font-size: 2.5rem;
    color: var(--text-dark);
    text-align: center;
    margin-bottom: 2.5rem;
}

@media (max-width: 768px) {
    .profile-schedule h3 {
        font-size: clamp(1.2rem, 7vw, 1.8rem) !important;
        margin-bottom: 1.5rem;
        white-space: nowrap !important;
        letter-spacing: -1px;
    }
}


.schedule-grid {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    padding-bottom: 1.5rem;
    padding-top: 10px;
    scroll-snap-type: none;
    scrollbar-width: thin;
    scrollbar-color: var(--accent) rgba(0, 0, 0, 0.05);


    cursor: none !important;
}

@media (max-width: 768px) {
    .schedule-grid {
        scroll-snap-type: x mandatory;
        padding-right: 15vw;
    }

    .schedule-card {
        min-width: 85vw !important;
        scroll-snap-align: center;
    }
}


.schedule-grid {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.schedule-grid::-webkit-scrollbar {
    height: 0px !important;
    width: 0px !important;
    background: transparent !important;
    -webkit-appearance: none !important;
}

.schedule-grid,
.schedule-card,
.card,
.roster-grid {
    cursor: none !important;
}

.schedule-grid {
    user-select: none;
    -webkit-user-select: none;
}


.schedule-card {
    flex: 0 0 340px;
    scroll-snap-align: start;
    background-color: var(--bg-white);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 20px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    text-decoration: none;
    position: relative;
    user-select: none;


    cursor: none !important;
}

.schedule-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(166, 242, 6, 0.2);
    border-color: var(--accent);
}


.schedule-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-right: 1.5rem;
    border-right: 2px solid rgba(166, 242, 6, 0.3);
    min-width: 80px;
}

.schedule-day {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-gray);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.schedule-num {
    font-family: 'PaluiSP', sans-serif;
    font-size: 2.5rem;
    color: var(--text-dark);
    line-height: 1;
}


.schedule-info {
    padding-left: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}


.schedule-talent-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.schedule-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--accent);
}

.schedule-talent-name {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-gray);
    text-transform: uppercase;
}

.schedule-time {
    color: var(--accent);
    font-weight: 800;
    font-size: 1.2rem;
    margin-bottom: 0.3rem;
    text-shadow: 0 0 10px rgba(166, 242, 6, 0.3);
}

.schedule-title {
    color: var(--text-dark);
    font-weight: 700;
    font-size: 1.1rem;
    line-height: 1.3;
    margin-bottom: 0.5rem;
}

.schedule-link-hint {
    font-size: 0.85rem;
    color: var(--text-gray);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
}

.schedule-card:hover .schedule-link-hint {
    color: var(--accent);
}

.schedule-empty {
    width: 100%;
    text-align: center;
    color: var(--text-gray);
    font-size: 1.1rem;
    padding: 3rem 1rem;
    background: transparent;
    display: flex;
    justify-content: center;
    align-items: center;
}

.schedule-card .live-badge-link {
    transform: scale(0.8);
    transform-origin: top right;
    top: 1rem;
    right: 1rem;
}




.share-nav-link {
    font-weight: 800 !important;
    letter-spacing: 1px;
    color: var(--text-dark) !important;
    transition: color 0.3s ease !important;
}

.share-nav-link:hover {
    color: var(--accent) !important;
}

[data-theme="dark"] .share-nav-link {
    color: var(--text-dark) !important;
}


.nav-auth-btn {
    background-color: var(--accent) !important;
    color: #000000 !important;
    padding: 0.5rem 1.2rem !important;
    font-size: 0.8rem !important;
    margin-left: 1.5rem !important;
    border-radius: 50px;
    font-weight: 700 !important;
    border: none !important;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.nav-auth-btn:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 8px 20px rgba(166, 242, 6, 0.4) !important;
    background-color: var(--text-dark) !important;
    color: var(--bg-white) !important;
}

[data-theme="dark"] .nav-auth-btn:hover {
    background-color: #ffffff !important;
    color: #000000 !important;
}

@media (max-width: 1270px) {
    .nav-auth-btn {
        margin-left: 0 !important;
        margin-top: 1rem !important;
        font-size: 1.1rem !important;
        padding: 0.8rem 2rem !important;
        width: auto !important;
    }
}


.nav-logout-link {
    color: #ff4a4a !important;
    font-size: 0.7rem !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    text-transform: uppercase;
    margin-left: 0 !important;
    padding: 0 !important;
    transition: color 0.2s ease;
}

.nav-logout-link:hover {
    color: #ff2020 !important;
}

.share-container {
    padding: 140px 0 100px;
    min-height: 80vh;
    display: flex;
    justify-content: center;
}

.share-card {
    background-color: var(--bg-white);
    padding: 3rem;
    border-radius: 24px;
    border: 1px solid var(--border-color);
    max-width: 600px;
    width: 100%;
    margin: 0 auto;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.05);
}


.auth-profile-wrap {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 2.5rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 20px;
}

.auth-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: 2px solid var(--accent);
    object-fit: cover;
    flex-shrink: 0;
}

.auth-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.auth-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-dark);
    margin: 0;
    line-height: 1.1;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.auth-admin-badge {
    background: var(--accent);
    color: #000;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 800;
    margin-top: 5px;
    text-transform: uppercase;
}


.custom-input {
    width: 100%;
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    color: var(--text-dark);
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 20px;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s;
}

.custom-input:focus {
    border-color: var(--accent);
}

.form-label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-gray);
    margin-bottom: 8px;
    font-weight: 700;
    text-transform: uppercase;
}


.file-ui {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    width: 100%;
    max-width: 100%;   
    overflow: hidden;
    background: var(--bg-light);
    padding: 10px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.file-name {
    flex: 1;
    min-width: 0;
    
    font-size: 0.9rem;
    color: var(--text-gray);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--text-gray);
}

.file-btn {
    background-color: var(--accent);
    color: #000;
    border: none;
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 800;
    font-family: 'Montserrat', sans-serif;
    cursor: pointer;
    transition: transform 0.2s;
    white-space: nowrap;
}

.file-btn:hover {
    transform: scale(1.05);
    background-color: #fff;
}

.remove-file {
    background: rgba(255, 68, 68, 0.1);
    color: #ff4444;
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: none; 
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: 0.2s ease;
    flex-shrink: 0;
}

.remove-file:hover {
    background: #ff4444;
    color: white;
    transform: scale(1.1);
}

.remove-file.active {
    display: flex;
}

.custom-alert {
    display: none;
    background: rgba(255, 74, 74, 0.1);
    border-left: 4px solid #ff4a4a;
    padding: 15px;
    border-radius: 8px;
    color: #ff4a4a;
    margin-bottom: 20px;
    font-weight: 500;
    font-size: 0.9rem;
}

[data-theme="dark"] .btn-submit:hover,
[data-theme="dark"] .file-btn:hover {
    background-color: #ffffff !important;
    color: #000000 !important;
    box-shadow: 0 10px 25px rgba(255, 255, 255, 0.2) !important;
}


.view-wrapper {
    background-color: var(--bg-white);
    padding: 3rem;
    border-radius: 24px;
    border: 1px solid var(--border-color);
    max-width: 900px;
    width: 100%;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.05);
    margin: 0 auto;
}

.view-header {
    font-family: 'Montserrat', sans-serif;
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 10px;
    color: var(--text-dark);
    text-transform: uppercase;
}

.meta-info {
    color: var(--text-gray);
    font-size: 0.95rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1rem;
    overflow-wrap: anywhere;
}

.text-content {
    background: var(--bg-light);
    padding: 25px;
    border-radius: 12px;
    white-space: pre-wrap;
    font-family: monospace;
    font-size: 1.05rem;
    color: var(--text-dark);
    border: 1px solid var(--border-color);
    overflow-wrap: anywhere;
}

.media-content {
    text-align: center;
    margin-bottom: 25px;
}

.media-content img,
.media-content video {
    max-width: 100%;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}


.btn-submit {
    width: 100%;
    background-color: var(--accent);
    color: #000;
    padding: 1.2rem;
    border-radius: 50px;
    border: none;
    font-weight: 800;
    font-family: 'Montserrat', sans-serif;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(166, 242, 6, 0.4);
    background-color: var(--bg-white);
    color: var(--text-dark);
}

.logout-link-center {
    display: block;
    text-align: center;
    color: #ff4a4a;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    margin-top: 1.5rem;
    text-transform: uppercase;
    transition: color 0.2s;
}

.logout-link-center:hover {
    color: #ff2020;
}


@media (max-width: 768px) {
    .share-container {
        padding: 100px 15px 60px;
    }

    .share-card,
    .view-wrapper {
        padding: 2rem 1.5rem;
    }

    .auth-profile-wrap {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    .auth-info {
        align-items: center;
    }

    .file-ui {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
        gap: 10px;
    }

    .text-content {
        font-size: 0.95rem;
        padding: 15px;
        text-align: left;
    }

    .view-header {
        font-size: 1.5rem;
        text-align: center;
    }

    .meta-info {
        text-align: center;
    }
}

.nav-profile-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: 1.5rem;
    padding-left: 1.5rem;
    border-left: 1px solid var(--border-color);
}

.nav-profile-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid var(--accent);
    object-fit: cover;
}

.nav-profile-info {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
    text-align: left;
}

.nav-profile-name {
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--text-dark);
}



.share-container {
    padding: 140px 0 100px;
    min-height: 80vh;
    display: flex;
    justify-content: center;
}

.file-ui {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    background: var(--bg-light);
    padding: 10px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.auth-profile-wrap {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 20px;
}

.view-wrapper {
    background-color: var(--bg-white);
    padding: 3rem;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    max-width: 900px;
    width: 100%;
}

.text-content {
    background: var(--bg-light);
    padding: 25px;
    border-radius: 12px;
    white-space: pre-wrap;
    font-family: monospace;
    font-size: 1.05rem;
    color: var(--text-dark);
    border: 1px solid rgba(255, 255, 255, 0.05);
    overflow-wrap: anywhere;
    word-break: break-word;
}


@media (max-width: 900px) {
    .share-container {
        padding: 100px 15px 60px;
    }

    .share-card,
    .view-wrapper {
        padding: 2rem 1.5rem;
    }


    .auth-profile-wrap {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    .auth-info {
        align-items: center;
    }


    .file-ui {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
        gap: 10px;
    }

    .file-btn {
        width: 100%;
    }

    .text-content {
        text-align: left;
        padding: 15px;
        font-size: 0.95rem;
    }
}

@media (max-width: 1024px) {
    .nav-profile-wrap {
        margin-left: 0;
        padding-left: 0;
        border-left: none;
        flex-direction: column;
        align-items: center;
        gap: 10px;
        margin-top: 1rem;
    }

    .nav-profile-avatar {
        width: 64px;
        height: 64px;
    }

    .nav-profile-info {
        align-items: center;
        text-align: center;
    }

    .nav-profile-name {
        font-size: 1.5rem;
    }

    .nav-logout-link {
        font-size: 1rem !important;
        margin-top: 5px !important;
        display: inline-block;
    }
}

@media (max-width: 1270px) {
    .header .nav a.nav-auth-btn {
        font-family: 'Montserrat', sans-serif !important;
        font-size: 1.1rem !important;
        padding: 1rem 2.5rem !important;
        border-radius: 50px !important;
        width: auto !important;
        max-width: 85vw !important;
        white-space: normal !important;
        text-align: center !important;
        line-height: 1.2 !important;
        margin-top: 1rem !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
}

@media (max-width: 768px) {
    .header .nav a.nav-auth-btn {
        font-size: 0.95rem !important;
        padding: 0.8rem 2rem !important;
    }

    .header {
        left: 15px !important;
        margin: 0 !important;
        width: calc(100% - 30px) !important;
        
        /* Снимаем блюр с родителя, чтобы меню могло вырваться на весь экран */
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        background: transparent !important;
    }

    /* 2. ВОЗВРАЩАЕМ БЛЮР (через задний фон, который ничего не запирает) */
    .header::before {
        content: '';
        position: absolute;
        top: 0; left: 0; width: 100%; height: 100%;
        background: var(--header-bg);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        border-radius: inherit;
        z-index: -1;
    }
}


.schedule-pagination {
    display: none;
    
    justify-content: center;
    
    align-items: center;
    gap: 10px;
    
    margin-top: 15px;
    padding-bottom: 10px;
}

.schedule-dot {
    width: 8px;
    
    height: 8px;
    border-radius: 50%;
    
    background-color: var(--text-gray);
    
    opacity: 0.3;
    transition: all 0.3s ease;
    cursor: pointer;
}


.schedule-dot.active {
    opacity: 1;
    background-color: var(--accent);
    
    transform: scale(1.3);
    
    box-shadow: 0 0 10px var(--accent);
    
}

.schedule-pagination {
    display: flex;
    
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 15px;
    padding-bottom: 10px;
}

button.btn-submit {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.2;
    appearance: none;
    outline: none;
}

#share-button-container .btn-submit {
    
    transition: transform 0.3s ease, background-color 0.3s ease;
}

#share-button-container .btn-submit:active {
    transform: scale(0.96);
}


.post-actions {
    margin-top: auto; 
    padding-top: 10px;
    margin-top: 2rem;
    display: flex;
    flex-direction: row;
    gap: 0.75rem; 
    align-items: stretch; 
    justify-content: center;
    max-width: 450px; 
    margin-left: auto;
    margin-right: auto;
}

.btn-create-post {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    
    padding: 0.75rem 1.5rem !important; 
    font-size: 0.9rem !important;
    white-space: nowrap;
}

.btn-share {
    background-color: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-dark);
    
    border-radius: 100px; 
    padding: 0 1.5rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1); 
    cursor: pointer;
    white-space: nowrap;
}

[data-theme="dark"] .btn-share {
    color: var(--text-white);
    background-color: rgba(255, 255, 255, 0.05);
}

.btn-share:hover {
    background-color: var(--accent);
    color: var(--dark-card);
    border-color: var(--accent);
    transform: translateY(-3px); 
    box-shadow: 0 6px 15px rgba(166, 242, 6, 0.25); 
}

.btn-share:active {
    transform: translateY(0); 
    box-shadow: none;
}

.share-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}


@media (max-width: 768px) {
    .post-actions {
        max-width: 100%;
    }

    .btn-create-post {
        padding: 0.75rem 1rem !important;
        font-size: 0.85rem !important;
    }

    .btn-share {
        padding: 0;
        width: 48px; 
        flex-shrink: 0; 
        border-radius: 50%
    }

    
    .btn-share .share-text {
        display: none;
    }

    .post-media-stage,
    .post-media-stage .player-content,
    .post-media-stage video.player-media {
        height: 250px !important;
        max-height: 250px !important;
        min-height: 250px !important;
    }
    
    .post-media-stage img.player-media {
        max-height: 250px !important;
    }
}

.settings-grid {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
    align-items: flex-start;
}

.setting-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}


.setting-group:first-child {
    flex: 2;
}


.setting-group:last-child {
    flex: 1;
}

.setting-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-gray);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}


.switch-container {
    height: 52px; 
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 0 16px;
    transition: all 0.3s ease;
}

[data-theme="dark"] .switch-container {
    background: rgba(255, 255, 255, 0.03);
}

.switch-container:hover {
    border-color: var(--accent);
}

.switch-container input {
    display: none;
}


.switch-control {
    width: 40px;
    height: 20px;
    background: #cbd5e1;
    border-radius: 20px;
    position: relative;
    transition: all 0.3s ease;
}

[data-theme="dark"] .switch-control {
    background: rgba(255, 255, 255, 0.1);
}


.switch-handle {
    width: 14px;
    height: 14px;
    background: white;
    border-radius: 50%;
    position: absolute;
    top: 3px;
    left: 3px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}


input:checked + .switch-control {
    background: var(--accent);
    box-shadow: 0 0 10px rgba(166, 242, 6, 0.4);
}

input:checked + .switch-control .switch-handle {
    left: 23px;
    background: var(--dark-card);
}

.switch-label-text {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-dark);
}

[data-theme="dark"] .switch-label-text {
    color: var(--text-white);
}

@media (max-width: 480px) {
    
    .settings-grid {
        flex-direction: column;
        gap: 12px; 
    }

    
    .setting-group {
        width: 100%;
        gap: 6px; 
    }

    /* 3. Полностью убираем пустой заголовок из верстки на мобилках, 
          чтобы он физически не занимал ни одного пикселя */
    .setting-label.empty-label {
        display: none !important;
    }

    /* 4. Немного уменьшаем высоту кнопки на мобилке, 
          чтобы она не смотрелась массивнее селекта */
    .switch-container {
        height: 44px;
        padding: 0 12px;
    }

    .setting-label.empty-label {
        display: none !important;
    }
}


/* ==========================================================================
   НОВЫЙ ФУНКЦИОНАЛ (Лента, Просмотр, Реакции, Комментарии)
   ========================================================================== */


.feed-layout-body { display: flex; flex-direction: column; min-height: 100vh; }
.feed-container-main { flex: 1; padding: 9rem 5px; }


.post-grid {
    display: grid;
    gap: 15px;
    grid-template-columns: repeat(3, 1fr);
    width: 100%;
}
@media (max-width: 1000px) { .post-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .post-grid { grid-template-columns: 1fr; } }

.post-card {
    display: flex;
    flex-direction: column;
    height: 100%; 
    background: var(--bg-white);
    border-radius: 16px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;

    /* Выносим карточку на отдельный слой видеокарты */
    transform: translateZ(0);
    will-change: transform;
}

[data-theme="dark"] .post-card { background: var(--dark-card); }
.post-card:hover { transform: translateY(-5px); border-color: var(--accent); }

.post-media {
    position: relative;
    height: 250px !important;
    overflow: hidden;
}

.post-media img,
.post-media video {
    width: 100%;
    height: 100% !important;
    object-fit: cover !important; 
    display: block;
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.post-media video {
    transition: filter 0.3s ease;
    filter: brightness(0.9);
}

.post-card:hover .post-media video {
    filter: brightness(1);
}

.post-info {
    display: flex;
    flex-direction: column;
    flex: 1; 
    padding: 15px;
    min-height: 0; 
}

.post-author-line { color: var(--accent); font-weight: 700; font-size: 0.85rem; margin-bottom: 8px; }

.post-text-preview {
    display: -webkit-box;
    -webkit-line-clamp: 2; 
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;

    max-height: 6rem; 
    line-height: 1.5;
}

.post-text-preview::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 45px; 
    background: linear-gradient(to bottom, transparent, var(--bg-white));
    pointer-events: none;
}

[data-theme="dark"] .post-text-preview::after {
    background: linear-gradient(transparent, var(--dark-card));
}

[data-theme="dark"] .post-text-preview { color: var(--text-white); }
.post-footer {
    margin-top: auto; 
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    border-top: 1px solid var(--border-color);
}

.post-actions-right {
    display: flex;
    align-items: center;
    gap: 8px; 
}


.action-btn.share, .delete-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    background: var(--bg-white);
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 700;
    transition: all 0.2s ease;
    height: 38px; 
}

[data-theme="dark"] .action-btn.share, 
[data-theme="dark"] .delete-btn {
    background: var(--dark-card);
}


.action-btn.share {
    color: var(--text-dark);
}
[data-theme="dark"] .action-btn.share { color: var(--text-white); }

.action-btn.share:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: #000;
}


.delete-btn {
    color: #ff4444;
    padding: 8px 10px; 
    background: rgba(255, 68, 68, 0.05);
    border-color: rgba(255, 68, 68, 0.1);
}

.delete-btn:hover {
    background: #ff4444;
    color: #fff;
    border-color: #ff4444;
}


@media (max-width: 480px) {
    
    .action-btn.share .share-text {
        display: none;
    }
    
    .action-btn.share {
        padding: 8px 10px; 
    }
    
    .post-footer {
        padding-top: 10px;
    }

    .file-name {
        font-size: 0.7rem;
    }
}


.single-post-card {
    max-width: 900px; margin: 0 auto 30px; background: var(--bg-white);
    border: 1px solid var(--border-color); border-radius: 30px; overflow: hidden;
}
[data-theme="dark"] .single-post-card { background: var(--dark-card); }

.post-media-stage {
    height: 70vh; 
    background: #000;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.player-blur-bg {
    position: absolute;
    width: 120%;
    height: 120%;
    background-size: cover;
    filter: blur(40px) brightness(0.5);
    z-index: 1;
}

.player-content {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

img.player-media {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain; 
    padding: 20px;       
    box-sizing: border-box;
    cursor: zoom-in;
}


video.player-media {
    width: 100%;         
    height: 100%;        
    object-fit: contain; 
    padding: 0;          
}

.player-media { max-height: 100%; max-width: 100%; object-fit: contain; padding: 20px; box-sizing: border-box; }
.player-media:hover { cursor: zoom-in; }
video.player-media:hover { cursor: default; }

.post-details-area { padding: 30px; }
.post-top-meta { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 20px; }
.post-text-content { font-size: 1.1rem; line-height: 1.6; margin-bottom: 30px; color: var(--text-dark); }
[data-theme="dark"] .post-text-content { color: var(--text-white); }
.post-interaction-row { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--border-color); padding-top: 25px; }


.btn-login {
    background: var(--accent); color: #000; font-weight: 800; font-family: 'Montserrat', sans-serif;
    padding: 10px 24px; border-radius: 12px; text-decoration: none; display: inline-flex;
    align-items: center; justify-content: center; transition: all 0.3s ease;
}
.btn-login:hover { transform: translateY(-2px); box-shadow: 0 5px 15px rgba(166, 242, 6, 0.4); }

.action-btn.share {
    background: var(--bg-light); border: 1px solid var(--border-color); padding: 10px 20px;
    border-radius: 12px; display: flex; align-items: center; gap: 8px; font-weight: 700;
    cursor: pointer; color: var(--text-dark); transition: all 0.3s ease; font-family: 'Montserrat', sans-serif;
}
[data-theme="dark"] .action-btn.share { color: var(--text-white); background: rgba(255,255,255,0.05); }
.action-btn.share:hover { border-color: var(--accent); transform: translateY(-2px); }

.action-btn.share.copied {
    color: var(--accent) !important;
    stroke: var(--accent) !important;
    text-shadow: 0 0 12px rgba(166, 242, 6, 0.7); 
    filter: drop-shadow(0 0 6px rgba(166, 242, 6, 0.7));
    transition: all 0.2s ease-in-out;
}

[data-theme="dark"] .action-btn.share.copied {
    color: var(--accent);
    background: rgba(166, 242, 6, 0.1);
}


.v-btn {
    transition: transform 0.15s cubic-bezier(0.4, 0, 0.2, 1), color 0.2s ease;
}

.v-btn.active-up {
    color: var(--accent); 
}
.v-btn.active-up svg {
    stroke-width: 3px; 
}

.v-btn.active-down {
    color: #ff4444; 
}
.v-btn.active-down svg {
    stroke-width: 3px;
}

.v-count {
    transition: opacity 0.15s ease, transform 0.15s ease;
    display: inline-block;
}

.vote-bar, .voting-arrows { display: flex; align-items: center; background: var(--bg-light); border-radius: 50px; padding: 4px; gap: 5px; width: fit-content; }
.v-btn, .v-arrow-btn { width: 40px; height: 40px; border-radius: 50%; border: none; background: transparent; cursor: pointer; color: var(--text-gray); display: flex; align-items: center; justify-content: center; transition: 0.2s; }
.v-btn.up:hover, .v-arrow-btn.up:hover { background: rgba(16,185,129,0.1); color: #10b981; }
.v-btn.down:hover, .v-arrow-btn.down:hover { background: rgba(239,68,68,0.1); color: #ef4444; }
.v-count, .v-number { font-weight: 800; min-width: 30px; text-align: center; color: var(--text-dark); }
[data-theme="dark"] .v-count, [data-theme="dark"] .v-number { color: var(--text-white); }


.comments-card { 
    max-width: 900px; 
    margin: 40px auto; 
    padding: 30px; 
    background: var(--bg-white); 
    border: 1px solid var(--border-color); 
    border-radius: 30px; 
}

.comments-card h3 { 
    font-size: 1.5rem; 
    font-weight: 800; 
    margin-bottom: 25px; 
    font-family: 'PaluiSP', sans-serif;
}


.comment-composer {
    margin-bottom: 40px;
}

.comment-composer.is-disabled {
    opacity: 0.6;
}

.comment-composer textarea { 
    width: 100%; 
    background: var(--bg-light); 
    border: 1px solid var(--border-color); 
    color: var(--text-dark); 
    border-radius: 15px; 
    padding: 15px; 
    min-height: 100px; 
    resize: none; 
    font-family: inherit; 
    font-size: 1rem; 
    transition: border-color 0.2s;
}

.comment-composer textarea:focus {
    outline: none;
    border-color: var(--accent);
}

.comment-composer-footer {
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    margin-top: 15px;
}

#char-count {
    color: var(--text-gray);
    font-size: 0.85rem;
    font-weight: 500;
}

.auth-warning a {
    color: var(--accent);
    font-weight: 700;
    text-decoration: none;
}


.send-comment-btn { 
    background: var(--accent); 
    color: #000; 
    border: none; 
    padding: 12px 25px; 
    border-radius: 12px; 
    font-weight: 800; 
    font-family: 'Montserrat', sans-serif; 
    cursor: pointer; 
    transition: 0.3s; 
}

.send-comment-btn:hover:not(:disabled) { 
    transform: translateY(-2px); 
    box-shadow: 0 8px 15px rgba(166, 242, 6, 0.3); 
}

.send-comment-btn:disabled { 
    opacity: 0.5; 
    filter: grayscale(1); 
    cursor: not-allowed; 
}


.comments-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.comment-item {
    display: flex;
    gap: 15px;
}

.comment-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--bg-light);
    flex-shrink: 0;
}

.comment-content {
    flex: 1;
    min-width: 0; 
}

.comment-header {
    display: flex;
    justify-content: space-between; 
    align-items: center; 
    margin-bottom: 8px; 
}

.comment-meta {
    display: flex;
    flex-direction: column; 
    align-items: flex-start; 
    gap: 4px; 
}

.comment-author {
    font-weight: 700;
    color: var(--accent); 
    font-size: 0.95rem;
}

.comment-date {
    color: var(--text-gray);
    font-size: 0.8rem;
    line-height: 1; 
}

.comment-text {
    line-height: 1.6;
    font-size: 1rem;
    color: var(--text-dark);
    word-break: break-word;
}


.del-com-btn {
    background: none;
    border: none;
    color: var(--text-gray);
    cursor: pointer;
    padding: 6px; 
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.4;
    transition: all 0.2s ease;
    border-radius: 8px;
    flex-shrink: 0; 
}

.del-com-btn:hover {
    color: #ff4444; 
    opacity: 1;
    background: rgba(255, 68, 68, 0.1);
}

.no-comments {
    text-align: center;
    color: var(--text-gray);
    padding: 40px 20px;
    background: var(--bg-light);
    border-radius: 20px;
    font-style: italic;
}


[data-theme="dark"] .comment-composer textarea { 
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-white); 
}

[data-theme="dark"] .comment-text {
    color: var(--text-white);
}

[data-theme="dark"] .no-comments {
    background: rgba(255, 255, 255, 0.02);
}


.lightbox { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.92); z-index: 10000; display: flex; justify-content: center; align-items: center; cursor: zoom-out; backdrop-filter: blur(10px); visibility: hidden; opacity: 0; transition: opacity 0.3s ease, visibility 0.3s ease; }
.lightbox.active { visibility: visible; opacity: 1; }
.lightbox img { max-width: 90%; max-height: 90%; object-fit: contain; border-radius: 8px; box-shadow: 0 0 50px rgba(0,0,0,0.5); transform: scale(0.8); transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
.lightbox.active img { transform: scale(1); }
.lightbox-close { position: absolute; top: 30px; right: 40px; color: white; font-size: 50px; font-weight: 300; cursor: pointer; z-index: 10001; transition: color 0.2s; line-height: 1; }
.lightbox-close:hover { color: var(--accent); }


@media (max-width: 500px) {
    .comments-card h3 { font-size: 0.95rem; }
    
    
    .post-interaction-row { 
        flex-direction: row; 
        justify-content: space-between; 
        align-items: center; 
    }
    
    
    .action-btn.share .share-text { display: none; }
    .action-btn.share { padding: 10px 14px; }
}

/* ==========================================================================
   ВЫПАДАЮЩЕЕ МЕНЮ (ПК) И СЛАЙД-МЕНЮ (МОБИЛКИ)
   ========================================================================== */

.nav-item-dropdown {
    position: relative;
    display: flex;
    align-items: center;
    margin-left: 1.5rem; 
}

.dropdown-trigger {
    display: flex;
    font-weight: 500;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    color: var(--text-dark);
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

[data-theme="dark"] .dropdown-trigger {
    color: var(--text-white);
}

.dropdown-trigger:hover {
    color: var(--accent);
}

.mobile-arrow, .submenu-back { display: none; }

.desktop-arrow { transition: transform 0.3s ease; margin-top: 2px; }
.nav-item-dropdown:hover .desktop-arrow { transform: rotate(180deg); }


.dropdown-content {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(15px);
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 8px 0;
    min-width: 150px;
    box-shadow: 0 10px 25px var(--shadow-color);
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    z-index: 100;
}

.nav-item-dropdown:hover .dropdown-content {
    opacity: 1; visibility: visible; transform: translateX(-50%) translateY(5px);
}

.dropdown-content a {
    display: block;
    padding: 12px 20px !important; 
    color: var(--text-dark) !important;
    text-decoration: none;
    font-size: 0.9rem !important;
    font-family: 'Inter', sans-serif !important; 
    text-align: left !important; 
    transition: background 0.2s, color 0.2s;
    border-radius: 0 !important;
    margin: 0 !important;
}

[data-theme="dark"] .dropdown-content a { color: var(--text-white) !important; }
.dropdown-content a:hover { background: var(--bg-light) !important; color: var(--accent) !important; }


@media (max-width: 1270px) { 
    .nav-item-dropdown { 
        width: 100%; 
        display: flex;
        justify-content: center;
        margin: 15px 0 !important; 
    }
    
    .desktop-arrow { display: none; }
    .mobile-arrow { display: block; margin-left: 4px; }
    
    .dropdown-trigger {
        width: auto !important; 
        justify-content: center;
        padding: 0 !important;        
        margin: 0 !important;
        font-size: 1.5rem !important; 
        font-family: 'PaluiSP', sans-serif !important;
        font-weight: normal !important; 
        -webkit-tap-highlight-color: transparent;
    }

    .dropdown-content {
        position: fixed !important;
        top: 0 !important;
        left: 100vw !important;
        width: 100vw !important;
        height: 100vh !important;
        background: var(--bg-white) !important;
        z-index: 10000 !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
        transition: left 0.4s cubic-bezier(0.77, 0, 0.175, 1) !important;
        transform: none !important; opacity: 1 !important; visibility: visible !important; border: none !important; box-shadow: none !important;
    }

    .dropdown-content.mobile-active {
        left: 0 !important;
    }

    .submenu-back {
        display: flex !important;
        align-items: center !important;
        gap: 8px !important;
        position: absolute !important;
        top: 30px !important;
        left: 20px !important;
        font-size: 1.1rem !important;
        font-family: 'PaluiSP', sans-serif !important;
        font-weight: normal !important; 
        color: var(--text-dark) !important;
        cursor: pointer !important;
        z-index: 10001 !important;
        padding: 10px !important;
        -webkit-tap-highlight-color: transparent;
    }
    [data-theme="dark"] .submenu-back { color: var(--text-white) !important; }

    .dropdown-content a {
        font-size: 1.5rem !important; 
        font-family: 'PaluiSP', sans-serif !important;
        font-weight: normal !important; 
        text-align: center !important;
        padding: 15px !important;
        background: transparent !important;
        -webkit-tap-highlight-color: transparent;
    }
    .dropdown-content a:hover { color: var(--accent) !important; background: transparent !important; }

    .nav a:not(.dropdown-content a):not(.nav-auth-btn) {
        font-size: 1.5rem !important;
        font-weight: normal !important;
    }
}

/* ==========================================================================
   УЛУЧШЕННАЯ ШАПКА ЛЕНТЫ И НАВИГАЦИЯ
   ========================================================================== */
.feed-navigation-area {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    gap: 20px;
}

.feed-header-main { flex-shrink: 0; }

.feed-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-dark);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 0;
    font-family: 'PaluiSP', sans-serif;
}
[data-theme="dark"] .feed-title { color: var(--text-white); }

.feed-tools-panel {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-grow: 1;
    justify-content: flex-end;
}

.search-box {
    position: relative;
    display: flex;
    align-items: center;
}
.search-box svg {
    position: absolute;
    left: 12px;
    color: var(--text-gray);
    pointer-events: none;
}
.search-box input {
    padding: 10px 15px 10px 38px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    background: var(--bg-white);
    color: var(--text-dark);
    font-size: 0.9rem;
    font-family: inherit;
    outline: none;
    width: 280px;
    transition: border-color 0.3s, box-shadow 0.3s;
}
[data-theme="dark"] .search-box input { background: var(--dark-card); color: var(--text-white); }
.search-box input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(166, 242, 6, 0.2); }

.feed-controls-group { display: flex; align-items: center; gap: 15px; }


.feed-filter {
    padding: 10px 35px 10px 15px; 
    border-radius: 12px;
    border: 1px solid var(--border-color);
    background: var(--bg-white);
    color: var(--text-dark);
    font-size: 0.9rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    outline: none;
    transition: border-color 0.3s;
    
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center; 
    background-size: 14px;
}
[data-theme="dark"] .feed-filter { background: var(--dark-card); color: var(--text-white); }
.feed-filter:focus { border-color: var(--accent); }



.create-post-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent);
    color: #000;
    padding: 10px 20px;
    border-radius: 12px;
    font-weight: 600; 
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
    text-decoration: none;
    
    transition: background 0.3s ease, color 0.3s ease, transform 0.2s, box-shadow 0.2s;
    line-height: 1;
}
.share-icon-mobile { display: none; } 


.create-post-btn:hover { 
    transform: translateY(-2px); 
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.2); 
    background: #ffffff; 
    color: #000000;      
}


[data-theme="dark"] .create-post-btn:hover {
    background: var(--text-white);
    color: var(--dark-card);
}



.post-nav-wrapper {
    display: flex;

    gap: 12px;
    margin-bottom: 25px;
    align-items: center;
    justify-content: space-between;
    max-width: 900px; 
    margin: 0 auto 20px auto; 
    padding: 0;
    width: 100%;
    box-sizing: border-box; 
    width: 100%; 
}


.back-to-feed-btn, .btn-feed {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 15px; 
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    font-family: 'Montserrat', sans-serif;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.03); 
}


.back-to-feed-btn:hover {
    background: var(--bg-light);
    transform: translateX(-3px); 
}


.btn-feed:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: #000;
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(166, 242, 6, 0.3);
}

[data-theme="dark"] .back-to-feed-btn, 
[data-theme="dark"] .btn-feed {
    background: var(--dark-card);
    color: var(--text-white);
}
/* ==========================================================================
   ФИНАЛЬНЫЙ АДАПТИВ ДЛЯ ТЕЛЕФОНОВ
   ========================================================================== */
@media (max-width: 850px) {
    
    .feed-main { padding-top: 80px !important; } 

    .feed-navigation-area {
        flex-direction: column;
        align-items: stretch;
        gap: 0; 
        margin-bottom: 25px;
    }

    
    .feed-header-main { display: none; }

    .feed-tools-panel {
        flex-direction: column;
        align-items: stretch;
        gap: 12px; 
    }

    .search-box { width: 100%; order: -1; } 
    .search-box input { width: 100%; }

    .feed-controls-group {
        width: 100%;
        display: flex;
        justify-content: space-between;
        gap: 12px;
    }

    
    .feed-filter { flex: 1; text-align: left; }
    
    
    .create-post-btn { 
        flex: 0 0 auto; 
        padding: 0;
        width: 42px; 
        height: 42px;
        justify-content: center; 
    }
    .share-text { display: none; } 
    .share-icon-mobile { display: block; margin: 0; } 
}

@media (max-width: 850px) {
    .back-to-feed-btn, .btn-feed {
        padding: 10px 14px;
    }
}

/* ==========================================================================
   АДАПТАЦИЯ КНОПКИ SHARE ПОД КАРТОЧКУ ПОСТА (ЛЕНТА)
   ========================================================================== */
   

.post-card .share-btn {
    padding: 6px 12px;
    font-size: 0.85rem;
    margin-bottom: 0 !important; 
}


@media (max-width: 600px) {
    .post-card .share-text {
        display: none;
    }

    .post-card .share-btn {
        padding: 6px;
    }
}

 
.drag-over { border: 2px dashed var(--accent); background: rgba(166, 242, 6, 0.05); }

.file-upload-wrapper {
    border: 2px dashed var(--border-color);
    border-radius: 12px;
    padding: 40px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.file-ui {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--bg-light);
    padding: 10px 15px;
    border-radius: 12px;
    border: 1px dashed var(--border-color);
    margin-bottom: 20px;
}

.remove-file:hover {
    transform: scale(1.2);
}


.file-upload-wrapper.drag-over {
    border-color: var(--accent);
    background: rgba(166, 242, 6, 0.05);
    transform: scale(1.02);
}


#media-file {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}


.delete-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--schedule-empty-bg); 
    color: var(--text-gray);
    border: none;
    padding: 8px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.delete-btn:hover {
    background: rgba(255, 68, 68, 0.1); 
    color: #ff4444; 
    transform: translateY(-2px);
}


.post-actions-group {
    display: flex; 
    align-items: center; 
    justify-content: space-between; 
    width: 100%; 
}

/* ==========================================================================
   ПРОГРЕСС-БАР ЗАГРУЗКИ
   ========================================================================== */
.progress-bar-bg {
    width: 100%;
    height: 10px;
    background: var(--border-color);
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 8px;
}

.progress-bar-fill {
    height: 100%;
    width: 0%;
    background: var(--accent);
    border-radius: 5px;
    transition: width 0.1s linear;
    box-shadow: 0 0 10px rgba(166, 242, 6, 0.4); 
}

.progress-text {
    font-size: 0.85rem;
    color: var(--text-gray);
    text-align: center;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
}

/* ==========================================================================
   СТРАНИЦА ЛОГИНА (/login)
   ========================================================================== */
.login-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
}

.login-card {
    text-align: center;
    max-width: 450px;
    width: 100%;
    padding: 40px 30px;
    margin: 0;
}

.login-logo {
    font-size: 2.5rem;
    margin-bottom: 10px;
    display: inline-block;
}

.login-title {
    font-size: 1.5rem;
    margin-bottom: 10px;
    font-family: 'Montserrat', sans-serif;
}

.login-desc {
    color: var(--text-gray);
    margin-bottom: 30px;
    font-size: 0.95rem;
    line-height: 1.5;
}

.btn-login {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    text-decoration: none;
    padding: 12px;
    font-size: 1rem;
    box-sizing: border-box;
}

.login-back-link {
    display: inline-block;
    margin-top: 25px;
    color: var(--text-gray);
    font-size: 0.9rem;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.login-back-link:hover {
    color: var(--accent);
}


.edit-post-btn {
    background: none;
    border: none;
    color: var(--text-gray);
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: color 0.2s, background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.edit-post-btn:hover {
    color: var(--accent);
    background: rgba(166, 242, 6, 0.1);
}

.edit-post-input {
    width: 100%;
    min-height: 150px;
    padding: 16px;
    border-radius: 12px;
    background: var(--bg-light); 
    border: 2px solid transparent; 
    color: inherit;
    font-family: inherit;
    font-size: 1rem;
    line-height: 1.6;
    resize: vertical;
    transition: all 0.3s ease;
    margin-bottom: 10px;
    overscroll-behavior: contain; 
}

.edit-post-input:focus {
    outline: none;
    background: var(--bg-white);
    border-color: var(--accent); 
    box-shadow: 0 0 10px rgba(166, 242, 6, 0.1);
}

.post-text-content,
.comment-text,
.post-text-preview,
.post-text-content {
    white-space: pre-wrap !important;
    word-break: break-word !important;
}

/* ==========================================================================
   ВСПЛЫВАЮЩИЕ УВЕДОМЛЕНИЯ (TOASTS)
   ========================================================================== */
#toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none; 
}

.toast {
    background: var(--dark-card);
    color: var(--text-white);
    padding: 14px 20px;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 500;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 12px;
    opacity: 0;
    transform: translateY(30px) scale(0.9);
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55); 
    border-left: 4px solid var(--accent);
}


[data-theme="dark"] .toast {
    background: var(--bg-white);
    color: var(--text-dark);
}


.toast.show {
    opacity: 1;
    transform: translateY(0) scale(1);
}


.toast.error {
    border-left-color: #ff4d4f;
}


@media screen and (max-width: 768px) {
    #toast-container {
        bottom: 20px;
        left: 20px;
        right: 20px;
        align-items: center;
    }
    .toast {
        width: 100%;
        max-width: 350px;
        justify-content: center;
    }
}

/* ==========================================================================
   МОДАЛЬНЫЕ ОКНА ПОДТВЕРЖДЕНИЯ (CONFIRM)
   ========================================================================== */
.confirm-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.confirm-overlay.show {
    opacity: 1;
    visibility: visible;
}

.confirm-box {
    background: var(--bg-white);
    padding: 24px;
    border-radius: 16px;
    width: 90%;
    max-width: 340px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    transform: translateY(20px) scale(0.95);
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    text-align: center;
}


[data-theme="dark"] .confirm-box {
    background: var(--dark-card);
    color: var(--text-white);
}

.confirm-overlay.show .confirm-box {
    transform: translateY(0) scale(1);
}

.confirm-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 24px;
    line-height: 1.4;
}

.confirm-actions {
    display: flex;
    gap: 12px;
}

.confirm-btn {
    flex: 1;
    padding: 12px;
    border-radius: 10px;
    border: none;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
}

.confirm-btn.cancel {
    background: var(--bg-light);
    color: var(--text-gray);
}

[data-theme="dark"] .confirm-btn.cancel {
    background: #2a2e24;
}

.confirm-btn.cancel:hover { filter: brightness(0.95); }

.confirm-btn.danger {
    background: #e61114;
    color: white;
}

.confirm-btn.danger:hover { background: #e04344; }

/* ==========================================================================
   КЛИКАБЕЛЬНЫЕ ХЕШТЕГИ
   ========================================================================== */
.hashtag {
    color: var(--accent); 
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
}

[data-theme="dark"] .hashtag {
    color: var(--accent); 
}

.hashtag:hover {
    text-decoration: underline;
    opacity: 0.8;
}

.emote-7tv {
    height: 2em;
    width: auto;
    display: inline-block;
    vertical-align: middle;
    pointer-events: none;
}

/* ==========================================================================
    КНОПКА ЛАЙКА КОММЕНТАРИЯ
   ========================================================================== */
.comment-footer {
    margin-top: 8px;
    display: flex;
    align-items: center;
}

.comment-like-btn {
    background: none;
    border: none;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    color: var(--text-gray);
    font-size: 0.9rem;
    font-weight: 500;
    padding: 6px 10px 6px 0;
    border-radius: 6px;
    transition: color 0.2s;
}

.comment-like-btn:hover {
    color: var(--accent); 
}

.heart-icon {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.5;
    transition: all 0.2s ease;
}

.comment-like-btn.liked {
    color: var(--accent);
}

.comment-like-btn.liked .heart-icon {
    fill: var(--accent);
    stroke: var(--accent);
    animation: heartPulse 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes heartPulse {
    0%   { transform: scale(1); }
    50%  { transform: scale(1.4); }
    100% { transform: scale(1.1); }
}


/* ==========================================================================
   ВЛОЖЕННЫЕ КОММЕНТАРИИ (ОТВЕТЫ)
   ========================================================================== */
.replies-wrapper {
    margin-left: 32px; 
    padding-left: 16px;
    border-left: 2px solid var(--border-color);
    margin-top: 12px;
}

@media (max-width: 600px) {
    .replies-wrapper {
        margin-left: 12px;
        padding-left: 10px;
    }
}

.comment-reply-btn {
    background: none;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    color: var(--text-gray);
    font-size: 0.85rem;
    font-weight: 600;
    padding: 6px 10px;
    border-radius: 6px;
    transition: all 0.2s;
    margin-left: 8px;
}

.comment-reply-btn:hover {
    color: var(--text-dark);
    background: var(--border-color);
}

[data-theme="dark"] .comment-reply-btn:hover {
    color: var(--text-white);
}

[data-theme="dark"] .replies-wrapper {
    border-left: 2px solid rgba(255, 255, 255, 0.15);
}

[data-theme="dark"] .reply-badge-close {
    color: var(--text-gray); 
}

[data-theme="dark"] .reply-badge-close:hover {
    color: #ff4444;
    background: rgba(255, 68, 68, 0.15);
}


.reply-badge {
    background: var(--bg-light);
    color: var(--text-gray);
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    border: 1px solid var(--border-color);
    animation: fadeIn 0.3s ease;
}

.reply-badge b {
    color: var(--accent);
}

.reply-badge-close {
    cursor: pointer;
    color: var(--text-dark);
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 4px;
    transition: 0.2s;
}

.reply-badge-close:hover {
    background: rgba(255, 0, 0, 0.1);
    color: red;
}

/* ==========================================================================
   РЕДАКТИРОВАНИЕ КОММЕНТАРИЕВ
   ========================================================================== */


.comment-actions {
    display: flex;
    gap: 4px;
}


.edit-com-btn {
    background: none;
    border: none;
    color: var(--text-gray);
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s;
}


.edit-com-btn:hover {
    color: var(--accent);
    background: rgba(166, 242, 6, 0.1); 
}


.comment-edit-form {
    margin-top: 8px;
}

.comment-edit-textarea {
    width: 100%;
    min-height: 60px;
    font-size: 0.9rem;
    padding: 8px;
    border-radius: 6px;
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    color: var(--text-dark);
    resize: vertical;
    font-family: inherit;
}

.comment-edit-textarea:focus {
    outline: 1px solid var(--accent);
}

.comment-edit-actions {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}


.comment-edit-save-btn {
    padding: 6px 14px !important;
    border-radius: 6px !important;
    font-size: 0.8rem !important;
    margin: 0 !important;
}

.comment-edit-cancel-btn {
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    padding: 6px 14px;
    border-radius: 6px;
    cursor: pointer;
    color: var(--text-gray);
    font-size: 0.8rem;
    transition: 0.2s;
}

.comment-edit-cancel-btn:hover {
    background: var(--border-color);
    color: var(--text-dark);
}

[data-theme="dark"] .comment-edit-cancel-btn:hover {
    color: var(--text-white);
}


.post-grid {
    transition: opacity 0.3s ease;
}

.post-author-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.feed-date {
    font-size: 0.85em;
    color: var(--text-gray);
}

.no-posts-container {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
}

.no-posts-container svg {
    margin-bottom: 15px;
    opacity: 0.5;
}

.no-posts-container h3 {
    color: var(--text-dark);
    margin-bottom: 10px;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5rem;
}


.profile-navigation {
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
}


.user-identity-box {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 30px;
    display: flex;
    align-items: center;
    gap: 30px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px var(--shadow-color);
}


.user-identity-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--accent);
    box-shadow: 0 8px 16px var(--shadow-color);
    flex-shrink: 0;
}


.user-identity-info {
    flex: 1;
    min-width: 250px;
}

.user-identity-name {
    margin: 0;
    font-size: 2.2rem;
    color: var(--text-dark);
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    line-height: 1.2;
}

.user-identity-handle {
    margin: 4px 0 15px 0;
    color: var(--text-gray);
    font-size: 1.1rem;
    font-weight: 500;
}


.user-identity-stats {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.user-stat-item {
    color: var(--text-gray);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

.user-stat-count {
    color: var(--accent);
    font-weight: 700;
}

.twitch-brand-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px; 
    background: var(--accent);
    color: #000;
    padding: 10px 20px;
    border-radius: 12px;
    font-weight: 600; 
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
    text-decoration: none;
    
    transition: background 0.3s ease, color 0.3s ease, transform 0.2s, box-shadow 0.2s;
    line-height: 1;
}

.twitch-brand-btn:hover { 
    transform: translateY(-2px); 
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.2); 
    background: #ffffff; 
    color: #000000;      
}


.twitch-brand-btn svg {
    flex-shrink: 0;
    fill: currentColor; 
}

[data-theme="dark"] .twitch-brand-btn:hover {
    background: var(--text-white);
    color: var(--dark-card);
}


@media (max-width: 768px) {
    .user-identity-box {
        flex-direction: column;
        text-align: center;
        padding: 25px;
        gap: 20px;
    }

    .user-identity-name {
        font-size: clamp(1.2rem, 7vw, 2rem) !important;
        
        word-wrap: break-word;
        overflow-wrap: break-word;
        
        line-height: 1.1;
        max-width: 100%;
        display: block;
    }

    .user-identity-stats {
        justify-content: center;
    }

    .twitch-brand-btn {
        width: 100%;
        justify-content: center;
    }
}

.author-link {
    font-size: 1.3rem;
    text-decoration: none;
    color: inherit;
    transition: opacity 0.2s ease;
    display: block;
    font-weight: 800;
    align-items: baseline;
}

.author-link:hover {
    opacity: 0.7;
}

.author-link:hover .author-highlight {
    text-decoration: none;
}

.post-card .author-display-name {
    font-size: 1rem;
    color: var(--accent);
    text-decoration: none;
    color: inherit;
    transition: opacity 0.2s ease;
    display: block;
    font-weight: 800;
    align-items: baseline;
}

.post-card .author-info-group {
    max-width: 160px;
}

.post-card .author-link:hover .author-display-name {
    color: var(--accent);
    text-decoration: none;
}

.post-card .feed-date {
    font-size: 0.75rem;
    opacity: 0.7;
}

/* Анимация пульсации */
@keyframes skeleton-loading {
    0% { background-color: rgba(255, 255, 255, 0.05); }
    50% { background-color: rgba(255, 255, 255, 0.1); }
    100% { background-color: rgba(255, 255, 255, 0.05); }
}

.skeleton-card {
    pointer-events: none;
    border: none !important;
}

.skeleton-media {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 12px;
    animation: skeleton-loading 1.5s infinite ease-in-out;
}

.skeleton-info {
    padding: 15px 0;
}

.skeleton-line {
    height: 12px;
    margin-bottom: 10px;
    border-radius: 4px;
    animation: skeleton-loading 1.5s infinite ease-in-out;
}

.skeleton-line.short {
    width: 60%;
}

/* Стили для ссылок в постах */
.feed-link {
    color: var(--accent); /* Ваш фирменный зеленый или другой цвет */
    text-decoration: none;
}

.feed-link:hover {
    text-decoration: none;
    opacity: 0.9;
}

/* Стили для упоминаний @ */
.feed-mention {
    color: var(--accent);
    font-weight: bold;
    text-decoration: none;
}

.feed-mention:hover {
    text-decoration: none;
    opacity: 0.9;
}

/* ================= МАГАЗИН И КОРЗИНА (DESKTOP-FIRST) ================= */

.shop-header-wrap {
    text-align: center;
    margin-bottom: 30px;
}

.shop-main-title {
    font-family: 'PaluiSP', sans-serif;
    font-size: clamp(2.5rem, 8vw, 4rem);
    margin: 10px 0 10px;
}

.shop-subtitle {
    color: var(--text-gray);
    font-size: 1.1rem;
}

/* --- ВИТРИНА (СЕТКА) - БАЗА ДЛЯ ПК --- */
.shop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.shop-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}

.shop-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 40px rgba(166, 242, 6, 0.15);
}

.shop-image-wrap {
    height: 300px;
    background: var(--bg-secondary);
    position: relative;
    overflow: hidden;
}

.shop-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.shop-card-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

/* Шрифт Montserrat для заголовков */
.shop-item-title, .single-product-title {
    font-family: 'Montserrat', sans-serif;
}

.shop-item-title {
    font-weight: 700;
    font-size: 1.15rem;
    margin-bottom: 10px;
    line-height: 1.3;
}

.shop-item-desc {
    font-size: 0.95rem;
    color: var(--text-gray);
    line-height: 1.5;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.shop-card-footer {
    width: auto;
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
    display: flex;
    flex-direction: row; /* В одну линию */
    justify-content: space-between; /* По краям (цена слева, кнопка справа) */
    align-items: center; /* Центрируем по вертикали */
    gap: 1rem;
}

.shop-price {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--text-dark);
    margin: 0;
    width: -webkit-fill-available;
}

/* --- СТРАНИЦА ТОВАРА - БАЗА ДЛЯ ПК --- */
.single-product-container {
    display: flex;
    gap: 40px;
    align-items: stretch;
    padding-top: 20px;
}

.single-product-image {
    flex: 0 0 500px;
    min-height: 400px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.single-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.single-product-info {
    flex: 1;
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 25px;
    padding: 40px;
    display: flex;
    flex-direction: column;
}

.single-product-title {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.single-product-desc {
    flex-grow: 1;
    font-size: 1.1rem;
    line-height: 1.7;
    white-space: pre-line;
}

/* Блок цены и кнопки в одну линию (ПК) */
.product-action-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 30px;
    border-top: 2px solid var(--bg-light);
    gap: 10rem;
}

.single-product-price {
    font-size: 2.2rem;
    font-weight: 800;
    width: -webkit-fill-available;
}

.single-product-info {
    padding: 18px 45px;
    font-size: 1.1rem;
    width: auto;
}

/* Скрываем мобильный липкий бар по умолчанию (на ПК он не нужен) */
.product-sticky-bar {
    display: none;
}

.add-to-cart-btn {
    display: flex;
    background-color: var(--accent);
    color: #000000;
    padding: 0.75rem 0.75rem; 
    width: 100%;
    font-size: 0.9rem;
    line-height: 1;
    border-radius: 15px;
    border: var(--accent) solid 0.5px; 
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    align-items: flex-end;
    justify-content: center !important;
    gap: 7px;
}

.add-to-cart-btn:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 8px 20px rgba(166, 242, 6, 0.4) !important;
    background-color: #ffffff !important; 
}

/* ================= АДАПТАЦИЯ ПОД МОБИЛЬНЫЕ (МАКСИМУМ 768px) ================= */
@media (max-width: 768px) {
    .feed-container-main .container {
        padding: 0 !important;
    }

    /* Сетка */
    .shop-grid {
        grid-template-columns: 1fr 1fr;
        gap: 5px;
        padding: 0;
        margin: 0;
    }

    .shop-image-wrap {
        height: auto;
        aspect-ratio: 1/1;
    }

    .shop-card-content {
        padding: 12px;
    }

    .shop-item-desc {
        display: -webkit-box !important;
        font-size: 0.85rem;
        margin-bottom: 10px;
        -webkit-line-clamp: 2;
        line-clamp: 2;
    }

    .shop-card-footer {
        flex-direction: column; /* Ставит цену и кнопку друг под другом */
        gap: 12px; /* Увеличивает отступы между ними */
        align-items: center; /* Центрирует цену */
    }

    .shop-price {
        font-size: 1.5rem;
        text-align: start;
    }

    .shop-card-footer .add-to-cart-btn {
        width: 100%; /* Растягивает на всю ширину */
        padding: 12px; /* Увеличивает кнопку, чтобы её было удобно нажимать */
        font-size: 0.95rem; /* Немного уменьшаем шрифт */
    }

    /* Страница товара */
    .single-product-container {
        display: block; /* Сбрасываем flex */
        padding: 0;
    }

    .single-product-image {
        width: 100%;
        flex: none; /* Сбрасываем фиксированную ширину ПК */
        min-height: auto;
        aspect-ratio: 1/1;
        border-radius: 15px;
        border: none;
        border-bottom: 1px solid var(--border-color);
    }

    .single-product-info {
        padding: 25px 20px 20px;/* 100px снизу, чтобы текст не ушел под sticky-bar */
        border: none;
        border-radius: 15px;
    }

    .single-product-title {
        font-size: 1.5rem;
        margin-bottom: 15px;
    }

    /* Скрываем десктопный блок кнопки на мобилке */
    .product-action-row {
        display: none !important;
    }

    /* Показываем Sticky Bar (Нижний бар) */
    .product-sticky-bar {
        position: fixed; 
        display: flex;
        bottom: 0; 
        left: 0; 
        width: 100%; 
        background: var(--bg-white);
        padding: 15px 20px; 
        align-items: center; 
        justify-content: space-between;
        z-index: 104;
        box-shadow: 0 -5px 20px rgba(0,0,0,0.1); 
        border-top: 1px solid var(--border-color);
        border-radius: 15px 15px 15px 15px;
    }

    .sticky-price {
        font-size: 1.4rem;  
        font-weight: 800;
        width: -webkit-fill-available;
    }

    .sticky-btn {
        flex: 0 0 60%;
    }

    /* Кнопка корзины на мобилке поднимается выше бара */
    .cart-toggle-btn {
        bottom: 30px !important; 
        right: 20px !important;
    }

    /* Специальный класс: когда JS обнаружит sticky-bar, он поднимет корзину */
    .cart-toggle-btn.lifted {
        bottom: 85px !important;
        transition: transform 0.2s ease, bottom 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    }
}

/* --- КНОПКА КОРЗИНЫ (ПЛАВАЮЩАЯ) - БАЗА --- */
.cart-toggle-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--accent);
    color: black;
    border: none;
    border-radius: 50%;
    width: 65px; 
    height: 65px;
    z-index: 2000 !important; 
    display: flex;
    align-items: center; 
    justify-content: center;
    box-shadow: 0 10px 25px rgba(166, 242, 6, 0.4);
    cursor: pointer;
    transition: transform 0.2s;
}

.cart-toggle-btn:hover {
    transform: scale(1.05);
}

.cart-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background: #FF3B30;
    color: white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    font-size: 12px;
    font-weight: 800;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* --- КОРЗИНА (СТИЛИ САЙДБАРА) - БАЗА --- */
.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 2001;
    display: none;
    opacity: 0;
    transition: opacity 0.3s;
    backdrop-filter: blur(5px);
}

.cart-sidebar {
    position: fixed;
    top: 0;
    right: -450px;
    width: 420px;
    max-width: 100%;
    height: 100vh;
    background: var(--bg-white);
    z-index: 2002;
    transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.2);
}

.cart-header {
    padding: 25px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5rem;
    color: var(--text-dark);
}

.cart-close-btn {
    background: none;
    border: none;
    font-size: 2.5rem;
    color: var(--text-gray);
    cursor: pointer;
}

.cart-items-wrap {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.cart-footer {
    padding: 25px;
    border-top: 1px solid var(--border-color);
    background: var(--bg-secondary);
}

.cart-item {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.cart-item img {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    object-fit: cover;
}

.cart-item-title {
    font-weight: 800;
    font-size: 1.05rem;
    margin-bottom: 5px;
}

.checkout-form {
    margin: 20px 0;
    padding-top: 20px;
    border-top: 1px dashed var(--text-gray);
}

.checkout-input {
    width: 100%;
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    padding: 12px;
    border-radius: 10px;
    margin-bottom: 10px;
    font-family: inherit;
    color: var(--text-dark);
}

.cart-total-row {
    display: flex;
    justify-content: space-between;
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 20px;
}

.cart-checkout-btn {
    width: 100%;
    padding: 18px;
    font-weight: 800;
    font-size: 1.1rem;
}

/* --- ВНУТРЕННОСТИ ТОВАРА В КОРЗИНЕ (ПЛЮС/МИНУС И ЦЕНА) --- */
.cart-item-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.cart-item-price {
    color: var(--text-gray);
    font-weight: 500;
    margin-bottom: 10px;
}

.cart-item-controls {
    display: flex;
    align-items: center;
    gap: 15px;
    background: var(--bg-secondary); /* Серый фон как плашка */
    padding: 5px 10px;
    border-radius: 10px;
    width: fit-content;
}

.cart-qty-btn {
    background: none;
    border: none;
    width: 28px;
    height: 28px;
    cursor: pointer;
    color: var(--text-dark);
    font-weight: bold;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

.cart-qty-btn:hover {
    color: var(--accent); /* При наведении подсвечивается нашим фирменным зеленым */
}

.cart-qty-val {
    color: var(--text-dark);
    font-weight: 800;
    font-size: 1.1rem;
    min-width: 20px;
    text-align: center;
}

/* ================= ОФОРМЛЕНИЕ ЗАКАЗА (CHECKOUT) ================= */
/* ================= ОФОРМЛЕНИЕ ЗАКАЗА (CHECKOUT) ================= */
.checkout-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 40px;
    align-items: start;
    margin-bottom: 100px;
}

.checkout-section { margin-bottom: 30px; }
.checkout-section-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.4rem;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.checkout-form-col {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 40px;
}

.checkout-summary-col {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 30px;
    position: sticky;
    top: 120px;
}

/* Поля ввода */
.checkout-input-group { margin-bottom: 15px; }
.checkout-row {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}
.checkout-input {
    width: 100%;
    padding: 16px 20px;
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    font-family: inherit;
    font-size: 1rem;
    color: var(--text-dark);
    transition: border-color 0.3s;
}
.checkout-input:focus {
    outline: none;
    border-color: var(--accent);
}

/* Плашка выбранного ПВЗ */
.selected-pvz-card {
    display: none;
    margin-top: 20px;
    padding: 20px;
    background: var(--bg-light);
    border: 1px dashed var(--accent);
    border-radius: 12px;
}

/* Оферта */
.offer-checkbox-wrap {
    display: flex; gap: 12px; align-items: flex-start;
    margin-top: 30px; padding-top: 30px;
    border-top: 1px solid var(--border-color);
}
.offer-checkbox-wrap input { margin-top: 4px; transform: scale(1.3); accent-color: var(--accent); }
.offer-checkbox-wrap label { font-size: 0.95rem; color: var(--text-gray); cursor: pointer; line-height: 1.5; }

/* Чек и товары */
.checkout-items-list { max-height: 400px; overflow-y: auto; margin-bottom: 25px; }
.checkout-items-list .cart-item { border-bottom: 1px solid var(--border-color); padding-bottom: 15px; }
.checkout-receipt { margin-bottom: 25px; }
.receipt-row { display: flex; justify-content: space-between; margin-bottom: 15px; font-size: 1.1rem; color: var(--text-gray); }
.receipt-row.total {
    margin-top: 25px; padding-top: 25px;
    border-top: 2px dashed var(--border-color);
    font-size: 1.8rem; font-weight: 800; color: var(--text-dark);
}

#co-submit-btn:disabled {
    background: var(--border-color) !important;
    color: var(--text-gray) !important;
    cursor: not-allowed;
    opacity: 0.7;
}

@media (max-width: 768px) {
    .checkout-grid { grid-template-columns: 1fr; gap: 20px; }
    .checkout-form-col { padding: 25px 20px; }
    .checkout-row { flex-direction: column; gap: 15px; }
    .checkout-summary-col { position: static; }
}

