/* ==========================================================================
   HALO ECONOMY & FINTECH WALLET SYSTEM
   Production-ready consumer fintech wallet & cosmetics store for Halo.
   Designed for desktop & mobile with glassmorphism, fluid tokens, and 0 hacks.
   ========================================================================== */

:root {
  /* Apple Optical Glass Tokens (visionOS & iOS Spatial Spec) */
  --hw-bg: #040816;
  --hw-surface: #0a1124;
  --hw-surface-glass: linear-gradient(145deg, rgba(255, 255, 255, 0.14) 0%, rgba(255, 255, 255, 0.04) 100%);
  --hw-card: #0d1730;
  --hw-card-glow: rgba(56, 189, 248, 0.25);
  --hw-soft: rgba(255, 255, 255, 0.12);
  --hw-soft-hover: rgba(255, 255, 255, 0.22);
  --hw-line: rgba(255, 255, 255, 0.22);
  --hw-line-bright: rgba(255, 255, 255, 0.45);
  --hw-text: #ffffff;
  --hw-muted: #cbd5e1;
  --hw-subtle: #94a3b8;
  --hw-accent: #6366f1;
  --hw-accent-cyan: #38bdf8;
  --hw-accent-emerald: #34d399;
  --hw-accent-gold: #fbbf24;
  --hw-ink: #ffffff;
  --hw-radius-sm: 12px;
  --hw-radius-md: 20px;
  --hw-radius-lg: 32px;
  --hw-shadow-modal: 0 40px 100px -20px rgba(0, 0, 0, 0.9), inset 0 1.5px 1px rgba(255, 255, 255, 0.7), inset 0 -1px 1px rgba(0, 0, 0, 0.6);
  --hw-shadow-card: 0 35px 80px -15px rgba(0, 0, 0, 0.85), inset 0 2px 2px rgba(255, 255, 255, 0.9), inset 0 -1.5px 2px rgba(0, 0, 0, 0.7);
}

html[data-theme="light"] {
  /* Light Mode Optical Glass Tokens */
  --hw-bg: #f1f5f9;
  --hw-surface: #ffffff;
  --hw-surface-glass: linear-gradient(145deg, rgba(255, 255, 255, 0.95) 0%, rgba(241, 245, 249, 0.85) 100%);
  --hw-card: #ffffff;
  --hw-card-glow: rgba(99, 102, 241, 0.12);
  --hw-soft: rgba(0, 0, 0, 0.05);
  --hw-soft-hover: rgba(0, 0, 0, 0.09);
  --hw-line: rgba(0, 0, 0, 0.12);
  --hw-line-bright: rgba(0, 0, 0, 0.22);
  --hw-text: #0f172a;
  --hw-muted: #475569;
  --hw-subtle: #64748b;
  --hw-accent: #4f46e5;
  --hw-accent-cyan: #0284c7;
  --hw-accent-emerald: #059669;
  --hw-accent-gold: #d97706;
  --hw-ink: #ffffff;
  --hw-shadow-modal: 0 25px 60px -10px rgba(15, 23, 42, 0.25), inset 0 1px 1px #ffffff, 0 0 0 1px rgba(0, 0, 0, 0.1);
  --hw-shadow-card: 0 16px 40px -6px rgba(15, 23, 42, 0.12), inset 0 1.5px 1px #ffffff;
}

/* ==========================================================================
   TOPBAR WALLET TRIGGER & SHOP BUTTON
   ========================================================================== */

:is(#halo-wallet-button, #halo-shop-button) {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: var(--wallet-width, 40px) !important;
  min-width: var(--wallet-width, 40px) !important;
  height: var(--wallet-height, 40px) !important;
  min-height: var(--wallet-height, 40px) !important;
  padding: 8px !important;
  box-sizing: border-box !important;
  flex: 0 0 auto !important;
  border: var(--wallet-border, 1px solid var(--hw-line)) !important;
  background: var(--wallet-bg, var(--hw-soft)) !important;
  color: var(--wallet-color, var(--hw-text)) !important;
  border-radius: var(--wallet-radius, 50%) !important;
  box-shadow: var(--wallet-shadow, none) !important;
  backdrop-filter: var(--wallet-filter, blur(12px)) !important;
  -webkit-backdrop-filter: var(--wallet-filter, blur(12px)) !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
}

:is(#halo-wallet-button, #halo-shop-button):hover:not(:disabled) {
  background: var(--hw-soft-hover) !important;
  border-color: var(--hw-line-bright) !important;
  transform: translateY(-1px) !important;
}

:is(#halo-wallet-button, #halo-shop-button):active:not(:disabled) {
  transform: scale(0.96) !important;
}

:is(#halo-wallet-button, #halo-shop-button) svg {
  width: 20px !important;
  height: 20px !important;
  min-width: 20px !important;
  max-width: 20px !important;
  min-height: 20px !important;
  max-height: 20px !important;
  fill: none !important;
  stroke: currentColor !important;
  stroke-width: 1.8 !important;
  flex: none !important;
  margin: 0 !important;
}

:is(#halo-wallet-button, #halo-shop-button)[hidden] {
  display: none !important;
}

/* ==========================================================================
   HALO WALLET DIALOG & PRESENTATION MODES
   ========================================================================== */

#halo-wallet-dialog {
  position: fixed !important;
  inset: 0 !important;
  margin: auto !important;
  box-sizing: border-box !important;
  width: min(640px, calc(100vw - 32px)) !important;
  max-height: min(88vh, 880px) !important;
  height: auto !important;
  border-radius: var(--hw-radius-lg, 32px) !important;
  border: 1px solid rgba(255, 255, 255, 0.28) !important;
  background: linear-gradient(145deg, rgba(16, 26, 48, 0.94) 0%, rgba(8, 14, 28, 0.98) 100%) !important;
  color: #ffffff !important;
  padding: 0 !important;
  box-shadow: 0 40px 100px -20px rgba(0, 0, 0, 0.9), inset 0 2px 2px rgba(255, 255, 255, 0.6) !important;
  backdrop-filter: blur(24px) saturate(160%) !important;
  -webkit-backdrop-filter: blur(24px) saturate(160%) !important;
  overflow: hidden !important;
  animation: halo-wallet-appear 0.24s cubic-bezier(0.16, 1, 0.3, 1) !important;
  z-index: 9999 !important;
}

#halo-wallet-dialog:not([open]) {
  display: none !important;
}

#halo-wallet-dialog::backdrop {
  background: rgba(2, 4, 14, 0.78) !important;
}

#halo-wallet-dialog:not([data-presentation="page"])[data-wallet-view="shop"] {
  width: min(1200px, calc(100vw - 120px)) !important;
  max-width: 1200px !important;
}

#halo-wallet-dialog:not([data-presentation="page"])[data-wallet-view="details"] {
  width: min(640px, calc(100vw - 24px)) !important;
}

