/* PrizeUnbox shared header / side menu / account modals / toast.
   Wheel visual values are copied from wheel-style.css and wheel-ui-late.css,
   with selector scoping to prevent changes to unrelated page content. */

#pu-shared-root {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: white;
}

#pu-shared-root {
  --purple: #4b0082;
  --purple-glass: rgba(75, 0, 130, 0.4);
  --purple-deep: rgba(75, 0, 130, 0.9);
  --white: #ffffff;
  --hover-glow: rgba(255, 255, 255, 0.2);
  --modal-backdrop: rgba(0, 0, 0, 0.6);
  --yellow: #ffcc00;
  --yellow-600: #ffaa00;
  --green: #22c55e;
  --green-700: #16a34a;
}

#pu-shared-root header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 3000;
  background: rgba(75, 0, 130, 0.3);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: top 0.5s ease-in-out;
}

#pu-shared-root header::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.1) 0%,
    rgba(255, 255, 255, 0.05) 20%,
    rgba(255, 255, 255, 0) 100%
  );
  pointer-events: none;
  z-index: 0;
}

#pu-shared-root header.hidden {
  top: -80px;
  transition: top 0.6s ease-in-out; 
}

#pu-shared-root header h1 {
  font-size: 2.5rem;
  font-weight: bold;
  color: white;
  margin: 0;
}

#pu-shared-root .header-inner .site-title { margin: .32em 0; line-height: 1; }

#pu-shared-root .header-inner .site-title .home-link {
  display: inline-block;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

#pu-shared-root .header-inner .site-title .home-link:hover { opacity: 0.9; }

#pu-shared-root .header-inner .site-title .home-link:focus-visible {
  outline: 2px dashed currentColor;
  outline-offset: 4px;
  border-radius: .375rem;
}

#pu-shared-root #loggedInHeaderGroup,
#pu-shared-root #loggedOutHeaderGroup {
  display: flex;
  align-items: center;
  gap: 10px;
}

#pu-shared-root .header-auth-btn {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;

  height: 40px;
  min-height: 40px;
  padding: 0 12px;

  font-size: 14px;
  font-weight: 600;
  line-height: 1;

  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  background: rgba(0, 0, 0, 0.4);
  color: #ffffff;

  cursor: pointer;
  white-space: nowrap;
  box-sizing: border-box;

  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

#pu-shared-root #loggedOutHeaderGroup .header-auth-btn {
  text-align: center;
  justify-content: center;
}

#pu-shared-root .header-auth-btn--primary {
  background: linear-gradient(135deg, #1f7aff, #3ac8ff);
  border-color: rgba(80, 180, 255, 0.95);
  color: #ffffff;
  box-shadow:
    0 0 6px rgba(80, 180, 255, 0.7),
    0 0 14px rgba(58, 200, 255, 0.4);
  position: relative;
  overflow: hidden;
}

#pu-shared-root .header-auth-btn--primary::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  border: 1px solid rgba(255, 255, 255, 0.26);
  pointer-events: none;
}

#pu-shared-root .header-auth-btn:not(.header-auth-btn--primary):hover,
#pu-shared-root .header-auth-btn:not(.header-auth-btn--primary):active {
  background: rgba(255, 255, 255, 0.18);
  border-color: #ffffff;
  color: #ffcc00;
}

#pu-shared-root .header-auth-btn--primary:hover,
#pu-shared-root .header-auth-btn--primary:focus-visible {
  color: #ffcc00;
}

#pu-shared-root .header-auth-btn--primary:active {
  
  color: #ffffff;
}

#pu-shared-root .header-auth-btn:visited {
  color: #ffffff;
}

#pu-shared-root .header-inner .site-title {
  will-change: transform;
}

#pu-shared-root .header-inner .site-title .home-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

#pu-shared-root .header-inner .brand-full {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

#pu-shared-root .header-inner .brand-letter {
  display: inline-block;
  opacity: 1;
  filter: blur(0);
  transform: translateX(0) scale(1);
  transform-origin: center;
  transition:
    opacity 0.35s ease,
    filter 0.55s ease,
    transform 0.75s cubic-bezier(0.2, 0.85, 0.2, 1);
  transition-delay: calc(var(--i) * 24ms);
  will-change: transform, opacity, filter;
}

#pu-shared-root .header-inner .brand-space {
  width: 0.32em;
}

#pu-shared-root .header-inner .brand-mark {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;

  opacity: 0;
  transform: scale(0.55) rotate(-8deg);
  transform-origin: center;

  font-size: 1.55rem;
  font-weight: 900;
  line-height: 1;
  color: #ffcc00;
  text-shadow:
    0 0 8px rgba(255, 204, 0, 0.9),
    0 0 18px rgba(255, 204, 0, 0.45);

  transition:
    opacity 0.35s ease,
    transform 0.55s cubic-bezier(0.2, 0.85, 0.2, 1);
  pointer-events: none;
}

body.pu-brand-condensed #pu-shared-root .header-inner {
  justify-content: flex-start;
}

body.pu-brand-condensed #pu-shared-root .header-inner .site-title {
  flex: 0 0 44px;
  width: 44px;
  min-width: 44px;
  max-width: 44px;
  margin: 0;
  transform: none;
  overflow: visible;
}

body.pu-brand-condensed #pu-shared-root .header-inner .site-title .home-link {
  width: 44px;
  height: 44px;
  min-width: 44px;

  border-radius: 14px;
  overflow: hidden;

  background:
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.22), transparent 35%),
    linear-gradient(135deg, rgba(75, 0, 130, 0.85), rgba(20, 0, 35, 0.92));

  border: 1px solid rgba(255, 204, 0, 0.45);

  box-shadow:
    0 0 10px rgba(255, 204, 0, 0.35),
    0 0 22px rgba(75, 0, 130, 0.7),
    inset 0 0 12px rgba(255, 255, 255, 0.08);
}

body.pu-brand-condensed #pu-shared-root .header-inner .brand-full {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

body.pu-brand-condensed #pu-shared-root .header-inner .brand-letter {
  opacity: 0;
  filter: blur(5px);
  transform: translateX(calc(var(--i) * -0.72em)) scale(0.14);
  transition-delay: calc(var(--i) * 18ms);
}

body.pu-brand-condensed #pu-shared-root .header-inner .brand-mark {
  opacity: 1;
  transform: scale(1) rotate(0deg);
  transition-delay: 0.42s;
}

@media (max-width: 768px) {
body.pu-brand-condensed #pu-shared-root .header-inner .site-title {
    flex: 0 0 32px;
    width: 32px;
    min-width: 32px;
    max-width: 32px;
  }
body.pu-brand-condensed #pu-shared-root .header-inner .site-title .home-link {
    width: 32px;
    height: 32px;
    min-width: 32px;
    border-radius: 10px;
  }
