/* ============================================================
   iyzico ödeme sayfası (.pay-*)
   ============================================================ */
.pay-body { min-height: 100vh; background: var(--bg-deep); color: var(--text-primary); display: flex; justify-content: center; padding: 28px 16px; }
.pay-wrap { width: 100%; max-width: 520px; display: flex; flex-direction: column; }
.pay-topbrand { display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 22px; }
.pay-topbrand img { width: 40px; height: 40px; border-radius: 11px; box-shadow: 0 0 18px var(--logo-glow); }
.pay-brandtext { font-family: var(--font-display); font-weight: 800; font-size: 22px; letter-spacing: -.4px; }
.pay-brandtext span { color: var(--accent); }

.pay-card { background: var(--bg-surface); border: 1px solid var(--border); border-radius: 20px; padding: 20px; box-shadow: var(--shadow); }

.pay-summary { border: 1px solid var(--border); border-radius: 14px; overflow: hidden; margin-bottom: 18px; }
.pay-sum-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 13px 16px; }
.pay-sum-row + .pay-sum-row { border-top: 1px solid var(--border); }
.pay-sum-label { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--text-muted); }
.pay-sum-label svg { width: 16px; height: 16px; }
.pay-sum-val { font-size: 15px; font-weight: 600; color: var(--text-primary); text-align: right; }
.pay-sum-total { background: var(--accent-soft); }
.pay-sum-total .pay-sum-label { color: var(--text-secondary); font-weight: 600; }
.pay-sum-price { font-family: var(--font-display); font-weight: 800; font-size: 22px; color: var(--accent); }

