/* ==========================================================================
   SULVPN - Тарифные планы (tarifs.css)
   Премиальный темный интерфейс с глассморфизмом, неоновыми акцентами и анимацией
   ========================================================================== */

/* Страничный контейнер и фон */
.tarifs-page-wrapper {
    position: relative;
    min-height: calc(100vh - 140px);
    overflow: hidden;
    background: radial-gradient(circle at 50% 15%, rgba(30, 27, 75, 0.45) 0%, transparent 75%);
}

.tarifs-bg-wrapper {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.tarifs-bg-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    opacity: 0.85;
}

.tarifs-grid-overlay {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: radial-gradient(ellipse 70% 60% at 50% 25%, black 20%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 25%, black 20%, transparent 80%);
    z-index: 2;
}

/* Плавающие неоновые сферы */
.tarifs-glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(95px);
    pointer-events: none;
    opacity: 0.4;
    mix-blend-mode: screen;
    will-change: transform;
}

.orb-1 {
    width: 480px;
    height: 480px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.6) 0%, transparent 70%);
    top: 5%;
    left: 15%;
    animation: floatOrb1 18s ease-in-out infinite alternate;
}

.orb-2 {
    width: 420px;
    height: 420px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.5) 0%, transparent 70%);
    bottom: 10%;
    right: 15%;
    animation: floatOrb2 22s ease-in-out infinite alternate;
}

.orb-3 {
    width: 340px;
    height: 340px;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.4) 0%, transparent 70%);
    top: 40%;
    right: 30%;
    animation: floatOrb3 15s ease-in-out infinite alternate;
}

@keyframes floatOrb1 {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(65px, 40px) scale(1.12); }
    100% { transform: translate(-45px, -35px) scale(0.95); }
}

@keyframes floatOrb2 {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-55px, -45px) scale(1.1); }
    100% { transform: translate(45px, 30px) scale(0.92); }
}

@keyframes floatOrb3 {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(45px, -35px) scale(1.15); }
    100% { transform: translate(-35px, 40px) scale(0.88); }
}

.tarifs-container {
    position: relative;
    z-index: 3;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2.25rem 1.25rem 5rem;
}

/* Шапка страницы */
.tarifs-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem;
}

.tarifs-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.45rem 1.15rem;
    background: rgba(99, 102, 241, 0.12);
    border: 1px solid rgba(99, 102, 241, 0.35);
    border-radius: 9999px;
    color: #a5b4fc;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(8px);
}

.badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

.badge-dot.green {
    background: #10b981;
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.8);
    animation: badgePulse 2s infinite;
}

@keyframes badgePulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.3); opacity: 0.7; }
    100% { transform: scale(1); opacity: 1; }
}

.tarifs-title {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #ffffff 40%, #a5b4fc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
}

.tarifs-subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0 auto 2rem;
    max-width: 620px;
}

/* Алерты */
.tarifs-alert {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    border-radius: 14px;
    margin: 0 auto 1.75rem;
    max-width: 540px;
    text-align: left;
    backdrop-filter: blur(8px);
    font-size: 0.95rem;
}

.tarifs-alert.success {
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.35);
    color: #6ee7b7;
}

.tarifs-alert.danger {
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.35);
    color: #fca5a5;
}

.tarifs-alert.info {
    background: rgba(99, 102, 241, 0.12);
    border: 1px solid rgba(99, 102, 241, 0.35);
    color: #c7d2fe;
}

/* Общие фичи сервиса */
.common-features {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.85rem;
    margin-top: 1rem;
}

.common-feature-chip {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    padding: 0.55rem 1.15rem;
    border-radius: 9999px;
    color: var(--text-secondary);
    font-size: 0.88rem;
    font-weight: 500;
}

.chip-icon {
    font-size: 1.1rem;
}

/* ==========================================================================
   ПРОМОКОД
   ========================================================================== */
.promo-section {
    max-width: 540px;
    margin: 0 auto 3.5rem;
}

