/* Purchases: token packs, memberships & boosts, checkout, payment result, subscription and payment methods. */

/* Base text (16px, normal line height): keeps line boxes around icons consistent. */
.tokens-page, .plans-page, .checkout-page, .payres-page, .sub-page, .cards-page { font-size: 16px; line-height: normal; }

/* Page widths (inside .page-body) */
.tokens-page { max-width: 860px; }
.plans-page { max-width: 1080px; }
.checkout-page { max-width: 920px; }
.sub-page { max-width: 720px; }
.cards-page { max-width: 640px; }
.pricing-title { font-size: clamp(26px, 3.6vw, 34px); }
.billing-title { margin-bottom: 18px; }

/* Date-bounded platform promotion: one calm, explicit explanation near prices. */
.promotion-banner {
  display: flex; align-items: center; gap: 12px; margin: 0 0 20px; padding: 14px 16px;
  border: 1px solid var(--gold-line); border-radius: 16px; background: var(--gold-soft); color: var(--gold-ink);
}
.promotion-banner > i { flex: none; font-size: 24px; color: var(--gold); }
.promotion-banner div { min-width: 0; display: grid; gap: 2px; }
.promotion-banner strong { font: 600 14px/1.35 var(--font); }
.promotion-banner span { font: 400 12px/1.45 var(--font); overflow-wrap: anywhere; }
.token-pack__buy.is-busy, .plan-card__button.is-busy, .boost-option__button.is-busy { opacity: .6; pointer-events: none; }