body.pu-brand-condensed #pu-shared-root .header-inner .brand-mark {
    font-size: 1.2rem;
  }
}

#pu-shared-root .deposit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  height: 40px;
  min-height: 40px;
  padding: 0 12px;

  font-size: 14px;
  font-weight: 600;
  line-height: 1;

  border-radius: 6px;
  border: 1px solid rgba(255, 230, 180, 0.9);
  background: linear-gradient(135deg, #b8860b, #ffd700);
  color: #141814;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  box-sizing: border-box;

  box-shadow:
    0 0 6px rgba(255, 215, 0, 0.7),
    0 0 14px rgba(184, 134, 11, 0.5);

  position: relative;
  overflow: hidden;
  z-index: 20;

  transition:
    background 0.2s ease,
    color 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease,
    transform 0.1s ease;
}

#pu-shared-root .deposit-btn::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  border: 1px solid rgba(255, 255, 255, 0.25);
  pointer-events: none;
}

#pu-shared-root .deposit-btn:hover,
#pu-shared-root .deposit-btn:active {
  background: linear-gradient(135deg, #ffd700, #ffe87c);
  color: #209e4a; 
  border-color: #fff3c2;
  box-shadow:
    0 0 10px rgba(255, 215, 0, 0.9),
    0 0 20px rgba(255, 248, 184, 0.7);
  transform: translateY(-1px);
}

#pu-shared-root .deposit-options {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;

  display: none;
  flex-direction: column;
  gap: 8px;

  min-width: 180px;
  padding: 10px;
  border-radius: 10px;

  background: rgba(75, 0, 130, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

#pu-shared-root .deposit-options.show {
  display: flex;
}

#pu-shared-root .payment-security-note {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.4);
width: 100%;
  margin-left: auto;
  margin-right: auto;

  max-width: min(260px, 100%);
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;

  font-size: 11px;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.85);
  text-align: center;
}

#pu-shared-root .payment-security-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  text-align: center;
}

#pu-shared-root .payment-security-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: #3ad169;
  filter: drop-shadow(0 0 3px rgba(58, 209, 105, 0.7));
}

#pu-shared-root .payment-security-text {
  white-space: normal;
  display: block;
  max-width: 100%;
  overflow-wrap: anywhere;

  
  text-align: center;

  
  flex: 1;
  min-width: 0;
}

#pu-shared-root .home-security-brands {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
}

#pu-shared-root .payment-brand-block {
  display: flex;
  align-items: center;
  gap: 4px;
}

#pu-shared-root .brand-logo-icon {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

#pu-shared-root .brand-name {
  font-size: 10px;
}

#pu-shared-root .payment-security-icon svg,
#pu-shared-root .brand-logo-icon svg {
  width: 18px;
  height: 18px;
}

#pu-shared-root .deposit-buttons {
  display: grid;
  grid-template-columns: repeat(4, 1fr);  
  gap: 10px;
  justify-items: center;                  
}

#pu-shared-root .deposit-buttons button {
  background: #222;
  border: 1px solid white;
  color: white;
  font-weight: bold;
  padding: 8px 12px;                      
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease-in-out;

  
  white-space: normal;
  line-height: 1.2;
  min-height: 40px;
}

#pu-shared-root .deposit-buttons button:hover { background: #00bfff; color: black; }

@media (max-width: 768px) {
#pu-shared-root .deposit-options {
    position: fixed;
    top: calc(58px + env(safe-area-inset-top));
    left: 8px;
    right: 8px;
    transform: none;

    width: auto;
    min-width: 0;
    max-width: none;
    max-height: calc(100dvh - 76px);

    padding: 10px;
    gap: 8px;
    box-sizing: border-box;

    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
  }
#pu-shared-root .deposit-buttons {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
#pu-shared-root .deposit-buttons button {
    width: 100%;
    min-height: 36px;
    padding: 7px 6px;

    font-size: 0.78rem;
    line-height: 1.15;
    text-align: center;

    white-space: normal;
    overflow-wrap: anywhere;
    box-sizing: border-box;
  }
#pu-shared-root .payment-security-note {
    width: 100%;
    max-width: 100%;
    margin-top: 6px;
    padding-top: 7px;
    gap: 5px;
    box-sizing: border-box;
  }
#pu-shared-root .payment-security-header {
    width: 100%;
    gap: 5px;
    align-items: flex-start;
  }
#pu-shared-root .payment-security-icon {
    width: 15px;
    height: 15px;
    margin-top: 2px;
  }
#pu-shared-root .payment-security-text {
    font-size: 0.68rem;
    line-height: 1.25;
    white-space: normal;
    overflow-wrap: anywhere;
    text-align: center;
  }
#pu-shared-root .home-security-brands {
    gap: 6px;
  }
#pu-shared-root .brand-logo-icon,
#pu-shared-root .brand-logo-icon svg {
    width: 15px;
    height: 15px;
  }
#pu-shared-root .brand-name {
    font-size: 0.62rem;
  }
}

@media (max-width: 380px), (max-height: 620px) {
#pu-shared-root .deposit-options {
    top: calc(52px + env(safe-area-inset-top));
    left: 6px;
    right: 6px;
    width: auto;
    max-width: none;
    max-height: calc(100dvh - 62px);
    padding: 8px;
    gap: 7px;
  }
#pu-shared-root .deposit-buttons {
    gap: 7px;
  }
#pu-shared-root .deposit-buttons button {
    min-height: 32px;
    padding: 6px 5px;
    font-size: 0.72rem;
    line-height: 1.1;
  }
#pu-shared-root .payment-security-note {
    margin-top: 4px;
    padding-top: 5px;
  }
#pu-shared-root .payment-security-text {
    font-size: 0.62rem;
    line-height: 1.18;
  }
#pu-shared-root .brand-name {
    font-size: 0.58rem;
  }
}

#pu-shared-root .deposit-options.hidden { display: none !important; }

#pu-shared-root .header-icon-group { position: relative; }

#pu-shared-root .icon-btn { 
  background: transparent; 
  border: 0; 
  cursor: pointer; 
  display: grid; 
  place-items: center; 
  padding: .99rem; 
}

#pu-shared-root .credit-pill {
  position: relative; 

  display: inline-flex;
  align-items: center;
  justify-content: center;

  
  height: 40px;
  min-height: 40px;
  padding: 0 12px;
  box-sizing: border-box;

  
  border-radius: 6px;

  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.03em;
  white-space: nowrap;

  
  background:
    radial-gradient(
      circle at top left,
      rgba(72, 225, 146, 0.32),
      rgba(24, 120, 72, 0.32)
    );

  border: 1px solid rgba(140, 255, 195, 0.9);
  color: #eafff5;

  
  box-shadow:
    0 0 6px rgba(72, 225, 146, 0.7),
    0 0 14px rgba(24, 120, 72, 0.5);
}

