:root {
    --bg-primary: #0a0a0f;
    --bg-secondary: #0e0e16;
    --bg-card: rgba(255, 255, 255, 0.04);
    --bg-card-hover: rgba(255, 255, 255, 0.07);
    --border-card: rgba(255, 255, 255, 0.08);
    --border-card-hover: rgba(255, 255, 255, 0.18);
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.65);
    --text-muted: rgba(255, 255, 255, 0.35);
    --gold: #f0c040;
    --gold-light: #f5d060;
    --gold-dark: #d4a020;
    /* Главная: жёлтый → красный на чёрном (под видео) */
    --vf-yellow: #f5d84a;
    --vf-amber: #e8a020;
    --vf-red: #d84315;
    --vf-cta: #e8a020;
    --vf-cta-light: #f5c842;
    --vf-cta-dark: #c17a00;
    --gradient-vf: linear-gradient(135deg, #f5d84a 0%, #e8a020 45%, #d84315 100%);
    --gradient-vf-soft: linear-gradient(135deg, rgba(245, 216, 74, 0.9), rgba(232, 160, 32, 0.95), rgba(216, 67, 21, 0.9));
    --purple: #7c3aed;
    --purple-light: #a855f7;
    /* Сообщение о готовности — приглушённый зелёный (не неон) */
    --vf-ready-bg: linear-gradient(135deg, rgba(15, 22, 18, 0.94) 0%, rgba(18, 26, 22, 0.94) 100%);
    --vf-ready-border: rgba(74, 124, 96, 0.35);
    --vf-ready-text: rgba(186, 210, 195, 0.92);
    --vf-ready-link: rgba(148, 184, 168, 0.98);
    --vf-ready-link-hover: rgba(168, 200, 186, 1);
    --vf-ready-glow: 0 4px 18px rgba(0, 0, 0, 0.35), 0 0 24px rgba(34, 90, 60, 0.12);
    --cyan: #06b6d4;
    --gradient-accent: linear-gradient(135deg, #7c3aed, #06b6d4);
    --gradient-gold: linear-gradient(135deg, #f5d84a, #e8a020, #d84315);
    --gradient-warm: linear-gradient(135deg, #f5d84a 0%, #e8a020 50%, #d84315 100%);
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-blur: blur(24px);
    --glass-border: 1px solid rgba(255, 255, 255, 0.06);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-2xl: 32px;
    --radius-full: 50%;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
    --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --safe-bottom: env(safe-area-inset-bottom, 0px);
}

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

html {
    font-size: 16px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    min-height: 100vh;
    min-height: 100dvh;
    background-color: var(--bg-primary);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    min-height: 100vh;
    min-height: 100dvh;
    padding-bottom: var(--safe-bottom);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    display: block;
}

button {
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
    color: inherit;
}

.video-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    overflow: hidden;
    background: var(--bg-primary);
}

.video-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(ellipse at 20% 20%, rgba(124, 58, 237, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgba(6, 182, 212, 0.04) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 40%, rgba(240, 192, 64, 0.03) 0%, transparent 40%);
    animation: ambientShift 20s ease-in-out infinite;
    pointer-events: none;
    z-index: 1;
}

.video-background::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(ellipse at 70% 10%, rgba(124, 58, 237, 0.04) 0%, transparent 35%),
        radial-gradient(ellipse at 20% 90%, rgba(6, 182, 212, 0.03) 0%, transparent 35%);
    animation: ambientShift 25s ease-in-out infinite reverse;
    pointer-events: none;
    z-index: 1;
}

.video-background video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    outline: none;
    border: none;
    filter: brightness(0.45);
}

.video-desktop {
    display: none;
}

.video-mobile {
    display: block;
}

/* Единая логика по viewport — одинаково в Telegram и браузере */
@media (min-width: 1024px) {
    .video-desktop {
        display: block;
    }
    .video-mobile {
        display: none;
    }
}

.cosmic-cursor-glow {
    position: fixed;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.08) 0%, rgba(6, 182, 212, 0.04) 30%, transparent 70%);
    pointer-events: none;
    z-index: 0;
    transform: translate(-50%, -50%);
    transition: transform 0.1s ease-out, opacity 0.3s ease;
    will-change: transform;
}
/* На главной странице курсор — пыльца феи, glow скрыт */
body.page-main .cosmic-cursor-glow {
    display: none !important;
}
.mouse-glow {
    position: fixed;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(240, 192, 64, 0.06) 0%, rgba(124, 58, 237, 0.04) 25%, rgba(6, 182, 212, 0.02) 50%, transparent 70%);
    pointer-events: none;
    z-index: 0;
    transform: translate(-50%, -50%);
    transition: left 0.15s ease-out, top 0.15s ease-out, opacity 0.4s ease;
    will-change: left, top;
    opacity: 0;
}

.mouse-glow.visible {
    opacity: 1;
}

.app-container {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 0 1rem;
    padding-top: 3.15rem;
    padding-bottom: calc(4.5rem + var(--safe-bottom));
}

@media (min-width: 1024px) {
    .app-container {
        padding: 0 3rem;
        padding-top: 3.6rem;
        padding-bottom: calc(0.45rem + var(--safe-bottom));
    }
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 10000;
    background: #0a0a0f;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 0.5rem 0;
    transition: none;
    transform: none;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 769px) {
    .header-content {
        padding: 0 2rem;
    }
}

.desktop-header {
    display: none;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    position: relative;
}

@media (min-width: 1024px) {
    .desktop-header {
        display: flex;
    }
}

.desktop-header .logo {
    flex-shrink: 0;
}

.header-logo-text {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    background: linear-gradient(135deg, #f5d060, #f0c040, #d4a020);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: var(--transition);
}

.header-logo-text:hover {
    filter: brightness(1.15);
}

.logo-image {
    height: 36px;
    width: auto;
    transition: var(--transition);
}

.logo:hover .logo-image {
    filter: drop-shadow(0 0 8px rgba(240, 192, 64, 0.4));
}

.desktop-nav {
    display: flex;
    /* Одна нижняя линия для всех пунктов (center давал разный «вес» блока с/без :has-исключений) */
    align-items: flex-end;
    gap: 0.25rem;
    flex: 1;
    justify-content: center;
}

.desktop-nav .nav-link {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.9rem;
    padding: 0.5rem 0.85rem;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    display: flex;
    /* Низ иконки и низ строки подписи на одной линии (не center — иначе «плавает» от line-height) */
    align-items: flex-end;
    gap: 0.35rem;
    position: relative;
    white-space: nowrap;
}

.desktop-nav .nav-link > span:last-child {
    line-height: 1;
}

.desktop-nav .nav-link-icon {
    display: inline-flex;
    align-items: flex-end;
    justify-content: center;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.desktop-nav .nav-link svg {
    display: block;
    width: 20px;
    height: 20px;
    flex: 0 0 auto;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

/* Видео / музыка: контур в 24×24 смещён вверх относительно «дома» и текста — чуть вниз для одной визуальной линии снизу */
.desktop-nav .nav-link-icon-video svg,
.desktop-nav .nav-link-icon-music svg {
    transform: translateY(2px);
}

/* «Текст»: хвост пузыря тянет визуальный низ — чуть вверх; масштаб чуть меньше остальных иконок */
.desktop-nav .nav-link-icon-text svg {
    transform: translateY(-2px) scale(0.93);
    transform-origin: 50% 100%;
}

.desktop-nav .nav-link:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.desktop-nav .nav-link:hover svg {
    opacity: 1;
}

.desktop-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--gradient-gold);
    transition: width 0.3s ease;
    border-radius: 1px;
}

.desktop-nav .nav-link:hover::after {
    width: 60%;
}

.desktop-nav .nav-link.active {
    color: var(--gold);
}

.desktop-nav .nav-link.active::after {
    width: 60%;
}

.desktop-header .header-right,
.desktop-header .header-right-group {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.75rem;
    flex-shrink: 0;
}

.buy-balance-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(240, 192, 64, 0.06);
    border: 1px solid rgba(240, 192, 64, 0.15);
    border-radius: var(--radius-2xl);
    padding: 0.25rem 0.5rem;
    transition: var(--transition);
    overflow: visible;
}

.buy-balance-group:hover {
    box-shadow: 0 0 15px rgba(240, 192, 64, 0.12);
}

