/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Основные цвета */
    --bg-primary: #0f0f12;
    --bg-secondary: #1a1a1f;
    --bg-card: rgba(30, 30, 35, 0.85);
    --bg-card-solid: #1e1e23;
    --border-color: rgba(255, 255, 255, 0.08);
    --border-glow: rgba(99, 102, 241, 0.3);

    /* Акцентные цвета */
    --accent-primary: #6366f1;
    --accent-secondary: #8b5cf6;
    --accent-success: #10b981;
    --accent-warning: #f59e0b;
    --accent-danger: #ef4444;
    --accent-live: #ef4444;

    /* Текст */
    --text-primary: #ffffff;
    --text-secondary: #a1a1aa;
    --text-muted: #71717a;

    /* Эффекты */
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-glow: 0 0 20px rgba(99, 102, 241, 0.3);
    --shadow-auth: 0 25px 50px -12px rgba(0, 0, 0, 0.5);

    /* Анимации */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.25s ease;
    --transition-slow: 0.4s ease;

    /* Радиусы */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --radius-auth: 24px;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.5;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    padding-top: 140px;
}

/* ===== AUTHENTICATION MODAL ===== */
.auth-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.98), rgba(30, 41, 59, 0.95));
    backdrop-filter: blur(20px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn 0.5s ease;
}

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

@keyframes slideUp {
    from { 
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to { 
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.auth-modal {
    background: linear-gradient(145deg, rgba(30, 41, 59, 0.9), rgba(15, 23, 42, 0.95));
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: var(--radius-auth);
    width: 100%;
    max-width: 420px;
    box-shadow: var(--shadow-auth), 0 0 40px rgba(99, 102, 241, 0.2);
    animation: slideUp 0.6s ease;
    overflow: hidden;
    position: relative;
}

.auth-modal::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary), var(--accent-primary));
    background-size: 200% 100%;
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.auth-header {
    padding: 40px 32px 24px;
    text-align: center;
    position: relative;
}

.auth-logo {
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: white;
    margin: 0 auto 20px;
    position: relative;
    box-shadow: 0 8px 32px rgba(99, 102, 241, 0.4);
}

.auth-logo .live-pulse {
    position: absolute;
    top: -4px;
    right: -4px;
    width: 16px;
    height: 16px;
    background: var(--accent-live);
    border-radius: 50%;
    animation: pulse-live 1.5s infinite;
    box-shadow: 0 0 12px var(--accent-live);
    border: 2px solid var(--bg-card-solid);
}

@keyframes pulse-live {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.3); opacity: 0.7; }
}

.auth-header h2 {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 8px;
    background: linear-gradient(135deg, #fff, var(--accent-primary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.auth-header p {
    color: var(--text-secondary);
    font-size: 14px;
}

.auth-body {
    padding: 0 32px 32px;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.input-group {
    position: relative;
    display: flex;
    align-items: center;
}

.input-group i:first-child {
    position: absolute;
    left: 16px;
    color: var(--accent-primary);
    font-size: 18px;
    z-index: 2;
}

/* Глазик (кнопка показа пароля) - внутри поля справа */
.toggle-password {
    position: absolute;
    right: 12px; /* Было 16px - уменьшаем отступ */
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 16px; /* Было 18px - чуть меньше */
    padding: 8px; /* Добавляем паддинг для удобства клика */
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
    z-index: 3;
}

.toggle-password:hover {
    color: var(--accent-primary);
    background: rgba(99, 102, 241, 0.1);
}

/* Поле пароля - увеличиваем правый паддинг чтобы текст не заезжал на глазик */
.input-group input {
    width: 100%;
    padding: 16px 48px 16px 48px; /* Было 16px 48px 16px 48px - оставляем, но можно увеличить правый до 52px если нужно */
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    color: var(--text-primary);
    font-size: 16px;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s ease;
    outline: none;
}

.input-group input {
    width: 100%;
    padding: 16px 48px 16px 48px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    color: var(--text-primary);
    font-size: 16px;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s ease;
    outline: none;
}

.input-group input::placeholder {
    color: var(--text-muted);
}

.input-group input:focus {
    border-color: var(--accent-primary);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.2);
}

.toggle-password {
    position: absolute;
    right: 16px;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 18px;
    padding: 4px;
    transition: color 0.2s ease;
    z-index: 2;
}

.toggle-password:hover {
    color: var(--accent-primary);
}

.auth-error {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: var(--radius-md);
    color: var(--accent-danger);
    font-size: 14px;
    animation: shake 0.5s ease;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.auth-error i {
    font-size: 16px;
}

.auth-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 24px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    border: none;
    border-radius: var(--radius-lg);
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.4);
    position: relative;
    overflow: hidden;
}

