/* JakSky V168: 3 modal-only fixes. No script/endpoint/database modifications. */
/* 1. Age gate: one accessible X, centered; old span's text is replaced by SVG in HTML. */
html body #agePopup .ageBox button.jakAgeCloseV168 {
  position:absolute !important; top:13px !important; right:13px !important;
  box-sizing:border-box !important; width:42px !important; min-width:42px !important;
  height:42px !important; min-height:42px !important;
  padding:0 !important; margin:0 !important;
  display:grid !important; place-items:center !important;
  border:1px solid #5587b3 !important; border-radius:13px !important;
  background:#5A463C !important; color:#c8ecff !important;
  box-shadow:0 5px 16px rgba(0,7,20,.23) !important;
  cursor:pointer; z-index:30 !important;
  font-size:0 !important; line-height:0 !important;
  -webkit-tap-highlight-color:transparent; touch-action:manipulation;
  transition:background-color .16s,border-color .16s,transform .16s;
}
html body #agePopup .ageBox button.jakAgeCloseV168 svg {
  display:block !important; width:19px !important; height:19px !important;
  stroke:#FFF4E9 !important; stroke-width:2 !important;
  fill:none !important; stroke-linecap:round !important;
  pointer-events:none !important;
}
html body #agePopup .ageBox button.jakAgeCloseV168:hover {background:#5A463C !important;border-color:#B99D87 !important;}
html body #agePopup .ageBox button.jakAgeCloseV168:active {transform:scale(.95) !important;}
html body #agePopup .ageBox button.jakAgeCloseV168:focus-visible {outline:3px solid #D9BCA4 !important;outline-offset:3px !important;}

