/* FollowX Perfect Panel V2 — isolated visual system. No legacy theme dependencies. */
:root{--pp-blue:#5278ff;--pp2-blue:#5278ff;--pp2-blue-dark:#3f63e8;--pp2-blue-soft:#eef3ff;--pp2-ink:#202938;--pp2-muted:#697586;--pp2-line:#e2e6ec;--pp2-bg:#f7f8fa;--pp2-white:#fff;--pp2-success:#168a58;--pp2-danger:#d54c55;--pp2-radius:3px;--pp2-shadow:0 10px 28px rgba(32,41,56,.06)}
html{background:var(--pp2-bg)}body{font-family:Cairo,Arial,sans-serif!important;color:var(--pp2-ink)!important;background:var(--pp2-bg)!important}
button,input,select,textarea{font:inherit}.container{max-width:1220px!important}
/* public header */
.header{height:78px!important;background:#fff!important;border-bottom:1px solid var(--pp2-line)!important;box-shadow:none!important}
.header-inner{height:78px!important}.logo{gap:12px!important;font-size:24px!important;color:var(--pp2-ink)!important;white-space:nowrap}.logo img{width:auto!important;height:44px!important;max-width:150px!important;object-fit:contain!important}.logo svg{width:44px!important;height:44px!important;flex:0 0 44px}.nav-links{gap:30px!important;color:#4e5868!important}.nav-links a:hover{color:var(--pp2-blue)!important}.header-actions{gap:9px!important}
.btn{border-radius:2px!important;box-shadow:none!important;min-height:44px!important;padding:11px 22px!important;font-weight:700!important}.btn-primary{background:var(--pp2-blue)!important;color:#fff!important}.btn-primary:hover{background:var(--pp2-blue-dark)!important}.btn-outline{background:#fff!important;border:1px solid #cfd5dd!important;color:var(--pp2-ink)!important}.btn-ghost{background:transparent!important;color:#4d5868!important;border:0!important}
.menu-btn{width:46px!important;height:46px!important;padding:0!important;border:1px solid #cfd5dd!important;border-radius:2px!important;background:#fff!important}
/* home */
.hero{padding:92px 0 86px!important;background:#fff!important;border-bottom:1px solid var(--pp2-line)!important}.hero-content{max-width:850px!important}.hero h1{font-size:clamp(38px,5vw,64px)!important;line-height:1.12!important;color:var(--pp2-ink)!important;font-weight:800!important;letter-spacing:-.04em!important}.hero p{max-width:720px!important;color:var(--pp2-muted)!important;font-size:18px!important;line-height:1.95!important}.hero-actions{gap:10px!important}
.section-block{padding:86px 0!important;border-top:0!important}.section-block:nth-of-type(even){background:#fff}.block-grid{gap:70px!important}.block-img{background:#f2f5fa!important;border:1px solid var(--pp2-line)!important;border-radius:2px!important;min-height:390px!important;padding:32px!important}.ui-mock{border-radius:2px!important;box-shadow:0 16px 40px rgba(32,41,56,.09)!important}.kicker{color:var(--pp2-blue)!important}.block-text h2{font-size:clamp(30px,4vw,44px)!important;color:var(--pp2-ink)!important}.block-text p{color:var(--pp2-muted)!important;line-height:2!important}
.payment-grid{max-width:520px!important;grid-template-columns:repeat(3,1fr)!important;gap:10px!important}.pay-box{height:76px!important;border-radius:2px!important;border:1px solid var(--pp2-line)!important;color:var(--pp2-ink)!important;box-shadow:none!important;background:#fff!important}
.pricing{background:#f4f6f9!important;border-top:1px solid var(--pp2-line)!important}.pricing-cards{grid-template-columns:repeat(auto-fit,minmax(290px,1fr))!important;gap:16px!important;margin-top:36px!important}.p-card{background:#fff!important;border:1px solid var(--pp2-line)!important;border-radius:2px!important;padding:30px!important;box-shadow:none!important}.p-card:hover{border-color:#b9c5e8!important;transform:translateY(-3px)!important;box-shadow:0 16px 35px rgba(32,41,56,.07)!important}.p-card .price{font-size:34px!important;color:var(--pp2-ink)!important}.p-card .price span{font-size:14px!important;color:var(--pp2-muted)!important}.p-card li{color:#4d5868!important;border-bottom:1px solid #eef0f3!important;padding:10px 0!important}.p-card .btn{border-radius:2px!important}
.footer{background:#fff!important;border-top:1px solid var(--pp2-line)!important;color:var(--pp2-muted)!important;padding:32px 0!important}
/* public app shell */
body:not(.admin-shell-body) .sidebar{background:#fff!important;border-left:1px solid var(--pp2-line)!important;box-shadow:none!important}.shell .main{background:var(--pp2-bg)!important}.topbar{background:#fff!important;border-bottom:1px solid var(--pp2-line)!important;box-shadow:none!important}.content{max-width:1400px!important;padding:34px 42px!important}.panel,.stat-card{background:#fff!important;border:1px solid var(--pp2-line)!important;border-radius:2px!important;box-shadow:none!important}.panel{padding:28px!important}.panel-head{border-bottom:1px solid #edf0f3!important;padding-bottom:16px!important;margin-bottom:20px!important}.panel-head h2{color:var(--pp2-ink)!important}.form-grid{gap:20px!important}label{color:#465162!important}input,select,textarea{border:1px solid #cfd5dd!important;background:#fff!important;border-radius:2px!important;color:var(--pp2-ink)!important;min-height:50px!important}input:focus,select:focus,textarea:focus{border-color:var(--pp2-blue)!important;box-shadow:0 0 0 3px rgba(82,120,255,.10)!important}.table-wrap{border:1px solid var(--pp2-line)!important;border-radius:2px!important;box-shadow:none!important}table th{background:#f6f7f9!important;color:#687384!important}table td,table th{border-color:#e6e9ed!important}.badge{border-radius:2px!important}.alert{border-radius:2px!important}.pay-method,.radio-card{border:1px solid #d9dee5!important;border-radius:2px!important;background:#fff!important}.pay-method.checked,.pay-method:hover,.radio-card:hover{border-color:var(--pp2-blue)!important;background:var(--pp2-blue-soft)!important}
/* logo everywhere: strict cap so admin cannot be visually broken by uploaded images */
.brand img,.pp-mobile-brand img,.auth-logo img{width:auto!important;height:42px!important;max-width:150px!important;object-fit:contain!important;border-radius:0!important}.brand svg,.pp-mobile-brand svg{width:42px!important;height:42px!important}.brand{overflow:hidden!important}.brand span{white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
/* user mobile */
@media(max-width:900px){.header,.header-inner{height:74px!important}.header-inner{padding:0 18px!important}.logo{font-size:21px!important}.logo img{height:40px!important;max-width:130px!important}.logo svg{width:40px!important;height:40px!important}.menu-btn{width:46px!important;height:46px!important}.mobile-menu{inset:74px 0 0!important;transform:translateX(100%)!important;padding:18px!important;border-top:1px solid var(--pp2-line)!important}.mobile-menu.open{transform:translateX(0)!important}.mobile-menu .logo img{height:40px!important}.mobile-menu .logo svg{width:40px!important;height:40px!important}.hero{padding:58px 0 60px!important}.hero h1{font-size:38px!important}.section-block{padding:62px 0!important}.container{padding:0 18px!important}.block-img{min-height:280px!important}.pricing-cards{grid-template-columns:1fr!important}.content{padding:24px 15px 45px!important}.topbar{height:74px!important;padding:0 18px!important}.pp-mobile-brand img,.pp-mobile-brand svg{width:40px!important;height:40px!important}.pp-mobile-brand{font-size:21px!important}.user-nav-toggle,.admin-nav-toggle{width:46px!important;height:46px!important;border-radius:2px!important}.pp-page-title-mobile h1{font-size:30px!important}}
/* admin */
.admin-shell-body{background:var(--pp2-bg)!important}.admin-shell-body .sidebar{width:300px!important;background:#fff!important;border-right:0!important;border-left:1px solid var(--pp2-line)!important;padding:18px 14px!important}.admin-shell-body .sidebar .brand{min-height:62px!important;border-bottom:1px solid #edf0f3!important;padding:0 12px!important}.admin-shell-body .side-nav a{border-radius:2px!important;min-height:48px!important;color:#566173!important;padding:11px 14px!important;border-right:3px solid transparent!important}.admin-shell-body .side-nav a.active{background:var(--pp2-blue-soft)!important;color:var(--pp2-blue)!important;border-right-color:var(--pp2-blue)!important}.admin-shell-body .nav-group-label{color:#9aa3af!important}.admin-shell-body .topbar{height:78px!important;padding:0 30px!important}.admin-shell-body .content{padding:32px 36px!important;max-width:none!important}.admin-shell-body .panel{padding:28px!important}.admin-shell-body .stat-grid{gap:14px!important}.admin-shell-body .stat-card{min-height:126px!important}.admin-shell-body .stat-card.accent{background:var(--pp2-blue)!important;border-color:var(--pp2-blue)!important}.admin-shell-body .stat-card.accent *{color:#fff!important}.admin-shell-body .btn{border-radius:2px!important}.admin-shell-body .admin-nav-overlay{background:rgba(26,34,47,.38)!important}.admin-shell-body .admin-nav-toggle{border:1px solid #cfd5dd!important;background:#fff!important;color:#6b7482!important;border-radius:2px!important}
@media(max-width:900px){.admin-shell-body .sidebar{width:min(390px,86vw)!important;max-width:390px!important;padding:18px 14px!important}.admin-shell-body .topbar{height:74px!important;padding:0 18px!important}.admin-shell-body .content{padding:24px 15px 45px!important}.admin-shell-body .sidebar .brand{min-height:70px!important}.admin-shell-body .brand img,.admin-shell-body .brand svg{width:42px!important;height:42px!important}.admin-shell-body .side-nav a{min-height:52px!important;font-size:16px!important}}
/* payment confirmation */
.pp2-checkout{max-width:900px;margin:0 auto}.pp2-checkout-hero{display:flex;justify-content:space-between;align-items:flex-start;gap:20px;margin-bottom:18px}.pp2-status{padding:8px 12px;border:1px solid #dfe4ea;background:#f8f9fb;color:#596579;font-size:13px}.pp2-method-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:12px}.pp2-method{border:1px solid var(--pp2-line);background:#fff;padding:18px}.pp2-proof{border:2px dashed #cbd3df;padding:28px;text-align:center;background:#fafbfc}.pp2-proof input{border:0!important;padding:10px!important}.pp2-credentials{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}@media(max-width:700px){.pp2-checkout-hero{display:block}.pp2-credentials{grid-template-columns:1fr}}
/* authentication pages */
.auth-page{min-height:100vh!important;background:#f7f8fa!important;padding:38px 18px!important}.auth-card{width:min(100%,680px)!important;margin:0 auto!important;background:#fff!important;border:1px solid var(--pp2-line)!important;border-radius:2px!important;box-shadow:0 20px 60px rgba(32,41,56,.08)!important;padding:34px!important}.auth-logo{display:flex!important;align-items:center!important;gap:10px!important;font-size:23px!important;font-weight:800!important;color:var(--pp2-ink)!important;margin-bottom:28px!important}.auth-logo img{height:42px!important;max-width:140px!important;width:auto!important}.auth-title{font-size:30px!important;color:var(--pp2-ink)!important;font-weight:800!important}.ip12-form-section{border:1px solid #edf0f3!important;background:#fafbfc!important;padding:20px!important;margin-top:18px!important}.ip12-form-section h2{font-size:17px!important;margin-bottom:15px!important}.auth-switch{color:var(--pp2-muted)!important}.auth-switch a{color:var(--pp2-blue)!important;font-weight:700!important}.divider{color:#8b95a3!important}.btn-google{border:1px solid #d7dce4!important;background:#fff!important;border-radius:2px!important;min-height:46px!important}.newsletter-consent{background:#fff!important}
:root{--pp-muted:#697586;--text-dim:#697586;--text-faint:#9aa3af}.pp-brand-preview{display:flex!important;align-items:center!important;gap:14px!important;border:1px solid var(--pp2-line)!important;background:#fafbfc!important;padding:20px!important;margin-top:18px!important;min-height:86px!important}.pp-brand-preview img{width:auto!important;height:min(var(--pp-logo-height,56px),56px)!important;max-width:180px!important;object-fit:contain!important}.pp-brand-fallback{width:min(var(--pp-logo-height,56px),56px)!important;height:min(var(--pp-logo-height,56px),56px)!important;background:#5278ff!important;color:#fff!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;font-weight:800!important}

/* ==========================================================
   PUBLIC FOUNDATION FIX — structural rules intentionally live
   in the isolated V2 stylesheet so the homepage never depends
   on legacy theme files being loaded.
   ========================================================== */
*,*::before,*::after{box-sizing:border-box}
html{min-width:320px;overflow-x:hidden;scroll-behavior:smooth}
body{margin:0;min-width:320px;overflow-x:hidden}
a{color:inherit;text-decoration:none}
ul{margin:0;padding:0;list-style:none}
img{display:block;max-width:100%;height:auto}
button{font:inherit;cursor:pointer}
.container{width:min(1220px,calc(100% - 48px));margin-inline:auto}

.header{position:sticky;top:0;z-index:1000;width:100%}
.header-inner{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-inline:auto}
.logo{display:inline-flex;align-items:center;flex:0 1 auto;min-width:0;text-decoration:none}
.logo img{display:block;flex:0 0 auto}
.nav-links{display:flex;align-items:center;justify-content:center;flex:1;min-width:0}
.nav-links a{display:inline-flex;align-items:center;padding:8px 4px;color:#4e5868;text-decoration:none;white-space:nowrap}
.header-actions{display:flex;align-items:center;justify-content:flex-end;flex:0 0 auto}
.menu-btn{display:none;align-items:center;justify-content:center;color:var(--pp2-ink)}

.hero{width:100%}
.hero-content{margin-inline:auto;text-align:center}
.hero h1{margin:0 0 18px}
.hero p{margin:0 auto 26px}
.hero-actions{display:flex;align-items:center;justify-content:center;flex-wrap:wrap}
.btn-link{display:inline-flex;align-items:center;justify-content:center;padding:11px 14px;color:var(--pp2-blue);font-weight:700;text-decoration:none}
.section-block{width:100%}
.block-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:center}
.block-grid.reverse > .block-text{order:2}.block-grid.reverse > .block-img{order:1}
.block-text{min-width:0}.block-text h2{margin:0 0 18px}.block-text p{margin:0 0 24px}
.block-img{min-width:0;display:flex;align-items:center;justify-content:center;overflow:hidden}
.block-img > *{max-width:100%}
.ui-mock{width:100%;max-width:100%;overflow:hidden;background:#fff}
.ui-mock img,.ui-mock svg{max-width:100%;height:auto}
.payment-grid{display:grid;width:100%;max-width:520px;margin:auto}
.pay-box{display:flex;align-items:center;justify-content:center;text-align:center;padding:10px;min-width:0;overflow:hidden;white-space:normal}
.pricing h2{margin:0 0 10px}.pricing p{margin:0}
.pricing-cards{display:grid}
.p-card{min-width:0}.p-card h3{margin:0 0 14px}.p-card .price{margin-bottom:18px}.p-card .price span{font-weight:600}.p-card ul{margin:0 0 22px}.p-card li{display:flex;align-items:flex-start;gap:9px}.p-card li svg{flex:0 0 18px;margin-top:4px}.p-card .btn{width:100%}
.footer{width:100%}.footer p{margin:0}

.mobile-menu{display:flex;flex-direction:column;position:fixed;z-index:1100;top:74px;right:0;bottom:0;width:min(360px,92vw);background:#fff;border-left:1px solid var(--pp2-line);box-shadow:-24px 0 70px rgba(24,35,54,.16);padding:22px;transform:translateX(110%);visibility:hidden;transition:transform .25s ease,visibility .25s ease;overflow-y:auto}
.mobile-menu.open{transform:translateX(0);visibility:visible}
.mobile-menu-head{display:flex;align-items:center;justify-content:space-between;gap:14px;padding-bottom:18px;border-bottom:1px solid var(--pp2-line)}
.mobile-menu-head .logo{font-size:20px}.mobile-menu-close{width:42px;height:42px;display:inline-flex;align-items:center;justify-content:center;border:1px solid #cfd5dd;background:#fff;color:var(--pp2-ink);border-radius:4px}
.mobile-menu-links{display:grid;gap:4px;padding:18px 0}.mobile-menu-links a{padding:14px 10px;border-bottom:1px solid #edf0f3;font-size:17px;font-weight:700;text-decoration:none;color:var(--pp2-ink)}
.mobile-menu-actions{display:grid;gap:10px;margin-top:auto;padding-top:18px}.mobile-menu-actions .btn{width:100%}

@media(max-width:900px){
  .container{width:min(100%,calc(100% - 32px))}
  .header{height:74px}
  .header-inner{height:74px;gap:12px}
  .logo{font-size:21px;max-width:calc(100% - 58px)}
  .logo img{height:40px;max-width:130px}
  .logo span{overflow:hidden;text-overflow:ellipsis}
  .nav-links,.header-actions{display:none}
  .menu-btn{display:inline-flex;flex:0 0 46px}
  .hero-content{max-width:100%}
  .hero p{font-size:17px}
  .block-grid{grid-template-columns:1fr;gap:32px}
  .block-grid.reverse > .block-text,.block-grid.reverse > .block-img{order:initial}
  .block-text{text-align:center}
  .block-text .btn{margin-inline:auto}
  .block-img{min-height:0;padding:22px!important}
  .payment-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(max-width:520px){
  .container{width:min(100%,calc(100% - 24px))}
  .hero h1{font-size:clamp(32px,10vw,42px)!important}
  .hero p{font-size:16px!important;line-height:1.9!important}
  .hero-actions{flex-direction:column;align-items:stretch}
  .hero-actions .btn,.hero-actions .btn-link{width:100%}
  .section-block{padding:52px 0!important}
  .block-img{padding:14px!important}
  .payment-grid{grid-template-columns:repeat(2,minmax(0,1fr));max-width:100%}
  .pay-box{min-height:64px}
  .pricing-cards{grid-template-columns:1fr!important}
  .mobile-menu{width:100%;top:74px}
}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}.mobile-menu{transition:none}}

/* ==========================================================
   FOLLOWX REFERENCE UI — customer panel + mobile scroll
   ========================================================== */
html{overflow-y:scroll!important;overflow-x:hidden!important}
body{overflow-x:hidden!important;min-width:320px!important}
body:not(.admin-shell-body) .shell{display:flex!important;min-height:100vh!important;align-items:stretch!important}
body:not(.admin-shell-body) .sidebar{position:sticky!important;top:0!important;right:auto!important;width:270px!important;min-width:270px!important;height:100vh!important;overflow-y:auto!important;overflow-x:hidden!important;transform:none!important;transition:none!important;z-index:90!important;padding:18px 14px!important}
body:not(.admin-shell-body) .main{flex:1 1 auto!important;width:calc(100% - 270px)!important;min-width:0!important;overflow:visible!important}
body:not(.admin-shell-body) .topbar{height:74px!important;min-height:74px!important;position:sticky!important;top:0!important;z-index:80!important;padding:0 24px!important}
body:not(.admin-shell-body) .content{width:100%!important;max-width:1100px!important;margin:0 auto!important;padding:30px 30px 60px!important;overflow:visible!important}
body:not(.admin-shell-body) .panel{border-radius:2px!important;padding:22px!important;margin-bottom:18px!important}
body:not(.admin-shell-body) .panel-head{margin-bottom:18px!important}
body:not(.admin-shell-body) .panel-head h2{font-size:22px!important}
body:not(.admin-shell-body) .table-wrap,
body:not(.admin-shell-body) .inv-wrap{max-width:100%!important;overflow-x:auto!important;overflow-y:hidden!important;overscroll-behavior-x:contain!important;-webkit-overflow-scrolling:touch!important;direction:ltr!important}
body:not(.admin-shell-body) .table-wrap table,
body:not(.admin-shell-body) table.inv{direction:rtl!important;min-width:680px!important}
body:not(.admin-shell-body) .table-wrap::-webkit-scrollbar,
body:not(.admin-shell-body) .inv-wrap::-webkit-scrollbar{height:7px!important}
body:not(.admin-shell-body) .table-wrap::-webkit-scrollbar-thumb,
body:not(.admin-shell-body) .inv-wrap::-webkit-scrollbar-thumb{background:#bfc6d0!important;border-radius:8px!important}
body:not(.admin-shell-body) img{max-width:100%!important;height:auto!important}
body:not(.admin-shell-body) .brand img,
body:not(.admin-shell-body) .pp-mobile-brand img{width:auto!important;height:42px!important;max-width:150px!important;object-fit:contain!important}
body:not(.admin-shell-body) .auth-card img{width:auto!important;max-width:180px!important;height:auto!important;object-fit:contain!important}

@media(max-width:900px){
  body:not(.admin-shell-body) .shell{display:block!important}
  body:not(.admin-shell-body) .sidebar{position:fixed!important;right:0!important;top:0!important;bottom:0!important;width:min(330px,78vw)!important;min-width:0!important;height:100dvh!important;transform:translateX(110%)!important;transition:transform .25s ease,box-shadow .25s ease!important;z-index:120!important;overflow-y:auto!important}
  body:not(.admin-shell-body) .user-nav-open .sidebar{transform:translateX(0)!important;box-shadow:-18px 0 55px rgba(20,28,42,.18)!important}
  body:not(.admin-shell-body) .main{width:100%!important}
  body:not(.admin-shell-body) .topbar{height:74px!important;min-height:74px!important;padding:0 18px!important}
  body:not(.admin-shell-body) .content{max-width:none!important;padding:24px 14px 48px!important}
  body:not(.admin-shell-body) .panel{padding:16px!important}
  body:not(.admin-shell-body) .panel-head h2{font-size:25px!important}
  body:not(.admin-shell-body) .content > .panel{width:100%!important}
}
@media(max-width:520px){
  body:not(.admin-shell-body) .content{padding:18px 10px 42px!important}
  body:not(.admin-shell-body) .panel{padding:14px!important}
  body:not(.admin-shell-body) .panel-head h2{font-size:24px!important}
  body:not(.admin-shell-body) .btn{min-height:48px!important}
  body:not(.admin-shell-body) input,body:not(.admin-shell-body) select,body:not(.admin-shell-body) textarea{min-height:50px!important}
}

/* Admin media hard limits: logo/image previews stay previews, never full-panel images. */
.admin-shell-body .media-picker img,
.admin-shell-body .media-preview img,
.admin-shell-body .logo-preview img,
.admin-shell-body .site-media-preview img{width:auto!important;max-width:min(260px,100%)!important;height:auto!important;max-height:180px!important;object-fit:contain!important}
