/* ==========================================================================
   POT STUDIO — theme-wide page designs (r89). Loaded after pot-calm.css.
   Same rules as the configurator: everyday pictures, chunky shapes, big
   numbers, plain words, calm website palette (gold = jewellery), EN/AR, 375px.
   ========================================================================== */
:root {
    --ps-txt: #fbf6ff; --ps-dim: #c3b9d8; --ps-faint: #9a90b0; --ps-amber: #ffbe55; --ps-green: #3fd69a;
    --ps-edge: rgba(255,255,255,.08); --ps-edge2: rgba(255,255,255,.15); --ps-off: #2b2535;
    --ps-gold: linear-gradient(120deg, #d68f12, #f0aa30 50%, #ffce6b);
    --ps-glass: linear-gradient(160deg, rgba(255,255,255,.055), rgba(255,255,255,.016));
    --ps-disp: 'Space Grotesk','Inter',sans-serif;
}
html[dir="rtl"] { --ps-disp: 'Tajawal','Cairo','Space Grotesk',sans-serif; }

/* ---------------- AUTH (login, password reset): cinematic split ---------------- */
.pot-auth { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 0; max-width: 1080px; margin: 28px auto 40px; border-radius: 24px; overflow: hidden; border: 1px solid var(--ps-edge); background: #0b0814; box-shadow: 0 30px 80px rgba(0,0,0,.5), 0 0 60px rgba(240,170,48,.06); }
.pot-auth-art { position: relative; min-height: 560px; overflow: hidden; isolation: isolate; }
.pot-auth-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; transform-origin: 50% 50%; animation: ps-drift 26s ease-in-out infinite alternate; z-index: -2; }
@keyframes ps-drift { from { transform: scale(1.02); } to { transform: scale(1.1); } }
.pot-auth-art::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(7,3,16,.15) 0%, rgba(7,3,16,.25) 40%, rgba(7,3,16,.92) 100%), linear-gradient(90deg, rgba(7,3,16,.0) 60%, rgba(11,8,20,.9) 100%); }
html[dir="rtl"] .pot-auth-art::before { background: linear-gradient(180deg, rgba(7,3,16,.15) 0%, rgba(7,3,16,.25) 40%, rgba(7,3,16,.92) 100%), linear-gradient(270deg, rgba(7,3,16,.0) 60%, rgba(11,8,20,.9) 100%); }
.pot-auth-copy { position: absolute; left: 36px; right: 36px; bottom: 34px; }
.pot-auth-kicker { display: inline-flex; align-items: center; gap: 8px; padding: 6px 13px; border-radius: 999px; border: 1px solid rgba(255,170,80,.32); background: rgba(255,138,0,.08); color: #ffcf6b; font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; }
html[dir="rtl"] .pot-auth-kicker { font-family: 'Tajawal','Cairo',sans-serif; letter-spacing: 0; font-size: 13px; }
.pot-auth-kicker i { width: 7px; height: 7px; border-radius: 50%; background: #ff8a00; box-shadow: 0 0 8px #ff8a00; }
.pot-auth-h { margin: 16px 0 10px; font-family: var(--ps-disp); font-weight: 700; font-size: 38px; line-height: 1.1; letter-spacing: -.8px; color: var(--ps-txt); }
html[dir="rtl"] .pot-auth-h { letter-spacing: 0; line-height: 1.3; }
.pot-auth-h em { font-style: normal; background: var(--ps-gold); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pot-auth-p { margin: 0 0 20px; font-size: 15px; line-height: 1.55; color: var(--ps-dim); max-width: 42ch; }
.pot-auth-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.pot-auth-chips li { display: inline-flex; align-items: center; gap: 8px; padding: 8px 13px 8px 9px; border-radius: 12px; background: rgba(13,10,18,.6); border: 1px solid var(--ps-edge2); backdrop-filter: blur(8px); font-size: 13px; font-weight: 600; color: var(--ps-txt); }
.pac-ic { width: 24px; height: 24px; border-radius: 7px; display: grid; place-items: center; background: var(--ps-gold); box-shadow: 0 4px 10px rgba(240,170,48,.3); }
.pac-ic svg { width: 15px; height: 15px; fill: none; stroke: #1b1004; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

.pot-auth-form { display: flex; align-items: center; justify-content: center; padding: 34px 30px; margin: 0; background: radial-gradient(120% 70% at 100% 0%, rgba(255,138,0,.07), transparent 60%), #0e0b16; }
.pot-auth-form .card { width: 100%; max-width: 420px; margin: 0 !important; background: transparent !important; border: 0 !important; box-shadow: none !important; }
.pot-auth-form .card-body { padding: 0 !important; }
.pot-auth-form .card-footer { padding: 18px 0 0 !important; margin-top: 22px; background: transparent !important; border-top: 1px solid var(--ps-edge) !important; text-align: center; }
.pot-auth-form h6.h3 { font-family: var(--ps-disp); font-weight: 700; font-size: 30px; letter-spacing: -.5px; color: var(--ps-txt); margin-bottom: 6px; }
html[dir="rtl"] .pot-auth-form h6.h3 { letter-spacing: 0; }
.pot-auth-form .form-control-label { font-size: 13px; font-weight: 600; color: var(--ps-dim); }
.pot-auth-form .input-group-merge { border-radius: 14px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.10); transition: border-color .2s, box-shadow .2s; overflow: hidden; }
.pot-auth-form .input-group-merge:focus-within { border-color: rgba(255,180,61,.65); box-shadow: 0 0 0 4px rgba(255,138,0,.13); }
.pot-auth-form .input-group-merge .form-control, .pot-auth-form .input-group-merge .input-group-text, .pot-auth-form .input-group-merge .btn { background: transparent !important; border: 0 !important; box-shadow: none !important; min-height: 50px; }
.pot-auth-form .input-group-merge .form-control { font-size: 15px; color: var(--ps-txt); }
.pot-auth-form .input-group-text i, .pot-auth-form .btn-reveal-pw i { color: #ffbe55; }
.pot-auth-form #login { min-width: 150px; min-height: 48px; border-radius: 14px; font-family: var(--ps-disp); font-weight: 700; font-size: 16px; }

@media (max-width: 991px) {
    .pot-auth { grid-template-columns: minmax(0, 1fr); margin: 14px auto 28px; border-radius: 20px; }
    .pot-auth-art { min-height: 0; height: 250px; }
    .pot-auth-art::before { background: linear-gradient(180deg, rgba(7,3,16,.1), rgba(7,3,16,.85)) !important; }
    .pot-auth-copy { left: 20px; right: 20px; bottom: 18px; }
    .pot-auth-h { font-size: 26px; margin: 10px 0 6px; }
    .pot-auth-p { display: none; }
    .pot-auth-chips li { padding: 6px 10px 6px 7px; font-size: 12px; }
    .pot-auth-form { padding: 26px 20px 24px; }
}
@media (max-width: 575px) {
    .pot-auth { margin: 6px 0 22px; }
    .pot-auth-art { height: 210px; }
    .pot-auth-chips li:nth-child(3) { display: none; }
    .pot-auth-form #login { width: 100%; }
    .pot-auth-form .float-left { float: none !important; margin-bottom: 14px; }
    .pot-auth-form .text-right { text-align: start !important; }
}
@media (prefers-reduced-motion: reduce) { .pot-auth-img { animation: none; } }
.pot-auth-form .text-right label { position: relative; display: inline-flex; align-items: center; gap: 8px; margin: 0; padding-inline-start: 26px; font-size: 13.5px; color: var(--ps-dim); cursor: pointer; }
.pot-auth-form .text-right .form-check-input { position: absolute; inset-inline-start: 0; top: 50%; margin: -8px 0 0; width: 16px; height: 16px; accent-color: #f0aa30; }

.pot-auth-vid { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; opacity: 0; transition: opacity .8s ease; }
.pot-auth-vid.is-playing { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .pot-auth-vid { display: none; } }


/* ---------------- STORE: game library + clean cards ---------------- */
#order-standard_cart .pot-store-head h1 { font-family: var(--ps-disp); font-weight: 700; letter-spacing: -.6px; }
html[dir="rtl"] #order-standard_cart .pot-store-head h1 { letter-spacing: 0; }
#order-standard_cart .pot-store-tools { display: flex; align-items: center; gap: 12px; margin: 6px 0 18px; }
#order-standard_cart .pot-store-search { flex: 1; display: flex; align-items: center; gap: 10px; margin: 0; padding: 0 16px; min-height: 50px; border-radius: 14px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.10); transition: border-color .2s, box-shadow .2s; }
#order-standard_cart .pot-store-search:focus-within { border-color: rgba(255,180,61,.65); box-shadow: 0 0 0 4px rgba(255,138,0,.13); }
#order-standard_cart .pot-store-search i { color: #ffbe55; }
#order-standard_cart .pot-store-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--ps-txt); font-size: 15px; }
#order-standard_cart .pot-store-search input::placeholder { color: var(--ps-faint); }
#order-standard_cart .pot-store-count { flex: none; padding: 8px 13px; border-radius: 999px; font-family: var(--ps-disp); font-weight: 700; font-size: 13px; color: #ffcf6b; background: rgba(255,138,0,.08); border: 1px solid rgba(255,170,80,.3); }
#order-standard_cart .pot-store-empty { padding: 30px 0; text-align: center; color: var(--ps-dim); }

#order-standard_cart .pot-store-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
#order-standard_cart .pot-store-item[hidden] { display: none !important; }
#order-standard_cart .pot-store .product { height: 100%; margin: 0 !important; padding: 0 !important; display: flex; flex-direction: column; border-radius: 18px !important; overflow: hidden; background: var(--ps-glass) !important; border: 1px solid var(--ps-edge) !important; box-shadow: 0 12px 30px rgba(0,0,0,.28) !important; transition: transform .22s, border-color .22s, box-shadow .22s; }
#order-standard_cart .pot-store .product:hover { transform: translateY(-4px); border-color: rgba(255,180,61,.45) !important; box-shadow: 0 18px 40px rgba(0,0,0,.4), 0 0 0 1px rgba(255,180,61,.25) !important; }
#order-standard_cart .pot-store-art { position: relative; display: block; aspect-ratio: 460 / 215; overflow: hidden; background: #15111d; }
#order-standard_cart .pot-store-art img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s cubic-bezier(.2,.8,.2,1), filter .3s; filter: saturate(.92); }
#order-standard_cart .pot-store .product:hover .pot-store-art img { transform: scale(1.06); filter: saturate(1.08); }
#order-standard_cart .pot-store-art::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(7,3,16,0) 70%, rgba(14,11,22,.55)); }
#order-standard_cart .pot-store .product header { position: relative; z-index: 1; padding: 14px 18px 4px !important; margin: 0 !important; border: 0 !important; background: none !important; }

#order-standard_cart .pot-store .product header span:first-child { font-family: var(--ps-disp); font-weight: 700; font-size: 18px; line-height: 1.25; color: var(--ps-txt); text-shadow: 0 2px 8px rgba(0,0,0,.6); }
#order-standard_cart .pot-store .product-desc { flex: 1; padding: 6px 18px 0 !important; font-size: 12.5px; line-height: 1.5; color: var(--ps-dim); width: auto !important; float: none !important; }
#order-standard_cart .pot-store .product-desc p { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 6px; }
#order-standard_cart .pot-store .product-desc ul { margin: 0; padding: 0; list-style: none; }
#order-standard_cart .pot-store .product footer { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; padding: 14px 18px 18px !important; margin: 0 !important; border-top: 1px solid var(--ps-edge); background: none !important; float: none !important; width: auto !important; text-align: start !important; }
#order-standard_cart .pot-store .product-pricing { display: flex; flex-direction: column; line-height: 1.15; margin: 0 !important; text-align: start !important; }
#order-standard_cart .pot-store .product-pricing .pot-from { font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ps-faint); }
html[dir="rtl"] #order-standard_cart .pot-store .product-pricing .pot-from { letter-spacing: 0; text-transform: none; font-size: 12px; }
#order-standard_cart .pot-store .product-pricing .price { font-family: var(--ps-disp); font-weight: 700; font-size: 24px; color: var(--ps-txt) !important; letter-spacing: -.4px; }
#order-standard_cart .pot-store .product-pricing .pot-cycle { font-size: 12px; color: #ffbe55; }
#order-standard_cart .pot-store .product-pricing small { color: var(--ps-faint); }
#order-standard_cart .pot-store .btn-order-now { flex: none; display: inline-flex; align-items: center; gap: 8px; padding: 11px 18px !important; border-radius: 13px !important; font-family: var(--ps-disp); font-weight: 700; font-size: 14px !important; white-space: nowrap; }
@media (max-width: 575px) {
    #order-standard_cart .pot-store-grid { grid-template-columns: minmax(0, 1fr); gap: 14px; }
    #order-standard_cart .pot-store-count { display: none; }
}
@media (prefers-reduced-motion: reduce) { #order-standard_cart .pot-store .product, #order-standard_cart .pot-store-art img { transition: none; } }


/* ---------------- PASSWORD RESET (shares the auth split) ---------------- */
.pot-auth--reset .pot-auth-form > .card { width: 100%; max-width: 420px; margin: 0 !important; background: transparent !important; border: 0 !important; box-shadow: none !important; }
.pot-auth--reset .pot-auth-form > .card > .card-body { padding: 0 !important; }
.pot-auth--reset .pot-auth-form h6, .pot-auth--reset .pot-auth-form h3 { font-family: var(--ps-disp); font-weight: 700; font-size: 28px; letter-spacing: -.4px; color: var(--ps-txt); }
.pot-auth--reset .pot-auth-form .input-group-merge, .pot-auth--reset .pot-auth-form .form-control { border-radius: 14px; }
.pot-auth--reset .pot-auth-form .form-control { min-height: 50px; background: rgba(255,255,255,.04) !important; border: 1px solid rgba(255,255,255,.10) !important; }
.pot-auth--reset .pot-auth-form .btn-primary { min-height: 48px; min-width: 150px; border-radius: 14px; font-family: var(--ps-disp); font-weight: 700; font-size: 16px; }
@media (max-width: 575px) { .pot-auth--reset .pot-auth-form .btn-primary { width: 100%; } }

/* ---------------- REGISTER: welcome hero + numbered sections ---------------- */
.pot-reg-hero { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 24px; margin: 4px 0 22px; padding: 26px 28px; border-radius: 20px; overflow: hidden; border: 1px solid var(--ps-edge);
    background: radial-gradient(90% 140% at 100% 0%, rgba(255,138,0,.16), transparent 60%), url('../img/pot-auth-poster.webp') right center / cover no-repeat, #0e0b16; }
html[dir="rtl"] .pot-reg-hero { background: radial-gradient(90% 140% at 0% 0%, rgba(255,138,0,.16), transparent 60%), url('../img/pot-auth-poster.webp') left center / cover no-repeat, #0e0b16; }
.pot-reg-hero::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(14,11,22,.97) 35%, rgba(14,11,22,.55) 75%, rgba(14,11,22,.25)); }
html[dir="rtl"] .pot-reg-hero::before { background: linear-gradient(270deg, rgba(14,11,22,.97) 35%, rgba(14,11,22,.55) 75%, rgba(14,11,22,.25)); }
.pot-reg-hero > * { position: relative; }
.pot-reg-h { margin: 12px 0 8px; font-family: var(--ps-disp); font-weight: 700; font-size: 32px; line-height: 1.15; letter-spacing: -.6px; color: var(--ps-txt); }
html[dir="rtl"] .pot-reg-h { letter-spacing: 0; line-height: 1.35; }
.pot-reg-h em { font-style: normal; background: var(--ps-gold); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pot-reg-p { margin: 0; max-width: 52ch; font-size: 14.5px; line-height: 1.55; color: var(--ps-dim); }
.pot-reg-steps { display: flex; gap: 10px; margin: 0; padding: 0; list-style: none; flex: none; }
.pot-reg-steps li { display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 74px; padding: 12px 10px; border-radius: 14px; background: rgba(13,10,18,.66); border: 1px solid var(--ps-edge2); backdrop-filter: blur(8px); font-size: 12.5px; font-weight: 600; color: var(--ps-txt); }
.pot-reg-steps b { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-family: var(--ps-disp); font-size: 15px; color: #1b1004; background: var(--ps-gold); box-shadow: 0 4px 12px rgba(240,170,48,.35); }
body[data-pot-tpl="clientregister"] #frmCheckout { counter-reset: potreg; }
body[data-pot-tpl="clientregister"] #frmCheckout > .card, body[data-pot-tpl="clientregister"] #frmCheckout > div > .card { border-radius: 18px !important; background: var(--ps-glass) !important; border: 1px solid var(--ps-edge) !important; }
body[data-pot-tpl="clientregister"] #frmCheckout .card-title { display: flex; align-items: center; gap: 12px; font-family: var(--ps-disp); font-weight: 700; font-size: 19px; color: var(--ps-txt); }
body[data-pot-tpl="clientregister"] #frmCheckout .card-title::before { counter-increment: potreg; content: counter(potreg); flex: none; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-size: 15px; color: #1b1004; background: var(--ps-gold); box-shadow: 0 4px 12px rgba(240,170,48,.3); }
body[data-pot-tpl="clientregister"] #frmCheckout .card-title small, body[data-pot-tpl="clientregister"] #frmCheckout .card-title br { display: none; }
body[data-pot-tpl="clientregister"] #frmCheckout .form-control, body[data-pot-tpl="clientregister"] #frmCheckout .custom-select { min-height: 48px; border-radius: 12px; }
body[data-pot-tpl="clientregister"] #frmCheckout input[type="submit"].btn-primary { min-height: 54px; min-width: 240px; border-radius: 15px; font-family: var(--ps-disp); font-weight: 700; font-size: 17px; }
@media (max-width: 767px) {
    .pot-reg-hero { flex-direction: column; align-items: flex-start; padding: 20px; }
    .pot-reg-h { font-size: 25px; }
    .pot-reg-steps { width: 100%; }
    .pot-reg-steps li { flex: 1; min-width: 0; }
    body[data-pot-tpl="clientregister"] #frmCheckout input[type="submit"].btn-primary { width: 100%; min-width: 0; }
}

/* ---------------- OPEN A TICKET: department picture tiles ---------------- */
.pot-depts { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.pot-dept { position: relative; display: flex; align-items: center; gap: 16px; padding: 20px 18px; border-radius: 18px; text-decoration: none !important; color: var(--ps-txt) !important; background: var(--ps-glass); border: 1px solid var(--ps-edge); box-shadow: 0 10px 26px rgba(0,0,0,.25); transition: transform .2s, border-color .2s, box-shadow .2s; }
.pot-dept:hover { transform: translateY(-3px); border-color: rgba(255,180,61,.5); box-shadow: 0 16px 34px rgba(0,0,0,.35), 0 0 0 1px rgba(255,180,61,.25); }
.pot-dept-ic { flex: none; width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: var(--ps-gold); box-shadow: 0 8px 20px rgba(240,170,48,.3); }
.pot-dept-ic svg { width: 28px; height: 28px; fill: none; stroke: #1b1004; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pot-dept-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.pot-dept-txt b { font-family: var(--ps-disp); font-weight: 700; font-size: 17px; }
.pot-dept-txt small { font-size: 13px; line-height: 1.45; color: var(--ps-dim); }
.pot-dept-go { flex: none; color: #ffbe55; transition: transform .2s; }
.pot-dept:hover .pot-dept-go { transform: translateX(4px); }
html[dir="rtl"] .pot-dept-go { transform: scaleX(-1); }
html[dir="rtl"] .pot-dept:hover .pot-dept-go { transform: scaleX(-1) translateX(4px); }
body[data-pot-tpl="supportticketsubmit-stepone"] .card-title { font-family: var(--ps-disp); font-weight: 700; font-size: 26px; }

/* ---------------- ANNOUNCEMENTS: calendar tile ---------------- */
.pot-ann { display: flex; gap: 18px; align-items: flex-start; padding: 20px !important; margin-bottom: 14px !important; border-radius: 18px; background: var(--ps-glass); border: 1px solid var(--ps-edge) !important; }
.pot-ann-body { flex: 1; min-width: 0; }
.pot-ann-body h1 { font-family: var(--ps-disp); font-weight: 700; font-size: 20px !important; line-height: 1.3; margin-top: 0; }
.pot-ann-body h1 a { color: var(--ps-txt) !important; }
.pot-ann-body .list-inline { display: none; }
.pot-cal { flex: none; width: 70px; border-radius: 14px; overflow: hidden; text-align: center; background: #fbf6ff; box-shadow: 0 8px 20px rgba(0,0,0,.35); }
.pot-cal-m { display: block; padding: 4px 0; font-family: var(--ps-disp); font-weight: 700; font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: #fff; background: linear-gradient(120deg, #d68f12, #f0aa30); }
html[dir="rtl"] .pot-cal-m { letter-spacing: 0; font-size: 12.5px; }
.pot-cal-d { display: block; font-family: var(--ps-disp); font-size: 30px; line-height: 1.15; color: #1b1004; padding-top: 2px; }
.pot-cal-y { display: block; font-size: 10.5px; font-weight: 600; color: #6b5b4a; padding-bottom: 6px; }
@media (max-width: 575px) { .pot-ann { gap: 12px; padding: 16px !important; } .pot-cal { width: 58px; } .pot-cal-d { font-size: 24px; } }


/* ---------------- DASHBOARD: greeting hero + status light + calm stat tiles ---------------- */
.pot-hello { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: 0 0 18px; padding: 26px 28px; border-radius: 22px; overflow: hidden; border: 1px solid var(--ps-edge);
    background: radial-gradient(90% 140% at 100% 0%, rgba(255,138,0,.16), transparent 60%), url('../img/pot-auth-poster.webp') right center / cover no-repeat, #0e0b16; }
html[dir="rtl"] .pot-hello { background: radial-gradient(90% 140% at 0% 0%, rgba(255,138,0,.16), transparent 60%), url('../img/pot-auth-poster.webp') left center / cover no-repeat, #0e0b16; }
.pot-hello::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(14,11,22,.97) 40%, rgba(14,11,22,.6) 80%, rgba(14,11,22,.35)); }
html[dir="rtl"] .pot-hello::before { background: linear-gradient(270deg, rgba(14,11,22,.97) 40%, rgba(14,11,22,.6) 80%, rgba(14,11,22,.35)); }
.pot-hello > * { position: relative; }
.pot-hello-h { margin: 12px 0 12px; font-family: var(--ps-disp); font-weight: 700; font-size: 32px; line-height: 1.15; letter-spacing: -.6px; color: var(--ps-txt); }
html[dir="rtl"] .pot-hello-h { letter-spacing: 0; line-height: 1.35; }
.pot-hello-h em { font-style: normal; background: var(--ps-gold); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pot-hello-state { display: inline-flex; align-items: center; flex-wrap: nowrap; gap: 10px; margin: 0; padding: 9px 14px; border-radius: 14px; font-size: 14px; font-weight: 600; text-decoration: none !important; background: rgba(13,10,18,.6); border: 1px solid var(--ps-edge2); backdrop-filter: blur(8px); }
.pot-hello-state i { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.pot-hello-state.is-ok { color: #c9f5e2; } .pot-hello-state.is-ok i { background: #3fd69a; box-shadow: 0 0 0 4px rgba(63,214,154,.15), 0 0 12px #3fd69a; animation: ps-breathe 2.4s ease-in-out infinite; }
.pot-hello-state.is-warn { color: #ffe2b0; border-color: rgba(255,180,61,.45); } .pot-hello-state.is-warn i { background: #ffb43d; box-shadow: 0 0 12px #ff8a00; animation: ps-breathe 1.2s ease-in-out infinite; }
.pot-hello-state.is-info { color: var(--ps-txt); } .pot-hello-state.is-info i { background: #ffcf6b; }
.pot-hello-state b { padding: 5px 12px; border-radius: 10px; font-family: var(--ps-disp); font-size: 13px; color: #1b1004; background: var(--ps-gold); }
@keyframes ps-breathe { 50% { transform: scale(.75); opacity: .7; } }
.pot-hello-orb { position: relative; flex: none; width: 132px; height: 132px; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; text-decoration: none !important;
    background: radial-gradient(circle at 35% 30%, #2d2639, #13101c 70%); border: 2px solid rgba(63,214,154,.55); box-shadow: 0 0 30px rgba(63,214,154,.18), inset 0 0 24px rgba(0,0,0,.6); }
.pot-hello-orb.is-warn { border-color: rgba(255,180,61,.6); box-shadow: 0 0 30px rgba(255,138,0,.2), inset 0 0 24px rgba(0,0,0,.6); }
.pot-hello-orb b { font-family: var(--ps-disp); font-size: 44px; line-height: 1; color: var(--ps-txt); }
.pot-hello-orb small { margin-top: 4px; font-size: 11.5px; font-weight: 600; color: var(--ps-dim); }
.pot-orb-ring { position: absolute; inset: -2px; border-radius: 50%; border: 2px solid rgba(63,214,154,.55); animation: ps-orb 3s ease-out infinite; }
.pot-hello-orb.is-warn .pot-orb-ring { border-color: rgba(255,180,61,.6); }
.pot-orb-ring2 { animation-delay: 1.5s; }
@keyframes ps-orb { from { transform: scale(1); opacity: .9; } to { transform: scale(1.35); opacity: 0; } }

/* stat tiles: calm cards, gold icon chip, big number */
body[data-pot-tpl="clientareahome"] .tiles .row { margin: 0 -6px; }
body[data-pot-tpl="clientareahome"] .tiles .row > [class*="col-"] { padding: 6px; }
body[data-pot-tpl="clientareahome"] .tiles .tile { position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: 118px; padding: 18px 18px 16px !important; border-radius: 18px !important; background: var(--ps-glass) !important; border: 1px solid var(--ps-edge) !important; overflow: hidden; transition: transform .2s, border-color .2s; }
body[data-pot-tpl="clientareahome"] .tiles .tile:hover { transform: translateY(-3px); border-color: rgba(255,180,61,.45) !important; }
body[data-pot-tpl="clientareahome"] .tiles .tile > i { position: absolute !important; top: 16px; right: 16px !important; left: auto !important; width: 42px; height: 42px; border-radius: 13px; display: grid !important; place-items: center; font-size: 18px !important; color: #1b1004 !important; background: var(--ps-gold); box-shadow: 0 6px 16px rgba(240,170,48,.3); opacity: 1 !important; transform: none !important; }
html[dir="rtl"] body[data-pot-tpl="clientareahome"] .tiles .tile > i { right: auto !important; left: 16px !important; }
body[data-pot-tpl="clientareahome"] .tiles .tile .stat { font-family: var(--ps-disp); font-weight: 700; font-size: 38px !important; line-height: 1; color: var(--ps-txt) !important; }
body[data-pot-tpl="clientareahome"] .tiles .tile .title { margin-top: 6px; font-size: 12.5px !important; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ps-dim) !important; }
html[dir="rtl"] body[data-pot-tpl="clientareahome"] .tiles .tile .title { letter-spacing: 0; text-transform: none; font-size: 14px !important; }
body[data-pot-tpl="clientareahome"] .tiles .tile .highlight { display: none !important; }

/* status pills: WHMCS pins .div-service-status to the widest label (87px) -> "ACT..." on phones */
body[data-pot-tpl="clientareahome"] .div-service-status { width: auto !important; min-width: 0; }
body[data-pot-tpl="clientareahome"] .div-service-status .label { max-width: none !important; overflow: visible !important; text-overflow: clip !important; white-space: nowrap; }
/* collapsed sidebar card (phones): hide its footer button too, so only the tappable header shows */
.card-sidebar:has(.card-minimise.minimised) > .card-footer { display: none; }

@media (max-width: 767px) {
    .pot-hello { flex-direction: column-reverse; align-items: flex-start; padding: 20px; gap: 14px; }
    .pot-hello-h { font-size: 25px; margin: 8px 0 10px; }
    .pot-hello-orb { width: 96px; height: 96px; align-self: flex-end; margin-bottom: -60px; }
    html[dir="rtl"] .pot-hello-orb { align-self: flex-start; }
    .pot-hello-orb b { font-size: 32px; }
    .pot-hello-orb small { font-size: 10px; }
    .pot-hello-copy { padding-inline-end: 0; }
    body[data-pot-tpl="clientareahome"] .tiles .tile { min-height: 104px; }
    body[data-pot-tpl="clientareahome"] .tiles .tile .stat { font-size: 32px !important; }
}
@media (prefers-reduced-motion: reduce) { .pot-orb-ring, .pot-hello-state i { animation: none; } }
body[data-pot-tpl="clientareahome"] .div-service-status { margin-inline-end: 12px; }
.pot-hello-h em { text-transform: capitalize; }
/* r89d: the primary quick-action icon had a SQUARE box-shadow behind its clipped hexagon -> hexagon-shaped glow */
.pot-action-primary .pot-action-icon { box-shadow: none !important; filter: drop-shadow(0 6px 14px rgba(216,150,20,.45)); }


/* ---------------- LISTS -> CARDS ON PHONES (invoices, tickets…) + rubber-stamp statuses ---------------- */
.pot-cards-table .label.status { display: inline-block; padding: 4px 10px; border-radius: 8px; border: 2px solid currentColor; background: transparent !important; font-family: var(--ps-disp); font-weight: 700; font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; transform: rotate(-4deg); box-shadow: none !important; }
html[dir="rtl"] .pot-cards-table .label.status { letter-spacing: 0; font-size: 12.5px; transform: rotate(4deg); }
.pot-cards-table .label.status.status-paid, .pot-cards-table .label.status.status-active, .pot-cards-table .label.status.status-answered { color: #3fd69a !important; }
.pot-cards-table .label.status.status-unpaid, .pot-cards-table .label.status.status-open, .pot-cards-table .label.status.status-customer-reply { color: #ffb43d !important; }
.pot-cards-table .label.status.status-overdue { color: #ff6b6b !important; }
.pot-cards-table .label.status.status-cancelled, .pot-cards-table .label.status.status-refunded, .pot-cards-table .label.status.status-closed, .pot-cards-table .label.status.status-collections { color: #9a90b0 !important; }
@media (max-width: 767px) {
    .pot-cards-table, .pot-cards-table tbody { display: block; width: 100% !important; }
    .pot-cards-table thead { display: none; }
    #main-body table.table-list.pot-cards-table tbody tr { clip-path: none !important; background: var(--ps-glass) !important; border: 1px solid var(--ps-edge) !important; border-radius: 18px !important; }
    #main-body table.table-list.pot-cards-table tbody td::before, #main-body table.table-list.pot-cards-table tbody td::after { box-shadow: none !important; }
    .pot-cards-table tbody tr { position: relative; display: grid !important; grid-template-columns: 1fr auto; grid-template-areas: "num st" "tot tot" "date due"; gap: 4px 12px; margin: 0 0 12px; padding: 16px 16px 14px !important; border-radius: 18px; background: var(--ps-glass) !important; border: 1px solid var(--ps-edge) !important; box-shadow: 0 10px 24px rgba(0,0,0,.25); cursor: pointer; }
    #main-body .pot-cards-table tbody tr td, #main-body table.table-list.pot-cards-table tbody td { background: none !important; box-shadow: none !important; border: 0 !important; border-radius: 0 !important; }
    .pot-cards-table tbody tr td { display: block; padding: 0 !important; border: 0 !important; background: transparent !important; text-align: start !important; white-space: normal; }
    .pot-cards-table .pot-iv-num { grid-area: num; font-family: var(--ps-disp); font-weight: 700; font-size: 15px; color: var(--ps-dim); }
    .pot-cards-table .pot-iv-num::before { content: '#'; color: var(--ps-faint); }
    .pot-cards-table .pot-iv-st { grid-area: st; align-self: start; }
    .pot-cards-table .pot-iv-total { grid-area: tot; margin: 6px 0 8px; font-family: var(--ps-disp); font-weight: 700; font-size: 28px; letter-spacing: -.5px; color: var(--ps-txt); }
    .pot-cards-table .pot-iv-date { grid-area: date; }
    .pot-cards-table .pot-iv-due { grid-area: due; text-align: end !important; }
    .pot-cards-table .pot-iv-date, .pot-cards-table .pot-iv-due { font-size: 13px; color: var(--ps-txt); }
    .pot-cards-table .pot-iv-date::before, .pot-cards-table .pot-iv-due::before { content: attr(data-label); display: block; font-size: 11px; font-weight: 600; color: var(--ps-faint); }
    .pot-cards-table + .dataTables_info, .dataTables_wrapper:has(.pot-cards-table) .dataTables_scroll, .table-container:has(.pot-cards-table) { overflow: visible !important; }
    .table-container:has(.pot-cards-table) { overflow-x: visible !important; }
}

@media (max-width: 767px) {
    .pot-cards--tickets tbody tr { grid-template-areas: "sub st" "dept last" !important; }
    .pot-cards--tickets .pot-tk-sub { grid-area: sub; }
    .pot-cards--tickets .pot-tk-sub a { display: flex; flex-direction: column; gap: 3px; border: 0 !important; padding: 0 !important; text-decoration: none !important; }
    .pot-cards--tickets .pot-tk-sub .ticket-number { font-family: var(--ps-disp); font-size: 12.5px; font-weight: 700; color: var(--ps-faint); }
    .pot-cards--tickets .pot-tk-sub .ticket-subject { font-family: var(--ps-disp); font-weight: 700; font-size: 17px; line-height: 1.3; color: var(--ps-txt); }
    .pot-cards--tickets .pot-tk-sub .ticket-subject.unread::before { content: ''; display: inline-block; width: 9px; height: 9px; margin-inline-end: 7px; border-radius: 50%; background: #ffb43d; box-shadow: 0 0 10px #ff8a00; vertical-align: middle; }
    .pot-cards--tickets .pot-tk-st { grid-area: st; align-self: start; }
    .pot-cards--tickets .pot-tk-dept { grid-area: dept; margin-top: 10px; }
    .pot-cards--tickets .pot-tk-last { grid-area: last; margin-top: 10px; text-align: end !important; }
    .pot-cards--tickets .pot-tk-dept, .pot-cards--tickets .pot-tk-last { font-size: 13px; color: var(--ps-txt); }
    .pot-cards--tickets .pot-tk-dept::before, .pot-cards--tickets .pot-tk-last::before { content: attr(data-label); display: block; font-size: 11px; font-weight: 600; color: var(--ps-faint); }
}
@media (max-width: 767px) { #main-body table.table-list.pot-cards-table tbody tr:hover td, #main-body table.table-list.pot-cards-table tbody tr.unread td { background: none !important; box-shadow: none !important; } #main-body table.table-list.pot-cards-table tbody tr:hover { border-color: rgba(255,180,61,.45) !important; } }
@media (max-width: 767px) { #main-body table.table-list.pot-cards-table tbody tr:has(.ticket-subject.unread) td { background: none !important; } #main-body table.table-list.pot-cards-table tbody tr:has(.ticket-subject.unread) { background: linear-gradient(160deg, rgba(255,138,0,.10), rgba(255,138,0,.02)) !important; border-color: rgba(255,180,61,.4) !important; } }


/* ---------------- SERVICE DETAILS: facts as tiles (small label, big value) ---------------- */
.pot-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; text-align: start; }
.pot-fact { display: flex; flex-direction: column; gap: 4px; padding: 14px 15px; border-radius: 14px; background: rgba(255,255,255,.035); border: 1px solid var(--ps-edge); min-width: 0; }
.pot-fact span { font-size: 11.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ps-faint); }
html[dir="rtl"] .pot-fact span { letter-spacing: 0; text-transform: none; font-size: 12.5px; }
.pot-fact b { font-family: var(--ps-disp); font-weight: 700; font-size: 17px; line-height: 1.25; color: var(--ps-txt); overflow-wrap: anywhere; }
.pot-fact.is-money b { color: #ffcf6b; }
.pot-fact.is-wide { grid-column: 1 / -1; }
.pot-fact.is-alert { border-color: rgba(255,107,107,.45); background: rgba(255,107,107,.06); }
.pot-fact.is-alert b { color: #ffb0b0; }
@media (max-width: 767px) { .product-details .row > [class*="col-md-6"] + [class*="col-md-6"] { margin-top: 16px; } }


/* ---------------- INVOICE VIEW (phones): stack item rows, never overflow ---------------- */
@media (max-width: 575px) {
    .pot-inv-tbl, .pot-inv-tbl tbody, .pot-inv-tbl tr, .pot-inv-tbl td { display: block; width: 100% !important; }
    .pot-inv-tbl thead { display: none; }
    .pot-inv-tbl tbody tr { padding: 12px 0; border-bottom: 1px solid var(--ps-edge); }
    .pot-inv-tbl td { padding: 0 !important; border: 0 !important; text-align: start !important; }
    .pot-inv-tbl td.desc { font-size: 13px; line-height: 1.55; color: var(--ps-dim); overflow-wrap: anywhere; }
    .pot-inv-tbl td.amt { margin-top: 6px; text-align: end !important; font-family: var(--ps-disp); font-weight: 700; font-size: 17px; color: var(--ps-txt); }
    .pot-inv-card { overflow-wrap: anywhere; }
}


/* ---------------- ACCOUNT & GENERIC PAGES: consistent forms, headings, phone-safe tables ---------------- */
#main-body .primary-content .card-title, #main-body .primary-content h3.card-title { font-family: var(--ps-disp); font-weight: 700; letter-spacing: -.2px; color: var(--ps-txt); }
html[dir="rtl"] #main-body .primary-content .card-title { letter-spacing: 0; }
#main-body .primary-content .form-control, #main-body .primary-content .custom-select, #main-body .primary-content select.form-control { min-height: 46px; border-radius: 12px !important; }
#main-body .primary-content textarea.form-control { min-height: 120px; }
#main-body .primary-content .form-control:focus { border-color: rgba(255,180,61,.6) !important; box-shadow: 0 0 0 3px rgba(255,138,0,.14) !important; }
#main-body .primary-content label, #main-body .primary-content .control-label { font-size: 13px; font-weight: 600; color: var(--ps-dim); }
#main-body .primary-content .btn-primary, #main-body .primary-content input[type="submit"].btn-primary { min-height: 46px; border-radius: 13px; font-family: var(--ps-disp); font-weight: 700; }
/* phones: a table that is wider than its card scrolls INSIDE the card instead of being cut off */
@media (max-width: 767px) {
    #main-body .card-body table.table:not(.pot-cards-table):not(.pot-inv-tbl), #main-body .table-container table.table:not(.pot-cards-table) { display: block; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
    #main-body .primary-content .btn-primary, #main-body .primary-content input[type="submit"].btn-primary { width: 100%; }
    #main-body .primary-content .btn-group > .btn-primary { width: auto; }
}


/* ---------------- r89f final audit fixes (contrast) ---------------- */
.pot-cal-m { color: #1b1004 !important; }
#order-standard_cart .btn-continue-shopping, .btn-continue-shopping { color: #ffbe55 !important; font-weight: 600; }
#order-standard_cart .btn-continue-shopping:hover, .btn-continue-shopping:hover { color: #ffcf6b !important; }
.alert .alert-link, .alert-warning .alert-link { color: #ffcf6b !important; text-decoration: underline; text-underline-offset: 3px; }
/* r89g: WHMCS pins the dashboard status pill to width:3rem (48px) -> "ACTIVE" spilled past its border on phones. Size it to its text. */
body[data-pot-tpl="clientareahome"] .div-service-status .label:not(.label-placeholder) { width: auto !important; min-width: 0 !important; padding: 4px 10px !important; text-align: center; }

/* ==========================================================================
   UPGRADE STUDIO (r90) — upgrade.php / upgradesummary + the service-page strip.
   Same language as the configurator: deep panels, calm glass, gold only for what
   is chosen or lit, hexagon marks, everyday pictures that move with meaning.
   ========================================================================== */
html.pupg-on .pot-upg-native { display: none !important; }
html.pupg-on #main-body .col-lg-4.col-xl-3:has(> .sidebar), html.pupg-on #main-body .sidebar-secondary { display: none !important; }
html.pupg-on #main-body .primary-content { flex: 0 0 100%; max-width: 100%; }
.pupg[hidden] { display: none !important; }
.pupg {
    --pcx-tile: linear-gradient(180deg, #1f1a29, #16121e);
    --pcx-tile-hi: linear-gradient(180deg, rgba(255,150,40,.20), rgba(255,138,0,.05) 70%);
    --pcx-edge: rgba(255,255,255,.08); --pcx-edge2: rgba(255,255,255,.15);
    --pcx-gold: linear-gradient(120deg, #d68f12, #f0aa30 50%, #ffce6b);
    --pcx-txt: #fbf6ff; --pcx-dim: #c3b9d8; --pcx-faint: #9a90b0; --pcx-amber: #ffbe55; --pcx-green: #3fd69a; --pcx-off: #2b2535;
    --pu-panel: radial-gradient(90% 140% at 100% 0%, rgba(255,138,0,.10), transparent 60%), linear-gradient(180deg, #15111d, #0e0b16);
    position: relative; max-width: 1180px; margin: 0 auto 32px; color: var(--pcx-txt);
}
html[dir="rtl"] .pupg { --pu-panel: radial-gradient(90% 140% at 0% 0%, rgba(255,138,0,.10), transparent 60%), linear-gradient(180deg, #15111d, #0e0b16); }
.pupg *, .pupg *::before, .pupg *::after { box-sizing: border-box; }
.pupg h1, .pupg h2, .pupg h3 { color: var(--pcx-txt); }

/* ---------- icons ---------- */
.pupg-ic { width: 20px; height: 20px; flex: none; fill: none; stroke: url(#pupgG); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.pupg-ic.r-ar { width: 14px; height: 14px; stroke: var(--pcx-faint); }
html[dir="rtl"] .pupg-ic.r-ar, html[dir="rtl"] .pupg-go .pupg-ic, html[dir="rtl"] .pupg-path-go .pupg-ic, html[dir="rtl"] .pupg-back .pupg-ic, html[dir="rtl"] .pupg-delta .pupg-ic { transform: scaleX(-1); }
.pupg-hx { position: relative; display: inline-grid; place-items: center; flex: none; width: 46px; height: 52px; filter: drop-shadow(0 6px 14px rgba(216,150,20,.32)); }
.pupg-hx > span { position: absolute; inset: 0; display: grid; place-items: center; clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); background: var(--pcx-gold); }
.pupg-hx .pupg-ic { width: 22px; height: 22px; stroke: #fff; stroke-width: 2.1; filter: drop-shadow(0 1px 1px rgba(74,42,0,.6)); }

/* ---------- hero ---------- */
.pupg-hero { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 22px; padding: 22px 24px; border-radius: 22px; overflow: hidden;
    background: var(--pu-panel); border: 1px solid var(--pcx-edge); box-shadow: 0 18px 40px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.05); }
.pupg-art { display: block; width: 184px; aspect-ratio: 460 / 215; border-radius: 14px; overflow: hidden; box-shadow: 0 12px 28px rgba(0,0,0,.5), 0 0 0 1px rgba(255,255,255,.1); }
.pupg-art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pupg-art.is-icon { width: auto; aspect-ratio: auto; overflow: visible; box-shadow: none; padding: 0 6px; }
.pupg-art.is-icon .pupg-hx { width: 64px; height: 72px; }
.pupg-art.is-icon .pupg-hx .pupg-ic { width: 30px; height: 30px; }
.pupg-kicker { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px; border-radius: 999px; border: 1px solid rgba(255,170,80,.32); background: rgba(255,138,0,.08); color: #ffcf6b; font-family: 'JetBrains Mono', monospace; font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; }
.pupg-kicker::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #ff8a00; box-shadow: 0 0 8px #ff8a00; }
html[dir="rtl"] .pupg-kicker { font-family: 'Tajawal','Cairo',sans-serif; letter-spacing: 0; font-size: 13px; }
.pupg-title { margin: 10px 0 2px; font-family: var(--ps-disp, 'Space Grotesk', sans-serif); font-weight: 700; font-size: 30px; line-height: 1.15; letter-spacing: -.5px; }
html[dir="rtl"] .pupg-title { letter-spacing: 0; line-height: 1.35; }
.pupg-title small { font-size: 15px; font-weight: 600; letter-spacing: 0; color: var(--pcx-faint); margin-inline-start: 6px; }
.pupg-domain { font-family: 'JetBrains Mono', monospace; font-size: 12.5px; color: var(--pcx-dim); direction: ltr; unicode-bidi: isolate; display: inline-block; }
.pupg-bill { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 14px; }
.pupg-bill-amt { display: inline-flex; align-items: baseline; gap: 6px; padding: 8px 14px; border-radius: 12px; background: rgba(255,255,255,.04); border: 1px solid var(--pcx-edge); font-size: 13.5px; color: var(--pcx-dim); }
.pupg-bill-amt b { font-family: var(--ps-disp, 'Space Grotesk', sans-serif); font-size: 19px; color: var(--pcx-txt); font-variant-numeric: tabular-nums; }
.pupg-ring { position: relative; width: 44px; height: 44px; flex: none; }
.pupg-ring svg { width: 44px; height: 44px; transform: rotate(-90deg); }
.pupg-ring .r-bg { fill: none; stroke: var(--pcx-off); stroke-width: 4; }
.pupg-ring .r-fg { fill: none; stroke: url(#pupgG); stroke-width: 4; stroke-linecap: round; animation: pupg-ring 1.2s .2s cubic-bezier(.3,1,.4,1) forwards; }
@keyframes pupg-ring { to { stroke-dashoffset: var(--off); } }
.pupg-ring b { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--ps-disp, 'Space Grotesk', sans-serif); font-size: 13px; }
.pupg-renew { display: flex; flex-direction: column; font-size: 13.5px; color: var(--pcx-dim); line-height: 1.35; }
.pupg-renew b { color: var(--pcx-txt); }
.pupg-renew small { font-size: 12px; color: var(--pcx-faint); }
.pupg-back { align-self: start; display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--pcx-dim) !important; text-decoration: none !important; background: rgba(255,255,255,.04); border: 1px solid var(--pcx-edge); transition: color .2s, border-color .2s; white-space: nowrap; }
.pupg-back:hover { color: var(--pcx-txt) !important; border-color: var(--pcx-edge2); }
.pupg-back .pupg-ic { width: 16px; height: 16px; stroke: currentColor; }

/* ---------- the question + three paths ---------- */
.pupg-q { margin: 28px 0 0; }
.pupg-q > h2 { margin: 0 0 14px; font-family: var(--ps-disp, 'Space Grotesk', sans-serif); font-weight: 700; font-size: 22px; letter-spacing: -.3px; }
html[dir="rtl"] .pupg-q > h2 { letter-spacing: 0; }
.pupg-paths { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; }
.pupg-path { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 16px 18px 18px; border-radius: 20px; text-align: start; font: inherit; color: var(--pcx-txt); cursor: pointer;
    background: radial-gradient(120% 90% at 100% 0%, rgba(255,138,0,.05), transparent 55%), linear-gradient(160deg, rgba(255,255,255,.055), rgba(255,255,255,.018));
    border: 1px solid var(--pcx-edge); box-shadow: 0 14px 30px rgba(0,0,0,.28), inset 0 1px 0 rgba(255,255,255,.05); transition: transform .22s, border-color .22s, box-shadow .25s, background .25s; }
.pupg-path:hover { transform: translateY(-3px); border-color: var(--pcx-edge2); }
.pupg-path:focus-visible { outline: 2px solid #ffcf6b; outline-offset: 3px; }
.pupg-path.on { border-color: #ffb43d; background: radial-gradient(110% 80% at 50% 0%, rgba(255,150,40,.20), transparent 65%), linear-gradient(160deg, rgba(255,255,255,.06), rgba(255,255,255,.02)); box-shadow: 0 0 0 1px rgba(255,180,61,.5), 0 18px 38px rgba(255,138,0,.18); transform: translateY(-3px); }
.pupg-path-art { display: block; width: 132px; height: 88px; margin-bottom: 4px; }
.pupg-path-txt { display: flex; flex-direction: column; gap: 5px; }
.pupg-path-txt > b { font-family: var(--ps-disp, 'Space Grotesk', sans-serif); font-size: 19px; font-weight: 700; letter-spacing: -.2px; }
.pupg-path-txt > span { font-size: 13.5px; line-height: 1.45; color: var(--pcx-dim); max-width: 36ch; }
html[dir="rtl"] .pupg-path-txt > span { font-size: 14.5px; }
.pupg-hint { display: none; align-self: flex-start; margin-top: 6px; padding: 4px 11px; border-radius: 999px; font-style: normal; font-family: var(--ps-disp, 'Space Grotesk', sans-serif); font-size: 12px; font-weight: 700; color: #ffcf6b; background: rgba(255,138,0,.10); box-shadow: inset 0 0 0 1px rgba(255,180,61,.3); }
.pupg-hint.on { display: inline-flex; }
.pupg-path-go { position: absolute; top: 16px; inset-inline-end: 16px; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.05); border: 1px solid var(--pcx-edge); transition: background .25s, border-color .25s, transform .25s; }
.pupg-path-go .pupg-ic { width: 16px; height: 16px; stroke: var(--pcx-dim); }
.pupg-path.on .pupg-path-go { background: var(--pcx-gold); border-color: transparent; transform: rotate(90deg); }
html[dir="rtl"] .pupg-path.on .pupg-path-go { transform: rotate(-90deg); }
.pupg-path.on .pupg-path-go .pupg-ic { stroke: #fff; }
.pupg-paths[data-n="1"] { grid-template-columns: minmax(0, 1fr); }
.pupg-paths[data-n="1"] .pupg-path { flex-direction: row; align-items: center; gap: 18px; }

/* path pictures — calm at rest, they come alive on hover / when picked */
.pupg-ill { width: 100%; height: 100%; overflow: visible; }
.ill-power .i-trk { fill: none; stroke: var(--pcx-off); stroke-width: 9; stroke-linecap: round; }
.ill-power .i-arc { fill: none; stroke: url(#pupgG); stroke-width: 9; stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 62; transition: stroke-dashoffset .8s cubic-bezier(.3,1.3,.5,1); filter: drop-shadow(0 0 4px rgba(255,138,0,.55)); }
.ill-power .i-ndl { transform-origin: 60px 66px; transform: rotate(-38deg); transition: transform .8s cubic-bezier(.3,1.5,.5,1); }
.ill-power .i-ndl path { fill: #fbf6ff; filter: drop-shadow(0 0 3px rgba(255,190,85,.9)); }
.ill-power .i-hub { fill: #2b2535; stroke: #ffb43d; stroke-width: 3; }
.ill-power .i-sparks circle { fill: #ffcf6b; opacity: 0; }
.pupg-path:hover .ill-power .i-arc, .pupg-path.on .ill-power .i-arc { stroke-dashoffset: 10; }
.pupg-path:hover .ill-power .i-ndl, .pupg-path.on .ill-power .i-ndl { transform: rotate(62deg); }
.pupg-path.on .ill-power .i-ndl path { animation: pupg-rev .18s ease-in-out .8s infinite alternate; transform-origin: 60px 66px; }
.pupg-path.on .ill-power .i-sparks circle { animation: pupg-spark 1.6s ease-out infinite; }
.pupg-path.on .ill-power .i-sparks circle:nth-child(2) { animation-delay: .5s; } .pupg-path.on .ill-power .i-sparks circle:nth-child(3) { animation-delay: 1s; }
@keyframes pupg-rev { from { transform: rotate(-2.5deg); } to { transform: rotate(2.5deg); } }
@keyframes pupg-spark { 0% { opacity: 0; transform: translateY(6px); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(-14px); } }
.ill-plans .i-st { fill: var(--pcx-off); stroke: rgba(255,255,255,.12); stroke-width: 1; transition: fill .35s; }
.ill-plans .i-st:nth-child(1) { fill: #3a2f22; }
.pupg-path:hover .ill-plans .i-st, .pupg-path.on .ill-plans .i-st { fill: url(#pupgG); }
.pupg-path:hover .ill-plans .i-st:nth-child(2), .pupg-path.on .ill-plans .i-st:nth-child(2) { transition-delay: .08s; }
.pupg-path:hover .ill-plans .i-st:nth-child(3), .pupg-path.on .ill-plans .i-st:nth-child(3) { transition-delay: .16s; }
.pupg-path:hover .ill-plans .i-st:nth-child(4), .pupg-path.on .ill-plans .i-st:nth-child(4) { transition-delay: .24s; }
.ill-plans .i-hop circle { fill: #fff; filter: drop-shadow(0 0 6px #ffb43d); }
.pupg-path.on .ill-plans .i-hop { animation: pupg-hop 2.6s cubic-bezier(.5,0,.5,1) infinite; }
@keyframes pupg-hop { 0%, 8% { transform: translate(0, 0); } 18% { transform: translate(13px, -20px); } 25%, 33% { transform: translate(26px, -12px); } 43% { transform: translate(39px, -34px); } 50%, 58% { transform: translate(52px, -26px); } 68% { transform: translate(65px, -48px); } 75%, 90% { transform: translate(78px, -40px); } 100% { transform: translate(0, 0); } }
.ill-period .i-cal { fill: #1f1a29; stroke: rgba(255,255,255,.22); stroke-width: 2; }
.ill-period .i-cal-top { stroke: url(#pupgG); stroke-width: 5; }
.ill-period .i-ring { stroke: #ffb43d; stroke-width: 4; stroke-linecap: round; }
.ill-period .i-num { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 22px; fill: #fbf6ff; }
.ill-period .i-coin { fill: url(#pupgG); stroke: #8a5b10; stroke-width: 1.2; transition: opacity .3s, transform .4s; }
.ill-period .c3, .ill-period .c4 { opacity: 0; transform: translateY(-8px); }
.pupg-path:hover .ill-period .c3, .pupg-path.on .ill-period .c3 { opacity: 1; transform: none; transition-delay: .1s; }
.pupg-path:hover .ill-period .c4, .pupg-path.on .ill-period .c4 { opacity: 1; transform: none; transition-delay: .25s; }
.ill-period .i-drop ellipse { fill: url(#pupgG); stroke: #8a5b10; stroke-width: 1.2; }
.ill-period .i-drop { opacity: 0; }
.pupg-path.on .ill-period .i-drop { animation: pupg-drop 2.2s cubic-bezier(.5,0,.75,0) infinite; }
@keyframes pupg-drop { 0% { opacity: 0; transform: translateY(-6px); } 15% { opacity: 1; } 60% { opacity: 1; transform: translateY(16px); } 70%, 100% { opacity: 0; transform: translateY(16px); } }

/* ---------- the chosen path ---------- */
.pupg-stage { margin-top: 18px; }
.pupg-panel.is-in { animation: pupg-in .45s cubic-bezier(.2,.9,.3,1); }
@keyframes pupg-in { from { opacity: 0; transform: translateY(12px); } }
.pupg-mods { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-flow: row dense; gap: 18px; }
.pupg-mods > .pupg-col-cell { min-width: 0; }
.pupg-mods > .pcx-col--clock, .pupg-mods > .pcx-col--priority, .pupg-mods > .pcx-col--location { grid-column: 1 / -1; }
@media (max-width: 991px) { .pupg-mods { grid-template-columns: minmax(0, 1fr); } }
.pupg-fg { margin: 0; height: 100%; }
.pupg-fg:not(.pcx-host) { padding: 18px; border-radius: 18px; background: linear-gradient(160deg, rgba(255,255,255,.055), rgba(255,255,255,.018)); border: 1px solid var(--pcx-edge); }
.pupg-fg:not(.pcx-host) > label { margin: 0 0 12px; font-family: 'Space Grotesk','Inter',sans-serif; font-weight: 700; font-size: 13px; letter-spacing: .09em; text-transform: uppercase; color: var(--pcx-txt); }
.pupg-col-cell .form-group.pcx-host { transition: border-color .3s, box-shadow .3s; }
.pupg-col-cell.is-changed .form-group { border-color: rgba(255,180,61,.6) !important; box-shadow: 0 0 0 1px rgba(255,180,61,.35), 0 16px 36px rgba(255,138,0,.14) !important; }
.pupg-delta { display: none; align-items: center; gap: 6px; align-self: flex-start; margin-top: 14px; padding: 6px 12px; border-radius: 999px; font-size: 13px; color: var(--pcx-dim); background: rgba(255,138,0,.08); box-shadow: inset 0 0 0 1px rgba(255,180,61,.3); }
.pupg-delta:not(:empty) { display: inline-flex; }
.pupg-delta b { color: #ffcf6b; font-family: var(--ps-disp, 'Space Grotesk', sans-serif); }
.pupg-delta .pupg-ic { width: 14px; height: 14px; }
.pupg-delta.pop { animation: pupg-pop .4s cubic-bezier(.2,.9,.3,1.4); }
@keyframes pupg-pop { from { transform: scale(.85); opacity: 0; } }

/* studio modules in upgrade mode: what they have today + the change in price */
.pcx-tile { position: relative; }
.pcx-nowtag { position: absolute; top: -9px; inset-inline-start: 10px; z-index: 1; padding: 2px 8px; border-radius: 999px; font-family: 'JetBrains Mono', monospace; font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #fbf6ff; background: #3a3248; box-shadow: 0 0 0 1px rgba(255,255,255,.18); }
html[dir="rtl"] .pcx-nowtag { font-family: 'Tajawal','Cairo',sans-serif; letter-spacing: 0; font-size: 11px; }
.pcx-tile.is-now:not(.on) { border-style: dashed; border-color: rgba(255,255,255,.22); }
.pcx-cost.is-now { color: var(--pcx-txt); background: rgba(255,255,255,.06); box-shadow: inset 0 0 0 1px rgba(255,255,255,.18); }
.pcx-nowdot { width: 8px; height: 8px; border-radius: 50%; background: #3fd69a; box-shadow: 0 0 8px #3fd69a; }
.pcx-cost.is-down, .pcx-tile-p.is-down, .pcx-mark.is-stop small.is-down { color: var(--pcx-green); }
.pcx-cost.is-down { background: rgba(35,196,131,.12); box-shadow: inset 0 0 0 1px rgba(63,214,154,.35); }
.pcx-tile-p.is-now, .pcx-mark.is-stop small.is-now { color: var(--pcx-dim); }
/* where they are today: a notch on the track + a small label; it steps aside when the thumb sits on it */
.pcx-nowpin { position: absolute; top: 50%; z-index: 1; width: 0; height: 0; pointer-events: none; transition: opacity .25s; }
.pcx-nowpin i { position: absolute; left: -7px; top: -7px; width: 14px; height: 14px; border-radius: 50%; background: #120e18; border: 3px solid #fbf6ff; box-shadow: 0 0 0 3px rgba(18,14,24,.6), 0 0 10px rgba(255,255,255,.35); }
html[dir="rtl"] .pcx-nowpin i { left: auto; right: -7px; }
.pcx-nowpin b { position: absolute; bottom: 14px; left: 0; transform: translateX(-50%); padding: 2px 8px; border-radius: 999px; font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: #fbf6ff; background: #3a3248; box-shadow: 0 0 0 1px rgba(255,255,255,.18); white-space: nowrap; }
html[dir="rtl"] .pcx-nowpin b { left: auto; right: 0; transform: translateX(50%); font-family: 'Tajawal','Cairo',sans-serif; letter-spacing: 0; font-size: 11px; }
.pcx-slide.at-now .pcx-nowpin { opacity: 0; }
.pupg .pcx-bubble { z-index: 3; }
.pcx-tile-p.is-now, .pcx-mark.is-stop small.is-now { display: inline-flex; align-items: center; justify-content: center; gap: 5px; }
.pcx-tile-p.is-now::before, .pcx-mark.is-stop small.is-now::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #3fd69a; box-shadow: 0 0 6px #3fd69a; }

.pupg-top { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; padding: 14px 18px; border-radius: 16px; color: #ffe2b0; background: rgba(255,138,0,.08); border: 1px solid rgba(255,180,61,.35); font-weight: 600; }
.pupg-top .pupg-ic { width: 26px; height: 26px; }
.pupg-empty { padding: 20px; color: var(--pcx-dim); }
.pupg-fixed { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 18px; }
.pupg-fixed-h { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; color: var(--pcx-faint); margin-inline-end: 4px; }
.pupg-fixed-h .pupg-ic { width: 15px; height: 15px; stroke: var(--pcx-faint); }
.pupg-chip { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 12px; font-size: 13px; color: var(--pcx-dim); background: rgba(255,255,255,.035); border: 1px solid var(--pcx-edge); }
.pupg-chip b { color: var(--pcx-txt); font-weight: 600; }
.pupg-chip .pupg-ic { width: 16px; height: 16px; }

/* fallback picker / toggle / quantity */
.pupg-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; }
.pupg-toggle { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 14px; border-radius: 14px; font: inherit; color: var(--pcx-txt); background: var(--pcx-tile); border: 1px solid var(--pcx-edge); cursor: pointer; }
.pupg-toggle .pt-knob { position: relative; width: 42px; height: 24px; flex: none; border-radius: 999px; background: var(--pcx-off); transition: background .25s; }
.pupg-toggle .pt-knob::after { content: ''; position: absolute; top: 3px; inset-inline-start: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fbf6ff; transition: transform .25s; }
.pupg-toggle.on .pt-knob { background: var(--pcx-gold); }
.pupg-toggle.on .pt-knob::after { transform: translateX(18px); }
html[dir="rtl"] .pupg-toggle.on .pt-knob::after { transform: translateX(-18px); }
.pupg-toggle-l { flex: 1; text-align: start; font-weight: 600; }
.pupg-toggle-p { color: #ffbe55; font-weight: 700; }
.pupg-qty { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.pupg-qty output { min-width: 48px; text-align: center; font-family: var(--ps-disp, 'Space Grotesk', sans-serif); font-size: 26px; font-weight: 700; }
.pupg-qb { width: 42px; height: 42px; border-radius: 12px; font-size: 22px; line-height: 1; color: var(--pcx-txt); background: var(--pcx-tile); border: 1px solid var(--pcx-edge2); cursor: pointer; }
.pupg-qb:hover { border-color: #ffb43d; }
.pupg-qty-u { font-size: 13px; color: var(--pcx-dim); }

/* ---------- path 2: plans ---------- */
.pupg-plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.pupg-plan { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; min-width: 0; padding: 18px 16px 16px; border-radius: 18px; text-align: start; font: inherit; color: var(--pcx-txt); cursor: pointer;
    background: var(--pcx-tile); border: 1px solid var(--pcx-edge); box-shadow: inset 0 1px 0 rgba(255,255,255,.05), 0 8px 18px rgba(0,0,0,.28); transition: transform .2s, border-color .2s, box-shadow .25s, background .25s; }
button.pupg-plan:hover { transform: translateY(-3px); border-color: var(--pcx-edge2); }
.pupg-plan.on { border-color: #ffb43d; background: radial-gradient(110% 70% at 50% 0%, rgba(255,150,40,.22), transparent 65%), var(--pcx-tile); box-shadow: 0 0 0 1px rgba(255,180,61,.55), 0 16px 34px rgba(255,138,0,.2); transform: translateY(-3px); }
.pupg-plan.is-yours { cursor: default; border-style: dashed; border-color: rgba(255,255,255,.2); background: rgba(255,255,255,.025); box-shadow: none; }
.pupg-plan-badge { padding: 3px 10px; border-radius: 999px; font-family: 'JetBrains Mono', monospace; font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: #fbf6ff; background: #3a3248; }
.pupg-plan-tag { display: inline-flex; align-items: center; gap: 5px; font-family: 'JetBrains Mono', monospace; font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: #ffbe55; }
.pupg-plan-tag .pupg-ic { width: 14px; height: 14px; }
.pupg-plan.is-down .pupg-plan-tag { color: var(--pcx-faint); }
.pupg-plan.is-down .pupg-plan-tag .pupg-ic { transform: scaleY(-1); stroke: var(--pcx-faint); }
html[dir="rtl"] .pupg-plan-badge, html[dir="rtl"] .pupg-plan-tag { font-family: 'Tajawal','Cairo',sans-serif; letter-spacing: 0; font-size: 12px; }
.pupg-plan-name { font-family: var(--ps-disp, 'Space Grotesk', sans-serif); font-size: 22px; font-weight: 700; letter-spacing: -.3px; }
.pupg-plan-steps { display: flex; align-items: flex-end; gap: 4px; height: 26px; }
.pupg-plan-steps i { width: 10px; height: calc(30% + var(--k) * 12%); max-height: 100%; border-radius: 3px; background: var(--pcx-off); transition: background .3s; transition-delay: calc(var(--k) * 50ms); }
.pupg-plan-steps i.on { background: linear-gradient(180deg, #ffd27a, #f08a0a); box-shadow: 0 0 8px rgba(255,138,0,.45); }
.pupg-plan:not(.on) .pupg-plan-steps i.on { opacity: .75; box-shadow: none; }
.pupg-plan-specs { list-style: none; margin: 2px 0 0; padding: 0; width: 100%; display: grid; gap: 4px; }
.pupg-plan-specs li { display: flex; justify-content: space-between; gap: 8px; font-size: 12.5px; color: var(--pcx-dim); border-bottom: 1px dashed rgba(255,255,255,.07); padding-bottom: 3px; }
.pupg-plan-specs b { color: var(--pcx-txt); font-weight: 600; text-align: end; }
.pupg-plan-level { font-size: 12.5px; color: var(--pcx-faint); }
.pupg-plan-price { margin-top: auto; padding-top: 6px; font-family: var(--ps-disp, 'Space Grotesk', sans-serif); font-size: 20px; font-weight: 700; color: var(--pcx-txt); }
.pupg-plan-price small { font-size: 12.5px; font-weight: 600; color: var(--pcx-faint); margin-inline-start: 3px; }
.pupg-plan .pcx-check { position: absolute; top: 14px; inset-inline-end: 14px; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; border: 2px solid rgba(255,255,255,.16); transition: all .2s; }
.pupg-plan .pcx-check svg { width: 13px; height: 13px; fill: none; stroke: transparent; stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; }
.pupg-plan.on .pcx-check { background: var(--pcx-gold); border-color: transparent; box-shadow: 0 4px 12px rgba(255,138,0,.45); }
.pupg-plan.on .pcx-check svg { stroke: #fff; }
.pupg-terms { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 16px; }
.pupg-terms:empty { display: none; }
.pupg-terms-h { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--pcx-dim); margin-inline-end: 4px; }
.pupg-term { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 10px 14px; border-radius: 14px; font: inherit; color: var(--pcx-txt); background: rgba(255,255,255,.04); border: 1px solid var(--pcx-edge); cursor: pointer; transition: border-color .2s, background .2s; }
.pupg-term b { font-size: 13.5px; } .pupg-term span { font-size: 12.5px; color: var(--pcx-dim); }
.pupg-term.on { border-color: #ffb43d; background: rgba(255,138,0,.10); }
.pupg-save { display: inline-flex; padding: 2px 8px; border-radius: 999px; font-style: normal; font-size: 11.5px; font-weight: 700; color: var(--pcx-green); background: rgba(35,196,131,.12); box-shadow: inset 0 0 0 1px rgba(63,214,154,.35); }
.pupg-term .pupg-save { position: absolute; top: -9px; inset-inline-end: 8px; }

/* ---------- path 3: billing period — coins stack up the longer you go ---------- */
.pupg-periods { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; }
.pupg-period { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 18px 14px 16px; border-radius: 18px; text-align: center; font: inherit; color: var(--pcx-txt); cursor: pointer;
    background: var(--pcx-tile); border: 1px solid var(--pcx-edge); box-shadow: inset 0 1px 0 rgba(255,255,255,.05), 0 8px 18px rgba(0,0,0,.28); transition: transform .2s, border-color .2s, box-shadow .25s, background .25s; }
.pupg-period:not(:disabled):hover { transform: translateY(-3px); border-color: var(--pcx-edge2); }
.pupg-period.on { border-color: #ffb43d; background: radial-gradient(110% 70% at 50% 0%, rgba(255,150,40,.22), transparent 65%), var(--pcx-tile); box-shadow: 0 0 0 1px rgba(255,180,61,.55), 0 16px 34px rgba(255,138,0,.2); transform: translateY(-3px); }
.pupg-period:disabled { cursor: default; opacity: 1; border-style: dashed; border-color: rgba(255,255,255,.2); background: rgba(255,255,255,.025); box-shadow: none; }
.pupg-coins { position: relative; display: flex; flex-direction: column-reverse; align-items: center; height: 58px; justify-content: flex-start; margin-bottom: 6px; }
.pupg-coins i { width: 44px; height: 11px; margin-top: -3px; border-radius: 50%; background: var(--pcx-off); box-shadow: inset 0 -2px 0 rgba(0,0,0,.35); transition: background .3s, transform .35s; }
.pupg-coins i.on { background: linear-gradient(180deg, #ffd27a, #e0960f); box-shadow: inset 0 -2px 0 #8a5b10, 0 0 8px rgba(255,138,0,.35); }
.pupg-period.on .pupg-coins i.on { animation: pupg-coin .5s cubic-bezier(.3,1.6,.5,1) backwards; animation-delay: calc(var(--k) * 70ms); }
@keyframes pupg-coin { from { transform: translateY(-14px); opacity: 0; } }
.pupg-period-name { font-family: var(--ps-disp, 'Space Grotesk', sans-serif); font-size: 16px; font-weight: 700; }
.pupg-period-total { font-family: var(--ps-disp, 'Space Grotesk', sans-serif); font-size: 21px; font-weight: 700; }
.pupg-period-mo { font-size: 12.5px; color: var(--pcx-dim); }
.pupg-period .pupg-save { margin-top: 6px; }
.pupg-period .pcx-nowtag { inset-inline-start: 50%; transform: translateX(-50%); }
html[dir="rtl"] .pupg-period .pcx-nowtag { transform: translateX(50%); }

/* ---------- live receipt (sticky) ---------- */
.pupg-receipt { position: sticky; bottom: 12px; z-index: 30; margin-top: 22px; display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: 14px 22px; padding: 14px 16px 14px 18px; border-radius: 20px;
    background: rgba(17,13,24,.94); border: 1px solid rgba(255,180,61,.35); box-shadow: 0 24px 50px rgba(0,0,0,.55), 0 0 0 1px rgba(0,0,0,.4); backdrop-filter: blur(14px); }
.pupg-receipt.is-empty { border-color: var(--pcx-edge); }
.pupg-r-head { display: flex; align-items: center; gap: 10px; }
.pupg-r-head b { font-family: var(--ps-disp, 'Space Grotesk', sans-serif); font-size: 15px; }
.pupg-r-head .pupg-hx { width: 36px; height: 40px; } .pupg-r-head .pupg-hx .pupg-ic { width: 18px; height: 18px; }
.pupg-r-chips { display: flex; flex-wrap: wrap; gap: 8px; min-width: 0; }
.pupg-r-none { font-size: 13.5px; color: var(--pcx-dim); }
.pupg-rchip { display: inline-flex; align-items: center; gap: 7px; padding: 6px 11px; border-radius: 12px; font-size: 13px; color: var(--pcx-dim); background: rgba(255,255,255,.04); border: 1px solid var(--pcx-edge); animation: pupg-pop .35s cubic-bezier(.2,.9,.3,1.4) backwards; animation-delay: calc(var(--k, 0) * 60ms); }
.pupg-rchip .pupg-ic { width: 16px; height: 16px; }
.pupg-rchip s { text-decoration: none; color: var(--pcx-faint); }
.pupg-rchip b { color: #ffcf6b; font-family: var(--ps-disp, 'Space Grotesk', sans-serif); }
.pupg-r-money { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; text-align: end; }
.pupg-r-today { display: flex; flex-direction: column; align-items: flex-end; }
.pupg-r-today > span { font-family: 'JetBrains Mono', monospace; font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--pcx-faint); }
html[dir="rtl"] .pupg-r-today > span { font-family: 'Tajawal','Cairo',sans-serif; letter-spacing: 0; font-size: 12px; }
.pupg-r-amt { min-height: 30px; font-family: var(--ps-disp, 'Space Grotesk', sans-serif); font-size: 26px; font-weight: 700; line-height: 1.15; font-variant-numeric: tabular-nums; background: linear-gradient(180deg, #fff, #ffcf6b); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pupg-r-amt.pcx-up, .pupg-r-amt.pcx-down { animation: pcx-amt .65s ease-out; }
.pupg-r-later { font-size: 12.5px; font-weight: 600; color: var(--pcx-dim); -webkit-text-fill-color: var(--pcx-dim); }
.pupg-r-cover { font-size: 12px; color: var(--pcx-faint); max-width: 30ch; }
.pupg-r-then { font-size: 13px; font-weight: 600; color: var(--pcx-txt); } .pupg-r-then small { font-weight: 400; color: var(--pcx-faint); }
.pupg-r-note { font-size: 12px; color: var(--pcx-green); }
.pupg-shim { display: inline-block; width: 96px; height: 22px; border-radius: 6px; vertical-align: middle; background: linear-gradient(90deg, rgba(255,255,255,.05), rgba(255,207,107,.25), rgba(255,255,255,.05)); background-size: 200% 100%; animation: pupg-shim 1.1s linear infinite; }
@keyframes pupg-shim { to { background-position: -200% 0; } }
.pupg-go { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 22px; border: 0; border-radius: 14px; font-family: var(--ps-disp, 'Space Grotesk', sans-serif); font-size: 15.5px; font-weight: 700; color: #1b1004; cursor: pointer; white-space: nowrap;
    background: var(--pcx-gold); box-shadow: 0 10px 24px rgba(240,170,48,.3), inset 0 1px 0 rgba(255,255,255,.35); transition: transform .2s, box-shadow .2s, filter .2s; }
.pupg-go .pupg-ic { stroke: #1b1004; width: 18px; height: 18px; transition: transform .25s; }
.pupg-go:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(240,170,48,.42), inset 0 1px 0 rgba(255,255,255,.35); }
.pupg-go:hover:not(:disabled) .pupg-ic { transform: translateX(3px); }
html[dir="rtl"] .pupg-go:hover:not(:disabled) .pupg-ic { transform: scaleX(-1) translateX(3px); }
.pupg-go:disabled { cursor: not-allowed; color: var(--pcx-faint); background: var(--pcx-off); box-shadow: none; }
.pupg-go:disabled .pupg-ic { stroke: var(--pcx-faint); }
.pupg-go.is-busy { pointer-events: none; filter: saturate(.7); }
.pupg-go.is-busy .pupg-ic { animation: pupg-nudge .6s ease-in-out infinite alternate; }
@keyframes pupg-nudge { to { transform: translateX(5px); } }
.pupg-help { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 22px 0 0; font-size: 13.5px; color: var(--pcx-dim); }
.pupg-help a { color: #ffcf6b !important; font-weight: 600; }
.pupg-help .pupg-ic { width: 17px; height: 17px; }

/* ---------- states (overdue / waiting / by our team) ---------- */
.pupg-state { margin-top: 22px; padding: 34px 24px; border-radius: 22px; text-align: center; background: var(--pu-panel); border: 1px solid var(--pcx-edge); }
.pupg-state .pupg-hx { width: 60px; height: 68px; } .pupg-state .pupg-hx .pupg-ic { width: 28px; height: 28px; }
.pupg-state h2 { margin: 16px 0 6px; font-family: var(--ps-disp, 'Space Grotesk', sans-serif); font-size: 22px; font-weight: 700; }
.pupg-state p { margin: 0 auto; max-width: 52ch; color: var(--pcx-dim); }
.pupg-state-acts { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 18px; }
.pupg-btn { display: inline-flex; align-items: center; padding: 11px 18px; border-radius: 12px; font-weight: 700; color: var(--pcx-txt) !important; text-decoration: none !important; background: rgba(255,255,255,.05); border: 1px solid var(--pcx-edge2); }
.pupg-btn.is-gold { color: #1b1004 !important; background: var(--pcx-gold); border-color: transparent; }

/* ---------- review & confirm ---------- */
.pupg-review { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 22px; align-items: start; margin-top: 22px; }
.pupg-rv-main, .pupg-rv-pay { padding: 22px 24px; border-radius: 22px; background: linear-gradient(160deg, rgba(255,255,255,.055), rgba(255,255,255,.018)); border: 1px solid var(--pcx-edge); }
.pupg-rv-pay { position: sticky; top: 96px; background: var(--pu-panel); border-color: rgba(255,180,61,.3); box-shadow: 0 18px 40px rgba(0,0,0,.35); }
.pupg-rv-main > h2 { margin: 10px 0 0; font-family: var(--ps-disp, 'Space Grotesk', sans-serif); font-size: 26px; font-weight: 700; letter-spacing: -.4px; }
.pupg-rv-h { margin: 22px 0 10px; font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--pcx-faint); }
html[dir="rtl"] .pupg-rv-h { font-family: 'Tajawal','Cairo',sans-serif; letter-spacing: 0; font-size: 13px; }
.pupg-rv-err { margin-top: 12px; padding: 10px 14px; border-radius: 12px; color: #ffd0d6; background: rgba(204,31,60,.12); border: 1px solid rgba(204,31,60,.4); }
.pupg-rv-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.pupg-rv-list li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "ic l p" "ic ch p"; align-items: center; column-gap: 14px; padding: 12px 14px; border-radius: 16px; background: rgba(255,255,255,.03); border: 1px solid var(--pcx-edge); animation: pupg-in .45s cubic-bezier(.2,.9,.3,1) backwards; animation-delay: calc(var(--k) * 80ms); }
.pupg-rv-list .pupg-hx { grid-area: ic; width: 40px; height: 46px; } .pupg-rv-list .pupg-hx .pupg-ic { width: 19px; height: 19px; }
.pupg-rv-l { grid-area: l; font-size: 12.5px; color: var(--pcx-faint); }
.pupg-rv-l:empty { display: none; }
.pupg-rv-ch { grid-area: ch; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 15px; }
.pupg-rv-ch s { text-decoration: none; color: var(--pcx-dim); }
.pupg-rv-ch b { font-family: var(--ps-disp, 'Space Grotesk', sans-serif); color: #ffcf6b; }
.pupg-rv-p { grid-area: p; font-family: var(--ps-disp, 'Space Grotesk', sans-serif); font-weight: 700; }
.pupg-rv-days { display: flex; align-items: center; gap: 8px; margin: 12px 0 0; font-size: 13px; color: var(--pcx-dim); }
.pupg-rv-days .pupg-ic { width: 16px; height: 16px; }
.pupg-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.pupg-steps li { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "ic b" "ic s"; column-gap: 14px; padding-bottom: 18px; }
.pupg-steps li:not(:last-child)::after { content: ''; position: absolute; top: 50px; bottom: 2px; inset-inline-start: 19px; width: 2px; background: linear-gradient(180deg, rgba(255,180,61,.6), rgba(255,180,61,.08)); transform-origin: top; animation: pupg-line .7s .3s cubic-bezier(.3,1,.4,1) backwards; }
@keyframes pupg-line { from { transform: scaleY(0); } }
.pupg-steps .pupg-hx { grid-area: ic; width: 40px; height: 46px; } .pupg-steps .pupg-hx .pupg-ic { width: 19px; height: 19px; }
.pupg-steps b { grid-area: b; align-self: end; font-family: var(--ps-disp, 'Space Grotesk', sans-serif); font-size: 16px; }
.pupg-steps span { grid-area: s; font-size: 13.5px; color: var(--pcx-dim); line-height: 1.45; }
.pupg-rv-total { display: flex; flex-direction: column; gap: 2px; }
.pupg-rv-total span { font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--pcx-faint); }
html[dir="rtl"] .pupg-rv-total span { font-family: 'Tajawal','Cairo',sans-serif; letter-spacing: 0; font-size: 13px; }
.pupg-rv-total b { font-family: var(--ps-disp, 'Space Grotesk', sans-serif); font-size: 38px; font-weight: 700; letter-spacing: -1px; line-height: 1.1; background: linear-gradient(180deg, #fff, #ffcf6b); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pupg-rv-lines { margin: 12px 0 4px; padding-top: 10px; border-top: 1px dashed rgba(255,255,255,.1); display: grid; gap: 6px; }
.pupg-rv-line { display: flex; justify-content: space-between; gap: 10px; font-size: 13.5px; color: var(--pcx-dim); }
.pupg-rv-line b { color: var(--pcx-txt); font-weight: 600; }
.pupg-rv-line.is-disc b { color: var(--pcx-green); }
.pupg-rv-promo { margin: 14px 0 0; border-radius: 14px; background: rgba(255,255,255,.03); border: 1px solid var(--pcx-edge); }
.pupg-rv-promo summary { display: flex; align-items: center; gap: 8px; padding: 11px 14px; cursor: pointer; font-size: 13.5px; font-weight: 600; color: var(--pcx-dim); list-style: none; }
.pupg-rv-promo summary::-webkit-details-marker { display: none; }
.pupg-rv-promo summary .pupg-ic { width: 16px; height: 16px; }
.pupg-rv-promo-slot { padding: 0 12px 12px; }
.pupg-promo-form .input-group { display: flex; gap: 8px; flex-wrap: nowrap; }
.pupg-promo-form .form-control { height: 42px; border-radius: 10px !important; background: #120e18 !important; border: 1px solid var(--pcx-edge2) !important; color: var(--pcx-txt) !important; }
.pupg-promo-form .input-group-append .btn { height: 42px; border-radius: 10px !important; font-weight: 700; }
.pupg-rv-method { margin-top: 16px; }
.pupg-rv-mh { display: block; margin-bottom: 8px; font-size: 13px; font-weight: 600; color: var(--pcx-dim); }
.pupg-rv-methods { display: grid; gap: 8px; }
.pupg-method { display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-radius: 12px; text-align: start; font: inherit; font-weight: 600; color: var(--pcx-txt); background: rgba(255,255,255,.035); border: 1px solid var(--pcx-edge); cursor: pointer; transition: border-color .2s, background .2s; }
.pupg-method i { width: 18px; height: 18px; flex: none; border-radius: 50%; border: 2px solid rgba(255,255,255,.25); transition: all .2s; }
.pupg-method.on { border-color: #ffb43d; background: rgba(255,138,0,.08); }
.pupg-method.on i { border: 5px solid #ffb43d; background: #1b1004; }
.pupg-rv-pay-slot { display: none; }
.pupg-rv-pay .pupg-go.is-big { width: 100%; margin-top: 18px; padding: 16px 20px; font-size: 16px; }
.pupg-rv-edit { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 12px; font-size: 13.5px; font-weight: 600; color: var(--pcx-dim) !important; }
.pupg-rv-edit .pupg-ic { width: 15px; height: 15px; stroke: currentColor; }

/* ---------- the strip on the service page: the ONE way in ---------- */
.pupg-strip { position: relative; display: flex; align-items: center; gap: 18px; margin: 0 0 18px; padding: 16px 18px; border-radius: 20px; text-decoration: none !important; color: #fbf6ff !important; overflow: hidden;
    background: radial-gradient(70% 160% at 100% 50%, rgba(255,138,0,.14), transparent 65%), linear-gradient(180deg, #17121f, #0f0c16); border: 1px solid rgba(255,180,61,.28); box-shadow: 0 14px 32px rgba(0,0,0,.32); transition: transform .22s, border-color .22s, box-shadow .25s; }
html[dir="rtl"] .pupg-strip { background: radial-gradient(70% 160% at 0% 50%, rgba(255,138,0,.14), transparent 65%), linear-gradient(180deg, #17121f, #0f0c16); }
.pupg-strip:hover { transform: translateY(-2px); border-color: rgba(255,180,61,.55); box-shadow: 0 18px 38px rgba(255,138,0,.16); }
.pupg-strip-hx { position: relative; flex: none; width: 52px; height: 58px; filter: drop-shadow(0 8px 16px rgba(216,150,20,.4)); }
.pupg-strip-hx > span { position: absolute; inset: 0; display: grid; place-items: center; clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); background: linear-gradient(120deg, #d68f12, #f0aa30 50%, #ffce6b); }
.pupg-strip-hx svg { width: 26px; height: 26px; fill: none; stroke: #fff; stroke-width: 2.3; stroke-linecap: round; stroke-linejoin: round; animation: pupg-rise 2.4s ease-in-out infinite; filter: drop-shadow(0 1px 1px rgba(74,42,0,.6)); }
.pupg-strip-hx .s-trail { opacity: .55; }
@keyframes pupg-rise { 0%, 100% { transform: translateY(2px); } 50% { transform: translateY(-3px); } }
.pupg-strip-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.pupg-strip-txt > b { font-family: 'Space Grotesk','Inter',sans-serif; font-size: 17px; font-weight: 700; }
html[dir="rtl"] .pupg-strip-txt > b { font-family: 'Tajawal','Cairo',sans-serif; font-size: 18px; }
.pupg-strip-txt > span:not(.pupg-strip-paths) { font-size: 13.5px; color: #c3b9d8; }
.pupg-strip-paths { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.pupg-strip-paths i { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-style: normal; font-size: 12px; font-weight: 600; color: #ffcf6b; background: rgba(255,138,0,.08); box-shadow: inset 0 0 0 1px rgba(255,180,61,.28); }
.pupg-strip-paths svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pupg-strip-btn { flex: none; display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: 14px; font-family: 'Space Grotesk','Inter',sans-serif; font-weight: 700; font-size: 15px; color: #1b1004; background: linear-gradient(120deg, #d68f12, #f0aa30 50%, #ffce6b); box-shadow: 0 10px 22px rgba(240,170,48,.3), inset 0 1px 0 rgba(255,255,255,.35); }
html[dir="rtl"] .pupg-strip-btn { font-family: 'Tajawal','Cairo',sans-serif; }
.pupg-strip-btn svg { width: 17px; height: 17px; fill: none; stroke: #1b1004; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; transition: transform .25s; }
html[dir="rtl"] .pupg-strip-btn svg { transform: scaleX(-1); }
.pupg-strip:hover .pupg-strip-btn svg { transform: translateX(4px); }
html[dir="rtl"] .pupg-strip:hover .pupg-strip-btn svg { transform: scaleX(-1) translateX(4px); }

/* ---------- tablets & phones ---------- */
@media (max-width: 991px) {
    .pupg-review { grid-template-columns: minmax(0, 1fr); }
    .pupg-rv-pay { position: static; }
    .pupg-receipt { grid-template-columns: minmax(0, 1fr) auto; }
    .pupg-r-head { display: none; }
    .pupg-r-chips { grid-column: 1 / -1; }
}
@media (max-width: 767px) {
    .pupg-hero { grid-template-columns: minmax(0, 1fr); gap: 14px; padding: 18px 16px; }
    .pupg-art { width: 100%; max-width: 360px; }
    .pupg-art.is-icon { padding: 0; }
    .pupg-back { position: absolute; top: 14px; inset-inline-end: 14px; padding: 7px 10px; }
    .pupg-back span { display: none; }
    .pupg-title { font-size: 24px; }
    .pupg-art:not(.is-icon) + .pupg-hero-txt .pupg-title { margin-top: 12px; }
    .pupg-paths { grid-template-columns: minmax(0, 1fr); gap: 12px; }
    .pupg-path { display: grid; grid-template-columns: 92px minmax(0, 1fr); align-items: center; column-gap: 14px; padding: 14px 14px 14px 12px; }
    .pupg-path-art { width: 92px; height: 62px; margin: 0; }
    .pupg-path-go { display: none; }
    .pupg-path-txt > b { font-size: 17px; }
    .pupg-path-txt > span { font-size: 13px; }
    .pupg-plans { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .pupg-plan.is-yours { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; align-items: center; }
    .pupg-periods { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .pupg-receipt { bottom: 8px; gap: 10px 12px; padding: 12px; border-radius: 18px; }
    .pupg-r-chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
    .pupg-r-chips::-webkit-scrollbar { display: none; }
    .pupg-rchip { flex: none; }
    .pupg-r-money { align-items: flex-start; text-align: start; }
    .pupg-r-today { align-items: flex-start; }
    .pupg-r-amt { font-size: 22px; }
    .pupg-r-cover, .pupg-r-note { display: none; }
    .pupg-go { padding: 13px 16px; font-size: 14.5px; }
    .pupg-rv-main, .pupg-rv-pay { padding: 18px 16px; }
    .pupg-rv-list li { grid-template-areas: "ic l" "ic ch" "ic p"; grid-template-columns: auto minmax(0, 1fr); }
    .pupg-rv-p { margin-top: 4px; font-size: 14px; color: var(--pcx-dim); }
    .pupg-strip { flex-wrap: wrap; gap: 12px 14px; padding: 14px; }
    .pupg-strip-txt { flex-basis: calc(100% - 70px); }
    .pupg-strip-btn { width: 100%; justify-content: center; }
}
@media (max-width: 400px) {
    .pupg-plans, .pupg-periods { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
    .pupg *, .pupg *::before, .pupg *::after, .pupg-strip * { animation: none !important; transition-duration: .01ms !important; }
    .pupg-ring .r-fg { stroke-dashoffset: var(--off); }
}

/* r90d: nothing due today (billing-period switch) */
.pupg-r-zero { font-size: 17px; font-weight: 700; -webkit-text-fill-color: #3fd69a; color: #3fd69a; }
.pupg-rv-total.is-zero b { font-size: 26px; letter-spacing: -.3px; background: none; -webkit-text-fill-color: #3fd69a; color: #3fd69a; }
.pupg-rv-total small { font-size: 12.5px; color: var(--pcx-dim); }
