/* ============================================
   POLSTREAM TV — Polish Avant-Garde + VHS
   ============================================ */

/* CSS Variables */
:root {
    /* Colors - Polish flag inspired */
    --red: #E63946;
    --red-dark: #C1121F;
    --red-glow: rgba(230, 57, 70, 0.3);

    /* Light Theme (default) */
    --bg-primary: #F1FAEE;
    --bg-secondary: #FFFFFF;
    --bg-card: #F1FAEE;
    --text-primary: #1D3557;
    --text-secondary: #457B9D;
    --border-color: #1D3557;

    /* Legacy aliases */
    --cream: var(--bg-primary);
    --cream-dark: #E8E4D9;
    --navy: var(--text-primary);
    --navy-light: var(--text-secondary);
    --black: #0D1117;
    --white: #FFFFFF;

    /* Typography */
    --font-display: 'Unbounded', sans-serif;
    --font-body: 'Crimson Pro', Georgia, serif;

    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
    --space-2xl: 5rem;
    --space-3xl: 8rem;

    /* Misc */
    --radius: 0;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Dark Theme - Cinematic Night Mode */
[data-theme="dark"] {
    /* Core dark palette */
    --bg-primary: #0A0A0F;
    --bg-secondary: #12121A;
    --bg-card: #1A1A24;
    --bg-elevated: #22222E;
    --text-primary: #EAEAF0;
    --text-secondary: #9090A0;
    --border-color: #2A2A3A;
    --border-hover: #3A3A4A;

    /* Override light theme variables */
    --cream: var(--bg-primary);
    --cream-dark: var(--bg-secondary);
    --navy: var(--text-primary);
    --navy-light: var(--text-secondary);
    --white: var(--bg-secondary);

    /* Red stays vibrant but slightly adjusted for dark */
    --red: #FF4757;
    --red-glow: rgba(255, 71, 87, 0.4);
}

/* Reset */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scrollbar-width: none; /* Firefox */
    overflow-x: clip;
}

/* Hide system scrollbar */
html::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Edge */
}

body {
    -ms-overflow-style: none; /* IE/Edge */
}

/* ============================================
   SCROLL PROGRESS BAR
   ============================================ */

.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, var(--red) 0%, #FF6B7A 50%, var(--red) 100%);
    z-index: 10001;
    transition: width 0.1s ease-out;
    box-shadow: 0 0 10px var(--red-glow), 0 0 20px var(--red-glow);
    overflow: hidden;
}

[data-theme="dark"] .scroll-progress {
    background: linear-gradient(90deg, var(--red) 0%, #FF8A95 50%, var(--red) 100%);
    box-shadow: 0 0 15px var(--red-glow), 0 0 30px var(--red-glow);
}

body {
    font-family: var(--font-body);
    font-size: 18px;
    line-height: 1.6;
    color: var(--navy);
    background: var(--cream);
    overflow-x: clip;
    cursor: none;
}

/* Disable drag on interactive elements */
a, button, img, svg, .btn, [class*="btn"], [role="button"] {
    -webkit-user-drag: none;
    user-drag: none;
}

/* Custom Cursor */
.cursor {
    width: 12px;
    height: 12px;
    background: var(--red);
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 999999;
    mix-blend-mode: difference;
    will-change: transform;
    transition: opacity 0.15s, width 0.15s, height 0.15s, border-radius 0.15s;
}

/* Text cursor mode */
.cursor.text-mode {
    width: 2px;
    height: 22px;
    border-radius: 1px;
    mix-blend-mode: normal;
}

.cursor-follower {
    width: 40px;
    height: 40px;
    border: 2px solid var(--red);
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 999998;
    will-change: transform;
    transition: width 0.3s, height 0.3s, opacity 0.15s, border-color 0.3s, border-width 0.3s;
}

/* Custom caret color for inputs */
input, textarea, [contenteditable] {
    caret-color: var(--red);
}

body:hover .cursor-follower {
    opacity: 1;
}

/* VHS Overlay */
.vhs-overlay {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9997;
    background: repeating-linear-gradient(
        0deg,
        transparent 0px,
        transparent 2px,
        rgba(0, 0, 0, 0.03) 2px,
        rgba(0, 0, 0, 0.03) 4px
    );
}

.vhs-overlay::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, transparent 50%, rgba(0, 0, 0, 0.1) 100%);
}

/* Selection */
::selection {
    background: var(--red);
    color: var(--white);
}

/* Links & Buttons Base */
a, a:hover, a:active, a:focus,
button, button:hover, button:active, button:focus,
input, select, textarea,
[role="button"], .btn, [class*="btn"] {
    cursor: none !important;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    border: none;
    background: none;
    font-family: inherit;
}

* {
    cursor: none !important;
}

/* Disable custom cursor */
body.no-custom-cursor,
body.no-custom-cursor * {
    cursor: auto !important;
}

body.no-custom-cursor .cursor,
body.no-custom-cursor .cursor-follower {
    display: none !important;
}

/* Reduce motion */
body.reduce-motion *,
body.reduce-motion *::before,
body.reduce-motion *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
}

/* ============================================
   NAVIGATION
   ============================================ */

.nav-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: var(--space-md) var(--space-xl);
    transition: background var(--transition);
}

.nav-wrapper.scrolled {
    background: rgba(241, 250, 238, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(29, 53, 87, 0.1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
}

.nav-wrapper.scrolled.scrolled-deep {
    background: rgba(241, 250, 238, 0.85);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
}

[data-theme="dark"] .nav-wrapper.scrolled {
    background: rgba(10, 10, 15, 0.7);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .nav-wrapper.scrolled.scrolled-deep {
    background: rgba(10, 10, 15, 0.9);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.main-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1400px;
    margin: 0 auto;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.25rem;
    letter-spacing: -0.02em;
    text-transform: uppercase;
}

.logo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: var(--red);
    color: var(--white);
    font-size: 0.8rem;
    transition: transform var(--transition);
    font-variant-emoji: text;
    text-rendering: geometricPrecision;
}

.logo:hover .logo-icon {
    transform: scale(1.1) rotate(-5deg);
}

/* Nav Links */
.nav-center {
    display: flex;
    gap: var(--space-lg);
}

.nav-link {
    font-family: var(--font-display);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    position: relative;
    padding: var(--space-xs) 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--red);
    transition: width var(--transition);
}

.nav-link:hover::after {
    width: 100%;
}

/* Hide Program TV from nav - accessible via right-click on Kanaly */
.nav-link[href$="pages/program.html"] {
    display: none;
}

/* Nav Right */
.nav-right {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

/* Theme Toggle */
.theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background: transparent;
    border: 2px solid var(--navy);
    cursor: none;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

.theme-toggle:hover {
    background: var(--red);
    border-color: var(--red);
}

.theme-toggle:hover .theme-icon {
    stroke: #fff;
}

.theme-icon {
    width: 20px;
    height: 20px;
    stroke: var(--navy);
    stroke-width: 2;
    fill: none;
    position: absolute;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.theme-icon-sun {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

.theme-icon-moon {
    opacity: 0;
    transform: rotate(90deg) scale(0.5);
}

[data-theme="dark"] .theme-toggle {
    border-color: #ffffff;
}

[data-theme="dark"] .theme-icon {
    stroke: #ffffff;
}

[data-theme="dark"] .theme-toggle:hover .theme-icon {
    stroke: #fff;
}

[data-theme="dark"] .theme-icon-sun {
    opacity: 0;
    transform: rotate(-90deg) scale(0.5);
}

[data-theme="dark"] .theme-icon-moon {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

.nav-phone {
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--navy-light);
}

.btn-trial {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-sm) var(--space-md);
    background: var(--red);
    color: var(--white);
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all var(--transition);
}

.btn-trial svg {
    width: 16px;
    height: 16px;
    transition: transform var(--transition);
}

.btn-trial:hover {
    background: var(--navy);
    transform: skewX(-5deg);
}

.btn-trial:hover svg {
    transform: translateX(4px);
}

/* Mobile Toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    padding: var(--space-xs);
}

.nav-toggle span {
    display: block;
    width: 28px;
    height: 2px;
    background: var(--navy);
    transition: var(--transition);
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    padding: var(--space-3xl) var(--space-xl);
    overflow: hidden;
}

/* Hero Background */
.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    background: linear-gradient(135deg, var(--bg-primary) 0%, color-mix(in srgb, var(--navy) 20%, var(--bg-primary)) 50%, var(--bg-primary) 100%);
}

/* Geometric decorations (default when video is off) */
.diagonal-stripe {
    position: absolute;
    background: var(--red);
    transform: skewY(-12deg);
}

.stripe-1 {
    width: 120px;
    height: 200%;
    right: 30%;
    top: -50%;
    opacity: 0.08;
}

.stripe-2 {
    width: 60px;
    height: 200%;
    right: 25%;
    top: -50%;
    opacity: 0.05;
}

.stripe-3 {
    width: 300px;
    height: 200%;
    right: -100px;
    top: -50%;
    opacity: 0.06;
}

.circle-decoration {
    position: absolute;
    width: 500px;
    height: 500px;
    border: 40px solid var(--navy);
    border-radius: 50%;
    right: -150px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.04;
}

/* Video background (when enabled via hero-manager) */
.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
}

.hero-fallback {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
}

/* Hero Content */
.hero-content {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

.hero-left {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Hero Tag */
.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    font-family: var(--font-display);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--red);
    margin-bottom: var(--space-lg);
    animation: fadeSlideIn 0.8s ease forwards;
}

.tag-dot {
    width: 8px;
    height: 8px;
    background: var(--red);
    border-radius: 50%;
    animation: pulse 2s ease infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.3); opacity: 0.7; }
}

/* Hero Title */
.hero-title {
    font-family: var(--font-display);
    font-size: clamp(3rem, 7vw, 5.5rem);
    font-weight: 900;
    line-height: 0.95;
    letter-spacing: -0.03em;
    margin-bottom: var(--space-lg);
}

.title-line {
    display: block;
    overflow: hidden;
}

.title-line:nth-child(1) { animation: slideUp 0.8s ease forwards 0.1s; opacity: 0; }
.title-line:nth-child(2) { animation: slideUp 0.8s ease forwards 0.2s; opacity: 0; }
.title-line:nth-child(3) { animation: slideUp 0.8s ease forwards 0.3s; opacity: 0; }
.title-line:nth-child(4) { animation: slideUp 0.8s ease forwards 0.4s; opacity: 0; }

.title-line.accent {
    color: var(--red);
}

.title-dot {
    color: var(--navy);
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(100%);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeSlideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Hero Description */
.hero-desc {
    font-size: 1.15rem;
    color: var(--navy-light);
    max-width: 450px;
    margin-bottom: var(--space-xl);
    animation: fadeSlideIn 0.8s ease forwards 0.5s;
    opacity: 0;
}

.hero-desc strong {
    color: var(--red);
    font-weight: 600;
}

/* Hero Actions */
.hero-actions {
    display: flex;
    gap: var(--space-md);
    margin-bottom: var(--space-2xl);
    animation: fadeSlideIn 0.8s ease forwards 0.6s;
    opacity: 0;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-lg);
    background: var(--navy);
    color: var(--white);
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    position: relative;
    overflow: hidden;
    transition: all var(--transition);
}

.btn-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--red);
    transform: translateX(-100%);
    transition: transform var(--transition);
}

.btn-primary:hover::before {
    transform: translateX(0);
}

.btn-primary .btn-text,
.btn-primary .btn-arrow {
    position: relative;
    z-index: 1;
}

.btn-primary .btn-arrow {
    transition: transform var(--transition);
}

.btn-primary:hover .btn-arrow {
    transform: translateX(4px);
}

.btn-secondary {
    padding: var(--space-md) var(--space-lg);
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--navy);
    border: 2px solid var(--navy);
    transition: all var(--transition);
}

.btn-secondary:hover {
    background: var(--navy);
    color: var(--white);
}

/* Hero Stats */
.hero-stats {
    display: flex;
    gap: var(--space-xl);
    animation: fadeSlideIn 0.8s ease forwards 0.7s;
    opacity: 0;
}

.stat {
    text-align: left;
}

.stat-num {
    display: block;
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 800;
    color: var(--navy);
    line-height: 1;
}

.stat-num.stat-split {
    display: flex;
    align-items: baseline;
}

.stat-part {
    font-family: inherit;
    font-size: inherit;
    font-weight: inherit;
    color: inherit;
}

.stat-slash {
    margin: 0 2px;
    opacity: 0.6;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--navy-light);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Hero Right - TV */
.hero-right {
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes fadeIn {
    to { opacity: 1; }
}

/* ============================================
   RETRO TV — POLSTREAM TV-714 HORIZONTAL
   Классический горизонтальный телевизор 70-80х
   ============================================ */

.retro-tv.horizontal {
    position: relative;
    width: 520px;
    max-width: 100%;
    margin: 0 auto;
    filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.4));
    transition: filter 0.4s ease;
}

.retro-tv.horizontal:hover {
    filter: drop-shadow(0 35px 70px rgba(0, 0, 0, 0.45));
}

/* === АНТЕННА === */
.retro-tv.horizontal .tv-antenna {
    position: absolute;
    top: -55px;
    left: 50%;
    transform: translateX(-50%);
    z-index: -1;
}