.profile-buy-btn {
    background: linear-gradient(135deg, #ffd700, #f0c040, #e8a020);
    border: none;
    color: #000;
    text-transform: none;
    font-weight: 700;
    font-size: 0.7rem;
    padding: 0.25rem 0.65rem;
    border-radius: var(--radius-xl);
    cursor: pointer;
    transition: var(--transition);
    letter-spacing: 0.3px;
    position: relative;
    overflow: hidden;
    animation: buyBtnPulse 2.5s ease-in-out infinite;
}

.profile-buy-btn::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent 25%, rgba(255, 255, 255, 0.3) 50%, transparent 75%);
    transform: rotate(45deg);
    animation: ctaShine 3s infinite;
}

.profile-buy-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 18px rgba(240, 192, 64, 0.35);
}

@keyframes buyBtnPulse {
    0%, 100% {
        box-shadow: 0 2px 10px rgba(240, 192, 64, 0.2);
    }
    50% {
        box-shadow: 0 4px 20px rgba(240, 192, 64, 0.45);
    }
}

.profile-separator {
    color: rgba(255, 255, 255, 0.15);
    font-size: 0.85rem;
}
.profile-separator-equals {
    color: #fff;
    font-weight: 600;
}

/* Универсальный tooltip «Нажмите чтобы скопировать» — космический стиль (использовать на элементах с копированием по клику) */
.vf-copy-hint {
    position: relative;
}
.vf-copy-hint::after {
    content: attr(data-copy-hint);
    position: absolute;
    left: 50%;
    top: calc(100% + 8px);
    transform: translateX(-50%) translateY(2px);
    padding: 0.5rem 0.85rem;
    background: linear-gradient(180deg, #1e1b4b 0%, #0f0c29 100%);
    border: 1px solid rgba(99, 102, 241, 0.35);
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.95);
    white-space: nowrap;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5), 0 0 20px rgba(99, 102, 241, 0.12), 0 0 0 1px rgba(255, 255, 255, 0.06) inset;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
    z-index: 1000;
}
.vf-copy-hint:not([data-copy-hint])::after {
    content: "Нажмите чтобы скопировать";
}
.vf-copy-hint::before {
    display: none;
}
.vf-copy-hint:hover::after {
    opacity: 1;
    visibility: visible;
}
.vf-copy-hint:hover::after {
    transform: translateX(-50%) translateY(0);
}

.profile-balance-header {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.profile-balance-label {
    font-size: 0.8rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.6);
}

.profile-balance-amount-header {
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--text-primary);
    text-shadow: 0 0 8px rgba(240, 192, 64, 0.3);
    display: inline-flex;
    align-items: center;
    line-height: 1;
}
/* Единый размер и шрифт цифр баланса токенов и валюты — без эффектов, одинаково */
.buy-balance-group .profile-balance-amount-header,
.buy-balance-group .vf-currency-amount {
    font-size: 0.95rem;
    font-weight: 700;
    font-family: inherit;
    line-height: 1;
    letter-spacing: 0.02em;
    text-shadow: none;
}

.profile-balance-icon-header {
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    line-height: 1;
}
.profile-balance-icon-header .veo-rocket-wrap {
    display: inline-flex;
    align-items: center;
}

/* Селектор валюты в хедере */
.vf-currency-selector {
    position: relative;
    overflow: visible;
}
.vf-currency-trigger {
    display: flex;
    align-items: center;
    gap: 0.2rem;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    padding: 0.15rem 0.35rem;
    border-radius: var(--radius-lg);
    transition: var(--transition);
    line-height: 1;
}
.vf-currency-trigger:hover {
    background: rgba(255, 255, 255, 0.06);
}
.vf-currency-amount {
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    line-height: 1;
}
.vf-currency-arrow {
    font-size: 0;
    width: 12px;
    height: 12px;
    min-width: 12px;
    min-height: 12px;
    opacity: 0.9;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    color: inherit;
    transition: transform 0.2s ease;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2393c5fd' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") no-repeat center;
    background-size: contain;
}
.vf-currency-selector:has(.vf-currency-dropdown-open) .vf-currency-arrow {
    transform: rotate(180deg);
}
/* Флаг в кнопке выбора валюты — как в выпадающем списке; не растягивать при длинной сумме (только внутри .vf-currency-trigger) */
.vf-currency-trigger .vf-currency-flag {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 18px;
    margin-left: 0.25rem;
    overflow: hidden;
    border-radius: 3px;
    line-height: 0;
    font-size: 0.9rem;
}
.vf-currency-trigger .vf-currency-flag-img {
    display: block;
    width: 20px;
    min-width: 20px;
    max-width: 20px;
    height: 15px;
    border-radius: 3px;
    object-fit: cover;
    object-position: center;
}
/* Остальные .vf-currency-flag (например в профиле) — без жёсткой сетки */
.vf-currency-flag {
    display: inline-flex;
    align-items: center;
    font-size: 0.9rem;
    line-height: 1;
    margin-left: 0.25rem;
}
.vf-currency-flag-img {
    display: block;
    width: 1rem;
    height: 0.75rem;
    border-radius: 2px;
    object-fit: cover;
    vertical-align: middle;
}
.vf-currency-flag-wavy {
    display: inline-block;
    font-size: 0.9rem;
    line-height: 1;
}
.vf-currency-dropdown {
    position: absolute;
    top: 100%;
    left: auto;
    right: 0;
    margin-top: 0.75rem;
    margin-left: 0;
    margin-right: 0;
    min-width: 280px;
    max-width: min(480px, calc(100vw - 2rem));
    max-height: 70vh;
    overflow-y: auto;
    overflow-x: hidden;
    background: linear-gradient(135deg, rgba(30, 27, 75, 0.97) 0%, rgba(15, 15, 35, 0.98) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(59, 130, 246, 0.35);
    border-radius: 14px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.08) inset, 0 0 40px rgba(59, 130, 246, 0.08);
    z-index: 100002;
    padding: 0.5rem;
    display: none !important;
    pointer-events: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(59, 130, 246, 0.4) rgba(59, 130, 246, 0.1);
}
.vf-currency-dropdown::-webkit-scrollbar {
    width: 8px;
}
.vf-currency-dropdown::-webkit-scrollbar-track {
    background: rgba(59, 130, 246, 0.08);
    border-radius: 4px;
}
.vf-currency-dropdown::-webkit-scrollbar-thumb {
    background: rgba(59, 130, 246, 0.35);
    border-radius: 4px;
}
.vf-currency-dropdown::-webkit-scrollbar-thumb:hover {
    background: rgba(59, 130, 246, 0.5);
}
.vf-currency-dropdown.vf-currency-dropdown-open {
    display: block !important;
}
.vf-currency-dropdown-header-block {
    padding: 0.5rem 0.65rem 0.6rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 0.35rem;
}
.vf-currency-dropdown-header {
    font-size: 0.88rem;
    font-weight: 600;
    color: rgba(147, 197, 253, 0.95);
    letter-spacing: 0.02em;
    margin: 0 0 0.5rem;
    text-align: center;
}
.vf-currency-dropdown-header-block .vf-currency-dropdown-desc {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.5;
    margin: 0;
    text-align: center;
}
.vf-currency-hint {
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.65);
    margin: 0 0 0.5rem;
    padding: 0.3rem 0.5rem;
    line-height: 1.4;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 0.4rem;
}
.vf-currency-options {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}
.vf-currency-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.65rem;
    background: transparent;
    border: none;
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 0.82rem;
    cursor: pointer;
    text-align: left;
    transition: background 0.2s, color 0.2s, transform 0.2s;
    width: 100%;
}
.vf-currency-option:hover {
    background: rgba(59, 130, 246, 0.12);
}
.vf-currency-option[data-currency].vf-currency-option--active {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.25) 0%, rgba(37, 99, 235, 0.2) 100%);
    color: #bfdbfe;
    border: 1px solid rgba(59, 130, 246, 0.3);
}
.vf-currency-option-flag-wrap {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 18px;
}
.vf-currency-option-flag,
.vf-currency-option .vf-currency-flag-wavy {
    width: 20px;
    height: 15px;
    border-radius: 3px;
    object-fit: cover;
}
.vf-currency-option .vf-currency-flag-wavy {
    font-size: 0.9rem;
    line-height: 1;
}
.vf-currency-option-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    min-width: 0;
}
.vf-currency-option-name {
    font-weight: 500;
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.95);
}
.vf-currency-option-rate {
    font-size: 0.72rem;
    font-weight: 600;
    color: rgba(147, 197, 253, 0.9);
}
@media (max-width: 768px) {
    .buy-balance-group .vf-currency-dropdown {
        left: auto;
        right: 0;
        margin-left: 0;
        max-width: calc(100vw - 1rem);
    }
}