/* --------------------------------------------------------------- tokens */
.tokens-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 8px; }
.tokens-head .page-title { margin: 0; }
.token-balance { display: flex; align-items: center; gap: 8px; background: #FFF3D6; border: 1px solid #F0DCA0; color: var(--gold-ink); font: 600 14px var(--font); padding: 9px 15px; border-radius: 999px; }
.token-balance > i { font-size: 17px; color: var(--gold); }
.tokens-head__aside { display: flex; align-items: center; gap: 6px 14px; flex-wrap: wrap; }
.tokens-history-link { display: inline-flex; align-items: center; gap: 6px; font: 600 14px var(--font); color: var(--brand); }
.tokens-history-link:hover { text-decoration: underline; }
.tokens-history-link i { font-size: 16px; }
.tokens-sub { font: 400 15px var(--font); color: var(--text-2); margin: 0 0 24px; }
.tokens-sub b { color: var(--ink); }
.tokens-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; }
.token-pack { position: relative; background: #fff; border: 1px solid rgba(43, 45, 66, .1); border-radius: 18px; padding: 22px 18px; text-align: center; box-shadow: 0 8px 20px rgba(194, 0, 0, .05); }
.token-pack.is-popular { border: 2px solid var(--brand); }
.token-pack__badge { position: absolute; top: -11px; left: 50%; transform: translateX(-50%); background: var(--brand); color: #fff; font: 600 10px var(--font); padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.token-pack__icon { font-size: 30px; color: var(--gold); }
.token-pack__amount { font: 600 26px var(--font); color: var(--ink); margin: 8px 0 0; }
.token-pack__sub { font: 400 12px var(--font); color: var(--text-3); margin-bottom: 4px; }
.token-pack__price { font: 600 18px var(--font); color: var(--brand); margin-bottom: 14px; }
.token-pack__buy { display: block; width: 100%; border: none; background: var(--brand); color: #fff; font: 600 14px var(--font); padding: 11px; border-radius: 11px; text-align: center; cursor: pointer; }
.pay-methods { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 26px; padding: 18px; background: #fff; border: 1px solid rgba(43, 45, 66, .06); border-radius: 16px; }
.pay-methods__label { font: 500 13px var(--font); color: var(--text-2); }
.pay-chip { background: #F4EEF1; border-radius: 7px; padding: 6px 11px; font: 600 12px var(--font); color: var(--text-4); }

/* ----------------------------------------------------------- membership */
.plans-intro { text-align: center; margin-bottom: 18px; }
.plans-intro .page-title { margin: 0 0 8px; }
.plans-intro__text { font: 400 15px var(--font); color: var(--text-2); margin: 0; }
.plans-periods { display: flex; justify-content: center; margin: 18px 0 26px; }
.plans-periods__track { display: inline-flex; gap: 4px; background: #F3ECE8; border-radius: 12px; padding: 4px; flex-wrap: wrap; }
.plans-period { border: none; background: transparent; box-shadow: none; font: 600 14px var(--font); color: var(--text-2); padding: 9px 16px; border-radius: 9px; cursor: pointer; }
.plans-period.is-active { background: #fff; color: var(--ink); box-shadow: 0 2px 6px rgba(43, 45, 66, .08); }
.plans-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; align-items: start; }
.plan-card { position: relative; background: #fff; border: 1px solid rgba(43, 45, 66, .1); border-radius: 18px; padding: 26px; box-shadow: 0 8px 20px rgba(43, 45, 66, .04); }
.plan-card.is-popular { border: 2px solid var(--brand); box-shadow: 0 20px 44px rgba(194, 0, 0, .14); }
.plan-card__badge { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--brand); color: #fff; font: 600 12px var(--font); padding: 5px 14px; border-radius: 999px; white-space: nowrap; }
.plan-card__name { font: 600 17px var(--font); color: var(--ink); }
.plan-card__price { font: 600 32px var(--font); color: var(--ink); margin: 10px 0 18px; letter-spacing: -.02em; }
.plan-card__price span { font: 400 15px var(--font); color: var(--text-3); }
.plan-card__features { display: flex; flex-direction: column; gap: 11px; margin: 0 0 22px; padding: 0; list-style: none; }
.plan-card__features li { display: flex; align-items: center; gap: 9px; font: 400 14px var(--font); color: #3C3B47; }
.plan-card__features i { font-size: 15px; color: var(--success); }
.plan-card__discount { margin: -10px 0 14px; font: 600 12px var(--font); color: var(--success-ink); }
.plan-card__button { display: block; width: 100%; font: 600 15px var(--font); padding: 13px; border-radius: 12px; text-align: center; cursor: pointer; }
.plan-card__button--primary { border: none; background: var(--brand); color: #fff; }
.plan-card__button--dark { border: none; background: var(--ink); color: #fff; }
.plan-card__button--light { border: 1.5px solid rgba(43, 45, 66, .16); background: #fff; color: var(--ink); }
.plan-card__button:disabled { opacity: .6; cursor: default; }
.boost-box { background: #fff; border: 1px solid rgba(43, 45, 66, .07); border-radius: 20px; padding: 24px; margin-top: 24px; scroll-margin-top: 90px; }
.boost-box__head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.boost-box__head > i { font-size: 24px; color: var(--brand); }
.boost-box__head h2 { font: 600 18px var(--font); color: var(--ink); margin: 0; }
.boost-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.boost-option { position: relative; border: 1.5px solid var(--line); border-radius: 14px; padding: 16px; text-align: center; }
.boost-option__badge { position: absolute; top: -10px; left: 50%; transform: translateX(-50%); background: var(--gold); color: #fff; font: 600 10px var(--font); padding: 3px 9px; border-radius: 999px; }
.boost-option__days { font: 600 17px var(--font); color: var(--ink); }
.boost-option__price { font: 600 15px var(--font); color: var(--brand); margin: 6px 0 10px; }
.boost-option__desc { font: 400 11px var(--font); color: var(--text-3); margin: -4px 0 10px; }
.boost-option__button { display: block; width: 100%; border: none; background: var(--ink); color: #fff; font: 600 13px var(--font); padding: 9px; border-radius: 10px; text-align: center; cursor: pointer; }
.plans-tokens { text-align: center; margin-top: 22px; }
.plans-tokens a { display: inline-flex; align-items: center; gap: 7px; font: 500 14px var(--font); color: var(--brand); }
.plans-tokens i { font-size: 18px; color: var(--gold); }

/* ------------------------------------------------------------- checkout */
.checkout-layout { display: flex; gap: 22px; flex-wrap: wrap; align-items: flex-start; }
.checkout-card { background: #fff; border: 1px solid rgba(43, 45, 66, .07); border-radius: 20px; padding: 24px; }
.checkout-main { flex: 1 1 380px; min-width: 280px; }
.checkout-summary { flex: 1 1 280px; min-width: 260px; position: sticky; top: 80px; }
.checkout-heading { font: 600 16px var(--font); color: var(--ink); margin-bottom: 14px; }
.checkout-summary__title { margin-bottom: 16px; }
.checkout-methods { display: flex; gap: 8px; margin-bottom: 20px; flex-wrap: wrap; }
.checkout-method { display: inline-flex; align-items: center; gap: 7px; border: 1.5px solid var(--line); background: #fff; color: var(--text-2); font: 600 13px var(--font); padding: 9px 14px; border-radius: 11px; cursor: pointer; }
.checkout-method.is-active { border-color: var(--brand); background: var(--pink-100); color: var(--brand); }
.checkout-method i { font-size: 16px; }
.checkout-card-number { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 12px; padding: 0 15px; margin-bottom: 16px; background: #fff; }
.checkout-card-number:focus-within { border-color: #E3B5C1; }
.checkout-card-number > i { font-size: 20px; color: var(--text-3); }
.checkout-card-number input { flex: 1; min-width: 0; border: none; outline: none; background: transparent; font: 400 15px var(--font); color: var(--ink); padding: 13px 0; }
.checkout-card-number input::placeholder { color: var(--text-3); }
.checkout-brand { font: 700 12px var(--font); color: #1A1F71; }
.checkout-field { margin-bottom: 16px; }
.checkout-field--sm { margin-bottom: 14px; }
.checkout-row { display: flex; gap: 12px; }
.checkout-row > div { flex: 1; min-width: 0; }
.checkout-row--card { margin-bottom: 18px; }
.checkout-row--havale { margin-bottom: 14px; }
.checkout-hosted { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 12px; padding: 13px 15px; margin-bottom: 16px; }
.checkout-hosted > i { font-size: 20px; color: var(--success); flex: none; }
.checkout-hosted__text { flex: 1; font: 400 13px/1.45 var(--font); color: var(--text-2); }
.checkout-frame { display: block; width: 100%; min-height: 560px; border: none; border-radius: 12px; margin-bottom: 16px; background: #fff; }
.checkout-check { position: relative; display: flex; align-items: center; gap: 10px; margin-bottom: 18px; cursor: pointer; }
.checkout-check input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.checkout-check__box { width: 20px; height: 20px; border-radius: 6px; background: #fff; border: 1.5px solid #D9C3C9; display: flex; align-items: center; justify-content: center; flex: none; }
.checkout-check__box i { font-size: 12px; color: #fff; opacity: 0; }
.checkout-check input:checked + .checkout-check__box { background: var(--brand); border: none; }
.checkout-check input:checked + .checkout-check__box i { opacity: 1; }
.checkout-check input:focus-visible + .checkout-check__box { outline: 2px solid var(--brand); outline-offset: 2px; }
.checkout-check > span:last-child { font: 400 13px var(--font); color: var(--text-2); }
.checkout-bank { background: var(--pink-50); border: 1px solid var(--pink-250); border-radius: 14px; padding: 18px; margin-bottom: 16px; }
.checkout-bank__title { font: 600 14px var(--font); color: var(--ink); margin-bottom: 12px; }
.checkout-bank__rows { display: flex; flex-direction: column; gap: 10px; }
.checkout-bank__row { display: flex; justify-content: space-between; gap: 10px; }
.checkout-bank__key { font: 400 13px var(--font); color: var(--text-3); }
.checkout-bank__value { font: 500 13px var(--font); color: var(--ink); text-align: right; }
.checkout-bank__value--brand { color: var(--brand); }
.checkout-iban { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.checkout-iban > span { font: 600 13px var(--font); color: var(--ink); word-break: break-all; }
.checkout-iban button { flex: none; display: inline-flex; border: none; background: none; padding: 0; color: var(--brand); cursor: pointer; }
.checkout-iban i { font-size: 16px; }
.checkout-muted { font: 400 13px var(--font); color: var(--text-3); margin-bottom: 16px; }
.checkout-subheading { font: 600 14px var(--font); color: var(--ink); margin-bottom: 10px; }
.checkout-upload { position: relative; display: block; border: 2px dashed #E7C9D0; border-radius: 12px; background: #fff; padding: 16px; text-align: center; cursor: pointer; margin-bottom: 14px; }
.checkout-upload:focus-within { outline: 2px solid var(--brand); outline-offset: 2px; }
.checkout-upload input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.checkout-upload i { font-size: 20px; color: var(--brand); }
.checkout-upload span { font: 500 13px var(--font); color: var(--ink); margin-left: 8px; }
.checkout-promo { display: flex; gap: 10px; }
.checkout-promo .field { flex: 1; min-width: 0; }
.checkout-promo__apply { flex: none; border: 1.5px solid var(--brand); background: #fff; color: var(--brand); font: 600 14px var(--font); padding: 0 20px; border-radius: 12px; cursor: pointer; }
.checkout-promo__apply:disabled { opacity: .6; cursor: default; }
.checkout-promo-ok { display: flex; align-items: center; gap: 7px; font: 500 13px var(--font); color: var(--success-ink); margin-top: 10px; }
.checkout-promo-ok i { font-size: 16px; }
.checkout-product { display: flex; align-items: center; gap: 10px; padding-bottom: 14px; border-bottom: 1px solid rgba(43, 45, 66, .07); }
.checkout-product__icon { width: 42px; height: 42px; border-radius: 12px; background: #FFF3D6; display: flex; align-items: center; justify-content: center; flex: none; }
.checkout-product__icon i { font-size: 20px; color: var(--gold); }
.checkout-product__info { flex: 1; min-width: 0; }
.checkout-product__title { font: 600 14px var(--font); color: var(--ink); }
.checkout-product__sub { font: 400 12px var(--font); color: var(--text-3); }
.checkout-product__price { font: 600 14px var(--font); color: var(--ink); }
.checkout-line { display: flex; justify-content: space-between; gap: 10px; font: 400 14px var(--font); color: var(--text-2); margin-top: 14px; }
.checkout-line--discount { color: var(--success-ink); }
.checkout-line--tax { margin-top: 8px; }
.checkout-total { display: flex; justify-content: space-between; gap: 10px; font: 600 18px var(--font); color: var(--ink); margin-top: 14px; padding-top: 14px; border-top: 1px solid rgba(43, 45, 66, .07); }
.checkout-total span:last-child { color: var(--brand); }
.checkout-pay { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; border: none; background: var(--brand); color: #fff; font: 600 16px var(--font); padding: 15px; border-radius: 14px; margin: 18px 0 12px; cursor: pointer; }
.checkout-pay i { font-size: 16px; }
.checkout-pay:disabled { opacity: .6; cursor: default; }
.checkout-ssl { display: flex; align-items: center; justify-content: center; gap: 7px; font: 400 12px var(--font); color: var(--text-3); }
.checkout-ssl i { font-size: 15px; color: var(--success); }
.checkout-terms { font: 400 11px/1.5 var(--font); color: var(--text-3); text-align: center; margin-top: 12px; }
.checkout-consents { margin: 4px 0 14px; }
.checkout-check--consent { align-items: flex-start; margin-bottom: 10px; font: 400 12px/1.5 var(--font); color: var(--text-2); }
.checkout-check--consent a, .checkout-withdrawal a { color: var(--brand); font-weight: 600; }
.checkout-check--consent .checkout-check__box { margin-top: 1px; }
.checkout-withdrawal { font: 400 11px/1.5 var(--font); color: var(--text-3); margin: 2px 0 0; }
.checkout-terms a { color: var(--brand); }

/* ------------------------------------------------------- payment result */
.payres-page { max-width: 480px; margin: 0 auto; padding: 48px clamp(16px, 4vw, 36px) 72px; }
.payres-card { background: #fff; border: 1px solid rgba(43, 45, 66, .08); border-radius: 24px; padding: clamp(24px, 3vw, 34px); box-shadow: 0 16px 40px rgba(194, 0, 0, .06); text-align: center; }
.payres-icon { display: inline-flex; align-items: center; justify-content: center; width: 66px; height: 66px; border-radius: 999px; margin-bottom: 16px; }
.payres-icon i { font-size: 34px; }
.payres-icon--paid { background: var(--success-soft); color: var(--success); }
.payres-icon--pending { background: var(--warn-soft); color: var(--warn); }
.payres-icon--havale { background: var(--pink-100); color: var(--brand); }
.payres-icon--failed { background: var(--pink-200); color: var(--brand); }
.payres-title { font: 500 23px var(--font); color: var(--ink); margin: 0 0 8px; }
.payres-text { font: 400 14px/1.55 var(--font); color: var(--text-2); margin: 0 0 20px; }
.payres-order { display: flex; justify-content: space-between; gap: 10px; font: 400 13px var(--font); color: var(--text-3); background: var(--pink-50); border: 1px solid var(--pink-250); border-radius: 12px; padding: 12px 14px; margin-bottom: 20px; }
.payres-order span:last-child { color: var(--text-2); }
.payres-button { display: block; width: 100%; border: none; background: var(--brand); color: #fff; font: 600 15px var(--font); padding: 14px; border-radius: 14px; text-align: center; cursor: pointer; }

/* --------------------------------------------------------- subscription */
.sub-card { margin-bottom: 16px; }
.sub-card__head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.sub-card__head > i { font-size: 26px; color: var(--gold-light); }
.sub-card__plan { flex: 1; min-width: 0; }
.sub-card__title { font: 600 18px var(--font); }
.sub-card__period { font: 400 13px var(--font); color: #C2C3D0; }
.sub-card__badge { font-size: 12px; padding: 5px 12px; }
.sub-card__facts { display: flex; gap: 24px; flex-wrap: wrap; font: 400 13px var(--font); color: #C2C3D0; }
.sub-card__label { color: #9DA0B4; }
.sub-card__value { color: #fff; font-weight: 500; }
.sub-card__renew { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: rgba(255, 255, 255, .08); border-radius: 12px; padding: 11px 14px; margin-top: 16px; }
.sub-card__renew > span { font: 500 13px var(--font); }
.sub-switch:not([aria-checked="true"]) { background: rgba(255, 255, 255, .25); }
.sub-switch[aria-busy="true"] { opacity: .6; pointer-events: none; }
.sub-actions { display: flex; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.sub-actions__change, .sub-actions__cancel { flex: 1; min-width: 160px; font: 600 14px var(--font); padding: 13px; border-radius: 12px; text-align: center; cursor: pointer; }
.sub-actions__change { border: 1.5px solid var(--brand); background: #fff; color: var(--brand); }
.sub-actions__cancel { border: 1px solid rgba(43, 45, 66, .16); background: #fff; color: var(--text-2); }
.sub-store-note { display: flex; align-items: center; gap: 8px; font: 400 13px/1.5 var(--font); color: var(--text-2); margin: 14px 2px 0; }
.sub-store-note i { font-size: 18px; color: var(--brand); flex: none; }
.sub-refund { text-align: center; margin: -4px 0 18px; }
.sub-refund button { display: inline-flex; align-items: center; gap: 6px; border: none; background: none; padding: 0; font: 500 13px var(--font); color: var(--text-2); cursor: pointer; }
.sub-refund i { font-size: 16px; color: var(--brand); }

/* Billing history card (subscription + payment methods) */
.billing-card { margin-bottom: 0; }
.billing-card__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.billing-card__title { font: 600 16px var(--font); color: var(--ink); margin: 0; }
.billing-card__link { font: 500 13px var(--font); color: var(--brand); }
.billing-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid rgba(43, 45, 66, .05); }
.billing-row__desc { font: 500 13px var(--font); color: var(--ink); }
.billing-row__meta { font: 400 12px var(--font); color: var(--text-3); }
.billing-row__end { display: flex; align-items: center; gap: 12px; flex: none; }
.billing-row__amount { font: 600 13px var(--font); color: var(--ink); }
.billing-row__invoice { display: inline-flex; }
.billing-row__invoice i { font-size: 18px; color: var(--brand); }
.billing-card__empty { font: 400 13px var(--font); color: var(--text-3); padding: 4px 0; }

/* ------------------------------------------------------ payment methods */
.cards-list { display: flex; flex-direction: column; gap: 12px; margin-bottom: 16px; }
.pay-card { display: flex; align-items: center; gap: 14px; background: #fff; border: 1px solid rgba(43, 45, 66, .07); border-radius: 16px; padding: 18px; }
.pay-card__icon { width: 46px; height: 32px; border-radius: 8px; background: #EEF1F6; display: flex; align-items: center; justify-content: center; flex: none; }
.pay-card__icon i { font-size: 20px; color: var(--ink); }
.pay-card__info { flex: 1; min-width: 0; }
.pay-card__name { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pay-card__name > span:first-child { font: 600 14px var(--font); color: var(--ink); }
.pay-card__default { background: var(--success-soft); color: var(--success-ink); font: 600 10px var(--font); padding: 3px 8px; border-radius: 999px; }
.pay-card__exp { font: 400 12px var(--font); color: var(--text-3); margin-top: 2px; }
.pay-card__make-default { border: none; background: none; padding: 0; margin-right: 6px; font: 500 12px var(--font); color: var(--brand); cursor: pointer; }
.pay-card__delete { display: inline-flex; border: none; background: none; padding: 0; color: var(--brand); cursor: pointer; }
.pay-card__delete i { font-size: 19px; }
.pay-card.is-busy { opacity: .6; pointer-events: none; }
.cards-empty { margin-bottom: 16px; }
.cards-add { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; border: 2px dashed #E7C9D0; background: var(--pink-50); color: var(--brand); font: 600 14px var(--font); padding: 14px; border-radius: 14px; cursor: pointer; }
.cards-add i { font-size: 16px; }
.cards-page .billing-card { margin-top: 16px; }

/* Big empty state card (promotable to app.css: the same pattern is used by other member pages) */
