/* 
   CYBERCHEATS THEME 
   Blue & Turquoise Palette
*/

@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;500;700;900&family=Rajdhani:wght@300;400;500;600;700&family=Inter:wght@300;400;600&family=Russo+One&family=Exo+2:wght@400;500;600;700;800&display=swap');

/* ============================================
   CYRILLIC FONT SUPPORT
   Orbitron & Rajdhani DO NOT support Cyrillic.
   We explicitly override for Russian to use Russo One & Exo 2.
   ============================================ */
h1,
h2,
h3,
.program-header-section h1,
.section-title {
    font-family: 'Orbitron', 'Russo One', sans-serif !important;
    text-transform: uppercase;
    letter-spacing: 1px;
}

body.lang-ru h1,
body.lang-ru h2,
body.lang-ru h3,
body.lang-ru .program-header-section h1,
body.lang-ru .section-title,
body.lang-ru .logo,
body.lang-ru .btn-primary,
body.lang-ru .btn-secondary,
body.lang-ru .price,
body.lang-ru .stat-num,
body.lang-ru .loader-text {
    font-family: 'Russo One', sans-serif !important;
    text-transform: uppercase;
    font-weight: 400;
}

body.lang-ru,
body.lang-ru .stat-label,
body.lang-ru .nav-links a,
body.lang-ru .btn-login,
body.lang-ru .status-badge,
body.lang-ru .ticker-item,
body.lang-ru .search-bar__input,
body.lang-ru .search-dropdown__label,
body.lang-ru .search-dropdown__empty {
    font-family: 'Exo 2', sans-serif !important;
    font-weight: 600;
}

/* ============================================
   LANGUAGE TOGGLE BUTTON
   ============================================ */
/* ============================================
   LANGUAGE TOGGLE BUTTON
   ============================================ */
.lang-toggle::before,
.lang-toggle::after {
    content: none !important;
    display: none !important;
}

.lang-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: rgba(0, 229, 255, 0.08);
    border: 1px solid rgba(0, 229, 255, 0.3);
    color: var(--primary-cyan);
    font-family: 'Rajdhani', 'Exo 2', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 8px 18px;
    border-radius: 4px;
    overflow: hidden;
    white-space: nowrap;
    flex-shrink: 0;
}

.lang-toggle:hover {
    background: rgba(0, 229, 255, 0.15);
    border-color: var(--primary-cyan);
    color: #fff;
    box-shadow: 0 0 15px rgba(0, 229, 255, 0.3);
    transform: translateY(-1px);
}

/* Ruble Symbol ₽ */
.ruble-sign {
    font-family: 'Segoe UI', 'Roboto', 'Inter', system-ui, sans-serif !important;
    font-weight: 600 !important;
    font-style: normal;
    display: inline;
    vertical-align: baseline;
    font-size: 0.95em;
    line-height: 1;
    letter-spacing: 0;
}

/* Loading Screen */
#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #0a0a0d;
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease;
}

#loading-screen.hidden {
    opacity: 0;
    pointer-events: none;
}

.loader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.loader-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(0, 229, 255, 0.2);
    border-top: 4px solid #00e5ff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.loader-text {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.2rem;
    color: #00e5ff;
    letter-spacing: 3px;
}

/* Page Transition Overlay */
#page-transition {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #0a0a0d;
    z-index: 100000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s ease;
}

#page-transition.active {
    opacity: 1;
    pointer-events: all;
}

#page-transition .transition-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(0, 229, 255, 0.2);
    border-top: 3px solid #00e5ff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

/* Language Switch Transition Overlay */
#lang-transition {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #0a0a0d;
    z-index: 100001;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 24px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

#lang-transition.active {
    opacity: 1;
    pointer-events: all;
}

#lang-transition .lt-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(0, 229, 255, 0.15);
    border-top: 3px solid #00e5ff;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

#lang-transition .lt-text {
    font-family: 'Orbitron', 'Russo One', sans-serif;
    font-size: 0.85rem;
    color: rgba(0, 229, 255, 0.7);
    letter-spacing: 4px;
    text-transform: uppercase;
    animation: ltPulse 1s ease-in-out infinite;
}

@keyframes ltPulse {

    0%,
    100% {
        opacity: 0.5;
    }

    50% {
        opacity: 1;
    }
}

/* Content reveal animation after language switch */
@keyframes langRevealIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

body.lang-reveal>*:not(#lang-transition):not(#loading-screen):not(#page-transition):not(.navbar):not(script) {
    animation: langRevealIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
}

body.lang-reveal .navbar {
    animation: langRevealIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) both;
}

:root {
    --bg-dark: #0a0a0d;
    --bg-card: #121215;
    --bg-card-hover: #1a1a1f;

    --primary-blue: #0055ff;
    --primary-cyan: #00e5ff;
    --accent-red: #ff3333;
    --accent-green: #00ff88;

    --text-main: #ffffff;
    --text-muted: #8899a6;

    --glow-blue: 0 0 20px rgba(0, 85, 255, 0.5);
    --glow-cyan: 0 0 20px rgba(0, 229, 255, 0.5);

    --border-color: rgba(255, 255, 255, 0.1);
    --border-highlight: rgba(0, 229, 255, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
    line-height: 1.6;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

h1,
h2,
h3,
.logo,
.btn-primary,
.btn-secondary,
.price {
    font-family: 'Orbitron', 'Russo One', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

/* SCROLL ANIMATIONS — disabled, everything visible instantly */
.fade-on-scroll {
    opacity: 1;
}

.fade-on-scroll.in-view {
    opacity: 1;
}

/* No stagger delays — everything appears instant */

.game-card:hover,
.program-card-v2:hover {
    box-shadow: 0 4px 20px rgba(0, 229, 255, 0.12);
}

/* Background Effects */
.bg-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: -2;
    pointer-events: none;
}

.glow-spot {
    position: fixed;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 85, 255, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    z-index: -1;
    pointer-events: none;
}

.top-left {
    top: -200px;
    left: -200px;
}

.bottom-right {
    bottom: -200px;
    right: -200px;
    background: radial-gradient(circle, rgba(0, 229, 255, 0.1) 0%, transparent 70%);
}

/* Navbar Premium Redesign */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(8, 8, 10, 0.85);
    /* Slightly darker/more opaque */
    backdrop-filter: blur(25px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    z-index: 1000;
    padding: 12px 0;
    box-shadow: 0 4px 40px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
}

.nav-container {
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    padding: 0 clamp(20px, 2.5vw, 80px);
}

.logo {
    font-size: 1.6rem;
    font-weight: 900;
    color: white;
    white-space: nowrap;
    display: flex;
    align-items: center;
    padding-top: 2px;
    margin-left: 40px;
}

.logo i {
    color: white;
    filter: none;
}

.text-blue {
    color: var(--primary-cyan);
    text-shadow: var(--glow-cyan);
}

.text-gradient {
    background: linear-gradient(90deg, var(--primary-cyan), var(--primary-blue));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links {
    display: flex;
    gap: 24px;
    margin: 0 auto;
    align-items: center;
}

/* RU: чуть правее (русский текст шире) */
body.lang-ru .nav-links {
    transform: translateX(30px);
}

/* Logged-in: чуть правее */
body.is-logged-in .nav-links {
    transform: translateX(20px);
}

body.is-logged-in.lang-ru .nav-links {
    transform: translateX(50px);
}

body.lang-ru .nav-links a {
    transform: translateY(1px);
}

.nav-links a {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-muted);
    position: relative;
    font-family: 'Rajdhani', 'Exo 2', sans-serif;
    letter-spacing: 3.5px;
    white-space: nowrap;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    transform: translateY(1px);
}

.nav-links a:hover {
    color: var(--primary-cyan);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-cyan);
    transition: 0.3s;
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    gap: 12px;
    align-items: center;
    white-space: nowrap;
    flex-shrink: 0;
    margin-right: 0;
    min-width: 240px;
    justify-content: flex-end;
}

.btn-login {
    border: 1px solid var(--border-color);
    padding: 8px 18px;
    border-radius: 4px;
    font-size: 0.9rem;
    font-family: 'Rajdhani', 'Exo 2', sans-serif;
    font-weight: 700;
}

.btn-login:hover {
    border-color: var(--primary-cyan);
    color: var(--primary-cyan);
    box-shadow: var(--glow-cyan);
}

.nav-menu {
    display: flex;
    flex: 1;
    align-items: center;
    margin-left: 24px;
    gap: 24px;
}

.mobile-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    padding: 120px 20px 0;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: flex-end;
    /* Align items to bottom to sit on ticker */
    justify-content: space-between;
    min-height: 85vh;
    /* Fallback */
    min-height: 85dvh;
    /* Dynamic viewport height */
    position: relative;
}

@media (max-width: 768px) {
    .hero {
        min-height: auto;
        padding-bottom: 60px;
    }
}

.hero-content {
    max-width: 750px;
    margin-bottom: 100px;
    margin-left: 80px;
    align-self: center;
}

/* ... status tags ... */

.hero-visual {
    position: absolute;
    right: 5%;
    bottom: 0;
    width: 50%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: flex-end;
}

.hero-char-wrapper {
    position: relative;
    width: auto;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: flex-end;
}