/* Анимация ракеты — везде на сайте */
.veo-rocket-wrap {
    display: inline-block;
    position: relative;
    animation: veo-rocket-spin 3s ease-in-out infinite;
}
@keyframes veo-rocket-spin {
    0%, 100% { transform: scale(1) rotate(-6deg); }
    50% { transform: scale(1.15) rotate(8deg); }
}

.audio-toggle-btn {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-full);
    color: var(--text-primary);
    cursor: pointer;
    transition: var(--transition);
}

.audio-toggle-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
}

.audio-toggle-btn.audio-muted {
    opacity: 0.4;
}

.audio-icon,
.mobile-audio-icon {
    display: block;
}

.audio-icon-muted,
.mobile-audio-icon-muted {
    display: none;
}

.profile-user-avatar {
    width: 32px;
    height: 32px;
    min-width: 32px;
    min-height: 32px;
    border-radius: 50%;
    background: var(--gradient-accent);
    border: 2px solid rgba(59, 130, 246, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    flex-shrink: 0;
    overflow: hidden;
    position: relative;
    animation: profile-neon-border-pulse 3s ease-in-out infinite;
}
.profile-user-avatar img[id$="AvatarImg"] {
    border-radius: 50%;
    object-fit: cover;
}

.profile-user-avatar:hover {
    transform: scale(1.03);
    box-shadow: 0 0 16px rgba(59, 130, 246, 0.5), 0 0 28px rgba(59, 130, 246, 0.2);
    border-color: rgba(59, 130, 246, 0.95);
}

@keyframes profile-neon-border-pulse {
    0%, 100% { box-shadow: 0 0 8px rgba(59, 130, 246, 0.25); }
    50% { box-shadow: 0 0 14px rgba(59, 130, 246, 0.4), 0 0 24px rgba(59, 130, 246, 0.15); }
}

.profile-avatar-letter {
    font-size: 0.9rem;
    font-weight: 700;
    color: #ffffff;
    text-transform: uppercase;
}

.mobile-header {
    display: flex;
    width: 100%;
}

@media (min-width: 1024px) {
    .mobile-header {
        display: none;
    }
}

@media (max-width: 1023px) {
    .desktop-header {
        display: none;
    }
}

.mobile-header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 0.5rem;
    padding: 0.25rem 0.25rem;
}

.mobile-logo {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    margin-left: 0.25rem;
}

.mobile-logo-image {
    height: 28px;
    width: auto;
    transition: var(--transition);
}

.mobile-logo .header-logo-text {
    font-size: 1rem;
}

.mobile-buy-balance-center {
    margin: 0 auto;
}

.mobile-header-right-group {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-right: 0.25rem;
}

.mobile-audio-toggle-btn {
    width: 30px;
    height: 30px;
}

.hero-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 55vh;
    padding: 3rem 1rem 2rem;
    position: relative;
}

@media (max-width: 767px) {
    .hero-section {
        min-height: 40vh;
        padding: 2rem 1rem 1.5rem;
    }
}


.hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
}

.hero-particles .particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: rgba(240, 192, 64, 0.25);
    border-radius: var(--radius-full);
    animation: floatParticle 8s ease-in-out infinite;
}

.hero-particles .particle:nth-child(1) { top: 20%; left: 10%; animation-delay: 0s; animation-duration: 6s; }
.hero-particles .particle:nth-child(2) { top: 40%; left: 80%; animation-delay: 1s; animation-duration: 8s; }
.hero-particles .particle:nth-child(3) { top: 60%; left: 30%; animation-delay: 2s; animation-duration: 7s; }
.hero-particles .particle:nth-child(4) { top: 80%; left: 70%; animation-delay: 0.5s; animation-duration: 9s; }
.hero-particles .particle:nth-child(5) { top: 10%; left: 50%; animation-delay: 1.5s; animation-duration: 6.5s; }
.hero-particles .particle:nth-child(6) { top: 70%; left: 90%; animation-delay: 2.5s; animation-duration: 7.5s; }

.hero-content {
    position: relative;
    z-index: 2;
    animation: fadeInUp 0.8s ease-out;
}

.hero-title {
    font-size: clamp(3rem, 8vw, 5.5rem);
    font-weight: 900;
    letter-spacing: -2px;
    line-height: 1.05;
    margin-bottom: 1.25rem;
}

.hero-title .gradient-text {
    background: linear-gradient(135deg, #f5d060 0%, #f0c040 40%, #d4a020 70%, #c08010 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 30px rgba(240, 192, 64, 0.15));
}

.hero-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    color: var(--text-secondary);
    font-weight: 400;
    max-width: 480px;
    margin: 0 auto 2.5rem;
    line-height: 1.6;
    letter-spacing: 0.2px;
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: var(--gradient-gold);
    color: #000;
    font-weight: 700;
    font-size: 1.15rem;
    padding: 1rem 3rem;
    border-radius: var(--radius-2xl);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    letter-spacing: 0.3px;
    box-shadow: 0 4px 20px rgba(240, 192, 64, 0.25), 0 0 60px rgba(240, 192, 64, 0.08);
}

.hero-cta:hover {
    transform: translateY(-3px) scale(1.04);
    box-shadow: 0 8px 35px rgba(240, 192, 64, 0.45), 0 0 80px rgba(240, 192, 64, 0.12);
}

.hero-cta::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent 25%, rgba(255, 255, 255, 0.25) 50%, transparent 75%);
    transform: rotate(45deg);
    animation: ctaShine 4s infinite;
}

.capability-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.6rem;
    max-width: 1000px;
    margin: 0 auto;
    padding: 1rem 0 2rem;
}

@media (min-width: 768px) {
    .capability-cards {
        grid-template-columns: repeat(4, 1fr);
        gap: 1.25rem;
        padding: 1.5rem 0 3rem;
    }
}

.capability-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-lg);
    padding: 1.75rem 1.25rem;
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.capability-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--card-accent, var(--gradient-gold));
    opacity: 0;
    transition: opacity 0.4s ease;
}

.capability-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-lg);
    background: radial-gradient(ellipse at center top, rgba(240, 192, 64, 0.04) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.capability-card:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(240, 192, 64, 0.2);
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4), 0 0 30px rgba(240, 192, 64, 0.06);
}

.capability-card:hover::before {
    opacity: 1;
}

.capability-card:hover::after {
    opacity: 1;
}

.capability-card .card-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
    filter: drop-shadow(0 0 8px rgba(240, 192, 64, 0.1));
}

.capability-card .card-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    letter-spacing: -0.2px;
}

.capability-card .card-desc {
    font-size: 0.78rem;
    color: var(--text-secondary);
    margin-bottom: 0.85rem;
    line-height: 1.5;
}

.capability-card .card-price {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--gold);
    padding: 0.3rem 0.8rem;
    background: rgba(240, 192, 64, 0.08);
    border: 1px solid rgba(240, 192, 64, 0.1);
    border-radius: var(--radius-xl);
    display: inline-block;
}

.capability-card .card-price.card-price-free {
    color: var(--cyan);
    background: rgba(6, 182, 212, 0.08);
    border-color: rgba(6, 182, 212, 0.1);
}

.capability-card .card-price.card-price-soon {
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.05);
}

.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.auth-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 20000;
    display: none;
    align-items: center;
    justify-content: center;
}

.auth-modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(6px);
}

.auth-modal-content {
    position: relative;
    z-index: 1;
    background: rgba(16, 16, 24, 0.97);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    padding: 2rem;
    max-width: 400px;
    width: 90%;
    animation: fadeInUp 0.3s ease-out;
}

.auth-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1.5rem;
    color: var(--text-muted);
    background: none;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-full);
}

.auth-modal-close:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.08);
}

.auth-card h2 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    text-align: center;
}

.auth-card p {
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.auth-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.auth-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.auth-btn.telegram-btn {
    background: linear-gradient(135deg, #0088cc, #0077b5);
    color: #fff;
    border-color: transparent;
}

.auth-btn.telegram-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 18px rgba(0, 136, 204, 0.4);
}

.auth-btn.email-btn {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-primary);
}

