/* styles/payment.css */
/* Полный набор стилей для страницы оплаты VaPN */

/* ===== CSS Variables ===== */
:root {
    /* Темная тема (по умолчанию) */
    --primary-dark: #0D1B48;
    --primary-light: #4A9DFF;
    --accent: #00FFC5;
    --accent-glow: rgba(0, 255, 197, 0.6);
    --bg-main: #0A0E1F;
    --white: #FFFFFF;
    --text-muted: #B0B8D0;
    --purple-neon: #A855F7;
    --success-color: #69db7c;
    --error-color: #ff6b6b;
    --border-color: rgba(74, 157, 255, 0.2);
    --bg-secondary: rgba(13, 27, 72, 0.3);
    --bg-tertiary: rgba(13, 27, 72, 0.5);
    --shadow-color: rgba(0, 40, 100, 0.2);
}

/* ===== Светлая тема ===== */
body.light-theme {
    --primary-dark: #0D1B48;
    --primary-light: #4A9DFF;
    --accent: #00A2FF;
    --accent-glow: rgba(0, 162, 255, 0.6);
    --bg-main: #F0F5FF;
    --white: #FFFFFF;
    --text-muted: #4A5568;
    --purple-neon: #7C3AED;
    --success-color: #00A2FF;
    --error-color: #ff6b6b;
    --border-color: rgba(74, 157, 255, 0.3);
    --bg-secondary: rgba(255, 255, 255, 0.7);
    --bg-tertiary: rgba(240, 245, 255, 0.5);
    --shadow-color: rgba(13, 27, 72, 0.1);
}

/* ===== RESET ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', 'Roboto', sans-serif;
}

/* ===== КОСМИЧЕСКИЙ ФОН ===== */
html,
body {
    background-color: #0A0E1F;
}

body {
    min-height: 100vh;
    background: radial-gradient(circle at 20% 80%, rgba(74, 157, 255, 0.1) 0%, transparent 40%), 
                radial-gradient(circle at 80% 20%, rgba(168, 85, 247, 0.1) 0%, transparent 40%), 
                radial-gradient(circle at 40% 40%, rgba(0, 255, 197, 0.05) 0%, transparent 50%), 
                linear-gradient(135deg, #0A0E1F 0%, #0F1A3A 50%, #1A1F33 100%);
    color: var(--white);
    position: relative;
    overflow-x: hidden;
    transition: all 0.3s ease;
}

body.light-theme {
    background: radial-gradient(circle at 20% 30%, rgba(74, 157, 255, 0.15) 0%, transparent 25%), 
                radial-gradient(circle at 90% 80%, rgba(168, 85, 247, 0.1) 0%, transparent 25%), 
                radial-gradient(circle at 50% 50%, rgba(0, 255, 197, 0.08) 0%, transparent 30%), 
                linear-gradient(135deg, #E6F0FF 0%, #F0F7FF 30%, #FFFFFF 70%, #F8FAFF 100%);
    color: #1A202C;
}

/* Звезды - слой 1 (мелкие) */
.stars {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.star {
    position: absolute;
    background-color: white;
    border-radius: 50%;
    animation: twinkle 4s infinite;
}

/* Звезды - слой 2 (средние) */
.stars2 {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    opacity: 0.7;
}

.star2 {
    position: absolute;
    background-color: var(--primary-light);
    border-radius: 50%;
    animation: twinkle 3s infinite;
    animation-delay: 1s;
}

/* Звезды - слой 3 (крупные) */
.stars3 {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    opacity: 0.5;
}

.star3 {
    position: absolute;
    background-color: var(--accent);
    border-radius: 50%;
    animation: twinkle 5s infinite;
    animation-delay: 2s;
}

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

/* ===== ОСНОВНОЙ КОНТЕЙНЕР ===== */
main {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 24px;
}

/* ===== ХЕДЕР ===== */
.main-header {
    position: relative;
    z-index: 10;
    padding: 20px 0;
    border-bottom: 1px solid rgba(74, 157, 255, 0.2);
    background: rgba(13, 27, 72, 0.8);
    backdrop-filter: blur(10px);
}

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

.logo {
    height: 65px;
    transition: all 0.3s ease;
    opacity: 0.9;
}

.logo:hover {
    transform: scale(1.08);
    opacity: 1;
}

.header-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.login-btn {
    background: linear-gradient(135deg, rgba(74, 157, 255, 0.15), rgba(13, 27, 72, 0.25));
    border: 1px solid rgba(74, 157, 255, 0.3);
    color: var(--white);
    padding: 12px 24px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
}

.login-btn:hover {
    background: linear-gradient(135deg, rgba(0, 255, 197, 0.2), rgba(13, 27, 72, 0.35));
    border-color: var(--accent);
    transform: translateY(-2px);
}

.download-btn {
    background: linear-gradient(135deg, var(--accent), #00D4A3);
    color: #00110D;
    padding: 12px 24px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    border: none;
    transition: all 0.3s ease;
}

.download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 255, 197, 0.3);
}

/* ===== ПЕРЕКЛЮЧАТЕЛЬ ТЕМЫ ===== */
.theme-switcher-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: left;
    margin: 5px;
}

.theme-switcher {
    display: flex;
    gap: 8px;
    align-items: center;
}

.theme-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: all 0.3s ease;
    background: rgba(13, 27, 72, 0.6);
    color: var(--white);
    border: 1px solid rgba(74, 157, 255, 0.3);
}