/* Page presentation inside Halo social shell */
#halo-wallet-dialog[data-presentation="page"] {
  position: static !important;
  inset: auto !important;
  transform: none !important;
  width: 100% !important;
  max-width: none !important;
  height: auto !important;
  max-height: none !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: var(--hw-radius-md) !important;
  background: transparent !important;
  color: inherit !important;
  box-shadow: none !important;
  overflow: visible !important;
  animation: none !important;
}

#halo-wallet-dialog[data-presentation="page"]:not([open]) {
  display: none !important;
}

#halo-wallet-dialog[data-presentation="page"][open] {
  display: block !important;
}

/* ==========================================================================
   WALLET SHELL, HEADER & NAVIGATION
   ========================================================================== */

.halo-wallet-shell {
  display: flex !important;
  flex-direction: column !important;
  height: 100% !important;
  max-height: inherit !important;
  box-sizing: border-box !important;
  -webkit-font-smoothing: antialiased !important;
  -moz-osx-font-smoothing: grayscale !important;
}

.halo-wallet-shell > header {
  position: static !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 16px 20px !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14) !important;
  background: transparent !important;
  z-index: 10 !important;
}

.halo-wallet-shell h2 {
  font-family: inherit !important;
  font-size: 19px !important;
  font-weight: 800 !important;
  letter-spacing: -0.4px !important;
  margin: 0 !important;
  color: #ffffff !important;
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8) !important;
}

.halo-wallet-close {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 34px !important;
  min-width: 34px !important;
  height: 34px !important;
  padding: 0 !important;
  border-radius: 50% !important;
  background: rgba(255, 255, 255, 0.12) !important;
  border: 1px solid rgba(255, 255, 255, 0.35) !important;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.5) !important;
  color: #ffffff !important;
  font-size: 20px !important;
  line-height: 1 !important;
  cursor: pointer !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.halo-wallet-close:hover {
  background: rgba(255, 255, 255, 0.25) !important;
  border-color: rgba(255, 255, 255, 0.6) !important;
  color: #ffffff !important;
  transform: rotate(90deg) scale(1.05) !important;
}

#halo-wallet-dialog[data-presentation="page"] .halo-wallet-close {
  font-size: 0 !important;
  transform: none !important;
}

#halo-wallet-dialog[data-presentation="page"] .halo-wallet-close::before {
  content: "←" !important;
  font: 700 20px system-ui !important;
}

#halo-wallet-dialog[data-presentation="page"] .halo-wallet-shell > header {
  position: static !important;
  background: transparent !important;
  border-bottom: none !important;
  padding: 0 0 16px 0 !important;
  margin: 0 !important;
}

.halo-wallet-navigation {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 8px !important;
  padding: 10px 20px !important;
  background: rgba(255, 255, 255, 0.08) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18) !important;
  box-sizing: border-box !important;
}

.halo-wallet-navigation button {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  min-height: 42px !important;
  padding: 8px 12px !important;
  border-radius: var(--hw-radius-sm, 12px) !important;
  font-family: inherit !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  color: #cbd5e1 !important;
  border: 1px solid transparent !important;
  background: transparent !important;
  cursor: pointer !important;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1) !important;
  white-space: nowrap !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.7) !important;
}

.halo-wallet-navigation button svg {
  width: 17px !important;
  height: 17px !important;
  fill: none !important;
  stroke: currentColor !important;
  stroke-width: 2 !important;
}

.halo-wallet-navigation button:hover:not([aria-current="page"]) {
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.12) !important;
  border-color: rgba(255, 255, 255, 0.25) !important;
}

.halo-wallet-navigation button[aria-current="page"] {
  color: #ffffff !important;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.28) 0%, rgba(255, 255, 255, 0.12) 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.45) !important;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.7) !important;
  font-weight: 800 !important;
}

html[data-theme="light"] .halo-wallet-navigation button[aria-current="page"] {
  color: #0f172a !important;
  background: #ffffff !important;
  border-color: rgba(0, 0, 0, 0.15) !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08) !important;
}

/* ==========================================================================
   WALLET CONTENT VIEWPORT
   ========================================================================== */

.halo-wallet-content {
  padding: 24px !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 18px !important;
  overflow-y: auto !important;
  max-height: calc(88vh - 130px) !important;
  scrollbar-width: thin !important;
  box-sizing: border-box !important;
  scroll-behavior: smooth !important;
  -webkit-overflow-scrolling: touch !important;
  overscroll-behavior: contain !important;
}

#halo-wallet-dialog[data-presentation="page"] .halo-wallet-content {
  max-height: none !important;
  padding: 0 !important;
  overflow: visible !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

/* ==========================================================================
   HERO BALANCE CARD (APPLE SPATIAL SAPPHIRE TITANIUM CARD)
   ========================================================================== */

.halo-wallet-overview {
  display: flex !important;
  flex-direction: column !important;
  gap: 14px !important;
}

.halo-wallet-card {
  position: relative !important;
  overflow: hidden !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 18px !important;
  padding: 26px !important;
  border-radius: 24px !important;
  border: 1px solid rgba(255, 255, 255, 0.45) !important;
  background: radial-gradient(circle at 10% 20%, rgba(255, 255, 255, 0.4) 0%, transparent 35%),
              radial-gradient(circle at 90% 85%, rgba(56, 189, 248, 0.35) 0%, transparent 45%),
              radial-gradient(circle at 70% 30%, rgba(244, 114, 182, 0.3) 0%, transparent 45%),
              linear-gradient(135deg, rgba(255, 255, 255, 0.22) 0%, rgba(255, 255, 255, 0.08) 50%, rgba(10, 18, 38, 0.85) 100%),
              #0d1730 !important;
  box-shadow: 0 35px 80px -15px rgba(0, 0, 0, 0.85),
              0 0 50px rgba(56, 189, 248, 0.25),
              inset 0 2px 2px 0 rgba(255, 255, 255, 0.9),
              inset 0 -1.5px 2px 0 rgba(0, 0, 0, 0.7) !important;
}

.halo-wallet-card::after {
  content: '' !important;
  position: absolute !important;
  inset: -50% !important;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, 0.25) 45%, rgba(56, 189, 248, 0.35) 50%, rgba(236, 72, 153, 0.35) 55%, transparent 70%) !important;
  transform: rotate(25deg) !important;
  pointer-events: none !important;
  mix-blend-mode: overlay !important;
}

html[data-theme="light"] .halo-wallet-card {
  background: radial-gradient(circle at 90% 10%, rgba(139, 92, 246, 0.15), transparent 50%),
              radial-gradient(circle at 10% 90%, rgba(14, 165, 233, 0.12), transparent 50%),
              linear-gradient(145deg, #ffffff 0%, #e2e8f0 100%) !important;
  border-color: rgba(99, 102, 241, 0.3) !important;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.15), inset 0 1.5px 1px #ffffff !important;
}

.halo-wallet-card-header {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  position: relative !important;
  z-index: 2 !important;
}

.halo-wallet-network-tag {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  letter-spacing: 1.2px !important;
  color: #cbd5e1 !important;
  text-transform: uppercase !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.7) !important;
}

