/* ============================================================
   COSANOVV.SHOP — ЗИМНИЙ СТИЛЬ (НОВЫЙ ГОД 2027) + ФИКС МОДАЛКИ
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;500;600;700;800;900&family=Inter:wght@300;400;500;600;700&display=swap');

/* ============================================================
   ПЕРЕМЕННЫЕ — ЛЕДЯНАЯ ПАЛИТРА
   ============================================================ */
:root {
    /* Основные цвета */
    --bg-primary: #020813;
    --bg-secondary: rgba(6, 14, 26, 0.88);
    --bg-card: rgba(8, 18, 32, 0.9);
    --bg-card-hover: rgba(14, 28, 48, 0.94);
    --bg-input: rgba(4, 10, 20, 0.92);

    /* Границы */
    --border-color: rgba(140, 190, 240, 0.08);
    --border-light: rgba(160, 210, 255, 0.14);
    --border-accent: rgba(168, 224, 255, 0.12);

    /* Текст */
    --text-primary: #e6f0ff;
    --text-secondary: #a0b8d0;
    --text-muted: #5a7088;

    /* Акценты — ледяные */
    --accent-1: #a8e0ff;
    --accent-2: #7ab8e8;
    --accent-3: #4a8ac8;
    --accent-gradient: linear-gradient(135deg, #e8f4ff, #a8e0ff, #7ab8e8);
    --accent-glow: rgba(168, 224, 255, 0.06);
    --accent-glow-strong: rgba(168, 224, 255, 0.18);

    /* Дополнительные */
    --success: #34d399;
    --warning: #fbbf24;
    --danger: #f87171;

    /* Переходы */
    --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-bounce: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 16px;
}

/* ============================================================
   СБРОС
   ============================================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ============================================================
   ФОН — МОРОЗНЫЙ
   ============================================================ */
html, body {
    width: 100%;
    min-height: 100vh;
    background-color: #020813;
    background-image:
        radial-gradient(ellipse at top, rgba(60, 100, 180, 0.22), transparent 60%),
        radial-gradient(ellipse at bottom, rgba(30, 60, 120, 0.25), transparent 60%),
        radial-gradient(circle at 20% 30%, rgba(120, 180, 240, 0.06), transparent 50%),
        url('http://site.luxloom.ru/img/background.png');
    background-size: cover, cover, cover, cover;
    background-position: center top, center bottom, center center, center center;
    background-attachment: fixed, fixed, fixed, fixed;
    background-repeat: no-repeat;
    background-blend-mode: screen, screen, screen, normal;
    color: var(--text-primary);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    -webkit-font-smoothing: antialiased;
    line-height: 1.6;
    overflow-x: hidden;
}

/* ============================================================
   СКРОЛЛБАР — ЛЕДЯНОЙ
   ============================================================ */
::-webkit-scrollbar {
    width: 5px;
}
::-webkit-scrollbar-track {
    background: rgba(0, 8, 16, 0.4);
}
::-webkit-scrollbar-thumb {
    background: rgba(168, 224, 255, 0.2);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(168, 224, 255, 0.4);
}

/* ============================================================
   КОНТЕЙНЕР
   ============================================================ */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 40px;
    background: rgba(2, 8, 18, 0.62);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    min-height: 100vh;
    box-shadow: 0 0 80px rgba(0, 0, 0, 0.5), inset 0 0 100px rgba(60, 100, 180, 0.04);
    position: relative;
    z-index: 2;
}

/* ============================================================
   ХЕДЕР — СТЕКЛЯННЫЙ, МОРОЗНЫЙ
   ============================================================ */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    border-bottom: 1px solid rgba(180, 220, 255, 0.08);
    margin-bottom: 28px;
    flex-wrap: wrap;
    gap: 8px;
    background: rgba(4, 10, 22, 0.55);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-radius: 12px;
    box-shadow: 0 4px 30px rgba(60, 100, 180, 0.08);
    position: relative;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-shrink: 0;
}

.logo {
    font-family: 'Orbitron', sans-serif;
    font-size: 18px;
    font-weight: 700;
    text-decoration: none;
    letter-spacing: 2px;
    text-transform: uppercase;
    white-space: nowrap;
    background: linear-gradient(135deg, #ffffff, #a8e0ff, #ffffff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 12px rgba(150, 200, 255, 0.35));
}
.logo span {
    background: linear-gradient(135deg, #a8e0ff, #7ab8e8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.balance-display {
    display: flex;
    align-items: center;
    gap: 3px;
    padding: 3px 12px 3px 8px;
    border: 1px solid rgba(180, 220, 255, 0.12);
    border-radius: 50px;
    font-size: 11px;
    font-weight: 400;
    color: var(--text-secondary);
    transition: var(--transition);
    background: rgba(120, 180, 240, 0.04);
    white-space: nowrap;
}
.balance-display:hover {
    border-color: rgba(180, 220, 255, 0.35);
    background: rgba(120, 180, 240, 0.08);
    box-shadow: 0 0 16px rgba(150, 200, 255, 0.15);
}
.balance-display .balance-icon {
    font-size: 10px;
}
.balance-display .balance-amount {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-primary);
}
.balance-display .balance-currency {
    font-size: 9px;
    color: var(--text-muted);
}

/* ============================================================
   НАВИГАЦИЯ — С ГИРЛЯНДОЙ
   ============================================================ */
nav {
    display: flex;
    align-items: center;
    gap: 2px;
    flex-wrap: wrap;
}

nav a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 12px;
    font-weight: 400;
    padding: 5px 12px;
    transition: var(--transition);
    border-radius: 6px;
    letter-spacing: 0.3px;
    white-space: nowrap;
    position: relative;
}
nav a:hover {
    color: var(--text-primary);
    background: rgba(168, 224, 255, 0.06);
}
nav a.active {
    color: var(--text-primary);
    background: rgba(168, 224, 255, 0.1);
}

/* Подчёркивание-гирлянда */
nav a:not(.logout-btn)::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 2px;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #a8e0ff, #ffffff);
    transition: all 0.3s ease;
    transform: translateX(-50%);
    border-radius: 2px;
    box-shadow: 0 0 8px rgba(150, 200, 255, 0.6);
}
nav a:not(.logout-btn):hover::after,
nav a.active:not(.logout-btn)::after {
    width: 60%;
}