.promo-card {
    background: rgba(17, 24, 39, 0.75);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 1.35rem 1.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.promo-card-header {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 1rem;
}

.promo-header-icon {
    font-size: 1.3rem;
}

.promo-header-title {
    font-weight: 700;
    font-size: 1.05rem;
    color: #ffffff;
}

.promo-input-group {
    display: flex;
    gap: 0.65rem;
}

.promo-input {
    flex: 1;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    padding: 0.8rem 1.1rem;
    color: #ffffff;
    font-size: 0.95rem;
    outline: none;
    transition: all 0.2s ease;
}

.promo-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.3);
}

.btn-promo {
    padding: 0.8rem 1.5rem;
    font-size: 0.95rem;
    border-radius: 12px;
}

.promo-success-banner {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin-top: 0.85rem;
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.35);
    border-radius: 12px;
    padding: 0.7rem 1rem;
    color: #6ee7b7;
    font-size: 0.9rem;
    font-weight: 500;
}

.promo-check {
    font-weight: 800;
    font-size: 1.1rem;
}

.btn-remove-promo {
    background: none;
    border: none;
    color: #6ee7b7;
    font-size: 1.3rem;
    cursor: pointer;
    margin-left: auto;
    padding: 0 0.25rem;
    transition: color 0.2s ease;
}

.btn-remove-promo:hover {
    color: #f87171;
}

/* ==========================================================================
   СЕТКА ТАРИФНЫХ ПЛАНОВ
   ========================================================================== */
.tarifs-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
    gap: 1.75rem;
    margin-bottom: 5rem;
    align-items: stretch;
}

.tarif-card {
    position: relative;
    background: rgba(17, 24, 39, 0.78);
    backdrop-filter: blur(18px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 2.2rem 1.85rem;
    display: flex;
    flex-direction: column;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.tarif-card:hover {
    transform: translateY(-5px);
    border-color: rgba(99, 102, 241, 0.4);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.6), 0 0 25px rgba(99, 102, 241, 0.15);
}

/* Популярный тариф */
.tarif-card.popular {
    border: 1.5px solid rgba(99, 102, 241, 0.6);
    background: linear-gradient(180deg, rgba(24, 28, 55, 0.85) 0%, rgba(17, 24, 39, 0.85) 100%);
    box-shadow: 0 15px 40px -5px rgba(99, 102, 241, 0.3), 0 0 20px rgba(99, 102, 241, 0.2);
}

.tarif-card.popular:hover {
    border-color: #818cf8;
    box-shadow: 0 25px 55px -5px rgba(99, 102, 241, 0.45), 0 0 35px rgba(99, 102, 241, 0.3);
}

/* Верхний плавающий бейдж */
.card-top-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.35rem 1rem;
    border-radius: 9999px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    white-space: nowrap;
}

.popular-badge {
    background: linear-gradient(135deg, var(--primary-color), #818cf8);
    color: white;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.5);
}

.demo-badge {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
}

/* Заголовок тарифа */
.tarif-card-header {
    text-align: center;
    margin-bottom: 1.25rem;
}

.tarif-card-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: #ffffff;
    margin: 0;
}

/* Блок цены */
.tarif-price-block {
    text-align: center;
    padding: 1.25rem 0 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    margin-bottom: 1.5rem;
}

.price-value-row {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.4rem;
    margin-bottom: 0.35rem;
}

.price-amount {
    font-size: 2.9rem;
    font-weight: 900;
    color: #ffffff;
    line-height: 1;
    letter-spacing: -0.02em;
}

.price-amount.free {
    font-size: 2.2rem;
    color: #34d399;
}

.price-currency {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-muted);
}

.price-duration-pill {
    display: inline-block;
    font-size: 0.85rem;
    color: #a5b4fc;
    background: rgba(99, 102, 241, 0.1);
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-weight: 600;
}

.price-discount-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    margin-top: 0.6rem;
}

.price-original {
    color: var(--text-muted);
    font-size: 1rem;
    text-decoration: line-through;
}

.discount-percent-tag {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.3);
    padding: 0.15rem 0.5rem;
    border-radius: 6px;
    font-size: 0.78rem;
    font-weight: 700;
}

