/* Native V2 account "Subscription" tab (js/account-plan.js). Prefix ap-. White cards on #f1f1f1, 14px radius, WhatSell green for actions.
 * The root is mounted by the Account screen inside its tab panel and needs a definite height: the tab scrolls inside it. */
.ap { height: 100%; min-height: 0; overflow-y: auto; overflow-x: hidden; background: #f1f1f1; font-size: 14px; color: var(--ink); position: relative; }
.ap.off { display: none; }
.ap-main { padding: 16px; max-width: 1200px; margin: 0 auto; min-width: 0; }
.ap[data-layout="narrow"] .ap-main { padding: 12px 12px 20px; }
.ap .ct-busy { position: sticky; top: 0; z-index: 5; }
.ap-pad { padding: 24px; text-align: center; }
.ap-muted { color: var(--muted); margin: 0; }
.ap-center { text-align: center; }
.ap-red { color: #d32f2f; }
.ap-hidden { display: none; }
.ap-stack { display: grid; gap: 16px; align-content: start; min-width: 0; }
.ap-card { background: #fff; border-radius: 14px; padding: 18px; min-width: 0; display: grid; gap: 14px; align-content: start; }
.ap-h { margin: 0; font-size: 16px; font-weight: 500; line-height: 1.35; overflow-wrap: anywhere; }
.ap-h b { color: var(--green); font-weight: 600; }

/* current plan */
.ap-chead { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.ap-ico { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--mint); color: var(--green); flex: none; }
.ap-chead .ap-h { flex: 1; min-width: 160px; }
.ap-chip { display: inline-flex; align-items: center; border: 1px solid var(--green); color: var(--green); border-radius: 16px; padding: 2px 12px; font-size: 12.5px; font-weight: 600; background: #fff; white-space: nowrap; }
.ap-chip.on { background: var(--green); color: #fff; }
.ap-chip.off { border-color: #d32f2f; color: #d32f2f; background: #fff; }
.ap-rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.ap-feat { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; border-radius: 8px; min-width: 0; }
.ap-feat > span:first-child { overflow-wrap: anywhere; min-width: 0; }
.ap-current .ap-rows { background: #f7f7f7; border-radius: 10px; padding: 4px; }
.ap-current .ap-feat + .ap-feat { border-top: 1px solid #ececec; border-radius: 0; }
.ap-mark { display: inline-grid; place-items: center; flex: none; }
.ap-mark.yes { color: #2e7d32; } .ap-mark.no { color: #d32f2f; }

/* plans */
.ap-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; align-items: stretch; }
.ap[data-layout="narrow"] .ap-grid { grid-template-columns: minmax(0, 1fr); }
.ap-plan { position: relative; display: grid; gap: 10px; align-content: start; background: #fff; border: 1px solid #e3e3e3; border-top: 3px solid var(--green); border-radius: 14px; padding: 18px; min-width: 0; }
.ap-plan.cur { border-color: var(--green); box-shadow: 0 0 0 1px var(--green) inset; }
.ap-curchip { position: absolute; top: 10px; inset-inline-start: 12px; }
.ap-ptitle { margin: 0; text-align: center; font-size: 17px; font-weight: 600; color: var(--green); overflow-wrap: anywhere; }
.ap-pdesc { margin: 0; text-align: center; color: var(--muted); font-size: 13px; overflow-wrap: anywhere; }
.ap-price { display: flex; align-items: baseline; justify-content: center; gap: 8px; flex-wrap: wrap; }
.ap-strike { color: gray; font-size: 12px; }
.ap-amount { font-size: 22px; font-weight: 600; }
.ap-dur { margin: 0; text-align: center; color: var(--muted); font-size: 13px; }
.ap-select { justify-self: center; }
.ap-plan .ap-rows { margin-top: 4px; }
.ap-plan .ap-feat { padding: 6px 4px; font-size: 13px; }

/* checkout */
.ap-back { display: flex; }
.ap-backbtn { display: inline-flex; align-items: center; gap: 8px; border: 1px solid #cfcfcf; background: #fff; border-radius: 16px; padding: 5px 14px; font: inherit; font-weight: 600; color: var(--ink); cursor: pointer; }
.ap-backbtn:hover { background: var(--mint); }
[dir="rtl"] .ap-backbtn .ap-i { transform: scaleX(-1); }
.ap-co { max-width: 640px; margin: 0 auto; width: 100%; justify-items: stretch; }
.ap-coprice { margin: 0; font-weight: 600; font-size: 18px; }
.ap-ticks { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; }
.ap-tick { display: inline-flex; align-items: center; gap: 8px; }
.ap-tick input { width: 18px; height: 18px; accent-color: var(--green); margin: 0; cursor: pointer; }
.ap-link { border: 0; background: none; padding: 2px; font: inherit; font-weight: 600; color: var(--green); cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
.ap-options { display: grid; gap: 12px; justify-items: stretch; min-height: 24px; }
.ap-pay { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 54px; padding: 12px 20px; border: 0; border-radius: 12px; background: #f1f1f1; color: var(--ink); font: inherit; font-weight: 600; cursor: pointer; width: 100%; }
.ap-pay:hover:not(:disabled) { filter: brightness(.96); }
.ap-pay:disabled { opacity: .55; cursor: progress; }
.ap-pay-offline { background: #b2e0f7; } .ap-pay-stripe, .ap-pay-apg { background: #d8d2fa; } .ap-pay-razorpay { background: #f5f5f5; }
.ap-pay-paystack { background: #113072; color: #fff; } .ap-pay-trial { background: var(--mint2); color: var(--deep); }
.ap-paypal { min-height: 0; }
.ap-rich { overflow-wrap: anywhere; line-height: 1.5; }
.ap-rich table { border-collapse: collapse; max-width: 100%; } .ap-rich td, .ap-rich th { border: 1px solid #ddd; padding: 4px 8px; }
.ap-err { text-align: center; justify-items: center; }
.ap a:focus-visible, .ap button:focus-visible, .ap input:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }

/* PKR methods: PayFast, JazzCash Till / QR, bank transfer */
.ap-pay-payfast { background: var(--green); color: #fff; } .ap-pay-jazzcash { background: #ffe14d; color: #3b2a00; } .ap-pay-bank { background: #cfe9dc; color: var(--deep); }
.ap-note { display: flex; gap: 10px; align-items: flex-start; margin: 0; padding: 12px 14px; border-radius: 12px; background: #fff7e0; color: #6b4e00; line-height: 1.45; }
.ap-note .ap-i { flex: none; margin-top: 1px; }
.ap-pk { display: grid; gap: 8px; margin-bottom: 14px; }
.ap-kv { display: grid; grid-template-columns: minmax(96px, auto) 1fr auto; gap: 10px; align-items: center; padding: 9px 12px; border-radius: 10px; background: #f6f8f7; }
.ap-kv > span:first-child { color: var(--muted); font-size: 13px; }
.ap-kv > b { overflow-wrap: anywhere; font-variant-numeric: tabular-nums; letter-spacing: .01em; }
.ap-amount-row { background: var(--mint); } .ap-amount-row b { color: var(--deep); font-size: 16px; }
.ap-copy { display: inline-flex; align-items: center; gap: 4px; border: 1px solid #d7e3dd; background: #fff; border-radius: 8px; padding: 5px 9px; font: inherit; font-size: 12.5px; color: var(--deep); cursor: pointer; }
.ap-qr { margin: 4px 0 0; display: grid; justify-items: center; gap: 6px; }
.ap-qr img { width: 220px; height: 220px; max-width: 100%; object-fit: contain; background: #fff; border: 1px solid #e3ebe7; border-radius: 12px; padding: 8px; }
.ap-qr figcaption { color: var(--muted); font-size: 12.5px; }
.ap-pkform { display: grid; gap: 10px; border-top: 1px solid #e6ece9; padding-top: 14px; }
.ap-fld { display: grid; gap: 6px; font-weight: 600; font-size: 13px; }
.ap-fld input[type=text] { font: inherit; font-weight: 400; padding: 10px 12px; border: 1px solid #cfd9d4; border-radius: 10px; }
.ap-fld input[type=file] { font: inherit; font-weight: 400; }
.ap-err-msg { color: #b42318; margin: 0; min-height: 1em; font-size: 13px; }
@media (max-width: 480px) { .ap-kv { grid-template-columns: 1fr auto; } .ap-kv > span:first-child { grid-column: 1 / -1; } }
.ap-pay-bank_ae { background: #dbe7f5; color: #12355b; }
.ap-ppnote { margin: 0 0 8px; text-align: center; font-size: 13px; }