/* Pulse Ripple Animation - attached to character wrapper */
.pulse-system {
    position: absolute;
    bottom: 22%;
    left: 52%;
    transform: translateX(-50%);
    width: 380px;
    height: 380px;
    z-index: 0;
    pointer-events: none;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Hide animation on mobile */
@media (max-width: 768px) {
    .pulse-system {
        display: none;
    }
}

.pulse-ring {
    position: absolute;
    border-radius: 50%;
    border: 2px solid var(--primary-cyan);
    opacity: 0;
    box-shadow: 0 0 20px var(--primary-cyan);
}

.ring-1 {
    width: 20%;
    height: 20%;
    animation: ripple 3s linear infinite;
}

.ring-2 {
    width: 20%;
    height: 20%;
    animation: ripple 3s linear infinite -1s;
}

.ring-3 {
    width: 20%;
    height: 20%;
    animation: ripple 3s linear infinite -2s;
}

@keyframes ripple {
    0% {
        width: 20%;
        height: 20%;
        opacity: 0.8;
        border-width: 4px;
    }

    100% {
        width: 100%;
        height: 100%;
        opacity: 0;
        border-width: 0px;
    }
}

.hero-char-img {
    width: auto;
    height: 75vh;
    max-height: 650px;
    min-height: 400px;
    z-index: 2;
    object-fit: contain;
    position: relative;
    margin-bottom: 0;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    -ms-interpolation-mode: bicubic;
    will-change: transform;
    transform: translateZ(0);
}

/* Larger character on laptop screens */
@media (min-width: 769px) and (max-width: 1440px) {
    .hero-char-img {
        height: 90vh;
        max-height: 800px;
        min-height: 500px;
    }
}

.status-badge {
    display: inline-block;
    padding: 6px 12px;
    background: rgba(0, 255, 136, 0.1);
    border: 1px solid rgba(0, 255, 136, 0.3);
    color: var(--accent-green);
    font-family: 'Rajdhani', 'Exo 2', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: 20px;
    margin-bottom: 20px;
}

.status-badge.status-updating {
    background: rgba(255, 165, 0, 0.1);
    border-color: rgba(255, 165, 0, 0.3);
    color: #ffa500;
}

.status-badge.status-offline {
    background: rgba(102, 102, 102, 0.1);
    border-color: rgba(102, 102, 102, 0.3);
    color: #666;
}

.dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: var(--accent-green);
    border-radius: 50%;
    margin-right: 6px;
    box-shadow: 0 0 10px var(--accent-green);
}

.hero h1 {
    font-family: 'Rajdhani', 'Exo 2', sans-serif;
    font-weight: 700;
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 18px;
    text-transform: uppercase;
}

.hero h1 #dynamic-text {
    display: inline-block;
    min-width: 180px;
}

.hero p {
    color: var(--text-muted);
    font-size: 1.05rem;
    margin-bottom: 30px;
    max-width: 500px;
}

.hero-btns {
    display: flex;
    flex-wrap: nowrap;
    gap: 15px;
    margin-bottom: 50px;
}

.btn-primary {
    background: var(--primary-blue);
    color: white;
    padding: 12px 24px;
    border-radius: 4px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    box-shadow: var(--glow-blue);
    white-space: nowrap;
    font-size: 0.85rem;
}

.btn-primary:hover {
    background: var(--primary-cyan);
    box-shadow: var(--glow-cyan);
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: white;
    padding: 12px 24px;
    border-radius: 4px;
    font-weight: 700;
    border: 1px solid var(--border-color);
    cursor: pointer;
    white-space: nowrap;
    font-size: 0.85rem;
}

.btn-secondary:hover {
    border-color: white;
    background: rgba(255, 255, 255, 0.05);
}

.stats-row {
    display: flex;
    gap: 40px;
    border-top: 1px solid var(--border-color);
    padding-top: 30px;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-num {
    font-family: 'Orbitron', 'Russo One', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: white;
}

.stat-label {
    font-size: 0.95rem;
    color: var(--text-muted);
    font-family: 'Rajdhani', 'Exo 2', sans-serif;
    text-transform: uppercase;
    white-space: nowrap;
}

/* Cleaned up duplicate styles */

.floating-icon {
    font-size: 8rem;
    color: rgba(255, 255, 255, 0.1);
    z-index: 1;
    animation: float 4s ease-in-out infinite;
}

@keyframes spin {
    100% {
        transform: rotate(360deg);
    }
}

@keyframes spin-reverse {
    100% {
        transform: rotate(-360deg);
    }
}

@keyframes spin-centered {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

/* Ticker */
.ticker-wrap {
    width: 100%;
    background: var(--primary-blue);
    overflow: hidden;
    height: 40px;
    display: flex;
    align-items: center;
    position: relative;
    z-index: 10;
    margin-top: 0;
}

.ticker {
    display: flex;
    animation: ticker 30s linear infinite;
    white-space: nowrap;
}

.ticker-item {
    padding: 0 40px;
    font-family: 'Rajdhani', 'Exo 2', sans-serif;
    font-weight: 700;
    color: white;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

@keyframes ticker {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-25%);
    }
}

/* Games Section */
.games-section {
    padding: 100px 20px 10px;
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.section-header p {
    color: var(--text-muted);
}

/* --- Search Bar --- */
.search-bar-wrap {
    max-width: 560px;
    margin: 0 auto 32px;
    padding: 0 20px;
}

.search-bar {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 0 16px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.search-bar:focus-within {
    border-color: var(--primary-cyan);
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.08);
}

.search-bar__icon {
    color: #555;
    font-size: 0.9rem;
    margin-right: 12px;
    transition: color 0.3s ease;
}

.search-bar:focus-within .search-bar__icon {
    color: var(--primary-cyan);
}

.search-bar__input {
    flex: 1;
    background: none;
    border: none;
    outline: none;
    color: #eee;
    font-size: 0.9rem;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 500;
    padding: 14px 0;
    letter-spacing: 0.5px;
}

.search-bar__input::placeholder {
    color: #444;
    letter-spacing: 0.5px;
}

.search-bar__clear {
    background: none;
    border: none;
    color: #555;
    cursor: pointer;
    font-size: 0.85rem;
    padding: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
}

.search-bar__clear:hover {
    color: #fff;
}

/* --- Search Dropdown --- */
.search-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: #111118;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    max-height: 380px;
    overflow-y: auto;
    z-index: 100;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.7);
}

.search-dropdown.active {
    display: block;
    animation: dropdownIn 0.2s ease;
}