.auth-btn.email-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
}

.auth-info {
    margin-top: 1rem;
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.auth-info strong {
    color: var(--text-secondary);
}

.profile-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 20000;
    display: none;
    align-items: center;
    justify-content: center;
}

.profile-modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(6px);
}

.profile-modal-content {
    position: relative;
    z-index: 1;
    background: rgba(16, 16, 24, 0.97);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    padding: 2rem;
    max-width: 450px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    animation: fadeInUp 0.3s ease-out;
}

.profile-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1.5rem;
    color: var(--text-muted);
    background: none;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-full);
}

.profile-modal-close:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.08);
}

.profile-modal .profile-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.profile-avatar-large {
    width: 70px;
    height: 70px;
    border-radius: var(--radius-full);
    background: var(--gradient-accent);
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: 700;
    overflow: hidden;
    border: 3px solid rgba(124, 58, 237, 0.4);
}

.profile-name {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.profile-username {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.profile-stats {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.profile-stat-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-md);
}

.stat-icon {
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-info {
    flex: 1;
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.stat-value {
    font-size: 0.95rem;
    font-weight: 600;
}

.profile-stats-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.75rem;
    margin-top: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition);
}

.profile-stats-toggle:hover {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-primary);
}

.stats-toggle-arrow {
    margin-left: auto;
}

.profile-stats-container {
    margin-top: 1rem;
}

.profile-stats-section {
    margin-bottom: 1rem;
}

.stats-section-title {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

.profile-top-up-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.75rem;
    margin-top: 1rem;
    background: var(--gradient-gold);
    border: none;
    border-radius: var(--radius-md);
    color: #000;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition);
}

.profile-top-up-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 18px rgba(240, 192, 64, 0.4);
}

.profile-close-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0.75rem;
    margin-top: 0.75rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
}

.profile-close-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
}

.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 10000;
    background: rgba(8, 8, 12, 0.92);
    backdrop-filter: blur(24px) saturate(1.2);
    -webkit-backdrop-filter: blur(24px) saturate(1.2);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: flex-end;
    justify-content: space-around;
    padding: 0.4rem 0.5rem calc(0.4rem + var(--safe-bottom));
}

@media (min-width: 1024px) {
    .bottom-nav {
        display: none;
    }
}

.bottom-nav .nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.15rem;
    padding: 0.35rem 0.5rem;
    color: var(--text-muted);
    font-size: 0.6rem;
    font-weight: 500;
    transition: color 0.25s ease;
    min-width: 50px;
    text-align: center;
}

.bottom-nav .nav-item.active {
    color: var(--gold);
}

.bottom-nav .nav-item:hover {
    color: var(--text-secondary);
}

.bottom-nav .nav-item .nav-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bottom-nav .nav-item .nav-icon svg {
    width: 22px;
    height: 22px;
}

.nav-item-create {
    position: relative;
    margin-top: -22px;
}

.create-btn-main {
    width: 58px;
    height: 58px;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, #0ea5e9, #06b6d4, #0891b2);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 24px rgba(6, 182, 212, 0.4), 0 0 40px rgba(6, 182, 212, 0.15);
    transition: var(--transition);
    position: relative;
    z-index: 2;
}

.create-btn-main::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, #0ea5e9, #06b6d4);
    opacity: 0.4;
    filter: blur(8px);
    animation: cosmicPulseRing 2.5s ease-in-out infinite, createBtnOrbit 6s linear infinite;
    z-index: -1;
}

.create-btn-main::after {
    content: '';
    position: absolute;
    inset: -8px;
    border-radius: var(--radius-full);
    border: 1px solid rgba(6, 182, 212, 0.25);
    animation: cosmicPulseRing 2.5s ease-in-out infinite 0.5s;
    z-index: -1;
}

.create-btn-main svg {
    width: 28px;
    height: 28px;
    color: #fff;
    transition: transform 0.4s var(--spring);
}

.nav-item-create.active .create-btn-main svg {
    transform: rotate(45deg);
}

.nav-item-create.active .create-btn-main {
    box-shadow: 0 4px 30px rgba(6, 182, 212, 0.5), 0 0 60px rgba(6, 182, 212, 0.15);
}

.nav-item-create:hover .create-btn-main {
    transform: scale(1.08);
    box-shadow: 0 6px 30px rgba(6, 182, 212, 0.5);
}

.nav-text-create {
    font-size: 0.6rem;
    color: var(--text-muted);
    margin-top: 0.15rem;
}

.create-arc-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 9998;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
}

.nav-item-create.active .create-arc-overlay {
    opacity: 1;
    pointer-events: auto;
}

.create-arc-menu {
    position: fixed;
    bottom: 70px;
    left: 0;
    right: 0;
    z-index: 9999;
    pointer-events: none;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    padding: 1.5rem 1rem;
    background: rgba(8, 8, 16, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    transform: translateY(100%);
    opacity: 0;
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.25s ease;
}

.nav-item-create.active .create-arc-menu {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.arc-btn {
    position: relative;
    width: 52px;
    height: 52px;
    border-radius: var(--radius-full);
    background: var(--btn-color, rgba(124, 58, 237, 0.9));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    color: #fff;
    font-weight: 600;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    transform: scale(0) translateY(20px);
    opacity: 0;
    transition: transform 0.4s var(--spring), opacity 0.3s ease, box-shadow 0.3s ease;
    white-space: nowrap;
    text-align: center;
    line-height: 1;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.arc-btn svg {
    width: 24px;
    height: 24px;
}

.arc-btn:hover {
    box-shadow: 0 4px 25px rgba(6, 182, 212, 0.4);
    border-color: rgba(255, 255, 255, 0.3);
    transform: scale(1.1) !important;
}

.arc-btn .arc-btn-label {
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.6rem;
    color: var(--text-secondary);
    white-space: nowrap;
    font-weight: 500;
}

.nav-item-create.active .arc-btn[data-index="0"] {
    transform: scale(1);
    opacity: 1;
    transition-delay: 0ms;
}

.nav-item-create.active .arc-btn[data-index="1"] {
    transform: scale(1);
    opacity: 1;
    transition-delay: 60ms;
}

.nav-item-create.active .arc-btn[data-index="2"] {
    transform: scale(1);
    opacity: 1;
    transition-delay: 120ms;
}

.nav-item-create.active .arc-btn[data-index="3"] {
    transform: scale(1);
    opacity: 1;
    transition-delay: 180ms;
}

.cosmic-particles {
    position: absolute;
    inset: -40px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.nav-item-create.active .cosmic-particles {
    opacity: 1;
}

.cosmic-particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: var(--gold);
    border-radius: 50%;
    opacity: 0;
}

.nav-item-create.active .cosmic-particle:nth-child(1) {
    animation: cosmicFloat 1.5s ease-out 0.1s forwards;
    left: 20%;
    bottom: 50%;
}

.nav-item-create.active .cosmic-particle:nth-child(2) {
    animation: cosmicFloat 1.8s ease-out 0.2s forwards;
    left: 80%;
    bottom: 60%;
}

.nav-item-create.active .cosmic-particle:nth-child(3) {
    animation: cosmicFloat 1.3s ease-out 0.15s forwards;
    left: 50%;
    bottom: 70%;
}

.nav-item-create.active .cosmic-particle:nth-child(4) {
    animation: cosmicFloat 1.6s ease-out 0.25s forwards;
    left: 35%;
    bottom: 55%;
}

.nav-item-create.active .cosmic-particle:nth-child(5) {
    animation: cosmicFloat 1.4s ease-out 0.3s forwards;
    left: 65%;
    bottom: 45%;
}

body.telegram-webapp {
    height: 100%;
    overflow: hidden;
    position: fixed;
    width: 100%;
}

html.telegram-webapp {
    height: 100%;
    overflow: hidden;
}

body.telegram-webapp .app-container {
    height: 100vh;
    height: 100dvh;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-y: auto;
}

body.veo-generation-body {
    overflow-y: auto !important;
    position: static !important;
    height: auto !important;
    min-height: 100vh;
}

body.veo-generation-body.telegram-webapp {
    overflow-y: hidden !important;
    position: fixed !important;
}

body.veo-generation-body .app-container {
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
    height: auto;
    min-height: 100vh;
}

body.veo-generation-body.telegram-webapp .app-container {
    height: 100vh;
    height: 100dvh;
    overflow-y: auto !important;
}

body.telegram-webapp .video-desktop {
    display: none;
}

body.telegram-webapp .video-mobile {
    display: block;
}

.back-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    transition: var(--transition);
    cursor: pointer;
}

.back-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(240, 192, 64, 0.3);
    color: var(--gold);
    transform: translateX(-3px);
}

.back-btn svg {
    width: 22px;
    height: 22px;
}

.back-btn-mobile {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    transition: var(--transition);
}

.back-btn-mobile:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(-2px);
}