/* Лампочки гирлянды на кнопках навигации */
.garland-btn {
    position: relative;
}
.garland-btn::before,
.garland-btn::after {
    content: '';
    position: absolute;
    top: -6px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    animation: garlandPulse 1.6s ease-in-out infinite;
    pointer-events: none;
}
.garland-btn::before {
    left: 18%;
    background: #ff4d4d;
    box-shadow: 0 0 8px #ff4d4d;
}
.garland-btn::after {
    right: 18%;
    background: #4dff88;
    box-shadow: 0 0 8px #4dff88;
    animation-delay: 0.5s;
}
@keyframes garlandPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.7); }
}

nav .logout-btn {
    color: var(--text-muted);
}
nav .logout-btn:hover {
    color: var(--danger);
    background: rgba(248, 113, 113, 0.08);
}

.register-btn {
    color: var(--text-primary) !important;
    border: 1px solid rgba(180, 220, 255, 0.18) !important;
    padding: 5px 16px !important;
    border-radius: 6px !important;
    font-weight: 500 !important;
    box-shadow: 0 0 12px rgba(150, 200, 255, 0.1);
}
.register-btn:hover {
    border-color: rgba(180, 220, 255, 0.4) !important;
    background: rgba(168, 224, 255, 0.08) !important;
    box-shadow: 0 0 24px rgba(150, 200, 255, 0.3);
}

.login-btn {
    padding: 5px 16px;
    border-radius: 6px;
    border: 1px solid rgba(180, 220, 255, 0.18);
    font-weight: 400;
    font-size: 12px;
    text-decoration: none;
    color: var(--text-secondary);
    white-space: nowrap;
    box-shadow: 0 0 12px rgba(150, 200, 255, 0.1);
}
.login-btn:hover {
    border-color: rgba(180, 220, 255, 0.4);
    color: var(--text-primary);
    box-shadow: 0 0 24px rgba(150, 200, 255, 0.3);
}

/* ============================================================
   ОНЛАЙН-СЧЁТЧИК — ЗИМНИЙ
   ============================================================ */
.online-counter {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--text-muted);
    font-size: 11px;
    padding: 3px 10px;
    background: rgba(120, 180, 240, 0.04);
    border-radius: 50px;
    border: 1px solid rgba(180, 220, 255, 0.08);
    white-space: nowrap;
    flex-shrink: 0;
}
.online-counter .dot {
    width: 4px;
    height: 4px;
    background: #a8e0ff;
    border-radius: 50%;
    display: inline-block;
    animation: pulse 2s ease-in-out infinite;
    box-shadow: 0 0 8px #a8e0ff;
}
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}
.online-counter .online-count {
    color: var(--text-secondary);
    font-weight: 500;
}

/* ============================================================
   ПРОФИЛЬ-АВАТАРКА
   ============================================================ */
.profile-avatar-wrapper {
    position: relative;
    display: inline-block;
    cursor: pointer;
    flex-shrink: 0;
}
.profile-avatar-wrapper .profile-avatar-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid rgba(180, 220, 255, 0.2);
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary);
    cursor: pointer;
    padding: 0;
    position: relative;
}
.profile-avatar-wrapper .profile-avatar-btn:hover {
    border-color: rgba(168, 224, 255, 0.6);
    transform: scale(1.05);
    box-shadow: 0 0 16px rgba(150, 200, 255, 0.3);
}
.profile-avatar-wrapper .profile-avatar-btn img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.profile-avatar-wrapper .profile-avatar-btn .avatar-placeholder {
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 600;
    text-transform: uppercase;
}
.profile-avatar-wrapper .profile-avatar-btn .avatar-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    background: var(--danger);
    border-radius: 50px;
    font-size: 8px;
    font-weight: 700;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--bg-primary);
}

/* ============================================================
   ВЫПАДАЮЩЕЕ МЕНЮ ПРОФИЛЯ
   ============================================================ */
.profile-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 220px;
    background: rgba(6, 14, 26, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(180, 220, 255, 0.12);
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8), 0 0 40px rgba(100, 150, 220, 0.08);
    z-index: 99999;
    display: none;
    overflow: hidden;
    animation: notifSlideDown 0.25s ease;
}
.profile-dropdown.active {
    display: block;
}
.profile-dropdown .dropdown-header {
    padding: 12px 16px 10px;
    border-bottom: 1px solid rgba(180, 220, 255, 0.08);
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(120, 180, 240, 0.04);
}
.profile-dropdown .dropdown-header .dropdown-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(180, 220, 255, 0.15);
    flex-shrink: 0;
}
.profile-dropdown .dropdown-header .dropdown-name {
    font-weight: 600;
    font-size: 13px;
    color: #e6f0ff;
}
.profile-dropdown .dropdown-header .dropdown-role {
    font-size: 10px;
    color: rgba(168, 224, 255, 0.55);
}
.profile-dropdown .dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    color: rgba(230, 240, 255, 0.78);
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 12px;
    border: none;
    background: transparent;
    width: 100%;
    cursor: pointer;
    font-family: inherit;
}
.profile-dropdown .dropdown-item:hover {
    background: rgba(168, 224, 255, 0.08);
    color: #ffffff;
}
.profile-dropdown .dropdown-item.active {
    background: rgba(168, 224, 255, 0.05);
    color: #ffffff;
}
.profile-dropdown .dropdown-item .item-icon {
    font-size: 14px;
    width: 18px;
    text-align: center;
    flex-shrink: 0;
}
.profile-dropdown .dropdown-item .badge-count {
    background: var(--danger);
    color: #fff;
    font-size: 8px;
    padding: 1px 7px;
    border-radius: 50px;
    margin-left: auto;
}
.profile-dropdown .dropdown-divider {
    height: 1px;
    background: rgba(180, 220, 255, 0.08);
    margin: 4px 12px;
}
.profile-dropdown .dropdown-item.logout {
    color: rgba(230, 240, 255, 0.5);
}
.profile-dropdown .dropdown-item.logout:hover {
    color: var(--danger);
    background: rgba(248, 113, 113, 0.08);
}