#pu-shared-root .menu-btn {
  font-size: 20px;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid white;
  border-radius: 3px;
  background-color: transparent;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: background-color 0.2s ease;
}

#pu-shared-root .menu-btn:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

#pu-shared-root .menu {
  position: fixed;
  top: 0;
  right: -270px;
  width: 270px;
  height: 100vh;
  visibility: hidden;
  z-index: 5000;
}

#pu-shared-root .menu.open {
  visibility: visible;
}

#pu-shared-root .menu-overlay {
  position: fixed;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  z-index: 4990;
}

#pu-shared-root .header-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0 20px; 
}

#pu-shared-root .header-buttons {
  position: absolute;
  right: 50px;  
  display: flex;
  align-items: center;
  gap: 13px;
}

@media (min-width: 769px) and (max-width: 1200px) {
#pu-shared-root .header-inner .site-title {
    transform: translateX(clamp(-240px, calc((100vw - 1200px) / 2), 0px));
  }
}

#pu-shared-root .icon-btn,
#pu-shared-root .cart-btn {
  font-size: 20px;
  width: 40px;
  height: 40px;
  border: 1px solid var(--white);
  border-radius: 3px;
  background-color: transparent;
  color: var(--white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease;
}

#pu-shared-root .icon-btn:hover,
#pu-shared-root .cart-btn:hover {
  background-color: var(--hover-glow);
}

#pu-shared-root .icon-btn i,
#pu-shared-root .cart-btn i {
  width: 22px;
  height: 22px;
}

#pu-shared-root .icon-btn img,
#pu-shared-root .login-btn img {
  width: 22px;
  height: 22px;
  object-fit: contain;

  
  filter:
    brightness(0)
    saturate(100%)
    invert(100%)
    sepia(0%)
    saturate(0%)
    hue-rotate(0deg)
    brightness(100%)
    contrast(100%);

  pointer-events: none;

  
  transition: filter 1.2s ease-in-out;
}

#pu-shared-root .icon-btn svg.header-icon {
  width: 20px;
  height: 20px;
  display: block;
}

#pu-shared-root .modal {
  display: none;
}

#pu-shared-root .modal.hidden {
  display: none !important;
}

#pu-shared-root .header-icon-group {
  position: relative;           
  display: flex;                
  align-items: center;
  gap: 6px;                     
}

@media (min-width: 901px) {
#pu-shared-root .header-icon-group { gap: 8px; }
}

#pu-shared-root .icon-btn,
#pu-shared-root .login-btn,
#pu-shared-root .menu-btn {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  padding: 0 !important;
  border-radius: 5px;
  display: inline-grid;
  place-items: center;
  line-height: 0;
}

#pu-shared-root .header-icon-group i[data-lucide] {
  width: 22px;
  height: 22px;
}

#pu-shared-root .header-icon-group .login-btn img {
  width: 22px;
  height: 22px;
  display: block;               
}

#pu-shared-root .header-icon-group .dropdown-panel {
  right: 0;
  left: auto;
}

#pu-shared-root .pu-toast {
  position: fixed;
  top: 90px;
  right: 20px;
  z-index: 9999;

  display: flex;
  align-items: center;
  gap: 10px;

  max-width: min(420px, calc(100vw - 24px));
  padding: 12px 16px;

  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(20, 20, 35, 0.78);
  color: #ffffff;

  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  box-shadow:
    0 14px 34px rgba(0, 0, 0, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);

  transform: translateY(-10px);
  opacity: 0;
  pointer-events: none;

  transition:
    opacity 0.25s ease,
    transform 0.25s ease,
    background 0.25s ease,
    border-color 0.25s ease;
}

#pu-shared-root .pu-toast.show {
  opacity: 1;
  transform: translateY(0);
}

#pu-shared-root .pu-toast-icon {
  width: 22px;
  height: 22px;
  min-width: 22px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  border-radius: 999px;
  font-weight: 900;
  line-height: 1;
}

#pu-shared-root .pu-toast-text {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.2px;
}

#pu-shared-root .pu-toast.is-success {
  background: rgba(20, 255, 140, 0.16);
  border-color: rgba(20, 255, 140, 0.38);
}

#pu-shared-root .pu-toast.is-success .pu-toast-icon {
  background: rgba(20, 255, 140, 0.18);
  color: #83ffbf;
}

#pu-shared-root .pu-toast.is-error {
  background: rgba(255, 78, 112, 0.18);
  border-color: rgba(255, 78, 112, 0.42);
}

#pu-shared-root .pu-toast.is-error .pu-toast-icon {
  background: rgba(255, 78, 112, 0.20);
  color: #ff9aad;
}

#pu-shared-root .pu-toast.is-login {
  background: rgba(80, 180, 255, 0.17);
  border-color: rgba(80, 180, 255, 0.40);
}

#pu-shared-root .pu-toast.is-login .pu-toast-icon {
  background: rgba(80, 180, 255, 0.20);
  color: #9fe7ff;
}

#pu-shared-root .pu-toast.is-warn {
  background: rgba(255, 204, 0, 0.16);
  border-color: rgba(255, 204, 0, 0.38);
}

#pu-shared-root .pu-toast.is-warn .pu-toast-icon {
  background: rgba(255, 204, 0, 0.20);
  color: #ffe27a;
}

#pu-shared-root .pu-toast-spinner {
  width: 14px;
  height: 14px;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #ffffff;
  animation: puToastSpin 0.75s linear infinite;
}

@keyframes puToastSpin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 600px) {
#pu-shared-root .pu-toast {
    left: 12px;
    right: 12px;
    top: 80px;
    justify-content: center;
    max-width: none;
  }
}

#pu-shared-root .modal-confirm {
  max-width: 360px;
  text-align: center;
}

#pu-shared-root .modal-confirm h2 {
  margin-top: 0;
  margin-bottom: 8px;
}

#pu-shared-root .modal-confirm p {
  margin: 0 0 16px;
  font-size: 0.95rem;
  opacity: 0.9;
}

#pu-shared-root .modal-confirm-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
}

#pu-shared-root .modal-alt-btn {
  padding: 8px 14px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: rgba(0, 0, 0, 0.3);
  color: #ffffff;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.1s ease;
}

#pu-shared-root .modal-alt-btn:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.8);
  transform: translateY(-1px);
}

#pu-shared-root .modal-danger-btn {
  padding: 8px 16px;
  border-radius: 8px;
  border: 1px solid rgba(255, 120, 120, 0.9);
  background: linear-gradient(135deg, #8b0000, #ff4c4c);
  color: #fff;
  cursor: pointer;
  font-weight: 600;
  box-shadow:
    0 0 6px rgba(255, 120, 120, 0.7),
    0 0 14px rgba(139, 0, 0, 0.5);
  transition:
    background 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.1s ease,
    border-color 0.2s ease;
}