.retro-tv.horizontal .antenna-rod {
    position: absolute;
    width: 3px;
    height: 60px;
    background: linear-gradient(90deg, #777 0%, #aaa 50%, #777 100%);
    border-radius: 2px;
    transform-origin: bottom center;
}

.retro-tv.horizontal .antenna-rod.left {
    left: -20px;
    transform: rotate(-20deg);
}

.retro-tv.horizontal .antenna-rod.right {
    right: -20px;
    transform: rotate(20deg);
}

.retro-tv.horizontal .antenna-rod::before {
    content: '';
    position: absolute;
    top: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    background: radial-gradient(circle, #ccc 0%, #888 100%);
    border-radius: 50%;
}

.retro-tv.horizontal .antenna-base {
    width: 30px;
    height: 12px;
    background: linear-gradient(180deg, #4a4540 0%, #2a2520 100%);
    border-radius: 3px 3px 6px 6px;
    margin: 0 auto;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

/* === КОРПУС === */
.retro-tv.horizontal .tv-body {
    background: linear-gradient(180deg,
        #2a4a6d 0%,
        #1d3557 30%,
        #162a45 70%,
        #0f1f33 100%
    );
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    border: 4px solid #3a5a7d;
    box-shadow:
        inset 0 2px 0 rgba(255,255,255,0.1),
        inset 0 -2px 0 rgba(0,0,0,0.2);
}

/* Текстура (subtle) */
.retro-tv.horizontal .tv-body::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        repeating-linear-gradient(
            90deg,
            transparent 0px,
            rgba(69, 123, 157, 0.03) 1px,
            transparent 2px,
            transparent 6px
        );
    pointer-events: none;
    border-radius: 16px;
}

/* === СЕКЦИЯ ЭКРАНА === */
.retro-tv.horizontal .tv-screen-section {
    padding: 20px 20px 15px;
    background: linear-gradient(180deg, #152535 0%, #0d1a28 100%);
    border-radius: 16px 16px 0 0;
}

.retro-tv.horizontal .tv-screen {
    aspect-ratio: 16/10;
    background: #080808;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    box-shadow:
        inset 0 0 60px rgba(0, 0, 0, 0.8),
        inset 0 0 120px rgba(0, 0, 0, 0.4),
        0 0 30px rgba(50, 200, 80, 0.1);
    border: 6px solid #0a0908;
}

/* === НИЖНЯЯ ПАНЕЛЬ УПРАВЛЕНИЯ === */
.retro-tv.horizontal .tv-control-panel {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    background: linear-gradient(180deg, #1d3557 0%, #152a45 100%);
    border-top: 2px solid #2a4a6d;
    gap: 15px;
}

/* Секция динамика */
.retro-tv.horizontal .speaker-section {
    flex: 0 0 80px;
}

.retro-tv.horizontal .speaker-grille {
    background: #0a0908;
    border-radius: 6px;
    padding: 8px 10px;
    border: 1px solid #1a1715;
}

.retro-tv.horizontal .grille-lines {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 3px;
}

.retro-tv.horizontal .grille-lines span {
    height: 20px;
    background: linear-gradient(180deg, #1a1715 0%, #0a0908 50%, #1a1715 100%);
    border-radius: 1px;
}

/* Секция бренда */
.retro-tv.horizontal .brand-section {
    flex: 1;
    text-align: center;
}

/* Секция кнопок каналов */
.retro-tv.horizontal .channel-buttons-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.retro-tv.horizontal .channel-buttons {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 4px;
}

.retro-tv.horizontal .channel-btn-preset {
    position: relative;
    width: 28px;
    height: 28px;
    background: linear-gradient(180deg, #2a2a2a 0%, #1a1a1a 100%);
    border: 2px solid #3a3a3a;
    border-radius: 4px;
    color: #666;
    font-family: var(--font-display);
    font-size: 0.7rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.retro-tv.horizontal .channel-btn-preset .btn-tooltip {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    padding: 6px 10px;
    background: rgba(0, 0, 0, 0.9);
    border: 1px solid #333;
    border-radius: 4px;
    color: #fff;
    font-size: 0.6rem;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    margin-bottom: 8px;
    pointer-events: none;
    z-index: 100;
}

.retro-tv.horizontal .channel-btn-preset .btn-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: rgba(0, 0, 0, 0.9);
}

.retro-tv.horizontal .channel-btn-preset:hover .btn-tooltip {
    opacity: 1;
    visibility: visible;
}

.retro-tv.horizontal .channel-btn-preset:hover {
    background: linear-gradient(180deg, #3a3a3a 0%, #2a2a2a 100%);
    border-color: #4a4a4a;
    color: #999;
}

.retro-tv.horizontal .channel-btn-preset.active {
    background: linear-gradient(180deg, var(--red) 0%, #a02a30 100%);
    border-color: var(--red);
    color: #fff;
    box-shadow: 0 0 8px rgba(230, 57, 70, 0.4);
}

.retro-tv.horizontal .model-badge {
    font-family: var(--font-display);
    font-size: 0.4rem;
    font-weight: 600;
    color: #5a5a5a;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

/* Секция управления */
.retro-tv.horizontal .controls-section {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Группа питания */
.retro-tv.horizontal .power-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.retro-tv.horizontal .power-btn {
    width: 32px;
    height: 32px;
    background: linear-gradient(180deg, #3a3530 0%, #1a1510 100%);
    border: 2px solid #4a4540;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    box-shadow: 0 3px 6px rgba(0,0,0,0.3);
}

.retro-tv.horizontal .power-btn:hover {
    border-color: #5a5550;
    transform: scale(1.05);
}

.retro-tv.horizontal .power-btn:active {
    transform: scale(0.95);
}

.retro-tv.horizontal .power-symbol {
    font-size: 0.9rem;
    color: #777;
}

.retro-tv.horizontal .power-led {
    width: 6px;
    height: 6px;
    background: #333;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.retro-tv.horizontal .power-led.on {
    background: #00ff88;
    box-shadow: 0 0 8px #00ff88, 0 0 16px rgba(0, 255, 136, 0.5);
}

/* Группа каналов */
.retro-tv.horizontal .channel-group {
    display: flex;
    align-items: center;
    gap: 4px;
}

.retro-tv.horizontal .ch-btn {
    width: 24px;
    height: 28px;
    background: linear-gradient(180deg, #3a3530 0%, #252220 100%);
    border: 1px solid #4a4540;
    border-radius: 4px;
    color: #888;
    font-size: 0.6rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
}

.retro-tv.horizontal .ch-btn:hover {
    background: linear-gradient(180deg, #4a4540 0%, #3a3530 100%);
    color: #fff;
}

.retro-tv.horizontal .ch-btn:active {
    transform: scale(0.95);
}

.retro-tv.horizontal .channel-display {
    position: static;
    width: 36px;
    height: 28px;
    background: #050505;
    border: 2px solid #2a2520;
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Courier New', monospace;
    font-size: 1rem;
    font-weight: bold;
    color: #ff6b35;
    text-shadow: 0 0 8px rgba(255, 107, 53, 0.6);
    box-shadow: inset 0 2px 6px rgba(0,0,0,0.5);
    opacity: 1;
    animation: none;
}

/* Группа ручек */
.retro-tv.horizontal .knobs-group {
    display: flex;
    gap: 8px;
}

.retro-tv.horizontal .knob {
    width: 32px;
    height: 32px;
    background: radial-gradient(circle at 30% 30%, #555 0%, #222 100%);
    border-radius: 50%;
    border: 2px solid #444;
    cursor: pointer;
    position: relative;
    box-shadow:
        0 3px 6px rgba(0,0,0,0.4),
        inset 0 1px 2px rgba(255,255,255,0.1);
    transition: transform 0.1s ease;
}

.retro-tv.horizontal .knob:hover {
    border-color: #555;
}

.retro-tv.horizontal .knob:active {
    transform: scale(0.95);
}

.retro-tv.horizontal .knob-marker {
    position: absolute;
    top: 4px;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 8px;
    background: #d4a94a;
    border-radius: 1px;
}

/* Sound on indicator */
.retro-tv.horizontal .knob.sound-on {
    box-shadow: 0 0 12px rgba(0, 255, 136, 0.6), 0 0 24px rgba(0, 255, 136, 0.3);
    border-color: #00ff88;
}

.retro-tv.horizontal .knob.sound-on .knob-marker {
    background: #00ff88;
    box-shadow: 0 0 6px #00ff88;
}

/* Auto-change on indicator */
.retro-tv.horizontal .knob.auto-on {
    box-shadow: 0 0 12px rgba(255, 165, 0, 0.6), 0 0 24px rgba(255, 165, 0, 0.3);
    border-color: #ffa500;
}

.retro-tv.horizontal .knob.auto-on .knob-marker {
    background: #ffa500;
    box-shadow: 0 0 6px #ffa500;
}

/* === НОЖКИ === */
.retro-tv.horizontal .tv-legs {
    display: flex;
    justify-content: space-between;
    padding: 0 60px;
}

.retro-tv.horizontal .leg {
    width: 40px;
    height: 15px;
    background: linear-gradient(180deg, #2a2520 0%, #15120f 100%);
    border-radius: 0 0 8px 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

/* === КОНТЕНТ ЭКРАНА === */
.retro-tv.horizontal .screen-content {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #1a2a1a 0%, #0d1a0d 100%);
    animation: screenFlicker 10s ease-in-out infinite;
    transform-origin: center center;
}

@keyframes screenFlicker {
    0%, 94%, 100% { filter: brightness(1); }
    95% { filter: brightness(1.02); }
    96% { filter: brightness(0.98); }
    97% { filter: brightness(1.01); }
}

/* Медиа-контейнер для изображений/видео */
.retro-tv.horizontal .screen-media {
    position: absolute;
    inset: 0;
    z-index: 1;
    overflow: hidden;
}

.retro-tv.horizontal .screen-media img,
.retro-tv.horizontal .screen-media video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.85;
}

.retro-tv.horizontal .screen-media .tv-youtube-frame {
    width: 100%;
    height: 100%;
    border: none;
    opacity: 0.85;
    pointer-events: none;
}

/* Индикатор канала */
.retro-tv.horizontal .ch-indicator {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(0, 0, 0, 0.7);
    padding: 6px 10px;
    border-radius: 4px;
    display: flex;
    align-items: baseline;
    gap: 4px;
    backdrop-filter: blur(4px);
}

.retro-tv.horizontal .ch-label {
    font-family: var(--font-display);
    font-size: 0.45rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 0.1em;
}

.retro-tv.horizontal .ch-number {
    font-family: 'Courier New', monospace;
    font-size: 1.3rem;
    font-weight: bold;
    color: #00ff88;
    text-shadow:
        0 0 10px rgba(0, 255, 136, 0.6),
        0 0 20px rgba(0, 255, 136, 0.3);
    line-height: 1;
}

/* Информация о канале */
.retro-tv.horizontal .channel-info {
    position: absolute;
    bottom: 12px;
    left: 12px;
    right: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0, 0, 0, 0.65);
    padding: 10px 16px;
    border-radius: 4px;
    backdrop-filter: blur(4px);
}

/* CTA кнопка на horizontal TV */
.retro-tv.horizontal .screen-cta {
    position: absolute;
    bottom: 30px;
    right: 14px;
    z-index: 10;
}

/* Бегущая строка на horizontal TV */
.retro-tv.horizontal .screen-ticker {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 24px;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
}

.retro-tv.horizontal .ticker-content {
    padding-left: 130px;
    font-size: 0.65rem;
    line-height: 24px;
}

.retro-tv.horizontal .channel-name {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.05em;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.retro-tv.horizontal .live-badge {
    font-family: var(--font-display);
    font-size: 0.6rem;
    font-weight: 700;
    color: #ff4444;
    letter-spacing: 0.1em;
    animation: livePulse 1.5s ease-in-out infinite;
}

@keyframes livePulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

/* Время на экране */
.retro-tv.horizontal .screen-time {
    position: absolute;
    top: 12px;
    left: 12px;
    font-family: 'Courier New', monospace;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.2);
}

/* Индикатор сигнала */
.retro-tv.horizontal .signal-indicator {
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: flex-end;
    gap: 2px;
    padding: 4px 8px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 3px;
}

.retro-tv.horizontal .signal-indicator .signal-bar {
    width: 4px;
    background: #00ff88;
    border-radius: 1px;
    transition: height 0.3s ease;
}

.retro-tv.horizontal .signal-indicator .signal-bar:nth-child(1) { height: 4px; }
.retro-tv.horizontal .signal-indicator .signal-bar:nth-child(2) { height: 7px; }
.retro-tv.horizontal .signal-indicator .signal-bar:nth-child(3) { height: 10px; }
.retro-tv.horizontal .signal-indicator .signal-bar:nth-child(4) { height: 13px; }
.retro-tv.horizontal .signal-indicator .signal-bar:nth-child(5) { height: 16px; }

.retro-tv.horizontal .signal-indicator.weak .signal-bar:nth-child(4),
.retro-tv.horizontal .signal-indicator.weak .signal-bar:nth-child(5) {
    background: #444;
}

.retro-tv.horizontal .signal-indicator.bad .signal-bar:nth-child(3),
.retro-tv.horizontal .signal-indicator.bad .signal-bar:nth-child(4),
.retro-tv.horizontal .signal-indicator.bad .signal-bar:nth-child(5) {
    background: #444;
}

/* === CRT ЭФФЕКТЫ === */
.retro-tv.horizontal .crt-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    border-radius: 6px;
    overflow: hidden;
}

/* Scanlines */
.retro-tv.horizontal .scanlines {
    position: absolute;
    inset: 0;
    background:
        repeating-linear-gradient(
            0deg,
            transparent 0px,
            transparent 2px,
            rgba(0, 0, 0, 0.12) 2px,
            rgba(0, 0, 0, 0.12) 4px
        );
    z-index: 10;
}

.retro-tv.horizontal .scanlines::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        transparent 0%,
        rgba(255, 255, 255, 0.015) 50%,
        transparent 100%
    );
    background-size: 100% 100px;
    animation: scanMove 8s linear infinite;
}

@keyframes scanMove {
    0% { background-position: 0 0; }
    100% { background-position: 0 100px; }
}

/* Шум */
.retro-tv.horizontal .noise {
    position: absolute;
    inset: 0;
    opacity: 0.04;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    animation: noiseShift 0.1s steps(5) infinite;
    z-index: 11;
}

@keyframes noiseShift {
    0% { transform: translate(0, 0); }
    25% { transform: translate(-2px, 2px); }
    50% { transform: translate(2px, -2px); }
    75% { transform: translate(-2px, -2px); }
    100% { transform: translate(2px, 2px); }
}

/* Выпуклость экрана */
.retro-tv.horizontal .screen-curve {
    position: absolute;
    inset: 0;
    background: radial-gradient(
        ellipse at center,
        transparent 0%,
        transparent 50%,
        rgba(0, 0, 0, 0.35) 100%
    );
    z-index: 12;
}

/* Блик */
.retro-tv.horizontal .screen-glare {
    position: absolute;
    top: 5%;
    left: 5%;
    width: 30%;
    height: 20%;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.1) 0%,
        rgba(255, 255, 255, 0.02) 50%,
        transparent 100%
    );
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    z-index: 13;
}

/* === FLOATING BROADCAST BADGES === */
.retro-tv.horizontal .floating-channels {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 100%;
    width: 100px;
    pointer-events: none;
    z-index: 1;
}

.retro-tv.horizontal .float-channel {
    position: absolute;
    background: var(--cream);
    color: var(--navy);
    padding: 6px 12px;
    font-family: var(--font-display);
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    border-radius: 4px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    pointer-events: auto;
    transition: all 0.3s ease;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 5px;
}

.retro-tv.horizontal .float-channel:hover {
    transform: scale(1.08) translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.retro-tv.horizontal .fc-rec {
    border-left: 3px solid #e74c3c;
}

.retro-tv.horizontal .fc-onair {
    border-left: 3px solid #f39c12;
}

.retro-tv.horizontal .fc-live {
    border-left: 3px solid #2ecc71;
}

.retro-tv.horizontal .fc-1 {
    top: 10%;
    left: 15px;
    animation: floatChannel 5s ease-in-out infinite;
}

.retro-tv.horizontal .fc-2 {
    top: 40%;
    left: 25px;
    animation: floatChannel 5s ease-in-out infinite 1.5s;
}

.retro-tv.horizontal .fc-3 {
    bottom: 30%;
    left: 10px;
    animation: floatChannel 5s ease-in-out infinite 3s;
}

@keyframes floatChannel {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* === TV STATES === */
.retro-tv.horizontal.tv-off .screen-content,
.retro-tv.horizontal.tv-off .crt-overlay,
.retro-tv.horizontal.tv-off .ch-indicator,
.retro-tv.horizontal.tv-off .channel-info,
.retro-tv.horizontal.tv-off .screen-time,
.retro-tv.horizontal.tv-off .signal-indicator {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.retro-tv.horizontal.tv-off .tv-screen {
    background: #030303;
}

.retro-tv.horizontal.channel-switching .noise {
    opacity: 0.12;
}

.retro-tv.horizontal.channel-switching .screen-content {
    animation: channelSwitch 0.2s ease;
}

@keyframes channelSwitch {
    0% { transform: scale(1); filter: brightness(1); }
    30% { transform: scale(1.01, 0.99); filter: brightness(1.4); }
    60% { transform: scale(0.99, 1.01); filter: brightness(0.8); }
    100% { transform: scale(1); filter: brightness(1); }
}

/* === GLOW EFFECT === */
.retro-tv.horizontal::before {
    content: '';
    position: absolute;
    top: 10%;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    height: 50%;
    background: radial-gradient(
        ellipse at center,
        rgba(0, 255, 136, 0.05) 0%,
        rgba(0, 255, 136, 0.02) 40%,
        transparent 70%
    );
    z-index: -1;
    animation: tvGlow 4s ease-in-out infinite;
}

@keyframes tvGlow {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

/* === OLD VERTICAL TV STYLES (kept for reference) === */
.retro-tv:not(.horizontal) {
    display: none; /* Hide old vertical version */
}

.tv-screen {
    aspect-ratio: 4/3;
    background: #0a0a08;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    box-shadow:
        inset 0 0 50px rgba(0, 0, 0, 0.8),
        inset 0 0 100px rgba(0, 0, 0, 0.4),
        0 0 30px rgba(50, 200, 80, 0.08);
}

/* Рамка экрана (безель) */
.screen-bezel {
    position: absolute;
    inset: -8px;
    border: 8px solid;
    border-color: #1a1815 #252220 #2a2725 #1a1815;
    border-radius: 16px;
    pointer-events: none;
}

.bezel-corner {
    position: absolute;
    width: 12px;
    height: 12px;
    background: radial-gradient(circle at center, #3a3530 0%, #252220 100%);
    border-radius: 50%;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.5);
}

.bezel-corner.tl { top: 4px; left: 4px; }
.bezel-corner.tr { top: 4px; right: 4px; }
.bezel-corner.bl { bottom: 4px; left: 4px; }
.bezel-corner.br { bottom: 4px; right: 4px; }

/* Контент экрана */
.screen-content {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #1a2a1a 0%, #0d1a0d 100%);
    animation: screenFlicker 10s ease-in-out infinite;
}

@keyframes screenFlicker {
    0%, 94%, 100% { filter: brightness(1); }
    95% { filter: brightness(1.02); }
    96% { filter: brightness(0.98); }
    97% { filter: brightness(1.01); }
}

/* Индикатор канала */
.ch-indicator {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(0, 0, 0, 0.75);
    padding: 6px 10px;
    border-radius: 4px;
    display: flex;
    align-items: baseline;
    gap: 4px;
    backdrop-filter: blur(4px);
}

.ch-label {
    font-family: var(--font-display);
    font-size: 0.5rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 0.1em;
}

.ch-number {
    font-family: 'Courier New', monospace;
    font-size: 1.4rem;
    font-weight: bold;
    color: #00ff88;
    text-shadow:
        0 0 10px rgba(0, 255, 136, 0.6),
        0 0 20px rgba(0, 255, 136, 0.3);
    line-height: 1;
}

/* Информация о канале */
.channel-info {
    position: absolute;
    bottom: 12px;
    left: 12px;
    right: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0, 0, 0, 0.7);
    padding: 8px 14px;
    border-radius: 4px;
    backdrop-filter: blur(4px);
}

.channel-name {
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.05em;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.live-badge {
    font-family: var(--font-display);
    font-size: 0.6rem;
    font-weight: 700;
    color: #ff4444;
    letter-spacing: 0.1em;
    animation: livePulse 1.5s ease-in-out infinite;
}

@keyframes livePulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

/* Время на экране */
.screen-time {
    position: absolute;
    top: 12px;
    left: 12px;
    font-family: 'Courier New', monospace;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.2);
}

/* Индикатор сигнала */
.signal-indicator {
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: flex-end;
    gap: 2px;
    padding: 4px 8px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 3px;
}

.signal-indicator .signal-bar {
    width: 4px;
    background: #00ff88;
    border-radius: 1px;
    transition: height 0.3s ease;
}

.signal-indicator .signal-bar:nth-child(1) { height: 4px; }
.signal-indicator .signal-bar:nth-child(2) { height: 7px; }
.signal-indicator .signal-bar:nth-child(3) { height: 10px; }
.signal-indicator .signal-bar:nth-child(4) { height: 13px; }
.signal-indicator .signal-bar:nth-child(5) { height: 16px; }

.signal-indicator.weak .signal-bar:nth-child(4),
.signal-indicator.weak .signal-bar:nth-child(5) {
    background: #444;
}

.signal-indicator.bad .signal-bar:nth-child(3),
.signal-indicator.bad .signal-bar:nth-child(4),
.signal-indicator.bad .signal-bar:nth-child(5) {
    background: #444;
}

/* === CTA КНОПКА НА ЭКРАНЕ === */
.screen-cta {
    position: absolute;
    bottom: 28px;
    right: 12px;
    z-index: 10;
    pointer-events: auto;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: var(--red);
    color: #fff;
    font-family: var(--font-display);
    font-size: 0.65rem;
    font-weight: 700;
    text-decoration: none;
    border-radius: 3px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4), 0 0 12px var(--red-glow);
    transition: all 0.3s ease;
    animation: ctaPulse 2s ease-in-out infinite;
}

.cta-button:hover {
    background: #ff4d5a;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5), 0 0 20px var(--red-glow);
}

.cta-button svg {
    width: 12px;
    height: 12px;
}

@keyframes ctaPulse {
    0%, 100% {
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4), 0 0 12px var(--red-glow);
    }
    50% {
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4), 0 0 20px var(--red-glow), 0 0 30px var(--red-glow);
    }
}

/* === БЕГУЩАЯ СТРОКА (TICKER) === */
/* Временно скрыто - раскомментировать для включения */
.screen-ticker {
    display: none;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 22px;
    background: linear-gradient(90deg,
        rgba(230, 57, 70, 0.95) 0%,
        rgba(200, 40, 50, 0.95) 50%,
        rgba(230, 57, 70, 0.95) 100%
    );
    overflow: hidden;
    z-index: 9;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
}

.screen-ticker::before {
    content: 'POLSTREAM NEWS';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    padding: 0 10px;
    background: rgba(0, 0, 0, 0.3);
    font-family: var(--font-display);
    font-size: 0.55rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.1em;
    display: flex;
    align-items: center;
    z-index: 2;
}

.ticker-content {
    display: inline-block;
    white-space: nowrap;
    padding-left: 120px;
    font-family: var(--font-display);
    font-size: 0.6rem;
    font-weight: 600;
    color: #fff;
    letter-spacing: 0.03em;
    line-height: 22px;
    animation: tickerScroll 25s linear infinite;
}

@keyframes tickerScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* === CRT ЭФФЕКТЫ === */
.crt-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    border-radius: 12px;
    overflow: hidden;
}

/* Scanlines */
.scanlines {
    position: absolute;
    inset: 0;
    background:
        repeating-linear-gradient(
            0deg,
            transparent 0px,
            transparent 2px,
            rgba(0, 0, 0, 0.15) 2px,
            rgba(0, 0, 0, 0.15) 4px
        );
    z-index: 10;
}

.scanlines::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        transparent 0%,
        rgba(255, 255, 255, 0.02) 50%,
        transparent 100%
    );
    background-size: 100% 100px;
    animation: scanMove 8s linear infinite;
}

@keyframes scanMove {
    0% { background-position: 0 0; }
    100% { background-position: 0 100px; }
}

/* Шум */
.noise {
    position: absolute;
    inset: 0;
    opacity: 0.04;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    animation: noiseShift 0.1s steps(5) infinite;
    z-index: 11;
}

@keyframes noiseShift {
    0% { transform: translate(0, 0); }
    25% { transform: translate(-2px, 2px); }
    50% { transform: translate(2px, -2px); }
    75% { transform: translate(-2px, -2px); }
    100% { transform: translate(2px, 2px); }
}

/* Выпуклость экрана */
.screen-curve {
    position: absolute;
    inset: 0;
    background: radial-gradient(
        ellipse at center,
        transparent 0%,
        transparent 60%,
        rgba(0, 0, 0, 0.4) 100%
    );
    z-index: 12;
}

/* Блик */
.screen-glare {
    position: absolute;
    top: 8%;
    left: 8%;
    width: 35%;
    height: 25%;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.1) 0%,
        rgba(255, 255, 255, 0.03) 50%,
        transparent 100%
    );
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    z-index: 13;
}

/* === ПАНЕЛЬ УПРАВЛЕНИЯ === */
.tv-controls {
    width: 100px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 10px;
    background: linear-gradient(180deg, #1a1715 0%, #0f0d0c 100%);
    border-radius: 8px;
    border: 1px solid #2a2725;
}

/* Бренд */
.tv-brand {
    text-align: center;
    padding: 8px 4px;
    background: linear-gradient(180deg, #c9a227 0%, #8b6914 100%);
    border-radius: 4px;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        0 2px 4px rgba(0, 0, 0, 0.3);
}

.brand-icon {
    display: block;
    font-size: 0.9rem;
    color: #1a1510;
    margin-bottom: 2px;
}

.brand-text {
    font-family: var(--font-display);
    font-size: 0.5rem;
    font-weight: 800;
    color: #1a1510;
    letter-spacing: 0.05em;
}

/* Секция управления */
.control-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.control-label {
    font-family: var(--font-display);
    font-size: 0.4rem;
    font-weight: 700;
    color: #666;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

/* Селектор каналов */
.channel-selector {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.ch-btn {
    width: 32px;
    height: 20px;
    background: linear-gradient(180deg, #3a3530 0%, #252220 100%);
    border: 1px solid #4a4540;
    border-radius: 4px;
    color: #888;
    font-size: 0.6rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    font-variant-emoji: text;
}

.ch-btn:hover {
    background: linear-gradient(180deg, #4a4540 0%, #3a3530 100%);
    color: #fff;
    border-color: #5a5550;
}

.ch-btn:active {
    transform: scale(0.95);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.channel-window {
    width: 36px;
    height: 24px;
    background: #0a0908;
    border: 2px solid #3a3530;
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    font-weight: bold;
    color: #ff6b35;
    text-shadow: 0 0 8px rgba(255, 107, 53, 0.5);
    box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.5);
}

/* Ручка громкости */
.knob-container {
    position: relative;
}

.knob {
    width: 44px;
    height: 44px;
    background:
        radial-gradient(circle at 30% 30%, #555 0%, #222 100%);
    border-radius: 50%;
    border: 3px solid #444;
    cursor: pointer;
    position: relative;
    box-shadow:
        0 4px 8px rgba(0, 0, 0, 0.4),
        inset 0 2px 4px rgba(255, 255, 255, 0.1);
    transition: transform 0.1s ease;
}

.knob:hover {
    border-color: #555;
}

.knob:active {
    transform: scale(0.97);
}

.knob-marker {
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    height: 10px;
    background: #c9a227;
    border-radius: 2px;
    box-shadow: 0 0 4px rgba(201, 162, 39, 0.5);
}

.knob-ring {
    position: absolute;
    inset: 6px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

/* Кнопка питания */
.power-section {
    margin-top: auto;
}

.power-btn {
    width: 40px;
    height: 40px;
    background: linear-gradient(180deg, #2a2520 0%, #1a1510 100%);
    border: 2px solid #3a3530;
    border-radius: 50%;
    cursor: pointer;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    box-shadow:
        0 4px 8px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.power-btn:hover {
    border-color: #4a4540;
    transform: scale(1.05);
}

.power-btn:active {
    transform: scale(0.95);
}

.power-symbol {
    font-size: 1rem;
    color: #666;
    transition: color 0.3s ease;
}

.power-btn:hover .power-symbol {
    color: #888;
}

.power-led {
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    background: #333;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.power-led.on {
    background: #00ff88;
    box-shadow:
        0 0 6px #00ff88,
        0 0 12px rgba(0, 255, 136, 0.5);
}

/* Динамик */
.speaker-grille {
    padding: 10px 6px;
    background: #0a0908;
    border-radius: 6px;
    border: 1px solid #1a1715;
}

.grille-pattern {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 4px;
}

.grille-pattern span {
    width: 10px;
    height: 10px;
    background: radial-gradient(circle, #1a1815 40%, #0a0908 60%);
    border-radius: 50%;
}

/* === НИЖНЯЯ ПАНЕЛЬ === */
.tv-footer {
    padding: 10px 15px;
    background: linear-gradient(180deg, #3a3025 0%, #2a2520 100%);
    border-top: 1px solid #4a4035;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.wood-panel {
    flex: 1;
    height: 8px;
    background:
        repeating-linear-gradient(
            90deg,
            #5a4530 0px,
            #4a3a28 2px,
            #5a4530 4px,
            #6a5540 6px,
            #5a4530 8px
        );
    border-radius: 2px;
    margin-right: 15px;
}

.model-badge {
    font-family: var(--font-display);
    font-size: 0.45rem;
    font-weight: 700;
    color: #8a7560;
    letter-spacing: 0.1em;
    white-space: nowrap;
}

/* === НОЖКИ === */
.tv-legs {
    display: flex;
    justify-content: space-between;
    padding: 0 40px;
}

.leg {
    width: 30px;
    height: 20px;
    background: linear-gradient(180deg, #2a2520 0%, #1a1510 100%);
    border-radius: 0 0 8px 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

/* === FLOATING BROADCAST BADGES === */
.retro-tv .floating-channels {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 100%;
    width: 120px;
    pointer-events: none;
    z-index: 1;
}

.retro-tv .float-channel {
    position: absolute;
    background: var(--cream);
    color: var(--navy);
    padding: 8px 16px;
    font-family: var(--font-display);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    border-radius: 6px;
    box-shadow:
        0 4px 20px rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(0, 0, 0, 0.05);
    pointer-events: auto;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 6px;
}

.retro-tv .float-channel:hover {
    transform: scale(1.08) translateY(-2px);
    box-shadow:
        0 8px 30px rgba(0, 0, 0, 0.2),
        0 0 0 1px rgba(0, 0, 0, 0.05);
}

/* REC badge */
.retro-tv .fc-rec {
    border-left: 3px solid #e74c3c;
}

.rec-dot,
.live-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
}

.rec-dot {
    background: #e74c3c;
    animation: pulseDot 1.5s ease-in-out infinite;
}

.live-dot {
    background: #2ecc71;
    animation: pulseDot 2s ease-in-out infinite 0.5s;
}

@keyframes pulseDot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.3; transform: scale(0.7); }
}

/* ON AIR badge */
.retro-tv .fc-onair {
    border-left: 3px solid #f39c12;
}

/* LIVE badge */
.retro-tv .fc-live {
    border-left: 3px solid #2ecc71;
}

.retro-tv .fc-1 {
    top: 15%;
    left: 20px;
    animation: floatChannel 5s ease-in-out infinite;
}

.retro-tv .fc-2 {
    top: 45%;
    left: 35px;
    animation: floatChannel 5s ease-in-out infinite 1.5s;
}

.retro-tv .fc-3 {
    bottom: 25%;
    left: 15px;
    animation: floatChannel 5s ease-in-out infinite 3s;
}

@keyframes floatChannel {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-6px) rotate(1deg); }
    75% { transform: translateY(4px) rotate(-1deg); }
}

/* === TV STATES === */
.retro-tv.tv-off .screen-content,
.retro-tv.tv-off .crt-overlay,
.retro-tv.tv-off .ch-indicator,
.retro-tv.tv-off .channel-info,
.retro-tv.tv-off .screen-time,
.retro-tv.tv-off .signal-indicator {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.retro-tv.tv-off .tv-screen {
    background: #050505;
}

.retro-tv.channel-switching .noise {
    opacity: 0.15;
}

.retro-tv.channel-switching .screen-content {
    animation: channelSwitch 0.2s ease;
}

@keyframes channelSwitch {
    0% { transform: scale(1); filter: brightness(1); }
    30% { transform: scale(1.02, 0.98); filter: brightness(1.5); }
    60% { transform: scale(0.98, 1.02); filter: brightness(0.8); }
    100% { transform: scale(1); filter: brightness(1); }
}

/* === GLOW EFFECT BEHIND TV === */
.retro-tv::before {
    content: '';
    position: absolute;
    top: 20%;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 60%;
    background: radial-gradient(
        ellipse at center,
        rgba(0, 255, 136, 0.06) 0%,
        rgba(0, 255, 136, 0.02) 40%,
        transparent 70%
    );
    z-index: -1;
    animation: tvGlow 4s ease-in-out infinite;
}

@keyframes tvGlow {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

/* OLD TV STYLES REMOVED - Using .retro-tv instead */



.tv-screen {
    aspect-ratio: 4/3;
    background: #1a1a1a;
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    /* CRT curvature illusion */
    box-shadow:
        inset 0 0 60px rgba(0, 0, 0, 0.5),
        inset 0 0 20px rgba(0, 0, 0, 0.3),
        /* Screen glow */
        0 0 30px rgba(100, 150, 100, 0.1);
}

/* Scanlines */
.tv-screen::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        /* Moving scanline band */
        linear-gradient(
            to bottom,
            transparent 0%,
            rgba(255, 255, 255, 0.03) 50%,
            transparent 100%
        ),
        /* Static scanlines */
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 2px,
            rgba(0, 0, 0, 0.15) 2px,
            rgba(0, 0, 0, 0.15) 4px
        );
    background-size: 100% 100px, 100% 4px;
    animation: tvScanlines 6s linear infinite;
    pointer-events: none;
    z-index: 3;
}

/* Chromatic aberration + vignette */
.tv-screen::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 4px;
    background:
        /* RGB fringe */
        linear-gradient(90deg, rgba(255, 0, 0, 0.05) 0%, transparent 5%, transparent 95%, rgba(0, 255, 255, 0.05) 100%),
        linear-gradient(0deg, rgba(255, 0, 0, 0.03) 0%, transparent 5%, transparent 95%, rgba(0, 255, 255, 0.03) 100%),
        /* Vignette */
        radial-gradient(ellipse at center, transparent 40%, rgba(0, 0, 0, 0.4) 100%);
    pointer-events: none;
    z-index: 4;
    /* Phosphor glow */
    box-shadow: inset 0 0 50px rgba(100, 150, 100, 0.08);
}

@keyframes tvScanlines {
    0% { background-position: 0 0, 0 0; }
    100% { background-position: 0 100px, 0 0; }
}

.tv-content {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
    /* Subtle flicker */
    animation: tvFlicker 8s ease-in-out infinite;
}

@keyframes tvFlicker {
    0%, 95%, 100% { filter: brightness(1); }
    96% { filter: brightness(1.02); }
    97% { filter: brightness(0.98); }
    98% { filter: brightness(1.01); }
}

.channel-strip {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    background: rgba(0, 0, 0, 0.7);
    z-index: 2;
}

.channel-name {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--white);
}

.live-indicator {
    font-family: var(--font-display);
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--red);
    animation: blink 1s ease infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.tv-noise {
    position: absolute;
    inset: 0;
    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.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    opacity: 0.1;
    animation: noise 0.3s steps(8) infinite;
    z-index: 2;
}

/* VHS Tracking glitch line */
.tv-noise::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.7) 20%,
        rgba(255, 255, 255, 0.9) 50%,
        rgba(255, 255, 255, 0.7) 80%,
        transparent 100%
    );
    opacity: 0;
    animation: vhsTracking 10s ease-in-out infinite;
    box-shadow:
        0 0 10px rgba(255, 255, 255, 0.5),
        0 -2px 4px rgba(255, 0, 0, 0.4),
        0 2px 4px rgba(0, 255, 255, 0.4);
    z-index: 10;
}

/* Occasional horizontal tear/distortion */
.tv-noise::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    height: 15px;
    background: rgba(0, 0, 0, 0.3);
    opacity: 0;
    animation: vhsTear 15s ease-in-out infinite;
    z-index: 9;
}

@keyframes noise {
    0%, 100% { transform: translate(0, 0); }
    10% { transform: translate(-5%, -5%); }
    20% { transform: translate(-10%, 5%); }
    30% { transform: translate(5%, -10%); }
    40% { transform: translate(-5%, 10%); }
    50% { transform: translate(-10%, 5%); }
    60% { transform: translate(10%, 0); }
    70% { transform: translate(0, 10%); }
    80% { transform: translate(-10%, 0); }
    90% { transform: translate(10%, 5%); }
}

@keyframes vhsTracking {
    0%, 85%, 100% {
        opacity: 0;
        top: -10px;
    }
    88% {
        opacity: 0;
        top: 5%;
    }
    89% {
        opacity: 0.8;
        top: 5%;
    }
    95% {
        opacity: 0.8;
        top: 90%;
    }
    96% {
        opacity: 0;
        top: 90%;
    }
}

@keyframes vhsTear {
    0%, 92%, 100% {
        opacity: 0;
        top: 0;
        transform: scaleX(1);
    }
    93% {
        opacity: 1;
        top: 30%;
        transform: scaleX(1.02);
    }
    94% {
        opacity: 0;
        top: 30%;
        transform: scaleX(1);
    }
    95% {
        opacity: 1;
        top: 60%;
        transform: scaleX(0.98);
    }
    96% {
        opacity: 0;
        top: 60%;
        transform: scaleX(1);
    }
}

/* ============================================
   INTERACTIVE RETRO TV
   ============================================ */

/* Antenna */
.tv-antenna {
    position: absolute;
    top: -60px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 60px;
    z-index: 0;
}

.antenna-rod {
    position: absolute;
    bottom: 0;
    width: 4px;
    height: 50px;
    background: linear-gradient(180deg, #888 0%, #666 100%);
    border-radius: 2px;
    transform-origin: bottom center;
    transition: transform 0.3s ease;
}

.antenna-rod::after {
    content: '';
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 8px;
    height: 8px;
    background: radial-gradient(circle, #999 0%, #666 100%);
    border-radius: 50%;
}

.antenna-left {
    left: 20px;
    transform: rotate(-25deg);
}

.antenna-right {
    right: 20px;
    transform: rotate(25deg);
}

.tv-frame:hover .antenna-left {
    transform: rotate(-30deg);
    animation: antennaWobble 0.5s ease;
}

.tv-frame:hover .antenna-right {
    transform: rotate(30deg);
    animation: antennaWobble 0.5s ease 0.1s;
}

@keyframes antennaWobble {
    0%, 100% { transform: rotate(-25deg); }
    25% { transform: rotate(-28deg); }
    50% { transform: rotate(-22deg); }
    75% { transform: rotate(-27deg); }
}

.antenna-base {
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 10px;
    background: linear-gradient(180deg, #555 0%, #333 100%);
    border-radius: 3px;
}

/* Wood grain panels */
.tv-wood-panel {
    position: absolute;
    top: 10px;
    bottom: 60px;
    width: 20px;
    background:
        repeating-linear-gradient(
            90deg,
            #8B4513 0px,
            #A0522D 2px,
            #8B4513 4px
        ),
        linear-gradient(180deg, #9a6b4a 0%, #7a5533 100%);
    background-blend-mode: overlay;
    z-index: 2;
}

.tv-wood-panel.left {
    left: 0;
    border-radius: 8px 0 0 0;
}

.tv-wood-panel.right {
    right: 0;
    border-radius: 0 8px 0 0;
}

/* Old brand badge removed */

/* Screen wrapper */
.tv-screen-wrapper {
    padding: 30px 25px 15px;
}

/* Enhanced screen */
.tv-screen {
    position: relative;
}

/* Screen reflection/glare */
.screen-reflection {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.12) 0%,
        rgba(255, 255, 255, 0.05) 30%,
        transparent 50%
    );
    border-radius: 4px;
    pointer-events: none;
    z-index: 15;
}

/* Channel display (big number in corner) */
.channel-display {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 5;
    opacity: 0;
    animation: channelFadeIn 0.3s ease forwards;
    animation-delay: 1s;
}

.channel-number {
    font-family: 'Courier New', monospace;
    font-size: 2rem;
    font-weight: 900;
    color: #0f0;
    text-shadow:
        0 0 10px #0f0,
        0 0 20px rgba(0, 255, 0, 0.5),
        2px 2px 0 rgba(0, 0, 0, 0.5);
    letter-spacing: -0.05em;
}

@keyframes channelFadeIn {
    to { opacity: 1; }
}

/* Signal quality bars */
.signal-bars {
    position: absolute;
    top: 15px;
    left: 15px;
    display: flex;
    align-items: flex-end;
    gap: 3px;
    z-index: 5;
}

.signal-bar {
    width: 4px;
    background: #0f0;
    border-radius: 1px;
    box-shadow: 0 0 5px rgba(0, 255, 0, 0.5);
    transition: height 0.3s ease, opacity 0.3s ease;
}

.signal-bar:nth-child(1) { height: 6px; }
.signal-bar:nth-child(2) { height: 10px; }
.signal-bar:nth-child(3) { height: 14px; }
.signal-bar:nth-child(4) { height: 18px; }
.signal-bar:nth-child(5) { height: 22px; }

.signal-bars.weak .signal-bar:nth-child(4),
.signal-bars.weak .signal-bar:nth-child(5) {
    opacity: 0.2;
}

.signal-bars.bad .signal-bar:nth-child(3),
.signal-bars.bad .signal-bar:nth-child(4),
.signal-bars.bad .signal-bar:nth-child(5) {
    opacity: 0.2;
}

/* TV Time display */
.tv-time {
    position: absolute;
    bottom: 60px;
    right: 15px;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.7);
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.3);
    z-index: 5;
}

/* Additional scanlines layer */
.tv-scanlines {
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0, 0, 0, 0.1) 2px,
        rgba(0, 0, 0, 0.1) 4px
    );
    pointer-events: none;
    z-index: 6;
}

/* CRT turn on/off effect */
.crt-effect {
    position: absolute;
    inset: 0;
    background: white;
    opacity: 0;
    pointer-events: none;
    z-index: 20;
    border-radius: 4px;
}

.crt-effect.turning-on {
    animation: crtTurnOn 0.5s ease-out forwards;
}

.crt-effect.turning-off {
    animation: crtTurnOff 0.3s ease-in forwards;
}

@keyframes crtTurnOn {
    0% {
        opacity: 1;
        transform: scaleY(0.01) scaleX(1);
        background: white;
    }
    50% {
        opacity: 1;
        transform: scaleY(0.01) scaleX(0.8);
        background: white;
    }
    100% {
        opacity: 0;
        transform: scaleY(1) scaleX(1);
        background: transparent;
    }
}

@keyframes crtTurnOff {
    0% {
        opacity: 0;
        transform: scaleY(1) scaleX(1);
    }
    50% {
        opacity: 1;
        transform: scaleY(0.01) scaleX(0.5);
        background: white;
    }
    100% {
        opacity: 1;
        transform: scaleY(0.005) scaleX(0.01);
        background: white;
    }
}

/* Speaker grille */
.tv-speaker {
    position: absolute;
    bottom: 55px;
    left: 25px;
    width: 80px;
}

.speaker-grille {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.grille-line {
    height: 2px;
    background: linear-gradient(90deg, #222 0%, #444 50%, #222 100%);
    border-radius: 1px;
}

.speaker-label {
    display: block;
    margin-top: 5px;
    font-family: var(--font-display);
    font-size: 0.5rem;
    font-weight: 700;
    color: #666;
    letter-spacing: 0.2em;
    text-align: center;
}

/* Old .tv-controls removed - using new styles in retro-tv */

/* Power button */
.tv-power-btn {
    width: 36px;
    height: 36px;
    background: linear-gradient(180deg, #444 0%, #222 100%);
    border: 2px solid #555;
    border-radius: 50%;
    cursor: pointer;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    box-shadow:
        0 3px 6px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    z-index: 25;
}

.tv-power-btn:hover {
    transform: scale(1.05);
    border-color: #777;
}

.tv-power-btn:active {
    transform: scale(0.95);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.power-icon {
    font-size: 1rem;
    color: #888;
    transition: color 0.3s ease;
}

.tv-power-btn:hover .power-icon {
    color: #aaa;
}

.power-led {
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    background: #333;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.power-led.on {
    background: #4CAF50;
    box-shadow: 0 0 8px #4CAF50, 0 0 15px rgba(76, 175, 80, 0.5);
}

/* Old control styles removed - using .retro-tv styles */

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: var(--space-xl);
    left: 50%;
    transform: translateX(-50%);
    cursor: pointer;
    transition: all 0.3s ease;
}

.scroll-indicator:hover .scroll-mouse {
    border-color: var(--red);
}

.scroll-indicator:hover .scroll-wheel {
    background: var(--red);
}

/* Mouse icon */
.scroll-mouse {
    width: 26px;
    height: 42px;
    border: 2px solid var(--navy-light);
    border-radius: 13px;
    position: relative;
    transition: border-color 0.3s ease;
}

.scroll-wheel {
    width: 4px;
    height: 8px;
    background: var(--navy-light);
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollWheel 1.5s ease-in-out infinite;
    transition: background 0.3s ease;
}

@keyframes scrollWheel {
    0% { opacity: 1; top: 8px; }
    50% { opacity: 0.5; top: 18px; }
    100% { opacity: 1; top: 8px; }
}

/* Swipe up (mobile only) */
.scroll-swipe {
    display: none;
}

.scroll-swipe svg {
    width: 28px;
    height: 42px;
    stroke: var(--navy-light);
    animation: swipeUp 1.5s ease-in-out infinite;
}

@keyframes swipeUp {
    0% { opacity: 0.4; transform: translateY(6px); }
    50% { opacity: 1; transform: translateY(0); }
    100% { opacity: 0.4; transform: translateY(6px); }
}

/* ============================================
   FEATURES SECTION
   ============================================ */

.features {
    padding: var(--space-3xl) var(--space-xl);
    background: var(--white);
    position: relative;
}

.features-header {
    max-width: 1400px;
    margin: 0 auto var(--space-2xl);
}

.section-number {
    display: block;
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--red);
    letter-spacing: 0.2em;
    margin-bottom: var(--space-sm);
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    color: var(--navy);
    letter-spacing: -0.02em;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: var(--space-md);
    max-width: 1400px;
    margin: 0 auto;
}

.feature-card {
    padding: var(--space-xl);
    background: var(--cream);
    border: 2px solid transparent;
    position: relative;
    transition: all var(--transition);
}

.feature-card:hover {
    border-color: var(--navy);
    transform: translateY(-5px);
}

.feature-card.featured {
    background: var(--navy);
    color: var(--white);
}

.feature-badge {
    position: absolute;
    top: var(--space-md);
    right: var(--space-md);
    padding: 4px 12px;
    background: var(--red);
    color: var(--white);
    font-family: var(--font-display);
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.feature-icon {
    width: 48px;
    height: 48px;
    margin-bottom: var(--space-md);
    color: var(--red);
}

.feature-card.featured .feature-icon {
    color: var(--white);
}

.feature-card h3 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: var(--space-sm);
    letter-spacing: -0.01em;
}

.feature-card p {
    font-size: 0.95rem;
    line-height: 1.5;
    opacity: 0.8;
}

/* ============================================
   PRICING SECTION
   ============================================ */

.pricing-preview {
    padding: var(--space-3xl) var(--space-xl);
    background: var(--cream);
    position: relative;
    overflow: hidden;
}

.pricing-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.price-stripe {
    position: absolute;
    width: 100%;
    height: 200px;
    background: var(--red);
    transform: skewY(-3deg);
    top: 40%;
    opacity: 0.06;
}

.pricing-header {
    position: relative;
    z-index: 1;
    max-width: 1400px;
    margin: 0 auto var(--space-2xl);
    text-align: center;
}

.section-desc {
    font-size: 1.1rem;
    color: var(--navy-light);
    margin-top: var(--space-sm);
}

.pricing-cards {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
    max-width: 1000px;
    margin: 0 auto;
}

.price-card {
    padding: var(--space-xl);
    background: var(--white);
    border: 2px solid var(--navy);
    position: relative;
    transition: all var(--transition);
}

.price-card:hover {
    transform: translateY(-10px);
    box-shadow: 15px 15px 0 var(--red);
}

.price-card.popular {
    background: var(--navy);
    color: var(--white);
    transform: scale(1.05);
}

.price-card.popular:hover {
    transform: scale(1.05) translateY(-10px);
    box-shadow: 15px 15px 0 var(--red);
}

.popular-tag {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    padding: 8px 20px;
    background: var(--red);
    color: var(--white);
    font-family: var(--font-display);
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    white-space: nowrap;
}

.price-tier {
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    margin-bottom: var(--space-md);
    opacity: 0.6;
}

.price-amount {
    display: flex;
    align-items: baseline;
    margin-bottom: var(--space-lg);
}

.price-amount .currency {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
}

.price-amount .value {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 900;
    line-height: 1;
}

.price-amount .cents {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
}

.price-amount .period {
    font-size: 0.9rem;
    opacity: 0.6;
    margin-left: var(--space-xs);
}

.price-features {
    list-style: none;
    margin-bottom: var(--space-lg);
}

.price-features li {
    padding: var(--space-xs) 0;
    font-size: 0.95rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.price-card.popular .price-features li {
    border-color: rgba(255, 255, 255, 0.2);
}

.price-btn {
    display: block;
    width: 100%;
    padding: var(--space-md);
    background: var(--navy);
    color: var(--white);
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 700;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all var(--transition);
}

.price-card.popular .price-btn {
    background: var(--red);
}

.price-btn:hover {
    background: var(--red);
    transform: skewX(-5deg);
}

.price-card.popular .price-btn:hover {
    background: var(--white);
    color: var(--navy);
}

.pricing-footer {
    position: relative;
    z-index: 1;
    text-align: center;
    margin-top: var(--space-xl);
}

.link-more {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--red);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: gap var(--transition);
}

.link-more svg {
    width: 20px;
    height: 20px;
}

.link-more:hover {
    gap: var(--space-md);
}

/* ============================================
   PLATFORMS SECTION
   ============================================ */

.platforms {
    padding: var(--space-2xl) 0;
    background: var(--navy);
    color: var(--white);
    overflow: hidden;
}

.platforms-header {
    text-align: center;
    padding: 0 var(--space-xl);
    margin-bottom: var(--space-xl);
}

.platforms .section-title {
    color: var(--white);
}

.platforms-marquee {
    overflow: hidden;
    white-space: nowrap;
}

.marquee-track {
    display: inline-flex;
    animation: marquee 30s linear infinite;
}

@keyframes marquee {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

.platform-item {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-xl);
    margin-right: var(--space-md);
    background: rgba(255, 255, 255, 0.1);
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
}

.platform-icon {
    font-size: 1.5rem;
}

/* ============================================
   CTA SECTION
   ============================================ */

.cta-section {
    padding: var(--space-3xl) var(--space-xl);
    background: var(--red);
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.cta-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
    max-width: 1400px;
    margin: 0 auto;
    align-items: center;
}

.cta-title {
    font-family: var(--font-display);
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 900;
    line-height: 0.9;
    letter-spacing: -0.03em;
}

.cta-title .accent {
    color: var(--navy);
}

.cta-desc {
    font-size: 1.2rem;
    margin: var(--space-lg) 0;
    opacity: 0.9;
}

.btn-cta {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-xl);
    background: var(--white);
    color: var(--red);
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all var(--transition);
}

.btn-cta:hover {
    background: var(--navy);
    color: var(--white);
    transform: skewX(-5deg);
}

.cta-right {
    display: flex;
    justify-content: flex-end;
}

.cta-decoration {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.deco-text {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 900;
    line-height: 0.85;
    letter-spacing: -0.05em;
    opacity: 0.15;
    color: var(--white);
}

/* ============================================
   FOOTER
   ============================================ */

.main-footer {
    background: var(--navy);
    color: var(--white);
    padding: var(--space-2xl) var(--space-xl);
}

.footer-top {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: var(--space-3xl);
    max-width: 1400px;
    margin: 0 auto;
    padding-bottom: var(--space-2xl);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand .logo {
    margin-bottom: var(--space-md);
}

.footer-brand .logo-icon {
    background: var(--red);
}

.footer-brand p {
    font-size: 0.95rem;
    opacity: 0.7;
    max-width: 300px;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
}

.footer-col h4 {
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: var(--space-md);
    opacity: 0.5;
}

.footer-col a {
    display: block;
    font-size: 0.95rem;
    padding: var(--space-xs) 0;
    opacity: 0.7;
    transition: opacity var(--transition);
}

.footer-col a:hover {
    opacity: 1;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding-top: var(--space-lg);
}

.footer-bottom p {
    flex: 1;
    font-size: 0.85rem;
    opacity: 0.5;
}

.footer-bottom .lang-toggle {
    flex-shrink: 0;
}

.footer-bottom .footer-vhs {
    flex: 1;
    justify-content: flex-end;
}

.footer-vhs {
    display: flex;
    gap: var(--space-md);
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 700;
}

.footer-vhs span {
    opacity: 0.4;
    transition: all 0.3s ease;
    padding: 0.5rem 0.75rem;
    border: 1px solid transparent;
    font-variant-emoji: text;
}

.footer-vhs span:hover {
    opacity: 1;
    border-color: var(--red);
    color: var(--red);
}

/* VHS Button animations */
.footer-vhs span:first-child:hover {
    animation: vhsPlay 0.5s ease infinite;
}

.footer-vhs span:nth-child(2):hover {
    animation: vhsStop 0.3s ease;
}

.footer-vhs span:last-child:hover {
    animation: vhsRewind 0.2s linear infinite;
}

@keyframes vhsPlay {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

@keyframes vhsStop {
    0% { transform: scale(1); }
    50% { transform: scale(0.9); }
    100% { transform: scale(1); }
}

@keyframes vhsRewind {
    0% { transform: translateX(0); }
    25% { transform: translateX(-3px); }
    50% { transform: translateX(0); }
    75% { transform: translateX(-3px); }
    100% { transform: translateX(0); }
}

/* ============================================
   VHS EASTER EGGS
   ============================================ */

/* VHS Static/Noise Overlay */
.vhs-easter-egg {
    position: fixed;
    inset: 0;
    z-index: 99999;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.vhs-easter-egg.active {
    opacity: 1;
}

/* PLAY Easter Egg - Static Noise */
.vhs-static {
    background:
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 2px,
            rgba(0, 0, 0, 0.3) 2px,
            rgba(0, 0, 0, 0.3) 4px
        );
    animation: vhsStaticAnim 0.1s steps(10) infinite;
}

.vhs-static::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    opacity: 0.4;
    animation: vhsStaticAnim 0.05s steps(8) infinite;
}

.vhs-static::after {
    content: 'PLAY ▶';
    position: absolute;
    bottom: 40px;
    right: 40px;
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    text-shadow: 2px 2px 0 #f00, -2px -2px 0 #0ff;
    animation: vhsTextGlitch 0.3s ease infinite;
}

@keyframes vhsStaticAnim {
    0% { transform: translate(0, 0); }
    10% { transform: translate(-2%, -2%); }
    20% { transform: translate(2%, 2%); }
    30% { transform: translate(-1%, 1%); }
    40% { transform: translate(1%, -1%); }
    50% { transform: translate(-2%, 2%); }
    60% { transform: translate(2%, -2%); }
    70% { transform: translate(0, 2%); }
    80% { transform: translate(-2%, 0); }
    90% { transform: translate(2%, 1%); }
    100% { transform: translate(0, 0); }
}

@keyframes vhsTextGlitch {
    0%, 100% { transform: translate(0); }
    20% { transform: translate(-2px, 1px); }
    40% { transform: translate(2px, -1px); }
    60% { transform: translate(-1px, -1px); }
    80% { transform: translate(1px, 1px); }
}

/* PLAY Easter Egg 2 - Retro Message */
.vhs-retro-message {
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.vhs-retro-message::before {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        0deg,
        transparent 0px,
        transparent 2px,
        rgba(255, 255, 255, 0.03) 2px,
        rgba(255, 255, 255, 0.03) 4px
    );
}

.retro-text {
    font-family: var(--font-display);
    font-size: clamp(2rem, 8vw, 6rem);
    font-weight: 900;
    color: var(--red);
    text-align: center;
    text-shadow: 0 0 30px var(--red-glow), 0 0 60px var(--red-glow);
    animation: retroPulse 0.5s ease infinite;
    z-index: 1;
}

.retro-subtext {
    font-family: var(--font-display);
    font-size: 1rem;
    color: #fff;
    margin-top: 1rem;
    letter-spacing: 0.3em;
    opacity: 0.7;
    z-index: 1;
}

@keyframes retroPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.02); }
}

/* STOP Easter Egg - Pause */
.vhs-pause {
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
}

.vhs-pause::before {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        0deg,
        transparent 0px,
        transparent 3px,
        rgba(255, 255, 255, 0.05) 3px,
        rgba(255, 255, 255, 0.05) 6px
    );
    animation: scanlineMove 0.1s linear infinite;
}

.vhs-pause::after {
    content: '❚❚ PAUSE';
    font-family: var(--font-display);
    font-size: clamp(3rem, 10vw, 8rem);
    font-weight: 900;
    color: #fff;
    text-shadow: 4px 4px 0 var(--red);
    animation: pauseBlink 1s steps(1) infinite;
    z-index: 1;
}

@keyframes scanlineMove {
    0% { transform: translateY(0); }
    100% { transform: translateY(6px); }
}

@keyframes pauseBlink {
    0%, 70% { opacity: 1; }
    71%, 100% { opacity: 0; }
}

/* REW Easter Egg 1 - Fast Rewind Scroll */
.vhs-rewind {
    background: rgba(0, 0, 0, 0.8);
}

.vhs-rewind::before {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        90deg,
        transparent 0px,
        transparent 10px,
        rgba(255, 255, 255, 0.1) 10px,
        rgba(255, 255, 255, 0.1) 20px
    );
    animation: rewindBars 0.1s linear infinite;
}

.vhs-rewind::after {
    content: '◀◀ REW';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 700;
    color: #fff;
    z-index: 1;
}

@keyframes rewindBars {
    0% { transform: translateX(0); }
    100% { transform: translateX(-20px); }
}


/* ============================================
   AUTH MODALS - VHS TV DESIGN
   ============================================ */

.auth-overlay {
    position: fixed;
    inset: 0;
    background: radial-gradient(ellipse at center, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0.8) 100%);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.auth-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* TV Frame - Light Theme Default (Retro Cream TV) */
.auth-modal {
    background: linear-gradient(145deg, #d4c4a8 0%, #c4b498 50%, #b4a488 100%);
    width: 100%;
    max-width: 480px;
    position: relative;
    transform: translateY(30px) scale(0.9);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    border-radius: 20px;
    padding: 25px;
    box-shadow:
        0 0 0 3px #a89878,
        0 0 0 6px #c4b498,
        0 30px 60px rgba(0,0,0,0.4),
        inset 0 2px 0 rgba(255,255,255,0.3),
        inset 0 -2px 0 rgba(0,0,0,0.1);
}

.auth-overlay.active .auth-modal {
    transform: translateY(0) scale(1);
}

/* TV Screen - Light Theme Default */
.auth-modal-screen {
    background: #f5f0e8;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    border: 4px solid #a89878;
    box-shadow: inset 0 0 30px rgba(0,0,0,0.1);
}

/* CRT Curvature Effect - Light */
.auth-modal-screen::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, transparent 0%, rgba(0,0,0,0.08) 100%);
    pointer-events: none;
    z-index: 10;
    border-radius: 12px;
}

/* Scan Lines - Light */
.auth-modal-screen::after {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        0deg,
        transparent 0px,
        transparent 2px,
        rgba(0, 0, 0, 0.03) 2px,
        rgba(0, 0, 0, 0.03) 4px
    );
    pointer-events: none;
    z-index: 11;
    border-radius: 12px;
    animation: scanMove 8s linear infinite;
}

@keyframes scanMove {
    0% { background-position: 0 0; }
    100% { background-position: 0 100px; }
}

/* Screen Glow - Light */
.auth-modal-screen-inner {
    position: relative;
    box-shadow:
        inset 0 0 40px rgba(230, 57, 70, 0.05),
        inset 0 0 20px rgba(29, 53, 87, 0.05);
}

/* Header - TV Channel Display - Light Theme Default */
.auth-modal-header {
    background: linear-gradient(180deg, #ebe5db 0%, #e0d9cc 100%);
    color: var(--navy);
    padding: 20px 25px;
    position: relative;
    border-bottom: 2px solid rgba(230, 57, 70, 0.3);
}

/* REC Indicator */
.auth-modal-header::before {
    content: '● REC';
    position: absolute;
    top: 15px;
    left: 20px;
    font-family: 'Courier New', monospace;
    font-size: 0.65rem;
    font-weight: bold;
    color: var(--red);
    animation: recBlink 1.5s steps(1) infinite;
    text-shadow: 0 0 10px var(--red);
}

/* Timestamp - Light */
.auth-modal-header::after {
    content: 'CH-01  00:00:00';
    position: absolute;
    top: 15px;
    right: 20px;
    font-family: 'Courier New', monospace;
    font-size: 0.65rem;
    color: rgba(29, 53, 87, 0.5);
}

.auth-modal-close {
    position: absolute;
    top: 12px;
    right: 50%;
    transform: translateX(50%);
    background: none;
    border: none;
    color: rgba(29, 53, 87, 0.4);
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-modal-close:hover {
    color: var(--red);
    text-shadow: 0 0 10px var(--red);
}

.auth-modal-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 10px;
}

.auth-modal-logo .logo-icon {
    width: 40px;
    height: 40px;
    background: var(--red);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    box-shadow: 0 0 20px rgba(230, 57, 70, 0.5);
    animation: logoPulse 2s ease infinite;
}

@keyframes logoPulse {
    0%, 100% { box-shadow: 0 0 20px rgba(230, 57, 70, 0.5); }
    50% { box-shadow: 0 0 30px rgba(230, 57, 70, 0.8); }
}

.auth-modal-logo .logo-text {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    color: var(--navy);
    text-shadow: none;
}

.auth-modal-title {
    font-family: 'Courier New', monospace;
    font-size: 0.75rem;
    font-weight: normal;
    color: var(--navy);
    opacity: 0.5;
    margin-top: 8px;
    text-align: center;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

/* Body - Light Theme Default */
.auth-modal-body {
    padding: 25px;
    position: relative;
    z-index: 5;
    background: linear-gradient(180deg, #e0d9cc 0%, #d8d0c2 100%);
}

/* Channel Tabs - Light Theme Default */
.auth-tabs {
    display: flex;
    margin-bottom: 25px;
    background: rgba(29, 53, 87, 0.1);
    border: 1px solid rgba(29, 53, 87, 0.2);
    border-radius: 4px;
    padding: 4px;
    position: relative;
}

.auth-tab {
    flex: 1;
    padding: 12px;
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    background: transparent;
    color: rgba(29, 53, 87, 0.5);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.auth-tab:hover {
    color: rgba(29, 53, 87, 0.8);
}

.auth-tab.active {
    color: #fff;
    text-shadow: none;
}

/* Active Tab Background Slider */
.auth-tabs::before {
    content: '';
    position: absolute;
    top: 4px;
    left: 4px;
    width: calc(50% - 4px);
    height: calc(100% - 8px);
    background: var(--red);
    border-radius: 2px;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 15px rgba(230, 57, 70, 0.5);
}

.auth-tabs.register-active::before {
    transform: translateX(100%);
}

/* Static Noise on Channel Switch */
.auth-form {
    display: none;
    animation: channelSwitch 0.3s ease;
}

.auth-form.active {
    display: block;
}

@keyframes channelSwitch {
    0% { opacity: 0; transform: translateY(5px); }
    30% { opacity: 0.5; }
    100% { opacity: 1; transform: translateY(0); }
}

/* Form Fields - VCR Display Style */
.auth-field {
    margin-bottom: 20px;
    position: relative;
}

.auth-field label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Courier New', monospace;
    font-size: 0.7rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--red);
    margin-bottom: 8px;
}

.auth-field label::before {
    content: '▸';
    font-size: 0.6rem;
}

.auth-field input {
    width: 100%;
    padding: 14px 16px;
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--navy);
    background: rgba(255,255,255,0.7);
    border: 1px solid rgba(29, 53, 87, 0.2);
    border-radius: 4px;
    transition: all 0.3s ease;
}

.auth-field input:focus {
    outline: none;
    border-color: var(--red);
    background: rgba(255,255,255,0.9);
    box-shadow:
        0 0 0 3px rgba(230, 57, 70, 0.15),
        inset 0 0 20px rgba(230, 57, 70, 0.03);
}

.auth-field input::placeholder {
    color: rgba(29, 53, 87, 0.4);
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
}

/* Submit Button - PLAY Style */
.auth-submit {
    width: 100%;
    padding: 16px;
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #fff;
    background: linear-gradient(135deg, var(--red) 0%, #c1121f 100%);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(230, 57, 70, 0.4);
}

.auth-submit::before {
    content: '▶';
    margin-right: 10px;
    font-size: 0.8rem;
}

.auth-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(230, 57, 70, 0.6);
}

.auth-submit:active {
    transform: translateY(0);
}

/* Remember Me Checkbox */
.auth-remember {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    user-select: none;
    margin-bottom: 20px;
}

.auth-remember input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.auth-remember-box {
    width: 20px;
    height: 20px;
    border: 2px solid var(--navy);
    background: rgba(255,255,255,0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    flex-shrink: 0;
}

.auth-remember-box svg {
    width: 12px;
    height: 12px;
    color: #fff;
    opacity: 0;
    transform: scale(0.5);
    transition: all 0.2s;
}

.auth-remember input:checked + .auth-remember-box {
    background: var(--red);
    border-color: var(--red);
}

.auth-remember input:checked + .auth-remember-box svg {
    opacity: 1;
    transform: scale(1);
}

.auth-remember:hover .auth-remember-box {
    border-color: var(--red);
}

.auth-remember-text {
    font-family: 'Courier New', monospace;
    font-size: 0.8rem;
    color: var(--navy);
    letter-spacing: 0.5px;
}

[data-theme="dark"] .auth-remember-box {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.3);
}

[data-theme="dark"] .auth-remember:hover .auth-remember-box {
    border-color: var(--red);
}

[data-theme="dark"] .auth-remember-text {
    color: rgba(255,255,255,0.7);
}

/* Forgot Password - Light */
.auth-forgot {
    display: block;
    text-align: center;
    font-family: 'Courier New', monospace;
    font-size: 0.75rem;
    color: rgba(29, 53, 87, 0.5);
    margin-top: 20px;
    transition: all 0.3s;
    letter-spacing: 0.05em;
}

.auth-forgot:hover {
    color: var(--red);
    text-shadow: none;
}

/* TV Controls at bottom */
.auth-modal-controls {
    display: flex;
    justify-content: center;
    gap: 15px;
    padding-top: 20px;
    margin-top: 5px;
}

.tv-control {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #a89878;
    border: 2px solid #c4b498;
}

.tv-control.power {
    background: #3a6a3a;
    box-shadow: 0 0 8px rgba(74, 222, 128, 0.5);
}

/* TV Speaker Grille (decorative) - Light */
.auth-modal::after {
    content: '';
    position: absolute;
    bottom: 15px;
    right: 25px;
    width: 60px;
    height: 40px;
    background: repeating-linear-gradient(
        90deg,
        #b4a488 0px,
        #b4a488 2px,
        #a49478 2px,
        #a49478 4px
    );
    border-radius: 4px;
    opacity: 0.8;
}

/* Decorative knob - Light Theme */
.auth-modal::before {
    content: '';
    position: absolute;
    bottom: 20px;
    left: 50px;
    width: 30px;
    height: 30px;
    background: linear-gradient(145deg, #c4b498, #a49478);
    border-radius: 50%;
    box-shadow:
        inset 0 2px 4px rgba(255,255,255,0.3),
        inset 0 -2px 4px rgba(0,0,0,0.2),
        0 2px 4px rgba(0,0,0,0.2);
    z-index: 1;
}

/* Power LED - Light Theme */
.auth-modal-led {
    position: absolute;
    bottom: 28px;
    left: 90px;
    width: 8px;
    height: 8px;
    background: #4ade80;
    border-radius: 50%;
    box-shadow: 0 0 10px #4ade80, 0 0 20px rgba(74, 222, 128, 0.5);
    animation: ledPulse 2s ease infinite;
}

@keyframes ledPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Tracking Lines (decorative) */
.auth-tracking-lines {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg,
        transparent 0%,
        var(--red) 20%,
        var(--red) 80%,
        transparent 100%
    );
    opacity: 0.5;
}

/* ========== DARK THEME - Auth Modal ========== */

[data-theme="dark"] .auth-overlay {
    background: radial-gradient(ellipse at center, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.95) 100%);
}

[data-theme="dark"] .auth-modal {
    background: #0f0f0f;
    box-shadow:
        0 0 0 3px #1f1f1f,
        0 0 0 6px #0f0f0f,
        0 30px 60px rgba(0,0,0,0.8),
        inset 0 0 30px rgba(0,0,0,0.5);
}

[data-theme="dark"] .auth-modal::before {
    display: none;
}

[data-theme="dark"] .auth-modal::after {
    background: repeating-linear-gradient(
        90deg,
        #1a1a1a 0px,
        #1a1a1a 2px,
        #2a2a2a 2px,
        #2a2a2a 4px
    );
    opacity: 0.5;
}

[data-theme="dark"] .auth-modal-screen {
    background: #050508;
    border-color: #1a1a1a;
    box-shadow: inset 0 0 30px rgba(0,0,0,0.8);
}

[data-theme="dark"] .auth-modal-screen::before {
    background: radial-gradient(ellipse at center, transparent 0%, rgba(0,0,0,0.3) 100%);
}

[data-theme="dark"] .auth-modal-screen::after {
    background: repeating-linear-gradient(
        0deg,
        transparent 0px,
        transparent 2px,
        rgba(0, 0, 0, 0.15) 2px,
        rgba(0, 0, 0, 0.15) 4px
    );
}

[data-theme="dark"] .auth-modal-screen-inner {
    box-shadow:
        inset 0 0 80px rgba(230, 57, 70, 0.1),
        inset 0 0 40px rgba(29, 53, 87, 0.2);
}

[data-theme="dark"] .auth-modal-header {
    background: linear-gradient(180deg, #12121a 0%, #0a0a12 100%);
    color: #fff;
    border-bottom: 1px solid rgba(230, 57, 70, 0.2);
}

[data-theme="dark"] .auth-modal-header::after {
    color: rgba(255,255,255,0.5);
}

[data-theme="dark"] .auth-modal-close {
    color: rgba(255,255,255,0.3);
}

[data-theme="dark"] .auth-modal-logo .logo-text {
    color: #fff;
    text-shadow: 0 0 20px rgba(255,255,255,0.3);
}

[data-theme="dark"] .auth-modal-title {
    color: #fff;
}

[data-theme="dark"] .auth-modal-body {
    background: linear-gradient(180deg, #0a0a12 0%, #06060a 100%);
}

[data-theme="dark"] .auth-tabs {
    background: rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.1);
}

[data-theme="dark"] .auth-tab {
    color: rgba(255,255,255,0.4);
}

[data-theme="dark"] .auth-tab:hover {
    color: rgba(255,255,255,0.7);
}

[data-theme="dark"] .auth-tab.active {
    color: #fff;
    text-shadow: 0 0 10px rgba(255,255,255,0.5);
}

[data-theme="dark"] .auth-field input {
    color: #fff;
    background: rgba(0,0,0,0.4);
    border: 1px solid rgba(255,255,255,0.1);
}

[data-theme="dark"] .auth-field input:focus {
    background: rgba(230, 57, 70, 0.1);
    box-shadow:
        0 0 0 3px rgba(230, 57, 70, 0.1),
        inset 0 0 20px rgba(230, 57, 70, 0.05);
}

[data-theme="dark"] .auth-field input::placeholder {
    color: rgba(255,255,255,0.2);
}

[data-theme="dark"] .auth-forgot {
    color: rgba(255,255,255,0.4);
}

[data-theme="dark"] .auth-forgot:hover {
    text-shadow: 0 0 10px rgba(230, 57, 70, 0.5);
}

[data-theme="dark"] .tv-control {
    background: #2a2a2a;
    border-color: #3a3a3a;
}

[data-theme="dark"] .tv-control.power {
    background: #1a3a1a;
    box-shadow: 0 0 8px rgba(74, 222, 128, 0.3);
}

[data-theme="dark"] .auth-modal-led {
    left: 25px;
    bottom: 25px;
    box-shadow: 0 0 10px #4ade80;
}

[data-theme="dark"] .auth-tracking-lines {
    opacity: 0.7;
}

/* Responsive */
@media (max-width: 520px) {
    .auth-modal {
        max-width: 95%;
        padding: 15px;
        border-radius: 15px;
    }

    .auth-modal-header {
        padding: 15px 20px;
    }

    .auth-modal-body {
        padding: 20px;
    }

    .auth-modal-logo .logo-text {
        font-size: 1.2rem;
    }

    .auth-modal::after {
        display: none;
    }

    .auth-modal::before {
        display: none;
    }

    .auth-modal-led {
        left: 15px !important;
        bottom: 20px !important;
    }
}

/* Kanaly Block Modal */
/* ============================================
   KANALY BLOCK MODAL - Retro TV Style
   ============================================ */

.kanaly-block-overlay {
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at center, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0.8) 100%);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
    animation: kanalyFadeIn 0.3s ease;
}

@keyframes kanalyFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* TV Frame - Light Theme Default */
.kanaly-block-modal {
    background: linear-gradient(145deg, #d4c4a8 0%, #c4b498 50%, #b4a488 100%);
    max-width: 450px;
    width: 90%;
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    padding: 20px;
    box-shadow:
        0 0 0 3px #a89878,
        0 0 0 6px #c4b498,
        0 25px 50px rgba(0,0,0,0.4),
        inset 0 2px 0 rgba(255,255,255,0.3),
        inset 0 -2px 0 rgba(0,0,0,0.1);
    animation: kanalySlideIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes kanalySlideIn {
    from { transform: translateY(30px) scale(0.9); opacity: 0; }
    to { transform: translateY(0) scale(1); opacity: 1; }
}

/* TV Screen */
.kanaly-block-screen {
    background: #f5f0e8;
    border-radius: 12px;
    border: 4px solid #a89878;
    position: relative;
    overflow: hidden;
    box-shadow: inset 0 0 30px rgba(0,0,0,0.1);
}

/* CRT Effect */
.kanaly-block-screen::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, transparent 0%, rgba(0,0,0,0.08) 100%);
    pointer-events: none;
    z-index: 10;
    border-radius: 8px;
}

/* Scan Lines */
.kanaly-block-screen::after {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        0deg,
        transparent 0px,
        transparent 2px,
        rgba(0, 0, 0, 0.03) 2px,
        rgba(0, 0, 0, 0.03) 4px
    );
    pointer-events: none;
    z-index: 11;
    border-radius: 8px;
    animation: scanMove 8s linear infinite;
}