@keyframes dropdownIn {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.search-bar-wrap {
    position: relative;
}

.search-dropdown__label {
    font-size: 0.6rem;
    font-weight: 700;
    color: #555;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 10px 16px 4px;
    font-family: 'Rajdhani', sans-serif;
}

.search-dropdown__empty {
    padding: 28px 16px;
    text-align: center;
    color: #444;
    font-size: 0.85rem;
    font-family: 'Rajdhani', sans-serif;
}

.search-dropdown__empty i {
    margin-right: 6px;
    opacity: 0.5;
}

/* --- Individual Result Row --- */
.search-result {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 16px;
    text-decoration: none;
    color: #ddd;
    transition: background 0.15s ease;
    cursor: pointer;
}

.search-result:hover {
    background: rgba(255, 255, 255, 0.05);
}

.search-result__img {
    width: 36px;
    height: 36px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
    background: #1a1a22;
}

.search-result__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.search-result__icon {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #444;
    font-size: 0.85rem;
}

.search-result__info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.search-result__name {
    font-size: 0.85rem;
    font-weight: 600;
    font-family: 'Rajdhani', sans-serif;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-result__name mark {
    background: none;
    color: var(--primary-cyan);
    font-weight: 700;
}

.search-result__meta {
    font-size: 0.65rem;
    color: #555;
    font-family: 'Rajdhani', sans-serif;
    letter-spacing: 0.3px;
}

.search-result__status--undetected {
    color: #6fcf97;
}

.search-result__status--updating {
    color: #f2994a;
}

.search-result__status--testing {
    color: #f2c94c;
}

.search-result__status--risky {
    color: #eb5757;
}

.search-result__status--detected {
    color: #eb5757;
}

.search-result__status--offline {
    color: #888;
}

.search-result__status--closed {
    color: #888;
}

.search-result__status--online {
    color: #6fcf97;
}

.search-result__status--use\ at\ own\ risk {
    color: #f2994a;
}

.search-result__go {
    color: #333;
    font-size: 0.65rem;
    flex-shrink: 0;
    transition: color 0.2s ease;
}

.search-result:hover .search-result__go {
    color: var(--primary-cyan);
}

/* Scrollbar for dropdown */
.search-dropdown::-webkit-scrollbar {
    width: 4px;
}

.search-dropdown::-webkit-scrollbar-track {
    background: transparent;
}

.search-dropdown::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 4px;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.game-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.35s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    cursor: pointer;
}

/* Ensure contents fill height */
.card-details {
    padding: 14px 16px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.game-card:hover {
    border-color: var(--primary-cyan);
    box-shadow: 0 0 18px rgba(0, 229, 255, 0.12), inset 0 0 0 1px rgba(0, 229, 255, 0.06);
}

.game-card.featured {
    border: 1px solid var(--primary-cyan);
    box-shadow: 0 0 15px rgba(0, 229, 255, 0.1);
}

.card-image,
.card-image-rust,
.card-image-cs,
.card-image-val {
    height: 150px;
    background-color: #222;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.card-image {
    background: #151518;
    overflow: hidden;
}

.card-image-rust {
    background: linear-gradient(45deg, #d35400, #c0392b);
}

.card-image-cs {
    background: linear-gradient(45deg, #f39c12, #d35400);
}

.card-image-val {
    background: linear-gradient(45deg, #e74c3c, #c0392b);
}


.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
}

.game-icon {
    position: relative;
    font-size: 3rem;
    color: white;
    z-index: 2;
}

#p-img {
    max-height: 180px !important;
    object-fit: contain !important;
    width: 100%;
    background-color: #000;
}

.status-tag {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    z-index: 2;
    font-family: 'Rajdhani', sans-serif;
}

.online {
    background: rgba(0, 255, 136, 0.2);
    color: var(--accent-green);
    border: 1px solid var(--accent-green);
}

.update {
    background: rgba(255, 166, 0, 0.2);
    color: orange;
    border: 1px solid orange;
}

.card-details {
    padding: 14px 16px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-details h3 {
    font-size: 1.05rem;
    margin-bottom: 2px;
}

.card-details p {
    color: var(--text-muted);
    font-size: 0.82rem;
    margin-bottom: 10px;
}

.features-list {
    margin-bottom: 10px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
}

.features-list span {
    font-size: 0.75rem;
    color: #999;
    display: flex;
    align-items: center;
    gap: 5px;
}

.features-list i {
    color: var(--primary-cyan);
}

.card-action {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 10px;
}

.card-action .price {
    font-size: 0.9rem;
    font-weight: 700;
    color: white;
}

.btn-buy {
    background: transparent;
    border: 1px solid var(--primary-blue);
    color: var(--primary-blue);
    padding: 5px 14px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 700;
    font-size: 0.75rem;
    transition: 0.3s;
    font-family: 'Rajdhani', sans-serif;
}

.btn-buy:hover:not(:disabled) {
    background: var(--primary-blue);
    color: white;
    box-shadow: 0 0 10px rgba(0, 85, 255, 0.5);
}

.btn-buy.glow {
    border-color: var(--primary-cyan);
    color: var(--primary-cyan);
}

.btn-buy.glow:hover {
    background: var(--primary-cyan);
    color: black;
    box-shadow: 0 0 10px rgba(0, 229, 255, 0.5);
}

.btn-buy:disabled {
    border-color: #444;
    color: #666;
    cursor: not-allowed;
}

/* Features Band */
.features-section {
    display: flex;
    justify-content: space-around;
    padding: 80px 20px;
    background: rgba(255, 255, 255, 0.02);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    flex-wrap: wrap;
    gap: 40px;
}

.feature-box {
    text-align: center;
    max-width: 300px;
}

.feature-box i {
    font-size: 2.5rem;
    color: var(--primary-cyan);
    margin-bottom: 20px;
}

.feature-box h3 {
    margin-bottom: 10px;
}

.feature-box p {
    color: var(--text-muted);
}

/* Dynamic Text Animation */
.text-gradient {
    transition: opacity 0.5s ease-in-out;
    opacity: 1;
}

.text-gradient.fade-out {
    opacity: 0;
}

/* Footer */
.main-footer {
    padding: 60px 20px;
    background: #050507;
    text-align: center;
}

.footer-content {
    max-width: 600px;
    margin: 0 auto;
}

.footer-logo h2 {
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.footer-logo p {
    color: #555;
    font-size: 0.8rem;
    margin-bottom: 30px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
}

.footer-links a {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: white;
}

.socials {
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* Global Card Image Styling */
.card-image img,
.game-card img,
.product-card img,
.program-card img,
.grid-screenshot {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.popular-games-section {
    width: 100%;
}

.popular-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.popular-card {
    cursor: pointer;
    transition: box-shadow 0.3s;
}

.popular-card:hover {
    box-shadow: 0 5px 20px rgba(0, 229, 255, 0.2);
    border-color: var(--primary-cyan);
}

.small-card-image {
    height: 220px;
    /* Slightly smaller than full catalog */
    background: #1a1a1d;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

/* Product Card Footer Alignment Fix */
.prog-card__footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.prog-card__price {
    font-size: 1.1rem;
    font-weight: 700;
    color: white;
    font-family: 'Orbitron', 'Russo One', sans-serif;
    display: flex;
    align-items: baseline;
    gap: 5px;
}

.small-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.game-title-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 15px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    z-index: 3;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.game-title-overlay h3 {
    margin: 0;
    font-size: 1.1rem;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

.price-badge {
    font-size: 0.8rem;
    color: var(--primary-cyan);
    font-weight: 700;
    font-family: 'Rajdhani', sans-serif;
    background: rgba(0, 0, 0, 0.6);
    padding: 2px 6px;
    border-radius: 4px;
}

.view-catalog-container {
    text-align: center;
    margin-top: 80px;
    margin-bottom: 20px;
}

.btn-view-catalog {
    display: inline-block;
    padding: 12px 30px;
    background: transparent;
    border: 1px solid var(--border-highlight);
    color: var(--primary-cyan);
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 4px;
    transition: 0.3s;
}

.btn-view-catalog:hover {
    background: var(--primary-cyan);
    color: black;
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.4);
}

.socials a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 4px;
    font-size: 1.2rem;
    color: white;
    transition: 0.3s;
}

.socials a:hover {
    background: var(--primary-cyan);
    color: black;
    transform: translateY(-3px);
}

/* Tariff Plans */
.plan-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    transition: 0.2s;
}

.plan-item:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
}

.plan-item.active {
    background: rgba(0, 229, 255, 0.1);
    border-color: var(--primary-cyan);
    box-shadow: 0 0 15px rgba(0, 229, 255, 0.1);
}

.plan-item span {
    display: flex;
    align-items: center;
}

.radio-circle {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    position: relative;
    transition: 0.2s;
}

.plan-item.active .radio-circle {
    border-color: var(--primary-cyan);
}

.plan-item.active .radio-circle::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    background: var(--primary-cyan);
    border-radius: 50%;
}

/* Program Details 2-Column Layout */
.program-layout-grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 40px;
    align-items: start;
}

@media (max-width: 900px) {
    .program-layout-grid {
        grid-template-columns: 1fr;
    }
}

.program-sidebar {
    position: sticky;
    top: 140px;
}

.checkout-card {
    background: rgba(18, 18, 21, 0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 35px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    min-width: 0;
}

.checkout-card:hover {
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6);
}

.section-title {
    font-size: 1.4rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
    color: white;
    display: flex;
    align-items: center;
    gap: 10px;
}

.feature-pill {
    background: rgba(255, 255, 255, 0.05);
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Mobile */
/* Tablet (max-width: 1024px) */
@media (max-width: 1024px) {
    .hero h1 {
        font-size: 3.5rem;
    }

    .games-grid,
    .popular-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hiw-container {
        gap: 20px;
    }

    .hiw-step {
        width: auto;
        flex: 1;
    }
}

/* Mobile (max-width: 768px) */
@media (max-width: 768px) {

    /* Navigation */
    .mobile-toggle {
        display: block;
        color: white;
        z-index: 1001;
    }

    .nav-container {
        padding: 0 20px;
        gap: 0;
        justify-content: space-between;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        /* Slide out by default */
        width: 100%;
        height: 100vh;
        background: rgba(10, 10, 13, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        gap: 40px;
        transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1000;
        margin-left: 0;
        padding: 40px;
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-links {
        flex-direction: column;
        align-items: center;
        gap: 30px;
    }

    .nav-links a {
        font-size: 1.5rem;
    }

    .nav-actions {
        flex-direction: column;
        margin-left: 0;
        width: 100%;
        max-width: 300px;
    }

    .nav-actions .btn-login {
        width: 100%;
        text-align: center;
        padding: 15px;
        font-size: 1rem;
    }

    /* Language toggle on mobile — show next to hamburger */
    .lang-toggle {
        padding: 6px 12px;
        font-size: 0.7rem;
        margin-left: auto;
        margin-right: 15px;
    }

    /* Hero */
    .hero {
        flex-direction: column;
        text-align: left;
        padding: 100px 24px 40px;
        align-items: flex-start;
    }

    .hero-content {
        margin-bottom: 30px;
        margin-left: 0;
        max-width: 100%;
    }

    .hero h1 {
        font-size: 2.5rem;
        line-height: 1.05;
        margin-bottom: 14px;
    }

    .hero p {
        font-size: 0.95rem;
        margin-bottom: 24px;
        max-width: 100%;
    }

    .hero-btns {
        flex-direction: column;
        gap: 12px;
        margin-bottom: 30px;
    }

    .hero-btns .btn-primary,
    .hero-btns .btn-secondary {
        width: 100%;
        text-align: center;
        padding: 14px 20px;
        font-size: 0.9rem;
        justify-content: center;
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .stats-row {
        justify-content: space-between;
        gap: 0;
        width: 100%;
        padding-top: 24px;
    }

    .stat-item {
        align-items: center;
        flex: 1;
    }

    .stat-num {
        font-size: 1.4rem;
    }

    .stat-label {
        font-size: 0.75rem;
    }

    /* Hide character on mobile */
    .hero-visual {
        display: none;
    }

    /* Grids */
    .games-grid,
    .popular-grid {
        grid-template-columns: 1fr;
    }

    .program-layout-grid {
        grid-template-columns: 1fr;
    }

    .program-sidebar {
        position: relative;
        top: 0;
    }

    .checkout-card {
        min-width: 0;
        padding: 20px;
        border-radius: 16px;
    }

    /* Program Details Mobile Fixes */
    .program-header-section h1 {
        font-size: 1.8rem !important;
        word-break: break-word;
    }

    .section-title {
        font-size: 1.1rem;
    }

    .info-tabs {
        flex-direction: row;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .info-tab-btn {
        font-size: 0.7rem !important;
        padding: 10px 14px !important;
        white-space: nowrap;
    }

    .screenshot-grid {
        gap: 10px;
    }

    .grid-screenshot {
        min-width: 200px;
    }

    /* Other sections */
    .hiw-container {
        flex-direction: column;
        gap: 40px;
    }

    .hiw-line {
        display: none;
        /* Hide horizontal line on mobile */
    }

    .features-section {
        flex-direction: column;
        align-items: center;
        gap: 60px;
    }

    /* Section headers tighter */
    .section-header h2 {
        font-size: 1.8rem;
    }

    /* Footer */
    .footer-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .footer-links {
        justify-content: center;
    }

    .socials {
        justify-content: center;
    }
}

/* Program Card V2 (Reference Style) */
.program-card-v2 {
    background: #0f0f12;
    /* Darker bg */
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.program-card-v2:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border-color: rgba(255, 255, 255, 0.2);
}

.card-image-wrapper {
    position: relative;
    height: 180px;
    background: #1a1a1f;
}

.card-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.status-overlay {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
}

.card-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.card-title {
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    font-size: 1.2rem;
    color: white;
    margin: 0;
    line-height: 1.2;
}

.card-footer-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.price-tag {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: white;
}

.btn-gold {
    background: #FFD700;
    /* Gold */
    color: black;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    padding: 8px 20px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
}

.btn-gold:hover {
    background: #ffe033;
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.3);
}

.program-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

/* Screenshot Grid — Horizontal Scrollable Row */
.screenshot-grid {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 10px;
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 229, 255, 0.3) transparent;
}

.screenshot-grid::-webkit-scrollbar {
    height: 6px;
}

.screenshot-grid::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 3px;
}

.screenshot-grid::-webkit-scrollbar-thumb {
    background: rgba(0, 229, 255, 0.25);
    border-radius: 3px;
}

.screenshot-grid::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 229, 255, 0.45);
}

.grid-screenshot {
    width: 100%;
    height: auto;
    /* Allow flexible height */
    aspect-ratio: 16/9;
    /* Enforce standard game screenshot ratio */
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    transition: 0.3s;
    cursor: pointer;
}

.grid-screenshot:hover {
    transform: scale(1.05);
    /* Slightly more pop */
    border-color: var(--primary-cyan);
    box-shadow: 0 0 15px rgba(0, 229, 255, 0.4);
}

/* Fullscreen Media Lightbox */
.media-lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: zoom-out;
    animation: mlb-fadeIn 0.3s ease;
}

@keyframes mlb-fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes mlb-zoomIn {
    from {
        opacity: 0;
        transform: scale(0.88);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.media-lightbox__close {
    position: fixed;
    top: 20px;
    right: 28px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.6rem;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    line-height: 1;
    backdrop-filter: blur(10px);
}

.media-lightbox__close:hover {
    background: rgba(255, 50, 50, 0.15);
    border-color: rgba(255, 50, 50, 0.4);
    color: #ff4b4b;
}

.media-lightbox__content {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100vw;
    height: 100vh;
    cursor: default;
}

.media-lightbox__img {
    max-width: 92vw;
    max-height: 90vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 10px;
}

.media-lightbox__video-wrap {
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
}

.media-lightbox__video {
    max-width: 95vw;
    max-height: 92vh;
    width: auto;
    height: auto;
    border-radius: 8px;
    background: #000;
    box-shadow: 0 20px 80px rgba(0, 0, 0, 0.6);
    outline: none;
}

.media-lightbox__iframe {
    width: 90vw;
    height: 85vh;
    max-width: 1600px;
    border: none;
    border-radius: 8px;
    box-shadow: 0 20px 80px rgba(0, 0, 0, 0.6);
}

/* ==============================
   TAB CONTENT TRANSITIONS
   ============================== */
.tab-active {
    display: block;
    opacity: 1;
    transform: none;
}

.tab-hidden {
    display: none;
    opacity: 0;
}

/* ==============================
   DESCRIPTION TRUNCATION
   ============================== */
.desc-wrapper {
    position: relative;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.desc-wrapper.desc-truncated {
    max-height: 150px;
    overflow: hidden;
}

.desc-wrapper.desc-expanded {
    max-height: 5000px;
}

.desc-fade-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: linear-gradient(transparent, var(--bg-dark, #0a0a0d));
    pointer-events: none;
    z-index: 1;
}

.desc-show-more-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 10px;
    padding: 10px 24px;
    background: rgba(0, 229, 255, 0.06);
    border: 1px solid rgba(0, 229, 255, 0.2);
    border-radius: 8px;
    color: var(--primary-cyan);
    font-family: 'Orbitron', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    cursor: pointer;
    transition: all 0.25s ease;
    position: relative;
    z-index: 2;
}

.desc-show-more-btn:hover {
    background: rgba(0, 229, 255, 0.12);
    border-color: rgba(0, 229, 255, 0.4);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(0, 229, 255, 0.15);
}

/* Grid media item (video thumbnail in screenshot grid) */
.grid-media-item {
    position: relative;
    min-width: calc((100% - 30px) / 3);
    width: calc((100% - 30px) / 3);
    flex-shrink: 0;
    aspect-ratio: 16/9;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #0a0a12;
}

.grid-media-item:hover {
    border-color: var(--primary-cyan);
    box-shadow: 0 0 15px rgba(0, 229, 255, 0.4);
}

.grid-media-item video,
.grid-media-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.grid-media-item__play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    pointer-events: none;
}

.grid-media-item:hover .grid-media-item__play {
    background: rgba(0, 229, 255, 0.3);
    border-color: rgba(0, 229, 255, 0.6);
    transform: translate(-50%, -50%) scale(1.1);
}

.grid-media-item__play svg {
    width: 24px;
    height: 24px;
    fill: white;
    margin-left: 3px;
}

/* ==============================
   PROGRAM CARDS (Product Page)
   ============================== */

.program-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
}

/* --- Card Base --- */
.prog-card {
    background: #111118;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.prog-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-cyan), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.prog-card {
    position: relative;
}

.prog-card:hover {
    border-color: rgba(0, 229, 255, 0.15);
}

.prog-card:hover::after {
    opacity: 1;
}

.prog-card:hover .prog-card__arrow {
    transform: translateX(3px);
}

/* --- Bestseller Variant --- */
.prog-card--best {
    border-color: rgba(255, 120, 0, 0.25);
}

.prog-card--best:hover {
    border-color: rgba(255, 120, 0, 0.45);
    box-shadow: 0 4px 24px rgba(255, 107, 0, 0.1);
}

/* --- Card Image --- */
.prog-card__img {
    position: relative;
    height: 140px;
    overflow: hidden;
    background: #0a0a12;
}

.prog-card__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.prog-card__img-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, 0.7) 100%);
    pointer-events: none;
}