@keyframes notifSlideDown {
    0% { opacity: 0; transform: translateY(-10px) scale(0.98); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

/* ============================================================
   УВЕДОМЛЕНИЯ
   ============================================================ */
.notif-wrapper {
    position: relative;
    display: inline-block;
    flex-shrink: 0;
}
.notif-bell {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--bg-secondary);
    border: 1px solid rgba(180, 220, 255, 0.1);
    color: var(--text-secondary);
    font-size: 16px;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    position: relative;
}
.notif-bell:hover {
    border-color: rgba(168, 224, 255, 0.5);
    color: var(--accent-1);
    background: rgba(168, 224, 255, 0.05);
    box-shadow: 0 0 16px rgba(150, 200, 255, 0.15);
}
.notif-bell .notif-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    background: var(--danger);
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    border-radius: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--bg-primary);
    animation: notifPulse 2s ease-in-out infinite;
}
@keyframes notifPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}
.notif-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 340px;
    max-width: 90vw;
    background: rgba(6, 14, 26, 0.95);
    border: 1px solid rgba(180, 220, 255, 0.1);
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6), 0 0 40px rgba(100, 150, 220, 0.08);
    z-index: 1000;
    display: none;
    max-height: 400px;
    overflow: hidden;
    backdrop-filter: blur(16px);
}
.notif-dropdown.active {
    display: block;
}
.notif-dropdown .notif-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid rgba(180, 220, 255, 0.08);
}
.notif-dropdown .notif-header .notif-title {
    font-weight: 600;
    font-size: 14px;
    color: var(--text-primary);
}
.notif-dropdown .notif-header .notif-title span {
    color: var(--text-muted);
    font-weight: 400;
    font-size: 11px;
}
.notif-dropdown .notif-header .notif-actions {
    display: flex;
    gap: 6px;
    align-items: center;
}
.notif-dropdown .notif-header .notif-mark-all {
    color: var(--accent-1);
    text-decoration: none;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 12px;
    border: 1px solid rgba(168, 224, 255, 0.4);
    border-radius: 50px;
    transition: var(--transition);
    background: transparent;
    cursor: pointer;
}
.notif-dropdown .notif-header .notif-mark-all:hover {
    background: var(--accent-1);
    color: #0a1428;
}
.notif-dropdown .notif-header .notif-mark-all:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
.notif-dropdown .notif-list {
    max-height: 300px;
    overflow-y: auto;
    padding: 4px 0;
}
.notif-dropdown .notif-list::-webkit-scrollbar {
    width: 3px;
}
.notif-dropdown .notif-list::-webkit-scrollbar-track {
    background: transparent;
}
.notif-dropdown .notif-list::-webkit-scrollbar-thumb {
    background: rgba(168, 224, 255, 0.2);
    border-radius: 4px;
}
.notif-dropdown .notif-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 16px;
    border-bottom: 1px solid rgba(180, 220, 255, 0.05);
    transition: var(--transition);
    cursor: pointer;
    text-decoration: none;
    color: var(--text-secondary);
}
.notif-dropdown .notif-item:hover {
    background: rgba(168, 224, 255, 0.04);
}
.notif-dropdown .notif-item.unread {
    border-left: 2px solid rgba(168, 224, 255, 0.4);
}
.notif-dropdown .notif-item .notif-icon {
    font-size: 14px;
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(168, 224, 255, 0.05);
    border-radius: 50%;
    flex-shrink: 0;
}
.notif-dropdown .notif-item .notif-content {
    flex: 1;
    min-width: 0;
}
.notif-dropdown .notif-item .notif-content .notif-msg {
    font-size: 12px;
    line-height: 1.4;
    color: var(--text-secondary);
}
.notif-dropdown .notif-item .notif-content .notif-msg strong {
    color: var(--text-primary);
}
.notif-dropdown .notif-item .notif-content .notif-time {
    font-size: 10px;
    color: var(--text-muted);
    margin-top: 2px;
}
.notif-dropdown .notif-empty {
    padding: 24px 20px;
    text-align: center;
    color: var(--text-muted);
}
.notif-dropdown .notif-empty .empty-icon {
    font-size: 30px;
    display: block;
    margin-bottom: 4px;
}
.notif-dropdown .notif-footer {
    padding: 8px 16px;
    border-top: 1px solid rgba(180, 220, 255, 0.08);
    text-align: center;
}
.notif-dropdown .notif-footer a {
    color: var(--accent-1);
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
}
.notif-dropdown .notif-footer a:hover {
    text-decoration: underline;
}

/* ============================================================
   КАРТОЧКИ
   ============================================================ */
.news-card,
.work-card,
.product-card,
.auth-box,
.admin-item,
.bonus-card,
.detail-card,
.order-detail .detail-card,
.balance-card,
.recent-box,
.chart-section,
.stat-card,
.profile-tab-content > div,
.admin-panel-content .admin-list .admin-item,
.contacts-section,
.requirements,
.calendar-box,
.terms-body {
    background: rgba(6, 14, 26, 0.78) !important;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(180, 220, 255, 0.08) !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.03) !important;
}

.news-card:hover,
.work-card:hover,
.product-card:hover,
.stat-card:hover {
    background: rgba(14, 28, 48, 0.88) !important;
    border-color: rgba(180, 220, 255, 0.2) !important;
    transform: translateY(-3px);
    box-shadow: 0 12px 48px rgba(100, 150, 220, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.05) !important;
}

.admin-form input,
.admin-form textarea,
.admin-form select,
.auth-box .auth-form input,
.user-form input,
.user-form select {
    background: rgba(2, 8, 18, 0.7);
    border: 1px solid rgba(180, 220, 255, 0.1);
    color: var(--text-primary);
    backdrop-filter: blur(4px);
    transition: all 0.25s ease;
}
.admin-form input:focus,
.admin-form textarea:focus,
.admin-form select:focus,
.auth-box .auth-form input:focus,
.user-form input:focus,
.user-form select:focus {
    border-color: rgba(168, 224, 255, 0.5);
    box-shadow: 0 0 20px rgba(150, 200, 255, 0.15);
    outline: none;
}

/* ============================================================
   ГЕРО-БАННЕР
   ============================================================ */