.back-btn-mobile svg {
    width: 20px;
    height: 20px;
}

.models-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 0;
}

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

@media (max-width: 768px) {
    .models-grid {
        grid-template-columns: 1fr;
    }
}

.main-content {
    flex: 1;
}

.mobile-menu {
    display: none;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 4px 20px rgba(240, 192, 64, 0.25);
    }
    50% {
        box-shadow: 0 4px 30px rgba(240, 192, 64, 0.45);
    }
}

@keyframes floatParticle {
    0%, 100% {
        transform: translateY(0) scale(1);
        opacity: 0.2;
    }
    50% {
        transform: translateY(-25px) scale(1.3);
        opacity: 0.5;
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
        opacity: 0.3;
    }
    50% {
        transform: translateY(-20px);
        opacity: 0.6;
    }
}

@keyframes ambientShift {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.5;
    }
    33% {
        transform: translate(20px, -20px) scale(1.05);
        opacity: 0.65;
    }
    66% {
        transform: translate(-15px, 15px) scale(0.95);
        opacity: 0.55;
    }
}

@keyframes particleFloat {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.5;
    }
    33% {
        transform: translate(30px, -30px) scale(1.1);
        opacity: 0.7;
    }
    66% {
        transform: translate(-20px, 20px) scale(0.9);
        opacity: 0.6;
    }
}

@keyframes arcExpand {
    from {
        transform: scale(0);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes ctaShine {
    0% {
        transform: rotate(45deg) translateX(-200%);
    }
    50%, 100% {
        transform: rotate(45deg) translateX(200%);
    }
}

@keyframes cosmicPulseRing {
    0%, 100% {
        opacity: 0.3;
        transform: scale(1);
    }
    50% {
        opacity: 0.6;
        transform: scale(1.15);
    }
}

@keyframes createBtnOrbit {
    0% {
        transform: scale(1) rotate(0deg);
    }
    100% {
        transform: scale(1) rotate(360deg);
    }
}

@keyframes cosmicFloat {
    0% {
        opacity: 0.8;
        transform: translateY(0) scale(1);
    }
    100% {
        opacity: 0;
        transform: translateY(-60px) scale(0.3);
    }
}

.veo-generation-page ~ .header,
body:has(.veo-generation-page) .header {
    padding: 0.4rem 0;
}

.telegram-webapp .regular-mobile-header {
    display: none;
}

.telegram-webapp .telegram-mini-header {
    display: flex;
}

body:not(.telegram-webapp) .telegram-mini-header {
    display: none;
}

body:not(.telegram-webapp) .regular-mobile-header {
    display: flex;
}

.telegram-webapp .telegram-version {
    display: flex;
}

/* НЕ скрывать .mobile-version здесь: класс висит на <body> у мобильных шаблонов (Veo и др.).
   Селектор .telegram-webapp .mobile-version { display: none } скрывал весь body в Telegram WebView —
   белый экран и «не грузит с первого раза». Секции regular/telegram-mini — отдельные классы выше. */

body:not(.telegram-webapp) .telegram-version {
    display: none;
}

.telegram-webapp .telegram-header-row {
    display: none;
}


/* ============================================ */
/* Redesigned Capability Cards                   */
/* ============================================ */

.capability-card .card-icon-wrap {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-lg);
    background: var(--icon-gradient, var(--gradient-accent));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: #fff;
    box-shadow: 0 4px 20px var(--card-glow, rgba(124, 58, 237, 0.15));
    transition: var(--transition);
    position: relative;
}

.capability-card .card-icon-wrap::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: calc(var(--radius-lg) + 4px);
    background: var(--icon-gradient, var(--gradient-accent));
    opacity: 0;
    filter: blur(12px);
    transition: opacity 0.4s ease;
    z-index: -1;
}

.capability-card:hover .card-icon-wrap {
    transform: scale(1.1);
    box-shadow: 0 6px 28px var(--card-glow, rgba(124, 58, 237, 0.25));
}

.capability-card:hover .card-icon-wrap::after {
    opacity: 0.4;
}

.capability-card .brain-icon {
    display: inline-flex;
    align-items: center;
    margin-left: 2px;
    vertical-align: middle;
    opacity: 0.85;
}

/* ============================================ */
/* How It Works Section                          */
/* ============================================ */

.how-it-works {
    max-width: 1000px;
    margin: 0 auto;
    padding: 1rem 0 2.5rem;
}

.section-heading {
    text-align: center;
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, #f5d060, #f0c040, #d4a020);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.steps-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.step-item {
    flex: 1;
    max-width: 280px;
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-lg);
    padding: 1.75rem 1.25rem;
    text-align: center;
    position: relative;
    transition: var(--transition);
}

.step-item:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-card-hover);
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.step-number {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 28px;
    height: 28px;
    border-radius: var(--radius-full);
    background: var(--gradient-gold);
    color: #000;
    font-weight: 800;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 12px rgba(240, 192, 64, 0.3);
}

.step-icon-wrap {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: var(--gold);
    transition: var(--transition);
}

.step-item:hover .step-icon-wrap {
    background: rgba(240, 192, 64, 0.08);
    border-color: rgba(240, 192, 64, 0.15);
}

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

.step-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.4rem;
}

.step-desc {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.step-connector {
    color: var(--text-muted);
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

@media (max-width: 767px) {
    .steps-row {
        flex-direction: column;
        gap: 1.5rem;
    }

    .step-connector {
        transform: rotate(90deg);
    }

    .step-item {
        max-width: 100%;
        width: 100%;
    }
}

/* ============================================ */
/* Advantages Section                            */
/* ============================================ */

.advantages-section {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0.5rem 0 3rem;
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

@media (min-width: 768px) {
    .advantages-grid {
        gap: 1.25rem;
    }
}

.advantage-item {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-lg);
    padding: 1.5rem 1rem;
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.advantage-item::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-lg);
    background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.02) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.advantage-item:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-card-hover);
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.advantage-item:hover::after {
    opacity: 1;
}

.advantage-icon-wrap {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    background: var(--adv-gradient, var(--gradient-accent));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.85rem;
    color: #fff;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    transition: var(--transition);
}

.advantage-item:hover .advantage-icon-wrap {
    transform: scale(1.1);
}

.advantage-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.35rem;
}

.advantage-desc {
    font-size: 0.78rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* ============================================ */
/* Header elements for VEO page                 */
/* ============================================ */

.header-logo-link {
    color: #fff;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 700;
    background: linear-gradient(135deg, #c084fc, #818cf8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.header-balance {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 0.4rem 0.8rem;
    font-size: 0.9rem;
}

.header-balance .balance-value {
    color: #f0c040;
    font-weight: 600;
}

.header-balance .balance-emoji {
    font-size: 1rem;
}

.header-left {
    display: flex;
    align-items: center;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.header-back-btn {
    color: #fff;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
}
.models-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

@media (min-width: 769px) {
    .models-grid {
        grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
        gap: 2.5rem;
        margin-top: 2rem;
    }
}

.model-card {
    background: rgba(20, 20, 20, 0.95);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    overflow: hidden;
    transition: var(--transition);
    cursor: pointer;
    position: relative;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
}

.model-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 204, 0, 0.1) 0%, rgba(255, 204, 0, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.model-card:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 204, 0, 0.5);
    box-shadow: 
        0 10px 40px rgba(255, 204, 0, 0.3),
        0 0 20px rgba(255, 204, 0, 0.2),
        inset 0 0 20px rgba(255, 204, 0, 0.05);
}

.model-card:hover::before {
    opacity: 1;
    background: linear-gradient(135deg, rgba(255, 204, 0, 0.1) 0%, rgba(255, 204, 0, 0.05) 100%);
}

.model-card-image {
    width: 100%;
    height: 180px;
    overflow: hidden;
    position: relative;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
}

.model-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    display: block;
}