.halo-wallet-pulse-dot {
  width: 8px !important;
  height: 8px !important;
  border-radius: 50% !important;
  background: #34d399 !important;
  box-shadow: 0 0 10px #34d399 !important;
  animation: halo-pulse 2s infinite !important;
}

.halo-wallet-id-chip {
  display: inline-flex !important;
  align-items: center !important;
  gap: 7px !important;
  padding: 5px 12px !important;
  border-radius: 999px !important;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.20) 0%, rgba(255, 255, 255, 0.08) 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.35) !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.6) !important;
  color: #ffffff !important;
  font-family: inherit !important;
  font-size: 11px !important;
  font-weight: 750 !important;
  cursor: pointer !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8) !important;
}

.halo-wallet-id-chip:hover {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.30) 0%, rgba(255, 255, 255, 0.15) 100%) !important;
  border-color: rgba(255, 255, 255, 0.55) !important;
  color: #ffffff !important;
  transform: translateY(-1px) !important;
}

.halo-wallet-id-chip svg {
  width: 12px !important;
  height: 12px !important;
  stroke: currentColor !important;
  stroke-width: 2.2 !important;
  fill: none !important;
}

.halo-wallet-emv-row {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  position: relative !important;
  z-index: 2 !important;
  margin: 2px 0 !important;
}

.halo-wallet-emv-chip {
  width: 40px !important;
  height: 28px !important;
  border-radius: 6px !important;
  background: linear-gradient(135deg, #fef08a 0%, #f59e0b 50%, #b45309 100%) !important;
  padding: 2px !important;
  border: 1px solid #fde047 !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4) !important;
  box-sizing: border-box !important;
}

.halo-wallet-emv-grid {
  width: 100% !important;
  height: 100% !important;
  border: 1px solid rgba(120, 53, 15, 0.45) !important;
  border-radius: 4px !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  padding: 2px !important;
  box-sizing: border-box !important;
}

.halo-wallet-emv-line {
  height: 1.5px !important;
  background: rgba(120, 53, 15, 0.4) !important;
  width: 100% !important;
}

.halo-wallet-emv-blocks {
  display: flex !important;
  justify-content: space-between !important;
  width: 100% !important;
}

.halo-wallet-emv-blocks span {
  width: 9px !important;
  height: 9px !important;
  border: 1px solid rgba(120, 53, 15, 0.45) !important;
  border-radius: 2px !important;
}

.halo-wallet-contactless {
  width: 22px !important;
  height: 22px !important;
  color: #cbd5e1 !important;
}

.halo-wallet-card-spec {
  margin-left: auto !important;
  font-size: 10px !important;
  font-weight: 850 !important;
  letter-spacing: 1.5px !important;
  color: #cbd5e1 !important;
  padding: 3px 8px !important;
  border-radius: 6px !important;
  background: rgba(255, 255, 255, 0.12) !important;
  border: 1px solid rgba(255, 255, 255, 0.25) !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8) !important;
}

.halo-wallet-total {
  display: flex !important;
  flex-direction: column !important;
  gap: 6px !important;
  position: relative !important;
  z-index: 2 !important;
}

.halo-wallet-total-label {
  font-size: 11px !important;
  font-weight: 800 !important;
  letter-spacing: 1px !important;
  text-transform: uppercase !important;
  color: #cbd5e1 !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8) !important;
}

.halo-wallet-amount-row {
  display: flex !important;
  align-items: baseline !important;
  gap: 10px !important;
}

.halo-wallet-coin-symbol {
  font-size: clamp(28px, 5.5vw, 38px) !important;
  color: #fbbf24 !important;
  filter: drop-shadow(0 0 14px rgba(251, 191, 36, 0.65)) !important;
  font-weight: 900 !important;
}

.halo-wallet-total strong {
  font-size: clamp(38px, 7vw, 48px) !important;
  font-weight: 900 !important;
  letter-spacing: -1.5px !important;
  line-height: 1.05 !important;
  font-variant-numeric: tabular-nums !important;
  color: #ffffff !important;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.9) !important;
}

.halo-wallet-currency-badge {
  font-size: 12px !important;
  font-weight: 750 !important;
  color: #38bdf8 !important;
  letter-spacing: 0.5px !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7) !important;
}

.halo-wallet-balances {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 12px !important;
  margin-top: 6px !important;
  position: relative !important;
  z-index: 2 !important;
}

.halo-balance-subcard {
  display: flex !important;
  flex-direction: column !important;
  gap: 10px !important;
  padding: 16px !important;
  border-radius: 16px !important;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0.05) 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.32) !important;
  box-shadow: inset 0 1px 1px 0 rgba(255, 255, 255, 0.5), 0 4px 16px rgba(0, 0, 0, 0.3) !important;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), background 0.2s ease, border-color 0.2s ease !important;
}

html[data-theme="light"] .halo-balance-subcard {
  background: rgba(255, 255, 255, 0.85) !important;
  border-color: rgba(0, 0, 0, 0.1) !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06) !important;
}

.halo-balance-subcard:hover {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.24) 0%, rgba(255, 255, 255, 0.1) 100%) !important;
  border-color: rgba(255, 255, 255, 0.5) !important;
  transform: translateY(-1px) !important;
}

.halo-balance-card-head {
  display: flex !important;
  flex-direction: column !important;
  gap: 4px !important;
}

.halo-balance-pill {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  letter-spacing: -0.2px !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.7) !important;
}

.halo-balance-pill.cyan {
  color: #38bdf8 !important;
}

.halo-balance-pill.purple {
  color: #c084fc !important;
}

.halo-balance-pill svg {
  width: 15px !important;
  height: 15px !important;
  fill: none !important;
  stroke: currentColor !important;
  stroke-width: 2 !important;
}

.halo-balance-hint {
  font-size: 11px !important;
  color: #cbd5e1 !important;
  line-height: 1.3 !important;
  font-weight: 600 !important;
}

.halo-balance-subcard strong {
  font-size: 20px !important;
  font-weight: 850 !important;
  letter-spacing: -0.4px !important;
  font-variant-numeric: tabular-nums !important;
  color: #ffffff !important;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.85) !important;
}

/* ==========================================================================
   QUICK ACTION BUTTONS (TACTILE OPTICAL GLASS PILLS)
   ========================================================================== */

.halo-wallet-quick {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 12px !important;
}

.halo-quick-btn {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  padding: 16px 10px !important;
  border-radius: var(--hw-radius-md, 20px) !important;
  border: 1px solid rgba(255, 255, 255, 0.32) !important;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0.06) 100%) !important;
  color: #ffffff !important;
  cursor: pointer !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
  font-family: inherit !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.6) !important;
}

.halo-quick-btn:hover:not(:disabled) {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.28) 0%, rgba(255, 255, 255, 0.12) 100%) !important;
  border-color: rgba(255, 255, 255, 0.55) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.8) !important;
}

.halo-quick-btn:active:not(:disabled) {
  transform: scale(0.97) !important;
}