.hero-banner {
    padding: 40px 0;
    text-align: center;
    border-bottom: 1px solid rgba(180, 220, 255, 0.06);
    margin-bottom: 28px;
    position: relative;
    background: rgba(6, 14, 26, 0.35);
    backdrop-filter: blur(4px);
    border-radius: 12px;
}
.hero-banner::before,
.hero-banner::after {
    content: '';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(168, 224, 255, 0.25), transparent);
}
.hero-banner::before { left: 20px; }
.hero-banner::after { right: 20px; }
.hero-banner .hero-icon { display: none; }
.hero-banner h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    background: linear-gradient(135deg, #ffffff, #a8e0ff, #ffffff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 20px rgba(150, 200, 255, 0.15));
}
.hero-banner h1 span {
    background: linear-gradient(135deg, #a8e0ff, #7ab8e8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero-banner .subtitle {
    color: var(--text-secondary);
    font-size: 13px;
    margin-top: 6px;
    letter-spacing: 2px;
    font-weight: 300;
}
.hero-banner .hero-stats {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 16px;
}
.hero-banner .hero-stats .stat-item { text-align: center; }
.hero-banner .hero-stats .stat-number {
    font-family: 'Orbitron', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: 1px;
    text-shadow: 0 0 12px rgba(150, 200, 255, 0.3);
}
.hero-banner .hero-stats .stat-label {
    color: var(--text-muted);
    font-size: 9px;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-top: 2px;
}

/* ============================================================
   НОВОСТИ
   ============================================================ */
.news-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}
.news-card {
    overflow: hidden;
    transition: var(--transition);
    cursor: pointer;
    border-radius: var(--radius);
}
.news-card .news-inner { display: block; }
.news-card .news-image-wrap {
    position: relative;
    height: 160px;
    overflow: hidden;
    background: rgba(0, 8, 16, 0.4);
}
.news-card .news-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.88;
}
.news-card .news-image-wrap .news-badge {
    position: absolute;
    bottom: 10px;
    left: 10px;
    padding: 3px 12px;
    background: rgba(2, 8, 18, 0.8);
    font-size: 9px;
    color: var(--text-secondary);
    border: 1px solid rgba(180, 220, 255, 0.1);
    border-radius: 4px;
    letter-spacing: 0.5px;
    backdrop-filter: blur(4px);
}
.news-card .news-body {
    padding: 14px 18px 16px;
}
.news-card .news-body .news-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--text-primary);
}
.news-card .news-body .news-excerpt {
    color: var(--text-secondary);
    font-size: 13px;
    line-height: 1.6;
    margin-bottom: 8px;
}
.news-card .read-more-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--text-secondary);
    font-weight: 400;
    text-decoration: none;
    font-size: 12px;
    transition: var(--transition);
}
.news-card .read-more-link:hover {
    color: var(--accent-1);
    gap: 10px;
    text-shadow: 0 0 8px rgba(168, 224, 255, 0.4);
}
.news-card .news-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 10px;
    border-top: 1px solid rgba(180, 220, 255, 0.06);
    flex-wrap: wrap;
    gap: 4px;
}
.news-card .news-footer .news-id {
    color: var(--text-muted);
    font-size: 9px;
    letter-spacing: 0.5px;
}
.news-card .news-footer .news-actions {
    display: flex;
    gap: 4px;
}
.news-card .news-footer .news-actions a {
    padding: 2px 10px;
    text-decoration: none;
    font-size: 10px;
    font-weight: 400;
    border-radius: 4px;
    transition: var(--transition);
    border: 1px solid rgba(180, 220, 255, 0.1);
}
.news-card .news-footer .news-actions .edit-btn {
    color: var(--text-secondary);
}
.news-card .news-footer .news-actions .edit-btn:hover {
    border-color: rgba(168, 224, 255, 0.4);
    color: var(--accent-1);
}
.news-card .news-footer .news-actions .delete-btn {
    color: var(--text-muted);
}
.news-card .news-footer .news-actions .delete-btn:hover {
    border-color: var(--danger);
    color: var(--danger);
}

/* ============================================================
   ПОРТФОЛИО
   ============================================================ */
.works-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}
.work-card {
    overflow: hidden;
    transition: var(--transition);
    border-radius: var(--radius);
    position: relative;
}
.work-card .work-image-wrap {
    position: relative;
    height: 160px;
    overflow: hidden;
    background: rgba(0, 8, 16, 0.4);
}
.work-card .work-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.88;
}
.work-card .work-status-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 3px 12px;
    font-size: 9px;
    font-weight: 400;
    background: rgba(2, 8, 18, 0.8);
    border: 1px solid rgba(180, 220, 255, 0.1);
    border-radius: 4px;
    letter-spacing: 0.5px;
    backdrop-filter: blur(4px);
}
.work-card .work-status-badge.active { color: var(--accent-1); }
.work-card .work-status-badge.developing { color: var(--warning); }
.work-card .work-status-badge.completed { color: var(--text-muted); }
.work-card .work-body { padding: 14px 16px 16px; }
.work-card .work-body h3 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--text-primary);
}
.work-card .work-body p {
    color: var(--text-secondary);
    font-size: 12px;
    line-height: 1.6;
    margin-bottom: 8px;
}
.work-card .work-body .work-btn {
    padding: 5px 18px;
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid rgba(180, 220, 255, 0.1);
    font-weight: 400;
    font-size: 12px;
    cursor: pointer;
    transition: var(--transition);
    border-radius: 4px;
}
.work-card .work-body .work-btn:hover {
    border-color: rgba(168, 224, 255, 0.4);
    color: var(--accent-1);
    box-shadow: 0 0 12px rgba(150, 200, 255, 0.15);
}

/* ============================================================
   ТОВАРЫ / МАГАЗИН
   ============================================================ */
.shop-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}
.product-card {
    padding: 16px;
    transition: var(--transition);
    border-radius: var(--radius);
    position: relative;
}
.product-card .product-icon {
    font-size: 24px;
    display: block;
    margin-bottom: 4px;
}
.product-card .product-category {
    display: inline-block;
    padding: 2px 8px;
    color: var(--accent-1);
    font-size: 9px;
    font-weight: 400;
    border: 1px solid rgba(168, 224, 255, 0.15);
    border-radius: 4px;
    margin-bottom: 4px;
    letter-spacing: 0.5px;
}
.product-card .product-type-badge {
    display: inline-block;
    padding: 2px 8px;
    font-size: 9px;
    font-weight: 400;
    border-radius: 4px;
    margin-left: 4px;
    border: 1px solid rgba(180, 220, 255, 0.1);
}
.product-card .product-type-badge.product { color: var(--success); }
.product-card .product-type-badge.service { color: var(--accent-1); }
.product-card .product-name {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--text-primary);
}
.product-card .product-desc {
    color: var(--text-secondary);
    font-size: 12px;
    line-height: 1.6;
    margin-bottom: 6px;
}
.product-card .product-price {
    font-size: 16px;
    font-weight: 700;
    color: var(--accent-1);
    margin-bottom: 4px;
    text-shadow: 0 0 12px rgba(150, 200, 255, 0.2);
}
.product-card .product-stock {
    font-size: 10px;
    color: var(--text-muted);
    margin-bottom: 8px;
}
.product-card .product-stock .in-stock { color: var(--success); }
.product-card .product-stock .out-of-stock { color: var(--danger); }
.product-card .product-actions {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}
.product-card .product-actions .detail-btn {
    padding: 5px 16px;
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid rgba(180, 220, 255, 0.1);
    font-weight: 400;
    font-size: 12px;
    cursor: pointer;
    transition: var(--transition);
    border-radius: 4px;
    text-decoration: none;
    display: inline-block;
}
.product-card .product-actions .detail-btn:hover {
    border-color: rgba(168, 224, 255, 0.4);
    color: var(--accent-1);
    box-shadow: 0 0 12px rgba(150, 200, 255, 0.15);
}
.product-card .product-actions .buy-btn {
    padding: 5px 16px;
    background: linear-gradient(135deg, #e8f4ff, #a8e0ff, #7ab8e8);
    color: #0a1428;
    border: none;
    font-weight: 600;
    font-size: 12px;
    cursor: pointer;
    transition: var(--transition);
    border-radius: 4px;
    text-decoration: none;
    display: inline-block;
    box-shadow: 0 4px 20px rgba(150, 200, 255, 0.25);
}
.product-card .product-actions .buy-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 32px rgba(150, 200, 255, 0.5);
}
.product-card .product-actions .buy-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}
.product-card .product-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 2px 8px;
    color: var(--text-muted);
    font-size: 8px;
    font-weight: 400;
    border: 1px solid rgba(180, 220, 255, 0.1);
    border-radius: 4px;
    letter-spacing: 0.5px;
}
.product-card .product-badge.sold-out { color: var(--danger); }
.product-card .product-badge.service-badge { color: var(--accent-1); }

