/* ==========================================================================
   GenD Wallet — Frontend Styles  v2.0
   ========================================================================== */

/* Prevent body scroll when modal is open */
body.gw-modal-open { overflow: hidden; }


:root {
  --gw-bg: #0d1117;
  --gw-surface: #161b22;
  --gw-surface-2: #1c2128;
  --gw-border: rgba(255,255,255,0.08);
  --gw-text: #e6edf3;
  --gw-muted: #8b949e;
  --gw-accent: #b608c9;
  --gw-accent-2: #7c3aed;
  --gw-accent-hover: #c820d8;
  --gw-positive: #3fb950;
  --gw-negative: #f85149;
  --gw-warning: #e3b341;
  --gw-blue: #388bfd;
  --gw-radius: 14px;
  --gw-radius-sm: 9px;
  --gw-ease: 0.22s ease;
}

/* ========== Base ========== */
.gend-wallet {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--gw-text);
  max-width: 100%;
}

/* ========== Tabs Navigation ========== */
.gend-wallet__tabs {
  display: flex;
  flex-wrap: nowrap;
  gap: 3px;
  padding: 4px;
  background: var(--gw-surface);
  border: 1px solid var(--gw-border);
  border-radius: var(--gw-radius);
  margin-bottom: 28px;
  overflow-x: auto;
  scrollbar-width: none;
}
.gend-wallet__tabs::-webkit-scrollbar { display: none; }

.gend-wallet__tab {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 17px;
  background: transparent;
  border: none;
  border-radius: var(--gw-radius-sm);
  color: var(--gw-muted);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: background var(--gw-ease), color var(--gw-ease);
  outline: none;
}
.gend-wallet__tab:hover { background: rgba(255,255,255,0.06); color: var(--gw-text); }
.gend-wallet__tab--active,
.gend-wallet__tab[aria-selected="true"] { background: var(--gw-accent); color: #fff; }
.gend-wallet__tab:focus-visible { outline: 2px solid var(--gw-accent); outline-offset: 2px; }

/* ========== Panels ========== */
.gend-wallet__panel { display: none; }
.gend-wallet__panel:not([hidden]) { display: block; animation: gwFadeIn 0.25s ease forwards; }

@keyframes gwFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ========== Section Titles ========== */
.gend-wallet__section-title {
  font-size: 1.05rem; font-weight: 700; color: var(--gw-text);
  margin: 0 0 6px; padding: 0; border: none;
}
.gend-wallet__section-desc { color: var(--gw-muted); font-size: 0.875rem; margin: 0 0 22px; }

/* ========== Balance Cards — FULL WIDTH ROWS ========== */
.gend-wallet__balances {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 32px;
}

.gend-wallet__balance-card {
  background: var(--gw-surface);
  border: 1px solid var(--gw-border);
  border-radius: var(--gw-radius);
  position: relative;
  overflow: hidden;
  transition: border-color var(--gw-ease), box-shadow var(--gw-ease);
  width: 100%;
}
.gend-wallet__balance-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gw-accent), var(--gw-accent-2));
  pointer-events: none;
}
.gend-wallet__balance-card:hover {
  border-color: rgba(182,8,201,0.3);
  box-shadow: 0 6px 28px rgba(182,8,201,0.09);
}

