/* ============ PAYMENT / TOP-UP PAGE ============ */
.pay-page { background: #06040d; color: #e9e3fb; }

.pay-main { position: relative; min-height: 100vh; padding: 110px 0 70px; overflow: hidden; }
.pay-bg {
    position: fixed; inset: 0; z-index: 0; pointer-events: none;
    background: #06040d url("/img/background_payment.webp") center top / cover no-repeat;
}
.pay-bg::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(6,4,13,0.35) 0%, rgba(6,4,13,0.72) 45%, rgba(6,4,13,0.92) 100%);
}
.pay-wrap { position: relative; z-index: 1; width: min(1280px, calc(100% - 48px)); margin: 0 auto; }

/* crumbs */
.pay-crumbs { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: #9b90b8; margin-bottom: 22px; }
.pay-crumbs a { color: #b79bff; text-decoration: none; }
.pay-crumbs a:hover { color: #d6c6ff; }
.pay-crumbs-sep { opacity: 0.5; }

/* hero */
.pay-hero { display: flex; align-items: center; gap: 22px; margin-bottom: 30px; }
.pay-hero-ico {
    flex: none; width: 76px; height: 76px; display: inline-flex; align-items: center; justify-content: center;
    border-radius: 20px; border: 1px solid rgba(160,107,255,0.3);
    background: radial-gradient(120% 120% at 30% 20%, rgba(160,107,255,0.28), rgba(160,107,255,0.06));
    box-shadow: 0 0 40px rgba(160,107,255,0.25);
}
.pay-hero-ico svg { width: 38px; height: 38px; fill: none; stroke: #c9b3ff; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.pay-hero-title { margin: 0; font-family: "Sora","Manrope",sans-serif; font-size: 38px; font-weight: 800; color: #f4f0fc; letter-spacing: -0.5px; }
.pay-hero-title span { color: #a888ff; }
.pay-hero-sub { margin: 8px 0 0; max-width: 560px; color: #a99fc0; font-size: 15px; line-height: 1.55; }

/* layout grid */
.pay-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 24px; align-items: start; }

/* card base */
.pay-card {
    position: relative; border-radius: 22px; padding: 24px;
    border: 1px solid rgba(255,255,255,0.09);
    background: linear-gradient(180deg, rgba(21,15,31,0.86), rgba(13,10,19,0.9));
    box-shadow: 0 22px 50px rgba(0,0,0,0.34); backdrop-filter: blur(10px);
}
.pay-card + .pay-card { margin-top: 0; }
.pay-aside { display: flex; flex-direction: column; gap: 24px; }
.pay-card-title { margin: 0 0 18px; font-family: "Sora",sans-serif; font-size: 20px; font-weight: 700; color: #f4f0fc; }
.pay-aside-title { margin: 0 0 16px; font-size: 12px; letter-spacing: 1.4px; text-transform: uppercase; color: #8d83a3; font-weight: 700; }

/* balances row */
.pay-balances { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 24px; }
.pay-bal { display: flex; align-items: center; gap: 13px; padding: 16px; border-radius: 16px; border: 1px solid rgba(255,255,255,0.07); background: rgba(255,255,255,0.025); }
.pay-bal-ico { flex: none; width: 42px; height: 42px; display: inline-flex; align-items: center; justify-content: center; border-radius: 12px; }
.pay-bal-ico svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.pay-bal-ico.ico-coin { color: #ffcf6b; background: rgba(255,207,107,0.12); }
.pay-bal-ico.ico-gift { color: #c39bff; background: rgba(160,107,255,0.14); }
.pay-bal-body { display: flex; flex-direction: column; min-width: 0; }
.pay-bal-label { font-size: 12.5px; color: #9b90b8; }
.pay-bal-value { font-size: 22px; font-weight: 800; color: #f4f0fc; }

/* step labels */
.pay-step { font-size: 11.5px; letter-spacing: 1.2px; text-transform: uppercase; color: #8d83a3; font-weight: 700; margin: 22px 0 12px; }

/* amounts */
.pay-amounts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.pay-amount {
    appearance: none; cursor: pointer; border-radius: 14px; padding: 16px; text-align: center;
    border: 1px solid rgba(255,255,255,0.1); background: rgba(255,255,255,0.03);
    color: #e7defc; font-size: 16px; font-weight: 700; font-family: inherit;
    transition: border-color .18s ease, background .18s ease, transform .12s ease;
}
.pay-amount:hover { border-color: rgba(160,107,255,0.4); background: rgba(160,107,255,0.08); }
.pay-amount.is-active { border-color: #a06bff; background: rgba(160,107,255,0.2); box-shadow: 0 0 0 1px rgba(160,107,255,0.4) inset, 0 10px 30px rgba(160,107,255,0.18); }
.pay-amount-custom { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; cursor: text; text-align: left; }
.pay-amount-custom-label { font-size: 11px; letter-spacing: 0.6px; text-transform: uppercase; color: #8d83a3; font-weight: 700; }
.pay-amount-custom-field { display: flex; align-items: center; width: 100%; }
.pay-amount-custom-field input { width: 100%; background: none; border: 0; outline: none; color: #d9b8ff; font-size: 18px; font-weight: 800; font-family: inherit; -moz-appearance: textfield; }
.pay-amount-custom-field input::-webkit-outer-spin-button, .pay-amount-custom-field input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.pay-amount-custom-field i { color: #9b90b8; font-style: normal; font-weight: 800; font-size: 16px; }
.pay-amount-custom.is-active { border-color: #a06bff; background: rgba(160,107,255,0.14); }

/* methods */
.pay-methods { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.pay-method {
    position: relative; display: flex; align-items: center; gap: 12px; text-align: left; cursor: pointer;
    border-radius: 14px; padding: 14px 16px; border: 1px solid rgba(255,255,255,0.1); background: rgba(255,255,255,0.03);
    color: #e7defc; font-family: inherit; transition: border-color .18s ease, background .18s ease;
}
.pay-method:hover:not([disabled]) { border-color: rgba(160,107,255,0.4); background: rgba(160,107,255,0.07); }
.pay-method.is-active { border-color: #a06bff; background: rgba(160,107,255,0.16); }
.pay-method-ico { flex: none; width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; border-radius: 11px; background: rgba(160,107,255,0.12); color: #c8b2ff; }
.pay-method-ico svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.pay-method-body { display: flex; flex-direction: column; min-width: 0; }
.pay-method-body strong { font-size: 14.5px; color: #f2eefb; font-weight: 700; }
.pay-method-body small { font-size: 12px; color: #9b90b8; }
.pay-method-check { margin-left: auto; width: 22px; height: 22px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: #7c4dff; opacity: 0; transform: scale(0.6); transition: opacity .15s ease, transform .15s ease; }
.pay-method-check svg { width: 13px; height: 13px; fill: none; stroke: #fff; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.pay-method.is-active .pay-method-check { opacity: 1; transform: scale(1); }
.pay-method.is-soon { opacity: 0.55; cursor: not-allowed; }
.pay-soon { margin-left: auto; font-size: 10.5px; letter-spacing: 0.6px; text-transform: uppercase; color: #9b90b8; border: 1px solid rgba(255,255,255,0.14); border-radius: 999px; padding: 3px 9px; font-weight: 700; }

/* promo */
.pay-promo { display: flex; gap: 12px; }
.pay-promo input { flex: 1; min-width: 0; border-radius: 13px; border: 1px solid rgba(255,255,255,0.12); background: rgba(255,255,255,0.03); color: #e9e3fb; padding: 13px 16px; font-size: 14px; font-family: inherit; outline: none; }
.pay-promo input:focus { border-color: rgba(160,107,255,0.5); }
.pay-promo button { flex: none; border-radius: 13px; border: 1px solid rgba(160,107,255,0.34); background: rgba(160,107,255,0.16); color: #e7defc; padding: 0 22px; font-weight: 700; font-size: 14px; cursor: pointer; font-family: inherit; transition: background .18s ease; }
.pay-promo button:hover { background: rgba(160,107,255,0.28); }
.pay-promo-hint { margin: 10px 2px 0; font-size: 12.5px; color: #9b90b8; }

/* summary */
.pay-summary { margin-top: 22px; padding: 18px 20px; border-radius: 16px; border: 1px solid rgba(255,255,255,0.08); background: rgba(255,255,255,0.025); }
.pay-sum-row { display: flex; align-items: center; justify-content: space-between; font-size: 14px; color: #b9b0cf; padding: 7px 0; }
.pay-sum-row strong { color: #f2eefb; font-weight: 700; }
.pay-up { color: #7fe3a6 !important; }
.pay-sum-total { margin-top: 8px; padding-top: 14px; border-top: 1px solid rgba(255,255,255,0.08); font-size: 15px; }
.pay-sum-total strong { font-size: 20px; color: #c9a8ff; font-weight: 800; }

/* submit */
.pay-submit {
    width: 100%; margin-top: 22px; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    border: 0; border-radius: 15px; padding: 17px; cursor: pointer; font-family: inherit; font-size: 16px; font-weight: 800; color: #fff;
    background: linear-gradient(135deg, #8b5cf6, #6d28d9); box-shadow: 0 16px 40px rgba(124,77,255,0.35);
    transition: transform .12s ease, box-shadow .18s ease, opacity .15s ease;
}
.pay-submit:hover { transform: translateY(-1px); box-shadow: 0 20px 48px rgba(124,77,255,0.45); }
.pay-submit:active { transform: translateY(0); }
.pay-submit:disabled { opacity: 0.6; cursor: default; transform: none; }
.pay-submit svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.pay-error { margin: 14px 2px 0; color: #ff8a9b; font-size: 13.5px; }

/* aside: bonus tiers */
.pay-tier { display: flex; align-items: center; gap: 13px; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,0.06); }
.pay-tier:last-child { border-bottom: 0; padding-bottom: 0; }
.pay-tier:first-of-type { padding-top: 0; }
.pay-tier-ico { flex: none; width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center; border-radius: 11px; background: rgba(160,107,255,0.12); color: #ffcf6b; }
.pay-tier-ico svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.pay-tier-body { flex: 1; min-width: 0; }
.pay-tier-body strong { display: block; font-size: 14px; color: #f2eefb; font-weight: 700; }
.pay-tier-body small { font-size: 11.5px; color: #9b90b8; }
.pay-tier-pct { font-size: 15px; font-weight: 800; color: #7fe3a6; }

/* aside: secure */
.pay-secure-row { display: flex; align-items: center; gap: 12px; padding: 9px 0; font-size: 13.5px; color: #c5bcdc; }
.pay-secure-ico { flex: none; width: 30px; height: 30px; display: inline-flex; align-items: center; justify-content: center; border-radius: 9px; background: rgba(123,227,166,0.1); color: #7fe3a6; }
.pay-secure-ico svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.pay-secure-btn { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 14px; padding: 12px; border-radius: 12px; border: 1px solid rgba(160,107,255,0.28); background: rgba(160,107,255,0.1); color: #e7defc; font-weight: 700; font-size: 13.5px; text-decoration: none; transition: background .18s ease; }
.pay-secure-btn:hover { background: rgba(160,107,255,0.2); }

/* aside: faq */
.pay-faq-item { border-bottom: 1px solid rgba(255,255,255,0.06); }
.pay-faq-item:last-child { border-bottom: 0; }
.pay-faq-item summary { cursor: pointer; list-style: none; padding: 13px 0; display: flex; align-items: center; justify-content: space-between; font-size: 13.5px; color: #e7defc; font-weight: 600; }
.pay-faq-item summary::-webkit-details-marker { display: none; }
.pay-faq-item summary::after { content: "›"; color: #9b90b8; font-size: 18px; transition: transform .2s ease; }
.pay-faq-item[open] summary::after { transform: rotate(90deg); }
.pay-faq-item p { margin: 0 0 13px; font-size: 12.5px; color: #9b90b8; line-height: 1.5; }

/* aside: balance panel */
.pay-balance-grid { display: flex; align-items: center; gap: 18px; }
.pay-balance-donut { flex: none; width: 92px; height: 92px; border-radius: 50%; background: conic-gradient(#7c4dff 0deg, #7c4dff var(--main, 270deg), #2bd6a8 var(--main, 270deg), #2bd6a8 360deg); -webkit-mask: radial-gradient(circle 30px at 50% 50%, transparent 98%, #000 100%); mask: radial-gradient(circle 30px at 50% 50%, transparent 98%, #000 100%); }
.pay-balance-legend { display: flex; flex-direction: column; gap: 12px; }
.pay-legend-row { display: flex; align-items: center; gap: 10px; }
.pay-legend-dot { width: 11px; height: 11px; border-radius: 3px; flex: none; }
.pay-legend-dot.dot-main { background: #7c4dff; }
.pay-legend-dot.dot-bonus { background: #2bd6a8; }
.pay-legend-row strong { font-size: 15px; color: #f2eefb; font-weight: 800; display: block; }
.pay-legend-row small { font-size: 11.5px; color: #9b90b8; }

/* history */
.pay-history-card { margin-top: 24px; }
.pay-history-wrap { overflow-x: auto; }
.pay-history-table { width: 100%; border-collapse: collapse; min-width: 640px; }
.pay-history-table th { text-align: left; font-size: 11px; letter-spacing: 0.8px; text-transform: uppercase; color: #8d83a3; font-weight: 700; padding: 0 16px 14px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.pay-history-table td { padding: 16px; font-size: 13.5px; color: #d4ccea; border-bottom: 1px solid rgba(255,255,255,0.05); }
.pay-history-table tbody tr:last-child td { border-bottom: 0; }
.pay-history-method { display: inline-flex; align-items: center; gap: 8px; }
.pay-history-up { color: #7fe3a6; font-weight: 600; }
.pay-history-empty td { text-align: center; color: #8d83a3; padding: 26px 16px; }
.pay-status { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; padding: 5px 11px; border-radius: 999px; }
.pay-status.ok { color: #7fe3a6; background: rgba(123,227,166,0.12); }
.pay-status.pending { color: #ffcf6b; background: rgba(255,207,107,0.12); }
.pay-status.fail { color: #ff8a9b; background: rgba(255,138,155,0.12); }

/* responsive */
@media (max-width: 1080px) {
    .pay-grid { grid-template-columns: 1fr; }
    .pay-aside { flex-direction: row; flex-wrap: wrap; }
    .pay-aside > .pay-card { flex: 1 1 320px; }
}
@media (max-width: 720px) {
    .pay-hero-title { font-size: 30px; }
    .pay-balances { grid-template-columns: 1fr; }
    .pay-amounts { grid-template-columns: repeat(2, 1fr); }
    .pay-methods { grid-template-columns: 1fr; }
    .pay-aside > .pay-card { flex: 1 1 100%; }
}
@media (max-width: 480px) {
    .pay-main { padding-top: 96px; }
    .pay-hero { gap: 14px; }
    .pay-hero-ico { width: 60px; height: 60px; }
    .pay-promo { flex-direction: column; }
}