.halo-quick-icon {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 42px !important;
  height: 42px !important;
  border-radius: 50% !important;
  background: rgba(255, 255, 255, 0.12) !important;
  border: 1px solid rgba(255, 255, 255, 0.3) !important;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.5) !important;
  transition: all 0.2s ease !important;
}

.halo-quick-btn.send .halo-quick-icon {
  color: #38bdf8 !important;
  background: rgba(56, 189, 248, 0.2) !important;
  border-color: rgba(56, 189, 248, 0.45) !important;
}

.halo-quick-btn.shop .halo-quick-icon {
  color: #f472b6 !important;
  background: rgba(244, 114, 182, 0.2) !important;
  border-color: rgba(244, 114, 182, 0.45) !important;
}

.halo-quick-btn.history .halo-quick-icon {
  color: #c084fc !important;
  background: rgba(192, 132, 252, 0.2) !important;
  border-color: rgba(192, 132, 252, 0.45) !important;
}

.halo-quick-btn.refresh .halo-quick-icon {
  color: #34d399 !important;
  background: rgba(52, 211, 153, 0.2) !important;
  border-color: rgba(52, 211, 153, 0.45) !important;
}

.halo-quick-icon svg {
  width: 20px !important;
  height: 20px !important;
  fill: none !important;
  stroke: currentColor !important;
  stroke-width: 2 !important;
}

.halo-quick-title {
  font-size: 13px !important;
  font-weight: 800 !important;
  letter-spacing: -0.2px !important;
  color: #ffffff !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8) !important;
}

.halo-quick-btn small {
  font-size: 11px !important;
  color: #cbd5e1 !important;
  font-weight: 600 !important;
}

/* ==========================================================================
   24-HOUR SAFETY & ALLOWANCE SECTION
   ========================================================================== */

.halo-wallet-allowance {
  display: flex !important;
  flex-direction: column !important;
  gap: 16px !important;
  padding: 22px !important;
  border-radius: var(--hw-radius-md, 22px) !important;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.04) 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.28) !important;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.4), inset 0 1.5px 1px rgba(255, 255, 255, 0.6) !important;
}

.halo-allowance-head {
  display: flex !important;
  align-items: flex-start !important;
  justify-content: space-between !important;
  gap: 12px !important;
}

.halo-allowance-head h3 {
  font-family: inherit !important;
  font-size: 15px !important;
  font-weight: 800 !important;
  letter-spacing: -0.2px !important;
  margin: 0 0 3px !important;
  color: #ffffff !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8) !important;
}

.halo-allowance-head p {
  font-size: 12px !important;
  color: #cbd5e1 !important;
  margin: 0 !important;
  font-weight: 550 !important;
}

.halo-shield-badge {
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px !important;
  font-size: 11px !important;
  font-weight: 750 !important;
  padding: 4px 10px !important;
  border-radius: 999px !important;
  background: rgba(16, 185, 129, 0.2) !important;
  border: 1px solid rgba(52, 211, 153, 0.45) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4) !important;
  color: #34d399 !important;
  white-space: nowrap !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.7) !important;
}

.halo-allowance-metric {
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
}

.halo-allowance-row {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  font-size: 12px !important;
}

.halo-allowance-row span {
  color: #cbd5e1 !important;
  font-weight: 650 !important;
}

.halo-allowance-row strong {
  color: #ffffff !important;
  font-weight: 850 !important;
  font-variant-numeric: tabular-nums !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8) !important;
}

.halo-progress-track {
  width: 100% !important;
  height: 8px !important;
  border-radius: 999px !important;
  background: rgba(255, 255, 255, 0.12) !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  overflow: hidden !important;
}

html[data-theme="light"] .halo-progress-track {
  background: rgba(0, 0, 0, 0.08) !important;
}

.halo-progress-track i {
  display: block !important;
  height: 100% !important;
  border-radius: inherit !important;
  background: linear-gradient(90deg, #38bdf8, #818cf8, #c084fc) !important;
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.6) !important;
  width: var(--wallet-used, 0%) !important;
  transition: width 0.4s ease !important;
}

/* ==========================================================================
   ABOUT HALO COINS & STATUS
   ========================================================================== */

.halo-wallet-info {
  border: 1px solid var(--hw-line) !important;
  border-radius: var(--hw-radius-sm) !important;
  padding: 12px 14px !important;
  background: var(--hw-soft) !important;
  color: var(--hw-muted) !important;
}

.halo-wallet-info summary {
  font-size: 12px !important;
  font-weight: 650 !important;
  color: var(--hw-text) !important;
  cursor: pointer !important;
  outline: none !important;
}

.halo-wallet-info[open] p {
  margin: 8px 0 0 !important;
  font-size: 11px !important;
  line-height: 1.5 !important;
  color: var(--hw-muted) !important;
}

.halo-wallet-status {
  padding: 12px 16px !important;
  border-radius: var(--hw-radius-sm) !important;
  background: rgba(239, 68, 68, 0.12) !important;
  border: 1px solid rgba(239, 68, 68, 0.25) !important;
  color: #fca5a5 !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  margin: 0 !important;
}

/* ==========================================================================
   SEND COINS FORM & CHIPS (APPLE OPTICAL GLASS FORM)
   ========================================================================== */

#halo-coin-send {
  display: flex !important;
  flex-direction: column !important;
  gap: 18px !important;
  padding: 24px !important;
  border-radius: var(--hw-radius-md, 22px) !important;
  border: 1px solid rgba(255, 255, 255, 0.28) !important;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.04) 100%) !important;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45), inset 0 1.5px 1px rgba(255, 255, 255, 0.6) !important;
}

#halo-coin-send label {
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  color: #ffffff !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8) !important;
}

#halo-coin-send select,
#halo-coin-send input {
  height: 48px !important;
  padding: 0 16px !important;
  border-radius: var(--hw-radius-sm, 12px) !important;
  border: 1px solid rgba(255, 255, 255, 0.28) !important;
  background: rgba(255, 255, 255, 0.08) !important;
  color: #ffffff !important;
  font-family: inherit !important;
  font-size: 15px !important;
  font-weight: 650 !important;
  outline: none !important;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.4) !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

#halo-coin-send select:focus,
#halo-coin-send input:focus {
  border-color: #38bdf8 !important;
  background: rgba(0, 0, 0, 0.5) !important;
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.3), inset 0 2px 4px rgba(0, 0, 0, 0.4) !important;
}

.halo-chip-row {
  display: flex !important;
  gap: 8px !important;
  margin-top: 4px !important;
}

.halo-chip-btn {
  flex: 1 !important;
  min-height: 36px !important;
  padding: 6px 12px !important;
  border-radius: 10px !important;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0.06) 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.3) !important;
  color: #ffffff !important;
  font-family: inherit !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  cursor: pointer !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.5) !important;
  transition: all 0.15s cubic-bezier(0.16, 1, 0.3, 1) !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8) !important;
}