#pu-shared-root .modal-danger-btn:hover {
  background: linear-gradient(135deg, #ff5f5f, #ff8585);
  border-color: #ffd2d2;
  box-shadow:
    0 0 10px rgba(255, 150, 150, 0.9),
    0 0 20px rgba(255, 200, 200, 0.7);
  transform: translateY(-1px);
}

@media (max-width: 768px) {
#pu-shared-root header {
    position: fixed;
    inset: 0 0 auto 0;
    width: 100%;
    min-height: 60px;
    height: 60px;
    padding: 10px 8px;
    box-sizing: border-box;
    overflow: visible;
    transition: none;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
  }
#pu-shared-root header.hidden {
    top: 0;
    transition: none;
  }
#pu-shared-root .header-inner {
    width: 100%;
    max-width: 100%;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;

    height: 40px;
    min-height: 40px;

    padding: 0;
    padding-left: max(0px, env(safe-area-inset-left));
    padding-right: 0;

    flex-wrap: nowrap;
    position: relative;
    overflow: visible;
    z-index: 10;
    box-sizing: border-box;
  }
#pu-shared-root .header-inner .site-title {
    position: static;
    left: auto;
    transform: none;

    margin: 0;
    text-align: left;
    order: -1;

    flex: 0 1 auto;
    min-width: 0;
    max-width: none;

    line-height: 1;
    font-size: 1.35rem;
    letter-spacing: 0.35px;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-inline-start: 0;
  }
#pu-shared-root .header-inner .site-title .home-link {
    display: block;
    color: inherit;
    text-decoration: none;

    line-height: 1;
    font-size: inherit;
    letter-spacing: inherit;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
#pu-shared-root .header-buttons {
    margin-left: auto;

    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;

    order: 2;
    min-height: 40px;
    height: 40px;

    padding: 0;
    position: static;
    inset: auto;
    right: auto;
    left: auto;

    transform: none;
    margin-right: -8px;

    flex: 0 0 auto;
    min-width: 0;
    z-index: 10;
    overflow: visible;
    box-sizing: border-box;
  }
#pu-shared-root .header-icon-group {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;

    position: relative;

    min-height: 40px;
    height: 40px;

    flex: 0 1 auto;
    min-width: 0;
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    flex-shrink: 0;
  }
#pu-shared-root #loggedOutHeaderGroup,
#pu-shared-root #loggedInHeaderGroup {
    display: flex;
    align-items: center;
    gap: 6px;

    min-width: 0;
    flex: 0 1 auto;
    padding: 0;
    margin: 0;
    box-sizing: border-box;
  }
#pu-shared-root .deposit-btn,
#pu-shared-root #loggedOutHeaderGroup .header-auth-btn,
#pu-shared-root #loggedInHeaderGroup .header-auth-btn {
    height: 28px !important;
    min-height: 28px !important;

    padding: 0 6px !important;
    font-size: 0.62rem !important;
    line-height: 28px !important;

    flex: 0 1 auto !important;
    min-width: 0 !important;
    width: auto !important;

    white-space: nowrap;
    box-sizing: border-box;
  }
#pu-shared-root .icon-btn,
#pu-shared-root .menu-btn,
#pu-shared-root .login-btn,
#pu-shared-root .cart-btn {
    width: 28px;
    height: 28px;
    min-width: 28px;
    min-height: 28px;

    flex: 0 0 28px;
    padding: 0;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    line-height: 1;
    box-sizing: border-box;
  }
#pu-shared-root .menu-btn {
    font-size: 18px;
  }
#pu-shared-root .icon-btn i,
#pu-shared-root .cart-btn i,
#pu-shared-root .menu-btn i,
#pu-shared-root .icon-btn svg,
#pu-shared-root .cart-btn svg,
#pu-shared-root .menu-btn svg {
    width: 18px;
    height: 18px;
  }
#pu-shared-root .icon-btn img,
#pu-shared-root .login-btn img {
    width: 18px;
    height: 18px;
    display: block;
  }
#pu-shared-root .credit-pill {
    height: 28px;
    min-height: 28px;
    padding: 0 6px;

    font-size: 0.64rem;
    line-height: 28px;

    max-width: 74px;
    box-sizing: border-box;
  }
}

@media (max-width: 390px) {
#pu-shared-root .deposit-btn {
    height: 28px;
    min-height: 28px;
    padding: 0 6px;
    font-size: 0.62rem;
    line-height: 28px;
  }
#pu-shared-root .credit-pill {
    height: 28px;
    min-height: 28px;
    padding: 0 6px;

    font-size: 0.64rem;
    line-height: 28px;

    max-width: 82px;
    box-sizing: border-box;
  }
#pu-shared-root .icon-btn,
#pu-shared-root .login-btn,
#pu-shared-root .cart-btn,
#pu-shared-root .menu-btn {
    width: 28px;
    height: 28px;
    min-width: 28px;
    min-height: 28px;
    max-width: 28px;
    max-height: 28px;

    padding: 0;
    box-sizing: border-box;
  }
#pu-shared-root .icon-btn i,
#pu-shared-root .cart-btn i,
#pu-shared-root .menu-btn i,
#pu-shared-root .icon-btn svg,
#pu-shared-root .cart-btn svg,
#pu-shared-root .menu-btn svg {
    width: 18px;
    height: 18px;
  }
#pu-shared-root .icon-btn img,
#pu-shared-root .login-btn img {
    width: 18px;
    height: 18px;
    display: block;
  }
}

@media (max-width: 768px) {
#pu-shared-root #menuBtn.menu-btn,
#pu-shared-root .header-icon-group #menuBtn.menu-btn,
#pu-shared-root button#menuBtn.icon-btn {
    width: 28px !important;
    min-width: 28px !important;
    max-width: 28px !important;

    height: 28px !important;
    min-height: 28px !important;
    max-height: 28px !important;

    flex: 0 0 28px !important;
    flex-shrink: 0 !important;
    flex-grow: 0 !important;

    aspect-ratio: 1 / 1;
    padding: 0 !important;
    box-sizing: border-box;

    display: inline-flex !important;
    align-items: center;
    justify-content: center;
  }
#pu-shared-root #menuBtn.menu-btn i,
#pu-shared-root #menuBtn.menu-btn svg {
    width: 18px !important;
    height: 18px !important;
    min-width: 18px !important;
    min-height: 18px !important;
    flex: 0 0 18px !important;
  }
#pu-shared-root .header-icon-group {
    flex-shrink: 0;
  }
#pu-shared-root #loggedOutHeaderGroup {
    flex-shrink: 1;
    min-width: 0;
  }
}

@media (max-width: 390px) {
#pu-shared-root .deposit-btn { font-size: 12.5px; padding: 6px 9px; }
#pu-shared-root .credit-pill {
    max-width: 48vw; font-size: 12.5px; padding: 6px 9px;
  }