/* Параметры тарифа */
.tarif-specs-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.spec-chip {
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 0.75rem 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.spec-icon {
    font-size: 1.4rem;
}

.spec-text {
    display: flex;
    flex-direction: column;
}

.spec-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 0.5px;
    font-weight: 600;
}

.spec-val {
    font-size: 0.95rem;
    font-weight: 700;
    color: #f3f4f6;
}

/* Фичи */
.tarif-features-box {
    flex: 1;
    margin-bottom: 1.75rem;
}

.tarif-features-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

.tarif-feature-item {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    font-size: 0.92rem;
    color: var(--text-secondary);
}

.feature-check {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 800;
    flex-shrink: 0;
}

/* Кнопка */
.tarif-card-footer {
    margin-top: auto;
}

.tarif-action-btn {
    padding: 0.95rem 1.5rem;
    font-size: 1.05rem;
    border-radius: 14px;
    font-weight: 700;
}

.tarif-card.popular .tarif-action-btn {
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.45);
}

/* ==========================================================================
   FAQ (В спойлере)
   ========================================================================== */
.tarifs-faq-section {
    margin-top: 3.5rem;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.faq-spoiler {
    background: rgba(17, 24, 39, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-spoiler:hover {
    border-color: rgba(99, 102, 241, 0.3);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.35);
}

.faq-spoiler[open] {
    border-color: rgba(99, 102, 241, 0.4);
    box-shadow: 0 16px 40px rgba(99, 102, 241, 0.12), 0 12px 36px rgba(0, 0, 0, 0.35);
}

.faq-spoiler-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.75rem;
    cursor: pointer;
    user-select: none;
    list-style: none;
    transition: background 0.2s ease;
}

.faq-spoiler-summary::-webkit-details-marker {
    display: none;
}

.faq-spoiler-summary:hover {
    background: rgba(255, 255, 255, 0.02);
}

.faq-spoiler-title {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.15rem;
    font-weight: 700;
    color: #ffffff;
}

.faq-spoiler-icon {
    font-size: 1.3rem;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.faq-spoiler-status {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    color: #94a3b8;
    font-size: 0.88rem;
    font-weight: 500;
}

.faq-spoiler:not([open]) .faq-spoiler-hint::before {
    content: "Показать ответы";
}

.faq-spoiler[open] .faq-spoiler-hint::before {
    content: "Скрыть ответы";
}

.faq-spoiler-arrow {
    stroke: #818cf8;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-spoiler[open] .faq-spoiler-arrow {
    transform: rotate(180deg);
}

.faq-spoiler-content {
    padding: 0 1.75rem 1.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 1.5rem;
    animation: spoilerFadeIn 0.35s ease;
}

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

.tarifs-faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.25rem;
}

.faq-card {
    background: rgba(13, 19, 32, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 14px;
    padding: 1.25rem;
    transition: all 0.25s ease;
}

.faq-card:hover {
    border-color: rgba(99, 102, 241, 0.3);
    background: rgba(13, 19, 32, 0.85);
    transform: translateY(-2px);
}

.faq-question {
    font-size: 0.98rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.faq-answer {
    color: var(--text-secondary);
    font-size: 0.88rem;
    line-height: 1.55;
    margin: 0;
}

/* ==========================================================================
   МОДАЛЬНЫЕ ОКНА ОПЛАТЫ
   ========================================================================== */
.payment-methods-modal,
.payment-processing-modal {
    display: none;
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    z-index: 1200;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
}

.payment-methods-modal.active,
.payment-processing-modal.active {
    display: flex;
}

.payment-methods-content,
.payment-processing-content {
    background: rgba(17, 24, 39, 0.96);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 24px;
    width: 100%;
    max-width: 520px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6), 0 0 35px rgba(99, 102, 241, 0.15);
    animation: modalPop 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalPop {
    from { opacity: 0; transform: scale(0.95) translateY(12px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.payment-methods-header,
.payment-processing-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.payment-methods-header h2,
.payment-methods-header h3,
.payment-processing-header h2,
.payment-processing-header h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.01em;
}

.modal-close {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    transform: scale(1.05);
}

/* Информация о выбранном тарифе */
.selected-plan-info {
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.25);
    border-radius: 14px;
    padding: 1rem 1.25rem;
    margin: 1.25rem 1.75rem 0.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.info-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

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

.info-value {
    font-size: 0.95rem;
    font-weight: 700;
    color: #ffffff;
}

.price-highlight {
    color: #a5b4fc;
    font-size: 1.15rem;
}

.payment-methods-body,
.payment-processing-body {
    padding: 1.25rem 1.75rem 1.75rem;
}

/* Состояния загрузки модальных окон */
.payment-methods-loading,
.payment-processing-loading {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 3rem 1.5rem;
    gap: 1.15rem;
}

.payment-methods-loading p,
.payment-processing-loading p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin: 0;
}

.loading-spinner {
    width: 48px;
    height: 48px;
    border: 3.5px solid rgba(255, 255, 255, 0.1);
    border-top-color: #6366f1;
    border-radius: 50%;
    animation: spin 0.85s linear infinite;
    margin: 0 auto;
}

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

/* Список методов оплаты */
.payment-methods-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-height: 320px;
    overflow-y: auto;
    margin-bottom: 1.5rem;
    padding-right: 4px;
}

.empty-payment-methods {
    text-align: center;
    padding: 2.5rem 1rem;
    color: var(--text-muted);
}

.empty-icon {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
}

.payment-method-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.9rem 1.1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.payment-method-item:hover {
    border-color: rgba(99, 102, 241, 0.4);
    background: rgba(99, 102, 241, 0.08);
}

.payment-method-item.selected {
    border-color: var(--primary-color);
    background: rgba(99, 102, 241, 0.15);
    box-shadow: 0 0 16px rgba(99, 102, 241, 0.25);
}

.method-select {
    display: flex;
    align-items: center;
}

.method-select input[type="radio"] {
    accent-color: #6366f1;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.method-info {
    flex: 1;
}

.method-label {
    display: flex;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
    width: 100%;
    margin: 0;
}

.method-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    flex-shrink: 0;
}

.method-icon-img {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    object-fit: contain;
    background: rgba(255, 255, 255, 0.05);
    padding: 3px;
}

.method-details {
    flex: 1;
}

.method-name {
    font-weight: 700;
    font-size: 0.98rem;
    color: #ffffff;
    margin-bottom: 0.2rem;
}

.method-description {
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.35;
}

.method-currencies {
    font-size: 0.74rem;
    color: #818cf8;
    margin-top: 0.2rem;
    font-weight: 500;
}

.payment-methods-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* ==========================================================================
   КОНТЕНТ ОБРАБОТКИ ПЛАТЕЖА (processingContent / payment-content)
   ========================================================================== */
.payment-content {
    display: none;
    width: 100%;
}

.payment-result {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
    padding: 0.25rem 0;
}

.payment-result .result-icon {
    width: 68px;
    height: 68px;
    margin: 0.25rem auto 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.25rem;
    line-height: 1;
    border-radius: 50%;
    flex-shrink: 0;
}

.payment-result.success .result-icon {
    background: rgba(16, 185, 129, 0.14);
    border: 1.5px solid rgba(16, 185, 129, 0.4);
    box-shadow: 0 0 25px rgba(16, 185, 129, 0.25);
    color: #10b981;
}

.payment-result.error .result-icon {
    background: rgba(239, 68, 68, 0.14);
    border: 1.5px solid rgba(239, 68, 68, 0.4);
    box-shadow: 0 0 25px rgba(239, 68, 68, 0.25);
    color: #ef4444;
}

.payment-result h3 {
    font-size: 1.35rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 0.5rem 0;
    line-height: 1.35;
    text-align: center;
}

.payment-result > p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0 0 1.5rem 0;
    text-align: center;
}

/* Детали платежа при успехе */
.payment-details {
    background: rgba(13, 19, 32, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    padding: 0.5rem 1.25rem;
    margin: 0 0 1.5rem 0;
    text-align: left;
    width: 100%;
    box-sizing: border-box;
}

.payment-details .detail-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 0.85rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    gap: 1.25rem;
    min-height: 24px;
    box-sizing: border-box;
}

.payment-details .detail-item:last-child {
    border-bottom: none;
}

.payment-details .detail-label {
    color: #94a3b8;
    font-size: 0.88rem;
    font-weight: 500;
    flex: 0 0 auto;
    max-width: 48%;
    line-height: 1.45;
}

.payment-details .detail-value {
    color: #ffffff;
    font-size: 0.92rem;
    font-weight: 600;
    text-align: right;
    flex: 1 1 auto;
    min-width: 0;
    word-break: break-all;
    overflow-wrap: anywhere;
    line-height: 1.45;
}

.payment-link {
    display: inline-block;
    color: #818cf8;
    text-decoration: underline;
    font-weight: 600;
    word-break: break-all;
    overflow-wrap: anywhere;
    line-height: 1.45;
    transition: color 0.2s ease;
}

.payment-link:hover {
    color: #a5b4fc;
}

/* Блок деталей ошибки */
.payment-result .error-details {
    text-align: left;
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: 16px;
    padding: 1.25rem;
    margin: 0 0 1.5rem 0;
    width: 100%;
    box-sizing: border-box;
}

.payment-result .error-details p {
    margin: 0 0 0.65rem 0;
    color: #fca5a5;
    font-size: 0.9rem;
    font-weight: 600;
}

.payment-result .error-details ul {
    margin: 0;
    padding-left: 1.25rem;
}

.payment-result .error-details li {
    color: var(--text-secondary);
    font-size: 0.88rem;
    margin-bottom: 0.45rem;
    line-height: 1.45;
}

.payment-result .error-details li:last-child {
    margin-bottom: 0;
}

/* Кнопки действий после создания платежа (вертикальный стек) */
.result-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
    margin: 0 0 1.25rem 0;
    box-sizing: border-box;
}