.model-card-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(255, 204, 0, 0.1), rgba(255, 204, 0, 0.05));
    color: rgba(255, 204, 0, 0.6);
}

.model-card-image-placeholder svg {
    width: 64px;
    height: 64px;
}

.model-card:hover .model-card-image img {
    transform: scale(1.05);
}

.model-card-content {
    padding: 1rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.model-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.model-card-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.model-card-badge {
    background: rgba(0, 255, 136, 0.2);
    color: var(--primary);
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.model-card-badge.new {
    background: rgba(255, 0, 255, 0.2);
    color: var(--secondary);
}

.model-card-description {
    color: var(--text-secondary);
    font-size: 0.85rem;
    line-height: 1.6;
    margin: 0;
    max-width: 100%;
    word-wrap: break-word;
}

.model-card-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0;
}

.feature-tag {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    font-size: 0.65rem;
    font-weight: 500;
    color: var(--text-secondary);
    white-space: nowrap;
    transition: all 0.3s ease;
}

.feature-tag:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
}

.model-card-button {
    width: 100%;
    padding: 0.75rem 1rem;
    background: rgba(255, 204, 0, 0.15);
    color: #ffcc00;
    border: 1px solid rgba(255, 204, 0, 0.4);
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    margin-top: auto;
}

.model-card-button:hover:not(:disabled) {
    background: rgba(255, 204, 0, 0.25);
    border-color: rgba(255, 204, 0, 0.6);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 204, 0, 0.3);
}

.model-card-button:hover:not(:disabled)::before {
    left: 100%;
}

.model-card-button:active:not(:disabled) {
    transform: scale(0.98);
}

.model-card-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Фон для страницы VEO 3.1 — тёмный фон */
.veo-background-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    background: var(--bg-primary);
    overflow: hidden;
}

/* Туманность — плавающие градиентные сферы на фоне */
.veo-nebula-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.3;
    animation: veo-nebula-float 25s ease-in-out infinite;
}
.veo-nebula-orb--1 {
    width: 450px;
    height: 450px;
    left: -15%;
    top: 15%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.3) 0%, rgba(139, 92, 246, 0.12) 35%, transparent 65%);
    animation-delay: 0s;
    animation-duration: 28s;
}
.veo-nebula-orb--2 {
    width: 380px;
    height: 380px;
    right: -8%;
    top: 45%;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.25) 0%, rgba(99, 102, 241, 0.1) 40%, transparent 68%);
    animation-delay: -8s;
    animation-duration: 32s;
}
.veo-nebula-orb--3 {
    width: 320px;
    height: 320px;
    left: 35%;
    bottom: -8%;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.25) 0%, rgba(99, 102, 241, 0.08) 45%, transparent 72%);
    animation-delay: -15s;
    animation-duration: 30s;
}
@keyframes veo-nebula-float {
    0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.25; }
    33% { transform: translate(40px, -50px) scale(1.08); opacity: 0.35; }
    66% { transform: translate(-30px, 35px) scale(0.92); opacity: 0.3; }
}

/* Анимации для списка AI моделей */
.models-container::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    background: #000000;
    overflow: hidden;
}

.models-container::after {
    content: '';
    position: fixed;
    width: 2px;
    height: 2px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 50%;
    left: 30%;
    top: 70%;
    animation: particleFloat 16s ease-in-out infinite;
    animation-delay: 2s;
    box-shadow: 
        250px 350px 0 0 rgba(255, 255, 255, 0.02),
        450px -250px 0 0 rgba(255, 255, 255, 0.025),
        -350px 150px 0 0 rgba(255, 255, 255, 0.02),
        650px 550px 0 0 rgba(255, 255, 255, 0.015);
}

/* Страница генерации VEO 3.1 */
.veo-generation-page {
    padding: 2rem 1rem;
    max-width: 800px;
    margin: 0 auto;
    margin-top: 0.5rem;
    padding-bottom: 120px;
    position: relative;
    z-index: 1;
    min-height: calc(100vh - 200px);
    overflow-y: auto;
}

@media (min-width: 769px) {
    .veo-generation-page {
        margin-top: 0.5rem;
        padding: 2rem;
    }
}

@media (max-width: 768px) {
    .veo-generation-page {
        margin-top: 0.5rem;
        padding-bottom: 100px; /* Отступ снизу для нижнего меню */
        min-height: calc(100vh - 150px);
        overflow-y: visible !important; /* Убираем overflow чтобы не блокировать скролл body */
    }
    
    main {
        overflow-y: visible !important;
        height: auto !important;
    }
    
    /* Скролл только для обычной мобильной версии, не для Telegram.
       Veo 3.1 (mobile): скролл ленты внутри #veoChatMessagesDesktop — html/body со scroll ломают жест (перехват у документа). */
    html:not(.telegram-webapp):not(.veo-mobile-html) {
        overflow-y: scroll !important;
        -webkit-overflow-scrolling: touch !important;
        height: auto !important;
        min-height: 100% !important;
        position: static !important;
        overscroll-behavior-y: auto !important;
        touch-action: pan-y !important;
    }
    
    body:not(.telegram-webapp):not(.veo-generation-body.mobile-version) {
        overflow-y: scroll !important;
        -webkit-overflow-scrolling: touch !important;
        height: auto !important;
        min-height: 100vh !important;
        position: static !important;
        overflow-x: hidden !important;
        overscroll-behavior-y: auto !important;
        touch-action: pan-y !important;
    }
    
    /* Убираем все что может блокировать скролл */
    .veo-generation-page:not(.telegram-webapp) {
        overflow: visible !important;
        height: auto !important;
    }
    
    main:not(.telegram-webapp) {
        overflow: visible !important;
        height: auto !important;
        min-height: auto !important;
    }
    
    .app-container:not(.telegram-webapp) {
        overflow: visible !important;
        height: auto !important;
        min-height: 100vh !important;
    }
    
    .main-content:not(.telegram-webapp) {
        overflow: visible !important;
        height: auto !important;
        min-height: auto !important;
    }
    
    /* Для Telegram версии не трогаем скролл */
    html.telegram-webapp,
    body.telegram-webapp {
        /* Оставляем как есть для Telegram */
    }
}

.balance-section {
    background: rgba(20, 20, 20, 0.8);
    border: 2px solid rgba(0, 255, 136, 0.3);
    border-radius: var(--card-radius);
    padding: 1.5rem;
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 255, 136, 0.1);
}

.balance-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.balance-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.balance-value {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 1.1rem;
}

.balance-value.cost {
    color: var(--primary);
}

