/* Star Template parity rules — baseline */
body.client-dashboard-body #profile .kl-preview-pane-star,
body.page-public-profile.profile-template-star .kl-star-app{
  display:flex!important;flex-direction:column!important;align-items:center!important;min-height:100%!important;height:auto!important;padding:34px 24px 28px!important;box-sizing:border-box!important;
}
body.client-dashboard-body #profile .kl-preview-pane-star .kl-star-avatar,
body.page-public-profile.profile-template-star .kl-star-avatar{width:118px!important;height:118px!important;min-width:118px!important;min-height:118px!important;margin:48px auto 18px!important;}
body.client-dashboard-body #profile .kl-preview-pane-star .kl-star-links,
body.page-public-profile.profile-template-star .kl-star-links{width:100%!important;display:grid!important;gap:11px!important;margin:0 auto 22px!important;}
body.client-dashboard-body #profile .kl-preview-pane-star .kl-star-qr-grid,
body.page-public-profile.profile-template-star .kl-star-qr-grid{display:grid!important;grid-template-columns:1fr 1fr!important;gap:10px!important;width:100%!important;max-width:280px!important;}
body.client-dashboard-body #profile .kl-preview-pane-star .kl-star-qr-item,
body.page-public-profile.profile-template-star .kl-star-qr-item{aspect-ratio:1/1!important;min-height:0!important;border-radius:15px!important;padding:8px!important;box-sizing:border-box!important;}
body.client-dashboard-body #profile .kl-preview-pane-star .kl-star-footer,
body.page-public-profile.profile-template-star .kl-star-footer{width:100%!important;margin:auto auto 0!important;padding-top:14px!important;display:grid!important;gap:4px!important;text-align:center!important;}


/* QR titles: support up to 30 characters. */
body.client-dashboard-body #profile .kl-preview-pane-star .kl-star-qr-item span,
body.page-public-profile.profile-template-star .kl-star-qr-item span{
  display:block!important;max-width:100%!important;min-height:24px!important;
  font-size:11px!important;line-height:1.12!important;font-weight:800!important;text-align:center!important;
  white-space:normal!important;overflow-wrap:anywhere!important;word-break:break-word!important;overflow:hidden!important;
}

/* baseline Star Pro content. */
body.page-public-profile.profile-template-star .kl-star-pro-promo,
body.page-public-profile.profile-template-star .kl-star-pro-reviews{width:100%!important;margin:0 auto 24px!important;color:inherit!important;}
body.page-public-profile.profile-template-star .kl-star-pro-promo>header,
body.page-public-profile.profile-template-star .kl-star-pro-reviews>header{color:inherit!important;}
body.page-public-profile.profile-template-star .kl-star-pro-reviews .kl-pro-review-link{color:inherit!important;}