.result-actions .btn {
    width: 100%;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0.95rem 1.25rem;
    border-radius: 14px;
    font-weight: 600;
    font-size: 1rem;
    line-height: 1.4;
    min-height: 48px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.payment-note {
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    width: 100%;
    box-sizing: border-box;
}

.payment-note p {
    color: #64748b;
    font-size: 0.82rem;
    margin: 0;
    line-height: 1.5;
    text-align: center;
}

/* Стили кнопок для модальных окон */
.btn-primary {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    color: #ffffff !important;
    border: none;
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.35);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #4f46e5 0%, #4338ca 100%);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.5);
    transform: translateY(-2px);
}

.btn-outline {
    background: rgba(255, 255, 255, 0.04);
    color: #a5b4fc !important;
    border: 1px solid rgba(99, 102, 241, 0.4);
}

.btn-outline:hover {
    background: rgba(99, 102, 241, 0.12);
    border-color: #818cf8;
    color: #ffffff !important;
    transform: translateY(-2px);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-secondary) !important;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff !important;
    transform: translateY(-2px);
}

.btn-lg {
    padding: 0.95rem 1.5rem;
    font-size: 1.05rem;
}

/* ==========================================================================
   АДАПТИВНОСТЬ
   ========================================================================== */
@media (max-width: 768px) {
    .tarifs-container {
        padding: 2rem 1rem 3.5rem;
    }

    .tarifs-title {
        font-size: 2.2rem;
    }

    .tarifs-subtitle {
        font-size: 1rem;
    }

    .common-features {
        flex-direction: column;
        align-items: stretch;
    }

    .common-feature-chip {
        justify-content: center;
    }

    .promo-input-group {
        flex-direction: column;
    }

    .btn-promo {
        width: 100%;
    }

    .tarifs-cards-grid {
        grid-template-columns: 1fr;
    }

    .tarifs-faq-grid {
        grid-template-columns: 1fr;
    }

    .orb-1 {
        width: 260px;
        height: 260px;
    }

    .orb-2 {
        width: 220px;
        height: 220px;
    }

    .orb-3 {
        display: none;
    }
}