/* APP291 — UI polish + backflow safety without touching routes/endpoints */
:root{
  --asn291-gold:#ffd66e;
  --asn291-warm:#ff9a3d;
  --asn291-blue:#4da8ff;
  --asn291-panel-bg:linear-gradient(160deg,rgba(8,12,23,.985),rgba(14,24,43,.965) 58%,rgba(5,8,18,.99));
}

/* Choose your access — premium card treatment */
html body #asnProfilePanel.asn-web190-overlay > .asn-web190-sheet{
  width:min(100%,430px)!important;
  max-width:430px!important;
  border-radius:24px!important;
  overflow:hidden!important;
  background:
    radial-gradient(circle at 18% 0%,rgba(255,159,67,.17),transparent 36%),
    radial-gradient(circle at 100% 100%,rgba(57,132,255,.13),transparent 34%),
    var(--asn291-panel-bg)!important;
  border:1px solid rgba(255,213,112,.82)!important;
  box-shadow:0 26px 80px rgba(0,0,0,.72),0 0 24px rgba(255,178,54,.18),inset 0 1px rgba(255,255,255,.09)!important;
}
html body #asnProfilePanel .asn-web190-sheet > header{
  padding:14px 16px!important;
  min-height:64px!important;
  background:linear-gradient(90deg,rgba(255,192,72,.12),rgba(13,19,35,.94) 48%,rgba(11,20,39,.88))!important;
  border-bottom:1px solid rgba(255,210,117,.25)!important;
}
html body #asnProfilePanel .asn-web190-sheet > header strong{
  letter-spacing:.12em!important;
  font-size:15px!important;
  font-weight:900!important;
}
html body #asnProfilePanel .asn-web190-profile{
  gap:14px!important;
  padding:18px!important;
}
html body #asnProfilePanel .asn-web190-profile > a{
  position:relative!important;
  min-height:132px!important;
  padding:18px 18px 18px 16px!important;
  border-radius:22px!important;
  align-items:center!important;
  overflow:hidden!important;
}
html body #asnProfilePanel .asn-web190-profile > a::before{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(135deg,rgba(255,255,255,.08),transparent 34%,transparent 66%,rgba(255,255,255,.04));
  pointer-events:none;
}
html body #asnProfilePanel .asn-web190-profile > a::after{
  position:absolute;
  left:92px;
  right:18px;
  bottom:18px;
  font-size:10px;
  line-height:1.35;
  letter-spacing:.14em;
  opacity:.9;
  font-weight:700;
}
html body #asnProfilePanel .asn-web190-profile > a[data-asn286-auth="vip"]::after{
  content:"REWARDS · BENEFITS · EVENTS";
  color:#ffe7ae;
}
html body #asnProfilePanel .asn-web190-profile > a[data-asn286-auth="agent"]::after{
  content:"AUTHORIZED ACCESS · MISSIONS";
  color:#d8ecff;
}
html body #asnProfilePanel .asn-web190-profile > a[data-asn286-auth="vip"]{
  background:linear-gradient(135deg,rgba(98,42,14,.62),rgba(22,25,46,.98) 55%,rgba(12,16,28,.98))!important;
  border:1px solid rgba(255,190,86,.78)!important;
  box-shadow:inset 0 1px rgba(255,245,219,.18),0 10px 28px rgba(0,0,0,.45),0 0 24px rgba(255,163,40,.14)!important;
}
html body #asnProfilePanel .asn-web190-profile > a[data-asn286-auth="agent"]{
  background:linear-gradient(135deg,rgba(19,59,110,.72),rgba(13,20,40,.98) 55%,rgba(8,13,25,.98))!important;
  border:1px solid rgba(100,174,255,.68)!important;
  box-shadow:inset 0 1px rgba(227,245,255,.12),0 10px 28px rgba(0,0,0,.45),0 0 24px rgba(77,170,255,.14)!important;
}
#asnProfilePanel .asn290-access-icon{
  width:68px!important;
  height:68px!important;
  flex:0 0 68px!important;
}
#asnProfilePanel .asn290-flame{
  filter:drop-shadow(0 0 12px rgba(255,196,67,.48)) drop-shadow(0 0 24px rgba(255,111,53,.22));
}
#asnProfilePanel .asn290-question{
  filter:drop-shadow(0 0 12px rgba(64,164,255,.40));
}
#asnProfilePanel .asn290-access-copy{
  display:flex!important;
  min-height:72px!important;
  align-items:flex-start!important;
  flex-direction:column!important;
  justify-content:center!important;
  gap:10px!important;
  font-size:17px!important;
  font-weight:900!important;
  letter-spacing:.01em!important;
  text-shadow:0 1px 0 rgba(0,0,0,.22);
}

/* More visible floating global Compa above bottom dock */
@media(max-width:799px){
  html body #comGuide.comGuide:not(.dragging){
    bottom:calc(292px + env(safe-area-inset-bottom,0px))!important;
  }
}
@media(max-width:370px){
  html body #comGuide.comGuide:not(.dragging){
    bottom:calc(274px + env(safe-area-inset-bottom,0px))!important;
  }
}

/* Small polish for modal close buttons used in entry flow */
html body #asnProfilePanel .asn-web190-x,
html body #asnMorePanel .asn-web190-x{
  border-radius:14px!important;
  background:rgba(255,255,255,.08)!important;
  border:1px solid rgba(255,255,255,.12)!important;
  box-shadow:inset 0 1px rgba(255,255,255,.06)!important;
}

/* Better contact modal and keep within viewport */
html body .contactModalPanel146{
  max-height:calc(100dvh - 22px)!important;
}

@media(max-width:400px){
  html body #asnProfilePanel .asn-web190-profile > a{min-height:122px!important;padding:16px 15px 16px 14px!important}
  #asnProfilePanel .asn290-access-copy{font-size:15px!important}
  html body #asnProfilePanel .asn-web190-profile > a::after{left:84px;right:14px;bottom:15px;font-size:9px}
  #asnProfilePanel .asn290-access-icon{width:60px!important;height:60px!important;flex-basis:60px!important}
}