/* ============================================================
   АУТЕНТИФИКАЦИЯ
   ============================================================ */
.auth-box {
    max-width: 380px;
    margin: 50px auto;
    padding: 30px 32px;
    border-radius: var(--radius);
}
.auth-box .auth-logo {
    display: block;
    text-align: center;
    font-family: 'Orbitron', sans-serif;
    font-size: 22px;
    font-weight: 700;
    text-decoration: none;
    margin-bottom: 16px;
    letter-spacing: 2px;
    background: linear-gradient(135deg, #ffffff, #a8e0ff, #ffffff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 12px rgba(150, 200, 255, 0.3));
}
.auth-box .auth-logo span {
    background: linear-gradient(135deg, #a8e0ff, #7ab8e8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.auth-box h2 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--text-primary);
}
.auth-box .auth-subtitle {
    color: var(--text-secondary);
    font-size: 13px;
    margin-bottom: 16px;
}
.auth-box .auth-form input {
    width: 100%;
    padding: 10px 14px;
    margin-bottom: 10px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}
.auth-box .auth-form .btn-submit {
    width: 100%;
    padding: 10px;
    background: linear-gradient(135deg, #e8f4ff, #a8e0ff, #7ab8e8);
    color: #0a1428;
    border: none;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    border-radius: 6px;
    transition: var(--transition);
    box-shadow: 0 4px 20px rgba(150, 200, 255, 0.25);
}
.auth-box .auth-form .btn-submit:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 6px 32px rgba(150, 200, 255, 0.5);
}
.auth-box .auth-footer {
    text-align: center;
    margin-top: 12px;
    color: var(--text-muted);
    font-size: 12px;
}
.auth-box .auth-footer a {
    color: var(--accent-1);
    text-decoration: none;
}
.auth-box .auth-footer a:hover {
    text-decoration: underline;
    text-shadow: 0 0 8px rgba(168, 224, 255, 0.4);
}
.auth-box .alert {
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    margin-bottom: 12px;
    font-weight: 400;
    font-size: 12px;
    border: 1px solid rgba(180, 220, 255, 0.1);
}
.auth-box .alert-error { color: var(--danger); }
.auth-box .alert-success { color: var(--success); }

/* ============================================================
   ПРОЧИЕ ЭЛЕМЕНТЫ
   ============================================================ */
.contacts-section {
    padding: 20px;
    margin-top: 28px;
    text-align: center;
    border-radius: var(--radius);
}
.contact-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 8px;
}
.contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 20px;
    text-decoration: none;
    font-weight: 400;
    font-size: 12px;
    border: 1px solid rgba(180, 220, 255, 0.1);
    background: transparent;
    color: var(--text-secondary);
    border-radius: 4px;
    transition: var(--transition);
}
.contact-btn:hover {
    border-color: rgba(168, 224, 255, 0.4);
    color: var(--accent-1);
    box-shadow: 0 0 16px rgba(150, 200, 255, 0.15);
}

.profile-avatar-large {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border: 2px solid rgba(180, 220, 255, 0.2);
    margin-bottom: 10px;
    border-radius: 50%;
    box-shadow: 0 0 24px rgba(150, 200, 255, 0.15);
}
.profile-sidebar .status-badge {
    display: inline-block;
    padding: 2px 12px;
    color: var(--success);
    font-size: 10px;
    font-weight: 400;
    margin-top: 4px;
    border: 1px solid rgba(52, 211, 153, 0.2);
    border-radius: 4px;
}

/* ============================================================
   АДМИН-ПАНЕЛЬ
   ============================================================ */
.admin-tabs .tab-btn {
    padding: 6px 18px;
    border: 1px solid rgba(180, 220, 255, 0.1);
    background: transparent;
    color: var(--text-secondary);
    font-weight: 400;
    font-size: 12px;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    border-radius: 4px;
}
.admin-tabs .tab-btn:hover {
    border-color: rgba(168, 224, 255, 0.4);
    color: var(--accent-1);
}
.admin-tabs .tab-btn.active {
    border-color: rgba(168, 224, 255, 0.4);
    background: linear-gradient(135deg, rgba(168, 224, 255, 0.15), rgba(122, 184, 232, 0.08));
    color: #e8f4ff;
    box-shadow: 0 0 16px rgba(150, 200, 255, 0.15);
}
.admin-form .btn-submit {
    padding: 8px 24px;
    background: linear-gradient(135deg, #e8f4ff, #a8e0ff, #7ab8e8);
    color: #0a1428;
    border: none;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    transition: var(--transition);
    border-radius: 4px;
    box-shadow: 0 4px 20px rgba(150, 200, 255, 0.25);
}
.admin-form .btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 32px rgba(150, 200, 255, 0.5);
}

/* ============================================================
   ИНФОРМАЦИОННЫЙ БАННЕР О ПОПОЛНЕНИИ
   ============================================================ */