/* 2. Four separate staff profile identities; existing privacy logic and avatar untouched. */
html body #publicProfileModal .jakPrivateStaffV26 {
  --v168-accent:#8cbaff;--v168-rgb:63,139,255;
  --v168-secondary:#183960;
  position:relative !important;
  min-height:0 !important;
  gap:0 !important;
  padding:20px 17px 18px !important;
  border-radius:23px !important;
  border:1px solid rgba(var(--v168-rgb),.38) !important;
  background:radial-gradient(ellipse at 50% 6%,rgba(var(--v168-rgb),.18),transparent 53%),
    linear-gradient(150deg,#0e223e 0%,#081528 65%,#091a2e 100%) !important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.09),0 18px 42px rgba(0,8,22,.35) !important;
  color:#f2f8ff !important;
  text-align:center !important;
}
html body #publicProfileModal .jakPrivateStaffV26.role-owner {--v168-accent:#f3d18a;--v168-rgb:224,178,85;--v168-secondary:#322914;--role-a:#f3d18a;--role-b:#d6ab63;}
html body #publicProfileModal .jakPrivateStaffV26.role-admin {--v168-accent:#9dcbff;--v168-rgb:55,145,255;--v168-secondary:#112b54;--role-a:#9dcbff;--role-b:#4c88ff;}
html body #publicProfileModal .jakPrivateStaffV26.role-event {--v168-accent:#69dce8;--v168-rgb:31,174,194;--v168-secondary:#0e3846;--role-a:#69dce8;--role-b:#31b5cc;}
html body #publicProfileModal .jakPrivateStaffV26.role-moderator {--v168-accent:#a5e7c4;--v168-rgb:47,168,121;--v168-secondary:#12372d;--role-a:#a5e7c4;--role-b:#54ad8f;}
html body #publicProfileModal .jakPrivateStaffV26 .jakPrivateFxV26 {display:none !important;}
html body #publicProfileModal .jakPrivateStaffV26::after {display:none !important;content:none !important;animation:none !important;}
html body #publicProfileModal .jakPrivateTopV26 {
  display:flex !important; align-items:center !important; justify-content:space-between !important;
  flex-wrap:wrap !important; column-gap:7px !important;row-gap:9px !important;
  position:relative !important; z-index:2 !important;
}
html body #publicProfileModal .jakPrivateEyebrowV26 {
  color:var(--v168-accent) !important; font-size:10px !important; line-height:1.25 !important;
  font-weight:850 !important; letter-spacing:.11em !important;
}
html body #publicProfileModal .jakPrivateVerifiedV26 {
  background:rgba(29,63,96,.78) !important; border:1px solid rgba(var(--v168-rgb),.32) !important;
  box-shadow:none !important; max-width:100% !important;
}
html body #publicProfileModal .jakPrivateAvatarWrapV133 {
  width:104px !important; height:104px !important;
  margin:24px auto 4px !important; padding:4px !important;
  background:linear-gradient(145deg,var(--v168-accent),#6baaff) !important;
  box-shadow:0 0 0 5px rgba(var(--v168-rgb),.09),0 9px 24px rgba(0,0,0,.35) !important;
}
html body #publicProfileModal .jakPrivateAvatarV133 {border:3px solid #0a1a2a !important;}
html body #publicProfileModal .jakPrivateEmblemV26 {
  width:42px !important; height:42px !important; margin:-21px 0 15px !important;
  border-radius:13px !important; border:1px solid rgba(var(--v168-rgb),.55) !important;
  background:linear-gradient(145deg,var(--v168-secondary),#091b2d) !important;
  box-shadow:0 6px 17px rgba(0,0,0,.30) !important;
  transform:none !important; animation:none !important;opacity:1 !important;
}
html body #publicProfileModal .jakPrivateEmblemV26::before,
html body #publicProfileModal .jakPrivateEmblemV26::after {content:none !important;display:none !important;animation:none !important;}
html body #publicProfileModal .jakPrivateEmblemV26 i {font-size:0 !important;color:transparent !important;line-height:0 !important;text-shadow:none !important;}
html body #publicProfileModal .jakPrivateEmblemV26 i::before {
  content:"" !important;display:block !important;width:23px !important;height:23px !important;
  background-size:contain !important;background-repeat:no-repeat !important;background-position:center !important;
}
html body #publicProfileModal .role-owner .jakPrivateEmblemV26 i::before {background-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23f5d18a%22%20stroke-width%3D%221.75%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M3%208%207.3%2011.5%2012%204l4.7%207.5L21%208l-2.2%2011H5.2L3%208Z%22%2F%3E%3Cpath%20d%3D%22M6%2021h12%22%2F%3E%3C%2Fsvg%3E") !important;}
html body #publicProfileModal .role-admin .jakPrivateEmblemV26 i::before {background-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%2398c9ff%22%20stroke-width%3D%221.75%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Crect%20x%3D%223%22%20y%3D%224%22%20width%3D%2218%22%20height%3D%2216%22%20rx%3D%223%22%2F%3E%3Cpath%20d%3D%22M3%209h18M8%2014h4m-4%203h7M17%2014h.01%22%2F%3E%3C%2Fsvg%3E") !important;}
html body #publicProfileModal .role-event .jakPrivateEmblemV26 i::before {background-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%236ce1e9%22%20stroke-width%3D%221.75%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M4%205h16v5a2%202%200%200%200%200%204v5H4v-5a2%202%200%200%200%200-4V5Z%22%2F%3E%3Cpath%20d%3D%22M12%205v14M8%2012h.01M16%2012h.01%22%2F%3E%3C%2Fsvg%3E") !important;}
html body #publicProfileModal .role-moderator .jakPrivateEmblemV26 i::before {background-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23a9ebc5%22%20stroke-width%3D%221.75%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22m12%202%208%204v6c0%204.6-2.8%207.4-8%2010-5.2-2.6-8-5.4-8-10V6l8-4Z%22%2F%3E%3Cpath%20d%3D%22m8.5%2012%202.5%202.5%204.8-5%22%2F%3E%3C%2Fsvg%3E") !important;}
html body #publicProfileModal .jakPrivateTitleV26 {
  color:#f5f9ff !important; font-size:clamp(20px,5.3vw,24px) !important;
  line-height:1.18 !important; font-weight:850 !important; letter-spacing:-.025em !important;
  max-width:100% !important; text-wrap:balance;
}
html body #publicProfileModal .jakPrivateUsernameV26 {
  color:var(--v168-accent) !important; font-size:13px !important;
  margin-top:7px !important;overflow-wrap:anywhere !important;
}
html body #publicProfileModal .jakPrivateTextV26 {
  margin:17px 0 0 !important; max-width:310px !important;
  color:#e1eaf5 !important; font-size:12.5px !important; line-height:1.55 !important;
  font-weight:650 !important;
}
html body #publicProfileModal .jakPrivateSubV26 {
  margin:6px 0 0 !important; max-width:310px !important;
  color:#abc1d7 !important; font-size:11px !important; line-height:1.5 !important;
}
html body #publicProfileModal .jakPrivateLockV26 {
  margin-top:19px !important; padding:11px 12px !important;
  border-radius:14px !important; text-align:left !important;
  background:rgba(17,50,79,.76) !important;
  border:1px solid rgba(var(--v168-rgb),.22) !important;
  display:flex !important;align-items:center !important;gap:11px !important;
}
html body #publicProfileModal .jakPrivateLockV26 > span {
  font-size:0 !important;flex:0 0 36px !important;width:36px !important;height:36px !important;
  background:rgba(var(--v168-rgb),.14) !important;border-radius:11px !important;
}
html body #publicProfileModal .jakPrivateLockV26 > span::before {
  content:"" !important;display:block !important;width:20px !important;height:20px !important;
  background-position:center !important;background-size:contain !important;
}
html body #publicProfileModal .jakPrivateLockV26 > span::before {background-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23d2e8ff%22%20stroke-width%3D%221.75%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Crect%20x%3D%225%22%20y%3D%2210%22%20width%3D%2214%22%20height%3D%2211%22%20rx%3D%222%22%2F%3E%3Cpath%20d%3D%22M8%2010V7a4%204%200%200%201%208%200v3%22%2F%3E%3C%2Fsvg%3E") !important;}
html body #publicProfileModal .jakPrivateLockV26 b {
  font-size:11px !important;color:#edf6ff !important;line-height:1.3 !important;
  letter-spacing:.045em !important;
}
html body #publicProfileModal .jakPrivateLockV26 small {
  margin-top:3px !important; font-size:10px !important;color:#b1c6d8 !important;
  line-height:1.35 !important;
}
/* Do not restyle profiles of ordinary members; scope everything to .jakPrivateStaffV26. */

