/* Shared purchase presentation for the landing, profile, app and admin preview. */
.pp-enhanced { --pp-muted: #b9c8dd; --pp-accent: #67e4dc; color: #f5f8ff; }
.purchase-modal__card.pp-enhanced { width: min(590px, calc(100vw - 28px)); margin: 14px auto; max-height: calc(100dvh - 56px); overflow-y: auto; overscroll-behavior: contain; padding: 24px; }
.pp-enhanced .purchase-modal__close { top: 10px; right: 10px; width: 32px; height: 32px; font-size: 24px; box-shadow: none; }
.pp-enhanced .purchase-modal__head { padding-right: 28px; margin-bottom: 10px; }
.pp-enhanced .purchase-modal__head h2, .pp-enhanced .modal-title, .pp-preview-card h2 { font-size: clamp(23px, 4vw, 30px); line-height: 1.15; letter-spacing: -.6px; font-weight: 750; margin: 0; }
.pp-enhanced .purchase-modal__subtitle, .pp-enhanced .purchase-grid-subtitle { color: var(--pp-muted); font-size: 14px; line-height: 1.5; margin: 0 0 14px; }
.pp-intro[hidden], .pp-choice[hidden], .pp-enhanced [data-purchase-more][hidden] { display: none !important; }
.pp-examples { display: flex; gap: 8px; height: 112px; overflow: hidden; border-radius: 14px; }
.pp-examples img { min-width: 0; width: 0; flex: 1; height: 100%; object-fit: cover; object-position: center 6%; border-radius: 12px; }
.pp-examples-caption { font-size: 10px; color: var(--pp-muted); margin: 5px 0 0; }
.pp-benefits { display: flex; flex-wrap: wrap; gap: 7px 16px; list-style: none; padding: 0; margin: 14px 0; font-size: 12px; line-height: 1.5; }
.pp-benefits li::before { content: '✓'; color: var(--pp-accent); padding-right: 6px; }
.pp-cost-note { font-size: 11px; line-height: 1.5; color: var(--pp-muted); margin: 10px 0 14px; }
.pp-enhanced .purchase-modal__packages, .pp-enhanced .purchase-packages { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.pp-enhanced .pp-choice { position: relative; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 7px; min-width: 0; min-height: 122px; margin: 0; padding: 14px; border: 1px solid #3d4e6b; border-radius: 16px; background: #101d34; color: #f5f8ff; text-align: left; cursor: pointer; }
.pp-enhanced .pp-choice.is-selected, .pp-enhanced .pp-choice.active { background: #153f4d; border-color: var(--pp-accent); box-shadow: inset 0 0 0 1px var(--pp-accent); }
.pp-choice:focus-visible, .pp-more:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.pp-enhanced .purchase-package__head, .pp-enhanced .package-head { display: flex; flex-wrap: wrap; gap: 5px; align-items: center; padding: 0; }
.pp-enhanced .purchase-package__title, .pp-enhanced .package-title { font-size: 15px; font-weight: 700; line-height: 1.25; }
.pp-enhanced .purchase-package__badge, .pp-enhanced .package-badge-top { position: static; background: #d5fbef; color: #104037; border: 0; border-radius: 5px; padding: 2px 5px; font-size: 10px; line-height: 1.2; transform: none; }
.pp-enhanced .purchase-package__limit, .pp-enhanced .package-limit, .pp-enhanced .package-sub, .pp-enhanced .purchase-package__subtitle { color: var(--pp-muted); font-size: 12px; line-height: 1.4; margin: 0; }
.pp-enhanced .purchase-package__price, .pp-enhanced .package-price { position: static; font-size: 23px; line-height: 1.1; font-weight: 750; color: #f5f8ff; margin: 0; }
.pp-more { display: block; width: 100%; border: 0; background: transparent; color: #bcefeb; padding: 12px; cursor: pointer; font-size: 13px; text-decoration: underline; }
.pp-enhanced .purchase-modal__status, .pp-enhanced .purchase-status { font-size: 12px; margin: 12px 0; line-height: 1.4; }
.pp-enhanced .purchase-pay-btn, .pp-enhanced .purchase-modal__pay, .pp-preview-card .purchase-modal__pay { width: 100%; min-height: 52px; border: 1px solid #8be9f0; border-radius: 14px; background: linear-gradient(110deg, #4f78f7, #15bfc1); color: #fff; font-size: 16px; font-weight: 750; padding: 14px 10px; cursor: pointer; }
.pp-enhanced .purchase-legal-note, .pp-enhanced .purchase-modal__legal { font-size: 10px; line-height: 1.45; margin-bottom: 0; }
.pp-preview-card { box-sizing: border-box; max-width: 590px; background: #111b2e; border: 1px solid #3d4e6b; border-radius: 24px; padding: 24px; font-family: system-ui, sans-serif; color: #f5f8ff; }
.pp-preview-card h2 { margin-bottom: 10px; }
.purchase-card-complete [data-purchase-intro], .purchase-card-complete [data-purchase-more] { display: none !important; }
@media (max-width: 420px) { .purchase-modal__card.pp-enhanced, .pp-preview-card { padding: 18px; } .pp-examples { height: 94px; } .pp-enhanced .pp-choice { padding: 11px; min-height: 128px; } .pp-benefits { gap: 5px 10px; } }
.pp-enhanced .pp-choice { min-height: 96px; gap: 5px; padding: 12px; }
.pp-enhanced .purchase-package__price, .pp-enhanced .package-price { align-self: flex-start; font-size: 21px; }
.pp-enhanced .purchase-modal__pay, .pp-enhanced .purchase-pay-btn { position: sticky; bottom: 0; z-index: 3; box-shadow: 0 0 0 7px #111b2e, 0 -10px 20px #111b2e; }
.pp-enhanced .purchase-modal__status { margin: 8px 0; }
.pp-enhanced .pp-more { padding: 9px; }
.pp-enhanced .pp-choice.pp-choice-wide { grid-column: 1 / -1; min-height: 88px; }
@media (max-width: 420px) { .pp-enhanced .pp-choice { min-height: 110px; padding: 11px; } .pp-enhanced .pp-choice.pp-choice-wide { min-height: 88px; } }

.pp-enhanced .pp-choice:last-child:nth-child(odd) { grid-column: 1 / -1; }
.purchase-modal__card.pp-enhanced, .purchase-card.pp-enhanced { scrollbar-width: thin; scrollbar-color: #526583 transparent; }
.pp-enhanced .package-badge-top, .pp-enhanced .package-card.active .package-badge-top { color: #104037; flex: 0 0 auto; text-align: left; }
/* Portrait previews: full image is retained, including landscape source images. */
.pp-enhanced .purchase-modal__head { padding: 0 28px; }
.pp-enhanced .purchase-modal__head h2 { width: 100%; text-align: center; }
.pp-enhanced .modal-head { position: relative; display: block; padding: 0 38px; }
.pp-enhanced .modal-head .modal-close { position: absolute; top: 0; right: 0; }
.pp-enhanced .modal-title, .pp-preview-card h2, .pp-enhanced .purchase-modal__subtitle, .pp-enhanced .purchase-grid-subtitle { text-align: center; }
.pp-carousel { position: relative; margin-top: 12px; }
.pp-carousel [hidden] { display: none !important; }
.pp-carousel__viewport { overflow-x: auto; overflow-y: hidden; scrollbar-width: none; overscroll-behavior-x: contain; border-radius: 14px; touch-action: pan-x pan-y; }
.pp-carousel__viewport::-webkit-scrollbar { display: none; }
.pp-carousel__track { display: flex; gap: 10px; width: max-content; }
.pp-carousel__slide { margin: 0; flex: 0 0 142px; width: 142px; }
.pp-carousel__image { display: block; width: 142px; height: 190px; object-fit: contain; object-position: center; border-radius: 12px; background: #081326; }
.pp-carousel__name { margin-top: 5px; font-size: 11px; line-height: 1.35; color: var(--pp-muted); text-align: center; max-width: 142px; overflow-wrap: anywhere; }
.pp-carousel__arrow { position: absolute; top: 76px; width: 32px; height: 36px; border: 1px solid #7183a0; border-radius: 9px; background: #0c183cdb; color: #fff; font-size: 26px; cursor: pointer; line-height: 1; }
.pp-carousel__arrow:disabled { opacity: .3; cursor: default; }
.pp-carousel__arrow--prev { left: 4px; } .pp-carousel__arrow--next { right: 4px; }
.pp-carousel button:focus-visible, .pp-carousel__viewport:focus-visible { outline: 2px solid var(--pp-accent); outline-offset: 2px; }
@media (max-width: 420px) { .pp-carousel__slide { flex-basis: 126px; width: 126px; } .pp-carousel__image { width: 126px; height: 168px; } .pp-carousel__arrow { top: 65px; } }