.theme-btn:hover {
    background: rgba(74, 157, 255, 0.3);
    transform: scale(1.1);
}

.theme-btn.active {
    background: linear-gradient(135deg, var(--accent), #00D4A3);
    color: #00110D;
    box-shadow: 0 0 15px rgba(0, 255, 197, 0.5);
}

/* Мобильный переключатель */
.mobile-theme-toggle {
    display: none;
}

.theme-toggle-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, var(--accent), #00D4A3);
    color: #00110D;
    font-size: 22px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px var(--accent-glow);
}

/* ===== PROFILE WRAPPER (ОСНОВНОЙ БЛОК) ===== */
.profile-wrapper {
    background: linear-gradient(145deg, rgba(13, 27, 72, 0.85), rgba(20, 35, 90, 0.75));
    border-radius: 28px;
    padding: 50px;
    border: 1px solid rgba(74, 157, 255, 0.25);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

/* ===== ЗАГОЛОВКИ ===== */
.hero-title {
    font-size: 48px;
    margin-bottom: 20px;
    background: linear-gradient(90deg, var(--accent), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
    text-align: center;
}

.hero-subtitle {
    font-size: 18px;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.section-title {
    text-align: center;
    font-size: 36px;
    margin-bottom: 30px;
    color: var(--white);
}

/* ===== ОСНОВНОЙ КОНТЕНТ ОПЛАТЫ ===== */
.payment-content {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 20px;
}

.payment-header {
    text-align: center;
    margin-bottom: 40px;
}

/* Сводка заказа */
.order-summary {
    flex: 1;
    min-width: 300px;
    background: linear-gradient(145deg, rgba(13, 27, 72, 0.5), rgba(20, 35, 90, 0.4));
    border-radius: 22px;
    padding: 30px;
    border: 1px solid rgba(74, 157, 255, 0.15);
    backdrop-filter: blur(10px);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.order-summary:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
    box-shadow: 0 15px 35px rgba(0, 255, 197, 0.1);
}

.order-summary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--accent), var(--primary-light));
}

/* Методы оплаты */
.payment-methods {
    flex: 1;
    min-width: 300px;
    background: linear-gradient(145deg, rgba(13, 27, 72, 0.5), rgba(20, 35, 90, 0.4));
    border-radius: 22px;
    padding: 30px;
    border: 1px solid rgba(74, 157, 255, 0.15);
    backdrop-filter: blur(10px);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.payment-methods:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
    box-shadow: 0 15px 35px rgba(0, 255, 197, 0.1);
}

.payment-methods::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #69db7c, #51cf66);
}

/* План в заказе */
.order-plan {
    background: rgba(13, 27, 72, 0.3);
    border-radius: 18px;
    padding: 20px;
    margin-bottom: 25px;
    border: 1px solid rgba(74, 157, 255, 0.15);
}

.plan-name {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--accent);
    text-shadow: 0 0 10px rgba(0, 255, 197, 0.3);
}

.plan-details {
    color: var(--text-muted);
    margin-bottom: 15px;
    line-height: 1.5;
    font-size: 0.95rem;
}

/* Детали цены */
.price-breakdown {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid rgba(74, 157, 255, 0.15);
}

.price-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    padding: 8px 0;
    color: var(--text-muted);
}

.price-value {
    font-weight: 600;
    color: var(--white);
}

.price-value.discount {
    color: #69db7c;
}

.total-price {
    display: flex;
    justify-content: space-between;
    padding: 15px 0;
    margin-top: 15px;
    border-top: 2px solid rgba(74, 157, 255, 0.3);
    border-bottom: 2px solid rgba(74, 157, 255, 0.3);
    font-size: 1.3rem;
    font-weight: 700;
}