#pu-shared-root .credit-pill.show-delta::after {
    font-size: 11px;
    top: calc(100% + 2px);
    transform: translate(-50%, 2px);
  }
#pu-shared-root .icon-btn,
#pu-shared-root .login-btn,
#pu-shared-root .menu-btn { width: 38px; height: 38px; }
}

#pu-shared-root .header-inner .site-title,
#pu-shared-root .header-inner .brand-letter {
  will-change: auto;
}

/* ===== Late wheel UI styles, in their original order ===== */

#pu-shared-root .menu {
  position: fixed;
  top: 0;
  right: -270px;
  width: 270px;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding-top: 70px;
  background-color: rgba(75, 0, 130, 0.4);   
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: -6px 0 30px rgba(0, 0, 0, 0.4);
  transition: right 0.3s ease;
  z-index: 5000;
  overflow-y: auto;
}

#pu-shared-root .menu.open {
  right: 0;
}

#pu-shared-root .menu .close-btn {
  font-size: 30px;
  color: white;
  background: none;
  border: none;
  cursor: pointer;
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
}

#pu-shared-root .menu a {
  color: white;
  padding: 20px;
  text-decoration: none;
  text-align: center;
  font-size: 1.2rem;
  display: block;
}

#pu-shared-root .menu a,
#pu-shared-root .menu [role="menuitem"] {
  position: relative;
  display: block;
  border-radius: 0;          
  margin: 0;                 
  padding: 14px 22px;        
  left: 0;                   
  transition: background-color .2s, transform .08s ease;
}

#pu-shared-root .menu a:hover,
#pu-shared-root .menu a:focus-visible,
#pu-shared-root .menu a.is-hover,
#pu-shared-root .menu [role="menuitem"]:hover,
#pu-shared-root .menu [role="menuitem"]:focus-visible,
#pu-shared-root .menu [role="menuitem"].is-hover {
  background-color: rgba(255, 255, 255, 0.18);
  box-shadow: none;
  outline: none;
}

#pu-shared-root .menu a.is-active {
  background: rgba(255, 255, 255, 0.24);
  box-shadow: none;
}

#pu-shared-root .menu a:active,
#pu-shared-root .menu [role="menuitem"]:active {
  transform: translateY(1px);
}

#pu-shared-root .menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 4990; 
}

#pu-shared-root .menu.open + .menu-overlay {
  opacity: 1;
  pointer-events: auto;
}

#pu-shared-root #loggedOutHeaderGroup {
  display: flex;
  align-items: center;
  gap: 4px;
}

#pu-shared-root #loggedOutHeaderGroup .header-auth-btn {
  
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;

  
  font-size: 14px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 6px;

  
  width: auto !important;
  min-width: 0 !important;
  flex: 0 0 auto !important;

  white-space: nowrap;
  line-height: 1;
}

#pu-shared-root #loggedOutHeaderGroup .header-auth-btn--info {
  width: 160px !important;
  min-width: 120px !important;
  max-width: 120px !important;
  flex: 0 0 160px !important;
  padding: 6px 12px !important;
}

@media (max-width: 900px) {
#pu-shared-root .menu {
    width: 55vw;
    max-width: 340px;
    right: 0;
    transform: translateX(100%);
    transition: transform 0.3s ease;

    
    background: linear-gradient(
      180deg,
      rgba(75, 0, 130, 0.42) 0%,
      rgba(75, 0, 130, 0.26) 65%,
      rgba(75, 0, 130, 0.00) 100%
    );

    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
  }
#pu-shared-root .menu.open {
    transform: translateX(0);
  }
#pu-shared-root .menu.closing {
    transform: translateX(100%);
  }
}

#pu-shared-root .modal-offer {
  max-width: 420px;
  text-align: center;
}

#pu-shared-root .modal-offer .offer-text {
  margin: 8px 0 14px;
  font-size: 0.98rem;
  opacity: 0.92;
}

#pu-shared-root .modal-offer .offer-text strong {
  color: var(--green);
  text-shadow: 0 0 10px rgba(34, 197, 94, 0.35);
}

@media (max-width: 600px) {
#pu-shared-root .modal-offer { max-width: 340px; }
}

#pu-shared-root .modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65); 
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);

  z-index: 9998;
  opacity: 0;
  pointer-events: none;

  transition: opacity 0.25s ease;
}

#pu-shared-root .modal-backdrop.show {
  opacity: 1;
  pointer-events: auto;
}

#pu-shared-root .modal {
  display: none;
  position: fixed;
  inset: 0;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  z-index: 9999;
  overflow: auto;
  padding: 0;
}

#pu-shared-root .modal.hidden {
  display: none !important;
}

#pu-shared-root .modal .modal-content {
  position: relative;
  margin: 10% auto;
  width: 90%;
  max-width: 400px;
  padding: 30px;
  color: #fff;
  text-align: center;
  border-radius: 14px;
  overflow: hidden;
  animation: fadeIn 0.3s ease-in-out;
  will-change: opacity, transform;

  background:
    linear-gradient(
      135deg,
      rgba(170, 120, 255, 0.18) 0%,
      rgba(130, 70, 255, 0.22) 35%,
      rgba(90, 20, 180, 0.30) 100%
    );

  border: 1px solid rgba(255, 255, 255, 0.24);

  box-shadow:
    0 22px 52px rgba(0, 0, 0, 0.52),
    0 0 36px rgba(140, 90, 255, 0.35),
    0 0 12px rgba(180, 130, 255, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    inset 0 -1px 0 rgba(255, 255, 255, 0.03);

  backdrop-filter: blur(28px) saturate(130%);
  -webkit-backdrop-filter: blur(28px) saturate(130%);
  background-blend-mode: overlay;
}

#pu-shared-root #loginModal .modal-content::before,
#pu-shared-root #registerModal .modal-content::before,
#pu-shared-root #forgotPasswordModal .modal-content::before,
#pu-shared-root #logoutConfirmModal .modal-content.modal-confirm::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;

  background:
    radial-gradient(
      circle at top left,
      rgba(255, 255, 255, 0.16),
      transparent 34%
    ),
    radial-gradient(
      circle at top right,
      rgba(200, 150, 255, 0.24),
      transparent 30%
    ),
    linear-gradient(
      to bottom,
      rgba(255, 255, 255, 0.10) 0%,
      rgba(255, 255, 255, 0.04) 45%,
      rgba(255, 255, 255, 0.025) 100%
    );
}

#pu-shared-root #loginModal .modal-content::after,
#pu-shared-root #registerModal .modal-content::after,
#pu-shared-root #forgotPasswordModal .modal-content::after,
#pu-shared-root #logoutConfirmModal .modal-content.modal-confirm::after {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  pointer-events: none;
  border: 1px solid rgba(255, 255, 255, 0.10);
  box-shadow: inset 0 0 24px rgba(255, 255, 255, 0.03);
}