/* 3. Redeem close button: smaller visual X, reserve header row to avoid paragraph overlap. */
html body #jakRedeemModal .jakRedeemCard {
  position:relative !important;
  overflow:auto !important;
}
html body #jakRedeemModal .jakRedeemCard > h3 {
  box-sizing:border-box !important;
  min-height:46px !important;
  padding:0 52px 0 0 !important;
  margin:0 0 13px !important;
  display:flex !important;align-items:center !important;
  font-size:clamp(20px,5.3vw,23px) !important;
  line-height:1.25 !important;
}
html body #jakRedeemModal .jakRedeemCard > p:first-of-type {
  clear:both !important;
  padding-right:0 !important;
  margin:0 0 16px !important;
  line-height:1.6 !important;
  overflow-wrap:anywhere !important;
}
html body #jakRedeemModal .jakRedeemClose {
  position:absolute !important;
  top:14px !important; right:14px !important;
  box-sizing:border-box !important;
  width:40px !important; min-width:40px !important; height:40px !important;min-height:40px !important;
  margin:0 !important; padding:0 !important;
  display:grid !important;place-items:center !important;
  border-radius:12px !important; border:1px solid #8aafc8 !important;
  background-color:#e8f2fb !important;
  background-position:center !important;background-repeat:no-repeat !important;
  background-size:18px 18px !important;
  color:transparent !important; font-size:0 !important;line-height:0 !important;
  box-shadow:none !important;z-index:5 !important;
  cursor:pointer !important;touch-action:manipulation !important;
  transition:background-color .15s,transform .15s !important;
}
html body #jakRedeemModal .jakRedeemClose {background-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%2324405c%22%20stroke-width%3D%221.75%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M5.5%205.5%2018.5%2018.5M18.5%205.5%205.5%2018.5%22%2F%3E%3C%2Fsvg%3E") !important;}
html body #jakRedeemModal .jakRedeemClose > *{display:none !important;}
html body #jakRedeemModal .jakRedeemClose::before,
html body #jakRedeemModal .jakRedeemClose::after{content:none !important;display:none !important;}
html body #jakRedeemModal .jakRedeemClose:active{transform:scale(.95) !important;}
html body #jakRedeemModal .jakRedeemClose:hover{background-color:#d6eafb !important;}
html body #jakRedeemModal .jakRedeemClose:focus-visible{outline:3px solid #398fd2 !important;outline-offset:3px !important;}
html[data-jak-theme="dark"] body #jakRedeemModal .jakRedeemClose,
html[data-theme="dark"] body #jakRedeemModal .jakRedeemClose{
  background-color:#d7eafb !important; border-color:#82b6da !important;
}
@media(max-width:390px){
  html body #publicProfileModal .jakPrivateStaffV26 {padding:18px 13px 16px !important;}
  html body #publicProfileModal .jakPrivateEyebrowV26 {font-size:9px !important;}
  html body #publicProfileModal .jakPrivateAvatarWrapV133 {width:94px !important;height:94px !important;margin-top:20px !important;}
  html body #publicProfileModal .jakPrivateTitleV26 {font-size:20px !important;}
  html body #jakRedeemModal .jakRedeemCard > h3 {font-size:21px !important;}
}
@media(prefers-reduced-motion:reduce){
  html body #agePopup .jakAgeCloseV168,
  html body #jakRedeemModal .jakRedeemClose,
  html body #publicProfileModal .jakPrivateStaffV26 * {
    animation:none !important;transition:none !important;
  }
}