/* Hover: darker, glassmorphic, slowly drifting colour glow behind the content */
.gend-wallet__balance-card {
  isolation: isolate;
  transition: border-color var(--gw-ease), box-shadow var(--gw-ease), background-color var(--gw-ease);
}
.gend-wallet__balance-card::after {
  content: '';
  position: absolute;
  inset: -40%;
  z-index: -1;
  pointer-events: none;
  opacity: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(182,8,201,0.35) 0, transparent 38%),
    radial-gradient(circle at 80% 25%, rgba(56,139,253,0.28) 0, transparent 36%),
    radial-gradient(circle at 55% 80%, rgba(124,58,237,0.32) 0, transparent 40%);
  filter: blur(28px);
  transition: opacity 0.4s ease;
  animation: gwCardGlow 9s ease-in-out infinite alternate;
  animation-play-state: paused;
}
.gend-wallet__balance-card:hover,
.gend-wallet__balance-card:focus-within {
  background-color: rgba(8,10,14,0.82);
  border-color: rgba(255,255,255,0.16);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  box-shadow: 0 10px 36px rgba(0,0,0,0.45), 0 0 28px rgba(182,8,201,0.14),
              inset 0 1px 0 rgba(255,255,255,0.10), inset 0 0 0 1px rgba(255,255,255,0.03);
}
.gend-wallet__balance-card:hover::after,
.gend-wallet__balance-card:focus-within::after {
  opacity: 1;
  animation-play-state: running;
}
.gend-wallet__balance-card > * { position: relative; z-index: 1; }
/* Animated ring around the point-type image/icon while the whole card is hovered */
@property --gw-ring-angle { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
.gend-wallet__card-icon { position: relative; }
.gend-wallet__card-icon::before {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 19px;
  padding: 3px;
  background: conic-gradient(from var(--gw-ring-angle), #b608c9, #388bfd, #3fb950, #e3b341, #b608c9);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  animation: gwRingSpin 3s linear infinite;
  animation-play-state: paused;
}
.gend-wallet__balance-card:hover .gend-wallet__card-icon::before,
.gend-wallet__balance-card:focus-within .gend-wallet__card-icon::before {
  opacity: 1;
  animation-play-state: running;
}
.gend-wallet__balance-card:hover .gw-type-logo,
.gend-wallet__balance-card:hover .gw-type-svg {
  box-shadow: 0 0 18px rgba(182,8,201,0.45);
}
@keyframes gwRingSpin { to { --gw-ring-angle: 360deg; } }
@media (prefers-reduced-motion: reduce) {
  .gend-wallet__card-icon::before { animation: none; }
}
@keyframes gwCardGlow {
  0%   { transform: translate3d(-6%, -4%, 0) rotate(0deg) scale(1); }
  50%  { transform: translate3d(5%, 4%, 0) rotate(12deg) scale(1.08); }
  100% { transform: translate3d(-3%, 6%, 0) rotate(-10deg) scale(1.02); }
}
@media (prefers-reduced-motion: reduce) {
  .gend-wallet__balance-card::after { animation: none; }
}

/* Card inner layout: info + actions side-by-side */
.gend-wallet__card-inner {
  display: grid;
  grid-template-columns: auto auto 1fr auto;
  align-items: center;
  gap: 0;
  padding: 20px 24px;
}

/* Icon / Graphic */
.gend-wallet__card-icon {
  margin-right: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gw-type-svg {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: var(--card-color, #00f2ff);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
  font-size: 1.6rem;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
  background-image: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, rgba(0,0,0,0.2) 100%);
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.gw-type-logo {
  width: 56px;
  height: 56px;
  object-fit: contain;
  border-radius: 12px;
}

/* Left: type name + balance number */
.gend-wallet__card-left {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 160px;
  padding-right: 24px;
  border-right: 1px solid var(--gw-border);
}
.gend-wallet__balance-header { display: flex; align-items: center; gap: 8px; }
.gend-wallet__point-type-name { font-size: 0.9375rem; font-weight: 700; color: var(--gw-text); }
.gend-wallet__point-type-slug {
  font-size: 0.7rem; color: var(--gw-muted);
  background: rgba(255,255,255,0.06); padding: 2px 7px;
  border-radius: 20px; font-family: monospace;
}
.gend-wallet__balance-value {
  font-size: 2.1rem; font-weight: 800; color: var(--gw-text);
  letter-spacing: -0.03em; line-height: 1; margin-top: 6px;
}
.gend-wallet__balance-label {
  font-size: 0.7rem; color: var(--gw-muted);
  text-transform: uppercase; letter-spacing: 0.06em; margin-top: 3px;
}

/* Middle: stats */
.gend-wallet__card-middle {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0 28px;
}
.gend-wallet__stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.gend-wallet__stat-label { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--gw-muted); }
.gend-wallet__stat-value { font-size: 0.9375rem; font-weight: 600; color: var(--gw-positive); }

/* Right: action buttons — each clearly labeled */
.gend-wallet__card-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding-left: 24px;
  border-left: 1px solid var(--gw-border);
  min-width: 280px;
}

.gend-wallet__action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 14px;
  font-size: 0.8125rem;
  font-weight: 600;
  border-radius: var(--gw-radius-sm);
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.04);
  color: var(--gw-text);
  cursor: pointer;
  transition: background var(--gw-ease), border-color var(--gw-ease), color var(--gw-ease), box-shadow var(--gw-ease);
  white-space: nowrap;
  text-align: center;
}
.gend-wallet__action-btn:hover {
  background: rgba(182,8,201,0.14);
  border-color: rgba(182,8,201,0.4);
  color: #d88adf;
  box-shadow: 0 0 0 2px rgba(182,8,201,0.1);
}
.gend-wallet__action-btn--exchange:hover { background: rgba(182,8,201,0.14); border-color: rgba(182,8,201,0.4); }
.gend-wallet__action-btn--transfer:hover { background: rgba(56,139,253,0.14); border-color: rgba(56,139,253,0.4); color: #7dbbff; }
.gend-wallet__action-btn--withdraw:hover { background: rgba(63,185,80,0.14); border-color: rgba(63,185,80,0.4); color: #7dffa0; }
.gend-wallet__action-btn--history:hover  { background: rgba(227,179,65,0.14);  border-color: rgba(227,179,65,0.4);  color: #f5d170; }
.gend-wallet__action-btn--spend:hover    { background: rgba(248,81,73,0.14);   border-color: rgba(248,81,73,0.4);   color: #ffb3af; }

/* ========== Point Detail Modal ========== */
.gw-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.72);
  backdrop-filter: blur(4px);
  z-index: 99998;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: gwBackdropIn 0.2s ease forwards;
}
@keyframes gwBackdropIn { from { opacity: 0; } to { opacity: 1; } }

.gw-modal {
  background: var(--gw-surface);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--gw-radius);
  width: 85vw;
  max-width: 85vw;
  max-height: 90vh;
  overflow-x: hidden;
  overflow-y: auto;
  box-shadow: 0 24px 80px rgba(0,0,0,0.6);
  animation: gwModalIn 0.25s cubic-bezier(0.34,1.56,0.64,1) forwards;
  position: relative;
}
@keyframes gwModalIn {
  from { opacity: 0; transform: scale(0.92) translateY(16px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

.gw-modal__top-bar {
  height: 3px;
  background: linear-gradient(90deg, var(--gw-accent), var(--gw-accent-2));
  border-radius: var(--gw-radius) var(--gw-radius) 0 0;
}

.gw-modal__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 20px 24px 0;
  gap: 12px;
}
.gw-modal__title-wrap { display: flex; flex-direction: column; gap: 4px; }
.gw-modal__title { font-size: 1.1rem; font-weight: 700; color: var(--gw-text); margin: 0; }
.gw-modal__subtitle {
  font-size: 0.8rem; color: var(--gw-muted);
  background: rgba(255,255,255,0.06); padding: 2px 8px;
  border-radius: 20px; font-family: monospace; display: inline-block;
}
.gw-modal__close {
  flex-shrink: 0;
  width: 32px; height: 32px;
  border: 1px solid var(--gw-border);
  background: rgba(255,255,255,0.04);
  border-radius: 50%;
  color: var(--gw-muted);
  font-size: 1.1rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background var(--gw-ease), color var(--gw-ease);
  line-height: 1;
}
.gw-modal__close:hover { background: rgba(248,81,73,0.15); color: var(--gw-negative); border-color: rgba(248,81,73,0.3); }

/* Modal balance banner */
.gw-modal__balance-banner {
  margin: 16px 24px 0;
  background: var(--gw-surface-2);
  border: 1px solid var(--gw-border);
  border-radius: var(--gw-radius-sm);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 20px;
}
.gw-modal__balance-main { display: flex; flex-direction: column; gap: 2px; }
.gw-modal__balance-num { font-size: 2rem; font-weight: 800; color: var(--gw-text); letter-spacing: -0.03em; line-height: 1; }
.gw-modal__balance-tag { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--gw-muted); margin-top: 3px; }
.gw-modal__balance-sep { width: 1px; height: 40px; background: var(--gw-border); flex-shrink: 0; }
.gw-modal__balance-earned { display: flex; flex-direction: column; gap: 2px; }
.gw-modal__balance-earned-num { font-size: 1.1rem; font-weight: 700; color: var(--gw-positive); }
.gw-modal__balance-earned-tag { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--gw-muted); }

/* Modal action tabs (sub-tabs inside modal) */
.gw-modal__action-tabs {
  display: flex;
  gap: 3px;
  padding: 16px 24px 0;
}
.gw-modal__action-tab {
  flex: 1;
  display: flex; align-items: center; justify-content: center; gap: 6px;
  padding: 9px 8px;
  font-size: 0.8rem; font-weight: 600;
  border: 1px solid var(--gw-border);
  border-radius: var(--gw-radius-sm);
  background: transparent; color: var(--gw-muted);
  cursor: pointer; transition: all var(--gw-ease);
}
.gw-modal__action-tab:hover { background: rgba(255,255,255,0.05); color: var(--gw-text); }
.gw-modal__action-tab--active { background: var(--gw-accent); border-color: var(--gw-accent); color: #fff; }

/* Modal body */
.gw-modal__body { padding: 20px 24px 24px; }

.gw-modal__pane { display: none; }
.gw-modal__pane--active { display: block; animation: gwFadeIn 0.2s ease forwards; }

/* Exchange specific in modal */
.gw-modal__exchange-grid {
  display: grid;
  grid-template-columns: 1fr 40px 1fr;
  gap: 10px;
  align-items: end;
  margin-bottom: 16px;
}
.gw-modal__exchange-arrow {
  display: flex; align-items: center; justify-content: center;
  color: var(--gw-muted); padding-bottom: 10px;
}

/* Transfer form */
.gw-modal__transfer-grid {
  display: flex; flex-direction: column; gap: 14px;
}

/* ========== Spend & Transfer wrap panels ========== */
.gend-wallet__spend-wrap,
.gend-wallet__transfer-wrap { max-width: 640px; margin: 0 auto; }

.gend-wallet__spend-block,
.gend-wallet__transfer-block {
  background: var(--gw-surface);
  border: 1px solid var(--gw-border);
  border-radius: var(--gw-radius);
  margin-bottom: 12px;
  overflow: hidden;
}

.gend-wallet__spend-header,
.gend-wallet__transfer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
  flex-wrap: wrap;
}

/* ========== Exchange Tab Blocks (standalone tab) ========== */
.gend-wallet__exchange-wrap { max-width: 100%; }
.gend-wallet__exchange-block {
  background: var(--gw-surface);
  border: 1px solid var(--gw-border);
  border-radius: var(--gw-radius);
  margin-bottom: 12px;
  overflow: hidden;
  transition: border-color var(--gw-ease);
}
.gend-wallet__exchange-block.is-open { border-color: rgba(182,8,201,0.35); }
.gend-wallet__exchange-header {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 16px 20px; flex-wrap: wrap;
}
.gend-wallet__exchange-type { font-weight: 700; font-size: 0.9375rem; color: var(--gw-text); }
.gend-wallet__exchange-balance { font-size: 0.8125rem; color: var(--gw-muted); margin-left: auto; }
.gend-wallet__exchange-toggle {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 16px; background: var(--gw-accent); color: #fff;
  border: none; border-radius: var(--gw-radius-sm);
  font-size: 0.8125rem; font-weight: 600; cursor: pointer;
  transition: background var(--gw-ease); white-space: nowrap;
}
.gend-wallet__exchange-toggle:hover { background: var(--gw-accent-hover); }
.gend-wallet__exchange-toggle-icon { transition: transform var(--gw-ease); }
.gend-wallet__exchange-toggle[aria-expanded="true"] .gend-wallet__exchange-toggle-icon { transform: rotate(180deg); }
.gend-wallet__exchange-form-wrap { border-top: 1px solid var(--gw-border); padding: 20px; }
.gend-wallet__exchange-fields {
  display: grid; grid-template-columns: 1fr 40px 1fr; gap: 10px;
  align-items: end; margin-bottom: 16px;
}
.gend-wallet__exchange-arrow { display: flex; align-items: center; justify-content: center; color: var(--gw-muted); padding-bottom: 10px; }
.gend-wallet__exchange-message {
  padding: 10px 14px; border-radius: var(--gw-radius-sm);
  font-size: 0.875rem; margin-bottom: 12px;
}
.gend-wallet__exchange-message.is-success { background: rgba(63,185,80,0.12); color: var(--gw-positive); border: 1px solid rgba(63,185,80,0.25); }
.gend-wallet__exchange-message.is-error   { background: rgba(248,81,73,0.12); color: var(--gw-negative); border: 1px solid rgba(248,81,73,0.25); }
.gend-wallet__exchange-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ========== Withdraw Tab ========== */
.gend-wallet__withdraw-wrap { max-width: 540px; margin: 0 auto; }
.gend-wallet__withdraw-notice {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 14px 16px; background: rgba(182,8,201,0.08);
  border: 1px solid rgba(182,8,201,0.2); border-radius: var(--gw-radius-sm);
  margin-bottom: 20px; color: var(--gw-muted); font-size: 0.875rem;
}
.gend-wallet__withdraw-notice p { margin: 0; line-height: 1.5; }
.gend-wallet__withdraw-notice svg { flex-shrink: 0; margin-top: 2px; color: var(--gw-accent); }
.gend-wallet__withdraw-message { padding: 12px 16px; border-radius: var(--gw-radius-sm); margin-bottom: 16px; font-size: 0.875rem; }
.gend-wallet__withdraw-message.is-success { background: rgba(63,185,80,0.12); color: var(--gw-positive); border: 1px solid rgba(63,185,80,0.25); }
.gend-wallet__withdraw-message.is-error   { background: rgba(248,81,73,0.12); color: var(--gw-negative); border: 1px solid rgba(248,81,73,0.25); }
.gend-wallet__withdraw-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ========== Forms ========== */
.gend-wallet__field { margin-bottom: 18px; }
.gend-wallet__field label {
  display: block; font-size: 0.75rem; font-weight: 600;
  color: var(--gw-muted); margin-bottom: 6px;
  text-transform: uppercase; letter-spacing: 0.05em;
}
.gend-wallet__input,
.gend-wallet__select,
.gend-wallet__textarea {
  width: 100%; background: rgba(255,255,255,0.05);
  border: 1px solid var(--gw-border); border-radius: var(--gw-radius-sm);
  padding: 10px 14px; color: var(--gw-text); font-size: 0.9375rem;
  transition: border-color var(--gw-ease), box-shadow var(--gw-ease);
  outline: none; box-sizing: border-box; appearance: auto;
}
.gend-wallet__input:focus,
.gend-wallet__select:focus,
.gend-wallet__textarea:focus { border-color: var(--gw-accent); box-shadow: 0 0 0 3px rgba(182,8,201,0.15); }
.gend-wallet__textarea { resize: vertical; min-height: 80px; }
.gend-wallet__field-hint { display: block; font-size: 0.75rem; color: var(--gw-muted); margin-top: 5px; }

/* ========== Result message (shared) ========== */
.gw-result {
  display: none; padding: 12px 16px; border-radius: var(--gw-radius-sm);
  margin-bottom: 14px; font-size: 0.875rem; line-height: 1.5;
}
.gw-result--show   { display: block; }
.gw-result--success { background: rgba(63,185,80,0.12); color: var(--gw-positive); border: 1px solid rgba(63,185,80,0.25); }
.gw-result--error   { background: rgba(248,81,73,0.12); color: var(--gw-negative); border: 1px solid rgba(248,81,73,0.25); }

/* ========== Buttons ========== */
.gend-wallet__btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 22px; border-radius: var(--gw-radius-sm);
  font-size: 0.875rem; font-weight: 700; cursor: pointer;
  transition: background var(--gw-ease), box-shadow var(--gw-ease), opacity var(--gw-ease);
  border: none; outline: none; white-space: nowrap;
}
.gend-wallet__btn--primary { background: var(--gw-accent); color: #fff; }
.gend-wallet__btn--primary:hover { background: var(--gw-accent-hover); box-shadow: 0 4px 14px rgba(182,8,201,0.3); }
.gend-wallet__btn--secondary { background: rgba(255,255,255,0.07); color: var(--gw-text); border: 1px solid var(--gw-border); }
.gend-wallet__btn--secondary:hover { background: rgba(255,255,255,0.12); }
.gend-wallet__btn--paypal { background: #003087; color: #fff; }
.gend-wallet__btn--paypal:hover { background: #001f60; box-shadow: 0 4px 14px rgba(0,48,135,0.4); }
.gend-wallet__btn:disabled,
.gend-wallet__btn.is-processing { opacity: 0.55; cursor: not-allowed; pointer-events: none; }

/* ========== Table ========== */
.gend-wallet__table-wrap { overflow-x: auto; border-radius: var(--gw-radius-sm); border: 1px solid var(--gw-border); }
.gend-wallet__table { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
.gend-wallet__table th {
  background: rgba(255,255,255,0.03); padding: 12px 16px; text-align: left;
  font-weight: 600; color: var(--gw-muted); font-size: 0.75rem;
  text-transform: uppercase; letter-spacing: 0.06em;
  border-bottom: 1px solid var(--gw-border); white-space: nowrap;
}
.gend-wallet__table td { padding: 12px 16px; border-bottom: 1px solid var(--gw-border); color: var(--gw-text); vertical-align: middle; }
.gend-wallet__table tr:last-child td { border-bottom: none; }
.gend-wallet__table tr:hover td { background: rgba(255,255,255,0.02); }
.gend-wallet__table-image img { width: 48px; height: 48px; object-fit: cover; border-radius: 8px; border: 1px solid var(--gw-border); }
.gend-wallet__amount.is-positive { color: var(--gw-positive); font-weight: 600; }
.gend-wallet__amount.is-negative { color: var(--gw-negative); font-weight: 600; }

/* ========== History ========== */
.gend-wallet__history-filter { margin-bottom: 16px; }
.gend-wallet__history-wrap .gend-wallet__select { max-width: 280px; }

/* ========== Attached Images ========== */
.gend-wallet__attached-images { margin-top: 32px; }
.gend-wallet__attached-images .gend-wallet__section-title { margin-bottom: 16px; }

/* ========== Empty / Login ========== */
.gend-wallet__empty { padding: 32px 0; text-align: center; color: var(--gw-muted); font-size: 0.9375rem; }
.gend-wallet__login-notice { padding: 20px; text-align: center; color: var(--gw-muted); }

/* ========== Responsive ========== */
@media (max-width: 860px) {
  .gend-wallet__card-inner {
    grid-template-columns: auto 1fr 1fr;
  }
  .gend-wallet__card-left { border-right: none; padding-right: 0; border-bottom: 1px solid var(--gw-border); padding-bottom: 16px; grid-column: span 2; }
  .gend-wallet__card-middle { border-right: 1px solid var(--gw-border); padding-right: 20px; }
  .gend-wallet__card-actions { border-left: none; padding-left: 0; min-width: 0; }
}

@media (max-width: 560px) {
  .gend-wallet__card-inner { grid-template-columns: auto 1fr; padding: 16px; gap: 16px; }
  .gend-wallet__card-icon { margin-right: 0; }
  .gend-wallet__card-left { border-bottom: 1px solid var(--gw-border); padding-bottom: 14px; margin-bottom: 14px; grid-column: auto; }
  .gend-wallet__card-middle { border-right: none; border-bottom: 1px solid var(--gw-border); padding: 0 0 14px; margin-bottom: 14px; grid-column: span 2; }
  .gend-wallet__card-actions { grid-template-columns: 1fr 1fr; border-left: none; padding-left: 0; grid-column: span 2; }
  .gend-wallet__balance-value { font-size: 1.75rem; }
  .gw-modal__exchange-grid { grid-template-columns: 1fr; }
  .gw-modal__exchange-arrow { display: none; }
}

/* ==========================================================================
   Wallet Hero Sections  — Tab Header & Per-Tab Banners
   ========================================================================== */

/* Shared hero token overrides */
:root {
  --vault-blue: #89C2E0;
  --verify-emerald: #00ff88;
  --exchange-cyan: #00f2ff;
  --transfer-indigo: #6366f1;
  --spend-magenta: #b608c9;
  --utility-gold: #ffcc00;
  --paypal-blue: #0070ba;
  --audit-cyan: #00d2ff;
  --audit-silver: #94a3b8;
  --settle-slate: #cbd5e1;
  --obsidian: #0b0e14;
  --gw-hero-glass: rgba(11, 14, 20, 0.45);
  --gw-hero-border: rgba(255, 255, 255, 0.15);
}

/* ---- Base hero section ---- */
.gw-hero {
  position: relative;
  width: 100%;
  padding: 40px 20px !important;
  min-height: auto !important;
  font-family: 'Inter', -apple-system, sans-serif !important;
  color: #fff !important;
  background-color: var(--obsidian) !important;
  display: flex !important;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  perspective: 2000px;
  margin-bottom: 32px;
  border-radius: 20px;
}

/* Background engine layers */
.wallet-dash-bg, .economy-bg-engine, .exchange-bg-engine,
.transfer-bg-engine, .redemption-bg-engine, .liquidate-bg-engine,
.audit-bg-engine {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  border-radius: inherit;
}

.wallet-dash-bg {
  background: radial-gradient(circle at 20% 20%, rgba(255,255,255,0.05) 0%, transparent 40%),
              radial-gradient(circle at 80% 80%, rgba(0,122,255,0.05) 0%, transparent 40%);
}
.economy-bg-engine {
  background: radial-gradient(circle at 50% 50%, rgba(0,255,136,0.04) 0%, transparent 70%);
}
.exchange-bg-engine {
  background: radial-gradient(circle at 10% 10%, rgba(0,242,255,0.06) 0%, transparent 45%),
              radial-gradient(circle at 90% 90%, rgba(137,194,224,0.04) 0%, transparent 45%);
}
.transfer-bg-engine {
  background: radial-gradient(circle at 50% 10%, rgba(99,102,241,0.05) 0%, transparent 50%),
              radial-gradient(circle at 50% 90%, rgba(137,194,224,0.03) 0%, transparent 50%);
}
.redemption-bg-engine {
  background: radial-gradient(circle at 80% 80%, rgba(182,8,201,0.06) 0%, transparent 50%),
              radial-gradient(circle at 20% 20%, rgba(255,204,0,0.03) 0%, transparent 40%);
}
.liquidate-bg-engine {
  background: radial-gradient(circle at 30% 70%, rgba(0,112,186,0.05) 0%, transparent 50%),
              radial-gradient(circle at 70% 30%, rgba(137,194,224,0.03) 0%, transparent 40%);
}
.audit-bg-engine {
  background:
    linear-gradient(rgba(0,210,255,0.03) 1px, transparent 1px) 0 0 / 50px 50px,
    linear-gradient(90deg, rgba(0,210,255,0.03) 1px, transparent 1px) 0 0 / 50px 50px,
    radial-gradient(circle at center, rgba(137,194,224,0.05) 0%, transparent 70%);
}

/* ---- Hero glass card ---- */
.gw-hero-card {
  position: relative;
  z-index: 5;
  max-width: 960px;
  width: 100%;
  background: var(--gw-hero-glass) !important;
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid var(--gw-hero-border);
  border-radius: 32px;
  padding: 56px 48px;
  text-align: center;
  box-shadow: 0 32px 80px rgba(0,0,0,0.55);
  transform-style: preserve-3d;
  transition: transform 0.1s ease-out;
  animation: gwHeroIn 1.2s cubic-bezier(0.23,1,0.32,1) forwards;
}

@keyframes gwHeroIn {
  0%   { opacity: 0; transform: scale(0.95) translateY(30px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}

/* Page header hero card is slightly taller */
.wallet-dash-card { padding: 72px 56px; }

.woocommerce-account .gw-hero-card h1,
.gw-hero-card h1 {
  font-family: 'Inter', -apple-system, sans-serif !important;
  font-size: clamp(2rem, 4.5vw, 3.6rem) !important;
  font-weight: 950 !important;
  color: #fff !important;
  text-transform: uppercase !important;
  letter-spacing: -2px !important;
  line-height: 0.95 !important;
  margin: 0 0 24px !important;
  transform: translateZ(60px);
  text-shadow: none !important;
  -webkit-text-stroke: 0 !important;
  -webkit-text-stroke: 0 !important;
}

.woocommerce-account .gw-hero-card h2,
.gw-hero-card h2 {
  font-family: 'Inter', -apple-system, sans-serif !important;
  font-size: clamp(1.8rem, 4vw, 3.2rem) !important;
  font-weight: 950 !important;
  color: #fff !important;
  text-transform: uppercase !important;
  letter-spacing: -2px !important;
  line-height: 0.95 !important;
  margin: 0 0 20px !important;
  transform: translateZ(60px);
  text-shadow: none !important;
  -webkit-text-stroke: 0 !important;
  -webkit-text-stroke: 0 !important;
}

.woocommerce-account .gw-hero-card p,
.gw-hero-card p {
  font-family: 'Inter', -apple-system, sans-serif !important;
  font-size: 1.15rem !important;
  color: rgba(255,255,255,0.85) !important;
  line-height: 1.65 !important;
  max-width: 800px;
  margin: 0 auto 32px !important;
  font-weight: 400 !important;
  transform: translateZ(40px);
}

/* ---- Badges ---- */
.ledger-badge, .verify-badge, .settlement-badge,
.transfer-badge, .utility-badge, .processing-badge, .sync-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 22px;
  border-radius: 100px;
  margin-bottom: 28px;
  font-family: monospace;
  font-weight: 800;
  font-size: 0.72rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  transform: translateZ(30px);
}

.ledger-badge  { background: rgba(255,255,255,0.05); border: 1px solid var(--vault-blue);      color: var(--vault-blue); }
.verify-badge  { background: rgba(0,255,136,0.08);   border: 1px solid var(--verify-emerald);   color: var(--verify-emerald); }
.settlement-badge { background: rgba(0,242,255,0.08); border: 1px solid var(--exchange-cyan);    color: var(--exchange-cyan); }
.transfer-badge   { background: rgba(99,102,241,0.1); border: 1px solid var(--transfer-indigo);  color: var(--transfer-indigo); }
.utility-badge    { background: rgba(182,8,201,0.1);  border: 1px solid var(--spend-magenta);    color: var(--spend-magenta); }
.processing-badge { background: rgba(0,112,186,0.1);  border: 1px solid var(--paypal-blue);      color: var(--paypal-blue); }
.sync-badge       { background: rgba(0,210,255,0.1);  border: 1px solid var(--audit-cyan);       color: var(--audit-cyan); }

/* ---- Animated badge elements ---- */
.ledger-dot, .check-dot, .node-flow-dot {
  width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0;
}
.ledger-dot  { background: var(--vault-blue);    box-shadow: 0 0 14px var(--vault-blue);    animation: gwDotPulse 2s infinite; }
.check-dot   { background: var(--verify-emerald); box-shadow: 0 0 12px var(--verify-emerald); animation: gwDotPulse 2s infinite; }
.node-flow-dot { background: var(--transfer-indigo); box-shadow: 0 0 12px var(--transfer-indigo); animation: gwDotPulse 2s infinite; }

@keyframes gwDotPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.45; transform: scale(1.4); }
}

.flux-arrow   { display: inline-block; font-size: 1rem; animation: gwFluxShift 1.5s infinite ease-in-out; }
@keyframes gwFluxShift {
  0%, 100% { transform: translateX(0); opacity: 1; }
  50%       { transform: translateX(5px); opacity: 0.4; }
}

.utility-icon { font-size: 0.9rem; animation: gwRocketPulse 2s infinite ease-in-out; }
@keyframes gwRocketPulse {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50%       { transform: translateY(-3px); opacity: 0.7; }
}

.check-icon   { font-size: 0.9rem; animation: gwCheckGlow 2s infinite ease-in-out; }
@keyframes gwCheckGlow {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.6; transform: scale(1.1); }
}

.record-spinner {
  width: 10px; height: 10px;
  border: 2px solid var(--audit-cyan);
  border-top-color: transparent;
  border-radius: 50%;
  animation: gwSpin 1s linear infinite;
}
@keyframes gwSpin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

/* ---- Status footers ---- */
.wallet-meta-footer, .economy-status-footer, .exchange-status-footer,
.transfer-status-footer, .redemption-status-footer,
.liquidate-status-footer, .audit-status-footer {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 28px;
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-family: monospace;
  font-size: 0.7rem;
  letter-spacing: 2px;
  opacity: 0.75;
  transform: translateZ(20px);
}

.wallet-meta-footer, .economy-status-footer, .exchange-status-footer,
.transfer-status-footer, .liquidate-status-footer, .audit-status-footer { color: var(--vault-blue); }
.redemption-status-footer { color: var(--vault-blue); }

.meta-item::before       { content: '◈'; margin-right: 8px;  color: var(--vault-blue); }
.econ-item::before       { content: '✔'; margin-right: 8px;  color: var(--verify-emerald); }
.exchange-item::before   { content: '⇄'; margin-right: 8px;  color: var(--exchange-cyan); }
.transfer-item::before   { content: '◈'; margin-right: 8px;  color: var(--transfer-indigo); }
.redemption-item::before { content: '✦'; margin-right: 8px;  color: var(--spend-magenta); }
.liquidate-item::before  { content: '◈'; margin-right: 8px;  color: var(--paypal-blue); }
.audit-item::before      { content: '#'; margin-right: 8px;  color: var(--audit-cyan); }

/* ---- Payout note (withdraw) ---- */
.payout-note {
  display: inline-block;
  background: rgba(255,255,255,0.05);
  border-left: 3px solid var(--paypal-blue);
  padding: 12px 22px;
  border-radius: 8px;
  font-size: 0.95rem;
  color: var(--settle-slate);
  margin-bottom: 32px;
  transform: translateZ(30px);
  text-align: left;
}
.payout-note strong { color: #fff; }

/* ---- Responsive ---- */
@media (max-width: 768px) {
  .gw-hero-card { padding: 38px 22px; }
  .wallet-dash-card { padding: 44px 24px; }
  .wallet-meta-footer, .economy-status-footer, .exchange-status-footer,
  .transfer-status-footer, .redemption-status-footer,
  .liquidate-status-footer, .audit-status-footer { flex-direction: column; gap: 10px; align-items: center; }
  .gw-hero-card h1 { font-size: 2rem; }
  .gw-hero-card h2 { font-size: 1.75rem; }
}

/* DGEN withdrawal balance readout (Withdraw tab) */
.gend-wallet__balance-readout {
  font-size: 1.4rem;
  font-weight: 700;
  color: #00d2ff;
  padding: 6px 0 2px;
  font-family: ui-monospace, SFMono-Regular, monospace;
}

/* Form-control contrast. The wallet panels render on the (light) My
   Account page, but the base control color is the dark-theme near-white
   (--gw-text #e6edf3) — so typed text and the <select> value were
   invisible white-on-white, and the native option popup was unreadable.
   Force dark-on-white for the controls + their options so they read on
   any background. */
.gend-wallet__input,
.gend-wallet__select,
.gend-wallet__textarea {
  background: #ffffff;
  color: #0b1220;
}
.gend-wallet__input::placeholder,
.gend-wallet__textarea::placeholder { color: #6b7280; }
.gend-wallet__select option { color: #0b1220; background: #ffffff; }

/* ── GenD single-view wallet ──────────────────────────────────────────────
   Drop the top tab nav and present only the overview: the point cards (each
   with its Exchange/Transfer/Withdraw/Spend/History action popup) on top, and
   the "Control Center" hero moved to the bottom. The other tabs' functionality
   lives entirely in the per-card modals. */
.gend-wallet__tabs { display: none !important; }
#gwp-overview { display: flex !important; flex-direction: column; }
#gwp-overview .gend-wallet__balances { order: 1; }
#gwp-overview .gw-hero,
#gwp-overview #economy-nexus,
#gwp-overview .economy-control-section { order: 2; margin-top: 26px; }

/* ── Action-modal pane hero (the ORIGINAL tab-section header cloned in) ──────── */
/* Keep widths bounded so nothing forces the modal wider, but DON'T set
   overflow-x on these inner blocks — overflow-x:hidden makes overflow-y compute
   to auto and spawns an inner vertical scrollbar. The .gw-modal scroller (with
   overflow-x:hidden) is the single place horizontal overflow is clipped. */
.gw-modal__pane-hero { margin: 0 0 20px; max-width: 100%; }
.gw-modal__pane-hero * { max-width: 100%; box-sizing: border-box; }
.gw-modal__body, .gw-modal__pane, .gw-modal__pane-body { max-width: 100%; }

/* ── Cinematic scroll-reveal — wallet cards/hero + modal sections ──────────── */
.gw-reveal {
  opacity: 0;
  transform: translateY(30px) scale(0.985);
  transition: opacity 0.7s cubic-bezier(0.16,1,0.3,1),
              transform 0.7s cubic-bezier(0.16,1,0.3,1);
  will-change: opacity, transform;
}
.gw-reveal.gw-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .gw-reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* Popup: point name sits in the balance strip (left of the balance); no separate header row */
.gw-modal__balance-banner { margin-top: 20px; flex-wrap: wrap; }
.gw-modal__balance-name { margin: 0; font-size: 1.25rem; font-weight: 800; color: var(--gw-text); line-height: 1.2; max-width: 40%; }
.gw-modal__balance-banner .gw-modal__close { margin-left: auto; align-self: flex-start; }
@media (max-width: 560px) { .gw-modal__balance-name { max-width: none; flex-basis: calc(100% - 50px); } .gw-modal__balance-banner > .gw-modal__balance-sep:first-of-type { display: none; } }

/* Buy tab */
.gw-buy { display: flex; gap: 20px; align-items: flex-start; flex-wrap: wrap; }
.gw-buy__media { flex: 0 0 180px; max-width: 100%; }
.gw-buy__media img { width: 100%; height: auto; border-radius: 14px; border: 1px solid var(--gw-border); display: block; }
.gw-buy__info { flex: 1 1 260px; min-width: 0; }
.gw-buy__name { margin: 0 0 6px; font-size: 1.2rem; color: var(--gw-text); font-family: inherit; letter-spacing: normal; }
.gw-buy__price { font-size: 1.15rem; font-weight: 800; color: var(--gw-text); margin-bottom: 6px; }
.gw-buy__gets { font-size: .85rem; color: var(--gw-positive); margin-bottom: 10px; }
.gw-buy__short, .gw-buy__desc { color: var(--gw-muted); line-height: 1.6; font-size: .92rem; }
.gw-buy__desc { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--gw-border); }
.gw-buy__desc img { max-width: 100%; height: auto; }
.gw-buy__form { margin-top: 12px; }
.gw-buy__row { display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap; }
.gw-buy__options { border: 0; padding: 0; margin: 0 0 14px; display: grid; gap: 8px; }
.gw-buy__options legend { font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--gw-muted); margin-bottom: 6px; padding: 0; }
.gw-buy__option { display: grid; grid-template-columns: auto 1fr auto; grid-template-areas: "r n p" "r g p"; align-items: center; column-gap: 12px; padding: 10px 14px; border-radius: 12px; border: 1px solid var(--gw-border); background: rgba(255,255,255,.03); cursor: pointer; }
.gw-buy__option:has(input:checked) { border-color: var(--gw-accent); box-shadow: 0 0 0 1px var(--gw-accent) inset; }
.gw-buy__option input { grid-area: r; }
.gw-buy__option-name { grid-area: n; color: var(--gw-text); font-weight: 600; }
.gw-buy__option-gets { grid-area: g; color: var(--gw-positive); font-size: .82rem; }
.gw-buy__option-price { grid-area: p; color: var(--gw-text); font-weight: 700; text-align: right; }
.gw-buy__qty { display: flex; flex-direction: column; gap: 4px; font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--gw-muted); }
.gw-buy__qty input { width: 96px; }

/* Transfer: invite + member search */
.gw-invite-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 12px 16px; margin-bottom: 16px; border-radius: 14px; border: 1px dashed rgba(182,8,201,.45); background: rgba(182,8,201,.08); color: var(--gw-muted); font-size: .9rem; }
.gw-user-pick { position: relative; }
.gw-user-pick__results { position: absolute; z-index: 20; left: 0; right: 0; top: 100%; margin: 6px 0 0; padding: 6px; list-style: none; max-height: 320px; overflow-y: auto; border-radius: 14px; border: 1px solid var(--gw-border); background: #0f1420; box-shadow: 0 18px 40px rgba(0,0,0,.5); }
.gw-user-pick__results[hidden], .gw-user-pick__chosen[hidden], .gw-user-pick__q[hidden] { display: none !important; }
.gw-user-pick__item { border-radius: 10px; cursor: pointer; }
.gw-user-pick__item:hover, .gw-user-pick__item:focus { background: rgba(182,8,201,.16); outline: none; }
.gw-user-pick__note { padding: 10px 12px; color: var(--gw-muted); font-size: .85rem; }
.gw-user-row { display: flex; align-items: center; gap: 12px; padding: 8px 10px; }
.gw-user-row img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex: 0 0 40px; background: rgba(255,255,255,.08); }
.gw-user-row__meta { display: flex; flex-direction: column; min-width: 0; flex: 1 1 auto; }
.gw-user-row__meta b { color: var(--gw-text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gw-user-row__meta small { color: var(--gw-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gw-user-pick__chosen { border-radius: 14px; border: 1px solid var(--gw-accent); background: rgba(182,8,201,.08); }
.gw-user-pick__change { all: unset; cursor: pointer; color: var(--gw-accent) !important; font-weight: 700; font-size: .85rem; padding: 4px 8px; }
.gw-invite-overlay { position: fixed; inset: 0; z-index: 1000060; background: rgba(2,6,23,.78); backdrop-filter: blur(4px); display: flex; align-items: flex-start; justify-content: center; padding: 24px 16px; overflow-y: auto; }
.gw-invite-box { position: relative; width: min(1180px, 100%); border-radius: 20px; border: 1px solid var(--gw-border, rgba(255,255,255,.12)); background: #0b0e14; overflow: hidden; }
.gw-invite-frame { display: block; width: 100%; height: 80vh; border: 0; background: #0b0e14; }
.gw-invite-close { all: unset; position: absolute; top: 10px; right: 12px; z-index: 2; width: 34px; height: 34px; border-radius: 50%; display: flex !important; align-items: center; justify-content: center; cursor: pointer; color: #cbd5e1 !important; background: rgba(255,255,255,.08); }

/* Spend: shop feed */
.gw-shop__intro { color: var(--gw-muted); font-size: .9rem; margin: 0 0 12px; }
.gw-shop__bar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.gw-shop__bar .gw-shop__q { flex: 1 1 240px; }
.gw-shop__bar .gw-shop__cat { flex: 0 1 240px; }
.gw-shop__bar .gw-shop__cat[hidden] { display: none !important; }
.gw-shop__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.gw-shop__card { display: flex; flex-direction: column; border-radius: 16px; border: 1px solid var(--gw-border); background: rgba(255,255,255,.03); overflow: hidden; }
.gw-shop__img img { display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: cover; background: rgba(255,255,255,.05); }
.gw-shop__body { display: flex; flex-direction: column; gap: 6px; padding: 12px 14px 14px; flex: 1 1 auto; }
.gw-shop__name { color: var(--gw-text) !important; font-weight: 700; text-decoration: none !important; line-height: 1.3; }
.gw-shop__price { color: var(--gw-text); font-weight: 700; font-size: .9rem; }
.gw-shop__points { color: var(--gw-positive); font-size: .8rem; }
.gw-shop__actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: auto; padding-top: 8px; }
.gw-shop__actions .gend-wallet__btn { padding: 8px 14px !important; font-size: .82rem !important; text-decoration: none !important; }
.gw-shop__note { color: var(--gw-muted); grid-column: 1 / -1; text-align: center; padding: 18px 0; }
.gw-shop__foot { display: flex; justify-content: center; margin-top: 14px; }
.gw-shop__more[hidden] { display: none !important; }

/* Card stats: Total Earned + Total Circulation side by side */
.gend-wallet__card-middle { display: flex; align-items: center; gap: 0 36px; flex-wrap: wrap; }
.gend-wallet__stat--circulation .gend-wallet__stat-value { color: #67e8f9; }

/* Point list: Total Earned + Total Circulation side by side, centred in the card middle */
.gend-wallet .gend-wallet__card-middle { flex-direction: row !important; flex-wrap: nowrap; justify-content: center; align-items: center; gap: 0 40px; }
.gend-wallet .gend-wallet__card-middle .gend-wallet__stat { align-items: center; text-align: center; min-width: 0; }
@media (max-width: 560px) { .gend-wallet .gend-wallet__card-middle { flex-wrap: wrap; gap: 10px 24px; } }

/* Details tab: the point type's details page, rendered inline (includes/point-type-details-page.php) */
.gw-details { color: var(--gw-text); line-height: 1.65; font-size: .95rem; }
.gw-details__title { margin: 0 0 12px; font-size: 1.2rem; color: var(--gw-text); }
.gw-details__body { color: var(--gw-muted); }
.gw-details__body h1, .gw-details__body h2, .gw-details__body h3, .gw-details__body h4 { color: var(--gw-text); }
.gw-details__body a { color: var(--gw-accent); }
.gw-details__body img, .gw-details__body video, .gw-details__body iframe { max-width: 100%; height: auto; border-radius: 12px; }
.gw-details__body > :first-child { margin-top: 0; }
.gw-details__body .alignwide, .gw-details__body .alignfull { margin-left: 0; margin-right: 0; width: auto; max-width: 100%; }

/* Store rewards held for the refund window (includes/store-reward-holds.php) */
.gend-wallet__pending { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; padding: 3px 10px; border-radius: 999px; font-size: .74rem; font-weight: 600; color: #fbbf24; background: rgba(251, 191, 36, .12); border: 1px solid rgba(251, 191, 36, .35); width: fit-content; cursor: help; }

/* Compact page header: badge + title on one slim row, no intro paragraph */
#wallet-dashboard-nexus.gw-hero { padding: 10px 20px !important; margin-bottom: 14px; }
#wallet-dashboard-nexus .wallet-dash-card { padding: 12px 24px; display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 6px 18px; }
#wallet-dashboard-nexus .wallet-dash-card h1 { font-size: clamp(1.1rem, 2vw, 1.5rem) !important; margin: 0 !important; line-height: 1.2; }
#wallet-dashboard-nexus .wallet-dash-card > p { display: none; }
#wallet-dashboard-nexus .ledger-badge { margin: 0 !important; }

/* Wallet card middle column: short description above the Total Earned / Total Circulation stats */
.gend-wallet .gend-wallet__card-middle.gend-wallet__card-middle--col { flex-direction: column !important; flex-wrap: nowrap; justify-content: center; align-items: center; gap: 10px !important; }
.gend-wallet__card-stats { display: flex; flex-direction: row; justify-content: center; align-items: center; gap: 0 40px; }
@media (max-width: 560px) { .gend-wallet__card-stats { flex-wrap: wrap; gap: 10px 24px; } }
.gend-wallet__card-desc { margin: 0; max-width: 340px; text-align: center; color: var(--gw-muted); font-size: .82rem; line-height: 1.45; }

/* ==========================================================================
   Point type popup: dashboard tabs (Transfer / Withdraw / Spend / Buy / Details)
   ========================================================================== */
.gw-modal__action-tab { position: relative; overflow: hidden; }
.gw-modal__action-tab--active { background: linear-gradient(135deg, var(--gw-accent), var(--gw-accent-2)); box-shadow: 0 6px 20px rgba(182,8,201,0.35); }
.gw-modal__action-tab--active::after { content: ''; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,0.18) 50%, transparent 70%); transform: translateX(-100%); animation: gwTabSheen 3.2s ease-in-out infinite; pointer-events: none; }
@keyframes gwTabSheen { 0%, 55% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }

.gw-dash__grid { display: grid; gap: 16px; align-items: start; }
@media (min-width: 900px) { .gw-dash__grid--2 { grid-template-columns: 1fr 1fr; } }
.gw-dash__card {
  position: relative; padding: 20px 22px 6px; border-radius: 16px; min-width: 0;
  background: linear-gradient(160deg, rgba(255,255,255,0.05), rgba(255,255,255,0.015));
  border: 1px solid var(--gw-border);
  transition: border-color var(--gw-ease), box-shadow var(--gw-ease), transform var(--gw-ease);
}
.gw-dash__card:hover, .gw-dash__card:focus-within { border-color: rgba(182,8,201,0.38); box-shadow: 0 10px 34px rgba(0,0,0,0.35), 0 0 24px rgba(182,8,201,0.08); }
.gw-dash__head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.gw-dash__head h4 { margin: 0; font-size: 1rem; font-weight: 800; color: var(--gw-text); font-family: inherit; letter-spacing: normal; }
.gw-dash__head p { margin: 2px 0 0; font-size: .8rem; color: var(--gw-muted); }
.gw-dash__head p strong { color: var(--gw-positive); }
.gw-dash__chip { flex: 0 0 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; font-weight: 800; font-size: .85rem; color: #fff; background: linear-gradient(135deg, var(--gw-accent), var(--gw-accent-2)); box-shadow: 0 6px 16px rgba(182,8,201,0.35); }
.gw-dash__quick { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.gw-dash__qbtn { padding: 6px 14px; border-radius: 999px; border: 1px solid var(--gw-border); background: rgba(255,255,255,0.04); color: var(--gw-text); font-weight: 700; font-size: .8rem; cursor: pointer; transition: all var(--gw-ease); }
.gw-dash__qbtn:hover { background: rgba(182,8,201,0.18); border-color: rgba(182,8,201,0.5); transform: translateY(-1px); }
.gw-dash__foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 16px; }
.gw-dash__foot .gw-result { flex: 1 1 240px; }
.gw-dash .gw-invite-row { margin-bottom: 14px; }
.gw-dash .gw-user-pick__results { z-index: 30; }

/* Withdraw tab: the DGEN form + history inline (no second popup) */
.gw-wd .aas-chain-modal__balance { margin-bottom: 16px; }
.gw-wd .aas-chain-form { padding-bottom: 14px; }
.gw-wd .aas-chain-submit { justify-self: stretch; width: 100%; }
.gw-wd .aas-chain-history { margin-top: 0; padding-top: 0; border-top: 0; overflow-x: auto; padding-bottom: 14px; }

/* Buy tab: only the product description (checkout forms live inside it) */
.gw-buy__desc--solo { margin: 0 !important; padding: 0 !important; border: 0 !important; }

/* Details tab: content only, no repeated title */
.gw-details__body { color: var(--gw-text); }

/* Spend tab: live shop feed */
.gw-shop--feed .gw-shop__top { position: sticky; top: -20px; z-index: 6; margin: -20px -24px 16px; padding: 16px 24px 12px; background: linear-gradient(180deg, var(--gw-surface) 78%, rgba(22,27,34,0)); }
.gw-shop__intro { display: flex; align-items: center; gap: 10px; color: var(--gw-muted); font-size: .88rem; margin: 0 0 12px; }
.gw-shop__intro strong { color: var(--gw-text); }
.gw-shop__pulse { flex: 0 0 9px; height: 9px; border-radius: 50%; background: var(--gw-positive); box-shadow: 0 0 0 0 rgba(63,185,80,.6); animation: gwShopPulse 1.8s ease-out infinite; }
@keyframes gwShopPulse { 70% { box-shadow: 0 0 0 10px rgba(63,185,80,0); } 100% { box-shadow: 0 0 0 0 rgba(63,185,80,0); } }
.gw-shop__search { display: flex; align-items: center; gap: 10px; flex: 1 1 260px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--gw-border); background: rgba(255,255,255,0.04); color: var(--gw-muted); transition: border-color var(--gw-ease), box-shadow var(--gw-ease); }
.gw-shop__search:focus-within { border-color: var(--gw-accent); box-shadow: 0 0 0 3px rgba(182,8,201,0.15); }
.gw-shop__search input { flex: 1; min-width: 0; background: transparent !important; border: 0 !important; box-shadow: none !important; outline: none; color: var(--gw-text); padding: 11px 0; font-size: .9rem; }
.gw-shop__chips { display: flex; gap: 8px; overflow-x: auto; padding: 12px 0 2px; scrollbar-width: none; }
.gw-shop__chips::-webkit-scrollbar { display: none; }
.gw-shop__chips[hidden] { display: none !important; }
.gw-shop__chip { flex: 0 0 auto; padding: 7px 16px; border-radius: 999px; border: 1px solid var(--gw-border); background: rgba(255,255,255,0.04); color: var(--gw-muted); font-weight: 700; font-size: .8rem; cursor: pointer; transition: all var(--gw-ease); }
.gw-shop__chip:hover { color: var(--gw-text); border-color: rgba(182,8,201,0.4); }
.gw-shop__chip.is-on { color: #fff; border-color: transparent; background: linear-gradient(135deg, var(--gw-accent), var(--gw-accent-2)); box-shadow: 0 6px 18px rgba(182,8,201,0.35); }

.gw-shop--feed .gw-shop__grid { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 18px; }
.gw-shop--feed .gw-shop__card { position: relative; border-radius: 18px; background: linear-gradient(170deg, rgba(255,255,255,0.06), rgba(255,255,255,0.015)); transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease; animation: gwShopIn .5s cubic-bezier(.16,1,.3,1) both; animation-delay: calc(var(--i, 0) * 45ms); }
@keyframes gwShopIn { from { opacity: 0; transform: translateY(14px) scale(.97); } to { opacity: 1; transform: none; } }
.gw-shop--feed .gw-shop__card:hover { transform: translateY(-5px); border-color: rgba(182,8,201,0.5); box-shadow: 0 16px 40px rgba(0,0,0,0.5), 0 0 28px rgba(182,8,201,0.18); }
.gw-shop--feed .gw-shop__img { position: relative; display: block; overflow: hidden; }
.gw-shop--feed .gw-shop__img img { transition: transform .5s ease; }
.gw-shop--feed .gw-shop__card:hover .gw-shop__img img { transform: scale(1.07); }
.gw-shop__tag { position: absolute; left: 10px; bottom: 10px; padding: 4px 11px; border-radius: 999px; font-size: .8rem; font-weight: 800; color: #fff; background: rgba(8,10,14,0.72); border: 1px solid rgba(255,255,255,0.14); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.gw-shop__tag * { color: inherit !important; text-decoration: none; }
.gw-shop__tag del { opacity: .55; margin-right: 4px; }
.gw-shop__points { display: inline-block; align-self: flex-start; padding: 3px 10px; border-radius: 999px; background: rgba(63,185,80,0.12); border: 1px solid rgba(63,185,80,0.3); }
.gw-shop__skel { border-radius: 18px; padding: 0 0 14px; border: 1px solid var(--gw-border); background: rgba(255,255,255,0.03); overflow: hidden; }
.gw-shop__skel i, .gw-shop__skel b { display: block; background: linear-gradient(100deg, rgba(255,255,255,0.04) 30%, rgba(255,255,255,0.11) 50%, rgba(255,255,255,0.04) 70%); background-size: 220% 100%; animation: gwShopSkel 1.3s linear infinite; }
.gw-shop__skel i { aspect-ratio: 1 / 1; }
.gw-shop__skel b { height: 12px; margin: 12px 14px 0; border-radius: 6px; }
.gw-shop__skel b + b { width: 55%; }
@keyframes gwShopSkel { to { background-position: -220% 0; } }
.gw-shop__sentinel { height: 1px; }
@media (prefers-reduced-motion: reduce) {
  .gw-modal__action-tab--active::after, .gw-shop__pulse, .gw-shop--feed .gw-shop__card, .gw-shop__skel i, .gw-shop__skel b { animation: none !important; }
}

/* Form controls inside the popup stay dark whatever the page theme does */
.gw-modal .gend-wallet__input, .gw-modal .gend-wallet__select, .gw-modal .gend-wallet__textarea { background-color: rgba(11,14,20,0.7); color: var(--gw-text); color-scheme: dark; }

/* ==========================================================================
   Glass dashboard shell + staggered "builds itself" entrance
   ========================================================================== */
.gw-modal-backdrop {
  background:
    radial-gradient(1200px 700px at 12% 8%, rgba(182,8,201,0.20), transparent 60%),
    radial-gradient(1000px 640px at 92% 92%, rgba(56,139,253,0.16), transparent 60%),
    rgba(3,5,10,0.74);
  -webkit-backdrop-filter: blur(20px) saturate(135%);
  backdrop-filter: blur(20px) saturate(135%);
  overflow: hidden;
}
.gw-aurora { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.gw-aurora i { position: absolute; width: 46vmax; height: 46vmax; border-radius: 50%; filter: blur(90px); opacity: .5; animation: gwAurora 22s ease-in-out infinite alternate; }
.gw-aurora i:nth-child(1) { left: -12vmax; top: -14vmax; background: rgba(182,8,201,0.55); }
.gw-aurora i:nth-child(2) { right: -14vmax; bottom: -16vmax; background: rgba(56,139,253,0.45); animation-duration: 28s; }
.gw-aurora i:nth-child(3) { left: 38%; top: 46%; width: 30vmax; height: 30vmax; background: rgba(124,58,237,0.38); animation-duration: 34s; }
@keyframes gwAurora { 0% { transform: translate3d(0,0,0) scale(1); } 100% { transform: translate3d(6vmax,4vmax,0) scale(1.18); } }

.gw-modal {
  position: relative; z-index: 1;
  border-radius: 26px;
  background: linear-gradient(150deg, rgba(34,40,60,0.58), rgba(12,15,24,0.74));
  -webkit-backdrop-filter: blur(34px) saturate(170%);
  backdrop-filter: blur(34px) saturate(170%);
  border: 1px solid rgba(255,255,255,0.14);
  box-shadow: 0 50px 140px rgba(0,0,0,0.68), 0 0 0 1px rgba(255,255,255,0.03), inset 0 1px 0 rgba(255,255,255,0.20), inset 0 -1px 0 rgba(0,0,0,0.4);
  animation: gwGlassIn .8s cubic-bezier(.16,1,.3,1) both;
  scrollbar-width: thin; scrollbar-color: rgba(255,255,255,0.18) transparent;
}
@keyframes gwGlassIn { from { opacity: 0; transform: translateY(26px) scale(.965); filter: blur(12px); } to { opacity: 1; transform: none; filter: none; } }
.gw-modal__top-bar { height: 2px; background: linear-gradient(90deg, transparent, var(--gw-accent), #5aa9ff, var(--gw-accent-2), transparent); background-size: 200% 100%; animation: gwBarSweep 5s linear infinite; border-radius: 0; }
@keyframes gwBarSweep { to { background-position: -200% 0; } }

/* chrome entrance */
.gw-modal__balance-banner, .gw-modal__action-tab, .gw-modal__trust { animation: gwBuildIn .8s cubic-bezier(.16,1,.3,1) both; }
.gw-modal__balance-banner { animation-delay: .10s; background: linear-gradient(135deg, rgba(255,255,255,0.07), rgba(255,255,255,0.02)); border: 1px solid rgba(255,255,255,0.10); box-shadow: inset 0 1px 0 rgba(255,255,255,0.10); }
.gw-modal__action-tab { animation-delay: calc(.22s + var(--t, 0) * 55ms); background: rgba(255,255,255,0.03); border-color: rgba(255,255,255,0.09); }
.gw-modal__action-tab:nth-child(1) { --t: 0; } .gw-modal__action-tab:nth-child(2) { --t: 1; } .gw-modal__action-tab:nth-child(3) { --t: 2; }
.gw-modal__action-tab:nth-child(4) { --t: 3; } .gw-modal__action-tab:nth-child(5) { --t: 4; } .gw-modal__action-tab:nth-child(6) { --t: 5; } .gw-modal__action-tab:nth-child(7) { --t: 6; }
.gw-modal__trust { animation-delay: 1.1s; display: flex; align-items: center; justify-content: center; gap: 8px; margin: 0 24px; padding: 14px 0 18px; border-top: 1px solid rgba(255,255,255,0.08); font-size: .74rem; letter-spacing: .04em; color: var(--gw-muted); }
.gw-modal__trust svg { color: var(--gw-positive); }

/* content entrance: blocks in sequence, then their contents */
@keyframes gwBuildIn { from { opacity: 0; transform: translateY(16px) scale(.985); filter: blur(8px); } to { opacity: 1; transform: none; filter: none; } }
.gw-modal__pane-body.gw-reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
.gw-modal__pane.gw-build .gw-s { animation: gwBuildIn .75s cubic-bezier(.16,1,.3,1) both; animation-delay: calc(.38s + var(--gw-i, 0) * 120ms + var(--gw-j, 0) * 55ms); }

/* glass surfaces */
.gw-dash__card {
  background: linear-gradient(155deg, rgba(255,255,255,0.075), rgba(255,255,255,0.02));
  border: 1px solid rgba(255,255,255,0.11);
  border-radius: 20px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.12), 0 12px 40px rgba(0,0,0,0.25);
  overflow: hidden;
}
.gw-dash__card::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.45), transparent); opacity: .5; pointer-events: none; }
.gw-dash__card:hover, .gw-dash__card:focus-within { border-color: rgba(182,8,201,0.45); box-shadow: inset 0 1px 0 rgba(255,255,255,0.16), 0 18px 54px rgba(0,0,0,0.38), 0 0 34px rgba(182,8,201,0.12); }
.gw-dash__card--solo { max-width: 760px; margin: 0 auto; }
.gw-dash__chip { border-radius: 12px; box-shadow: 0 8px 20px rgba(182,8,201,0.4), inset 0 1px 0 rgba(255,255,255,0.3); }
.gw-modal .gend-wallet__input, .gw-modal .gend-wallet__select, .gw-modal .gend-wallet__textarea,
.gw-wd .aas-chain-form input[type="number"], .gw-wd .aas-chain-form input[type="text"], .gw-wd .aas-chain-form input[type="email"], .gw-wd .aas-chain-form select {
  background-color: rgba(255,255,255,0.055) !important; border: 1px solid rgba(255,255,255,0.13) !important; border-radius: 12px !important; color: var(--gw-text) !important;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.25);
}
.gw-modal .gend-wallet__input:focus, .gw-modal .gend-wallet__textarea:focus, .gw-modal .gend-wallet__select:focus,
.gw-wd .aas-chain-form input:focus, .gw-wd .aas-chain-form select:focus { border-color: rgba(182,8,201,0.7) !important; box-shadow: 0 0 0 4px rgba(182,8,201,0.18) !important; }
.gw-modal .gend-wallet__btn--primary, .gw-wd .aas-chain-submit {
  position: relative; overflow: hidden; border: 0 !important; border-radius: 14px !important;
  background: linear-gradient(135deg, #c820d8, #8b2cf0 60%, #5b6cf5) !important; color: #fff !important;
  box-shadow: 0 12px 30px rgba(140,40,240,0.4), inset 0 1px 0 rgba(255,255,255,0.3) !important; transition: transform .2s ease, box-shadow .2s ease;
}
.gw-modal .gend-wallet__btn--primary::after, .gw-wd .aas-chain-submit::after { content: ''; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 35%, rgba(255,255,255,0.28) 50%, transparent 65%); transform: translateX(-120%); transition: transform .7s ease; pointer-events: none; }
.gw-modal .gend-wallet__btn--primary:hover::after, .gw-wd .aas-chain-submit:hover::after { transform: translateX(120%); }
.gw-modal .gend-wallet__btn--primary:hover, .gw-wd .aas-chain-submit:hover { transform: translateY(-2px); box-shadow: 0 18px 40px rgba(140,40,240,0.5), inset 0 1px 0 rgba(255,255,255,0.35) !important; }
.gw-modal .gend-wallet__btn--secondary { background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.14); border-radius: 12px; }
.gw-modal .gend-wallet__table-wrap { border-radius: 18px; background: rgba(255,255,255,0.03); border-color: rgba(255,255,255,0.10); backdrop-filter: blur(6px); }
.gw-modal .gend-wallet__table th { background: rgba(255,255,255,0.04); }
.gw-modal__close { transition: transform .25s ease, background .25s ease, border-color .25s ease; }
.gw-modal__close:hover { transform: rotate(90deg); }

/* Withdraw: payout method + coin tiles with company marks */
.gw-logo { flex: 0 0 34px; width: 34px; height: 34px; display: inline-grid; place-items: center; }
.gw-logo svg { width: 100%; height: 100%; display: block; border-radius: 50%; filter: drop-shadow(0 4px 10px rgba(0,0,0,0.4)); }
.gw-method--paypal .gw-logo svg { border-radius: 10px; }
.gw-logo__stack { display: inline-flex; align-items: center; }
.gw-logo__stack svg { width: 30px; height: 30px; box-shadow: 0 0 0 2px rgba(16,20,30,0.9); }
.gw-logo__stack svg + svg { margin-left: -10px; }
.gw-method.aas-chain-method { flex: 1 1 200px; gap: 12px; padding: 12px 16px; border-radius: 16px; background: rgba(255,255,255,0.045); border: 1px solid rgba(255,255,255,0.12); transition: all .25s ease; cursor: pointer; }
.gw-method.aas-chain-method:hover { background: rgba(255,255,255,0.08); transform: translateY(-1px); }
.gw-method.aas-chain-method:has(input:checked) { background: linear-gradient(135deg, rgba(182,8,201,0.22), rgba(91,108,245,0.14)); border-color: rgba(182,8,201,0.6); box-shadow: 0 10px 28px rgba(140,40,240,0.22); }
.gw-method .gw-logo { flex-basis: auto; width: auto; }
.gw-method--crypto .gw-logo { height: 32px; }
.gw-method.aas-chain-method > span:not(.gw-logo) { font-weight: 700; }
.gw-sr { display: none !important; }
.gw-coins { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; }
.gw-coin { display: flex; align-items: center; gap: 12px; text-align: left; padding: 12px 14px; border-radius: 16px; border: 1px solid rgba(255,255,255,0.12); background: rgba(255,255,255,0.045); color: var(--gw-text); cursor: pointer; position: relative; transition: all .25s ease; font-family: inherit; }
.gw-coin:hover { background: rgba(255,255,255,0.085); transform: translateY(-2px); }
.gw-coin__t { display: flex; flex-direction: column; min-width: 0; }
.gw-coin__t b { font-size: .95rem; color: #fff; }
.gw-coin__t small { color: var(--gw-muted); font-size: .72rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gw-coin.is-on { border-color: rgba(182,8,201,0.65); background: linear-gradient(135deg, rgba(182,8,201,0.22), rgba(91,108,245,0.14)); box-shadow: 0 10px 28px rgba(140,40,240,0.24); }
.gw-coin.is-on::after { content: '\2713'; position: absolute; top: 8px; right: 10px; width: 18px; height: 18px; border-radius: 50%; background: var(--gw-positive); color: #04130a; font-size: .7rem; font-weight: 900; display: grid; place-items: center; }
.gw-wd .aas-chain-modal__balance { border-radius: 16px; background: linear-gradient(135deg, rgba(182,8,201,0.20), rgba(56,139,253,0.10)); border: 1px solid rgba(255,255,255,0.12); box-shadow: inset 0 1px 0 rgba(255,255,255,0.12); }

/* Spend: glass header + cards */
.gw-shop--feed .gw-shop__top { background: linear-gradient(180deg, rgba(14,18,28,0.82) 72%, rgba(14,18,28,0)); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
.gw-shop--feed .gw-shop__card { background: linear-gradient(165deg, rgba(255,255,255,0.075), rgba(255,255,255,0.02)); border-color: rgba(255,255,255,0.11); box-shadow: inset 0 1px 0 rgba(255,255,255,0.10); }

/* Invite popup: same glass */
.gw-invite-overlay { -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); background: rgba(3,5,10,0.6); }
.gw-invite-box { background: linear-gradient(150deg, rgba(34,40,60,0.7), rgba(12,15,24,0.82)); -webkit-backdrop-filter: blur(30px) saturate(160%); backdrop-filter: blur(30px) saturate(160%); border: 1px solid rgba(255,255,255,0.14); border-radius: 24px; box-shadow: 0 50px 140px rgba(0,0,0,0.65), inset 0 1px 0 rgba(255,255,255,0.18); animation: gwGlassIn .7s cubic-bezier(.16,1,.3,1) both; }

@media (max-width: 899px) { .gw-modal { border-radius: 20px; } .gw-modal__trust { margin: 0 16px; } }
@media (prefers-reduced-motion: reduce) {
  .gw-modal, .gw-modal__balance-banner, .gw-modal__action-tab, .gw-modal__trust, .gw-modal__pane.gw-build .gw-s, .gw-aurora i, .gw-modal__top-bar, .gw-invite-box { animation: none !important; }
}
.gw-method.aas-chain-method input { position: absolute; opacity: 0; pointer-events: none; }
.gw-method.aas-chain-method { position: relative; }
.gw-coins { margin-bottom: 16px; }

/* ==========================================================================
   Luxury pass: fixed typography (page themes can't leak serif/mono in), a segmented tab bar that stands out,
   springy "pop" entrances, point-type badge + count-up in the banner
   ========================================================================== */
.gw-modal-backdrop .gw-modal, .gw-modal-backdrop .gw-modal *:not(svg):not(svg *):not(code) {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
  -webkit-font-smoothing: antialiased;
}
.gw-modal-backdrop .gw-modal code, .gw-modal-backdrop .gw-modal .aas-chain-form input[name="wallet_address"] { font-family: "SF Mono", Menlo, Consolas, monospace !important; }
.gw-modal-backdrop .gw-modal h2, .gw-modal-backdrop .gw-modal h3, .gw-modal-backdrop .gw-modal h4 { letter-spacing: -0.01em; text-transform: none; }
.gw-modal-backdrop .gw-modal ::placeholder { font-family: inherit !important; color: rgba(203,213,225,0.45); }

/* Banner */
.gw-modal-backdrop .gw-modal .gw-modal__balance-banner { gap: 18px; padding: 18px 24px; border-radius: 22px; }
.gw-modal__badge { position: relative; flex: 0 0 auto; display: grid; place-items: center; width: 64px; height: 64px; border-radius: 20px; }
.gw-modal__badge::before {
  content: ''; position: absolute; inset: -3px; border-radius: 23px; padding: 2px;
  background: conic-gradient(from var(--gw-ring-angle), #b608c9, #388bfd, #3fb950, #e3b341, #b608c9);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  animation: gwRingSpin 5s linear infinite; opacity: .95; pointer-events: none;
}
.gw-modal__badge .gw-type-logo, .gw-modal__badge .gw-type-svg { width: 58px; height: 58px; border-radius: 17px; margin: 0; }
.gw-modal__badge .gw-type-svg { font-size: 1.7rem; }
.gw-modal-backdrop .gw-modal .gw-modal__balance-num { font-size: 2rem; font-weight: 800; letter-spacing: -0.02em; background: linear-gradient(180deg, #ffffff 20%, #cdbfff); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; font-variant-numeric: tabular-nums; }
.gw-modal-backdrop .gw-modal .gw-modal__balance-earned-num { font-variant-numeric: tabular-nums; font-weight: 800; }
.gw-modal-backdrop .gw-modal .gw-modal__balance-tag, .gw-modal-backdrop .gw-modal .gw-modal__balance-earned-tag { letter-spacing: .12em; font-weight: 700; font-size: .68rem; }
.gw-modal-backdrop .gw-modal .gw-modal__balance-name { font-size: 1.35rem; font-weight: 800; color: #fff; }

/* Segmented tab bar */
.gw-modal-backdrop .gw-modal .gw-modal__action-tabs {
  position: sticky; top: 0; z-index: 8; display: flex; gap: 6px; margin: 16px 24px 4px; padding: 6px; border-radius: 22px;
  background: rgba(6,8,14,0.62); border: 1px solid rgba(255,255,255,0.13);
  box-shadow: inset 0 2px 10px rgba(0,0,0,0.55), 0 1px 0 rgba(255,255,255,0.07), 0 16px 40px rgba(0,0,0,0.35);
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  overflow-x: auto; scrollbar-width: none;
}
.gw-modal-backdrop .gw-modal .gw-modal__action-tabs::-webkit-scrollbar { display: none; }
.gw-modal-backdrop .gw-modal .gw-modal__action-tabs .gw-modal__action-tab {
  flex: 1 1 0; min-width: max-content; min-height: 48px; padding: 0 18px; gap: 9px;
  border-radius: 16px !important; border: 1px solid transparent !important; background: transparent !important;
  color: #b4bfd1 !important; font-size: .88rem; font-weight: 700; letter-spacing: .01em; text-shadow: none;
  box-shadow: none; transition: background .25s ease, color .25s ease, transform .25s ease, box-shadow .3s ease;
}
.gw-modal-backdrop .gw-modal .gw-modal__action-tabs .gw-modal__action-tab svg { width: 15px; height: 15px; opacity: .85; }
.gw-modal-backdrop .gw-modal .gw-modal__action-tabs .gw-modal__action-tab:hover { background: rgba(255,255,255,0.09) !important; color: #fff !important; transform: translateY(-1px); }
.gw-modal-backdrop .gw-modal .gw-modal__action-tabs .gw-modal__action-tab--active,
.gw-modal-backdrop .gw-modal .gw-modal__action-tabs .gw-modal__action-tab--active:hover {
  background: linear-gradient(135deg, #cf22e0 0%, #8b2cf0 55%, #4f7bff 100%) !important; color: #fff !important;
  border-color: rgba(255,255,255,0.22) !important;
  box-shadow: 0 12px 34px rgba(140,40,240,0.6), inset 0 1px 0 rgba(255,255,255,0.4), inset 0 -2px 6px rgba(0,0,0,0.25);
  transform: translateY(0);
}
.gw-modal-backdrop .gw-modal .gw-modal__action-tabs .gw-modal__action-tab--active svg { opacity: 1; filter: drop-shadow(0 0 6px rgba(255,255,255,0.6)); }

/* Springy pops */
@keyframes gwPop {
  0%   { opacity: 0; transform: translateY(26px) scale(.9); filter: blur(10px); }
  55%  { opacity: 1; transform: translateY(-5px) scale(1.012); filter: blur(0); }
  100% { opacity: 1; transform: none; filter: none; }
}
.gw-modal__pane.gw-build .gw-s { animation: gwPop .9s cubic-bezier(.22,1,.36,1) both; animation-delay: calc(.34s + var(--gw-i, 0) * 130ms + var(--gw-j, 0) * 60ms); }
.gw-modal-backdrop .gw-modal .gw-dash__chip { animation: gwPop .8s cubic-bezier(.22,1,.36,1) both; animation-delay: .5s; }
.gw-modal-backdrop .gw-modal .gw-modal__badge { animation: gwPop .9s cubic-bezier(.22,1,.36,1) both; animation-delay: .12s; }
@media (prefers-reduced-motion: reduce) { .gw-modal__badge::before, .gw-modal-backdrop .gw-modal .gw-dash__chip, .gw-modal-backdrop .gw-modal .gw-modal__badge { animation: none !important; } }
@media (max-width: 700px) { .gw-modal-backdrop .gw-modal .gw-modal__action-tabs { margin: 12px 12px 2px; } .gw-modal__badge { width: 52px; height: 52px; } .gw-modal__badge .gw-type-logo, .gw-modal__badge .gw-type-svg { width: 46px; height: 46px; } }