.auth-submit::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.auth-submit:hover::before {
    left: 100%;
}

.auth-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(99, 102, 241, 0.5);
}

.auth-submit:active {
    transform: translateY(0);
}

.auth-divider {
    display: flex;
    align-items: center;
    margin: 24px 0;
    color: var(--text-muted);
    font-size: 13px;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
}

.auth-divider span {
    padding: 0 16px;
}

.auth-contact {
    text-align: center;
    padding: 20px;
    background: rgba(99, 102, 241, 0.05);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(99, 102, 241, 0.1);
}

.auth-contact i {
    font-size: 28px;
    color: var(--accent-primary);
    margin-bottom: 12px;
    display: block;
}

.auth-contact p {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 8px;
}

.email-link {
    display: inline-block;
    color: var(--accent-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    padding: 8px 16px;
    background: rgba(99, 102, 241, 0.1);
    border-radius: var(--radius-md);
    transition: all 0.3s ease;
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.email-link:hover {
    background: rgba(99, 102, 241, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.auth-footer {
    padding: 20px 32px;
    background: rgba(0, 0, 0, 0.2);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
}

.auth-footer p {
    color: var(--text-muted);
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.auth-footer i {
    color: var(--accent-success);
}

/* Logout Button */
.logout-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 40px;
    color: var(--accent-danger);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.logout-btn:hover {
    background: rgba(239, 68, 68, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

/* ===== АНИМИРОВАННЫЙ ФОН ===== */
.animated-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: float 20s infinite ease-in-out;
}

.orb-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.4), rgba(139, 92, 246, 0.1));
    top: -200px;
    left: -200px;
    animation-delay: 0s;
}

.orb-2 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.3), rgba(6, 182, 212, 0.1));
    bottom: -200px;
    right: -200px;
    animation-delay: -5s;
}

.orb-3 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.3), rgba(239, 68, 68, 0.1));
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: -10s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -30px) scale(1.05); }
    66% { transform: translate(-20px, 20px) scale(0.95); }
}

.noise-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='1' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 1;
}

/* ===== БЕГУЩАЯ СТРОКА ===== */
.marquee-modern {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(135deg, #0f172a, #1e293b);
    backdrop-filter: blur(10px);
    padding: 10px 0;
    z-index: 1000;
    overflow: hidden;
    border-bottom: 1px solid rgba(99, 102, 241, 0.3);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    white-space: nowrap;
    transition: transform 0.3s ease;
}

.marquee-modern.hidden {
    transform: translateY(-100%);
}

.marquee-modern-content {
    display: inline-block;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    white-space: nowrap;
}

.marquee-modern-content .sponsor-icon {
    color: var(--accent-primary);
    font-size: 16px;
}

.marquee-modern-content a {
    color: var(--accent-primary);
    text-decoration: none;
    font-weight: 700;
    transition: var(--transition-fast);
}

.marquee-modern-content a:hover {
    color: var(--accent-secondary);
    text-decoration: underline;
}

@keyframes marquee-modern {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

/* ===== HEADER - FIXED ===== */
.modern-header {
    position: fixed;
    top: 45px;
    left: 0;
    width: 100%;
    padding: 16px 24px;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    z-index: 999;
    transition: all 0.3s ease;
    will-change: transform;
}

.modern-header.scrolled {
    top: 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    background: rgba(15, 23, 42, 0.98);
}

.header-container {
    max-width: 1800px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 5px;
}

.logo-modern {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    position: relative;
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
}

.live-pulse {
    position: absolute;
    top: -4px;
    right: -4px;
    width: 12px;
    height: 12px;
    background: var(--accent-live);
    border-radius: 50%;
    animation: pulse-live 1.5s infinite;
    box-shadow: 0 0 8px var(--accent-live);
}

@keyframes pulse-live {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.3); opacity: 0.7; }
}