/* Staff modal close must not cover VERIFIED STAFF and must not revert to pink. */
html body #publicProfileModal .publicProfileBox > button.publicProfileClose {
  position:absolute !important; top:12px !important;right:12px !important;left:auto !important;
  box-sizing:border-box !important;
  display:grid !important;place-items:center !important;
  width:40px !important;min-width:40px !important;height:40px !important;min-height:40px !important;
  margin:0 !important;padding:0 !important;
  border-radius:12px !important;
  border:1px solid #457faf !important;
  background:#102e4e !important;color:#b9e5ff !important;
  box-shadow:0 4px 13px rgba(0,7,22,.28) !important;
  z-index:30 !important;
}
html body #publicProfileModal .publicProfileBox > button.publicProfileClose svg {
  width:19px !important;height:19px !important;
  stroke:currentColor !important;fill:none !important;stroke-width:2 !important;
  stroke-linecap:round !important;pointer-events:none !important;
}
html body #publicProfileModal .publicProfileBox > button.publicProfileClose:focus-visible {
  outline:3px solid #91d0ff !important;outline-offset:3px !important;
}
html body #publicProfileModal .jakPrivateTopV26 {
  box-sizing:border-box !important;
  padding-right:50px !important; /* reserve space for 40px close + gap */
}
@media(max-width:360px) {
  html body #publicProfileModal .jakPrivateTopV26 {
    padding-right:47px !important;
  }
}

/* Remove the old rose-colored ring around the age-warning illustration. */
html body #agePopup .ageBox .ageImage {
  border:3px solid #79c5fa !important;
  box-shadow:0 0 0 5px rgba(62,147,212,.10),0 10px 26px rgba(4,20,49,.28) !important;
}