.halo-chip-btn:hover {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.28) 0%, rgba(255, 255, 255, 0.12) 100%) !important;
  border-color: rgba(255, 255, 255, 0.55) !important;
  transform: translateY(-1px) !important;
}

.halo-send-summary {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  padding: 12px 16px !important;
  border-radius: 12px !important;
  background: rgba(0, 0, 0, 0.3) !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  font-size: 12px !important;
  font-weight: 650 !important;
  color: #cbd5e1 !important;
}

.halo-send-summary strong {
  color: #34d399 !important;
  font-size: 14px !important;
  font-weight: 850 !important;
  text-shadow: 0 1px 3px rgba(52, 211, 153, 0.4) !important;
}

#halo-coin-send button[type="submit"] {
  min-height: 50px !important;
  padding: 12px 24px !important;
  border-radius: var(--hw-radius-sm, 14px) !important;
  background: linear-gradient(135deg, #0284c7 0%, #4f46e5 50%, #9333ea 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.6) !important;
  color: #ffffff !important;
  font-family: inherit !important;
  font-size: 15px !important;
  font-weight: 850 !important;
  letter-spacing: -0.2px !important;
  cursor: pointer !important;
  box-shadow: 0 10px 35px rgba(79, 70, 229, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.8) !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8) !important;
}

#halo-coin-send button[type="submit"]:hover:not(:disabled) {
  box-shadow: 0 14px 42px rgba(79, 70, 229, 0.75), inset 0 1px 0 #ffffff !important;
  transform: translateY(-1px) scale(1.01) !important;
}

#halo-coin-send button[type="submit"]:disabled {
  opacity: 0.45 !important;
  cursor: not-allowed !important;
  box-shadow: none !important;
}

/* ==========================================================================
   TRANSACTION HISTORY & ACTIVITY FEED (APPLE OPTICAL TILES)
   ========================================================================== */

.halo-coin-history {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 10px !important;
}

.halo-coin-history li {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 14px !important;
  padding: 16px 18px !important;
  border-radius: 18px !important;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.04) 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.26) !important;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3), inset 0 1px 1px rgba(255, 255, 255, 0.5) !important;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), background 0.2s ease, border-color 0.2s ease !important;
}

.halo-coin-history li:hover {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.08) 100%) !important;
  border-color: rgba(255, 255, 255, 0.45) !important;
  transform: translateY(-1px) !important;
}

.halo-history-left {
  display: flex !important;
  align-items: center !important;
  gap: 14px !important;
  min-width: 0 !important;
}

.halo-history-icon-circle {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 42px !important;
  height: 42px !important;
  border-radius: 50% !important;
  flex-shrink: 0 !important;
}

.halo-history-icon-circle.credit {
  background: rgba(16, 185, 129, 0.2) !important;
  border: 1px solid rgba(52, 211, 153, 0.45) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4) !important;
  color: #34d399 !important;
}

.halo-history-icon-circle.debit {
  background: rgba(255, 255, 255, 0.12) !important;
  border: 1px solid rgba(255, 255, 255, 0.3) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4) !important;
  color: #ffffff !important;
}

.halo-history-details {
  display: flex !important;
  flex-direction: column !important;
  gap: 3px !important;
  min-width: 0 !important;
}

.halo-history-details strong {
  font-size: 14px !important;
  font-weight: 800 !important;
  color: #ffffff !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8) !important;
}

.halo-history-details small,
.halo-history-details time {
  font-size: 11px !important;
  color: #cbd5e1 !important;
  font-weight: 600 !important;
}

.halo-history-amount {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-end !important;
  gap: 3px !important;
  flex-shrink: 0 !important;
}

.halo-history-amount span {
  font-size: 16px !important;
  font-weight: 850 !important;
  font-variant-numeric: tabular-nums !important;
  letter-spacing: -0.3px !important;
}

.halo-history-amount.credit span {
  color: #34d399 !important;
  text-shadow: 0 1px 4px rgba(52, 211, 153, 0.4) !important;
}

.halo-history-amount.debit span {
  color: #ffffff !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8) !important;
}

.halo-history-amount small {
  font-size: 10px !important;
  font-weight: 750 !important;
  padding: 2px 7px !important;
  border-radius: 6px !important;
  background: rgba(255, 255, 255, 0.12) !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  color: #cbd5e1 !important;
  text-transform: uppercase !important;
}

.halo-wallet-tabs {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 12px !important;
  padding: 10px 0 !important;
}

.halo-wallet-tabs button {
  min-height: 38px !important;
  padding: 8px 16px !important;
  border-radius: 12px !important;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0.06) 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.3) !important;
  color: #ffffff !important;
  font-family: inherit !important;
  font-size: 13px !important;
  font-weight: 750 !important;
  cursor: pointer !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.5) !important;
  transition: all 0.15s ease !important;
}

.halo-wallet-tabs button:hover:not(:disabled) {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.25) 0%, rgba(255, 255, 255, 0.12) 100%) !important;
  border-color: rgba(255, 255, 255, 0.5) !important;
}

.halo-wallet-tabs button:disabled {
  opacity: 0.4 !important;
  cursor: not-allowed !important;
}

.halo-wallet-tabs span {
  font-size: 13px !important;
  color: #cbd5e1 !important;
  font-weight: 700 !important;
}

.halo-history-empty {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 12px !important;
  padding: 50px 24px !important;
  text-align: center !important;
  color: #cbd5e1 !important;
}

.halo-history-empty svg {
  width: 48px !important;
  height: 48px !important;
  stroke: rgba(255, 255, 255, 0.5) !important;
  fill: none !important;
}

/* ==========================================================================
   HALO SHOP & PRODUCT CARDS (APPLE OPTICAL SHELF)
   ========================================================================== */

.halo-shop-hero {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 20px !important;
  padding: 20px 24px !important;
  border-radius: var(--hw-radius-md, 22px) !important;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.14) 0%, rgba(255, 255, 255, 0.04) 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.35) !important;
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.45), inset 0 1.5px 1px rgba(255, 255, 255, 0.7) !important;
}

.halo-shop-hero h3 {
  font-size: 22px !important;
  font-weight: 850 !important;
  letter-spacing: -0.4px !important;
  margin: 0 0 4px !important;
  color: #ffffff !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8) !important;
}

.halo-shop-hero p {
  font-size: 13px !important;
  color: #cbd5e1 !important;
  margin: 0 !important;
  font-weight: 550 !important;
}

.halo-shop-balance {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-end !important;
  gap: 3px !important;
}

.halo-shop-balance > span {
  font-size: 11px !important;
  font-weight: 800 !important;
  color: #cbd5e1 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.8px !important;
}

.halo-shop-balance strong {
  font-size: 26px !important;
  font-weight: 900 !important;
  color: #fbbf24 !important;
  font-variant-numeric: tabular-nums !important;
  text-shadow: 0 1px 4px rgba(251, 191, 36, 0.5) !important;
}