/* --- Bestseller Badge (on image) --- */
.prog-card__badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: linear-gradient(135deg, #ff6b00, #ff9500);
    color: #fff;
    font-size: 0.6rem;
    font-weight: 800;
    font-family: 'Rajdhani', sans-serif;
    padding: 3px 10px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 4px;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    z-index: 2;
    box-shadow: 0 2px 10px rgba(255, 107, 0, 0.5);
}

.prog-card__badge i {
    font-size: 0.6rem;
}

/* --- Status Badge (bottom-right of image) --- */
.prog-card__status {
    position: absolute;
    bottom: 8px;
    right: 10px;
    font-size: 0.58rem;
    font-weight: 700;
    font-family: 'Rajdhani', sans-serif;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 2px 8px;
    border-radius: 3px;
    z-index: 2;
    backdrop-filter: blur(6px);
}

.prog-card__status--undetected {
    background: rgba(0, 200, 100, 0.15);
    color: #6fcf97;
    border: 1px solid rgba(0, 200, 100, 0.25);
}

.prog-card__status--updating {
    background: rgba(255, 166, 0, 0.15);
    color: #f2994a;
    border: 1px solid rgba(255, 166, 0, 0.25);
}

.prog-card__status--testing {
    background: rgba(255, 200, 0, 0.15);
    color: #f2c94c;
    border: 1px solid rgba(255, 200, 0, 0.25);
}

.prog-card__status--risky {
    background: rgba(255, 50, 50, 0.15);
    color: #eb5757;
    border: 1px solid rgba(255, 50, 50, 0.25);
}

.prog-card__status--detected {
    background: rgba(255, 50, 50, 0.15);
    color: #eb5757;
    border: 1px solid rgba(255, 50, 50, 0.25);
}

/* --- Card Body --- */
.prog-card__body {
    padding: 14px 16px 16px;
}

.prog-card__name {
    font-size: 0.95rem;
    font-weight: 700;
    color: #eee;
    margin: 0 0 10px 0;
    font-family: 'Rajdhani', sans-serif;
    line-height: 1.2;
    letter-spacing: 0.3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* --- Footer: Price + Arrow --- */
.prog-card__footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 10px;
}

.prog-card__price {
    font-size: 1.15rem;
    font-weight: 800;
    color: #fff;
    font-family: 'Rajdhani', sans-serif;
    display: flex;
    align-items: baseline;
    gap: 4px;
    line-height: 1;
}

.prog-card__price small {
    font-size: 0.7rem;
    color: #555;
    font-weight: 400;
    vertical-align: baseline;
}

.prog-card__arrow {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--primary-blue);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    transition: background 0.2s ease, transform 0.2s ease;
}

.prog-card:hover .prog-card__arrow {
    background: #3370ff;
    transform: translateX(2px);
}

/* --- Card Status Text (Minimal) --- */
.card-status-text {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.65rem;
    font-weight: 600;
    font-family: 'Rajdhani', sans-serif;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 8px;
    opacity: 0.8;
}

.card-status-text::before {
    content: '';
    width: 5px;
    height: 5px;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
}

.card-status-text.status-online {
    color: #6fcf97;
}

.card-status-text.status-online::before {
    background: #6fcf97;
    box-shadow: 0 0 4px #6fcf97;
}

.card-status-text.status-updating {
    color: #f2994a;
}

.card-status-text.status-updating::before {
    background: #f2994a;
    box-shadow: 0 0 4px #f2994a;
}

.card-status-text.status-offline {
    color: #eb5757;
}

.card-status-text.status-offline::before {
    background: #eb5757;
    box-shadow: 0 0 4px #eb5757;
}

/* --- Card Reveal (instant) --- */
.animate-card-reveal {
    opacity: 1;
}

/* --- Card Description Collapsible --- */
.card-description-wrap {
    margin-bottom: 12px;
}

.card-desc-text {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 4px;
    line-height: 1.5;
    word-break: break-word;
}

.desc-toggle-btn {
    background: none;
    border: none;
    color: var(--primary-cyan);
    font-size: 0.75rem;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 600;
    cursor: pointer;
    padding: 4px 0;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.desc-toggle-btn:hover {
    color: #fff;
    text-shadow: 0 0 8px var(--primary-cyan);
}

.desc-toggle-btn i {
    font-size: 0.65rem;
    transition: transform 0.3s ease;
}

/* --- AUTH PAGES (Global) --- */
.auth-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.auth-card-premium {
    background: rgba(18, 18, 21, 0.8);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-top: 1px solid var(--primary-cyan);
    border-radius: 16px;
    padding: 50px;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 30px rgba(0, 229, 255, 0.05);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.auth-card-premium::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--primary-cyan), transparent);
}

.auth-header {
    margin-bottom: 40px;
}

.auth-logo {
    font-family: 'Orbitron';
    font-size: 2rem;
    color: white;
    text-decoration: none;
    display: block;
    margin-bottom: 10px;
    text-shadow: 0 0 15px rgba(0, 229, 255, 0.5);
}

