:root {
    --bg-main: #FFFFFF;
    --text-main: #0B1120;
    --text-muted: #5C6A7A;
    --accent-primary: #00B67A; 
    --accent-dark: #00A36C;
    --card-bg: #15171A; 
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Manrope', sans-serif;
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.5;
    overflow-x: hidden;
    background: radial-gradient(100% 100% at 50% 0%, rgba(0, 182, 122, 0.04) 0%, rgba(255, 255, 255, 0) 100%), #FFFFFF;
}

/* Прелоадер */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #0B1120;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

.preloader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

/* Лого на экране загрузки */
.preloader-logo.premium-logo {
    width: 56px;
    height: 56px;
    color: #FFFFFF;
    animation: pulseLogo 2s infinite;
}

.preloader-progress {
    width: 120px;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
    position: relative;
}

.preloader-progress::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: var(--accent-primary);
    animation: loadProgress 1.5s ease-in-out infinite;
}

@keyframes pulseLogo {
    0%, 100% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.05); opacity: 1; }
}

@keyframes loadProgress {
    0% { left: -100%; }
    100% { left: 200%; }
}

a {
    text-decoration: none;
}

.mobile-wrapper {
    width: 100%;
    max-width: 540px; 
    margin: 0 auto;
    padding: 0 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Шапка Glassmorphism */
.header {
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
}

.main-content {
    flex: 1;
    padding: 90px 0 120px;
    display: flex;
    flex-direction: column;
}

/* Стили для SVG/CSS Логотипа */
.premium-logo {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    color: var(--text-main); /* Темный по умолчанию */
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-text {
    font-weight: 800;
    font-size: 15px;
    letter-spacing: -0.02em;
    color: var(--text-main);
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 600;
    color: var(--accent-dark);
    background: rgba(0, 182, 122, 0.1);
    padding: 6px 14px;
    border-radius: 100px;
    border: 1px solid rgba(0, 182, 122, 0.2);
    align-self: flex-start;
    margin-bottom: 24px;
}

.status-badge .dot {
    width: 6px;
    height: 6px;
    background-color: var(--accent-primary);
    border-radius: 50%;
    box-shadow: 0 0 0 2px rgba(0, 182, 122, 0.2);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(0, 182, 122, 0.4); }
    70% { box-shadow: 0 0 0 6px rgba(0, 182, 122, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 182, 122, 0); }
}

.hero-title {
    font-size: 38px;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.04em;
    margin-bottom: 16px;
}

.text-accent {
    color: var(--accent-primary);
}

.hero-subtitle {
    font-size: 15px;
    color: var(--text-muted);
    margin-bottom: 32px;
    line-height: 1.6;
    max-width: 90%;
}

.cta-group {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 48px;
    flex-wrap: wrap; 
}

/* Кнопка с эффектом Shimmer */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: var(--accent-primary);
    border: none;
    cursor: pointer;
    font-family: inherit;
    color: #FFFFFF;
    font-weight: 700;
    font-size: 16px;
    padding: 16px 28px;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 182, 122, 0.25);
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, transparent, rgba(255,255,255,0.4), transparent);
    transform: skewX(-25deg);
    animation: btnShimmer 5s infinite;
    z-index: -1;
}

@keyframes btnShimmer {
    0%, 70% { left: -100%; }
    100% { left: 200%; }
}

.btn-primary:active {
    transform: scale(0.96);
    box-shadow: 0 4px 12px rgba(0, 182, 122, 0.2);
}

.cta-note {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
}

/* 3D Контейнер для карты */
.card-container {
    perspective: 1000px;
    margin-bottom: 16px; 
}

.premium-card {
    background: linear-gradient(145deg, #2A2D35 0%, #101215 100%);
    border-radius: 20px;
    padding: 24px;
    color: #FFFFFF;
    position: relative;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(11, 17, 32, 0.25), inset 0 1px 0 rgba(255,255,255,0.1);
    aspect-ratio: 1.586; 
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transform-style: preserve-3d;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
}

/* Блик на карте при наклоне */
.card-bg-glow {
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(115deg, transparent 20%, rgba(255,255,255,0.08) 50%, transparent 80%);
    pointer-events: none;
    transform: translateX(-100%);
    transition: transform 0.2s ease-out;
    z-index: 1;
}

/* Анимация левитации карты (если не крутят пальцем) */
@keyframes floatCard {
    0%, 100% { transform: translateY(0) rotateX(2deg) rotateY(0deg); }
    50% { transform: translateY(-8px) rotateX(-2deg) rotateY(2deg); }
}

.premium-card.floating {
    animation: floatCard 6s ease-in-out infinite;
}

.card-top, .card-middle, .card-bottom {
    position: relative;
    z-index: 2;
    transform: translateZ(20px); 
}

.card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.card-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 800;
    font-size: 11px;
    letter-spacing: 0.5px;
}

