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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background: var(--bg-main, #f8fafc);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    color: var(--text-main, #1e293b);
    -webkit-font-smoothing: antialiased;
}

/* ========== Глассморфизм Контейнер ========== */
.payment-container {
    background: var(--card-bg, #ffffff);
    border: 1px solid var(--border-color, rgba(0, 0, 0, 0.05));
    border-radius: 24px;
    padding: 40px 30px;
    max-width: 420px;
    width: 100%;
    box-shadow: var(--shadow-sm, 0 10px 40px -10px rgba(0, 0, 0, 0.08));
    text-align: center;
}

.lock-icon {
    font-size: 42px;
    margin-bottom: 15px;
    filter: drop-shadow(0 4px 10px rgba(0,0,0,0.05));
}

.payment-title {
    font-size: 26px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 10px;
    letter-spacing: -0.5px;
}

/* ========== Цена ========== */
.price-block {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 8px;
    margin-bottom: 25px;
}

.price-amount {
    font-size: 42px;
    font-weight: 800;
    background: linear-gradient(to right, #3b82f6, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.price-period {
    font-size: 16px;
    color: #64748b;
    font-weight: 500;
}

/* ========== Реквизиты ========== */
.bank-details {
    background: #f1f5f9;
    border: 1px solid rgba(0, 0, 0, 0.03);
    border-radius: 16px;
    padding: 20px;
    margin: 25px 0;
    text-align: left;
}

.bank-details-title {
    font-size: 14px;
    font-weight: 700;
    color: #64748b;
    margin-bottom: 15px;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.bank-row {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    font-size: 14px;
}

.bank-row:last-child {
    margin-bottom: 0;
}

.bank-label {
    color: #64748b;
    min-width: 90px;
    font-size: 13px;
    font-weight: 500;
}

.bank-value {
    color: #1e293b;
    font-weight: 600;
    flex: 1;
}

.after-payment-title {
    font-size: 14px;
    color: #475569;
    margin-bottom: 15px;
    font-weight: 500;
}

/* ========== Кнопки мессенджеров ========== */
.messenger-buttons {
    display: flex;
    gap: 12px;
    margin: 0 0 25px 0;
}

.messenger-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 12px;
    border: none;
    border-radius: 14px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    line-height: 1.3;
}

.whatsapp-btn {
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.whatsapp-btn:hover {
    background: #10b981;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 16px -6px rgba(16, 185, 129, 0.4);
}

.telegram-btn {
    background: rgba(59, 130, 246, 0.1);
    color: #2563eb;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.telegram-btn:hover {
    background: #3b82f6;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 16px -6px rgba(59, 130, 246, 0.4);
}

/* ========== Разделитель ========== */
.divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0,0,0,0.05), transparent);
    margin: 25px 0;
}

/* ========== Переключатель активации ========== */
.activation-toggle {
    background: transparent;
    border: none;
    color: #64748b;
    font-size: 14px;
    cursor: pointer;
    padding: 10px 20px;
    border-radius: 12px;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}

.activation-toggle:hover {
    background: #f1f5f9;
    color: #1e293b;
}

.toggle-arrow {
    font-size: 10px;
    transition: transform 0.3s;
}

/* ========== Блок активации ========== */
.activation-section {
    margin-top: 20px;
    text-align: left;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    opacity: 1;
}

.activation-section.hidden {
    display: none;
    opacity: 0;
}

.activation-title {
    font-size: 13px;
    font-weight: 700;
    color: #64748b;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.device-id-block {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f1f5f9;
    border: 1px solid rgba(0,0,0,0.03);
    border-radius: 12px;
    padding: 14px 16px;
    margin-bottom: 15px;
}

.device-id-text {
    font-family: 'Courier New', monospace;
    font-size: 15px;
    color: #334155;
    word-break: break-all;
    flex: 1;
    font-weight: 600;
}

.copy-btn {
    background: #e2e8f0;
    border: none;
    padding: 8px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #475569;
    transition: all 0.2s;
}

.copy-btn:hover {
    background: #cbd5e1;
    color: #1e293b;
}

.copy-feedback {
    font-size: 12px;
    color: #10b981;
    margin-top: -10px;
    margin-bottom: 15px;
    display: none;
    text-align: center;
    font-weight: 600;
}

.activation-instruction {
    font-size: 13px;
    color: #64748b;
    margin: 0 0 12px 0;
    line-height: 1.5;
}

.key-input-block {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.key-input {
    flex: 1;
    padding: 14px 16px;
    background: #f1f5f9;
    border: 1px solid rgba(0,0,0,0.05);
    border-radius: 12px;
    font-size: 15px;
    font-family: 'Courier New', monospace;
    color: #1e293b;
    text-transform: uppercase;
    transition: all 0.3s;
}

.key-input::placeholder {
    color: #94a3b8;
    text-transform: none;
    font-family: -apple-system, BlinkMacSystemFont, sans-serif;
}

.key-input:focus {
    outline: none;
    border-color: #60a5fa;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.2);
}

.activate-btn {
    padding: 14px 24px;
    background: linear-gradient(to right, #3b82f6, #8b5cf6);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
}

.activate-btn:hover {
    box-shadow: 0 8px 16px -6px rgba(139, 92, 246, 0.5);
    transform: translateY(-2px);
}

.activation-feedback {
    font-size: 13px;
    margin-top: 12px;
    min-height: 20px;
    text-align: center;
    font-weight: 600;
}

.activation-feedback.success { color: #10b981; }
.activation-feedback.error { color: #ec4899; }

/* ========== Кнопка назад ========== */
.back-btn {
    background: #f1f5f9;
    border: none;
    color: #475569;
    padding: 12px 20px;
    border-radius: 12px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 20px;
    font-weight: 600;
}

.back-btn:hover {
    color: #1e293b;
    background: #e2e8f0;
}

/* ========== Адаптив ========== */
@media (max-width: 480px) {
    .payment-container { padding: 30px 20px; }
    .price-amount { font-size: 36px; }
    .messenger-buttons { flex-direction: column; }
    .key-input-block { flex-direction: column; }
    .activate-btn { width: 100%; }
}