.auth-header p {
    color: var(--text-muted);
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.input-group {
    position: relative;
    margin-bottom: 20px;
}

.input-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
    transition: 0.3s;
}

.input-group input {
    width: 100%;
    padding: 15px 15px 15px 45px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: white;
    font-family: 'Inter';
    transition: 0.3s;
}

.input-group input:focus {
    background: rgba(0, 229, 255, 0.05);
    border-color: var(--primary-cyan);
    outline: none;
    box-shadow: 0 0 15px rgba(0, 229, 255, 0.1);
}

.input-group input:focus+.input-icon,
.input-group:focus-within .input-icon {
    color: var(--primary-cyan);
}

.btn-block {
    width: 100%;
    padding: 15px;
    font-size: 1rem;
    border-radius: 8px;
    letter-spacing: 2px;
}

.auth-footer {
    margin-top: 30px;
    font-size: 0.9rem;
    color: #888;
}

.link-animate {
    color: var(--primary-cyan);
    text-decoration: none;
    font-weight: 600;
    margin-left: 5px;
    position: relative;
}

.link-animate::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -2px;
    left: 0;
    background-color: var(--primary-cyan);
    transition: 0.3s;
}

.link-animate:hover::after {
    width: 100%;
}

.error-banner {
    background: rgba(255, 51, 51, 0.1);
    border: 1px solid #ff3333;
    color: #ff3333;
    padding: 10px;
    border-radius: 6px;
    font-size: 0.85rem;
    margin-bottom: 20px;
    display: none;
}

.error-banner.visible {
    display: block;
    animation: shake 0.3s;
}

@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-5px);
    }

    75% {
        transform: translateX(5px);
    }
}

/* --- FORM CONTROLS (Global) --- */
.form-control {
    width: 100%;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    color: white;
    font-family: 'Inter', sans-serif;
    transition: 0.3s;
    margin-bottom: 15px;
}

.form-control:focus {
    background: rgba(0, 0, 0, 0.3);
    border-color: var(--primary-cyan);
    outline: none;
    box-shadow: 0 0 10px rgba(0, 229, 255, 0.1);
}

label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* --- HOW IT WORKS V2 (Timeline) --- */
.hiw-container {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    position: relative;
    padding: 20px 0;
}

/* The Line using ::before or a separate div */
.hiw-line {
    position: absolute;
    top: 50px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg,
            rgba(255, 255, 255, 0.05) 0%,
            var(--primary-blue) 30%,
            var(--primary-cyan) 70%,
            rgba(255, 255, 255, 0.05) 100%);
    z-index: 0;
    box-shadow: 0 0 15px var(--primary-cyan);
}

.hiw-step {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 220px;
    transition: 0.3s;
}

.hiw-step:hover {
    transform: translateY(-10px);
}

.hiw-icon-box {
    width: 100px;
    height: 100px;
    background: var(--bg-dark);
    border: 2px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2.5rem;
    color: var(--text-muted);
    margin-bottom: 30px;
    position: relative;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.8);
    transition: 0.3s;
}

.hiw-step:hover .hiw-icon-box {
    border-color: var(--primary-cyan);
    color: white;
    box-shadow: 0 0 30px rgba(0, 229, 255, 0.3);
    background: rgba(0, 229, 255, 0.05);
}

/* Glowing Last Step */
.glow-icon {
    border-color: var(--primary-cyan);
    color: var(--primary-cyan);
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.2);
}

.step-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 30px;
    height: 30px;
    background: var(--bg-card);
    border: 1px solid var(--border-highlight);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 0.9rem;
    font-weight: 700;
    color: white;
    font-family: 'Rajdhani', sans-serif;
}

.hiw-content h3 {
    font-family: 'Orbitron';
    letter-spacing: 1px;
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.hiw-content p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.5;
}

@media (max-width: 900px) {
    .hiw-container {
        flex-direction: column;
        align-items: center;
        gap: 50px;
    }

    .hiw-line {
        width: 2px;
        height: 100%;
        top: 0;
        left: 50%;
        transform: translateX(-50%);
        background: linear-gradient(180deg,
                rgba(255, 255, 255, 0.05) 0%,
                var(--primary-blue) 20%,
                var(--primary-cyan) 80%,
                rgba(255, 255, 255, 0.05) 100%);
    }

    .hiw-step {
        width: 100%;
        max-width: 300px;
    }
}

/* --- SUPPORT PAGE STYLES --- */
.download-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    transition: 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    cursor: pointer;
}

.download-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--primary-cyan);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.dl-icon {
    font-size: 2.5rem;
    color: var(--primary-blue);
    margin-bottom: 20px;
    height: 60px;
    width: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(0, 85, 255, 0.1);
    border-radius: 50%;
    transition: 0.3s;
}

.download-card:hover .dl-icon {
    color: white;
    background: var(--primary-blue);
    box-shadow: 0 0 15px var(--primary-blue);
}

.download-card h3 {
    color: white;
    font-size: 1.1rem;
    margin-bottom: 5px;
    font-family: 'Orbitron';
}

.download-card p {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 20px;
}

.download-card .btn-sm {
    margin-top: auto;
    width: 100%;
    padding: 10px;
    font-size: 0.8rem;
}

.download-card:hover .btn-sm {
    background: white;
    color: black;
}

.btn-discord:hover {
    background: #4752c4 !important;
    box-shadow: 0 0 20px rgba(88, 101, 242, 0.5);
    transform: translateY(-2px);
}

/* ============ Language Toggle ============ */
.lang-toggle {
    background: rgba(0, 229, 255, 0.1);
    border: 1px solid rgba(0, 229, 255, 0.3);
    color: #00e5ff;
    padding: 6px 14px;
    border-radius: 20px;
    cursor: pointer;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    white-space: nowrap;
    margin-left: 10px;
}

.lang-toggle:hover {
    background: rgba(0, 229, 255, 0.2);
    border-color: rgba(0, 229, 255, 0.6);
    box-shadow: 0 0 12px rgba(0, 229, 255, 0.2);
}

/* Live Editor Styles */
.live-editor-panel {
    position: fixed;
    top: 0;
    right: -500px;
    width: 450px;
    height: 100vh;
    background: rgba(15, 15, 20, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-left: 1px solid var(--border-color);
    z-index: 2000;
    padding: 30px;
    overflow-y: auto;
    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -10px 0 50px rgba(0, 0, 0, 0.5);
}

.live-editor-panel.open {
    right: 0 !important;
}

.live-editor-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.live-editor-header h2 {
    font-size: 1.5rem;
    color: white;
    margin: 0;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
}

.editor-close-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    transition: 0.2s;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.editor-close-btn:hover {
    color: white;
    background: rgba(255, 255, 255, 0.1);
}

.editor-section {
    margin-bottom: 25px;
    background: rgba(255, 255, 255, 0.02);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.editor-section h3 {
    font-size: 0.9rem;
    color: var(--primary-cyan);
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.editor-form-group {
    margin-bottom: 20px;
}

.editor-form-group:last-child {
    margin-bottom: 0;
}

.editor-label {
    display: block;
    color: var(--text-muted);
    margin-bottom: 8px;
    font-size: 0.85rem;
    font-weight: 500;
}

.editor-input {
    width: 100%;
    padding: 12px 16px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    color: white;
    border-radius: 8px;
    outline: none;
    transition: 0.2s;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
}

.editor-input:focus {
    border-color: var(--primary-cyan);
    background: rgba(0, 229, 255, 0.05);
    box-shadow: 0 0 15px rgba(0, 229, 255, 0.1);
}

.editor-textarea {
    width: 100%;
    padding: 12px 16px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    color: white;
    border-radius: 8px;
    outline: none;
    transition: 0.2s;
    font-family: 'Consolas', monospace;
    font-size: 0.9rem;
    resize: vertical;
    line-height: 1.5;
}

.editor-textarea:focus {
    border-color: var(--primary-cyan);
    background: rgba(0, 229, 255, 0.05);
}

.editor-row {
    display: flex;
    gap: 12px;
}

.editor-hint {
    color: #666;
    font-size: 0.75rem;
    margin-top: 6px;
}

.editor-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 8px;
}

.editor-table th {
    text-align: left;
    color: var(--primary-cyan);
    font-size: 0.8rem;
    padding: 0 8px 8px;
    font-weight: 600;
}

.editor-table td {
    padding: 0 4px;
}

.btn-editor-action {
    width: 100%;
    padding: 8px;
    border-radius: 6px;
    border: 1px dashed rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    cursor: pointer;
    transition: 0.2s;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-editor-action:hover {
    border-color: var(--primary-cyan);
    color: var(--primary-cyan);
    background: rgba(0, 229, 255, 0.05);
}

.btn-save-changes {
    width: 100%;
    padding: 16px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-cyan));
    color: white;
    border: none;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    margin-top: 20px;
}

.btn-save-changes:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(0, 229, 255, 0.3);
}

.admin-toggle-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--primary-cyan);
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.5);
    z-index: 1999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: 0.3s;
    color: black;
}

.admin-toggle-btn:hover {
    transform: scale(1.1) rotate(90deg);
    box-shadow: 0 0 40px rgba(0, 229, 255, 0.8);
}

