.payment-history-page{margin:0;background:#f4f7fb;color:#101e36;font-family:Inter,Arial,sans-serif}
.ph-main{max-width:1120px;margin:0 auto;padding:28px 20px 36px}
.ph-hero{position:relative;overflow:hidden;padding:32px 34px;border-radius:22px;background:#fd0505;color:#fff}
.ph-hero::after{content:"";position:absolute;width:320px;height:320px;right:-90px;top:-160px;border:50px solid #ffffff14;border-radius:50%;pointer-events:none}
.ph-logo{display:block;width:112px;height:auto;max-height:44px;object-fit:contain;object-position:left}
.ph-eyebrow{margin:24px 0 10px;font-size:11px;font-weight:750;letter-spacing:.14em}
.ph-hero h1{margin:0;font-size:clamp(28px,4vw,40px);letter-spacing:-.04em;line-height:1.15;color:#fff}
.ph-hero>p:not(.ph-eyebrow){max-width:600px;margin:12px 0 20px;line-height:1.6;color:#fff}
.ph-back{display:inline-flex;align-items:center;min-height:44px;color:#fff;text-decoration:none;font-size:14px;font-weight:650}
.ph-workspace{margin-top:22px;padding:28px;background:#fff;border:1px solid #e3e9f1;border-radius:20px;box-shadow:0 8px 30px #10233d04}
.ph-section-heading{display:flex;align-items:center;justify-content:space-between;gap:16px}
.ph-section-heading h2{font-size:22px;letter-spacing:-.03em;margin:0}
.ph-section-heading p{margin:8px 0 0;color:#61738c;font-size:14px;line-height:1.5}
.ph-button{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:12px 20px;border:1px solid #fd0505;border-radius:11px;background:#fd0505;color:#fff;font:inherit;font-size:14px;font-weight:650;line-height:1.4;text-decoration:none;cursor:pointer}
.ph-button-secondary{background:#fff;color:#172a46;border-color:#d7e0ec}
.ph-button:disabled{opacity:.55;cursor:wait}
.ph-status{font-size:13px;line-height:1.5;color:#61738c;margin:24px 0 16px}
.ph-status[role="alert"]{padding:12px 14px;color:#9e1818;background:#fff0f0;border-radius:10px}
#paymentHistory{display:grid;gap:16px}
.ph-card{padding:22px;border:1px solid #dfe7f1;border-radius:16px;background:#fff;min-width:0}
.ph-card-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;margin-bottom:20px;flex-wrap:wrap}
.ph-card h3{font-size:16px;line-height:1.4;overflow-wrap:anywhere;margin:0 0 6px}
.ph-amount{font-size:23px;font-weight:750;letter-spacing:-.03em;margin:0;color:#10233d}
.ph-badge{display:inline-flex;padding:7px 10px;border-radius:8px;font-size:12px;line-height:1.4;font-weight:650;background:#edf4ff;color:#194d80}
.ph-badge[data-status="successful"]{background:#e9f7ef;color:#21643e}
.ph-badge[data-status="failed"],.ph-badge[data-status="cancelled"]{background:#fff0f0;color:#9e1818}
.ph-badge[data-status="pending"],.ph-badge[data-status="processing"],.ph-badge[data-status="review"]{background:#fff6db;color:#765300}
.ph-card dl{display:grid;grid-template-columns:150px minmax(0,1fr);gap:12px 20px;margin:0;font-size:14px;line-height:1.5}
.ph-card dt{color:#61738c}.ph-card dd{margin:0;color:#172a46;overflow-wrap:anywhere}
.ph-card .ph-button{margin-top:22px}
.ph-empty{display:flex;flex-direction:column;align-items:center;text-align:center;padding:44px 20px 48px;color:#61738c}
.ph-empty svg{width:64px;height:64px;padding:14px;border-radius:18px;background:#fff0f0;color:#fd0505;margin-bottom:10px}
.ph-empty h3{font-size:20px;margin:10px 0;color:#10233d;letter-spacing:-.02em}
.ph-empty p{max-width:380px;margin:0 0 20px;font-size:14px;line-height:1.6}
.ph-loader{width:34px;height:34px;border:3px solid #e4edf8;border-top-color:#2d9df9;border-radius:50%;animation:ph-spin .9s linear infinite;margin-bottom:12px}
#historyMore{margin-top:20px}#historyMore[hidden]{display:none}
.ph-footer{display:flex;justify-content:space-between;gap:16px;flex-wrap:wrap;margin:22px 4px 0;color:#61738c;font-size:12px;line-height:1.7}
.ph-footer a{color:#172a46;display:inline-flex;align-items:center;min-height:44px}
.ph-button:focus-visible,.ph-back:focus-visible,.ph-footer a:focus-visible{outline:3px solid #2d9df9;outline-offset:4px}
@keyframes ph-spin{to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){.ph-loader{animation:none}}
@media(max-width:600px){.ph-main{padding:16px 12px 24px}.ph-hero{padding:24px;border-radius:18px}.ph-workspace{padding:20px 16px;border-radius:18px}.ph-section-heading{align-items:flex-start}.ph-section-heading h2{font-size:20px}.ph-section-heading p{font-size:13px}.ph-button{padding:11px 14px}.ph-card{padding:18px 16px}.ph-card dl{grid-template-columns:minmax(0,1fr);gap:4px}.ph-card dd{margin-bottom:10px}.ph-card .ph-button{width:100%}.ph-empty{padding:28px 8px}.ph-footer{gap:4px}}