.notice-banner {
    background: linear-gradient(135deg, rgba(60, 100, 180, 0.14), rgba(30, 60, 120, 0.06));
    border: 1px solid rgba(100, 150, 220, 0.3);
    border-radius: 8px;
    padding: 10px 16px;
    margin-bottom: 20px;
    position: relative;
    animation: noticeSlideDown 0.4s ease;
}
@keyframes noticeSlideDown {
    0% { opacity: 0; transform: translateY(-10px); }
    100% { opacity: 1; transform: translateY(0); }
}
.notice-banner .notice-content {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}
.notice-banner .notice-icon {
    font-size: 18px;
    flex-shrink: 0;
}
.notice-banner .notice-text {
    color: #a8c8e8;
    font-size: 13px;
    flex: 1;
    min-width: 150px;
}
.notice-banner .notice-text strong {
    color: #d8e8ff;
    font-weight: 700;
}
.notice-banner .notice-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 16px;
    background: linear-gradient(135deg, #4a7bc8, #2a5ba8);
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 12px;
    transition: var(--transition);
    flex-shrink: 0;
    border: none;
    cursor: pointer;
}
.notice-banner .notice-btn:hover {
    background: linear-gradient(135deg, #5a8bd8, #3a6bb8);
    transform: scale(1.03);
    box-shadow: 0 4px 20px rgba(100, 150, 220, 0.4);
}

/* ============================================================
   НОВОГОДНИЙ БАННЕР (2027)
   ============================================================ */
.ny-banner {
    position: relative;
    background: linear-gradient(135deg, rgba(30, 60, 120, 0.5), rgba(80, 20, 100, 0.35), rgba(20, 40, 90, 0.5));
    border: 1px solid rgba(180, 220, 255, 0.3);
    border-radius: 14px;
    padding: 16px 22px;
    margin-bottom: 22px;
    overflow: hidden;
    animation: nySlideDown 0.6s ease;
    box-shadow: 0 8px 40px rgba(100, 150, 255, 0.15), inset 0 0 60px rgba(150, 200, 255, 0.06);
}
.ny-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 22px,
        rgba(255, 255, 255, 0.025) 22px,
        rgba(255, 255, 255, 0.025) 44px
    );
    pointer-events: none;
}
.ny-banner::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.08), transparent 40%),
                radial-gradient(circle at 80% 70%, rgba(180, 220, 255, 0.06), transparent 40%);
    pointer-events: none;
    animation: nyShimmer 8s ease-in-out infinite;
}
@keyframes nyShimmer {
    0%, 100% { transform: rotate(0deg); }
    50% { transform: rotate(8deg); }
}
@keyframes nySlideDown {
    0% { opacity: 0; transform: translateY(-16px); }
    100% { opacity: 1; transform: translateY(0); }
}
.ny-banner .ny-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
    text-align: center;
}
.ny-banner .ny-icon {
    font-size: 32px;
    animation: nyIconBounce 2.4s ease-in-out infinite;
    filter: drop-shadow(0 0 8px rgba(255, 220, 150, 0.5));
}
.ny-banner .ny-icon:last-child {
    animation-delay: 0.6s;
}
@keyframes nyIconBounce {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-6px) rotate(8deg); }
}
.ny-banner .ny-text {
    font-family: 'Orbitron', sans-serif;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 1.5px;
    color: #e8f4ff;
    text-shadow: 0 0 20px rgba(150, 200, 255, 0.5);
}
.ny-banner .ny-text .ny-year {
    background: linear-gradient(135deg, #a8e0ff, #ffffff, #ffd9a8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 900;
    font-size: 22px;
    letter-spacing: 3px;
}
.ny-banner .ny-subtext {
    display: block;
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 400;
    color: #a8c8e8;
    letter-spacing: 2px;
    margin-top: 4px;
    text-transform: uppercase;
}

/* ============================================================
   ПАДАЮЩИЕ СНЕЖИНКИ
   ============================================================ */
.snowflake {
    position: fixed;
    top: -10px;
    z-index: 9998;
    pointer-events: none;
    user-select: none;
    color: #ffffff;
    text-shadow: 0 0 6px rgba(200, 230, 255, 0.9), 0 0 14px rgba(150, 200, 255, 0.5);
    opacity: 0.92;
    animation: snowFall linear infinite;
    will-change: transform;
}
@keyframes snowFall {
    0% {
        transform: translateY(-10vh) translateX(0) rotate(0deg);
        opacity: 1;
    }
    25% {
        transform: translateY(25vh) translateX(15px) rotate(90deg);
    }
    50% {
        transform: translateY(50vh) translateX(-10px) rotate(180deg);
        opacity: 0.9;
    }
    75% {
        transform: translateY(75vh) translateX(20px) rotate(270deg);
    }
    100% {
        transform: translateY(105vh) translateX(-5px) rotate(360deg);
        opacity: 0;
    }
}
.snowflake.tiny { font-size: 7px; }
.snowflake.small { font-size: 10px; }
.snowflake.medium { font-size: 16px; }
.snowflake.large { font-size: 24px; }
.snowflake.slow { animation-duration: 14s; }
.snowflake.normal { animation-duration: 9s; }
.snowflake.fast { animation-duration: 5s; }

/* ============================================================
   СНЕЖНЫЕ УГЛЫ (декор)
   ============================================================ */
.snow-corner {
    position: fixed;
    width: 180px;
    height: 180px;
    pointer-events: none;
    z-index: 1;
    opacity: 0.5;
}
.snow-corner.top-left {
    top: 0;
    left: 0;
    background: radial-gradient(circle at 0% 0%, rgba(200, 230, 255, 0.25), transparent 70%);
}
.snow-corner.top-right {
    top: 0;
    right: 0;
    background: radial-gradient(circle at 100% 0%, rgba(200, 230, 255, 0.25), transparent 70%);
}
.snow-corner.bottom-left {
    bottom: 0;
    left: 0;
    background: radial-gradient(circle at 0% 100%, rgba(200, 230, 255, 0.15), transparent 70%);
}
.snow-corner.bottom-right {
    bottom: 0;
    right: 0;
    background: radial-gradient(circle at 100% 100%, rgba(200, 230, 255, 0.15), transparent 70%);
}

/* ============================================================
   ЁЛОЧНЫЕ ИГРУШКИ В ФУТЕРЕ
   ============================================================ */
.ny-footer-decor {
    display: inline-flex;
    gap: 4px;
    margin-left: 6px;
    vertical-align: middle;
}
.ny-footer-decor span {
    display: inline-block;
    animation: nyOrnament 2s ease-in-out infinite;
}
.ny-footer-decor span:nth-child(2) { animation-delay: 0.3s; }
.ny-footer-decor span:nth-child(3) { animation-delay: 0.6s; }
@keyframes nyOrnament {
    0%, 100% { transform: translateY(0) rotate(0deg); opacity: 1; }
    50% { transform: translateY(-2px) rotate(10deg); opacity: 0.7; }
}

/* ============================================================
   ВИДЖЕТ ЧАТА ПОДДЕРЖКИ — ЗИМНИЙ
   ============================================================ */
.support-chat-widget {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 99999;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}
.chat-toggle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4a7bc8, #2a5ba8);
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(100, 150, 220, 0.4);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}
.chat-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 30px rgba(100, 150, 220, 0.6);
}
.chat-toggle .chat-label {
    position: absolute;
    right: 60px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--bg-card);
    color: var(--text-primary);
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    border: 1px solid rgba(180, 220, 255, 0.15);
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
}
.chat-toggle:hover .chat-label {
    opacity: 1;
}
.chat-toggle .chat-notification-dot {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 12px;
    height: 12px;
    background: #ef4444;
    border-radius: 50%;
    border: 2px solid #fff;
    animation: notifPulse 1.5s ease-in-out infinite;
    display: none;
}
.chat-toggle .chat-icon {
    transition: transform 0.3s ease;
}