/* v07.6.02 consolidated Star public profile rules */
html body.page-public-profile.profile-template-star{margin:0!important;min-height:100dvh!important;background:#050b14!important;overflow-x:hidden!important;font-family:"Roboto",Arial,Helvetica,sans-serif!important;}
    body.page-public-profile.profile-template-star .kl-star-page{width:100%!important;min-height:100dvh!important;display:flex!important;justify-content:center!important;background:radial-gradient(circle at 50% 0%,rgba(0,218,255,.13),transparent 30%),linear-gradient(180deg,#06111f,#040912)!important;padding:24px 16px!important;box-sizing:border-box!important;}
    body.page-public-profile.profile-template-star .kl-star-app{width:min(100%,430px)!important;min-height:calc(100dvh - 48px)!important;border-radius:34px!important;background:linear-gradient(180deg,#090f1a,#070b12)!important;color:#fff!important;padding:34px 24px 28px!important;box-sizing:border-box!important;box-shadow:0 28px 80px rgba(0,0,0,.36)!important;display:flex!important;flex-direction:column!important;align-items:center!important;position:relative!important;overflow:hidden!important;}
    body.page-public-profile.profile-template-star .kl-star-avatar{width:118px!important;height:118px!important;border-radius:50%!important;overflow:hidden!important;background:#fff!important;display:grid!important;place-items:center!important;margin:8px auto 18px!important;box-shadow:0 16px 38px rgba(0,0,0,.28)!important;}
    body.page-public-profile.profile-template-star .kl-star-avatar img{width:100%!important;height:100%!important;object-fit:cover!important;display:block!important;}
    body.page-public-profile.profile-template-star .kl-star-avatar span{font-size:44px!important;color:#0b57d0!important;font-weight:950!important;}
    body.page-public-profile.profile-template-star .kl-star-name{font-size:29px!important;line-height:1.05!important;letter-spacing:-.04em!important;font-weight:400!important;margin:0 0 6px!important;display:flex!important;align-items:center!important;justify-content:center!important;gap:8px!important;text-align:center!important;}
    body.page-public-profile.profile-template-star .kl-star-title{font-size:15px!important;line-height:1.25!important;font-weight:800!important;color:rgba(255,255,255,.78)!important;text-align:center!important;margin:0 0 8px!important;}
    body.page-public-profile.profile-template-star .kl-star-desc{font-size:14px!important;line-height:1.35!important;color:rgba(255,255,255,.66)!important;text-align:center!important;margin:0 auto 26px!important;max-width:300px!important;}
    body.page-public-profile.profile-template-star .kl-star-links{width:100%!important;display:grid!important;gap:11px!important;margin:0 auto 24px!important;}
    body.page-public-profile.profile-template-star .kl-star-link{min-height:56px!important;border-radius:18px!important;background:linear-gradient(180deg,rgba(255,255,255,.13),rgba(255,255,255,.075))!important;color:#fff!important;text-decoration:none!important;display:grid!important;grid-template-columns:46px 1fr!important;align-items:center!important;gap:10px!important;padding:8px 16px!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.08),0 12px 26px rgba(0,0,0,.20)!important;}
    body.page-public-profile.profile-template-star .kl-star-row-icon{width:36px!important;height:36px!important;border-radius:12px!important;display:grid!important;place-items:center!important;font-size:18px!important;font-weight:950!important;color:#fff!important;background:rgba(255,255,255,.09)!important;overflow:hidden!important;}
    body.page-public-profile.profile-template-star .kl-star-link strong{font-size:17px!important;line-height:1.1!important;font-weight:850!important;text-align:left!important;}
    body.page-public-profile.profile-template-star .kl-star-footer{margin-top:auto!important;color:rgba(255,255,255,.62)!important;font-size:13px!important;font-weight:500!important;text-align:center!important;white-space:nowrap!important;}
    body.page-public-profile.profile-template-star .kl-star-app>.klinq-animation-layer{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;z-index:0!important;pointer-events:none!important;display:none!important;overflow:hidden!important;}
    body.page-public-profile.profile-template-star .kl-star-app.klinq-animation-on>.klinq-animation-layer{display:block!important;}
    body.page-public-profile.profile-template-star .kl-star-app>*:not(.klinq-animation-layer){position:relative!important;z-index:2!important;}
    body.page-public-profile.profile-template-star .kl-star-qr-section{width:100%!important;margin:2px 0 22px!important;}
    body.page-public-profile.profile-template-star .kl-star-qr-section h2{font-size:18px!important;margin:0 0 12px!important;text-align:left!important;}
    body.page-public-profile.profile-template-star .kl-star-qr-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px!important;}
    body.page-public-profile.profile-template-star .kl-star-qr-item{appearance:none!important;border:1px solid rgba(255,255,255,.12)!important;background:rgba(255,255,255,.08)!important;color:inherit!important;border-radius:18px!important;padding:12px!important;display:grid!important;gap:8px!important;place-items:center!important;cursor:pointer!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.07)!important;}
    body.page-public-profile.profile-template-star .kl-star-qr-item img{width:100%!important;max-width:118px!important;aspect-ratio:1!important;object-fit:contain!important;background:#fff!important;border-radius:12px!important;padding:6px!important;box-sizing:border-box!important;}
    body.page-public-profile.profile-template-star .kl-star-qr-item span{font-weight:800!important;font-size:13px!important;}
    body.page-public-profile.profile-template-star .kl-star-ad-slot{width:min(100%,300px)!important;max-width:300px!important;min-height:50px!important;height:50px!important;border:1px dashed rgba(255,255,255,.24)!important;border-radius:0!important;margin:0 auto 22px!important;display:grid!important;place-items:center!important;overflow:hidden!important;background:rgba(255,255,255,.045)!important;box-sizing:border-box!important;flex:0 0 50px!important;}
    body.page-public-profile.profile-template-star .kl-star-ad-slot iframe{width:300px!important;max-width:100%!important;height:50px!important;min-height:50px!important;border:0!important;display:block!important;background:transparent!important;}
    body.page-public-profile.profile-template-star .kl-star-ad-slot strong{font-size:15px!important;letter-spacing:.12em!important;color:rgba(255,255,255,.56)!important;}
    body.page-public-profile.profile-template-star .kl-star-complete-footer{width:100%!important;text-align:center!important;color:rgba(255,255,255,.62)!important;font-size:11px!important;display:grid!important;gap:8px!important;margin:0 0 12px!important;}
    body.page-public-profile.profile-template-star .kl-star-complete-footer nav{display:flex!important;justify-content:center!important;gap:7px!important;flex-wrap:wrap!important;}
    body.page-public-profile.profile-template-star .kl-star-complete-footer a{color:inherit!important;text-decoration:none!important;}
    body.page-public-profile.profile-template-star.public-light .kl-star-app,body.page-public-profile.public-light.profile-template-star .kl-star-app{background:linear-gradient(180deg,#f8fdff,#edf8ff 58%,#fff)!important;color:#07111f!important;}
    body.page-public-profile.public-light.profile-template-star .kl-star-title,body.page-public-profile.public-light.profile-template-star .kl-star-desc,body.page-public-profile.public-light.profile-template-star .kl-star-footer,body.page-public-profile.public-light.profile-template-star .kl-star-complete-footer{color:#596579!important;}
    body.page-public-profile.public-light.profile-template-star .kl-star-link,body.page-public-profile.public-light.profile-template-star .kl-star-qr-item{background:rgba(11,87,208,.07)!important;color:#07111f!important;border-color:rgba(11,87,208,.13)!important;}
    body.page-public-profile.public-light.profile-template-star .kl-star-ad-slot{border-color:rgba(11,87,208,.22)!important;background:rgba(11,87,208,.035)!important;}
    body.page-public-profile.public-light.profile-template-star .kl-star-ad-slot strong{color:#667085!important;}
    body.page-public-profile.profile-template-star .kl-qr-modal{position:fixed;inset:0;z-index:99999;display:none;align-items:center;justify-content:center;padding:max(18px,env(safe-area-inset-top)) max(18px,env(safe-area-inset-right)) max(18px,env(safe-area-inset-bottom)) max(18px,env(safe-area-inset-left));background:rgba(2,8,18,.94);backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px);box-sizing:border-box}
    body.page-public-profile.profile-template-star .kl-qr-modal.is-open{display:flex}
    body.page-public-profile.profile-template-star .kl-qr-modal-card{width:100%;height:100%;max-width:none;max-height:none;background:transparent;color:#fff;border-radius:0;padding:58px 20px 24px;box-shadow:none;position:relative;text-align:center;display:flex;flex-direction:column;align-items:center;justify-content:center;box-sizing:border-box}
    body.page-public-profile.profile-template-star .kl-qr-modal-card img{width:min(82vmin,760px);height:min(82vmin,760px);max-width:100%;max-height:calc(100dvh - 190px);aspect-ratio:1;object-fit:contain;background:#fff;border-radius:24px;padding:14px;box-sizing:border-box;box-shadow:0 28px 90px rgba(0,0,0,.45)}
    body.page-public-profile.profile-template-star .kl-qr-modal-card h2{margin:18px 0 4px;font-size:clamp(24px,4vw,38px);line-height:1.05;color:#fff}
    body.page-public-profile.profile-template-star .kl-qr-modal-card p{margin:0;color:rgba(255,255,255,.72);font-size:clamp(15px,2.5vw,20px);font-weight:700;max-width:min(92vw,760px);overflow-wrap:anywhere}
    body.page-public-profile.profile-template-star .kl-qr-modal-close{position:fixed;right:max(18px,env(safe-area-inset-right));top:max(18px,env(safe-area-inset-top));width:50px;height:50px;border:1px solid rgba(255,255,255,.18);border-radius:50%;background:rgba(255,255,255,.13);color:#fff;font-size:34px;line-height:1;cursor:pointer;display:grid;place-items:center;box-shadow:0 12px 34px rgba(0,0,0,.28);z-index:2}
    body.page-public-profile.profile-template-star .kl-qr-modal-close:focus-visible{outline:3px solid #2cc8ff;outline-offset:3px}
    body.page-public-profile.profile-template-star.kl-qr-modal-open{overflow:hidden!important;touch-action:none}
    body.page-public-profile.profile-template-star.studio-preview-profile .kl-qr-modal{display:none!important}
    @media(max-width:520px){body.page-public-profile.profile-template-star .kl-qr-modal-card{padding:64px 8px 18px}body.page-public-profile.profile-template-star .kl-qr-modal-card img{width:min(88vw,72dvh);height:min(88vw,72dvh);border-radius:20px;padding:10px}body.page-public-profile.profile-template-star .kl-qr-modal-close{width:46px;height:46px;font-size:30px}}
    @media(max-width:480px){body.page-public-profile.profile-template-star .kl-star-page{padding:0!important;}body.page-public-profile.profile-template-star .kl-star-app{width:100vw!important;min-height:100dvh!important;border-radius:0!important;}}


/* v07.6.02 — one consistent right-side Share control. */
body.page-public-profile.profile-template-star .kl-star-app .star-profile-share-action{
  display:grid!important;position:absolute!important;top:max(28px,env(safe-area-inset-top))!important;right:28px!important;left:auto!important;
  width:42px!important;height:42px!important;min-width:42px!important;min-height:42px!important;margin:0!important;padding:0!important;
  border-radius:999px!important;place-items:center!important;color:#fff!important;background:rgba(255,255,255,.105)!important;
  border:1px solid rgba(255,255,255,.18)!important;box-shadow:0 12px 28px rgba(0,0,0,.22)!important;text-decoration:none!important;z-index:30!important;
}
body.page-public-profile.public-light.profile-template-star .kl-star-app .star-profile-share-action{color:#07111f!important;background:rgba(255,255,255,.84)!important;border-color:rgba(199,218,241,.88)!important;box-shadow:0 12px 28px rgba(16,24,40,.12)!important}
body.page-public-profile.profile-template-star .kl-star-app .star-profile-share-action svg{width:22px!important;height:22px!important}
@media(max-width:380px){body.page-public-profile.profile-template-star .kl-star-app .star-profile-share-action{right:20px!important;left:auto!important}}

/* kLinQ.™ baseline — reorderable profile sections */
.kl-star-app>.kl-profile-reorderable-section{order:var(--profile-section-order,50)}.kl-star-app>.kl-star-footer-stack{order:90}.kl-star-app>.kl-star-ad-slot{order:91}.kl-profile-section-heading{text-align:center;margin:8px 0 12px}.kl-profile-section-heading h2{margin:0;font-size:18px}.kl-profile-section-heading p{margin:4px 0 0;font-size:12px;opacity:.72}.kl-star-links.kl-profile-reorderable-section{display:flex;flex-direction:column}.kl-star-links.kl-profile-reorderable-section>a{width:100%}


/* kLinQ.™ baseline — Star Light/Dark Share always aligns right. */
html body.page-public-profile.profile-template-star .kl-star-app > .star-profile-share-action,
html body.page-public-profile.profile-template-star .kl-star-app .star-profile-share-action,
html body.page-public-profile.profile-template-star.studio-preview-profile .kl-star-app .star-profile-share-action{
  position:absolute !important;
  top:max(28px,env(safe-area-inset-top)) !important;
  right:28px !important;
  left:auto !important;
  margin:0 !important;
  transform:none !important;
  z-index:80 !important;
}
@media(max-width:480px){
  html body.page-public-profile.profile-template-star .kl-star-app .star-profile-share-action{
    right:20px !important;
    left:auto !important;
  }
}

/* baseline: consistent right-aligned profile section headings */
.kl-profile-section-heading,.klv71-section-heading,.kl-pro-promo-section>header,.kl-pro-reviews-section>header{text-align:left!important;}
.kl-profile-section-heading h2,.kl-profile-section-heading p,.klv71-section-heading h2,.klv71-section-heading p,.kl-pro-promo-section>header h2,.kl-pro-promo-section>header p,.kl-pro-reviews-section>header h2,.kl-pro-reviews-section>header p{text-align:left!important;}