/* На черной карте логотип становится белым */
.card-brand .premium-logo {
    color: #FFFFFF;
    width: 20px;
    height: 20px;
}

.card-pass {
    font-size: 9px;
    letter-spacing: 1.5px;
    color: rgba(255, 255, 255, 0.4);
    font-weight: 600;
}

.card-middle h2 {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 2px;
}

/* Динамический текст в карточке */
.card-dynamic-text {
    position: relative;
    height: 18px; /* Фиксируем высоту под одну строку */
    overflow: hidden;
}

.card-dynamic-text span {
    position: absolute;
    top: 0;
    left: 0;
    font-size: 12px;
    color: var(--accent-primary);
    font-weight: 500;
    opacity: 0;
    transform: translateY(10px);
    animation: fadeCarousel 12s infinite;
}

/* Сдвиг анимации для каждой фразы (4 фразы по 3 секунды) */
.card-dynamic-text span:nth-child(1) { animation-delay: 0s; }
.card-dynamic-text span:nth-child(2) { animation-delay: 3s; }
.card-dynamic-text span:nth-child(3) { animation-delay: 6s; }
.card-dynamic-text span:nth-child(4) { animation-delay: 9s; }

@keyframes fadeCarousel {
    0% { opacity: 0; transform: translateY(10px); }
    5% { opacity: 1; transform: translateY(0); }
    20% { opacity: 1; transform: translateY(0); }
    25% { opacity: 0; transform: translateY(-10px); }
    100% { opacity: 0; transform: translateY(-10px); }
}

.card-bottom {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.card-validity span {
    display: block;
    font-size: 8px;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 2px;
}

.card-validity strong {
    font-size: 13px;
    letter-spacing: 1px;
    font-family: monospace;
}

.card-chip {
    opacity: 0.8;
}

/* Плашка дефицита */
.scarcity-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 40px;
    font-size: 13px;
    font-weight: 600;
    color: #4A5568;
    background: #F3F4F6;
    padding: 10px 16px;
    border-radius: 12px;
    border: 1px solid rgba(0,0,0,0.03);
}

.pulse-dot-red {
    width: 6px;
    height: 6px;
    background-color: #EF4444;
    border-radius: 50%;
    box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.2);
    animation: pulseRed 2s infinite;
}

@keyframes pulseRed {
    0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4); }
    70% { box-shadow: 0 0 0 6px rgba(239, 68, 68, 0); }
    100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

.features {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-top: 20px;
    border-top: 1px solid rgba(0,0,0,0.05);
}

.feature-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.f-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(0, 182, 122, 0.1);
    color: var(--accent-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
}

.feature-row p {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-main);
}

/* Липкая кнопка с сильным Glassmorphism */
.sticky-bottom {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 16px 20px 24px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    z-index: 99;
    display: flex;
    justify-content: center;
    pointer-events: none;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.sticky-bottom.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.sticky-bottom .btn-primary {
    width: 100%;
    max-width: 500px;
    box-shadow: 0 12px 32px rgba(0, 182, 122, 0.3);
}

.fade-up {
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Модальное окно (Glassmorphism + Smooth Animations) */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(11, 17, 32, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-box {
    background: #FFFFFF;
    width: 100%;
    max-width: 400px;
    border-radius: 24px;
    padding: 32px 24px;
    position: relative;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.15);
    transform: translateY(20px) scale(0.95);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.active .modal-box {
    transform: translateY(0) scale(1);
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, color 0.2s;
}

.modal-close:hover, .modal-close:active {
    background: rgba(0,0,0,0.05);
    color: var(--text-main);
}

.modal-title {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 8px;
    color: var(--text-main);
    letter-spacing: -0.02em;
}

.modal-desc {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 24px;
    line-height: 1.5;
}

.modal-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-main);
}

.form-group input {
    width: 100%;
    padding: 14px 16px;
    border-radius: 12px;
    border: 1px solid rgba(0,0,0,0.08);
    background: #F9FAFB;
    font-family: inherit;
    font-size: 15px;
    color: var(--text-main);
    outline: none;
    transition: all 0.2s ease;
}

.form-group input::placeholder {
    color: #9CA3AF;
}

.form-group input:focus {
    border-color: var(--accent-primary);
    background: #FFFFFF;
    box-shadow: 0 0 0 4px rgba(0, 182, 122, 0.1);
}

.btn-submit {
    width: 100%;
    margin-top: 8px;
}