.total-label {
    color: var(--white);
}

.total-amount {
    color: #69db7c;
    text-shadow: 0 0 10px rgba(105, 219, 124, 0.3);
}

/* Заметка безопасности */
.security-note {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 25px;
    padding: 15px;
    background: rgba(105, 219, 124, 0.1);
    border-radius: 12px;
    border: 1px solid rgba(105, 219, 124, 0.3);
    color: var(--text-muted);
    font-size: 0.95rem;
}

.security-note i {
    color: #69db7c;
    font-size: 1.2rem;
}

.security-note strong {
    color: #69db7c;
}

/* Вкладки оплаты */
.payment-tabs {
    display: flex;
    margin-bottom: 25px;
    border-bottom: 1px solid rgba(74, 157, 255, 0.15);
    flex-wrap: wrap;
    gap: 5px;
}

.payment-tab {
    padding: 12px 20px;
    cursor: pointer;
    font-weight: 600;
    color: var(--text-muted);
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
}

.payment-tab i {
    font-size: 1.1rem;
}

.payment-tab.active {
    color: var(--accent);
    border-bottom: 3px solid var(--accent);
}

.payment-tab:hover {
    color: var(--white);
    background: rgba(74, 157, 255, 0.05);
    border-radius: 8px 8px 0 0;
}

/* Формы оплаты */
.payment-form {
    display: none;
    margin-top: 20px;
}

.payment-form.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.95rem;
}

.form-input {
    width: 100%;
    padding: 14px 16px;
    background: rgba(13, 27, 72, 0.3);
    border: 1px solid rgba(74, 157, 255, 0.2);
    border-radius: 12px;
    color: var(--white);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(0, 255, 197, 0.1);
    background: rgba(13, 27, 72, 0.5);
}

.form-input::placeholder {
    color: rgba(176, 184, 208, 0.5);
}

/* Детали карты */
.card-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.card-icons {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    margin-bottom: 25px;
}

.card-icon {
    width: 50px;
    height: 35px;
    background: rgba(13, 27, 72, 0.3);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 1.8rem;
    border: 1px solid rgba(74, 157, 255, 0.15);
}

/* QR код */
.qr-payment {
    text-align: center;
    padding: 20px;
    background: rgba(13, 27, 72, 0.3);
    border-radius: 18px;
    margin-bottom: 25px;
    border: 1px solid rgba(74, 157, 255, 0.15);
}

.qr-code {
    width: 200px;
    height: 200px;
    background: white;
    margin: 0 auto 20px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    color: #0A0E1F;
    border: 2px solid var(--accent);
}

.qr-instruction {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 10px;
}

/* Криптовалюта */
.crypto-options {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 15px;
    margin-bottom: 25px;
}

.crypto-option {
    background: rgba(13, 27, 72, 0.3);
    border: 1px solid rgba(74, 157, 255, 0.15);
    border-radius: 12px;
    padding: 15px 10px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.crypto-option:hover {
    border-color: var(--accent);
    background: rgba(13, 27, 72, 0.5);
    transform: translateY(-3px);
}

.crypto-option.selected {
    border-color: var(--accent);
    background: rgba(0, 255, 197, 0.1);
    box-shadow: 0 0 15px rgba(0, 255, 197, 0.2);
}

.crypto-icon {
    font-size: 2.2rem;
    margin-bottom: 8px;
    color: var(--accent);
}

.crypto-name {
    font-weight: 600;
    color: var(--white);
    font-size: 0.9rem;
}

.crypto-address-display,
.crypto-amount-display {
    background: rgba(13, 27, 72, 0.3);
    border: 1px solid rgba(74, 157, 255, 0.2);
    border-radius: 12px;
    padding: 14px 16px;
    color: var(--accent);
    font-family: monospace;
    font-size: 0.9rem;
    word-break: break-all;
}

.crypto-amount-display {
    color: #69db7c;
}

.crypto-note i {
    color: #ff6b6b;
}

.crypto-note strong {
    color: #ff6b6b;
}

/* Кнопка оплаты */
.subs-link {
    display: inline-block;
    background: linear-gradient(135deg, rgba(74, 157, 255, 0.08), rgba(13, 27, 72, 0.15));
    color: var(--white);
    text-decoration: none;
    padding: 14px 28px;
    border-radius: 12px;
    border: 1px solid var(--primary-light);
    transition: all 0.3s ease;
    font-weight: 600;
    text-align: center;
    position: relative;
    overflow: hidden;
    letter-spacing: 0.5px;
    cursor: pointer;
    font-size: 1rem;
}

.subs-link:hover {
    background: linear-gradient(135deg, rgba(0, 255, 197, 0.15), rgba(13, 27, 72, 0.25));
    border-color: var(--accent);
    transform: translateY(-2px);
}

.payment-submit-btn {
    margin-top: 25px;
    padding: 16px !important;
    font-size: 1.1rem !important;
    width: 100%;
}

.payment-submit-btn i {
    margin-right: 8px;
}

/* Анимация загрузки */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: var(--accent);
    animation: spin 1s ease-in-out infinite;
    margin-right: 8px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ===== МОДАЛЬНЫЕ ОКНА ===== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 14, 31, 0.95);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-content {
    background: linear-gradient(145deg, rgba(13, 27, 72, 0.95), rgba(20, 35, 90, 0.9));
    border-radius: 28px;
    padding: 40px;
    max-width: 500px;
    width: 90%;
    border: 1px solid rgba(74, 157, 255, 0.25);
    position: relative;
    overflow: hidden;
    border-top: 4px solid var(--accent);
    box-shadow: 0 20px 50px rgba(0, 255, 197, 0.2);
}