/* Region Table Styles */
.region-row {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.region-input {
    width: 100%;
    padding: 6px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: white;
    border-radius: 4px;
    text-align: center;
    font-size: 0.85rem;
    transition: 0.2s;
}

.region-input:focus {
    border-color: var(--primary-cyan);
    background: rgba(0, 229, 255, 0.05);
}

.region-name-input {
    width: 100%;
    padding: 6px;
    background: rgba(255, 166, 0, 0.1);
    border: 1px solid rgba(255, 166, 0, 0.3);
    color: #ffa500;
    border-radius: 4px;
    font-size: 0.85rem;
    transition: 0.2s;
}

.region-name-input:focus {
    background: rgba(255, 166, 0, 0.15);
    border-color: #ffa500;
}

.btn-remove-region {
    background: none;
    border: none;
    color: #ff4444;
    cursor: pointer;
    font-size: 1rem;
    transition: 0.2s;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-remove-region:hover {
    background: rgba(255, 68, 68, 0.1);
    transform: scale(1.1);
}

/* (ruble-sign consolidated above) */

/* ===== Creator Page ===== */
.creator-games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    max-width: 1100px;
    margin: 0 auto;
}

.creator-game-card {
    background: rgba(18, 18, 20, 0.7);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    position: relative;
}

.creator-game-img {
    width: 100%;
    aspect-ratio: 16 / 10;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: brightness(1.15) saturate(1.2) contrast(1.05);
}

.creator-game-name {
    padding: 14px 16px;
    text-align: center;
    font-family: 'Rajdhani', 'Exo 2', sans-serif;
    font-weight: 700;
    letter-spacing: 2px;
    font-size: 1.05rem;
    color: #fff;
    border-top: 1px solid var(--border-color);
    background: rgba(0, 0, 0, 0.3);
}

body.lang-ru .creator-game-name {
    font-family: 'Exo 2', sans-serif;
    font-weight: 600;
}

.creator-cta {
    background: rgba(18, 18, 20, 0.85);
    border: 1px solid var(--border-color);
    padding: 60px 40px;
    border-radius: 16px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.creator-cta-actions {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
    gap: 18px;
    flex-wrap: wrap;
}

.btn-telegram,
.btn-discord-creator {
    min-width: 200px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px 32px;
    border-radius: 6px;
    font-family: 'Rajdhani', 'Exo 2', sans-serif;
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: 2px;
    color: white;
    transition: all 0.25s ease;
    border: 1px solid transparent;
}

.btn-telegram {
    background: linear-gradient(135deg, #229ED9, #1B7BB0);
    box-shadow: 0 6px 20px rgba(34, 158, 217, 0.25);
}

.btn-telegram:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(34, 158, 217, 0.45);
    color: white;
}

.btn-discord-creator {
    background: linear-gradient(135deg, #5865F2, #4752C4);
    box-shadow: 0 6px 20px rgba(88, 101, 242, 0.25);
}

.btn-discord-creator:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(88, 101, 242, 0.45);
    color: white;
}

.btn-telegram i,
.btn-discord-creator i {
    font-size: 1.3rem;
}

body.lang-ru .btn-telegram,
body.lang-ru .btn-discord-creator {
    font-family: 'Exo 2', sans-serif;
    font-weight: 600;
}

@media (max-width: 600px) {
    .creator-cta {
        padding: 40px 20px;
    }
    .btn-telegram,
    .btn-discord-creator {
        width: 100%;
        min-width: 0;
    }
}

/* ===== Media Creator Toast ===== */
.media-toast {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 9999;
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr);
    gap: 18px;
    width: 410px;
    max-width: calc(100vw - 48px);
    padding: 22px 46px 22px 20px;
    background:
        radial-gradient(circle at 9% 12%, rgba(0, 229, 255, 0.16), transparent 30%),
        radial-gradient(circle at 94% 100%, rgba(123, 91, 255, 0.14), transparent 42%),
        linear-gradient(145deg, rgba(17, 21, 30, 0.97), rgba(8, 10, 16, 0.98));
    border: 1px solid rgba(118, 224, 255, 0.25);
    border-radius: 18px;
    box-shadow:
        0 24px 70px rgba(0, 0, 0, 0.58),
        0 0 0 1px rgba(255, 255, 255, 0.025) inset,
        0 0 44px rgba(0, 187, 255, 0.09);
    backdrop-filter: blur(22px) saturate(135%);
    -webkit-backdrop-filter: blur(22px) saturate(135%);
    color: #fff;
    overflow: hidden;
    isolation: isolate;
    transform: translateY(26px) scale(0.965);
    opacity: 0;
    transition:
        transform 0.5s cubic-bezier(0.16, 1, 0.3, 1),
        opacity 0.32s ease;
    font-family: 'Exo 2', sans-serif;
    pointer-events: auto;
}

.media-toast::before {
    content: '';
    position: absolute;
    z-index: -1;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
    background-size: 22px 22px;
    mask-image: linear-gradient(120deg, #000, transparent 70%);
    -webkit-mask-image: linear-gradient(120deg, #000, transparent 70%);
    pointer-events: none;
}

.media-toast::after {
    content: '';
    position: absolute;
    top: 0;
    left: 18px;
    right: 18px;
    height: 1px;
    background: linear-gradient(90deg, transparent, #00e5ff 35%, #8a73ff 72%, transparent);
    box-shadow: 0 0 16px rgba(0, 229, 255, 0.62);
    opacity: 0.9;
    pointer-events: none;
}

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

.media-toast--hide {
    transform: translateY(18px) scale(0.97);
    opacity: 0;
}

.media-toast__visual {
    position: relative;
    width: 76px;
    height: 76px;
    align-self: center;
    display: grid;
    place-items: center;
}

.media-toast__icon {
    position: relative;
    z-index: 2;
    width: 58px;
    height: 58px;
    border-radius: 17px;
    background:
        linear-gradient(145deg, rgba(0, 229, 255, 0.18), rgba(123, 91, 255, 0.14)),
        rgba(10, 14, 22, 0.72);
    border: 1px solid rgba(99, 225, 255, 0.38);
    box-shadow:
        0 14px 28px rgba(0, 0, 0, 0.35),
        0 0 24px rgba(0, 229, 255, 0.14),
        0 0 0 4px rgba(0, 229, 255, 0.035);
    display: grid;
    place-items: center;
    color: #85f3ff;
    font-size: 1.25rem;
    transform: rotate(-5deg);
}

.media-toast__icon i {
    transform: rotate(5deg);
    filter: drop-shadow(0 0 8px rgba(0, 229, 255, 0.5));
}

.media-toast__visual-dot {
    position: absolute;
    z-index: 1;
    border-radius: 50%;
    background: #00e5ff;
    box-shadow: 0 0 10px currentColor;
}

.media-toast__visual-dot--one {
    top: 4px;
    right: 4px;
    width: 6px;
    height: 6px;
    color: #00e5ff;
}

.media-toast__visual-dot--two {
    bottom: 5px;
    left: 7px;
    width: 4px;
    height: 4px;
    color: #8a73ff;
    background: #8a73ff;
}

.media-toast__body {
    min-width: 0;
    line-height: 1.45;
}

.media-toast__eyebrow {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 7px;
    color: #67eaf9;
    font-family: 'Rajdhani', 'Exo 2', sans-serif;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 1.8px;
    line-height: 1;
    text-transform: uppercase;
}

.media-toast__live-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #52ffad;
    box-shadow: 0 0 0 3px rgba(82, 255, 173, 0.1), 0 0 10px rgba(82, 255, 173, 0.75);
    animation: mediaToastPulse 2.2s ease-in-out infinite;
}

.media-toast__title {
    margin-bottom: 5px;
    color: #f7fbff;
    font-family: 'Exo 2', sans-serif;
    font-size: 1.06rem;
    font-weight: 700;
    letter-spacing: 0.1px;
    line-height: 1.25;
}

.media-toast__text {
    margin-bottom: 13px;
    color: rgba(206, 216, 232, 0.72);
    font-size: 0.79rem;
    line-height: 1.45;
}

.media-toast__cta {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    min-height: 32px;
    padding: 7px 13px;
    border: 1px solid rgba(0, 229, 255, 0.32);
    border-radius: 8px;
    background: rgba(0, 229, 255, 0.09);
    color: #8ef3ff !important;
    font-weight: 700;
    font-size: 0.7rem;
    letter-spacing: 1.1px;
    line-height: 1;
    text-decoration: none;
    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.media-toast__cta i {
    font-size: 0.68rem;
    transition: transform 0.2s ease;
}

.media-toast__cta:hover {
    background: linear-gradient(135deg, rgba(0, 229, 255, 0.2), rgba(123, 91, 255, 0.16));
    border-color: rgba(0, 229, 255, 0.62);
    color: #fff !important;
    box-shadow: 0 8px 22px rgba(0, 229, 255, 0.12);
    transform: translateY(-1px);
}

.media-toast__cta:hover i {
    transform: translateX(3px);
}

.media-toast__cta:focus-visible,
.media-toast__close:focus-visible {
    outline: 2px solid #00e5ff;
    outline-offset: 3px;
}

.media-toast__close {
    position: absolute;
    top: 11px;
    right: 11px;
    width: 26px;
    height: 26px;
    padding: 0;
    border: 1px solid transparent;
    background: rgba(255, 255, 255, 0.025);
    color: rgba(207, 217, 232, 0.55);
    cursor: pointer;
    border-radius: 8px;
    display: grid;
    place-items: center;
    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease;
    font-size: 0.78rem;
}

.media-toast__close:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.08);
    color: #fff;
    transform: rotate(4deg);
}

@keyframes mediaToastPulse {
    0%,
    100% {
        opacity: 0.7;
        transform: scale(0.9);
    }

    50% {
        opacity: 1;
        transform: scale(1.08);
    }
}

@media (max-width: 480px) {
    .media-toast {
        right: 12px;
        bottom: 12px;
        grid-template-columns: 52px minmax(0, 1fr);
        gap: 13px;
        width: calc(100vw - 24px);
        max-width: none;
        padding: 18px 40px 18px 16px;
        border-radius: 16px;
    }

    .media-toast__visual {
        width: 52px;
        height: 58px;
        align-self: start;
        margin-top: 3px;
    }

    .media-toast__icon {
        width: 46px;
        height: 46px;
        border-radius: 14px;
        font-size: 1rem;
    }

    .media-toast__visual-dot--one {
        top: 0;
        right: 0;
    }

    .media-toast__visual-dot--two {
        bottom: 1px;
        left: 2px;
    }

    .media-toast__title {
        font-size: 0.98rem;
    }

    .media-toast__text {
        font-size: 0.76rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .media-toast,
    .media-toast__cta,
    .media-toast__cta i,
    .media-toast__close {
        transition-duration: 0.01ms !important;
    }

    .media-toast__live-dot {
        animation: none;
    }
}

/* ===== Media Creator Toast — Minimal v3 ===== */
.media-toast {
    right: 18px;
    bottom: 18px;
    display: block;
    width: 270px;
    max-width: calc(100vw - 36px);
    padding: 0;
    background: rgba(11, 14, 20, 0.94);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 13px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.42);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    overflow: hidden;
    isolation: auto;
    transform: translateY(14px);
    transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.22s ease;
    box-sizing: border-box;
}

.media-toast::before,
.media-toast::after {
    content: none;
}

.media-toast--show {
    transform: translateY(0);
}

.media-toast--hide {
    transform: translateY(10px);
}

.media-toast__link {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 26px;
    align-items: center;
    gap: 10px;
    min-width: 0;
    padding: 10px 36px 10px 13px;
    border-radius: inherit;
    color: inherit;
    text-decoration: none;
}

.media-toast__icon {
    position: static;
    z-index: auto;
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border: 1px solid rgba(0, 229, 255, 0.18);
    border-radius: 9px;
    background: rgba(0, 229, 255, 0.07);
    box-shadow: none;
    color: #72e8f5;
    font-size: 0.82rem;
    transform: none;
}

.media-toast__icon i {
    transform: none;
    filter: none;
}

.media-toast__body {
    display: block;
    min-width: 0;
    line-height: normal;
}

.media-toast__eyebrow {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0 0 4px;
    color: rgba(123, 233, 245, 0.76);
    font-family: 'Exo 2', sans-serif;
    font-size: 0.56rem;
    font-weight: 700;
    letter-spacing: 1.25px;
    line-height: 1;
}

.media-toast__live-dot {
    width: 5px;
    height: 5px;
    flex: 0 0 5px;
    background: #50e6a0;
    box-shadow: 0 0 7px rgba(80, 230, 160, 0.48);
    animation: none;
}

.media-toast__title {
    display: block;
    margin: 0;
    overflow: hidden;
    color: rgba(255, 255, 255, 0.92);
    font-family: 'Exo 2', sans-serif;
    font-size: 0.84rem;
    font-weight: 600;
    letter-spacing: 0;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.media-toast__arrow {
    display: grid;
    place-items: center;
    width: 26px;
    height: 26px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.52);
    font-size: 0.64rem;
    transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.media-toast__link:hover .media-toast__arrow {
    border-color: rgba(0, 229, 255, 0.25);
    background: rgba(0, 229, 255, 0.08);
    color: #7debf7;
    transform: translateX(2px);
}

.media-toast__link:focus-visible {
    outline: 2px solid rgba(0, 229, 255, 0.75);
    outline-offset: 2px;
}

.media-toast__close {
    top: 6px;
    right: 6px;
    width: 20px;
    height: 20px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: rgba(255, 255, 255, 0.28);
    font-size: 0.62rem;
    transition: background 0.18s ease, color 0.18s ease;
}

.media-toast__close:hover {
    border-color: transparent;
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.74);
    transform: none;
}

@media (max-width: 480px) {
    .media-toast {
        right: 10px;
        bottom: 10px;
        width: min(270px, calc(100vw - 20px));
        max-width: calc(100vw - 20px);
        padding: 0;
        border-radius: 12px;
    }

    .media-toast__link {
        grid-template-columns: minmax(0, 1fr) 24px;
        gap: 9px;
        padding: 9px 34px 9px 12px;
    }

    .media-toast__arrow {
        width: 24px;
        height: 24px;
        border-radius: 7px;
    }

    .media-toast__title {
        font-size: 0.8rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .media-toast,
    .media-toast__arrow {
        transition-duration: 0.01ms !important;
    }
}

/* ===== Dynamic QHD / 2K density =====
   qhd-scale.js compensates Chrome page zoom so the layout keeps the
   same visual density at 100%, 110%, 125% and 150%. */
html.qhd-density {
    zoom: var(--qhd-scale, 1);
}

html.qhd-density .bg-grid {
    width: var(--qhd-full-vw);
    height: var(--qhd-full-vh);
}

html.qhd-density .hero {
    min-height: var(--qhd-hero-vh);
}

html.qhd-density .page-catalog .hero,
html.qhd-density .page-support .hero {
    min-height: var(--qhd-catalog-vh) !important;
}

html.qhd-density .page-media .hero {
    min-height: var(--qhd-media-vh) !important;
}

html.qhd-density .page-product #product-container {
    min-height: var(--qhd-product-vh) !important;
}

html.qhd-density .page-product #live-editor,
html.qhd-density .page-program .live-editor-panel {
    height: var(--qhd-full-vh) !important;
}

html.qhd-density .page-program #program-container {
    min-height: var(--qhd-program-vh) !important;
}

html.qhd-density .auth-wrapper {
    min-height: var(--qhd-full-vh);
}

html.qhd-density .media-lightbox__content,
html.qhd-density .media-lightbox__video-wrap {
    width: var(--qhd-full-vw);
    height: var(--qhd-full-vh);
}

html.qhd-density .media-lightbox__img {
    max-width: var(--qhd-lightbox-img-vw);
    max-height: var(--qhd-lightbox-img-vh);
}

html.qhd-density .media-lightbox__video {
    max-width: var(--qhd-lightbox-video-vw);
    max-height: var(--qhd-lightbox-video-vh);
}

html.qhd-density .media-lightbox__iframe {
    width: var(--qhd-lightbox-frame-vw);
    height: var(--qhd-lightbox-frame-vh);
}

/* ===== Unified responsive foundation ===== */
:root {
    --page-gutter: clamp(20px, 3vw, 48px);
    --page-gutter-small: clamp(16px, 4vw, 24px);
    --content-main: 1200px;
    --content-wide: 1600px;
    --navbar-height: 72px;
}

html {
    min-width: 320px;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    min-width: 320px;
}

body.nav-open {
    overflow: hidden;
}

img,
video,
iframe,
canvas {
    max-width: 100%;
}

.nav-container {
    width: min(100%, var(--content-wide));
    padding-inline: var(--page-gutter);
}

.logo {
    flex: 0 0 auto;
    margin-left: 0;
}

.nav-menu,
.nav-links,
.nav-actions,
.hero-content,
.program-main-content,
.program-sidebar,
.profile-content {
    min-width: 0;
}

.nav-links {
    gap: clamp(16px, 1.3vw, 24px);
}

.nav-links a {
    font-size: clamp(1rem, 1.05vw, 1.35rem);
    letter-spacing: clamp(1.8px, 0.18vw, 3.5px);
}

.nav-actions {
    min-width: 0;
}

.hero,
.games-section,
#product-container,
#program-container,
.support-section,
.legal-container,
.profile-container {
    width: min(100%, var(--content-main));
}

.games-section,
.support-section,
.legal-container,
.profile-container,
#product-container,
#program-container {
    padding-inline: var(--page-gutter);
}