.logo-text {
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.logo-brand {
    background: linear-gradient(135deg, #fff, var(--accent-primary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.header-stats {
    display: flex;
    gap: 12px;
}

.stat-chip {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 40px;
    font-size: 14px;
    font-weight: 500;
    backdrop-filter: blur(4px);
}

.stat-chip i {
    color: var(--accent-primary);
}

.datetime-modern {
    text-align: right;
}

.time-modern {
    font-size: 28px;
    font-weight: 700;
    font-family: 'Inter', monospace;
    letter-spacing: 2px;
    background: linear-gradient(135deg, #fff, var(--accent-primary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.date-modern {
    font-size: 12px;
    color: var(--text-muted);
    letter-spacing: 1px;
}

/* ===== MAIN CONTAINER ===== */
.main-modern {
    max-width: 1800px;
    margin: 0 auto;
    padding: 20px 24px 40px;
    display: grid;
    grid-template-columns: 320px 1fr 320px;
    gap: 24px;
    position: relative;
    z-index: 2;
}

/* ===== SIDEBARS ===== */
.sidebar-modern {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* ===== CARDS ===== */
.card-modern {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: var(--transition-normal);
}

.card-modern:hover {
    border-color: var(--border-glow);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 20px;
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid var(--border-color);
}

.card-header i {
    font-size: 22px;
    color: var(--accent-primary);
}

.card-header h3 {
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-secondary);
}

.card-body {
    padding: 20px;
}

/* Weather Widget */
.weather-widget .ww-informers-box-854753 {
    transform: scale(0.95);
}

/* Traffic Map */
.traffic-map-modern {
    width: 100%;
    height: 280px !important;
    border-radius: var(--radius-md);
    overflow: hidden;
}

/* Location Widget */
.location-info-modern {
    margin-bottom: 16px;
}

.location-address {
    display: flex;
    gap: 12px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-md);
}

.location-address i {
    font-size: 20px;
    color: var(--accent-primary);
}

.location-address strong {
    font-size: 15px;
    display: block;
    margin-bottom: 4px;
}

.location-address p {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 2px;
}

.location-address span {
    font-size: 12px;
    color: var(--text-muted);
}

.location-map-modern {
    border-radius: var(--radius-md);
    overflow: hidden;
}

/* User Card */
.user-flag-modern {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.05));
    border-radius: var(--radius-lg);
    margin-bottom: 20px;
}

.user-flag-modern img {
    width: 56px;
    height: 42px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    box-shadow: var(--shadow-sm);
}

.user-location-modern {
    display: flex;
    flex-direction: column;
}

.user-location-modern span:first-child {
    font-weight: 700;
    font-size: 16px;
}

.user-location-modern span:last-child {
    font-size: 13px;
    color: var(--text-secondary);
}

.geo-modern {
    margin-bottom: 20px;
}

.geo-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-md);
    font-size: 13px;
}

.geo-row i {
    color: var(--accent-primary);
    font-size: 14px;
}

.geo-label {
    color: var(--text-muted);
}

.geo-value {
    color: var(--text-secondary);
    font-weight: 500;
    margin-left: auto;
}

.info-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: var(--radius-md);
    transition: var(--transition-fast);
}

.info-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.info-item i {
    width: 24px;
    font-size: 16px;
    color: var(--accent-primary);
}

.info-label {
    flex: 1;
    font-size: 13px;
    color: var(--text-muted);
}

.info-value {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
}

/* Theme Selector */
.theme-selector {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.theme-btn-modern {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition-normal);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: white;
    background: var(--bg-card-solid);
}