.modal-content.crypto-modal {
    border-top-color: #f7931a;
}

.modal-icon {
    font-size: 4rem;
    text-align: center;
    margin-bottom: 20px;
}

.modal-icon.success {
    color: #69db7c;
}

.modal-icon.crypto {
    color: #f7931a;
}

.modal-title {
    font-size: 1.8rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 25px;
    background: linear-gradient(90deg, var(--accent), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.modal-info {
    background: rgba(13, 27, 72, 0.3);
    border-radius: 18px;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid rgba(74, 157, 255, 0.15);
    color: var(--text-muted);
}

.modal-info p {
    margin-bottom: 8px;
}

.modal-info strong {
    color: var(--white);
}

.success-text {
    color: #69db7c !important;
    font-size: 1.2rem;
}

.login-info {
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(105, 219, 124, 0.1);
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 25px;
    border: 1px solid rgba(105, 219, 124, 0.3);
}

.login-info i {
    font-size: 1.5rem;
    color: #69db7c;
}

.login-info strong {
    color: #69db7c;
    display: block;
    margin-bottom: 5px;
}

.login-info p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.modal-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.modal-btn {
    padding: 14px 28px;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    min-width: 150px;
}

.modal-btn.primary {
    background: linear-gradient(135deg, var(--accent), #00D4A3);
    color: #00110D;
}

.modal-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 255, 197, 0.3);
}

.modal-btn.secondary {
    background: rgba(74, 157, 255, 0.1);
    color: var(--white);
    border: 1px solid rgba(74, 157, 255, 0.3);
}

.modal-btn.secondary:hover {
    background: rgba(74, 157, 255, 0.2);
    transform: translateY(-2px);
}

.qr-code-large {
    width: 250px;
    height: 250px;
    background: white;
    margin: 0 auto 25px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 6rem;
    color: #0A0E1F;
    border: 3px solid var(--accent);
}

.crypto-modal .qr-code-large {
    border-color: #f7931a;
}

.crypto-address-container {
    margin-bottom: 25px;
}

.address-label {
    color: var(--text-muted);
    margin-bottom: 8px;
    font-weight: 600;
}

.crypto-address-box {
    display: flex;
    align-items: center;
    background: rgba(13, 27, 72, 0.3);
    border: 1px solid rgba(74, 157, 255, 0.2);
    border-radius: 12px;
    padding: 12px 16px;
}

.crypto-address-box code {
    flex: 1;
    color: var(--accent);
    font-family: monospace;
    font-size: 0.9rem;
    word-break: break-all;
}

.copy-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1.2rem;
    padding: 8px;
    transition: all 0.3s ease;
}

.copy-btn:hover {
    color: var(--accent);
    transform: scale(1.1);
}

.crypto-warning {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 107, 107, 0.1);
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 25px;
    border: 1px solid rgba(255, 107, 107, 0.3);
    color: var(--text-muted);
    font-size: 0.9rem;
}

.crypto-warning i {
    color: #ff6b6b;
    font-size: 1.2rem;
}