.halo-shop-discovery {
  display: flex !important;
  flex-direction: column !important;
  gap: 12px !important;
  position: static !important;
  background: transparent !important;
  border-bottom: none !important;
  padding-bottom: 6px !important;
  z-index: 10 !important;
}

.halo-shop-categories {
  display: flex !important;
  gap: 8px !important;
  overflow-x: auto !important;
  padding-bottom: 4px !important;
  scrollbar-width: none !important;
}

.halo-shop-categories::-webkit-scrollbar {
  display: none !important;
}

.halo-shop-categories button {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  min-height: 38px !important;
  padding: 6px 16px !important;
  border-radius: 999px !important;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.14) 0%, rgba(255, 255, 255, 0.05) 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.28) !important;
  color: #cbd5e1 !important;
  font-family: inherit !important;
  font-size: 12px !important;
  font-weight: 750 !important;
  cursor: pointer !important;
  white-space: nowrap !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.4) !important;
  transition: all 0.15s ease !important;
}

.halo-shop-categories button:hover {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.25) 0%, rgba(255, 255, 255, 0.1) 100%) !important;
  border-color: rgba(255, 255, 255, 0.45) !important;
  color: #ffffff !important;
}

.halo-shop-categories button[aria-pressed="true"] {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0.15) 100%) !important;
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.6) !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35), inset 0 1px 0 #ffffff !important;
  font-weight: 850 !important;
}

.halo-shop-tools {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 180px !important;
  gap: 10px !important;
}

.halo-shop-tools:has(.halo-shop-game-filter:not([hidden])) {
  grid-template-columns: minmax(0, 1fr) 180px 180px !important;
}

.halo-shop-tools input,
.halo-shop-tools select {
  height: 42px !important;
  padding: 0 14px !important;
  border-radius: var(--hw-radius-sm, 12px) !important;
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.26) !important;
  color: #ffffff !important;
  font-family: inherit !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  outline: none !important;
}

.halo-shop-tools input:focus,
.halo-shop-tools select:focus {
  border-color: #38bdf8 !important;
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.3) !important;
}

.halo-shop-results {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  font-size: 12px !important;
  font-weight: 650 !important;
  color: #cbd5e1 !important;
}

.halo-shop-inbox {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  padding: 6px 14px !important;
  border-radius: 999px !important;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0.06) 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.32) !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.5) !important;
  color: #ffffff !important;
  font-size: 12px !important;
  font-weight: 750 !important;
  cursor: pointer !important;
}

/* Shop Product Grid */
.halo-coin-shop {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)) !important;
  gap: 16px !important;
  content-visibility: auto !important;
  contain-intrinsic-size: 260px !important;
}

.halo-product-card {
  display: flex !important;
  flex-direction: column !important;
  border-radius: var(--hw-radius-md, 20px) !important;
  border: 1px solid rgba(255, 255, 255, 0.24) !important;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.10) 0%, rgba(255, 255, 255, 0.03) 100%) !important;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.5) !important;
  overflow: hidden !important;
  contain: paint !important;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s ease !important;
}

.halo-product-card:hover {
  transform: translateY(-2px) !important;
  border-color: rgba(255, 255, 255, 0.5) !important;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.7) !important;
}

.halo-product-art {
  position: relative !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  height: 125px !important;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.02) 100%), radial-gradient(circle at 50% 50%, rgba(56, 189, 248, 0.12) 0%, transparent 70%) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15) !important;
  overflow: hidden !important;
  padding: 8px !important;
  box-sizing: border-box !important;
}

.halo-product-image {
  width: 100% !important;
  height: 100% !important;
  max-height: 110px !important;
  object-fit: contain !important;
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.halo-product-card:hover .halo-product-image {
  transform: scale(1.04) !important;
}

.halo-game-shop-art {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 76px !important;
  height: 76px !important;
  border-radius: 18px !important;
  overflow: hidden !important;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.03) 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.22) !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45) !important;
}

.halo-game-shop-art img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}

.halo-product-image.halo-img-fallback {
  width: 48px !important;
  height: 48px !important;
  opacity: 0.65 !important;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.5)) !important;
}

.halo-product-owned {
  position: absolute !important;
  top: 8px !important;
  left: 8px !important;
  padding: 4px 10px !important;
  border-radius: 999px !important;
  background: rgba(16, 185, 129, 0.9) !important;
  border: 1px solid rgba(255, 255, 255, 0.4) !important;
  color: #ffffff !important;
  font-size: 10px !important;
  font-weight: 850 !important;
  letter-spacing: 0.5px !important;
  text-transform: uppercase !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.7) !important;
}

.halo-product-copy {
  display: flex !important;
  flex-direction: column !important;
  gap: 6px !important;
  padding: 16px !important;
  flex: 1 !important;
}

.halo-product-copy > small {
  font-size: 10px !important;
  font-weight: 800 !important;
  color: #cbd5e1 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.8px !important;
}

.halo-product-copy h3 {
  font-size: 15px !important;
  font-weight: 800 !important;
  letter-spacing: -0.2px !important;
  color: #ffffff !important;
  margin: 0 !important;
  min-height: 38px !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8) !important;
}

.halo-product-copy > p {
  font-size: 12px !important;
  color: #cbd5e1 !important;
  margin: 0 !important;
  line-height: 1.45 !important;
  flex: 1 !important;
  font-weight: 550 !important;
}

.halo-product-price {
  font-size: 16px !important;
  font-weight: 900 !important;
  color: #fbbf24 !important;
  margin-top: 6px !important;
  text-shadow: 0 1px 4px rgba(251, 191, 36, 0.5) !important;
  letter-spacing: -0.3px !important;
}

.halo-product-actions {
  display: flex !important;
  gap: 8px !important;
  padding-top: 10px !important;
}

.halo-product-actions > button {
  flex: 1 !important;
  min-height: 42px !important;
  padding: 8px 14px !important;
  border-radius: var(--hw-radius-sm, 12px) !important;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0.06) 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.3) !important;
  color: #ffffff !important;
  font-family: inherit !important;
  font-size: 13px !important;
  font-weight: 750 !important;
  cursor: pointer !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.5) !important;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.halo-product-actions > [data-coin-buy] {
  background: linear-gradient(135deg, #0284c7 0%, #4f46e5 50%, #9333ea 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.55) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 16px rgba(79, 70, 229, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.8) !important;
  font-weight: 850 !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8) !important;
}

.halo-product-actions > [data-coin-buy]:hover {
  box-shadow: 0 6px 22px rgba(79, 70, 229, 0.6), inset 0 1px 0 #ffffff !important;
  transform: translateY(-1px) !important;
}

.halo-product-actions .halo-gift-action {
  flex: 0 0 42px !important;
  width: 42px !important;
  display: grid !important;
  place-items: center !important;
  padding: 0 !important;
}

.halo-product-actions .halo-gift-action svg {
  width: 17px !important;
  height: 17px !important;
  stroke: currentColor !important;
  stroke-width: 2 !important;
  fill: none !important;
}

.halo-product-actions .halo-gift-action span {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
}