.games-grid,
.popular-grid,
.program-grid,
.skeleton-prog-grid,
.creator-games-grid,
.downloads-grid {
    min-width: 0;
}

.game-card,
.program-card-v2,
.prog-card,
.download-card,
.creator-game-card {
    min-width: 0;
}

.footer-links {
    flex-wrap: wrap;
}

.info-tabs,
.screenshot-grid {
    scrollbar-width: thin;
    overscroll-behavior-inline: contain;
}

/* Keep navigation comfortable when desktop zoom reduces the CSS viewport. */
@media (min-width: 1181px) and (max-width: 1599px) {
    .nav-container {
        padding-inline: clamp(22px, 2vw, 36px);
    }

    .nav-menu {
        margin-left: clamp(14px, 1.5vw, 24px);
        gap: clamp(12px, 1.4vw, 22px);
    }

    .nav-links {
        gap: clamp(13px, 1.25vw, 20px);
    }

    .nav-links a {
        font-size: clamp(0.94rem, 1.25vw, 1.08rem);
        letter-spacing: clamp(1.4px, 0.18vw, 2.4px);
    }

    .nav-actions {
        gap: 8px;
    }

    .btn-login {
        padding-inline: 13px;
    }

    body.lang-ru .nav-links,
    body.is-logged-in .nav-links,
    body.is-logged-in.lang-ru .nav-links {
        transform: none;
    }
}