.topup-button {
    width: 100%;
    padding: 0.875rem;
    background: linear-gradient(135deg, #00ff88, #00cc6a);
    color: #000;
    border: 2px solid #00ff88;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 0 15px rgba(0, 255, 136, 0.5),
        0 0 30px rgba(0, 255, 136, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

.topup-button:hover {
    transform: scale(1.02) translateY(-2px);
    box-shadow: 
        0 0 25px rgba(0, 255, 136, 0.7),
        0 0 50px rgba(0, 255, 136, 0.5),
        0 5px 20px rgba(0, 255, 136, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
    background: linear-gradient(135deg, #00ffaa, #00ff88);
}

.topup-button:hover::before {
    left: 100%;
}

.generation-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-section {
    background: rgba(20, 20, 20, 0.95);
    border-radius: var(--card-radius);
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
    backdrop-filter: blur(10px);
    box-shadow: 
        0 2px 10px rgba(0, 0, 0, 0.3), 
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
    margin-bottom: 1rem;
}

.form-section:hover {
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 
        0 4px 15px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.form-section-header {
    padding: 0.875rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 1rem;
}

.form-section-header:hover {
    background: rgba(255, 255, 255, 0.04);
    border-bottom-color: rgba(255, 255, 255, 0.12);
}

.form-section-title {
    color: var(--text-primary);
    font-weight: 500;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-section-help-wrapper {
    position: relative;
    display: inline-block;
}

.form-section-help {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--text-secondary);
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
    position: relative;
}

.form-section-help:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 204, 0, 0.4);
    color: #ffcc00;
}

.form-section-help-wrapper {
    position: relative;
    display: inline-block;
}

.form-section-help-wrapper:hover .form-section-help-tooltip {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateX(-50%) translateY(0) !important;
    display: block !important;
}

.form-section-help:focus + .form-section-help-tooltip,
.form-section-help-wrapper:focus-within .form-section-help-tooltip {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateX(-50%) translateY(0) !important;
    display: block !important;
}

/* Для мобильных устройств - показываем tooltip при touch */
@media (max-width: 768px) {
    .form-section-help-wrapper:active .form-section-help-tooltip,
    .form-section-help:active + .form-section-help-tooltip {
        opacity: 1 !important;
        visibility: visible !important;
        transform: translateX(-50%) translateY(0) !important;
        display: block !important;
        z-index: 999999 !important;
    }
}

.form-section-help-tooltip {
    position: absolute;
    bottom: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%) translateY(-5px);
    margin-bottom: 0;
    padding: 0.75rem 1rem;
    background: rgba(0, 0, 0, 0.98) !important;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    color: var(--text-primary) !important;
    font-size: 0.85rem;
    font-weight: 400;
    white-space: pre-line;
    line-height: 1.5;
    z-index: 99999 !important;
    min-width: 250px;
    max-width: 300px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    display: block;
}

.form-section-help-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: rgba(0, 0, 0, 0.98);
    z-index: 100000;
}


.form-section-content {
    padding: 0 1.5rem 1.5rem 1.5rem;
    display: block;
}

.form-section.collapsed .form-section-content {
    display: none;
}

.form-select,
.form-textarea {
    width: 100%;
    padding: 1.25rem;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
    box-shadow: 
        0 2px 8px rgba(0, 0, 0, 0.2), 
        inset 0 1px 0 rgba(255, 255, 255, 0.03);
    min-height: 180px;
    resize: vertical;
    line-height: 1.6;
}

@media (min-width: 769px) {
    .form-textarea {
        padding: 1.5rem;
        min-height: 200px;
    }
}

.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 
        0 2px 12px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    background: rgba(0, 0, 0, 0.5);
}

.form-textarea {
    min-height: 180px;
    padding: 1.25rem;
    resize: vertical;
    font-size: 1rem;
    line-height: 1.6;
}

@media (min-width: 769px) {
    .form-textarea {
        min-height: 200px;
        padding: 1.5rem;
    }
}

.form-hint {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-top: 0.5rem;
}

.image-upload-area {
    border: 1px dashed rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    background: rgba(255, 255, 255, 0.02);
    box-shadow: 
        0 2px 8px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.image-upload-area:hover {
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.04);
    box-shadow: 
        0 4px 12px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.upload-icon {
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin-top: 0.5rem;
    order: 1;
}

.upload-text-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    order: 2;
    margin-top: 0.5rem;
}

.upload-text {
    color: var(--text-primary);
    font-weight: 500;
    font-size: 0.85rem;
}

.upload-hint {
    color: var(--text-secondary);
    font-size: 0.75rem;
}

/* Карточки соотношения сторон */
.aspect-ratio-cards {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.aspect-ratio-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: rgba(20, 20, 20, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.aspect-ratio-card:hover {
    border-color: rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.02);
}

.aspect-ratio-card.selected {
    border-color: rgba(255, 204, 0, 0.6);
    background: rgba(255, 204, 0, 0.05);
    box-shadow: 0 0 15px rgba(255, 204, 0, 0.2);
}

.aspect-ratio-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 204, 0, 0.8);
    flex-shrink: 0;
}

.aspect-ratio-icon svg {
    width: 100%;
    height: 100%;
}

.aspect-ratio-card.selected .aspect-ratio-icon {
    color: #ffcc00;
}

.aspect-ratio-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.aspect-ratio-name {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 1rem;
}

.aspect-ratio-desc {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.aspect-ratio-radio {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.aspect-ratio-card.selected .aspect-ratio-radio {
    border-color: rgba(255, 204, 0, 0.8);
}

.radio-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: transparent;
    transition: all 0.3s ease;
}

.radio-dot.selected {
    background: #ffcc00;
    box-shadow: 0 0 8px rgba(255, 204, 0, 0.6);
}

/* Карточки выбора модели */
.model-select-cards {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.model-select-card {
    flex: 1;
    min-width: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.15rem;
    padding: 0.5rem 0.4rem;
    background: rgba(20, 20, 20, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.model-select-card:hover {
    border-color: rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.02);
    transform: translateY(-2px);
}

.model-select-card.selected {
    border-color: rgba(255, 204, 0, 0.6);
    background: rgba(255, 204, 0, 0.05);
    box-shadow: 0 0 15px rgba(255, 204, 0, 0.2);
}

.model-select-icon {
    font-size: 0.75rem;
    line-height: 1;
}

.model-select-name {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.model-select-card.selected .model-select-name {
    color: #ffcc00;
}

@media (max-width: 768px) {
    .model-select-cards {
        gap: 0.75rem;
    }
    
    .model-select-card {
        min-width: 100px;
        padding: 1.25rem 0.75rem;
    }
    
    .model-select-icon {
        font-size: 2rem;
    }
    
    .model-select-name {
        font-size: 1rem;
    }
}

/* Выбор нейросети */
.ai-model-selector {
    margin-bottom: 1.5rem;
}

.ai-model-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: rgba(20, 20, 20, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.ai-model-card.selected {
    border-color: rgba(255, 204, 0, 0.3);
    background: rgba(255, 204, 0, 0.05);
}

.ai-model-logo {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 204, 0, 0.8);
    flex-shrink: 0;
}

.ai-model-letter {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(255, 204, 0, 0.2), rgba(255, 204, 0, 0.1));
    border: 2px solid rgba(255, 204, 0, 0.4);
    border-radius: 10px;
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffcc00;
    text-shadow: 0 0 10px rgba(255, 204, 0, 0.5);
}

.ai-model-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.ai-model-name {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.95rem;
}

.ai-model-desc {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.ai-model-change-btn {
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.ai-model-change-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
}

/* Модальное окно выбора нейросети */
.ai-model-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    backdrop-filter: blur(10px);
}

.ai-model-modal-content {
    background: rgba(20, 20, 20, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    max-width: 500px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.ai-model-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.ai-model-modal-title {
    color: var(--text-primary);
    font-weight: 700;
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0;
}

.ai-model-modal-close {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.ai-model-modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

.ai-model-modal-body {
    padding: 1rem;
}

.ai-model-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.ai-model-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.ai-model-item:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.15);
}

.ai-model-item.selected {
    border-color: rgba(255, 204, 0, 0.6);
    background: rgba(255, 204, 0, 0.05);
}

.ai-model-item-logo {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 204, 0, 0.8);
    flex-shrink: 0;
}

.ai-model-item-logo .ai-model-letter {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(255, 204, 0, 0.2), rgba(255, 204, 0, 0.1));
    border: 2px solid rgba(255, 204, 0, 0.4);
    border-radius: 8px;
    font-size: 1.2rem;
    font-weight: 700;
    color: #ffcc00;
    text-shadow: 0 0 8px rgba(255, 204, 0, 0.5);
}

.ai-model-item-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.ai-model-item-name {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 1rem;
}

.ai-model-item-desc {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

/* Блок совета */
.tip-section {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: rgba(20, 20, 20, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    margin-bottom: 1rem;
    position: relative;
}

.tip-icon {
    font-size: 1.25rem;
    flex-shrink: 0;
    color: rgba(255, 204, 0, 0.8);
}

.tip-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.tip-title {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tip-text {
    color: var(--text-secondary);
    font-size: 0.85rem;
    line-height: 1.5;
}

.tip-toggle {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    font-size: 0.9rem;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.3s ease;
    flex-shrink: 0;
    margin-left: auto; /* Стрелка всегда справа */
    order: 999; /* Всегда последняя */
}

.tip-toggle-icon {
    display: inline-block;
    transition: transform 0.3s ease;
}

.tip-title-collapsed {
    display: none;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    flex: 1;
}

.tip-section.collapsed .tip-content {
    display: none;
}

.tip-section.collapsed .tip-title-collapsed {
    display: block; /* Показываем заголовок "СОВЕТ" когда скрыто */
}

.tip-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    border-color: rgba(255, 255, 255, 0.2);
}

.tip-section.collapsed .tip-content {
    display: none;
}

.tip-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* Счётчик промпта в заголовке */
.prompt-counter {
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 500;
    transition: color 0.3s ease;
    margin-left: auto;
}

@media (max-width: 768px) {
    .ai-model-card {
        padding: 0.875rem 1rem;
        gap: 0.75rem;
    }
    
    .ai-model-logo {
        width: 40px;
        height: 40px;
    }
    
    .ai-model-name {
        font-size: 1rem;
    }
    
    .ai-model-desc {
        font-size: 0.8rem;
    }
    
    .ai-model-change-btn {
        padding: 0.4rem 0.75rem;
        font-size: 0.85rem;
    }
    
    .tip-section {
        padding: 0.875rem 1rem;
        gap: 0.75rem;
    }
    
    .tip-icon {
        font-size: 1.25rem;
    }
    
    .tip-title {
        font-size: 0.85rem;
    }
    
    .tip-text {
        font-size: 0.85rem;
    }
    
    .ai-model-modal-content {
        max-width: 100%;
        margin: 1rem;
    }
}

@media (max-width: 768px) {
    .aspect-ratio-card {
        padding: 0.875rem;
        gap: 0.75rem;
    }
    
    .aspect-ratio-icon {
        width: 48px;
        height: 48px;
    }
    
    .aspect-ratio-name {
        font-size: 0.95rem;
    }
    
    .aspect-ratio-desc {
        font-size: 0.8rem;
    }
    
    .image-upload-area {
        padding: 0.75rem;
    }
    
    .upload-icon {
        font-size: 1.75rem;
        margin-bottom: 0.4rem;
    }
    
    .upload-text {
        font-size: 0.85rem;
    }
}

.toggle-setting {
    margin-bottom: 1rem;
}

.toggle-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-primary);
    cursor: pointer;
}

.toggle-switch {
    display: none;
}

.toggle-slider {
    position: relative;
    width: 50px;
    height: 26px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 13px;
    transition: var(--transition);
}

.toggle-slider::before {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: white;
    top: 3px;
    left: 3px;
    transition: var(--transition);
}

.toggle-switch:checked + .toggle-slider {
    background: var(--primary);
}

.toggle-switch:checked + .toggle-slider::before {
    transform: translateX(24px);
}

.info-box {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
}

.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    margin-bottom: 5rem; /* Отступ снизу чтобы кнопки не перекрывались нижним меню */
    padding-bottom: 1rem;
}

@media (max-width: 768px) {
    .form-actions {
        margin-bottom: 4.5rem; /* Меньший отступ на мобильных */
        padding-bottom: 0.5rem;
    }
}

.btn-cancel {
    flex: 1;
    padding: 0.65rem 1.25rem;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
}

.btn-cancel:hover {
    background: rgba(255, 255, 255, 0.15);
}

.btn-submit {
    flex: 2;
    padding: 0.65rem 1.25rem;
    background: linear-gradient(135deg, #00ff88, #00cc6a);
    color: #000;
    border: 2px solid #00ff88;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 0 15px rgba(0, 255, 136, 0.5),
        0 0 30px rgba(0, 255, 136, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    animation: submitButtonPulse 2s ease-in-out infinite;
}

.btn-submit-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.2rem;
    width: 100%;
}

.btn-submit-row {
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1.2;
    width: 100%;
}

.btn-submit-price {
    font-size: inherit;
    font-weight: inherit;
    color: inherit;
}

.brain-emoji {
    display: inline-block;
    animation: brainPulse 1.5s ease-in-out infinite;
    font-size: 1em;
}

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

.btn-submit:hover:not(:disabled) {
    transform: scale(1.02) translateY(-2px);
    box-shadow: 
        0 0 25px rgba(0, 255, 136, 0.7),
        0 0 50px rgba(0, 255, 136, 0.5),
        0 5px 20px rgba(0, 255, 136, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
    background: linear-gradient(135deg, #00ffaa, #00ff88);
}

.btn-submit:hover:not(:disabled)::before {
    left: 100%;
}

.btn-submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Нижняя навигация - скрыта на десктопе */
@media (min-width: 1024px) {
    .bottom-nav {
        display: none !important;
    }
}

/* Уведомление о недостаточном балансе */
.balance-notification {
    margin-bottom: 1.5rem;
    animation: slideDown 0.3s ease-out;
}

.balance-notification-content {
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.15), rgba(255, 82, 82, 0.15));
    border: 2px solid rgba(255, 107, 107, 0.4);
    border-radius: 12px;
    padding: 1rem;
    box-shadow: 
        0 0 15px rgba(255, 107, 107, 0.2),
        0 0 30px rgba(255, 107, 107, 0.1);
}

.balance-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    gap: 1rem;
}

.balance-info-item {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 0;
    flex-wrap: wrap;
}

.balance-value,
.balance-shortage {
    white-space: nowrap;
}

.balance-label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    font-weight: 500;
    white-space: pre;
}