#pu-shared-root .modal .close {
  position: absolute;
  top: 10px;
  right: 10px;

  width: 34px;
  height: 34px;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 0 0 0 0;

  color: #2f2206;
  font-size: 30px;
  font-weight: 500;
  line-height: 1;
  font-family: Arial, sans-serif;

  cursor: pointer;
  z-index: 10;
  border-radius: 10px;

  background:
    linear-gradient(
      180deg,
      rgba(214, 182, 102, 0.30) 0%,
      rgba(168, 132, 48, 0.26) 52%,
      rgba(110, 80, 20, 0.30) 100%
    );

  border: 1px solid rgba(255, 245, 210, 0.20);

  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    inset 0 -1px 0 rgba(0, 0, 0, 0.14),
    0 0 0 1px rgba(255, 214, 92, 0.05),
    0 8px 18px rgba(0, 0, 0, 0.22),
    0 0 12px rgba(255, 214, 92, 0.08);

  backdrop-filter: blur(12px) saturate(120%);
  -webkit-backdrop-filter: blur(12px) saturate(120%);

  transition:
    color 0.25s ease,
    background 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease,
    transform 0.2s ease;
}

#pu-shared-root .modal .close:hover {
  color: #1f1604;

  background:
    linear-gradient(
      180deg,
      rgba(232, 200, 116, 0.40) 0%,
      rgba(188, 148, 58, 0.34) 50%,
      rgba(126, 92, 26, 0.38) 100%
    );

  border-color: rgba(255, 245, 210, 0.28);

  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 0 0 1px rgba(255, 222, 89, 0.07),
    0 0 14px rgba(255, 222, 89, 0.10),
    0 10px 22px rgba(0, 0, 0, 0.26);

  transform: translateY(-2px);
}

#pu-shared-root .modal .close:active {
  transform: translateY(-1px);
}

#pu-shared-root .modal .modal-content h2 {
  margin-top: 0;
  margin-bottom: 14px;
  color: #ffffff;

  text-shadow:
    0 0 12px rgba(155, 136, 255, 0.30),
    0 0 24px rgba(75, 0, 130, 0.18);
}

#pu-shared-root .modal .modal-content p {
  color: rgba(255, 255, 255, 0.88);
}

#pu-shared-root .modal .modal-content input,
#pu-shared-root .modal .modal-content select,
#pu-shared-root .modal .modal-content textarea {
  width: 100%;
  max-width: 300px;

  padding: 10px 12px;
  margin: 10px auto;

  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 8px;

  font-size: 1rem;
  background: rgba(255, 255, 255, 0.10);
  color: #fff;

  display: block;
  box-sizing: border-box;

  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 2px 10px rgba(0, 0, 0, 0.12);

  transition:
    border-color 0.25s ease,
    box-shadow 0.25s ease,
    background 0.25s ease;
}

#pu-shared-root .modal .modal-content input:focus,
#pu-shared-root .modal .modal-content select:focus,
#pu-shared-root .modal .modal-content textarea:focus {
  outline: none;
  border-color: rgba(179, 155, 255, 0.55);
  background: rgba(255, 255, 255, 0.13);

  box-shadow:
    0 0 0 3px rgba(155, 136, 255, 0.16),
    0 0 16px rgba(155, 136, 255, 0.10),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

#pu-shared-root #registerForm .pu-field-error {
  border-color: rgba(255, 78, 112, 0.98) !important;
  background: rgba(255, 78, 112, 0.16) !important;
  color: #fff !important;

  box-shadow:
    0 0 0 3px rgba(255, 78, 112, 0.24),
    0 0 18px rgba(255, 78, 112, 0.65),
    0 0 34px rgba(255, 78, 112, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;

  animation: puFieldErrorFlash 0.85s ease-in-out 0s 2;
}

#pu-shared-root #registerForm .pu-field-error:focus {
  border-color: rgba(255, 120, 150, 1) !important;

  box-shadow:
    0 0 0 4px rgba(255, 78, 112, 0.28),
    0 0 22px rgba(255, 78, 112, 0.78),
    0 0 42px rgba(255, 78, 112, 0.34) !important;
}

#pu-shared-root #registerForm .pu-field-error::placeholder {
  color: rgba(255, 225, 232, 0.9);
}

@keyframes puFieldErrorFlash {
  0% {
    transform: translateX(0);
    filter: brightness(1);
  }

  18% {
    transform: translateX(-4px);
    filter: brightness(1.18);
  }

  36% {
    transform: translateX(4px);
  }

  54% {
    transform: translateX(-3px);
  }

  72% {
    transform: translateX(3px);
  }

  100% {
    transform: translateX(0);
    filter: brightness(1);
  }
}

#pu-shared-root .modal .modal-content input::placeholder,
#pu-shared-root .modal .modal-content textarea::placeholder {
  color: rgba(255, 255, 255, 0.76);
  opacity: 1;
}

#pu-shared-root .modal-content button {
  width: 100%;
  max-width: 300px;

  padding: 10px;
  margin: 10px auto;

  background:
    linear-gradient(
      180deg,
      rgba(52, 42, 82, 0.96) 0%,
      rgba(28, 22, 48, 0.98) 55%,
      rgba(16, 12, 28, 1) 100%
    );

  color: #f8f5ff;
  font-weight: bold;
  font-size: 16px;

  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 10px;

  cursor: pointer;
  display: block;

  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.10),
    inset 0 -1px 0 rgba(0, 0, 0, 0.18),
    0 8px 18px rgba(0, 0, 0, 0.28),
    0 0 16px rgba(155, 136, 255, 0.10);

  transition:
    color 0.3s ease,
    text-shadow 0.3s ease,
    background 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease,
    transform 0.18s ease;
}

#pu-shared-root .modal-confirm {
  max-width: 360px;
  text-align: center;
}

#pu-shared-root .modal-confirm h2 {
  margin-top: 0;
  margin-bottom: 8px;
}

#pu-shared-root #logoutConfirmModal .modal-confirm p {
  margin: 0 0 18px;
  font-size: 0.95rem;
  opacity: 0.9;
}

#pu-shared-root #logoutConfirmModal .modal-confirm-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin-top: 0;
}

#pu-shared-root .modal-confirm-actions button {
  width: 100%;
  max-width: 300px;
  margin: 0;
}

#pu-shared-root .modal-content button:hover {
  color: #8fd8ff;
  text-shadow: 0 0 10px rgba(143, 216, 255, 0.45);

  background:
    linear-gradient(
      180deg,
      rgba(70, 56, 108, 0.98) 0%,
      rgba(38, 28, 64, 1) 55%,
      rgba(20, 14, 34, 1) 100%
    );

  border-color: rgba(143, 216, 255, 0.22);

  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 0 0 1px rgba(143, 216, 255, 0.06),
    0 0 18px rgba(143, 216, 255, 0.14),
    0 10px 22px rgba(0, 0, 0, 0.30);

  transform: translateY(-1px);
}