.theme-btn-modern:hover {
    transform: scale(1.1);
    border-color: white;
}

.theme-btn-modern.active {
    border-color: var(--accent-primary);
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.5);
}

/* Stats Widget */
.stats-modern {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.stat-modern {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: var(--radius-lg);
    transition: var(--transition-fast);
}

.stat-modern:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateX(4px);
}

.stat-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(139, 92, 246, 0.1));
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--accent-primary);
}

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

.stat-number {
    font-size: 28px;
    font-weight: 800;
    font-family: 'Inter', monospace;
    background: linear-gradient(135deg, #fff, var(--accent-primary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.stat-name {
    font-size: 12px;
    color: var(--text-muted);
    letter-spacing: 0.5px;
}

/* ===== VIDEO SECTION ===== */
.video-section-modern {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.video-card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: var(--transition-normal);
}

.video-card:hover {
    border-color: var(--border-glow);
    box-shadow: var(--shadow-glow);
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    width: 100%;
    background: #000;
}

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

.fullscreen-btn-modern {
    position: absolute;
    bottom: 20px;
    right: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 40px;
    color: white;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-normal);
    z-index: 10;
}

.fullscreen-btn-modern:hover {
    background: var(--accent-primary);
    transform: scale(1.05);
}

.fullscreen-btn-modern i {
    font-size: 16px;
}

.video-info-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    background: rgba(0, 0, 0, 0.4);
    border-top: 1px solid var(--border-color);
}

.cam-badge, .rec-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 500;
}

.cam-badge i {
    color: var(--accent-primary);
}

.rec-badge i {
    color: var(--accent-live);
    font-size: 10px;
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

/* Description Card */
.description-card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 28px;
}

.description-card h1 {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
}

.description-card h1 i {
    color: var(--accent-primary);
    font-size: 28px;
}

.description-card p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 24px;
}

.sponsor-card {
    display: flex;
    gap: 16px;
    padding: 20px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.05));
    border-left: 4px solid var(--accent-primary);
    border-radius: var(--radius-lg);
    margin-bottom: 24px;
}

.sponsor-card i {
    font-size: 28px;
    color: var(--accent-primary);
}

.sponsor-card p {
    margin-bottom: 8px;
    font-size: 14px;
}

.sponsor-card a {
    color: var(--accent-primary);
    text-decoration: none;
    font-weight: 700;
}

.sponsor-card a:hover {
    text-decoration: underline;
}

.sponsor-desc {
    font-size: 13px !important;
    color: var(--text-muted) !important;
    margin-top: 8px;
    margin-bottom: 0 !important;
}

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

.partner-img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    transition: var(--transition-normal);
}

.partner-img:hover {
    transform: scale(1.02);
    opacity: 0.9;
}

/* ===== FOOTER ===== */
.modern-footer {
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(20px);
    border-top: 1px solid var(--border-color);
    margin-top: 40px;
    padding: 30px 24px;
    position: relative;
    z-index: 2;
}

