/* ====== SUBSCRIPTION PLANS ====== */

/* карточка тарифа — базовый вид как было */
.plan-card {
    border-radius: 16px;
    border: 1px solid var(--rz-base-200, #e5e7eb);
    padding: 16px;
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
    background: rgba(255, 255, 255, 0.94); /* стекло, но почти белое */
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
}

.plan-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.14);
}

.plan-card.current {
    border-color: var(--rz-warning-600, #d97706);
    box-shadow: 0 0 0 3px rgba(234, 179, 8, .18);
}

/* тёмная тема для карточки */
:root[data-theme="dark"] .plan-card {
    background: rgba(15, 23, 42, 0.96);
    border-color: rgba(148, 163, 184, 0.65);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.9);
}

/* хедер, заголовок, бейджи — как было */

.plan-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 6px;
}

.plan-title {
    font-size: 18px;
    font-weight: 800;
    margin: 0;
    letter-spacing: .2px;
    color: var(--rlv-text-main, #111827);
}

:root[data-theme="dark"] .plan-title {
    color: rgba(248, 250, 252, 0.98);
}

.badge-chip {
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 12px;
    line-height: 18px;
    color: #fff;
}

.badge-best {
    background: var(--rz-primary-600, #2563eb);
}

.badge-current {
    background: var(--rz-warning-600, #d97706);
    margin-left: 6px;
}

/* цена + период */

.plan-price {
    font-size: 26px;
    font-weight: 900;
    margin: 6px 0 2px;
    color: var(--rlv-text-main, #111827);
}

:root[data-theme="dark"] .plan-price {
    color: rgba(248, 250, 252, 0.98);
}

.plan-period {
    font-size: 12px;
    opacity: .7;
    font-weight: 600;
    margin-left: 4px;
}

/* краткое описание внутри серой «плашки» */

.plan-desc {
    font-size: 13px;
    opacity: .95;
    background: var(--rz-base-100, #f3f4f6);
    padding: 8px 10px;
    border-radius: 10px;
    margin: 8px 0 10px;
    color: var(--rlv-text-soft, #4b5563);
}

:root[data-theme="dark"] .plan-desc {
    background: rgba(31, 41, 55, 0.96);
    color: rgba(229, 231, 235, 0.98);
}

/* список фич */

.features {
    margin: 0;
    padding: 0;
    list-style: none;
}

.feature {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    margin: 6px 0;
    font-size: 14px;
    color: var(--rlv-text-main, #111827);
}

:root[data-theme="dark"] .feature {
    color: rgba(229, 231, 235, 0.98);
}

.feature .icon {
    margin-top: 2px;
}

/* мелкий текст */

.muted {
    font-size: 12px;
    opacity: .8;
    color: var(--rlv-text-soft, #4b5563);
}

:root[data-theme="dark"] .muted {
    color: rgba(156, 163, 175, 0.96);
}

/* CTA-кнопка внутри карточки */

.plan-cta {
    width: 100%;
    margin-top: 12px;
}

/* карточка тарифа */
.plan-card {
    border-radius: 16px;
    border: 1px solid var(--rz-base-200, #e5e7eb);
    padding: 16px;
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
    display: flex;
    flex-direction: column;
}

/* контентная часть, растягивается */
.plan-body {
    flex: 1 1 auto;
}

/* кнопка внизу */
.plan-cta {
    width: 100%;
    margin-top: 12px;
}

/* ====== ОБЩАЯ ОБЁРТКА ДИАЛОГОВ ПОДПИСКИ ====== */

/* ====== SUBSCRIPTION DIALOGS COMMON ====== */

.subscription-dialog-shell {
    padding: 6px 0 0; /* контент уже внутри rz-dialog-content */
    font-size: 0.95rem;
    line-height: 1.55;
    color: var(--rlv-text-main, #111827);
}

:root[data-theme="dark"] .subscription-dialog-shell {
    color: rgba(229, 231, 235, 0.98);
}

.subscription-dialog-title {
    margin: 4px 0 10px;
    font-size: 1.02rem;
    font-weight: 600;
}

/* блок с кнопками внизу каждого subscription-диалога */
.subscription-dialog-actions {
    margin-top: 16px;
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}


/* ====== ДИАЛОГ ОПЛАТЫ ====== */

.subscription-payment-title {
    margin-bottom: 10px;
}

.subscription-payment-old {
    text-decoration: line-through;
    opacity: 0.65;
    margin-right: 6px;
}

.subscription-payment-final {
    font-weight: 700;
    margin-right: 6px;
}

.subscription-payment-discount {
    font-size: 0.9rem;
    color: #059669;
}

/* коробка с реквизитами */
.subscription-details-box {
    margin: 6px 0 10px;
    padding: 10px 12px;
    border-radius: 12px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 0.86rem;
    white-space: pre-wrap;
    background: #0f172a;
    color: #e5e7eb;
}

:root[data-theme="dark"] .subscription-details-box {
    background: #020617;
    color: #e5e7eb;
}


/* ====== ДИАЛОГ РЕЗИДЕНТСТВА ====== */

.subscription-residency-list {
    width: 100%;
    margin-top: 4px;
}

/* чтобы подписи радиокнопок читались в тёмной теме */
.subscription-residency-list .rz-radiobutton-label {
    color: inherit;
}


/* чуть сгладим список */
.subscription-residency .rz-radiobutton {
    margin-right: 6px;
}

/* ====== ДИАЛОГ HOW-TO ====== */

.subscription-howto-list {
    padding-left: 18px;
    margin: 8px 0 12px;
}

.subscription-howto-list li {
    margin-bottom: 8px;
}

.subscription-faq-item {
    margin: 4px 0;
    padding: 6px 0;
    border-top: 1px solid rgba(148, 163, 184, 0.25);
}

.subscription-faq-item:last-of-type {
    border-bottom: 1px solid rgba(148, 163, 184, 0.25);
}

.subscription-faq-item > summary {
    cursor: pointer;
    list-style: none;
}

.subscription-faq-item > summary::-webkit-details-marker {
    display: none;
}

.subscription-faq-body {
    font-size: 0.9rem;
    opacity: 0.95;
    margin-top: 4px;
}

:root[data-theme="dark"] .subscription-faq-body {
    opacity: 0.98;
}