#pu-shared-root .modal-content button:active {
  transform: translateY(0);
}

#pu-shared-root .modal-sub-btn,
#pu-shared-root .modal-alt-btn,
#pu-shared-root .modal-switch-btn {
  flex: 1;
  padding: 8px 10px;

  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.08) 0%,
      rgba(255, 255, 255, 0.03) 100%
    );

  color: #f5f5f5;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;

  font-size: 14px;
  font-weight: bold;
  cursor: pointer;

  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 6px 14px rgba(0, 0, 0, 0.16);

  transition:
    color 0.25s ease,
    border-color 0.25s ease,
    background 0.25s ease,
    box-shadow 0.25s ease,
    transform 0.18s ease;
}

#pu-shared-root .modal-sub-btn:hover,
#pu-shared-root .modal-alt-btn:hover,
#pu-shared-root .modal-switch-btn:hover {
  color: #d9eeff;
  border-color: rgba(82, 216, 255, 0.34);

  background:
    linear-gradient(
      180deg,
      rgba(82, 216, 255, 0.12) 0%,
      rgba(82, 216, 255, 0.05) 100%
    );

  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 0 14px rgba(82, 216, 255, 0.10),
    0 8px 18px rgba(0, 0, 0, 0.18);

  transform: translateY(-1px);
}

#pu-shared-root .modal-sub-btn:active,
#pu-shared-root .modal-alt-btn:active,
#pu-shared-root .modal-switch-btn:active {
  transform: translateY(0);
}

#pu-shared-root #loginModal .modal-action-buttons {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;

  width: 100%;
  max-width: 300px;

  margin: 12px auto 0;
}

#pu-shared-root #loginModal .modal-action-buttons .modal-sub-btn {
  width: 100%;
  max-width: none;
  min-width: 0;

  margin: 0;
  padding: 10px 8px;
  box-sizing: border-box;

  line-height: 1.15;
  white-space: normal;
  text-align: center;
}

#pu-shared-root .modal-danger-btn {
  background:
    linear-gradient(
      180deg,
      rgba(58, 20, 28, 0.96) 0%,
      rgba(28, 10, 16, 0.98) 100%
    ) !important;

  border: 1px solid rgba(255, 124, 150, 0.16) !important;
}

#pu-shared-root .modal-danger-btn:hover {
  color: #ff9db1 !important;
  border-color: rgba(255, 124, 150, 0.30) !important;

  box-shadow:
    0 0 14px rgba(255, 124, 150, 0.12),
    0 8px 18px rgba(0, 0, 0, 0.28) !important;
}

#pu-shared-root .modal .modal-content input:-webkit-autofill,
#pu-shared-root .modal .modal-content input:-webkit-autofill:hover,
#pu-shared-root .modal .modal-content input:-webkit-autofill:focus,
#pu-shared-root .modal .modal-content input:-webkit-autofill:active {
  -webkit-box-shadow:
    0 0 0 1000px rgba(75, 0, 130, 0.45) inset !important;

  box-shadow:
    0 0 0 1000px rgba(75, 0, 130, 0.45) inset !important;

  -webkit-text-fill-color: #fff !important;
}

#pu-shared-root .modal .modal-content input:-moz-autofill {
  box-shadow:
    0 0 0 1000px rgba(75, 0, 130, 0.45) inset !important;

  -moz-box-shadow:
    0 0 0 1000px rgba(75, 0, 130, 0.45) inset !important;

  -moz-text-fill-color: #fff !important;
}

@media (max-width: 768px) {
#pu-shared-root .modal .modal-content {
    margin: 12vh auto 0;
    width: calc(100% - 28px);
    max-width: 460px;
    padding: 24px 18px;
    border-radius: 14px;
  }
#pu-shared-root .modal .close {
    top: 8px;
    right: 8px;
    width: 32px;
    height: 32px;
    font-size: 22px;
  }
}

#pu-shared-root #registerModal .registration-help-header {
  display: block;
  text-align: center;
  margin: 14px auto 12px;

  width: 100%;
  max-width: 320px;

  background: transparent;
  border: 0;
  box-shadow: none;
  outline: 0;
}

#pu-shared-root #registerModal .registration-help-icon {
  display: none;
}

#pu-shared-root #registerModal .registration-help-header h3 {
  margin: 0 0 4px;
  font-size: 1rem;
  line-height: 1.15;
  color: #ffffff;
}

#pu-shared-root #registerModal .registration-help-header p {
  margin: 0 auto;
  max-width: 310px;

  font-size: 0.88rem;
  line-height: 1.45;

  color: rgba(255, 255, 255, 0.86);
}

#pu-shared-root #registerModal .registration-help-form {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;

  width: 100%;
  max-width: 300px;

  margin: 0 auto 8px;
  padding: 0;

  background: transparent;
  border: 0;
  box-shadow: none;
  outline: 0;
}

#pu-shared-root #registerModal .registration-help-form input {
  width: 100%;
  max-width: 300px;
  box-sizing: border-box;
  margin: 0;
}

#pu-shared-root #registerModal .registration-help-form button {
  width: 100%;
  max-width: 300px;

  padding: 10px;
  margin: 0 auto;
  white-space: nowrap;

  appearance: none;
  -webkit-appearance: none;

  background:
    linear-gradient(
      180deg,
      rgba(52, 42, 82, 0.96) 0%,
      rgba(28, 22, 48, 0.98) 55%,
      rgba(16, 12, 28, 1) 100%
    );

  color: #f8f5ff;
  font-weight: bold;
  font-size: 16px;

  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 10px;

  cursor: pointer;
  display: block;

  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.10),
    inset 0 -1px 0 rgba(0, 0, 0, 0.18),
    0 8px 18px rgba(0, 0, 0, 0.28),
    0 0 16px rgba(155, 136, 255, 0.10);

  transition:
    color 0.3s ease,
    text-shadow 0.3s ease,
    background 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease,
    transform 0.18s ease;
}

#pu-shared-root #registerModal .registration-help-form button:hover {
  color: #8fd8ff;
  text-shadow: 0 0 10px rgba(143, 216, 255, 0.45);

  background:
    linear-gradient(
      180deg,
      rgba(70, 56, 108, 0.98) 0%,
      rgba(38, 28, 64, 1) 55%,
      rgba(20, 14, 34, 1) 100%
    );

  border-color: rgba(143, 216, 255, 0.22);

  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 0 0 1px rgba(143, 216, 255, 0.06),
    0 0 18px rgba(143, 216, 255, 0.14),
    0 10px 22px rgba(0, 0, 0, 0.30);

  transform: translateY(-1px);
}

#pu-shared-root #registerModal .registration-help-form button:active {
  transform: translateY(0);
}