.footer-container {
    max-width: 1800px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-copyright p {
    color: var(--text-muted);
    font-size: 13px;
}

.footer-copyright a {
    color: var(--accent-primary);
    text-decoration: none;
}

.footer-copyright a:hover {
    text-decoration: underline;
}

.footer-metrics {
    display: flex;
    gap: 12px;
    align-items: center;
}

/* ===== THEMES ===== */
body.theme-ocean {
    --bg-primary: #0c1b2f;
    --accent-primary: #06b6d4;
    --accent-secondary: #0e7c9e;
}

body.theme-sunset {
    --bg-primary: #1a0f1a;
    --accent-primary: #f43f5e;
    --accent-secondary: #d946ef;
}

body.theme-forest {
    --bg-primary: #0f1f0f;
    --accent-primary: #10b981;
    --accent-secondary: #34d399;
}

body.theme-midnight {
    --bg-primary: #0f071f;
    --accent-primary: #8b5cf6;
    --accent-secondary: #a78bfa;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1300px) {
    .main-modern {
        grid-template-columns: 280px 1fr 280px;
        gap: 20px;
    }
}

@media (max-width: 1100px) {
    .main-modern {
        grid-template-columns: 1fr;
    }

    .sidebar-modern {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 20px;
    }

    .sidebar-modern.left,
    .sidebar-modern.right {
        display: contents;
    }
}

@media (max-width: 768px) {
    body {
        padding-top: 120px;
    }

    body.scrolled {
        padding-top: 75px;
    }

    .modern-header {
        top: 40px;
        padding: 12px 16px;
    }

    .modern-header.scrolled {
        top: 0;
    }

    .header-container {
        flex-wrap: wrap;
        justify-content: center;
    }

    .logo-text {
        font-size: 20px;
    }

    .time-modern {
        font-size: 20px;
    }

    .main-modern {
        padding: 20px 16px 30px;
    }

    .card-header {
        padding: 14px 16px;
    }

    .card-body {
        padding: 16px;
    }

    .description-card {
        padding: 20px;
    }

    .description-card h1 {
        font-size: 20px;
        flex-wrap: wrap;
    }

    .sponsor-card {
        flex-direction: column;
    }

    .footer-container {
        flex-direction: column;
        text-align: center;
    }

    .footer-metrics {
        justify-content: center;
    }

    .fullscreen-btn-modern span {
        display: none;
    }

    .fullscreen-btn-modern {
        padding: 12px;
    }

    .fullscreen-btn-modern i {
        font-size: 20px;
    }

    .stat-chip span:last-child {
        display: none;
    }

    /* Auth responsive */
    .auth-modal {
        max-width: 100%;
        margin: 10px;
    }

    .auth-header {
        padding: 30px 24px 20px;
    }

    .auth-header h2 {
        font-size: 22px;
    }

    .auth-body {
        padding: 0 24px 24px;
    }

    .auth-footer {
        padding: 16px 24px;
    }
}

@media (max-width: 480px) {
    body {
        padding-top: 110px;
    }

    body.scrolled {
        padding-top: 70px;
    }

    .main-modern {
        padding: 70px 12px 20px;
    }

    .info-item {
        padding: 10px 12px;
    }

    .info-label, .info-value {
        font-size: 12px;
    }

    .stat-number {
        font-size: 24px;
    }

    .user-flag-modern {
        padding: 12px;
    }

    .auth-logo {
        width: 60px;
        height: 60px;
        font-size: 26px;
    }

    .input-group input {
        padding: 14px 44px 14px 44px;
        font-size: 16px;
    }
}

/* ===== VIDEO LOADER ===== */
.video-loader {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0f172a, #1e293b);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 5;
    transition: opacity 0.5s ease;
}

.video-loader.hidden {
    opacity: 0;
    pointer-events: none;
}

.loader-spinner {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(139, 92, 246, 0.1));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    box-shadow: 0 0 30px rgba(99, 102, 241, 0.3);
}

.loader-spinner i {
    font-size: 40px;
    color: var(--accent-primary);
}

.video-loader p {
    color: var(--text-secondary);
    font-size: 16px;
    font-weight: 500;
    animation: pulse-text 1.5s infinite;
}

@keyframes pulse-text {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* ===== SECURITY NOTICE ===== */
.security-notice {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: rgba(16, 185, 129, 0.9);
    color: white;
    padding: 12px 20px;
    border-radius: 40px;
    font-size: 13px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.4);
    z-index: 100;
    animation: slideInRight 0.5s ease;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.security-notice i {
    font-size: 16px;
}

/* ===== VIDEO PLACEHOLDER (для неавторизованных) ===== */
.video-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1e293b, #0f172a);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    color: var(--text-secondary);
    text-align: center;
    padding: 40px;
}

.video-placeholder i {
    font-size: 64px;
    color: var(--accent-primary);
    opacity: 0.5;
}

.video-placeholder p {
    font-size: 16px;
    max-width: 300px;
}

/* Дополнительная защита: скрываем iframe от инспектирования */
#cameraStream {
    user-select: none;
    -webkit-user-select: none;
    pointer-events: auto;
}