/* ===== ФУТЕР ===== */
footer {
    margin-top: 80px;
    background: rgba(13, 27, 72, 0.6);
    border-top: 1px solid rgba(74, 157, 255, 0.25);
    text-align: center;
    padding: 30px;
    color: var(--primary-light);
    font-size: 15px;
    border-radius: 20px 20px 0 0;
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent), var(--primary-light), transparent);
}

footer:hover {
    background: rgba(13, 27, 72, 0.7);
    border-top-color: var(--accent);
}

/* ===== АНИМАЦИИ ===== */
.fade-in {
    animation: fadeIn 0.8s ease-out;
}

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

/* ===== СВЕТЛАЯ ТЕМА (дополнительные стили) ===== */
body.light-theme .main-header {
    background: rgba(13, 27, 72, 0.95) !important;
}

body.light-theme .login-btn {
    color: white !important;
}

body.light-theme .profile-wrapper,
body.light-theme .order-summary,
body.light-theme .payment-methods {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.85), rgba(240, 245, 255, 0.75));
    border: 1px solid rgba(74, 157, 255, 0.2);
    box-shadow: 0 8px 32px rgba(13, 27, 72, 0.08);
}

body.light-theme .section-title {
    color: rgba(74, 157, 255, 0.9);
}

body.light-theme .plan-name {
    color: var(--accent);
}

body.light-theme .total-amount {
    color: var(--accent);
}

body.light-theme .price-value {
    color: #1A202C;
}

body.light-theme .total-label {
    color: #1A202C;
}

body.light-theme .order-plan {
    background: rgba(255, 255, 255, 0.5);
}

body.light-theme .form-input {
    background: rgba(255, 255, 255, 0.5);
    border-color: rgba(74, 157, 255, 0.2);
    color: #1A202C;
}

body.light-theme .form-input:focus {
    background: rgba(255, 255, 255, 0.7);
}

body.light-theme .crypto-option {
    background: rgba(255, 255, 255, 0.5);
}

body.light-theme .crypto-option:hover,
body.light-theme .crypto-option.selected {
    background: rgba(0, 162, 255, 0.1);
}

body.light-theme .crypto-name {
    color: #1A202C;
}

body.light-theme .qr-payment {
    background: rgba(255, 255, 255, 0.5);
}

body.light-theme .qr-code {
    border: 2px solid var(--accent);
}

body.light-theme .card-icon {
    background: rgba(255, 255, 255, 0.5);
    color: #4A5568;
}

body.light-theme .modal-content {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.97), rgba(240, 245, 255, 0.95));
}

body.light-theme .modal-info {
    background: rgba(255, 255, 255, 0.5);
}

body.light-theme .modal-info strong {
    color: #1A202C;
}

body.light-theme .login-info {
    background: rgba(0, 162, 255, 0.1);
    border-color: rgba(0, 162, 255, 0.3);
}

body.light-theme .login-info strong {
    color: var(--accent);
}

body.light-theme .crypto-address-box {
    background: rgba(255, 255, 255, 0.5);
}

body.light-theme .crypto-address-box code {
    color: var(--accent);
}

body.light-theme .modal-btn.secondary {
    color: #1A202C;
}

body.light-theme footer {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(240, 245, 255, 0.85));
    color: var(--primary-dark);
}

body.light-theme footer:hover {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(240, 245, 255, 0.9));
}

/* ===== АДАПТИВНОСТЬ ===== */
@media (max-width: 992px) {
    .hero-title {
        font-size: 36px;
    }
    
    .section-title {
        font-size: 30px;
    }
    
    .profile-wrapper {
        padding: 30px 20px;
    }
}