#pu-shared-root #registerModal .registration-help-form button.button--busy {
  opacity: 0.6;
  pointer-events: none;
  filter: grayscale(10%);
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeOut {
  from { opacity: 1; transform: translateY(0); }
  to   { opacity: 0; transform: translateY(-20px); }
}

#pu-shared-root .tooltip-anchor {
  position: absolute;
  inset: 0;
  pointer-events: none; 
}

#pu-shared-root .modal .modal-content input:-webkit-autofill,
#pu-shared-root .modal .modal-content input:-webkit-autofill:hover,
#pu-shared-root .modal .modal-content input:-webkit-autofill:focus,
#pu-shared-root .modal .modal-content input:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0 1000px rgba(75, 0, 130, 0.45) inset !important;
  box-shadow: 0 0 0 1000px rgba(75, 0, 130, 0.45) inset !important;
  -webkit-text-fill-color: #fff !important;
  caret-color: #fff;
}

#pu-shared-root .modal .modal-content input:-moz-autofill {
  box-shadow: 0 0 0 1000px rgba(75, 0, 130, 0.45) inset !important;
  -moz-box-shadow: 0 0 0 1000px rgba(75, 0, 130, 0.45) inset !important;
  -moz-text-fill-color: #fff !important;
  caret-color: #fff;
}

#pu-shared-root .hidden { display: none !important; }

@media (max-width: 768px) {
#pu-shared-root .modal {
    padding: 16px 12px;
    overflow-y: auto;
  }
#pu-shared-root .modal-content {
    box-sizing: border-box;
    width: 100%;
    max-width: calc(100% - 24px);
    margin: 10vh auto 0;
    padding: 16px 14px;
    border-radius: 14px;
  }
#pu-shared-root .modal-content h2 {
    font-size: 1.1rem;
  }
#pu-shared-root .modal-content p,
#pu-shared-root .modal-content label {
    font-size: 0.95rem;
  }
#pu-shared-root .modal-content input,
#pu-shared-root .modal-content button {
    width: 100%;
    box-sizing: border-box;
    font-size: 1rem;
    padding: 8px;
  }
#pu-shared-root .modal-confirm-actions {
    flex-direction: column;
    align-items: center;
  }
#pu-shared-root .modal-confirm-actions button {
    width: 100%;
    max-width: 300px;
  }
#pu-shared-root .modal-sub-btn {
    font-size: 1rem;
    padding: 10px;
  }
}

@media (max-width: 768px) {
#pu-shared-root .modal-content input,
#pu-shared-root .modal-content button {
    font-size: 1rem;
    padding: 8px;
  }
#pu-shared-root .modal-sub-btn {
  font-size: 1rem;
  padding: 10px;
}
#pu-shared-root .modal-sub-btn {
    font-size: 1rem;
    padding: 10px;
  }
}

#pu-shared-root .pu-toast.is-login {
  background: rgba(80, 180, 255, 0.17);
  border-color: rgba(80, 180, 255, 0.40);
}

#pu-shared-root .pu-toast.is-login .pu-toast-icon {
  background: rgba(80, 180, 255, 0.20);
  color: #9fe7ff;
}

#pu-shared-root .menu {
  right: 0 !important;
  transform: translate3d(100%, 0, 0);
  transition: transform 0.3s ease;
  contain: layout style;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

#pu-shared-root .menu.open {
  right: 0 !important;
  transform: translate3d(0, 0, 0);
  will-change: transform;
}

#pu-shared-root .menu.closing {
  visibility: visible;
  transform: translate3d(100%, 0, 0);
}

#pu-shared-root .modal.show .modal-content,
#pu-shared-root .modal[style*="display: block"] .modal-content {
  will-change: transform, opacity;
}

@media (prefers-reduced-motion: reduce) {
#pu-shared-root .menu,
#pu-shared-root .menu-overlay,
#pu-shared-root .modal,
#pu-shared-root .modal-content,
#pu-shared-root .pu-toast {
    transition: none !important;
    animation: none !important;
  }
}


#pu-shared-root .register-terms {
  width: 100%;
  box-sizing: border-box;

  display: flex;
  align-items: flex-start;
  gap: 10px;

  margin: 12px 0 14px;
  padding: 11px 12px;

  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;

  background: rgba(255, 255, 255, 0.055);

  color: rgba(255, 255, 255, 0.88);
  font-size: 0.82rem;
  line-height: 1.4;

  cursor: pointer;

  transition:
    border-color 0.2s ease,
    background 0.2s ease,
    box-shadow 0.2s ease;
}

#pu-shared-root .register-terms input[type="checkbox"] {
  width: 18px;
  height: 18px;
  max-width: none;

  padding: 0;
  margin: 1px 0 0;

  display: inline-block;
  flex: 0 0 18px;

  box-shadow: none;
  background: initial;

  accent-color: #3ad169;
  cursor: pointer;
}

#pu-shared-root .register-terms span {
  flex: 1;
}

#pu-shared-root .register-terms a {
  color: #8dc8ff;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

#pu-shared-root .register-terms a:hover {
  color: #bfe0ff;
}

#pu-shared-root .register-terms.pu-terms-error {
  border-color: rgba(255, 78, 112, 0.98);
  background: rgba(255, 78, 112, 0.12);

  box-shadow:
    0 0 0 3px rgba(255, 78, 112, 0.18),
    0 0 18px rgba(255, 78, 112, 0.4);

  animation: puTermsErrorFlash 0.85s ease-in-out 0s 2;
}

@keyframes puTermsErrorFlash {
  0%,
  100% {
    transform: translateX(0);
  }

  25% {
    transform: translateX(-4px);
  }

  50% {
    transform: translateX(4px);
  }

  75% {
    transform: translateX(-3px);
  }
}

#pu-shared-root .menu, #pu-shared-root .modal {
  scrollbar-width: thin;
  scrollbar-color: rgba(75, 0, 130, 0.8) rgba(75, 0, 130, 0.3);
}
#pu-shared-root .menu::-webkit-scrollbar, #pu-shared-root .modal::-webkit-scrollbar { width: 10px; }
#pu-shared-root .menu::-webkit-scrollbar-track, #pu-shared-root .modal::-webkit-scrollbar-track { background: rgba(75,0,130,.3);border-radius:5px; }
#pu-shared-root .menu::-webkit-scrollbar-thumb, #pu-shared-root .modal::-webkit-scrollbar-thumb { background-color:rgba(75,0,130,.8); border-radius:5px; border:2px solid rgba(255,255,255,.3); }

@media (max-width: 768px) {
  #pu-shared-root .register-terms input[type="checkbox"] {
    width: 18px; height:18px; flex:0 0 18px; padding:0; box-sizing:border-box;
  }
}

/* Original wheel mobile side-menu scroll locking */
body.no-scroll { overflow: hidden; }