/* Header with signal info */
.kanaly-block-header {
    background: linear-gradient(180deg, #ebe5db 0%, #e0d9cc 100%);
    padding: 15px 20px;
    border-bottom: 2px solid rgba(230, 57, 70, 0.3);
    position: relative;
}

/* NO SIGNAL indicator */
.kanaly-block-header::before {
    content: '● NO SIGNAL';
    position: absolute;
    top: 50%;
    left: 20px;
    transform: translateY(-50%);
    font-family: 'Courier New', monospace;
    font-size: 0.65rem;
    font-weight: bold;
    color: var(--red);
    animation: recBlink 1.5s steps(1) infinite;
}

.kanaly-block-header::after {
    content: 'CH-00  --:--:--';
    position: absolute;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    font-family: 'Courier New', monospace;
    font-size: 0.65rem;
    color: rgba(29, 53, 87, 0.5);
}

.kanaly-block-close {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: none;
    border: none;
    color: rgba(29, 53, 87, 0.4);
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s;
    z-index: 1;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.kanaly-block-close:hover {
    color: var(--red);
}

/* Content area */
.kanaly-block-content {
    text-align: center;
    padding: var(--space-xl);
    position: relative;
    z-index: 1;
    background: linear-gradient(180deg, #e0d9cc 0%, #d8d0c2 100%);
}

.kanaly-block-icon {
    margin-bottom: var(--space-md);
    animation: lockPulse 2s ease infinite;
    color: var(--red);
}

.kanaly-block-icon svg {
    width: 48px;
    height: 48px;
    filter: drop-shadow(0 0 10px rgba(230, 57, 70, 0.3));
}

@keyframes lockPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

.kanaly-block-title {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 900;
    color: var(--red);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: var(--space-sm);
    text-shadow: none;
}

.kanaly-block-subtitle {
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--navy);
    opacity: 0.7;
    margin-bottom: var(--space-xl);
    line-height: 1.6;
}

.kanaly-block-buttons {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
    flex-wrap: wrap;
}

.kanaly-block-btn {
    padding: var(--space-sm) var(--space-xl);
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: 2px solid;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.kanaly-block-btn.primary {
    background: var(--red);
    color: #fff;
    border-color: var(--red);
    box-shadow: 0 4px 15px rgba(230, 57, 70, 0.3);
}

.kanaly-block-btn.primary:hover {
    background: #c1121f;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(230, 57, 70, 0.4);
}

.kanaly-block-btn.secondary {
    background: transparent;
    color: var(--navy);
    border-color: var(--navy);
}

.kanaly-block-btn.secondary:hover {
    background: var(--navy);
    color: #fff;
}

/* VHS Footer */
.kanaly-block-vhs {
    text-align: center;
    padding: var(--space-sm);
    background: rgba(230, 57, 70, 0.1);
    font-family: 'Courier New', monospace;
    font-size: 0.7rem;
    color: var(--red);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    animation: vhsBlink 1s steps(1) infinite;
}

@keyframes vhsBlink {
    0%, 49% { opacity: 1; }
    50%, 100% { opacity: 0.5; }
}

/* TV Controls decoration */
.kanaly-block-controls {
    display: flex;
    justify-content: center;
    gap: 15px;
    padding-top: 15px;
    margin-top: 5px;
}

.kanaly-block-controls .tv-knob {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #a89878;
    border: 2px solid #c4b498;
}

.kanaly-block-controls .tv-knob.red {
    background: var(--red);
    opacity: 0.6;
}

/* TV Speaker Grille */
.kanaly-block-modal::after {
    content: '';
    position: absolute;
    bottom: 12px;
    right: 20px;
    width: 50px;
    height: 30px;
    background: repeating-linear-gradient(
        90deg,
        #b4a488 0px,
        #b4a488 2px,
        #a49478 2px,
        #a49478 4px
    );
    border-radius: 4px;
    opacity: 0.8;
}

/* Power LED */
.kanaly-block-modal::before {
    content: '';
    position: absolute;
    bottom: 18px;
    left: 20px;
    width: 8px;
    height: 8px;
    background: var(--red);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--red);
    animation: ledPulse 2s ease infinite;
    z-index: 5;
}

/* ========== DARK THEME - Kanaly Block ========== */

[data-theme="dark"] .kanaly-block-overlay {
    background: radial-gradient(ellipse at center, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.95) 100%);
}

[data-theme="dark"] .kanaly-block-modal {
    background: #0f0f0f;
    box-shadow:
        0 0 0 3px #1f1f1f,
        0 0 0 6px #0f0f0f,
        0 25px 50px rgba(0,0,0,0.8),
        inset 0 0 30px rgba(0,0,0,0.5);
}

[data-theme="dark"] .kanaly-block-modal::after {
    background: repeating-linear-gradient(
        90deg,
        #1a1a1a 0px,
        #1a1a1a 2px,
        #2a2a2a 2px,
        #2a2a2a 4px
    );
    opacity: 0.5;
}

[data-theme="dark"] .kanaly-block-modal::before {
    box-shadow: 0 0 15px var(--red), 0 0 30px rgba(230, 57, 70, 0.3);
}

[data-theme="dark"] .kanaly-block-screen {
    background: #050508;
    border-color: #1a1a1a;
    box-shadow: inset 0 0 30px rgba(0,0,0,0.8);
}

[data-theme="dark"] .kanaly-block-screen::before {
    background: radial-gradient(ellipse at center, transparent 0%, rgba(0,0,0,0.3) 100%);
}

[data-theme="dark"] .kanaly-block-screen::after {
    background: repeating-linear-gradient(
        0deg,
        transparent 0px,
        transparent 2px,
        rgba(0, 0, 0, 0.15) 2px,
        rgba(0, 0, 0, 0.15) 4px
    );
}

[data-theme="dark"] .kanaly-block-header {
    background: linear-gradient(180deg, #12121a 0%, #0a0a12 100%);
    border-bottom: 1px solid rgba(230, 57, 70, 0.2);
}

[data-theme="dark"] .kanaly-block-header::after {
    color: rgba(255,255,255,0.5);
}

[data-theme="dark"] .kanaly-block-close {
    color: rgba(255,255,255,0.3);
}

[data-theme="dark"] .kanaly-block-content {
    background: linear-gradient(180deg, #0a0a12 0%, #06060a 100%);
}

[data-theme="dark"] .kanaly-block-title {
    text-shadow: 0 0 20px var(--red-glow);
}

[data-theme="dark"] .kanaly-block-subtitle {
    color: #fff;
}

[data-theme="dark"] .kanaly-block-btn.secondary {
    color: #fff;
    border-color: #fff;
}

[data-theme="dark"] .kanaly-block-btn.secondary:hover {
    background: #fff;
    color: #000;
}

[data-theme="dark"] .kanaly-block-controls .tv-knob {
    background: #2a2a2a;
    border-color: #3a3a3a;
}

[data-theme="dark"] .kanaly-block-vhs {
    background: rgba(230, 57, 70, 0.15);
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
    }

    .hero-right {
        order: -1;
    }

    .retro-tv.horizontal {
        width: 420px;
    }

    .retro-tv.horizontal .floating-channels {
        display: none;
    }

    .retro-tv.horizontal .tv-control-panel {
        flex-wrap: wrap;
        gap: 10px;
    }

    .retro-tv.horizontal .speaker-section {
        display: none;
    }

    .retro-tv.horizontal .brand-section {
        order: 3;
        flex: 1 1 100%;
        padding-top: 8px;
        border-top: 1px solid #2a2520;
    }

    .retro-tv.horizontal .controls-section {
        flex: 1;
        justify-content: center;
    }

    .features-grid {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }

    .features-grid .feature-card {
        flex: 0 1 calc(50% - var(--space-md));
        max-width: calc(50% - var(--space-md));
    }

    .pricing-cards {
        grid-template-columns: 1fr;
        max-width: 400px;
    }

    .price-card.popular {
        transform: none;
    }

    .price-card.popular:hover {
        transform: translateY(-10px);
    }

    .cta-content {
        grid-template-columns: 1fr;
    }

    .cta-right {
        display: none;
    }

    .footer-top {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
    }

    .footer-links {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    body {
        cursor: auto;
    }

    .cursor,
    .cursor-follower {
        display: none;
    }

    .nav-wrapper {
        padding: var(--space-sm) var(--space-md);
        max-width: 100vw;
    }

    .main-nav {
        width: 100%;
    }

    .nav-right {
        gap: var(--space-sm);
        flex-shrink: 1;
        min-width: 0;
    }

    .nav-toggle {
        flex-shrink: 0;
    }

    .nav-center,
    .nav-phone,
    .btn-trial {
        display: none;
    }

    .nav-toggle {
        display: flex;
    }

    .theme-toggle {
        width: 36px;
        height: 36px;
    }

    .theme-icon {
        font-size: 1rem;
    }

    .hero {
        padding: var(--space-2xl) var(--space-md);
        padding-bottom: 80px;
    }

    .scroll-indicator {
        bottom: var(--space-sm);
    }

    .scroll-mouse {
        display: none;
    }

    .scroll-swipe {
        display: block;
    }

    .hero-stats {
        gap: var(--space-lg);
    }

    .stat-num {
        font-size: 1.5rem;
    }

    .retro-tv.horizontal {
        width: 100%;
        max-width: 340px;
    }

    .retro-tv.horizontal .tv-screen-section {
        padding: 12px 12px 10px;
    }

    .retro-tv.horizontal .tv-control-panel {
        padding: 10px 12px;
    }

    .retro-tv.horizontal .speaker-section {
        display: none;
    }

    .retro-tv.horizontal .brand-section {
        order: 3;
        flex: 1 1 100%;
        padding-top: 8px;
        border-top: 1px solid #2a2520;
    }

    .retro-tv.horizontal .controls-section {
        flex: 1;
        justify-content: center;
        gap: 8px;
    }

    .retro-tv.horizontal .knobs-group {
        display: none;
    }

    .retro-tv.horizontal .channel-display {
        width: 32px;
        height: 24px;
        font-size: 0.85rem;
    }

    .retro-tv.horizontal .ch-btn {
        width: 22px;
        height: 24px;
    }

    .retro-tv.horizontal .ch-number {
        font-size: 1rem;
    }

    .retro-tv.horizontal .channel-name {
        font-size: 0.8rem;
    }

    .retro-tv.horizontal .channel-info {
        padding: 8px 12px;
    }

    .retro-tv.horizontal .tv-antenna {
        top: -30px;
    }

    .retro-tv.horizontal .antenna-rod {
        height: 35px;
    }

    .retro-tv.horizontal .antenna-rod.left {
        transform: rotate(-15deg);
    }

    .retro-tv.horizontal .antenna-rod.right {
        transform: rotate(15deg);
    }

    .features-grid {
        flex-direction: column;
    }

    .features-grid .feature-card {
        flex: 0 1 100%;
        max-width: 100%;
    }

    .footer-links {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--space-sm);
    }

    .footer-col h4 {
        font-size: 0.65rem;
        margin-bottom: var(--space-sm);
    }

    .footer-col a {
        font-size: 0.8rem;
        padding: 3px 0;
    }

    .footer-bottom {
        flex-direction: column;
        gap: var(--space-md);
        text-align: center;
    }
}

/* ============================================
   DARK THEME OVERRIDES — COMPLETE
   ============================================ */

/* Base */
[data-theme="dark"] body {
    background: var(--bg-primary);
    color: var(--text-primary);
}

/* Navigation */
[data-theme="dark"] .nav-wrapper.scrolled,
[data-theme="dark"] .nav-wrapper.scrolled-alt {
    background: rgba(10, 10, 15, 0.98);
    border-bottom: 1px solid var(--border-color);
}

[data-theme="dark"] .nav-toggle span {
    background: var(--text-primary);
}

[data-theme="dark"] .nav-link {
    color: #ffffff;
}

[data-theme="dark"] .nav-phone {
    color: #ffffff;
}

[data-theme="dark"] .logo-text {
    color: #ffffff;
}

/* VHS Effect - enhanced for dark */
[data-theme="dark"] .vhs-overlay {
    background: repeating-linear-gradient(
        0deg,
        transparent 0px,
        transparent 2px,
        rgba(255, 71, 87, 0.015) 2px,
        rgba(255, 71, 87, 0.015) 4px
    );
}

[data-theme="dark"] .vhs-overlay::before {
    background: radial-gradient(ellipse at center, transparent 40%, rgba(0, 0, 0, 0.5) 100%);
}

/* Hero Section */
[data-theme="dark"] .hero {
    background: var(--bg-primary);
}

[data-theme="dark"] .hero-title {
    color: var(--text-primary);
}

[data-theme="dark"] .title-dot {
    color: var(--red);
}

[data-theme="dark"] .hero-desc {
    color: var(--text-secondary);
}

[data-theme="dark"] .stat-num {
    color: var(--text-primary);
}

[data-theme="dark"] .stat-label {
    color: var(--text-secondary);
}

[data-theme="dark"] .diagonal-stripe {
    background: var(--red);
    opacity: 0.12;
}

[data-theme="dark"] .circle-decoration {
    border-color: var(--red);
    opacity: 0.1;
}

[data-theme="dark"] .hero-bg {
    background: linear-gradient(135deg, var(--bg-primary) 0%, color-mix(in srgb, var(--red) 8%, var(--bg-primary)) 50%, var(--bg-primary) 100%);
}

/* Buttons */
[data-theme="dark"] .btn-primary {
    background: var(--red);
    color: #fff;
}

[data-theme="dark"] .btn-primary::before {
    background: var(--bg-elevated);
}

[data-theme="dark"] .btn-secondary {
    border-color: #ffffff;
    color: var(--text-primary);
}

[data-theme="dark"] .btn-secondary:hover {
    background: var(--text-primary);
    color: var(--bg-primary);
    border-color: var(--text-primary);
}

[data-theme="dark"] .btn-trial:hover {
    background: var(--red);
    color: #fff;
    outline: 2px solid #ffffff;
    outline-offset: -2px;
}

/* TV Element */
[data-theme="dark"] .tv-frame {
    background: linear-gradient(145deg, #1a1a24 0%, #12121a 50%, #1a1a24 100%);
    box-shadow:
        /* Мягкое свечение для тёмной темы */
        0 25px 60px -12px rgba(0, 0, 0, 0.6),
        0 0 80px rgba(255, 71, 87, 0.12),
        0 0 0 1px rgba(255, 255, 255, 0.03),
        inset 0 2px 0 rgba(255, 255, 255, 0.05),
        inset 0 -2px 0 rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .tv-frame::before {
    background:
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 1px,
            rgba(255, 255, 255, 0.01) 1px,
            rgba(255, 255, 255, 0.01) 2px
        ),
        radial-gradient(circle at 15px 15px, rgba(0,0,0,0.5) 3px, transparent 3px),
        radial-gradient(circle at calc(100% - 15px) 15px, rgba(0,0,0,0.5) 3px, transparent 3px),
        radial-gradient(circle at 15px calc(100% - 25px), rgba(0,0,0,0.5) 3px, transparent 3px),
        radial-gradient(circle at calc(100% - 15px) calc(100% - 25px), rgba(0,0,0,0.5) 3px, transparent 3px);
}

/* Dark theme для RETRO TV HORIZONTAL */
[data-theme="dark"] .retro-tv.horizontal::before {
    background: radial-gradient(
        ellipse at center,
        rgba(255, 71, 87, 0.06) 0%,
        rgba(255, 71, 87, 0.02) 40%,
        transparent 70%
    );
}

[data-theme="dark"] .retro-tv.horizontal .float-channel {
    background: var(--bg-elevated);
    color: var(--text-primary);
    box-shadow:
        0 4px 20px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .retro-tv.horizontal .fc-rec:hover {
    box-shadow: 0 6px 20px rgba(231, 76, 60, 0.3);
}

[data-theme="dark"] .retro-tv.horizontal .fc-onair:hover {
    box-shadow: 0 6px 20px rgba(243, 156, 18, 0.3);
}

[data-theme="dark"] .retro-tv.horizontal .fc-live:hover {
    box-shadow: 0 6px 20px rgba(46, 204, 113, 0.3);
}

[data-theme="dark"] .retro-tv.horizontal .tv-body {
    background: linear-gradient(180deg,
        #1a1815 0%,
        #121110 50%,
        #0a0908 100%
    );
    border-color: #2a2825;
}

[data-theme="dark"] .retro-tv.horizontal .tv-screen-section {
    background: linear-gradient(180deg, #0a0908 0%, #050504 100%);
}

[data-theme="dark"] .retro-tv.horizontal .tv-control-panel {
    background: linear-gradient(180deg, #1a1815 0%, #0f0e0c 100%);
    border-top-color: #2a2825;
}

[data-theme="dark"] .retro-tv.horizontal .speaker-grille {
    background: #030302;
    border-color: #0a0908;
}

[data-theme="dark"] .retro-tv.horizontal .ch-btn {
    background: linear-gradient(180deg, #252220 0%, #1a1815 100%);
    border-color: #333;
}

[data-theme="dark"] .retro-tv.horizontal .ch-btn:hover {
    background: linear-gradient(180deg, #333 0%, #252220 100%);
}

[data-theme="dark"] .retro-tv.horizontal .channel-display {
    background: #030302;
    border-color: #1a1815;
}

[data-theme="dark"] .retro-tv.horizontal .knob {
    background: radial-gradient(circle at 30% 30%, #333 0%, #151515 100%);
    border-color: #2a2825;
}

[data-theme="dark"] .retro-tv.horizontal .power-btn {
    background: linear-gradient(180deg, #1a1815 0%, #0a0908 100%);
    border-color: #2a2825;
}

[data-theme="dark"] .retro-tv.horizontal .tv-screen {
    box-shadow:
        inset 0 0 60px rgba(0, 0, 0, 0.9),
        inset 0 0 120px rgba(0, 0, 0, 0.5),
        0 0 40px rgba(0, 255, 136, 0.1);
}

[data-theme="dark"] .retro-tv.horizontal .screen-content {
    background: linear-gradient(135deg, #0a1a0a 0%, #050a05 100%);
}

[data-theme="dark"] .tv-screen {
    box-shadow:
        inset 0 0 50px rgba(0, 0, 0, 0.8),
        inset 0 0 100px rgba(0, 0, 0, 0.4),
        0 0 40px rgba(0, 255, 136, 0.12);
}

[data-theme="dark"] .screen-content {
    background: linear-gradient(135deg, #0a1a0a 0%, #050a05 100%);
}

[data-theme="dark"] .tv-screen {
    box-shadow:
        inset 0 0 80px rgba(0, 0, 0, 0.6),
        inset 0 0 30px rgba(0, 0, 0, 0.4),
        0 0 40px rgba(100, 150, 100, 0.15);
}

[data-theme="dark"] .tv-screen::after {
    background:
        linear-gradient(90deg, rgba(255, 50, 50, 0.06) 0%, transparent 5%, transparent 95%, rgba(50, 255, 255, 0.06) 100%),
        linear-gradient(0deg, rgba(255, 50, 50, 0.04) 0%, transparent 5%, transparent 95%, rgba(50, 255, 255, 0.04) 100%),
        radial-gradient(ellipse at center, transparent 30%, rgba(0, 0, 0, 0.5) 100%);
    box-shadow: inset 0 0 60px rgba(100, 150, 100, 0.1);
}

[data-theme="dark"] .tv-noise {
    opacity: 0.15;
}

[data-theme="dark"] .tv-btn {
    background: var(--bg-card);
}

[data-theme="dark"] .tv-dial {
    background: linear-gradient(145deg, #3a3a3a 0%, #252525 50%, #1a1a1a 100%);
    border-color: #444;
}

[data-theme="dark"] .tv-wood-panel {
    background:
        repeating-linear-gradient(
            90deg,
            #3a2a1a 0px,
            #4a3a2a 2px,
            #3a2a1a 4px
        ),
        linear-gradient(180deg, #4a3a2a 0%, #2a1a0a 100%);
}

[data-theme="dark"] .tv-brand {
    background: linear-gradient(180deg, #222 0%, #111 100%);
    border-color: #333;
}

[data-theme="dark"] .tv-power-btn {
    background: linear-gradient(180deg, #333 0%, #1a1a1a 100%);
    border-color: #444;
}

[data-theme="dark"] .mini-knob {
    background: linear-gradient(145deg, #444 0%, #222 100%);
    border-color: #333;
}

[data-theme="dark"] .ch-btn {
    background: linear-gradient(180deg, #333 0%, #1a1a1a 100%);
    border-color: #444;
}

[data-theme="dark"] .grille-line {
    background: linear-gradient(90deg, #1a1a1a 0%, #333 50%, #1a1a1a 100%);
}

[data-theme="dark"] .antenna-rod {
    background: linear-gradient(180deg, #555 0%, #333 100%);
}

[data-theme="dark"] .antenna-base {
    background: linear-gradient(180deg, #333 0%, #1a1a1a 100%);
}

[data-theme="dark"] .float-channel {
    background: var(--bg-card);
    border-color: var(--border-color);
    color: var(--text-primary);
}

[data-theme="dark"] .fc-rec:hover {
    box-shadow: 0 8px 30px rgba(231, 76, 60, 0.3);
    border-color: #e74c3c;
}

[data-theme="dark"] .fc-onair:hover {
    box-shadow: 0 8px 30px rgba(243, 156, 18, 0.3);
    border-color: #f39c12;
}

[data-theme="dark"] .fc-live:hover {
    box-shadow: 0 8px 30px rgba(46, 204, 113, 0.3);
    border-color: #2ecc71;
}

/* Features Section */
[data-theme="dark"] .features {
    background: var(--bg-secondary);
}

[data-theme="dark"] .section-title {
    color: var(--text-primary);
}

[data-theme="dark"] .feature-card {
    background: var(--bg-card);
    border-color: var(--border-color);
}

[data-theme="dark"] .feature-card:hover {
    border-color: var(--red);
    box-shadow: 0 10px 40px rgba(255, 71, 87, 0.1);
}

[data-theme="dark"] .feature-card h3 {
    color: var(--text-primary);
}

[data-theme="dark"] .feature-card p {
    color: var(--text-secondary);
}

[data-theme="dark"] .feature-card.featured {
    background: linear-gradient(135deg, var(--red) 0%, #C92A3A 100%);
    border-color: var(--red);
}

[data-theme="dark"] .feature-card.featured h3,
[data-theme="dark"] .feature-card.featured p {
    color: #fff;
}

/* Pricing Section */
[data-theme="dark"] .pricing-preview {
    background: var(--bg-primary);
}

[data-theme="dark"] .price-stripe {
    opacity: 0.1;
}

[data-theme="dark"] .section-desc {
    color: var(--text-secondary);
}

[data-theme="dark"] .price-card {
    background: var(--bg-card);
    border-color: var(--border-color);
}

[data-theme="dark"] .price-card:hover {
    border-color: var(--red);
    box-shadow: 15px 15px 0 var(--red), 0 0 40px rgba(255, 71, 87, 0.15);
}

[data-theme="dark"] .price-tier {
    color: var(--text-secondary);
}

[data-theme="dark"] .price-amount {
    color: var(--text-primary);
}

[data-theme="dark"] .price-features li {
    border-color: var(--border-color);
    color: var(--text-secondary);
}

[data-theme="dark"] .price-btn {
    background: var(--bg-elevated);
    color: var(--text-primary);
}

[data-theme="dark"] .price-btn:hover {
    background: var(--red);
    color: #fff;
}

[data-theme="dark"] .price-card.popular {
    background: linear-gradient(135deg, var(--red) 0%, #C92A3A 100%);
    border-color: var(--red);
    box-shadow: 0 0 60px rgba(255, 71, 87, 0.2);
}

[data-theme="dark"] .price-card.popular .price-tier,
[data-theme="dark"] .price-card.popular .price-amount,
[data-theme="dark"] .price-card.popular .price-features li {
    color: rgba(255, 255, 255, 0.9);
}

[data-theme="dark"] .price-card.popular .price-features li {
    border-color: rgba(255, 255, 255, 0.2);
}

[data-theme="dark"] .price-card.popular .price-btn {
    background: #fff;
    color: var(--red);
}

[data-theme="dark"] .price-card.popular .price-btn:hover {
    background: var(--bg-primary);
    color: var(--text-primary);
}

/* Platforms Section */
[data-theme="dark"] .platforms {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

[data-theme="dark"] .platforms .section-number {
    color: var(--red);
}

[data-theme="dark"] .platforms .section-title {
    color: var(--text-primary);
}

[data-theme="dark"] .platform-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

[data-theme="dark"] .platform-item .platform-icon {
    stroke: var(--text-primary);
    color: var(--text-primary);
}

[data-theme="dark"] .platform-item:hover {
    border-color: var(--red);
    background: var(--bg-elevated);
}

/* CTA Section - stays red */
[data-theme="dark"] .cta-section {
    background: linear-gradient(135deg, var(--red) 0%, #B91C2C 100%);
}

[data-theme="dark"] .cta-title .accent {
    color: rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .btn-cta {
    background: #fff;
    color: var(--red);
}

[data-theme="dark"] .btn-cta:hover {
    background: var(--bg-primary);
    color: var(--text-primary);
}

/* Footer */
[data-theme="dark"] .main-footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
}

[data-theme="dark"] .footer-top {
    border-color: var(--border-color);
}

[data-theme="dark"] .footer-brand p,
[data-theme="dark"] .footer-col a {
    color: var(--text-secondary);
}

[data-theme="dark"] .footer-col h4 {
    color: var(--text-secondary);
}

[data-theme="dark"] .footer-col a:hover {
    color: var(--text-primary);
}

[data-theme="dark"] .footer-vhs span {
    opacity: 0.5;
    color: var(--text-secondary);
}

[data-theme="dark"] .footer-vhs span:hover {
    opacity: 1;
    color: var(--red);
    border-color: var(--red);
    text-shadow: 0 0 10px var(--red-glow);
}

/* Scroll Indicator */
[data-theme="dark"] .scroll-mouse {
    border-color: var(--text-secondary);
}

[data-theme="dark"] .scroll-wheel {
    background: var(--text-secondary);
}

[data-theme="dark"] .scroll-swipe svg {
    stroke: var(--text-secondary);
}

[data-theme="dark"] .scroll-indicator:hover .scroll-mouse {
    border-color: var(--red);
}

[data-theme="dark"] .scroll-indicator:hover .scroll-wheel {
    background: var(--red);
}

/* Smooth transitions */
body,
.nav-wrapper,
.hero,
.features,
.pricing-preview,
.platforms,
.main-footer,
.feature-card,
.price-card,
.tv-frame,
.float-channel,
.btn-primary,
.btn-secondary,
.btn-cta {
    transition: background 0.4s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

/* ============================================
   PRELOADER
   ============================================ */

.preloader {
    position: fixed;
    inset: 0;
    background: var(--bg-primary);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
}

.preloader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* Page transition overlay */
.page-transition {
    position: fixed;
    inset: 0;
    background: var(--bg-primary);
    z-index: 99998;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease-out, visibility 0.3s ease-out;
}

.page-transition.active {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
}

/* Simple Fade Transition */
body.page-leaving {
    animation: fadeOut 0.3s ease-out forwards;
    pointer-events: none;
}

body.page-leaving * {
    pointer-events: none !important;
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

.preloader-content {
    text-align: center;
}

.preloader-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-xl);
}

.preloader-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    background: var(--red);
    color: #fff;
    font-size: 1.5rem;
    animation: preloaderPulse 1.5s ease infinite;
    font-variant-emoji: text;
    text-rendering: geometricPrecision;
}

.preloader-text {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 900;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

@keyframes preloaderPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Geometric Progress Bar */
.preloader-bar {
    display: flex;
    gap: 4px;
    justify-content: center;
    margin: 0 auto var(--space-md);
    position: relative;
}

/* Decorative brackets */
.preloader-bar::before,
.preloader-bar::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 8px;
    height: 20px;
    border: 2px solid var(--red);
    transform: translateY(-50%);
    opacity: 0.5;
}

.preloader-bar::before {
    left: -20px;
    border-right: none;
}

.preloader-bar::after {
    right: -20px;
    border-left: none;
}

/* Individual segments */
.preloader-progress {
    display: flex;
    gap: 4px;
}

.preloader-segment {
    width: 16px;
    height: 8px;
    background: var(--border-color);
    position: relative;
    clip-path: polygon(15% 0%, 100% 0%, 85% 100%, 0% 100%);
    transition: all 0.2s ease;
}

.preloader-segment::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--red);
    transform: scaleX(0);
    transform-origin: left;
    clip-path: polygon(15% 0%, 100% 0%, 85% 100%, 0% 100%);
}

/* Sequential fill animation for each segment */
.preloader-segment:nth-child(1)::before { animation: segmentFill 1.5s ease-out 0s forwards; }
.preloader-segment:nth-child(2)::before { animation: segmentFill 1.5s ease-out 0.1s forwards; }
.preloader-segment:nth-child(3)::before { animation: segmentFill 1.5s ease-out 0.2s forwards; }
.preloader-segment:nth-child(4)::before { animation: segmentFill 1.5s ease-out 0.3s forwards; }
.preloader-segment:nth-child(5)::before { animation: segmentFill 1.5s ease-out 0.4s forwards; }
.preloader-segment:nth-child(6)::before { animation: segmentFill 1.5s ease-out 0.5s forwards; }
.preloader-segment:nth-child(7)::before { animation: segmentFill 1.5s ease-out 0.6s forwards; }
.preloader-segment:nth-child(8)::before { animation: segmentFill 1.5s ease-out 0.7s forwards; }
.preloader-segment:nth-child(9)::before { animation: segmentFill 1.5s ease-out 0.8s forwards; }
.preloader-segment:nth-child(10)::before { animation: segmentFill 1.5s ease-out 0.9s forwards; }

@keyframes segmentFill {
    0% {
        transform: scaleX(0);
        box-shadow: none;
    }
    50% {
        transform: scaleX(1);
        box-shadow: 0 0 10px var(--red);
    }
    100% {
        transform: scaleX(1);
        box-shadow: 0 0 5px var(--red);
    }
}

/* Glitch effect on active segments */
.preloader-segment.active {
    animation: segmentGlitch 0.1s steps(2) infinite;
}

@keyframes segmentGlitch {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

.preloader-status {
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.15em;
}

/* VHS Scan effect in preloader */
.preloader::before {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        0deg,
        transparent 0px,
        transparent 2px,
        rgba(255, 71, 87, 0.02) 2px,
        rgba(255, 71, 87, 0.02) 4px
    );
    pointer-events: none;
    animation: scanLines 0.1s steps(4) infinite;
}

@keyframes scanLines {
    0% { transform: translateY(0); }
    100% { transform: translateY(4px); }
}

/* Dark theme preloader */
[data-theme="dark"] .preloader {
    background: var(--bg-primary);
}

[data-theme="dark"] .preloader::before {
    background: repeating-linear-gradient(
        0deg,
        transparent 0px,
        transparent 2px,
        rgba(255, 71, 87, 0.03) 2px,
        rgba(255, 71, 87, 0.03) 4px
    );
}

[data-theme="dark"] .preloader-bar::before,
[data-theme="dark"] .preloader-bar::after {
    border-color: var(--red);
    opacity: 0.7;
}

[data-theme="dark"] .preloader-segment {
    background: var(--bg-elevated);
}

[data-theme="dark"] .preloader-segment::before {
    box-shadow: 0 0 15px var(--red);
}

/* ============================================
   3D TILT EFFECT FOR CARDS
   ============================================ */

.tilt-card {
    transform-style: preserve-3d;
    transition: transform 0.1s ease-out;
}

.tilt-card .tilt-inner {
    transform: translateZ(30px);
}

/* ============================================
   ANIMATED COUNTERS
   ============================================ */

.stat-num[data-count] {
    display: inline-block;
}

/* ============================================
   PARALLAX ELEMENTS
   ============================================ */

.parallax-element {
    will-change: transform;
    transition: transform 0.1s ease-out;
}

/* ============================================
   VHS GLITCH EFFECT
   ============================================ */

.glitch-text {
    position: relative;
}

.glitch-text::before,
.glitch-text::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
}

.glitch-text::before {
    color: #0ff;
    z-index: -1;
}

.glitch-text::after {
    color: #f0f;
    z-index: -2;
}

.glitch-text.glitching::before {
    animation: glitchTop 0.3s ease;
    opacity: 0.8;
}

.glitch-text.glitching::after {
    animation: glitchBottom 0.3s ease;
    opacity: 0.8;
}

@keyframes glitchTop {
    0%, 100% { transform: translate(0); opacity: 0; }
    20% { transform: translate(-3px, -2px); opacity: 0.8; }
    40% { transform: translate(3px, 2px); opacity: 0.8; }
    60% { transform: translate(-2px, 1px); opacity: 0.8; }
    80% { transform: translate(2px, -1px); opacity: 0.8; }
}

@keyframes glitchBottom {
    0%, 100% { transform: translate(0); opacity: 0; }
    20% { transform: translate(3px, 2px); opacity: 0.8; }
    40% { transform: translate(-3px, -2px); opacity: 0.8; }
    60% { transform: translate(2px, -1px); opacity: 0.8; }
    80% { transform: translate(-2px, 1px); opacity: 0.8; }
}

/* Scanline during glitch */
.glitch-text.glitching::before {
    clip-path: polygon(0 0, 100% 0, 100% 45%, 0 45%);
}

.glitch-text.glitching::after {
    clip-path: polygon(0 55%, 100% 55%, 100% 100%, 0 100%);
}



/* ============================================
   TYPING EFFECT
   ============================================ */

.typing-text {
    display: inline;
}

.typing-cursor {
    display: inline-block;
    width: 3px;
    height: 1em;
    background: var(--red);
    margin-left: 2px;
    animation: cursorBlink 0.8s ease infinite;
    vertical-align: text-bottom;
}

@keyframes cursorBlink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

/* ============================================
   ENHANCED HOVER STATES
   ============================================ */

.feature-card,
.price-card {
    transform-style: preserve-3d;
    perspective: 1000px;
    position: relative;
}

.feature-card:hover,
.price-card:hover {
    z-index: 10;
}

/* ============================================
   ANIMATED BORDER GLOW
   ============================================ */

.feature-card::before,
.price-card::before {
    content: '';
    position: absolute;
    inset: -1px;
    background: linear-gradient(
        90deg,
        transparent,
        transparent,
        rgba(230, 57, 70, 0.5),
        rgba(230, 57, 70, 0.5),
        transparent,
        transparent
    );
    background-size: 400% 100%;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.feature-card:hover::before,
.price-card:hover::before {
    opacity: 0.6;
    animation: borderGlow 3s linear infinite;
}

@keyframes borderGlow {
    0% { background-position: 100% 0; }
    100% { background-position: -100% 0; }
}

/* Glow shadow on hover */
.feature-card:hover {
    box-shadow: 0 0 30px rgba(230, 57, 70, 0.2);
}

.price-card:hover {
    box-shadow: 15px 15px 0 var(--red), 0 0 40px rgba(230, 57, 70, 0.15);
}

[data-theme="dark"] .feature-card:hover,
[data-theme="dark"] .price-card:hover {
    box-shadow: 0 0 40px rgba(255, 71, 87, 0.25);
}

/* ============================================
   THEME TRANSITION EFFECT
   ============================================ */

.theme-transition-overlay {
    position: fixed;
    inset: 0;
    z-index: 99998;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.theme-transition-overlay.active {
    opacity: 1;
}

.theme-transition-overlay::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at var(--tx, 50%) var(--ty, 50%), transparent 0%, var(--bg-primary) 100%);
    animation: themeWipe 0.6s ease-out forwards;
}

@keyframes themeWipe {
    0% {
        clip-path: circle(0% at var(--tx, 50%) var(--ty, 50%));
    }
    100% {
        clip-path: circle(150% at var(--tx, 50%) var(--ty, 50%));
    }
}

/* ============================================
   VHS STYLE MODAL
   ============================================ */

.vhs-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.vhs-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.vhs-modal {
    background: var(--bg-primary);
    border: 3px solid var(--red);
    padding: 0;
    max-width: 400px;
    width: 90%;
    position: relative;
    transform: scale(0.9) translateY(20px);
    transition: transform 0.3s ease;
    box-shadow: 0 0 60px rgba(230, 57, 70, 0.3), 20px 20px 0 rgba(0, 0, 0, 0.3);
}

.vhs-modal-overlay.active .vhs-modal {
    transform: scale(1) translateY(0);
}

.vhs-modal-header {
    background: var(--red);
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.vhs-modal-header h3 {
    font-family: var(--font-display);
    font-size: 0.8rem;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    display: flex;
    align-items: center;
    gap: 8px;
}

.vhs-modal-rec {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-display);
    font-size: 0.7rem;
    color: #fff;
}

.vhs-modal-rec::before {
    content: '';
    width: 8px;
    height: 8px;
    background: #fff;
    border-radius: 50%;
    animation: recBlink 1s steps(1) infinite;
}

@keyframes recBlink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0.3; }
}

.vhs-modal-body {
    padding: 30px;
    text-align: center;
    position: relative;
}

.vhs-modal-body::before {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        0deg,
        transparent 0px,
        transparent 2px,
        rgba(0, 0, 0, 0.03) 2px,
        rgba(0, 0, 0, 0.03) 4px
    );
    pointer-events: none;
}

.vhs-modal-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    background: var(--red);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #fff;
}

.vhs-modal-title {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.vhs-modal-number {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 900;
    color: var(--red);
    letter-spacing: 0.02em;
    margin-bottom: 15px;
    text-shadow: 2px 2px 0 rgba(230, 57, 70, 0.2);
    white-space: nowrap;
}

.vhs-modal-hours {
    font-family: var(--font-body);
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.6;
}

.vhs-modal-hours strong {
    color: var(--text-primary);
    font-weight: 600;
}

/* Fix cursor on modal */
.vhs-modal-overlay,
.vhs-modal-overlay * {
    cursor: none !important;
}

.vhs-modal-footer {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.vhs-modal-btn {
    padding: 12px 24px;
    font-family: var(--font-display);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: 2px solid var(--border-color);
    background: transparent;
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.vhs-modal-btn:hover {
    border-color: var(--red);
    color: var(--red);
}

.vhs-modal-btn.primary {
    background: var(--red);
    border-color: var(--red);
    color: #fff;
}

.vhs-modal-btn.primary:hover {
    background: var(--text-primary);
    border-color: var(--text-primary);
}

[data-theme="dark"] .vhs-modal {
    box-shadow: 0 0 80px rgba(255, 71, 87, 0.4), 20px 20px 0 rgba(0, 0, 0, 0.5);
}

[data-theme="dark"] .vhs-modal-body::before {
    background: repeating-linear-gradient(
        0deg,
        transparent 0px,
        transparent 2px,
        rgba(255, 255, 255, 0.02) 2px,
        rgba(255, 255, 255, 0.02) 4px
    );
}

/* ============================================
   LIVE CHAT WIDGET — V3 Refined Minimal
   ============================================ */

/* ===== Container ===== */
.live-chat-container {
    position: fixed;
    bottom: 0;
    right: 0;
    z-index: 999;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

/* ===== FAB Button ===== */
.live-chat-btn {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: var(--red);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: fixed;
    bottom: 24px;
    right: 24px;
    box-shadow: 0 8px 32px rgba(230, 57, 70, 0.3);
    transition: all 0.25s;
    z-index: 1000;
}

.live-chat-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(230, 57, 70, 0.4);
}

.live-chat-btn svg {
    width: 24px;
    height: 24px;
    fill: #fff;
    transition: transform 0.3s;
}

.live-chat-btn::after {
    content: none;
}

.live-chat-btn .chat-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    width: 18px;
    height: 18px;
    background: #22c55e;
    border-radius: 50%;
    border: 3px solid var(--bg-primary);
    font-size: 0.62rem;
    font-weight: 700;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: chatBadgePulse 2s ease infinite;
}

@keyframes chatBadgePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15); }
}

/* ===== Chat Window ===== */
.live-chat-window {
    width: 0;
    max-height: 0;
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(24px) saturate(1.4);
    -webkit-backdrop-filter: blur(24px) saturate(1.4);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    opacity: 0;
    transform-origin: bottom right;
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1) 0.1s,
                opacity 0.2s ease;
    position: fixed;
    bottom: 90px;
    right: 24px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.04),
                0 20px 60px rgba(0, 0, 0, 0.1),
                inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.live-chat-window::before,
.live-chat-window::after {
    display: none;
}

/* ===== OPEN STATE ===== */
.live-chat-container.chat-open .live-chat-window {
    width: 400px;
    height: calc(100vh - 120px);
    max-height: 720px;
    opacity: 1;
}

.live-chat-container.chat-open .live-chat-btn {
    width: 56px;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(230, 57, 70, 0.3);
    border: none;
    animation: none;
}

.live-chat-container.chat-open .live-chat-btn svg {
    transform: rotate(0);
}

.live-chat-container.chat-open .live-chat-btn .chat-badge {
    display: none;
}

.live-chat-container.chat-open .live-chat-btn::after {
    content: none;
}

/* ===== Header ===== */
.chat-header {
    padding: 18px 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.3);
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.25s ease 0.1s;
}

.live-chat-container.chat-open .chat-header {
    opacity: 1;
    transform: translateY(0);
}

.chat-header-info {
    display: flex;
    align-items: center;
    gap: 14px;
}

.chat-avatar {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: var(--red);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 800;
    color: #fff;
    position: relative;
    box-shadow: 0 2px 8px rgba(230, 57, 70, 0.2);
}

.chat-avatar::after {
    content: '';
    position: absolute;
    bottom: -1px;
    right: -1px;
    width: 10px;
    height: 10px;
    background: #22c55e;
    border-radius: 50%;
    border: 2px solid var(--bg-secondary);
}

.chat-header-text h4 {
    font-family: var(--font-display);
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1px;
}

.chat-status {
    font-family: var(--font-mono, 'JetBrains Mono', monospace);
    font-size: 0.68rem;
    color: #22c55e;
}

.chat-header-actions {
    display: flex;
    gap: 2px;
}

.chat-header-actions button {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s;
    font-size: 0.98rem;
    opacity: 0.5;
}

.chat-header-actions button:hover {
    background: rgba(0, 0, 0, 0.04);
    opacity: 1;
}

.chat-header-actions button svg {
    width: 16px;
    height: 16px;
}

.chat-fullscreen-btn svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    fill: none;
}

.chat-close {
    font-size: 1.2rem !important;
    line-height: 0.5;
}

.chat-sound-toggle {
    font-size: 0.95rem !important;
}

.chat-sound-toggle.muted {
    opacity: 0.3 !important;
}

/* ===== Quick Actions ===== */
.chat-quick-actions {
    padding: 0;
    border-bottom: 1px solid var(--border-color);
    opacity: 0;
    transform: translateY(-6px);
    transition: all 0.25s ease 0.15s;
}

.live-chat-container.chat-open .chat-quick-actions {
    opacity: 1;
    transform: translateY(0);
}

.chat-quick-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    padding: 10px;
    background: transparent;
    border: none;
    font-family: var(--font-mono, 'JetBrains Mono', monospace);
    font-size: 0.7rem;
    color: var(--text-secondary);
    cursor: pointer;
    letter-spacing: 0.08em;
    transition: color 0.2s;
}

.chat-quick-toggle:hover {
    color: var(--text-primary);
}

.chat-quick-toggle svg {
    transition: transform 0.3s;
}

.chat-quick-toggle.active svg {
    transform: rotate(180deg);
}

.chat-quick-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    padding: 0 16px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1), padding 0.35s;
}

.chat-quick-list.active {
    max-height: 120px;
    padding: 0 16px 12px;
}

.chat-quick-btn {
    padding: 8px 6px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    font-family: var(--font-body);
    font-size: 0.88rem;
    color: var(--text-secondary);
    cursor: pointer;
    text-align: center;
    transition: all 0.15s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.chat-quick-btn:hover {
    border-color: rgba(230, 57, 70, 0.3);
    color: var(--red);
    background: rgba(230, 57, 70, 0.04);
}

.chat-quick-btn .q-icon {
    font-size: 1.1rem;
}

.chat-quick-btn .q-text {
    font-size: 0.72rem;
}

/* ===== Messages ===== */
.chat-messages {
    flex: 1;
    padding: 20px 18px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 14px;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    min-height: 0;
    opacity: 0;
    transform: translateY(4px);
    transition: all 0.25s ease 0.2s;
}

.live-chat-container.chat-open .chat-messages {
    opacity: 1;
    transform: translateY(0);
}

.chat-messages::-webkit-scrollbar { display: none; }

.chat-date-pill {
    align-self: center;
    font-family: var(--font-mono, 'JetBrains Mono', monospace);
    font-size: 0.65rem;
    color: var(--text-secondary);
    background: var(--bg-primary);
    padding: 4px 14px;
    border-radius: 10px;
    letter-spacing: 0.05em;
}

.chat-message {
    max-width: 80%;
    animation: chatMsgIn 0.3s ease backwards;
}

@keyframes chatMsgIn {
    from { opacity: 0; transform: translateY(6px); }
}

.chat-message.bot { align-self: flex-start; }
.chat-message.user { align-self: flex-end; }

.chat-bubble {
    padding: 14px 18px;
    font-size: 1.02rem;
    line-height: 1.55;
}

.chat-message.bot .chat-bubble {
    background: rgba(241, 250, 238, 0.7);
    border: 1px solid rgba(29, 53, 87, 0.08);
    border-radius: 4px 18px 18px 18px;
    color: var(--text-primary);
}

.chat-message.user .chat-bubble {
    background: rgba(230, 57, 70, 0.88);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 18px 4px 18px 18px;
    color: #fff;
    box-shadow: 0 4px 16px rgba(230, 57, 70, 0.2);
}

.chat-message-time {
    display: block;
    font-family: var(--font-mono, 'JetBrains Mono', monospace);
    font-size: 0.62rem;
    color: var(--text-secondary);
    margin-top: 5px;
    padding: 0 4px;
    opacity: 0.6;
}

.chat-message.user .chat-message-time {
    text-align: right;
}

.chat-message-image {
    max-width: 200px;
    max-height: 200px;
    border-radius: 12px;
    cursor: pointer;
    display: block;
    margin-bottom: 4px;
}

/* Typing indicator with mini avatar */
.chat-typing {
    align-self: flex-start;
    display: flex;
    align-items: center;
    gap: 10px;
}

.chat-typing-avatar {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--red);
}

.chat-typing-dots {
    display: flex;
    gap: 4px;
    padding: 12px 16px;
    background: var(--bg-primary);
    border-radius: 4px 14px 14px 14px;
}

.chat-typing-dot {
    width: 6px;
    height: 6px;
    background: var(--text-secondary);
    border-radius: 50%;
    animation: chatTypePulse 1.4s ease infinite;
}

.chat-typing-dot:nth-child(2) { animation-delay: 0.15s; }
.chat-typing-dot:nth-child(3) { animation-delay: 0.3s; }

@keyframes chatTypePulse {
    0%, 70%, 100% { opacity: 0.3; transform: scale(0.85); }
    35% { opacity: 1; transform: scale(1); }
}

/* ===== Image Preview ===== */
.chat-image-preview {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px;
    border-top: 1px solid var(--border-color);
}

.chat-image-preview img {
    max-width: 80px;
    max-height: 60px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.chat-image-remove {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(230, 57, 70, 0.1);
    border: none;
    color: var(--red);
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ===== Input Area — Telegram style ===== */
.chat-input-area {
    padding: 14px 16px;
    opacity: 0;
    transform: translateY(8px);
    transition: all 0.25s ease 0.25s;
}

.live-chat-container.chat-open .chat-input-area {
    opacity: 1;
    transform: translateY(0);
}

.chat-input-wrapper {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.35);
    border-radius: 16px;
    padding: 5px 5px 5px 10px;
    border: 1px solid var(--border-color);
    transition: border-color 0.3s, box-shadow 0.3s;
    position: relative;
}

.chat-input-wrapper:focus-within {
    border-color: rgba(230, 57, 70, 0.25);
    box-shadow: 0 0 0 3px rgba(230, 57, 70, 0.06);
}

.chat-attach-btn {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: transparent;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-secondary);
    transition: color 0.15s;
    flex-shrink: 0;
    opacity: 0.5;
}

.chat-attach-btn:hover { color: var(--red); opacity: 1; }

.chat-attach-btn svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    fill: none;
}

.chat-emoji-btn {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: transparent;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    color: var(--text-secondary);
    opacity: 0.5;
    transition: opacity 0.15s, color 0.15s;
}

.chat-emoji-btn:hover { opacity: 1; color: var(--red); }

.chat-emoji-btn svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    fill: none;
}

.chat-input {
    flex: 1;
    padding: 7px 10px;
    background: transparent;
    border: none;
    font-family: var(--font-body);
    font-size: 1.02rem;
    color: var(--text-primary);
    resize: none;
    min-height: 32px;
    max-height: 120px;
    line-height: 1.4;
    outline: none;
}

.chat-input::placeholder {
    color: var(--text-secondary);
    opacity: 0.6;
}

.chat-input::-webkit-scrollbar { width: 0; }
.chat-input { scrollbar-width: none; }

.chat-send {
    width: 34px;
    height: 34px;
    border-radius: 12px;
    background: var(--red);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    opacity: 0;
    transform: scale(0.5);
    width: 0;
    padding: 0;
    overflow: hidden;
    transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.chat-send.visible {
    width: 34px;
    opacity: 1;
    transform: scale(1);
    margin-left: 5px;
}

.chat-send:hover {
    background: #d63040;
    box-shadow: 0 4px 16px rgba(230, 57, 70, 0.2);
}

.chat-send svg {
    width: 16px;
    height: 16px;
    fill: #fff;
    margin-left: 1px;
}

/* Powered by */
.chat-powered {
    text-align: center;
    padding: 0 0 10px;
    font-family: var(--font-mono, 'JetBrains Mono', monospace);
    font-size: 0.58rem;
    color: var(--text-secondary);
    letter-spacing: 0.1em;
    opacity: 0.4;
}

.chat-powered span { color: var(--red); }

/* ===== Emoji Picker ===== */
.emoji-picker {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 0;
    width: 300px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    z-index: 200;
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: all 0.2s;
}

.emoji-picker.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.emoji-picker-header {
    padding: 10px;
    border-bottom: 1px solid var(--border-color);
}

.emoji-tabs {
    display: flex;
    gap: 2px;
}

.emoji-tab {
    flex: 1;
    padding: 6px;
    background: transparent;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.15s;
    text-align: center;
}

.emoji-tab:hover { background: rgba(0, 0, 0, 0.04); }
.emoji-tab.active { background: rgba(230, 57, 70, 0.08); }

.emoji-picker-content {
    max-height: 200px;
    overflow-y: auto;
    padding: 10px;
    scrollbar-width: thin;
    scrollbar-color: var(--border-color) transparent;
}

.emoji-picker-content::-webkit-scrollbar { width: 4px; }
.emoji-picker-content::-webkit-scrollbar-thumb { background: var(--border-color); border-radius: 4px; }

.emoji-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 2px;
}

.emoji-item {
    padding: 6px;
    background: transparent;
    border: none;
    border-radius: 6px;
    font-size: 1.15rem;
    cursor: pointer;
    transition: background 0.15s;
    text-align: center;
}

.emoji-item:hover { background: rgba(0, 0, 0, 0.05); }

/* ===== Name form (inline) ===== */
.chat-name-form-msg {
    max-width: 90% !important;
}

.chat-name-form-msg .chat-name-input,
.chat-name-form-msg .chat-email-input {
    border-radius: 8px !important;
}

/* ===== FULLSCREEN ===== */
.live-chat-container.chat-fullscreen {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
}

.live-chat-container.chat-fullscreen .live-chat-window {
    position: static;
    width: 100%;
    max-width: 1000px;
    height: calc(100vh - 60px);
    max-height: none;
    border-radius: 20px;
    box-shadow: 0 32px 80px rgba(0, 0, 0, 0.3);
}

.live-chat-container.chat-fullscreen .live-chat-btn {
    display: none;
}

.live-chat-container.chat-fullscreen .chat-message {
    max-width: 70%;
}

.live-chat-container.chat-fullscreen .chat-bubble {
    font-size: 1.05rem;
}

.live-chat-container.chat-fullscreen .chat-input {
    font-size: 1rem;
}

.live-chat-container.chat-fullscreen .chat-fullscreen-btn svg {
    transform: rotate(180deg);
}

/* ===== DARK THEME ===== */
[data-theme="dark"] .live-chat-btn {
    box-shadow: 0 8px 32px rgba(230, 57, 70, 0.25);
}

[data-theme="dark"] .live-chat-btn .chat-badge {
    border-color: var(--bg-primary);
}

[data-theme="dark"] .live-chat-window {
    background: rgba(16, 16, 24, 0.72);
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5),
                inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

[data-theme="dark"] .chat-header {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.06);
}

[data-theme="dark"] .chat-avatar::after {
    border-color: var(--bg-elevated, #1A1A25);
}

[data-theme="dark"] .chat-header-actions button:hover {
    background: rgba(255, 255, 255, 0.06);
}

[data-theme="dark"] .chat-quick-btn {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.06);
}

[data-theme="dark"] .chat-quick-btn:hover {
    background: rgba(230, 57, 70, 0.08);
    border-color: rgba(230, 57, 70, 0.3);
}

[data-theme="dark"] .chat-date-pill {
    background: rgba(255, 255, 255, 0.04);
}

[data-theme="dark"] .chat-message.bot .chat-bubble {
    background: rgba(241, 250, 238, 0.08);
    border-color: rgba(241, 250, 238, 0.1);
}

[data-theme="dark"] .chat-typing-avatar {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.06);
}

[data-theme="dark"] .chat-typing-dots {
    background: rgba(255, 255, 255, 0.04);
}

[data-theme="dark"] .chat-input-wrapper {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .chat-input-wrapper:focus-within {
    border-color: rgba(230, 57, 70, 0.3);
    box-shadow: 0 0 0 3px rgba(230, 57, 70, 0.08);
}

[data-theme="dark"] .emoji-picker {
    background: var(--bg-elevated, #1A1A25);
    border-color: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .emoji-tab:hover { background: rgba(255, 255, 255, 0.06); }
[data-theme="dark"] .emoji-tab.active { background: rgba(230, 57, 70, 0.12); }
[data-theme="dark"] .emoji-item:hover { background: rgba(255, 255, 255, 0.08); }

/* ===== MOBILE ===== */
@media (max-width: 768px) {
    .live-chat-btn {
        width: 50px;
        height: 50px;
        border-radius: 14px;
        bottom: 16px;
        right: 16px;
    }

    .live-chat-btn svg {
        width: 22px;
        height: 22px;
    }

    .live-chat-window {
        right: 12px;
        bottom: 80px;
        left: 12px;
        width: auto;
    }

    .live-chat-container.chat-open .live-chat-window {
        width: auto;
        max-height: calc(100vh - 100px);
    }

    .live-chat-container.chat-fullscreen {
        padding: 0;
    }

    .live-chat-container.chat-fullscreen .live-chat-window {
        max-width: 100%;
        height: 100vh;
        max-height: none;
        border-radius: 0;
        border: none;
    }

    .chat-header,
    .chat-quick-actions,
    .chat-messages,
    .chat-input-area {
        transition-duration: 0.2s;
    }

    .chat-input-area {
        padding: 10px 12px;
    }

    .chat-quick-list {
        grid-template-columns: repeat(3, 1fr);
        gap: 4px;
    }

    .chat-quick-btn {
        padding: 6px 4px;
    }

    .chat-quick-btn .q-icon { font-size: 1.02rem; }
    .chat-quick-btn .q-text { font-size: 0.68rem; }
}

/* ============================================
   PLATFORM ICONS
   ============================================ */

.platform-icon {
    width: 24px;
    height: 24px;
    stroke: currentColor;
    flex-shrink: 0;
}

/* ============================================
   CTA DARK THEME FIX
   ============================================ */

[data-theme="dark"] .cta-title .accent {
    color: #fff;
    text-shadow: 0 0 40px rgba(255, 255, 255, 0.3);
}

[data-theme="dark"] .deco-text {
    color: #fff;
    opacity: 0.25;
}

/* ============================================
   TV EXPANDED MODAL
   ============================================ */

/* ---- TV Expanded Modal ---- */
.tv-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    backdrop-filter: blur(12px);
}

.tv-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.tv-modal {
    position: relative;
    width: 90vw;
    max-width: 960px;
    transform: translateY(20px) scale(0.97);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    background: var(--navy, #0d1b2a);
    border: 2px solid rgba(255, 255, 255, 0.08);
    padding: 0;
}

.tv-modal-overlay.active .tv-modal {
    transform: translateY(0) scale(1);
}

/* Close button — SVG icon, perfectly centered */
.tv-modal-close {
    position: absolute;
    top: -52px;
    right: 0;
    width: 42px;
    height: 42px;
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.25);
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.tv-modal-close svg {
    width: 18px;
    height: 18px;
    display: block;
}

.tv-modal-close:hover {
    background: var(--red);
    border-color: var(--red);
    color: #fff;
}

/* Screen container */
.tv-modal-screen {
    background: #000;
    border-bottom: 2px solid rgba(255, 255, 255, 0.06);
}

.tv-modal-content {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
}

.tv-modal-media {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.tv-modal-media img,
.tv-modal-media video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tv-modal-media .tv-youtube-frame {
    width: 100%;
    height: 100%;
    border: none;
}

/* Channel info badge */
.tv-modal-info {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(0, 0, 0, 0.65);
    padding: 8px 16px;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.tv-modal-channel {
    font-family: 'Courier New', monospace;
    font-size: 1.3rem;
    font-weight: bold;
    color: #ff6b35;
    text-shadow: 0 0 8px rgba(255, 107, 53, 0.4);
}

.tv-modal-name {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
}

.tv-modal-live {
    font-family: var(--font-display);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: var(--red);
    animation: livePulse 1.5s ease-in-out infinite;
}

/* CRT overlay */
.tv-modal-crt {
    position: absolute;
    inset: 0;
    z-index: 5;
    pointer-events: none;
    overflow: hidden;
}

.tv-modal-crt .scanlines {
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        0deg,
        rgba(0, 0, 0, 0.12) 0px,
        rgba(0, 0, 0, 0.12) 1px,
        transparent 1px,
        transparent 3px
    );
    pointer-events: none;
}

/* Progress bar */
.tv-modal-progress {
    height: 32px;
    cursor: pointer;
    position: relative;
    display: flex;
    align-items: center;
    padding: 0;
    background: rgba(255, 255, 255, 0.03);
}

.tv-modal-progress::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 3px;
    background: rgba(255, 255, 255, 0.08);
}

.tv-modal-progress-bar {
    position: relative;
    height: 3px;
    width: 0%;
    background: var(--red);
    transition: width 0.1s linear;
}

.tv-modal-progress-bar::after {
    content: '';
    position: absolute;
    right: -5px;
    top: 50%;
    transform: translateY(-50%) scale(0);
    width: 10px;
    height: 10px;
    background: var(--red);
    border-radius: 50%;
    transition: transform 0.15s ease;
}

.tv-modal-progress:hover .tv-modal-progress-bar {
    height: 5px;
}

.tv-modal-progress:hover .tv-modal-progress-bar::after {
    transform: translateY(-50%) scale(1);
}

/* Controls bar */
.tv-modal-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0;
    padding: 0;
    background: var(--navy, #0d1b2a);
}

.tv-modal-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 14px 22px;
    background: transparent;
    border: none;
    border-right: 1px solid rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.5);
    font-family: var(--font-display);
    font-size: 0.65rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s ease;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.tv-modal-btn:last-child {
    border-right: none;
}

.tv-modal-btn svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.tv-modal-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
}

.tv-modal-btn:active {
    background: rgba(255, 255, 255, 0.08);
}

/* Play/Pause button — accent */
.tv-modal-btn.tv-modal-play {
    color: rgba(255, 255, 255, 0.7);
    padding: 14px 28px;
}

.tv-modal-btn.tv-modal-play:hover {
    color: #fff;
    background: rgba(230, 57, 70, 0.15);
}

.tv-modal-btn.tv-modal-play .icon-play {
    display: none;
}

.tv-modal-btn.tv-modal-play .icon-pause {
    display: block;
}

.tv-modal-btn.tv-modal-play[data-state="paused"] .icon-play {
    display: block;
}

.tv-modal-btn.tv-modal-play[data-state="paused"] .icon-pause {
    display: none;
}

/* Sound button */
.tv-modal-btn.tv-modal-sound .icon-sound-off {
    display: none;
}

.tv-modal-btn.tv-modal-sound .icon-sound-on {
    display: block;
}

.tv-modal-btn.tv-modal-sound[data-muted="true"] .icon-sound-off {
    display: block;
}

.tv-modal-btn.tv-modal-sound[data-muted="true"] .icon-sound-on {
    display: none;
}

@keyframes livePulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Mobile responsive */
@media (max-width: 768px) {
    .tv-modal {
        width: 96vw;
    }

    .tv-modal-info {
        top: 8px;
        left: 8px;
        padding: 6px 10px;
        gap: 8px;
    }

    .tv-modal-channel {
        font-size: 1rem;
    }

    .tv-modal-name {
        font-size: 0.85rem;
    }

    .tv-modal-btn {
        padding: 12px 14px;
        font-size: 0.6rem;
    }

    .tv-modal-btn span {
        display: none;
    }

    .tv-modal-btn svg {
        width: 18px;
        height: 18px;
    }

    .tv-modal-close {
        top: 8px;
        right: 8px;
        width: 36px;
        height: 36px;
        background: rgba(0, 0, 0, 0.6);
        border-color: rgba(255, 255, 255, 0.3);
        z-index: 10;
    }

    .tv-modal-close svg {
        width: 16px;
        height: 16px;
    }
}

/* ============================================
   AD BANNERS & ADVERTISING
   ============================================ */

/* Header Ad Banner */
.ad-banner {
    width: 100%;
    background: var(--navy);
    overflow: hidden;
    transition: all 0.3s ease;
}

.ad-banner.hidden {
    display: none;
}

.ad-banner-header {
    position: fixed;
    top: 70px; /* Below navigation */
    left: 0;
    right: 0;
    z-index: 998;
}

/* Add padding to body when header ad is visible */
body.has-header-ad {
    padding-top: 60px;
}

/* Hero Banner - только главная страница */
.ad-banner-hero {
    position: relative;
    background: linear-gradient(135deg, var(--navy) 0%, #0d1a2d 100%);
    padding: var(--space-xl) 0;
}

.ad-banner-hero-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-xl);
    position: relative;
}

.ad-placeholder-hero {
    background: linear-gradient(135deg, rgba(230, 57, 70, 0.1) 0%, rgba(241, 250, 238, 0.05) 100%);
    border: 2px dashed rgba(241, 250, 238, 0.3);
    padding: 50px 30px;
    text-align: center;
    min-height: 150px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.ad-placeholder-hero:hover {
    border-color: var(--red);
    background: linear-gradient(135deg, rgba(230, 57, 70, 0.15) 0%, rgba(241, 250, 238, 0.08) 100%);
}

.ad-placeholder-hero .ad-placeholder-text {
    font-size: 1.2rem;
    color: var(--cream);
}

.ad-placeholder-hero .ad-placeholder-label {
    color: rgba(241, 250, 238, 0.5);
    margin-top: 8px;
}

.ad-banner-hero .ad-close {
    position: absolute;
    right: 30px;
    top: 10px;
}

.ad-banner-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 8px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.ad-banner-link {
    display: block;
    width: 100%;
    max-width: 1000px;
}

.ad-placeholder {
    background: linear-gradient(135deg, rgba(230, 57, 70, 0.1) 0%, rgba(29, 53, 87, 0.2) 100%);
    border: 2px dashed rgba(241, 250, 238, 0.3);
    padding: 15px 30px;
    text-align: center;
    transition: all 0.3s ease;
}

.ad-placeholder:hover {
    border-color: var(--red);
    background: linear-gradient(135deg, rgba(230, 57, 70, 0.2) 0%, rgba(29, 53, 87, 0.3) 100%);
}

.ad-placeholder-text {
    display: block;
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--cream);
    letter-spacing: 0.1em;
}

.ad-placeholder-label {
    display: block;
    font-size: 0.7rem;
    color: rgba(241, 250, 238, 0.6);
    margin-top: 4px;
}

.ad-close {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    background: transparent;
    border: 1px solid rgba(241, 250, 238, 0.3);
    color: var(--cream);
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    opacity: 0.6;
}

.ad-close:hover {
    opacity: 1;
    border-color: var(--red);
    color: var(--red);
}

/* Sidebar Ad */
.ad-sidebar {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 160px;
    z-index: 100;
    display: none;
}

.ad-sidebar.visible {
    display: block;
}

.ad-sidebar-inner {
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    padding: 15px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.ad-sidebar .ad-placeholder {
    background: linear-gradient(180deg, rgba(230, 57, 70, 0.05) 0%, rgba(29, 53, 87, 0.1) 100%);
    border-color: var(--border-color);
    min-height: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.ad-sidebar .ad-placeholder-text {
    color: var(--text-primary);
    font-size: 0.75rem;
}

.ad-sidebar .ad-placeholder-label {
    color: var(--text-secondary);
}

.ad-sidebar .ad-close {
    position: absolute;
    right: 5px;
    top: 5px;
    width: 20px;
    height: 20px;
    border-color: var(--border-color);
    color: var(--text-secondary);
}

/* TV Ad Content (channel ad) */
.tv-ad-content {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1D3557 0%, #0d1a2d 50%, #E63946 100%);
    animation: adGradient 8s ease infinite;
}

@keyframes adGradient {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.tv-ad-content::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        repeating-linear-gradient(
            0deg,
            transparent 0px,
            transparent 2px,
            rgba(0, 0, 0, 0.1) 2px,
            rgba(0, 0, 0, 0.1) 4px
        );
    pointer-events: none;
}

.tv-ad-inner {
    text-align: center;
    padding: 30px;
    position: relative;
    z-index: 1;
}

.tv-ad-badge {
    display: inline-block;
    font-family: var(--font-display);
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    padding: 5px 15px;
    background: var(--red);
    color: #fff;
    margin-bottom: 15px;
    animation: pulse 2s ease infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.tv-ad-title {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 8px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.tv-ad-subtitle {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 20px;
}

.tv-ad-btn {
    display: inline-block;
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 12px 25px;
    background: #fff;
    color: var(--navy);
    text-decoration: none;
    transition: all 0.3s ease;
}

.tv-ad-btn:hover {
    background: var(--red);
    color: #fff;
    transform: scale(1.05);
}

/* Dark theme ads */
[data-theme="dark"] .ad-banner {
    background: #0d1117;
}

[data-theme="dark"] .ad-sidebar-inner {
    background: var(--bg-card);
    border-color: var(--border-color);
}

/* Responsive ads */
@media (max-width: 1400px) {
    .ad-sidebar {
        display: none !important;
    }
}

@media (max-width: 768px) {
    .ad-banner-inner {
        padding: 6px 15px;
    }

    .ad-placeholder {
        padding: 10px 15px;
    }

    .ad-placeholder-text {
        font-size: 0.75rem;
    }

    .tv-ad-title {
        font-size: 1rem;
    }

    .tv-ad-subtitle {
        font-size: 0.75rem;
    }
}

/* ============================================
   EXTRA SMALL SCREENS (<400px)
   ============================================ */
@media (max-width: 400px) {
    .hero {
        padding: var(--space-xl) var(--space-sm);
    }

    .section-header,
    .features,
    .pricing,
    .cta {
        padding-left: var(--space-sm);
        padding-right: var(--space-sm);
    }

    .main-footer {
        padding: var(--space-xl) var(--space-sm);
    }

    .footer-vhs {
        gap: var(--space-xs);
    }

    .footer-vhs span {
        padding: 0.3rem 0.5rem;
        font-size: 0.65rem;
    }

    /* Word-break safety */
    .tv-modal-title,
    .section-header h2,
    .hero-title,
    .price-card h3 {
        word-break: break-word;
        overflow-wrap: break-word;
    }
}

/* ============================================
   i18n — Language Toggle & Flash Prevention
   ============================================ */

/* Flash prevention: hide translated elements while EN loads */
.i18n-loading [data-i18n],
.i18n-loading [data-i18n-html] {
    visibility: hidden;
}

/* Language toggle button in footer */
.lang-toggle {
    position: relative;
    display: inline-flex;
    align-items: center;
    width: 82px;
    height: 34px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 0;
    background: rgba(255, 255, 255, 0.06);
    font-family: var(--font-display);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    overflow: hidden;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.lang-toggle .lang-slider {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 36px;
    height: 26px;
    border-radius: 0;
    background: var(--red);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 0;
    box-shadow: 0 0 8px var(--red-glow);
}

.lang-toggle[data-active="en"] .lang-slider {
    transform: translateX(38px);
}

.lang-option {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50%;
    height: 100%;
    color: rgba(255, 255, 255, 0.4);
    transition: color 0.3s ease;
    pointer-events: none;
}

.lang-option.active {
    color: #fff;
}

.lang-sep {
    display: none;
}

.lang-toggle:hover {
    border-color: rgba(255, 255, 255, 0.45);
    box-shadow: 0 0 12px var(--red-glow);
}

.lang-toggle:hover .lang-option:not(.active) {
    color: rgba(255, 255, 255, 0.7);
}

.lang-toggle:active {
    transform: scale(0.95);
}

/* Dark theme */
[data-theme="dark"] .lang-toggle {
    border-color: rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.04);
}

[data-theme="dark"] .lang-option {
    color: rgba(255, 255, 255, 0.3);
}

[data-theme="dark"] .lang-option.active {
    color: #fff;
}

[data-theme="dark"] .lang-toggle:hover {
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 0 15px var(--red-glow);
}

[data-theme="dark"] .lang-toggle:hover .lang-option:not(.active) {
    color: rgba(255, 255, 255, 0.6);
}

/* ============================================
   COOKIE CONSENT BANNER
   ============================================ */

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: var(--bg-secondary, #12121A);
    border-top: 2px solid var(--red);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.5);
    transition: transform 0.4s ease, opacity 0.4s ease;
}

[data-theme="dark"] .cookie-banner {
    background: #12121A;
}

.cookie-banner--hidden {
    transform: translateY(100%);
    opacity: 0;
}

.cookie-banner-scanline {
    position: absolute;
    top: -1px;
    left: 0;
    right: 0;
    height: 2px;
    background: repeating-linear-gradient(
        90deg,
        var(--red) 0px,
        var(--red) 2px,
        transparent 2px,
        transparent 6px
    );
    opacity: 0.6;
}

.cookie-banner-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.25rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.cookie-banner-title {
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.35rem;
    color: var(--text-primary);
}

.cookie-banner-desc {
    font-family: var(--font-body);
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--text-secondary);
    margin: 0;
}

.cookie-banner-actions {
    display: flex;
    gap: 0.75rem;
    flex-shrink: 0;
}

.cookie-btn {
    font-family: var(--font-display);
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 10px 24px;
    border: none;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.1s ease;
    white-space: nowrap;
}

.cookie-btn-accept {
    background: var(--red);
    color: #fff;
}

.cookie-btn-accept:hover {
    background: var(--red-dark);
}

.cookie-btn-necessary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    border: 1px solid var(--border-color, rgba(255,255,255,0.2));
}

[data-theme="dark"] .cookie-btn-necessary {
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.7);
    border-color: rgba(255, 255, 255, 0.15);
}

.cookie-btn-necessary:hover {
    background: rgba(255, 255, 255, 0.18);
}

.cookie-btn:active {
    transform: scale(0.97);
}

@media (max-width: 768px) {
    .cookie-banner-inner {
        flex-direction: column;
        padding: 1rem 1.25rem;
        gap: 1rem;
        text-align: center;
    }
    .cookie-banner-actions {
        width: 100%;
        justify-content: center;
    }
}

/* ============================================
   SKIP-TO-CONTENT LINK (Accessibility)
   ============================================ */

.skip-link {
    position: absolute;
    top: -100%;
    left: 0;
    background: var(--red);
    color: #fff;
    padding: 8px 16px;
    z-index: 10000;
    font-family: var(--font-display);
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-decoration: none;
    transition: top 0.2s ease;
}

.skip-link:focus {
    top: 0;
}

/* ============================================
   NEWSLETTER / EMAIL CAPTURE
   ============================================ */

.newsletter-section {
    position: relative;
    padding: 4rem 2rem;
    background: var(--bg-secondary, #12121A);
    border-top: 3px solid var(--red);
    overflow: hidden;
}

[data-theme="dark"] .newsletter-section {
    background: #0E0E14;
}

[data-theme="light"] .newsletter-section {
    background: var(--navy);
}

[data-theme="light"] .newsletter-inner h2 {
    color: var(--white);
}

[data-theme="light"] .newsletter-inner p {
    color: rgba(255, 255, 255, 0.7);
}

[data-theme="light"] .newsletter-form input[type="email"] {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.25);
    color: var(--white);
}

[data-theme="light"] .newsletter-form input[type="email"]::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

[data-theme="light"] .newsletter-form input[type="email"]:focus {
    border-color: var(--red);
}

.newsletter-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        0deg,
        transparent 0px,
        transparent 2px,
        rgba(255, 255, 255, 0.015) 2px,
        rgba(255, 255, 255, 0.015) 4px
    );
    pointer-events: none;
}

.newsletter-inner {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.newsletter-inner h2 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.newsletter-inner p {
    font-family: var(--font-body);
    font-size: 1.05rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 1.75rem;
}

.newsletter-form {
    display: flex;
    gap: 0;
    max-width: 480px;
    margin: 0 auto;
}

.newsletter-form input[type="email"] {
    flex: 1;
    padding: 12px 16px;
    font-family: var(--font-body);
    font-size: 1rem;
    background: var(--bg-primary, #1a1a24);
    color: var(--text-primary);
    border: 2px solid var(--border-color, rgba(255,255,255,0.15));
    border-right: none;
    outline: none;
    transition: border-color 0.2s ease;
}

[data-theme="dark"] .newsletter-form input[type="email"] {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.15);
    color: #fff;
}

.newsletter-form input[type="email"]::placeholder {
    color: var(--text-secondary);
    opacity: 0.6;
}

.newsletter-form input[type="email"]:focus {
    border-color: var(--red);
}

.newsletter-input--error {
    border-color: var(--red) !important;
    animation: shake 0.3s ease;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-4px); }
    75% { transform: translateX(4px); }
}

.newsletter-form button[type="submit"] {
    font-family: var(--font-display);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    padding: 12px 28px;
    background: var(--red);
    color: #fff;
    border: 2px solid var(--red);
    cursor: pointer;
    transition: background 0.2s ease;
    white-space: nowrap;
}

.newsletter-form button[type="submit"]:hover {
    background: var(--red-dark);
    border-color: var(--red-dark);
}

.newsletter-toast {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: var(--red);
    color: #fff;
    padding: 12px 28px;
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    z-index: 10001;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
}

.newsletter-toast--visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

@media (max-width: 640px) {
    .newsletter-section {
        padding: 3rem 1.25rem;
    }
    .newsletter-form {
        flex-direction: column;
    }
    .newsletter-form input[type="email"] {
        border-right: 2px solid var(--border-color, rgba(255,255,255,0.15));
        border-bottom: none;
    }
    [data-theme="dark"] .newsletter-form input[type="email"] {
        border-right: 2px solid rgba(255, 255, 255, 0.15);
    }
    .newsletter-form input[type="email"]:focus {
        border-color: var(--red);
    }
}

/* ============================================
   SOCIAL SHARE BUTTONS
   ============================================ */

.share-buttons {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 2rem 0;
    flex-wrap: wrap;
}

.share-buttons span {
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-secondary);
    margin-right: 0.25rem;
}

.share-buttons button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background: var(--bg-secondary, #1a1a24);
    color: var(--text-primary);
    border: 1px solid var(--border-color, rgba(255,255,255,0.15));
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

[data-theme="dark"] .share-buttons button {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.7);
}

.share-buttons button:hover {
    background: var(--red);
    color: #fff;
    border-color: var(--red);
}

.share-toast {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: var(--red);
    color: #fff;
    padding: 12px 28px;
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    z-index: 10001;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
}

.share-toast--visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* ============================================
   PRINT STYLES
   ============================================ */

@media print {
    .main-nav, .mobile-menu, .cookie-banner, .ad-sidebar,
    .ad-banner-header, .ad-banner-hero, .newsletter-section,
    .share-buttons, .skip-link, .lang-toggle, .footer-vhs,
    .hero-section video, .back-to-top, .preloader, .vhs-overlay,
    .cursor, .cursor-follower, .nav-wrapper, .page-hero-bg,
    .ad-banner, .nav-toggle, .theme-toggle { display: none !important; }

    body { background: #fff !important; color: #000 !important; }
    * { color: #000 !important; background: transparent !important; box-shadow: none !important; text-shadow: none !important; }

    a { color: #000 !important; text-decoration: underline; }
    a[href]:after { content: " (" attr(href) ")"; font-size: 0.8em; }
    a[href^="#"]:after, a[href^="javascript"]:after { content: ""; }

    .main-footer { border-top: 1px solid #ccc; }
    .page-hero-content { padding: 1rem 0; }
    .page-title { color: #000 !important; }
}
