/* RXHost R5: restore R2 visual language, fix clipped galleries, improve client checkout.
   Non-destructive presentation only. Uses current PHP plan/payment/state data. */
@import url('https://fonts.googleapis.com/css2?family=Hind+Siliguri:wght@400;500;600;700&family=Inter:wght@400;500;600;700;800&display=swap');
:root{--rx5-primary:#5448e8;--rx5-primary-soft:#f2f0ff;--rx5-line:#e0e6f0;--rx5-ink:#152034;--rx5-muted:#68768e;--rx5-radius:12px}
html{scroll-padding-top:68px}
body{font-family:Inter,'Hind Siliguri',system-ui,sans-serif}
body :lang(bn),.rx-bn-text{font-family:'Hind Siliguri',Inter,sans-serif;letter-spacing:0;line-height:1.68}
body :is(input,select,button,textarea){font-family:inherit}
body :is(a,button,input,select,textarea):focus-visible{outline:2px solid #6457ed;outline-offset:3px}
/* Original R2 public home and hosting page are intentionally retained. */
.rx-home-page .hero-mini-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;max-width:550px}
.rx-home-page .hero-mini-card{min-width:0;min-height:54px;height:auto!important;display:flex;align-items:center;gap:10px;justify-content:flex-start;padding:12px!important;border:1px solid var(--rx5-line);border-radius:10px}
.rx-home-page .hero-mini-card strong{min-width:0;font-size:11px;line-height:1.48;letter-spacing:0;overflow-wrap:break-word}
.rx-home-page .hero-mini-icon{flex:0 0 auto}
.rx-home-page .value-shell{align-items:stretch}
.rx-home-page .value-item{min-width:0}
.rx-home-page .value-item strong,.rx-home-page .value-item span{line-height:1.55;letter-spacing:0}
.rx-home-page .domain-panel{border:1px solid #e1e5ef;border-radius:12px;box-shadow:0 12px 32px rgba(30,35,71,.045)}
.rx-home-page .hero-primary .cta-icon{background:rgba(255,255,255,.16)}
.rx-home-page .plan-price strong,.rx-hosting-page .price strong,.rx-order-page .plan-card [style*="font-size:24px"],.ref-shell .price{font-family:'Hind Siliguri',Inter,system-ui,sans-serif!important;font-variant-numeric:tabular-nums;letter-spacing:0!important;white-space:nowrap;line-height:1.3!important}
.rx-home-page .plan-price strong,.rx-hosting-page .price strong{font-weight:750!important}
/* Package gallery: every visible card is FULL-WIDTH in its column — no sliced half-card. */
.rx5-gallery{--rx5-cols:3;--rx5-gap:16px;position:relative;width:100%;max-width:100%;min-width:0;margin:18px auto 28px}
.rx5-gallery-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 14px}
.rx5-gallery-heading strong{display:block;color:#25314d;font-size:13px;font-weight:750}
.rx5-gallery-heading small{display:block;margin-top:4px;color:#7a879c;font-size:11px;line-height:1.5}
.rx5-gallery-viewport{width:100%;max-width:100%;min-width:0;overflow:hidden;position:relative}
.rx5-gallery-track{display:flex!important;grid-template-columns:none!important;gap:var(--rx5-gap)!important;align-items:stretch!important;width:100%;max-width:none!important;min-width:0;overflow-x:auto!important;scrollbar-width:none;scroll-snap-type:x mandatory;scroll-behavior:smooth;-webkit-overflow-scrolling:touch;overscroll-behavior-x:contain;padding:5px 0 15px!important;margin:0!important}
.rx5-gallery-track::-webkit-scrollbar{display:none}
.rx5-gallery-track > *{flex:0 0 calc((100% - (var(--rx5-cols) - 1) * var(--rx5-gap)) / var(--rx5-cols))!important;width:calc((100% - (var(--rx5-cols) - 1) * var(--rx5-gap)) / var(--rx5-cols))!important;min-width:0!important;max-width:none!important;box-sizing:border-box;scroll-snap-align:start;transform:none!important;opacity:1!important;visibility:visible!important;animation:none!important;transition:border-color .22s ease,box-shadow .22s ease!important;border-radius:12px!important;box-shadow:0 6px 24px rgba(18,35,64,.055)!important;}
.rx5-gallery-track > .reveal{opacity:1!important;transform:none!important;visibility:visible!important}
.rx5-gallery-track > :is(.plan-card,.plan,.rx-card){display:flex;flex-direction:column;height:auto!important;align-self:stretch;}
.rx5-gallery-track > :is(.plan-card,.plan,.rx-card):hover{border-color:#9f95f2!important;box-shadow:0 10px 30px rgba(31,24,90,.1)!important}
.rx5-gallery-track > .featured,.rx5-gallery-track > .popular{border-color:#b5aaf7!important}
.rx5-gallery-track :is(.plan-action,.buy,.plan-btn){margin-top:auto}
.rx5-gallery-track :is(.plan-feature,.feature,li){line-height:1.55;overflow-wrap:anywhere}
.rx5-gallery-track :is(.plan-card,.plan) .plan-price{line-height:1.35}
.rx5-gallery-footer{display:flex;justify-content:center;align-items:center;gap:18px;margin:14px auto 0;min-height:38px}
.rx5-gallery-dots{display:flex;justify-content:center;align-items:center;gap:7px;flex-wrap:wrap}
.rx5-gallery-dot{height:9px;width:9px;border:0;background:#d0d8e5;border-radius:99px;padding:0!important;cursor:pointer;transition:width .22s,background .22s}
.rx5-gallery-dot[aria-current="true"]{width:28px;background:#594bef}
.rx5-gallery-btn{display:grid;place-items:center;flex:0 0 35px;width:35px;height:35px;border:1px solid #d9e0ed!important;border-radius:9px;background:#fff!important;color:#394564!important;cursor:pointer;box-shadow:0 2px 7px rgba(18,28,54,.045)}
.rx5-gallery-btn:hover{background:#f4f2ff!important;border-color:#a499ff!important;color:#5144e7!important}
.rx5-gallery-btn svg{width:17px;height:17px}
.rx5-gallery-count{font-size:11px;font-weight:650;color:#66758e;min-width:36px;text-align:center;font-variant-numeric:tabular-nums}
.rx5-gallery-track a,.rx5-gallery-track button{position:relative;z-index:2}
/* Visually align client area without R4's sweeping component overrides. */
.rx5-client #sidebar .nav-item{min-height:46px;letter-spacing:0;border-radius:10px}
.rx5-client #sidebar .nav-item.active{border:1px solid #e3deff;background:#f1eeff;box-shadow:0 5px 12px rgba(78,62,204,.07);color:#4c3fe1}
.rx5-client #sidebar .nav-item i{font-size:16px}
.rx5-client :is(.rx-card,.summary-card,.card,.info-card,.panel){border-color:#e0e6ef;border-radius:12px;box-shadow:0 8px 28px rgba(20,31,55,.045)}
.rx5-client main h1,.rx5-client main h2,.rx5-client main h3{letter-spacing:-.018em;line-height:1.35}
.rx5-client main .rx-money{font-family:'Hind Siliguri',Inter,sans-serif;letter-spacing:0!important;font-variant-numeric:tabular-nums}
/* Profile: distinct identity header and functional form, instead of a blank white page. */
.rx5-client .rx4-profile-banner{display:flex;justify-content:space-between;align-items:center;gap:18px;padding:22px 24px;margin:0 0 22px;background:linear-gradient(115deg,#fff 50%,#f4f2ff 100%);border:1px solid #dadff0;border-radius:14px;box-shadow:0 10px 26px rgba(25,30,80,.06)}
.rx5-client .rx4-profile-identity{display:flex;align-items:center;gap:16px;min-width:0}
.rx5-client .rx4-profile-icon{display:grid;place-items:center;width:56px;height:56px;flex:0 0 56px;border-radius:12px;border:1px solid #dcd5ff;background:#ebe8ff;color:#5446df;font-size:22px}
.rx5-client .rx4-profile-identity>div:last-child{display:flex;flex-direction:column;gap:4px;min-width:0}
.rx5-client .rx4-profile-eyebrow{color:#5f52da;letter-spacing:.13em;font-size:10px;font-weight:800}
.rx5-client .rx4-profile-identity strong{font-size:19px;font-weight:800;line-height:1.25;overflow-wrap:anywhere}
.rx5-client .rx4-profile-identity div>span:last-child{font-size:12px;color:#687994;overflow-wrap:anywhere}
.rx5-client .rx4-profile-aside{display:flex;gap:10px;align-items:center;max-width:290px;padding:12px 14px;background:#fff;border:1px solid #e0e6ef;border-radius:10px;font-size:11px;color:#4e607c;line-height:1.5}
.rx5-client .rx4-profile-aside i{font-size:17px;color:#5d4fea}
.rx5-client .rx5-account-facts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:0 0 22px}
.rx5-client .rx5-account-fact{min-width:0;background:#fff;border:1px solid #e0e6ef;border-radius:10px;padding:14px 16px}
.rx5-client .rx5-account-fact span{display:block;font-size:10px;text-transform:uppercase;letter-spacing:.07em;font-weight:750;color:#7a859a}
.rx5-client .rx5-account-fact strong{display:block;margin-top:7px;font-size:13px;font-weight:700;color:#1d2942;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.rx5-client .rx5-section-heading{display:flex;align-items:center;gap:10px;margin-bottom:17px;padding-bottom:15px;border-bottom:1px solid #edf0f5}
.rx5-client .rx5-section-heading .rx5-number{width:31px;height:31px;display:grid;place-items:center;border:1px solid #e3dfff;border-radius:9px;background:#f3f1ff;color:#5546e5;font-size:11px;font-weight:800}
.rx5-client .rx5-section-heading h2{font-size:16px!important;font-weight:800}
.rx5-client .rx5-section-heading p{font-size:11px;color:#7b899d;margin-top:3px}
.rx5-client .field{min-height:46px;border-radius:9px;background:#fff;border:1px solid #d8e0ec}
.rx5-client .save-btn{min-height:45px;border-radius:9px;background:#5346e6;color:#fff;font-weight:750;box-shadow:0 8px 16px rgba(83,70,230,.14)}
.rx5-client .save-btn:hover{background:#4035c9}
.rx5-client .photo-panel{border:1px dashed #cbd3e4;background:#f8f9fe}
/* Wallet: immediate useful balance display, visual information hierarchy and trustworthy steps. */
.rx5-client .funds-shell{max-width:1140px;padding:30px 24px 50px}
.rx5-client .funds-head h1{font-size:clamp(26px,2.7vw,36px);letter-spacing:-.035em}
.rx5-client .rx5-funds-overview{display:grid;grid-template-columns:minmax(220px,1fr) minmax(0,1.6fr);gap:0;margin:0 0 18px;overflow:hidden;background:#fff;border:1px solid #dce3f1;border-radius:13px;box-shadow:0 9px 28px rgba(19,29,57,.04)}
.rx5-client .rx5-funds-balance{display:flex;align-items:center;gap:14px;padding:22px 25px;background:linear-gradient(135deg,#5849eb,#6d57ef);color:#fff}
.rx5-client .rx5-funds-balance i{display:grid;place-items:center;flex:0 0 38px;width:38px;height:38px;border:1px solid rgba(255,255,255,.27);border-radius:11px;background:rgba(255,255,255,.12);font-size:17px}
.rx5-client .rx5-funds-balance small{display:block;color:#eeebff;font-size:11px;font-weight:650;margin-bottom:4px}
.rx5-client .rx5-funds-balance strong{display:block;font-family:'Hind Siliguri',Inter,sans-serif;font-size:30px;line-height:1.25;letter-spacing:0;font-variant-numeric:tabular-nums;white-space:nowrap}
.rx5-client .rx5-funds-proof{display:flex;align-items:center;justify-content:space-around;gap:12px;padding:16px 18px}
.rx5-client .rx5-funds-proof span{display:flex;align-items:center;gap:9px;max-width:155px;font-size:11px;font-weight:650;color:#435572;line-height:1.5}
.rx5-client .rx5-funds-proof i{display:grid;place-items:center;flex:0 0 31px;width:31px;height:31px;border-radius:9px;background:#f0eeff;color:#5b4aeb;font-size:13px}
.rx5-client .funds-grid{grid-template-columns:minmax(0,1.3fr) minmax(280px,.7fr);gap:18px}
.rx5-client .funds-grid>.card{border-radius:12px;overflow:hidden}
.rx5-client .deposit-card{padding:27px}
.rx5-client .deposit-card .card-head h2{font-size:18px}
.rx5-client .deposit-card .card-head p{font-size:11px}
.rx5-client .amount-box{height:62px;border-radius:10px;background:#fff}
.rx5-client .amount-box input{font-size:24px;letter-spacing:0}
.rx5-client .quick{height:44px;font-size:12px;border-radius:9px}
.rx5-client .pay-btn{height:52px;font-size:13px;border-radius:9px;background:#5547e8}
.rx5-client .info-card{padding:23px}
.rx5-client .history-link{min-height:45px;display:flex;align-items:center;justify-content:center}
.rx5-client .step-num{flex-shrink:0}
/* Checkout labels and compact payment methods, retain original method IDs and handlers. */
.rx-order-page .order-page-wrap{max-width:1120px;padding:26px 22px}
.rx-order-page .rx-term-field .rx-period-root{width:min(280px,64%)}
.rx-order-page .rx-period-trigger{min-height:46px;border:1px solid #cfd8e9;border-radius:9px;background:#fff;box-shadow:0 4px 12px rgba(10,20,45,.045)}
.rx-order-page #checkoutTotal{font-family:'Hind Siliguri',Inter,sans-serif;letter-spacing:0!important;font-weight:750;white-space:nowrap}
.rx-order-page .rx4-discount-help{margin:9px 0 13px;padding:10px 12px;background:#f1fbf6;border:1px solid #d1e8db;border-radius:8px;font-size:11px;color:#137b54}
.rx-order-page .pay-methods{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px!important;margin-bottom:14px!important}
.rx-order-page .pay-method{display:flex!important;flex-direction:row!important;align-items:center;justify-content:flex-start;gap:12px!important;min-height:79px!important;padding:14px!important;position:relative;border:1px solid #dce3ee!important;border-radius:11px!important;background:#fff!important;box-shadow:none!important;text-align:left}
.rx-order-page .pay-method.active{border-color:#5f51ed!important;background:#f8f7ff!important;box-shadow:0 0 0 3px rgba(95,81,237,.08)!important}
.rx-order-page .pay-method .pay-method-media{display:grid!important;place-items:center;flex:0 0 42px!important;width:42px!important;height:42px!important;min-width:42px!important;min-height:42px!important;padding:0!important;margin:0!important;background:#eeecff!important;border:1px solid #e4dfff!important;border-radius:10px!important;overflow:hidden!important}
.rx-order-page .pay-method .pay-method-media i{font-size:19px;color:#5143db}
.rx-order-page .pay-method .pay-method-footer{display:flex!important;flex-direction:column!important;align-items:flex-start!important;justify-content:center!important;gap:3px!important;min-width:0!important;flex:1!important;min-height:0!important;height:auto!important;padding:0!important;margin:0!important;background:transparent!important;border:0!important;text-align:left!important}
.rx-order-page .pay-method-footer strong{font-size:14px!important;font-weight:750!important;color:#18263f!important;white-space:nowrap}
.rx-order-page .pay-method-footer .pay-method-balance{font-family:'Hind Siliguri',Inter,sans-serif;font-size:11px!important;font-weight:650;color:#087c54!important;letter-spacing:0!important;white-space:nowrap;max-width:100%}
.rx-order-page .pay-method .rx4-pay-sub{font-size:11px;color:#64748b;white-space:normal;line-height:1.4}
.rx-order-page .pay-method .pay-check{position:absolute;right:11px;top:11px;display:grid;place-items:center;margin:0!important;width:17px;height:17px;font-size:9px!important}
.rx-order-page #checkoutBtn,.rx-order-page #mobileCheckoutBtn{background:#5448e8;border-radius:9px;min-height:48px;box-shadow:0 5px 13px rgba(84,72,232,.15)}
.rx-order-page .summary-card{padding:24px}
/* Medium and mobile: no partially clipped cards. */
@media(max-width:990px){.rx5-gallery{--rx5-cols:2}}
@media(max-width:720px){.rx5-gallery{--rx5-cols:1;--rx5-gap:12px}.rx5-gallery-track{padding-bottom:10px!important}.rx5-gallery-heading{align-items:flex-start}.rx-home-page .hero-mini-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.rx-home-page .hero-mini-card:last-child{grid-column:span 2}.rx5-client .rx4-profile-banner{flex-direction:column;align-items:stretch}.rx5-client .rx4-profile-aside{max-width:none}.rx5-client .rx5-account-facts{grid-template-columns:1fr}.rx5-client .rx5-funds-overview{grid-template-columns:1fr}.rx5-client .rx5-funds-proof{padding:18px}.rx5-client .funds-grid{grid-template-columns:1fr}.rx-order-page .order-page-wrap{padding:16px 12px 100px}.rx-order-page .summary-card{padding:17px}}
@media(max-width:480px){.rx5-client .rx4-profile-banner{padding:16px}.rx5-client .rx5-funds-balance{padding:17px}.rx5-client .rx5-funds-proof{display:grid;grid-template-columns:1fr 1fr;gap:12px}.rx5-client .funds-shell{padding:17px 12px 40px}.rx5-client .deposit-card{padding:17px}.rx-order-page .pay-methods{gap:8px!important}.rx-order-page .pay-method{min-height:76px!important;padding:9px!important;gap:7px!important}.rx-order-page .pay-method .pay-method-media{flex-basis:31px!important;min-width:31px!important;width:31px!important;height:31px!important;min-height:31px!important}.rx-order-page .pay-method-footer strong{font-size:11px!important}.rx-order-page .pay-method .rx4-pay-sub,.rx-order-page .pay-method .pay-method-balance{font-size:9px!important}.rx-order-page .rx-term-field .rx-period-root{width:min(215px,62%)}}
@media(prefers-reduced-motion:reduce){.rx5-gallery-track{scroll-behavior:auto!important}.rx5-gallery-track>*{transition:none!important}}
/* Keep the user-approved light BDIX hero from the earlier patch, while restoring its wording. */
.rx-hosting-page .hero h1{line-height:1.3!important;letter-spacing:0!important;word-break:normal!important;overflow-wrap:normal}
.rx-hosting-page .hero h1 span{letter-spacing:0!important}
.rx-hosting-page .hero-card{background:#fff!important;color:#172033!important;border:1px solid #e0e5ef!important;border-radius:14px!important;box-shadow:0 12px 32px rgba(19,34,70,.05)!important}
.rx-hosting-page .hero-card::after{display:none!important}
.rx-hosting-page .hero-card :is(h2,b){color:#172033!important}
.rx-hosting-page .hero-card :is(p,.small,.mini span){color:#65748d!important}
.rx-hosting-page .hero-card .mini{background:#fafbff!important;border:1px solid #e2e6f1!important;border-radius:10px!important}
.rx-hosting-page .hero-card .mini i{color:#594aea!important}
.rx-hosting-page .hero-card h2{font-size:clamp(22px,2vw,27px)!important;line-height:1.3!important}