/* ============================================================
   ФУТЕР — ЗИМНИЙ
   ============================================================ */
.site-footer {
    margin-top: 32px;
    padding-top: 16px;
    border-top: 1px solid rgba(180, 220, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 12px;
    color: var(--text-muted);
    position: relative;
}
.site-footer::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(168, 224, 255, 0.3), transparent);
}
.site-footer a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
}
.site-footer a:hover {
    color: var(--accent-1);
    text-shadow: 0 0 8px rgba(168, 224, 255, 0.4);
}
.site-footer .footer-links {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

/* ============================================================
   ФИКС МОДАЛЬНОГО ОКНА (ПОДРОБНЕЕ О ПРОЕКТЕ)
   ============================================================ */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(2, 8, 18, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 99999;
    justify-content: center;
    align-items: center;
    padding: 20px;
    margin: 0; /* Защита от старых стилей */
}

.modal-overlay.active {
    display: flex;
}

.modal-box {
    background: rgba(6, 14, 26, 0.95);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(180, 220, 255, 0.15);
    border-radius: 16px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6), 0 0 60px rgba(100, 150, 220, 0.1);
    width: 100%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    animation: modalSlide 0.3s ease;
    position: relative;
}

@keyframes modalSlide {
    0% { opacity: 0; transform: translateY(20px) scale(0.98); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid rgba(180, 220, 255, 0.08);
}

.modal-title {
    font-size: 24px;
    font-weight: 800;
    color: var(--text-primary);
}

.modal-status {
    font-size: 13px;
    font-weight: 600;
    color: var(--success);
    display: block;
    margin-top: 4px;
}

.modal-close {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 24px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
}

.modal-close:hover {
    color: var(--danger);
    background: rgba(248, 113, 113, 0.1);
}

.modal-body {
    padding: 24px;
}

.modal-image {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 20px;
    border: 1px solid rgba(180, 220, 255, 0.1);
}

.modal-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.modal-meta .meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(120, 180, 240, 0.05);
    padding: 12px 16px;
    border-radius: 8px;
    border: 1px solid rgba(180, 220, 255, 0.08);
    font-size: 14px;
    color: var(--text-secondary);
}

.modal-meta .meta-value {
    color: var(--text-primary);
    font-weight: 600;
}

.modal-description {
    color: var(--text-secondary);
    font-size: 16px;
    line-height: 1.8;
    background: rgba(2, 8, 18, 0.4);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid rgba(180, 220, 255, 0.05);
}

.modal-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-top: 1px solid rgba(180, 220, 255, 0.08);
    background: rgba(2, 8, 18, 0.3);
    border-radius: 0 0 16px 16px;
}

.modal-footer .footer-text {
    color: var(--text-muted);
    font-size: 13px;
}

.modal-footer .footer-close-btn {
    padding: 8px 24px;
    background: linear-gradient(135deg, #e8f4ff, #a8e0ff, #7ab8e8);
    color: #0a1428;
    border: none;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    border-radius: 6px;
    transition: var(--transition);
    box-shadow: 0 4px 20px rgba(150, 200, 255, 0.25);
}

.modal-footer .footer-close-btn:hover {
    box-shadow: 0 6px 32px rgba(150, 200, 255, 0.5);
    transform: translateY(-2px) scale(1.02);
}

/* ============================================================
   АНИМАЦИИ
   ============================================================ */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}
.news-card, .work-card, .product-card, .stat-card {
    animation: fadeInUp 0.4s ease forwards;
}

/* Плавный hover для ссылок */
a {
    transition: color 0.25s ease, text-shadow 0.25s ease;
}
a:hover {
    text-shadow: 0 0 8px rgba(168, 224, 255, 0.3);
}