/* ==========================================================================
   PRODUCT DETAIL / PURCHASE / GIFT FORMS
   ========================================================================== */

.halo-product-detail {
  display: flex !important;
  flex-direction: column !important;
  gap: 16px !important;
  padding: 20px !important;
  border-radius: var(--hw-radius-md) !important;
  background: var(--hw-card) !important;
  border: 1px solid var(--hw-line) !important;
}

.halo-product-detail h3 {
  font-size: 20px !important;
  font-weight: 750 !important;
  margin: 0 !important;
  color: var(--hw-text) !important;
}

.halo-product-image.is-large {
  border-radius: var(--hw-radius-md) !important;
  max-height: 240px !important;
  object-fit: contain !important;
  background: rgba(0, 0, 0, 0.3) !important;
}

#halo-wallet-dialog form {
  display: flex !important;
  flex-direction: column !important;
  gap: 14px !important;
  padding: 20px !important;
  border-radius: var(--hw-radius-md) !important;
  background: var(--hw-card) !important;
  border: 1px solid var(--hw-line) !important;
}

#halo-wallet-dialog form [type="submit"] {
  min-height: 44px !important;
  border-radius: var(--hw-radius-sm) !important;
  background: var(--hw-accent) !important;
  color: #ffffff !important;
  font-family: inherit !important;
  font-size: 14px !important;
  font-weight: 750 !important;
  border: none !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
}

/* ==========================================================================
   MY ITEMS (OWNED INVENTORY)
   ========================================================================== */

.halo-owned-items .halo-owned-list {
  display: grid !important;
  gap: 10px !important;
  max-height: 400px !important;
  overflow-y: auto !important;
  scrollbar-width: thin !important;
}

.halo-owned-item {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  padding: 12px !important;
  border: 1px solid var(--hw-line) !important;
  border-radius: var(--hw-radius-sm) !important;
  background: var(--hw-soft) !important;
}

.halo-owned-item > img,
.halo-owned-item > .halo-shop-art {
  width: 56px !important;
  height: 42px !important;
  object-fit: contain !important;
  flex-shrink: 0 !important;
}

.halo-owned-item > span:not(.halo-shop-art) {
  flex: 1 !important;
  min-width: 0 !important;
  font-size: 13px !important;
  font-weight: 650 !important;
  color: var(--hw-text) !important;
}

.halo-owned-item button {
  min-height: 36px !important;
  padding: 6px 14px !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  border-radius: 8px !important;
  border: 1px solid var(--hw-line) !important;
  background: var(--hw-soft) !important;
  color: var(--hw-text) !important;
  cursor: pointer !important;
}

/* ==========================================================================
   GAMING HUB & COMPETITIONS
   ========================================================================== */

.halo-coin-competitions {
  display: grid !important;
  gap: 12px !important;
}

.halo-coin-competitions article {
  display: grid !important;
  gap: 8px !important;
  padding: 16px !important;
  border-radius: var(--hw-radius-md) !important;
  background: var(--hw-card) !important;
  border: 1px solid var(--hw-line) !important;
}

.halo-coin-ranking {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
  display: grid !important;
  gap: 6px !important;
}

.halo-coin-ranking li {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 10px 14px !important;
  border-radius: 8px !important;
  background: var(--hw-soft) !important;
}

.hg-coin-reward {
  position: fixed !important;
  z-index: 120 !important;
  top: 80px !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  background: #182b31 !important;
  color: #ffe1a0 !important;
  padding: 10px 20px !important;
  border-radius: 999px !important;
  font-weight: 800 !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4) !important;
  animation: halo-float-up 2s forwards !important;
}

/* ==========================================================================
   COSMETIC EFFECTS & EQUIPS (37 CUSTOMIZATIONS)
   ========================================================================== */