.balance-value {
    color: #ff6b6b;
    font-size: 1.1rem;
    font-weight: 700;
}

.balance-value-green {
    color: #c7d2fe !important;
}

.balance-shortage {
    color: #ff6b6b;
    font-size: 1.1rem;
    font-weight: 700;
}

.brain-emoji-small {
    display: inline-block;
    animation: brainPulse 1.5s ease-in-out infinite;
    font-size: 1.1em;
}

.balance-topup-btn {
    width: 100%;
    padding: 0.75rem 1rem;
    background: linear-gradient(135deg, #00ff88, #00cc6a);
    color: #000;
    border: 2px solid #00ff88;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 
        0 0 15px rgba(0, 255, 136, 0.5),
        0 0 30px rgba(0, 255, 136, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.balance-topup-btn:hover {
    background: linear-gradient(135deg, #00ffaa, #00ff88);
    transform: translateY(-1px);
    box-shadow: 
        0 0 25px rgba(0, 255, 136, 0.7),
        0 0 50px rgba(0, 255, 136, 0.5),
        0 5px 20px rgba(0, 255, 136, 0.4);
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes brainPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
}

@keyframes submitButtonPulse {
    0%, 100% {
        box-shadow: 
            0 0 15px rgba(0, 255, 136, 0.5),
            0 0 30px rgba(0, 255, 136, 0.3),
            inset 0 1px 0 rgba(255, 255, 255, 0.3);
    }
    50% {
        box-shadow: 
            0 0 25px rgba(0, 255, 136, 0.7),
            0 0 50px rgba(0, 255, 136, 0.5),
            inset 0 1px 0 rgba(255, 255, 255, 0.4);
    }
}

@media (max-width: 768px) {
    .balance-notification-content {
        padding: 0.875rem;
    }
    
    .balance-info-row {
        flex-direction: row;
        gap: 0.5rem;
        margin-bottom: 0.875rem;
    }
    
    .balance-info-text {
        font-size: 0.9rem;
    }
    
    .balance-value {
        font-size: 1rem;
    }
    
    .balance-shortage {
        font-size: 1rem;
    }
    
    .balance-topup-btn {
        padding: 0.65rem 0.875rem;
        font-size: 0.85rem;
    }
    
    .btn-submit {
        font-size: 0.8rem;
        padding: 0.65rem 1.25rem;
    }
}

.models-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 2rem;
}

@media (min-width: 769px) {
    .models-subtitle {
        font-size: 1.1rem;
        margin-bottom: 2.5rem;
    }
}

.models-container {
    padding: 1rem;
    padding-top: 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

@media (min-width: 769px) {
    .models-container {
        padding: 2rem;
        padding-top: 1rem;
        max-width: 1400px;
    }
}

/* Toast уведомление о готовности (видео, изображение и т.п.) — зелёный неон, используется по всему сайту */
.vf-result-toast {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 10000;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: var(--vf-ready-bg);
    border: 1px solid var(--vf-ready-border);
    border-radius: var(--radius-md);
    color: var(--vf-ready-text);
    font-size: 0.95rem;
    font-weight: 500;
    box-shadow: var(--vf-ready-glow), 0 0 0 1px rgba(90, 120, 105, 0.12) inset;
    opacity: 0;
    transform: translateY(1rem);
    transition: opacity 0.3s ease, transform 0.3s ease;
}
.vf-result-toast--visible {
    opacity: 1;
    transform: translateY(0);
}
.vf-result-toast a {
    color: var(--vf-ready-link);
    font-weight: 600;
    margin-left: 0.25rem;
}
.vf-result-toast a:hover {
    color: var(--vf-ready-link-hover);
    text-decoration: underline;
}
.vf-result-toast-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: rgba(74, 124, 96, 0.2);
    border-radius: 50%;
    color: rgba(130, 168, 148, 0.95);
    font-size: 1rem;
    font-weight: 600;
    flex-shrink: 0;
}