/* Кнопки действий — морозный градиент */
.btn-submit,
.buy-btn,
.replenish-btn,
.claim-btn,
.error-actions .btn-home {
    background: linear-gradient(135deg, #e8f4ff, #a8e0ff, #7ab8e8) !important;
    color: #0a1428 !important;
    box-shadow: 0 4px 20px rgba(150, 200, 255, 0.25);
    transition: all 0.3s ease;
}
.btn-submit:hover,
.buy-btn:hover,
.replenish-btn:hover,
.claim-btn:hover,
.error-actions .btn-home:hover {
    box-shadow: 0 6px 32px rgba(150, 200, 255, 0.5);
    transform: translateY(-2px) scale(1.02);
}


/* ============================================================
   АДАПТИВ
   ============================================================ */

/* Планшеты */
@media (max-width: 992px) {
    header { padding: 10px 16px; border-radius: 10px; gap: 6px; }
    .logo { font-size: 16px; }
    .balance-display { font-size: 10px; padding: 2px 10px 2px 6px; }
    .balance-display .balance-amount { font-size: 10px; }
    .balance-display .balance-currency { font-size: 8px; }
    nav a { font-size: 11px; padding: 4px 10px; }
    .profile-avatar-wrapper .profile-avatar-btn { width: 28px; height: 28px; }
    .profile-avatar-wrapper .profile-avatar-btn .avatar-placeholder { font-size: 11px; }
    .online-counter { font-size: 10px; padding: 2px 8px; }
    .notif-bell { width: 28px; height: 28px; font-size: 14px; }
    .profile-dropdown { right: -20px; width: 200px; }
    .notif-dropdown { width: 320px; right: -60px; }
}

/* Мобильные */
@media (max-width: 768px) {
    header { flex-wrap: wrap; padding: 8px 12px; border-radius: 8px; gap: 4px; }
    .header-left { flex: 1; min-width: 0; gap: 8px; }
    .logo { font-size: 14px; letter-spacing: 1px; }
    .balance-display { font-size: 9px; padding: 2px 6px 2px 4px; }
    .balance-display .balance-amount { font-size: 9px; }
    .balance-display .balance-currency { font-size: 7px; }
    .balance-display .balance-icon { font-size: 8px; }
    nav { width: 100%; order: 3; padding-top: 6px; border-top: 1px solid rgba(180, 220, 255, 0.06); margin-top: 2px; gap: 1px; overflow-x: auto; flex-wrap: nowrap; -webkit-overflow-scrolling: touch; }
    nav::-webkit-scrollbar { display: none; }
    nav a { font-size: 10px; padding: 3px 8px; flex-shrink: 0; }
    .register-btn, .login-btn { font-size: 10px; padding: 3px 12px !important; }
    .online-counter { font-size: 9px; padding: 2px 6px; flex-shrink: 0; }
    .online-counter .dot { width: 3px; height: 3px; }
    .profile-avatar-wrapper .profile-avatar-btn { width: 24px; height: 24px; }
    .profile-avatar-wrapper .profile-avatar-btn .avatar-placeholder { font-size: 10px; }
    .profile-avatar-wrapper .profile-avatar-btn .avatar-badge { min-width: 12px; height: 12px; font-size: 6px; top: -3px; right: -3px; border-width: 1.5px; }
    .notif-bell { width: 26px; height: 26px; font-size: 13px; }
    .notif-bell .notif-badge { min-width: 14px; height: 14px; font-size: 8px; }
    .profile-dropdown { right: -30px; width: 180px; }
    .profile-dropdown .dropdown-item { font-size: 11px; padding: 6px 12px; }
    .profile-dropdown .dropdown-header .dropdown-name { font-size: 12px; }
    .profile-dropdown .dropdown-header .dropdown-avatar { width: 30px; height: 30px; }
    .notif-dropdown { width: 300px; right: -80px; }
    .works-grid { grid-template-columns: repeat(2, 1fr); }
    .shop-container { grid-template-columns: repeat(2, 1fr); }
    .hero-banner::before, .hero-banner::after { width: 30px; }
    .hero-banner { padding: 24px 0; }
    .hero-banner h1 { font-size: 22px; letter-spacing: 2px; }
    .ny-banner { padding: 12px 14px; }
    .ny-banner .ny-text { font-size: 13px; letter-spacing: 1px; }
    .ny-banner .ny-text .ny-year { font-size: 18px; }
    .ny-banner .ny-subtext { font-size: 10px; }
    .ny-banner .ny-icon { font-size: 24px; }
    .snow-corner { width: 120px; height: 120px; }
    .modal-box { max-height: 95vh; }
    .modal-title { font-size: 20px; }
    .modal-header, .modal-body, .modal-footer { padding: 16px; }
}

/* Очень маленькие */
@media (max-width: 480px) {
    header { padding: 6px 8px; border-radius: 6px; gap: 2px; }
    .logo { font-size: 12px; letter-spacing: 0.5px; }
    .balance-display { font-size: 8px; padding: 1px 4px; }
    .balance-display .balance-amount { font-size: 8px; }
    .balance-display .balance-currency { font-size: 6px; }
    nav a { font-size: 9px; padding: 2px 6px; }
    .profile-avatar-wrapper .profile-avatar-btn { width: 20px; height: 20px; border-width: 1.5px; }
    .profile-avatar-wrapper .profile-avatar-btn .avatar-placeholder { font-size: 8px; }
    .profile-avatar-wrapper .profile-avatar-btn .avatar-badge { min-width: 10px; height: 10px; font-size: 5px; top: -3px; right: -3px; border-width: 1.5px; }
    .notif-bell { width: 22px; height: 22px; font-size: 11px; }
    .notif-bell .notif-badge { min-width: 12px; height: 12px; font-size: 7px; top: -3px; right: -3px; }
    .online-counter { font-size: 8px; padding: 1px 4px; }
    .online-counter .dot { width: 2px; height: 2px; }
    .online-counter .online-label { display: none; }
    .profile-dropdown { right: -40px; width: 160px; }
    .profile-dropdown .dropdown-item { font-size: 10px; padding: 5px 10px; gap: 6px; }
    .profile-dropdown .dropdown-item .item-icon { font-size: 12px; width: 16px; }
    .profile-dropdown .dropdown-header { padding: 6px 10px; gap: 6px; }
    .profile-dropdown .dropdown-header .dropdown-name { font-size: 11px; }
    .profile-dropdown .dropdown-header .dropdown-avatar { width: 26px; height: 26px; }
    .profile-dropdown .dropdown-divider { margin: 2px 6px; }
    .notif-dropdown { width: 260px; right: -100px; }
    .notif-dropdown .notif-item { padding: 8px 12px; font-size: 11px; }
    .hero-banner { padding: 16px 0; }
    .hero-banner h1 { font-size: 16px; letter-spacing: 1px; }
    .hero-banner::before, .hero-banner::after { display: none; }
    .hero-banner .hero-stats { gap: 12px; }
    .shop-container { grid-template-columns: 1fr 1fr; gap: 4px; }
    .product-card { padding: 10px; }
    .product-card .product-price { font-size: 14px; }
    .notice-banner .notice-text { font-size: 11px; }
    .notice-banner .notice-btn { font-size: 10px; padding: 3px 10px; }
    .notice-banner .notice-icon { font-size: 14px; }
    .ny-banner .ny-text { font-size: 11px; }
    .ny-banner .ny-text .ny-year { font-size: 15px; }
    .ny-banner .ny-subtext { font-size: 9px; letter-spacing: 1px; }
    .ny-banner .ny-icon { font-size: 20px; }
    .snow-corner { width: 80px; height: 80px; opacity: 0.35; }
    .modal-body, .modal-footer { padding: 12px; }
    .modal-image { max-height: 200px; }
    .modal-meta { grid-template-columns: 1fr; }
}

/* Десктопы */
@media (min-width: 769px) {
    .news-grid { grid-template-columns: 1fr; }
    .news-card .news-inner { display: grid; grid-template-columns: 260px 1fr; min-height: 160px; }
    .news-card .news-image-wrap { height: 100%; min-height: 160px; }
    .works-grid { grid-template-columns: repeat(3, 1fr); gap: 18px; }
    .shop-container { grid-template-columns: repeat(3, 1fr); gap: 14px; }
    .hero-banner { padding: 50px 0; }
    .hero-banner h1 { font-size: 34px; }
    .hero-banner::before, .hero-banner::after { width: 100px; }
}