/* Tablet navigation and layouts, including iPad portrait. */
@media (max-width: 1180px) {
    :root {
        --navbar-height: 68px;
    }

    .navbar {
        padding-block: 10px;
    }

    .nav-container {
        justify-content: space-between;
        gap: 12px;
        padding-inline: var(--page-gutter-small);
    }

    .mobile-toggle {
        position: relative;
        z-index: 1002;
        display: grid;
        width: 44px;
        height: 44px;
        flex: 0 0 44px;
        place-items: center;
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 10px;
        background: rgba(255, 255, 255, 0.04);
        color: #fff;
        font-size: 1.15rem;
        touch-action: manipulation;
    }

    .mobile-toggle:focus-visible {
        outline: 2px solid var(--primary-cyan);
        outline-offset: 3px;
    }

    .nav-menu {
        position: fixed;
        inset: 0 -110% 0 auto;
        z-index: 1000;
        width: min(420px, 100%);
        height: 100vh;
        height: 100dvh;
        margin: 0;
        padding: calc(var(--navbar-height) + 34px) 32px 40px;
        overflow-y: auto;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        gap: 28px;
        background: rgba(8, 9, 13, 0.985);
        border-left: 1px solid rgba(255, 255, 255, 0.08);
        box-shadow: -24px 0 70px rgba(0, 0, 0, 0.55);
        backdrop-filter: blur(26px);
        -webkit-backdrop-filter: blur(26px);
        transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-links,
    body.lang-ru .nav-links,
    body.is-logged-in .nav-links,
    body.is-logged-in.lang-ru .nav-links {
        width: 100%;
        margin: 0;
        transform: none;
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .nav-links a,
    body.lang-ru .nav-links a {
        width: 100%;
        min-height: 48px;
        padding: 13px 16px;
        justify-content: center;
        border: 1px solid rgba(255, 255, 255, 0.06);
        border-radius: 9px;
        background: rgba(255, 255, 255, 0.025);
        font-size: 1.08rem;
        letter-spacing: 2px;
        transform: none;
    }

    .nav-links a::after {
        display: none;
    }

    .nav-actions {
        width: 100%;
        max-width: 320px;
        min-width: 0;
        margin: 0 auto;
        flex-direction: column;
        gap: 10px;
    }

    .nav-actions .btn-login {
        width: 100%;
        min-height: 46px;
        padding: 12px 16px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        text-align: center;
    }

    .lang-toggle {
        margin-left: auto;
    }

    .games-grid,
    .popular-grid,
    .program-grid,
    .skeleton-prog-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .program-layout-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 30px;
    }

    .program-sidebar {
        position: relative;
        top: auto;
        width: 100%;
        max-width: 720px;
        margin-inline: auto;
    }

    body.page-profile .profile-container {
        grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
        gap: 22px;
    }
}

/* iPad portrait and compact tablets. */
@media (max-width: 1080px) {
    .page-home .hero {
        min-height: auto;
        padding: 132px var(--page-gutter) 72px;
        align-items: center;
        justify-content: center;
    }

    .page-home .hero-content {
        width: 100%;
        max-width: 780px;
        margin: 0 auto;
        text-align: center;
    }

    .page-home .hero-visual {
        display: none;
    }

    .page-home .hero h1 {
        font-size: clamp(3rem, 7vw, 4.2rem);
    }

    .page-home .hero p {
        margin-inline: auto;
    }

    .page-home .hero-btns,
    .page-home .stats-row {
        justify-content: center;
    }

    .page-home .stats-row {
        width: min(100%, 620px);
        margin-inline: auto;
    }

    .page-catalog .hero,
    .page-support .hero,
    .page-media .hero {
        min-height: auto !important;
        padding: 120px var(--page-gutter) 54px !important;
    }

    .page-catalog .hero-content,
    .page-support .hero-content,
    .page-media .hero-content {
        width: 100%;
    }

    .page-media .hero p {
        font-size: clamp(1.08rem, 2.3vw, 1.32rem) !important;
    }

    body.page-profile .profile-container {
        grid-template-columns: minmax(0, 1fr);
        max-width: 820px;
    }

    body.page-profile .profile-sidebar {
        display: grid;
        grid-template-columns: auto minmax(0, 1fr);
        column-gap: 24px;
        align-items: center;
    }

    body.page-profile .user-avatar {
        grid-row: span 2;
        margin: 0;
    }

    body.page-profile .user-name,
    body.page-profile .user-role {
        text-align: left;
    }

    body.page-profile .user-role {
        margin-bottom: 0;
    }

    body.page-profile .profile-nav {
        grid-column: 1 / -1;
        margin-top: 22px;
    }

    .support-section,
    .legal-container,
    .profile-container,
    #product-container,
    #program-container {
        width: 100%;
        max-width: 100%;
    }

    .creator-cta {
        padding-inline: clamp(24px, 5vw, 40px) !important;
    }
}

/* Phones and narrow tablet split-screen. */
@media (max-width: 768px) {
    :root {
        --navbar-height: 62px;
    }

    .navbar {
        padding-block: 8px;
    }

    .nav-container {
        padding-inline: 16px;
    }

    .logo {
        font-size: clamp(1.15rem, 5.5vw, 1.4rem);
    }

    .nav-menu {
        width: 100%;
        padding: calc(var(--navbar-height) + 28px) 20px 32px;
        border-left: 0;
    }

    .mobile-toggle {
        width: 42px;
        height: 42px;
        flex-basis: 42px;
    }

    .lang-toggle {
        margin-right: 4px;
        padding: 6px 10px;
    }

    .page-home .hero {
        padding: 112px 18px 54px;
        text-align: center;
        align-items: center;
    }

    .page-home .hero h1 {
        font-size: clamp(2.15rem, 10vw, 3rem);
    }

    .page-home .hero-btns {
        width: min(100%, 520px);
        margin-inline: auto;
    }

    .page-home .stats-row {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 12px;
    }

    .games-section {
        padding: 64px 16px 10px;
    }

    .page-catalog .games-section {
        padding-top: 0 !important;
    }

    .section-header {
        margin-bottom: 38px;
    }

    .section-header h2 {
        font-size: clamp(1.65rem, 8vw, 2rem);
        line-height: 1.2;
    }

    .games-grid,
    .popular-grid,
    .program-grid,
    .skeleton-prog-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .card-image,
    .card-image-rust,
    .card-image-cs,
    .card-image-val {
        height: clamp(165px, 47vw, 220px);
    }

    .features-section {
        padding: 64px 20px;
        gap: 44px;
    }

    .main-footer {
        padding: 48px 18px;
    }

    .footer-links {
        row-gap: 12px;
    }

    .page-catalog .hero,
    .page-support .hero,
    .page-media .hero {
        padding: 104px 18px 42px !important;
    }

    .page-catalog .hero h1,
    .page-support .hero h1,
    .page-media .hero h1 {
        font-size: clamp(2rem, 9vw, 2.65rem);
    }

    .page-media .hero p {
        font-size: 1rem !important;
        line-height: 1.65 !important;
    }

    .support-section {
        padding: 8px 16px 48px !important;
    }

    .support-block {
        margin-bottom: 54px !important;
    }

    .support-help-container {
        padding: 32px 20px !important;
    }

    .downloads-grid {
        grid-template-columns: minmax(0, 1fr) !important;
    }

    .creator-cta {
        padding: 34px 20px !important;
        border-radius: 14px;
    }

    .creator-cta-actions {
        gap: 12px;
    }

    .btn-telegram,
    .btn-discord-creator {
        width: 100%;
        min-width: 0;
        padding: 14px 18px;
    }

    body.page-legal .legal-container {
        margin: 92px auto 44px !important;
        padding: 20px 16px !important;
    }

    body.page-legal .legal-container > h1 {
        margin-bottom: 28px !important;
        font-size: clamp(2rem, 10vw, 2.6rem) !important;
        line-height: 1.15;
    }

    body.page-legal .legal-content {
        padding: 28px 22px !important;
        border-radius: 10px !important;
        overflow-wrap: anywhere;
    }

    body.page-profile .profile-container {
        margin: 92px auto 44px;
        padding: 16px;
        gap: 16px;
    }

    body.page-profile .profile-sidebar {
        padding: 22px;
    }

    body.page-profile .user-avatar {
        width: 76px;
        height: 76px;
        font-size: 2.2rem;
    }

    body.page-profile .user-name {
        font-size: 1.2rem;
    }

    body.page-profile .profile-content {
        min-height: 0;
        padding: 22px;
    }

    body.page-profile .ticket-list-header,
    body.page-profile .ticket-card,
    body.page-profile .chat-input-area {
        align-items: stretch;
        flex-direction: column;
        gap: 12px;
    }

    body.page-profile .msg {
        max-width: 92%;
    }

    .page-product #product-container,
    .page-program #program-container {
        width: 100% !important;
        margin: 94px auto 50px !important;
        padding: 0 16px !important;
    }

    .program-layout-grid {
        gap: 24px;
    }

    .checkout-card {
        padding: 20px;
    }

    .program-header-section h1 {
        font-size: clamp(1.65rem, 8vw, 2.1rem) !important;
    }

    .info-tabs {
        width: 100%;
        overflow-x: auto;
    }

    .info-tab-btn {
        flex: 0 0 auto;
    }

    .grid-screenshot {
        width: min(82vw, 360px);
        min-width: min(82vw, 360px);
    }

    .live-editor-panel {
        right: -105%;
        width: min(100%, 430px);
        padding: 22px 18px;
    }

    .editor-row {
        flex-direction: column;
    }

    .editor-section {
        padding: 16px;
        overflow-x: auto;
    }

    .auth-wrapper {
        align-items: flex-start;
        padding: 94px 16px 28px;
    }

    .auth-card-premium {
        padding: 36px 26px;
    }

    .auth-header {
        margin-bottom: 30px;
    }

    .auth-logo {
        font-size: 1.65rem;
    }

    .payment-modal-content,
    .modal-content {
        width: calc(100% - 28px);
        max-height: calc(100dvh - 28px);
        margin: 14px auto;
        padding: 26px 20px;
        overflow-y: auto;
    }

    button,
    .btn-primary,
    .btn-secondary,
    .btn-login,
    .btn-buy {
        touch-action: manipulation;
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding-inline: 12px;
    }

    .logo {
        font-size: 1.08rem;
        letter-spacing: 0.6px;
    }

    .lang-toggle {
        font-size: 0.64rem;
    }

    .page-home .hero {
        padding-inline: 14px;
    }

    .page-home .hero h1 {
        font-size: clamp(1.95rem, 11vw, 2.45rem);
        overflow-wrap: anywhere;
    }

    .page-home .stats-row {
        gap: 8px;
    }

    .stat-num {
        font-size: 1.2rem;
    }

    .stat-label {
        font-size: 0.62rem;
        line-height: 1.3;
    }

    .search-bar-wrap {
        padding-inline: 0;
    }

    .footer-links {
        flex-direction: column;
        gap: 10px;
    }

    body.page-profile .profile-sidebar {
        display: block;
        text-align: center;
    }

    body.page-profile .user-avatar {
        margin: 0 auto 16px;
    }

    body.page-profile .user-name,
    body.page-profile .user-role {
        text-align: center;
    }

    body.page-profile .profile-nav {
        margin-top: 20px;
    }

    .auth-card-premium {
        padding: 32px 20px;
    }

    .checkout-card {
        padding: 18px 14px;
    }

    .glow-spot {
        width: 360px;
        height: 360px;
    }
}

/* Landscape phones and short browser windows. */
@media (max-height: 720px) and (min-width: 769px) {
    .nav-menu {
        padding-top: calc(var(--navbar-height) + 18px);
        gap: 16px;
    }

    .nav-links {
        gap: 6px;
    }

    .nav-links a {
        min-height: 42px;
        padding-block: 9px;
    }

    .page-home .hero {
        min-height: 680px;
    }

    .page-home .hero-content {
        margin-bottom: 42px;
    }
}