/* iyzico formu için beyaz zemin (kart formu okunaklı olsun) */
.pay-formwrap { background: #fff; border-radius: 14px; padding: 12px; min-height: 120px; }
#iyzipay-checkout-form { width: 100%; }

.pay-foot { display: flex; flex-direction: column; align-items: center; gap: 12px; margin-top: 20px; }
.pay-secure { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--text-muted); }
.pay-secure svg { width: 15px; height: 15px; color: var(--accent); }
.pay-band { background: #fff; border-radius: 9px; padding: 7px 12px; display: inline-flex; box-shadow: 0 4px 14px rgba(0,0,0,.2); }
.pay-band img { height: 24px; display: block; }

/* Durum sayfaları (başarı / hata / result) */
.pay-state { text-align: center; padding: 40px 24px; }
.pay-state-ic { display: inline-flex; align-items: center; justify-content: center; width: 74px; height: 74px; border-radius: 50%; margin-bottom: 18px; }
.pay-state-ic svg { width: 38px; height: 38px; stroke-width: 3; color: #fff; }
.pay-state-ic.ok { background: #16b364; box-shadow: 0 10px 28px rgba(22,179,100,.4); }
.pay-state-ic.err { background: var(--danger); box-shadow: 0 10px 28px rgba(240,85,109,.35); }
.pay-state h1 { font-family: var(--font-display); font-weight: 800; font-size: 24px; margin-bottom: 10px; }
.pay-state p { font-size: 15px; line-height: 1.6; color: var(--text-secondary); max-width: 400px; margin: 0 auto 6px; }
.pay-state .pay-sub { color: var(--text-muted); font-size: 14px; }
.pay-state-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 24px; }
.pay-btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: 12px; font-family: var(--font-display); font-weight: 600; font-size: 14.5px; text-decoration: none; background: var(--bg-elevated); border: 1px solid var(--border-strong); color: var(--text-primary); transition: .14s; }
.pay-btn svg { width: 16px; height: 16px; }
.pay-btn:hover { border-color: var(--accent); color: var(--accent); }
.pay-btn.primary { background: linear-gradient(135deg, var(--accent), var(--accent2)); color: #04121b; border-color: transparent; }
.pay-btn.primary:hover { filter: brightness(1.05); color: #04121b; }

/* Topbar paket rozeti (kullanıcı adının yanında) */
.tb-nameline { display: flex; align-items: center; gap: 9px; min-width: 0; }
.tb-nameline .tb-name { min-width: 0; }
.tb-plan { display: inline-flex; align-items: center; gap: 5px; flex-shrink: 0; padding: 3px 10px; border-radius: 999px; font-family: var(--font-body); font-size: 11.5px; font-weight: 700; letter-spacing: .2px; text-transform: none; text-decoration: none; white-space: nowrap; background: linear-gradient(135deg, var(--accent-soft), var(--accent2-soft)); color: var(--accent-bright); border: 1px solid rgba(45,212,167,.32); transition: border-color .14s, filter .14s; }
.tb-plan:hover { border-color: var(--accent); filter: brightness(1.05); }
.tb-plan svg { width: 13px; height: 13px; }
.tb-plan.free { background: var(--bg-elevated); color: var(--text-muted); border-color: var(--border-strong); }
@media (max-width: 560px) { .tb-plan { font-size: 10.5px; padding: 2px 8px; } .tb-plan svg { width: 12px; height: 12px; } }

/* ============================================================
   Davet Et & Kazan (Referral) — .rf-*
   ============================================================ */
.rf-code-card { background: var(--bg-surface); border: 1px solid var(--border); border-radius: 20px; padding: 20px; margin-bottom: 18px; }
.rf-code-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.rf-gift { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 14px; background: #16b364; color: #fff; box-shadow: 0 8px 22px rgba(22,179,100,.35); flex-shrink: 0; }
.rf-gift svg { width: 23px; height: 23px; }
.rf-code-title { font-family: var(--font-display); font-weight: 700; font-size: 18px; color: var(--text-primary); }

.rf-code-box { display: flex; align-items: center; gap: 12px; background: var(--bg-elevated); border: 1px solid var(--border); border-radius: 14px; padding: 16px 18px; margin-bottom: 14px; }
.rf-code { flex: 1; font-family: var(--font-display); font-weight: 800; font-size: 30px; letter-spacing: 4px; color: var(--text-primary); user-select: all; word-break: break-all; }
.rf-code-copy { flex-shrink: 0; width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; color: var(--text-muted); border: 1px solid transparent; transition: .14s; }
.rf-code-copy:hover { color: var(--accent); background: var(--bg-surface); }
.rf-code-copy svg { width: 20px; height: 20px; }

.rf-code-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.rf-btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 14px 18px; border-radius: 13px; font-family: var(--font-display); font-weight: 700; font-size: 15px; cursor: pointer; border: 1px solid transparent; transition: .14s; }
.rf-btn svg { width: 18px; height: 18px; }
.rf-btn-light { background: var(--bg-elevated); border-color: var(--border-strong); color: var(--text-primary); }
.rf-btn-light:hover { border-color: var(--accent); color: var(--accent); }
.rf-btn-primary { background: var(--accent2); color: #fff; box-shadow: 0 8px 22px rgba(74,147,255,.32); }
.rf-btn-primary:hover { filter: brightness(1.07); }

.rf-rules { position: relative; background: var(--bg-surface); border: 1px solid var(--border); border-radius: 18px; padding: 20px 20px 14px; margin-bottom: 24px; overflow: hidden; }
.rf-rules::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--warning); }
.rf-rules-head { display: flex; align-items: center; gap: 9px; font-family: var(--font-display); font-weight: 700; font-size: 16.5px; color: var(--text-primary); margin-bottom: 14px; }
.rf-rules-head svg { width: 19px; height: 19px; color: var(--warning); }
.rf-rules-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.rf-rules-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 14.5px; line-height: 1.5; color: var(--text-secondary); }
.rf-rules-list strong { color: var(--text-primary); font-weight: 700; }
.rf-dot { flex-shrink: 0; width: 10px; height: 10px; border-radius: 50%; margin-top: 6px; }
.rf-dot-green { background: #16b364; } .rf-dot-blue { background: var(--accent2); } .rf-dot-purple { background: #8b5cf6; }

.rf-empty { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 44px 26px; border-radius: 22px; background: var(--bg-surface); border: 1px solid var(--border); margin-top: 6px; }
.rf-empty-ic { display: inline-flex; align-items: center; justify-content: center; width: 76px; height: 76px; border-radius: 22px; background: #16b364; color: #fff; margin-bottom: 18px; box-shadow: 0 10px 28px rgba(22,179,100,.4); }
.rf-empty-ic svg { width: 36px; height: 36px; }
.rf-empty h2 { font-family: var(--font-display); font-size: 16px; font-weight: 700; letter-spacing: 1px; color: var(--text-primary); margin-bottom: 9px; }
.rf-empty p { font-size: 14px; color: var(--text-muted); line-height: 1.55; max-width: 400px; }

.rf-reward-list { display: flex; flex-direction: column; gap: 12px; padding-bottom: 30px; }
.rf-reward { display: flex; align-items: center; gap: 13px; padding: 15px 16px; border-radius: 16px; background: var(--bg-surface); border: 1px solid var(--border); }
.rf-reward-ic { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 13px; background: var(--accent-soft); color: var(--accent); flex-shrink: 0; }
.rf-reward-ic svg { width: 21px; height: 21px; }
.rf-reward-main { flex: 1; min-width: 0; }
.rf-reward-title { font-size: 15px; font-weight: 600; color: var(--text-primary); }
.rf-reward-sub { font-size: 12.5px; color: var(--text-muted); margin-top: 2px; }
.rf-reward-days { flex-shrink: 0; font-family: var(--font-display); font-weight: 800; font-size: 16px; color: #16b364; }

/* Basit toast */
.toast { position: fixed; bottom: 28px; left: 50%; transform: translateX(-50%) translateY(20px); background: var(--accent-dim); color: #07221b; padding: 11px 20px; border-radius: 11px; font-weight: 600; font-size: 14px; box-shadow: 0 12px 32px rgba(0,0,0,.4); opacity: 0; pointer-events: none; transition: .25s ease; z-index: 500; max-width: 90%; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

@media (max-width: 480px) { .rf-code { font-size: 24px; letter-spacing: 2px; } .rf-code-actions { grid-template-columns: 1fr; } }