body[data-halo-coin-frame="neon"] #header-profile-avatar,body[data-halo-coin-frame="neon"] #social-profile-avatar{outline:2px solid #b0a0ff!important;outline-offset:3px!important;box-shadow:0 0 16px #a189ff70!important}
body[data-halo-coin-accent="aurora"] #direct-chat-messages .outgoing,body[data-halo-coin-accent="aurora"] #halo-group-messages .outgoing{border-color:#66d4be!important;background:linear-gradient(120deg,#5273a830,#47bcad30)!important}
body[data-halo-coin-accent="ember"] #direct-chat-messages .outgoing,body[data-halo-coin-accent="ember"] #halo-group-messages .outgoing{border-color:#ffaa86!important;background:linear-gradient(120deg,#ab584330,#ca8d4830)!important}
body[data-halo-coin-accent="mint"] :is(#direct-chat-messages,#halo-group-messages,.hp-chat-preview) .outgoing{border-color:#6ed6b088!important;background:linear-gradient(125deg,#6ed6b035,#7cd7e035)!important}
body[data-halo-coin-accent="coral"] :is(#direct-chat-messages,#halo-group-messages,.hp-chat-preview) .outgoing{border-color:#fb9ba788!important;background:linear-gradient(125deg,#fb9ba735,#eda47835)!important}
body[data-halo-coin-accent="cosmic"] :is(#direct-chat-messages,#halo-group-messages,.hp-chat-preview) .outgoing{border-color:#a791eb88!important;background:linear-gradient(125deg,#a791eb35,#809ce035)!important}
body[data-halo-coin-accent="gold"] :is(#direct-chat-messages,#halo-group-messages,.hp-chat-preview) .outgoing{border-color:#e9be6888!important;background:linear-gradient(125deg,#e9be6835,#f0dcb235)!important}
body[data-halo-coin-background="nebula"] :is(#direct-chat-messages,#halo-group-messages,.hp-chat-preview .direct-chat-messages){background:radial-gradient(ellipse at 20% 15%,#9684bd2e,transparent 65%),radial-gradient(ellipse at 90% 95%,#659cb828,transparent 65%),var(--shop-surface)!important}
body[data-halo-coin-background="grid"] :is(#direct-chat-messages,#halo-group-messages,.hp-chat-preview .direct-chat-messages){background:repeating-linear-gradient(0deg,#80b9c91a 0 1px,transparent 1px 28px),repeating-linear-gradient(90deg,#80b9c91a 0 1px,transparent 1px 28px),var(--shop-surface)!important}
body[data-halo-coin-background="petal"] :is(#direct-chat-messages,#halo-group-messages,.hp-chat-preview .direct-chat-messages){background:radial-gradient(ellipse at 80% 10%,#d69bc333,transparent 60%),radial-gradient(ellipse at 10% 90%,#aa93c629,transparent 60%),var(--shop-surface)!important}
body[data-halo-coin-background="dawn"] :is(#direct-chat-messages,#halo-group-messages,.hp-chat-preview .direct-chat-messages){background:radial-gradient(ellipse at 90% 100%,#e5c99735,transparent 70%),radial-gradient(ellipse at 0% 0%,#e5ad9333,transparent 65%),var(--shop-surface)!important}
body[data-halo-coin-bubble="round"] :is(#direct-chat-messages,#halo-group-messages,.hp-chat-preview) .outgoing{border-radius:24px!important}
body[data-halo-coin-bubble="glass"] :is(#direct-chat-messages,#halo-group-messages,.hp-chat-preview) .outgoing{border-color:#adc4d54d!important;backdrop-filter:blur(8px)!important;box-shadow:inset 0 1px #d7e7f129!important}
body[data-halo-coin-bubble="outline"] :is(#direct-chat-messages,#halo-group-messages,.hp-chat-preview) .outgoing{background:transparent!important;border-color:#87b9c88c!important;box-shadow:none!important}
body[data-halo-coin-bubble="neon"] :is(#direct-chat-messages,#halo-group-messages,.hp-chat-preview) .outgoing{border-color:#a69ad5b3!important;box-shadow:0 0 9px #a69ad529,inset 0 0 5px #a69ad511!important}
body[data-halo-coin-frame="prism"] :is(#header-profile-avatar,#social-profile-avatar){outline:2px solid #aa9ee7!important;outline-offset:3px!important;box-shadow:0 0 12px #79d3c770!important}
body[data-halo-coin-frame="sunrise"] :is(#header-profile-avatar,#social-profile-avatar){outline:2px solid #ecaf90!important;outline-offset:3px!important;box-shadow:0 0 12px #d8be7270!important}
body[data-halo-coin-accent="ocean"] :is(#direct-chat-messages,#halo-group-messages,.hp-chat-preview) .outgoing{background:linear-gradient(125deg,#78bddb38,#6092c938)!important;border-color:#7dbfd570!important}
body[data-halo-coin-accent="lavender"] :is(#direct-chat-messages,#halo-group-messages,.hp-chat-preview) .outgoing{background:linear-gradient(125deg,#ada5df38,#bf9dcb38)!important;border-color:#afa5db70!important}
body[data-halo-coin-accent="sunset"] :is(#direct-chat-messages,#halo-group-messages,.hp-chat-preview) .outgoing{background:linear-gradient(125deg,#e6ae8c38,#daa0b538)!important;border-color:#ddaf9870!important}
body[data-halo-coin-background="stars"] :is(#direct-chat-messages,#halo-group-messages,.hp-chat-preview .direct-chat-messages){background:radial-gradient(circle at 13% 22%,#aacdd5 0 1px,transparent 2px),radial-gradient(circle at 69% 61%,#baa7d5 0 1px,transparent 2px),radial-gradient(ellipse at 50% 0,#958bbc25,transparent),var(--shop-surface)!important;background-size:80px 90px,110px 130px,100% 100%!important}
body[data-halo-coin-background="waves"] :is(#direct-chat-messages,#halo-group-messages,.hp-chat-preview .direct-chat-messages){background:repeating-radial-gradient(ellipse at 0 100%,#70bdbd19 0 2px,transparent 3px 30px),var(--shop-surface)!important}
body[data-halo-coin-background="bloom"] :is(#direct-chat-messages,#halo-group-messages,.hp-chat-preview .direct-chat-messages){background:radial-gradient(ellipse at 80% 30%,#da9eaa35,transparent 60%),radial-gradient(ellipse at 20% 90%,#98bbac35,transparent 60%),var(--shop-surface)!important}
body[data-halo-coin-bubble="pill"] :is(#direct-chat-messages,#halo-group-messages,.hp-chat-preview) .outgoing{border-radius:32px!important;padding-inline:20px!important}
body[data-halo-coin-bubble="paper"] :is(#direct-chat-messages,#halo-group-messages,.hp-chat-preview) .outgoing{border-radius:8px 18px 3px 18px!important;box-shadow:3px 4px 0 #71958b22!important}
body[data-halo-coin-profile] .social-profile-identity{border-radius:22px!important;padding:22px!important;background:linear-gradient(135deg,#779cce22,#72baa933)!important}
body[data-halo-coin-profile="sunset"] .social-profile-identity{background:linear-gradient(135deg,#efad9b33,#b68cce33)!important}
body[data-halo-coin-profile="noir"] .social-profile-identity{background:linear-gradient(135deg,#848fa322,#9aadc033)!important}
body[data-halo-coin-profile="bloom"] .social-profile-identity{background:linear-gradient(135deg,#d696b233,#85b6a833)!important}
body[data-halo-coin-name="gold"] .social-profile-identity :is(h2,h3){color:#b18d40!important}
body[data-halo-coin-name="mint"] .social-profile-identity :is(h2,h3){color:#71ad9e!important}
body[data-halo-coin-name="rose"] .social-profile-identity :is(h2,h3){color:#c28da5!important}
body[data-halo-coin-name="cosmic"] .social-profile-identity :is(h2,h3){color:#a292cd!important}
body[data-halo-coin-frame="halo"] :is(#header-profile-avatar,#social-profile-avatar){outline:3px solid #88bcb7!important;outline-offset:4px!important}
body[data-halo-coin-frame="frost"] :is(#header-profile-avatar,#social-profile-avatar){outline:3px solid #a3c6db!important;outline-offset:3px!important}
body[data-halo-coin-frame="ember"] :is(#header-profile-avatar,#social-profile-avatar){outline:3px solid #dbae8b!important;outline-offset:3px!important}
body[data-halo-coin-frame="petal"] :is(#header-profile-avatar,#social-profile-avatar){outline:3px solid #c7a2bf!important;outline-offset:3px!important}

/* ==========================================================================
   ANIMATIONS & RESPONSIVE DESIGN
   ========================================================================== */

@keyframes halo-wallet-appear {
  from {
    opacity: 0;
    transform: scale(0.96) translateY(10px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes halo-pulse {
  0% { transform: scale(0.9); opacity: 0.7; }
  50% { transform: scale(1.2); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.7; }
}

@keyframes halo-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.halo-spin {
  animation: halo-spin 0.8s linear infinite !important;
}

@media (max-width: 640px) {
  #halo-wallet-dialog:not([data-presentation="page"]) {
    width: 100vw !important;
    max-height: 92vh !important;
    border-radius: 24px 24px 0 0 !important;
    bottom: 0 !important;
    top: auto !important;
    margin: 0 !important;
    backdrop-filter: blur(28px) saturate(160%) !important;
    -webkit-backdrop-filter: blur(28px) saturate(160%) !important;
    background: var(--hw-bg) !important;
  }

  #halo-wallet-dialog:not([data-presentation="page"])::backdrop {
    background: rgba(4, 7, 15, 0.82) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
  }

  .halo-wallet-shell > header {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background: transparent !important;
    position: static !important;
  }
  
  .halo-wallet-quick {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  
  .halo-wallet-navigation {
    padding: 6px 10px !important;
    gap: 4px !important;
  }
  
  .halo-wallet-navigation button {
    font-size: 12px !important;
    padding: 6px !important;
  }
  
  .halo-wallet-balances {
    grid-template-columns: 1fr !important;
  }
  
  .halo-coin-shop {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
  }
}