@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        text-align: center;
    }
    
    .payment-content {
        flex-direction: column;
    }
    
    .payment-tabs {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .payment-tab {
        flex: 1 1 auto;
        justify-content: center;
        padding: 10px 12px;
        font-size: 0.9rem;
    }
    
    .card-details {
        grid-template-columns: 1fr;
    }
    
    .crypto-options {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .qr-code {
        width: 150px;
        height: 150px;
        font-size: 4rem;
    }
    
    .theme-switcher-container {
        position: relative;
    }
    
    .theme-switcher {
        display: none;
    }
    
    .mobile-theme-toggle {
        display: block;
        position: fixed;
        bottom: 20px;
        right: 20px;
        z-index: 1000;
    }
    
    .modal-content {
        padding: 30px 20px;
    }
    
    .modal-title {
        font-size: 1.5rem;
    }
    
    .qr-code-large {
        width: 200px;
        height: 200px;
        font-size: 5rem;
    }
    
    .modal-buttons {
        flex-direction: column;
    }
    
    .modal-btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    main {
        padding: 20px 16px;
    }
    
    .profile-wrapper {
        padding: 20px 15px;
    }
    
    .hero-title {
        font-size: 28px;
    }
    
    .hero-subtitle {
        font-size: 16px;
    }
    
    .section-title {
        font-size: 24px;
    }
    
    .order-summary,
    .payment-methods {
        padding: 20px 15px;
    }
    
    .payment-tab {
        padding: 8px 10px;
        font-size: 0.85rem;
    }
    
    .payment-tab i {
        font-size: 1rem;
    }
    
    .crypto-option {
        padding: 12px 5px;
    }
    
    .crypto-icon {
        font-size: 1.8rem;
    }
    
    .crypto-name {
        font-size: 0.8rem;
    }
}

/* Улучшения для touch-устройств */
@media (hover: none) and (pointer: coarse) {
    .btn:hover,
    .subs-link:hover,
    .payment-tab:hover,
    .crypto-option:hover {
        transform: none;
    }
    
    .btn:active,
    .subs-link:active {
        transform: scale(0.98);
    }
    
    .payment-tab:active {
        background: rgba(74, 157, 255, 0.1);
    }
    
    .crypto-option:active {
        transform: translateY(-2px);
    }
}

/* Экстремально маленькие экраны (включая 320x320) */
@media (max-width: 360px), (max-height: 360px) {
    main {
        padding: 12px 10px;
    }

    .profile-wrapper {
        padding: 14px 10px;
    }

    .hero-title {
        font-size: 22px;
        line-height: 1.2;
    }

    .hero-subtitle {
        font-size: 14px;
    }

    .payment-content {
        gap: 12px;
    }

    .order-summary,
    .payment-methods {
        padding: 14px 10px;
    }

    .section-title {
        font-size: 20px;
    }

    .payment-tabs {
        gap: 8px;
    }

    .payment-tab {
        width: 100%;
        padding: 9px 10px;
        font-size: 12px;
    }

    .payment-tab i {
        font-size: 14px;
    }

    .form-input,
    .btn,
    .subs-link {
        font-size: 14px;
    }

    .crypto-options {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .qr-code {
        width: 130px;
        height: 130px;
    }

    .modal-content {
        padding: 16px 12px;
        max-height: 90vh;
        overflow-y: auto;
    }
}

/* =====    (override) ===== */
.star,
.star2,
.star3 {
    display: none !important;
}

.stars,
.stars2,
.stars3 {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    will-change: transform, opacity;
    transform: translateZ(0);
    contain: strict;
}

.stars {
    opacity: 0.45;
    background-image:
        radial-gradient(1px 1px at 12% 18%, rgba(255, 255, 255, 0.9) 99%, transparent 100%),
        radial-gradient(1px 1px at 78% 22%, rgba(255, 255, 255, 0.85) 99%, transparent 100%),
        radial-gradient(1px 1px at 34% 68%, rgba(255, 255, 255, 0.75) 99%, transparent 100%);
    background-size: 340px 340px, 480px 480px, 620px 620px;
    background-repeat: repeat;
    animation: skyDriftSlow 140s linear infinite;
}

.stars2 {
    opacity: 0.28;
    background-image:
        radial-gradient(1.5px 1.5px at 16% 42%, rgba(74, 157, 255, 0.85) 99%, transparent 100%),
        radial-gradient(1.5px 1.5px at 66% 76%, rgba(74, 157, 255, 0.7) 99%, transparent 100%);
    background-size: 620px 620px, 900px 900px;
    background-repeat: repeat;
    animation: skyDriftMedium 220s linear infinite reverse;
}

.stars3 {
    opacity: 0.22;
    background-image: radial-gradient(2px 2px at 22% 30%, rgba(0, 255, 197, 0.6) 99%, transparent 100%);
    background-size: 1200px 1200px;
    background-repeat: repeat;
    animation: skyDriftFar 320s linear infinite;
}

@keyframes skyDriftSlow {
    from { transform: translate3d(0, 0, 0); }
    to { transform: translate3d(-72px, -120px, 0); }
}

@keyframes skyDriftMedium {
    from { transform: translate3d(0, 0, 0); }
    to { transform: translate3d(60px, -90px, 0); }
}

@keyframes skyDriftFar {
    from { transform: translate3d(0, 0, 0); }
    to { transform: translate3d(-40px, -56px, 0); }
}

@media (prefers-reduced-motion: reduce) {
    .stars,
    .stars2,
    .stars3 {
        animation: none !important;
        transform: none !important;
    }
}
