:root {
  --bg-void: #05060b;
  --glass-bg: rgba(13, 16, 28, 0.76);
  --glass-border: rgba(255, 255, 255, 0.12);
  --text-main: #f5f7ff;
  --text-muted: #939bb8;
  --accent-cyan: #00f0ff;
  --accent-pink: #ff2e93;
  --accent-gold: #ffb800;
  --accent-lime: #b8ff01;
  --supernova-color: #ff5e3a;
  --font-display: 'Syne', 'Space Grotesk', system-ui, sans-serif;
  --font-sans: 'Space Grotesk', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
}

html, body {
  width: 100%;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  background: var(--bg-void);
  color: var(--text-main);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  touch-action: manipulation;
  -webkit-text-size-adjust: 100%;
}

button, a, input, select, canvas {
  touch-action: manipulation;
}

#cosmosCanvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  z-index: 1;
  cursor: grab;
  touch-action: none;
  -webkit-touch-callout: none;
}

#cosmosCanvas:active {
  cursor: grabbing;
}

.cosmos-vignette {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  background: radial-gradient(circle at 50% 50%, transparent 48%, rgba(3, 4, 9, 0.84) 100%);
}

/* TOP HUD */
.top-hud {
  position: fixed;
  top: 14px;
  left: 18px;
  right: 18px;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  pointer-events: none;
}

.top-hud > * {
  pointer-events: auto;
}

.top-hud-brand-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mobile-sfx-btn {
  display: none;
}

.brand-ident {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 9px 15px;
  background: var(--glass-bg);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
  cursor: pointer;
  transition: border-color 0.2s;
}

.brand-ident:hover {
  border-color: var(--accent-cyan);
}

.logo-pulse-ring {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1.5px solid var(--accent-cyan);
  display: grid;
  place-items: center;
  box-shadow: 0 0 16px rgba(0, 240, 255, 0.35);
}

.logo-core {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-pink));
  animation: coreBreath 2s infinite ease-in-out;
}

@keyframes coreBreath {
  0%, 100% { transform: scale(0.9); box-shadow: 0 0 8px var(--accent-cyan); }
  50% { transform: scale(1.25); box-shadow: 0 0 18px var(--accent-pink); }
}

.logo-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.02rem;
  letter-spacing: 0.04em;
}

.logo-title span {
  color: var(--accent-cyan);
}

.logo-sub {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  color: var(--text-muted);
  letter-spacing: 0.06em;
}

/* WARP SEARCH BAR */
.warp-search-wrap {
  position: relative;
  flex: 1;
  max-width: 450px;
  display: flex;
  align-items: center;
  background: rgba(10, 14, 28, 0.86);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(0, 240, 255, 0.28);
  border-radius: 999px;
  padding: 7px 14px;
  gap: 9px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.warp-search-wrap:focus-within {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 24px rgba(0, 240, 255, 0.25);
}

.search-icon {
  font-size: 0.88rem;
}

#warpSearchInput {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  user-select: text;
  -webkit-user-select: text;
}

#warpSearchInput::placeholder {
  color: #7e88ab;
}

.search-kbd {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: var(--accent-cyan);
  background: rgba(0, 240, 255, 0.1);
  border: 1px solid rgba(0, 240, 255, 0.26);
  padding: 2px 7px;
  border-radius: 6px;
}

.warp-results {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: rgba(11, 14, 28, 0.97);
  backdrop-filter: blur(24px);
  border: 1px solid rgba(0, 240, 255, 0.35);
  border-radius: 18px;
  padding: 8px;
  max-height: 320px;
  overflow-y: auto;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.75);
  z-index: 60;
}

.warp-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 12px;
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.15s;
}

.warp-item:hover {
  background: rgba(0, 240, 255, 0.13);
}

.warp-item-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.warp-sym {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 0.78rem;
}

.warp-title {
  font-weight: 700;
  font-size: 0.85rem;
  color: #fff;
}

.warp-meta {
  font-size: 0.68rem;
  color: var(--text-muted);
}

.warp-action-pill {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  color: var(--accent-cyan);
  background: rgba(0, 240, 255, 0.12);
  padding: 4px 8px;
  border-radius: 999px;
}

/* ZOOM BREADCRUMB BAR */
.zoom-breadcrumb-bar {
  position: fixed;
  top: 72px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 22;
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(10, 13, 25, 0.78);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.11);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.74rem;
}

.crumb-active {
  font-weight: 700;
  color: #fff;
}

.crumb-meta {
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.66rem;
}

.zoom-out-btn {
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.22), rgba(0, 128, 255, 0.25));
  border: 1px solid var(--accent-cyan);
  color: #fff;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.72rem;
  padding: 4px 11px;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.15s;
}

.zoom-out-btn:hover {
  transform: scale(1.04);
}

/* HUD CONTROLS */
.hud-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.category-pills {
  display: flex;
  gap: 3px;
  padding: 4px;
  background: var(--glass-bg);
  backdrop-filter: blur(18px);
  border: 1px solid var(--glass-border);
  border-radius: 999px;
}

.cat-pill {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-size: 0.74rem;
  font-weight: 600;
  padding: 6px 11px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.cat-pill:hover {
  color: var(--text-main);
}

.cat-pill.active {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.icon-btn {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  color: var(--text-main);
  padding: 8px 12px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
}

.mobile-sfx-btn {
  display: none;
}

/* CENTER SUPERNOVA / BRAND PLANET CORE */
.supernova-anchor {
  position: fixed;
  top: 52%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 12;
  display: grid;
  place-items: center;
  pointer-events: none;
}

.supernova-orbit-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px dashed rgba(255, 184, 0, 0.24);
  pointer-events: none;
}

.ring-1 {
  width: 210px;
  height: 210px;
  animation: spinSlow 26s linear infinite;
}

.ring-2 {
  width: 270px;
  height: 270px;
  border-color: rgba(0, 240, 255, 0.16);
  animation: spinSlow 40s linear infinite reverse;
}

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

.supernova-core {
  pointer-events: auto;
  touch-action: none;
  -webkit-touch-callout: none;
  position: relative;
  width: 162px;
  height: 162px;
  border-radius: 50%;
  border: none;
  background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.22), rgba(20, 14, 24, 0.93) 65%);
  box-shadow:
    0 0 42px color-mix(in srgb, var(--supernova-color) 55%, transparent),
    inset 0 0 26px color-mix(in srgb, var(--supernova-color) 45%, transparent);
  color: #fff;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 14px;
  text-align: center;
  transition: transform 0.2s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.25s ease;
}

.supernova-core:hover {
  transform: scale(1.06);
}

.supernova-core.charging {
  transform: scale(0.95);
  animation: coreShake 0.12s infinite alternate;
}

@keyframes coreShake {
  from { transform: scale(0.96) translate(-1px, 1px); }
  to { transform: scale(0.98) translate(1px, -1px); }
}

.charge-progress-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
  pointer-events: none;
}

.charge-bg {
  fill: none;
  stroke: rgba(255, 255, 255, 0.14);
  stroke-width: 3.5;
}

.charge-bar {
  fill: none;
  stroke: var(--supernova-color);
  stroke-width: 5;
  stroke-linecap: round;
  stroke-dasharray: 459;
  stroke-dashoffset: 459;
  filter: drop-shadow(0 0 8px var(--supernova-color));
  transition: stroke-dashoffset 0.05s linear;
}

.supernova-badge {
  font-family: var(--font-mono);
  font-size: 0.5rem;
  letter-spacing: 0.07em;
  color: var(--accent-gold);
  background: rgba(255, 184, 0, 0.14);
  border: 1px solid rgba(255, 184, 0, 0.35);
  padding: 2px 7px;
  border-radius: 999px;
  margin-bottom: 5px;
}

.supernova-brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.92rem;
  line-height: 1.15;
  margin-bottom: 4px;
}

.supernova-cta {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(90deg, var(--supernova-color), #ff9900);
  padding: 3px 9px;
  border-radius: 999px;
  margin-bottom: 4px;
}

.supernova-sub {
  font-size: 0.58rem;
  color: #cbd3f0;
}

/* HINT BAR */
.interaction-hint {
  position: fixed;
  bottom: 84px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 15;
  background: rgba(11, 14, 24, 0.82);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 6px 15px;
  border-radius: 999px;
  font-size: 0.72rem;
  color: var(--text-muted);
  pointer-events: none;
  white-space: nowrap;
}

.interaction-hint strong {
  color: #fff;
}

/* BOTTOM DOCK */
.bottom-dock {
  position: fixed;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 25;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 8px;
  background: rgba(12, 15, 28, 0.86);
  backdrop-filter: blur(22px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 20px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.65);
  max-width: calc(100vw - 24px);
}

.dock-btn {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-muted);
  font-family: var(--font-sans);
  padding: 7px 13px;
  border-radius: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.dock-btn:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.dock-btn.active {
  background: rgba(0, 240, 255, 0.12);
  border-color: rgba(0, 240, 255, 0.35);
  color: #fff;
}

.dock-btn-gold {
  background: linear-gradient(135deg, rgba(255, 184, 0, 0.16), rgba(255, 94, 58, 0.16));
  border-color: rgba(255, 184, 0, 0.38);
  color: #ffe7a3;
}

.dock-icon {
  font-size: 1.05rem;
}

.dock-label {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.15;
}

.dock-label small {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  font-weight: 500;
  color: var(--accent-cyan);
}

.dock-btn-gold .dock-label small {
  color: var(--accent-gold);
}

/* POPOVER FOR SELECTED ORB */
.orb-popover {
  position: fixed;
  right: 22px;
  bottom: 94px;
  width: 285px;
  z-index: 22;
  background: rgba(14, 18, 32, 0.92);
  backdrop-filter: blur(22px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 20px;
  padding: 18px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
  animation: popIn 0.22s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes popIn {
  from { opacity: 0; transform: translateY(12px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.popover-close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: #fff;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 0.72rem;
}

.pop-header {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
  font-family: var(--font-mono);
  font-size: 0.64rem;
}

.pop-cat {
  color: var(--accent-cyan);
  background: rgba(0, 240, 255, 0.12);
  padding: 2px 8px;
  border-radius: 999px;
}

.pop-rank {
  color: var(--accent-gold);
}

.orb-popover h4 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin-bottom: 4px;
}

.orb-popover p {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.pop-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 12px;
  background: rgba(255, 255, 255, 0.04);
  padding: 10px;
  border-radius: 12px;
}

.pop-stats div {
  display: flex;
  flex-direction: column;
}

.pop-stats strong {
  font-family: var(--font-mono);
  font-size: 0.98rem;
  color: #fff;
}

.pop-stats span {
  font-size: 0.66rem;
  color: var(--text-muted);
}

.pop-actions-stack {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pop-zoom-btn {
  width: 100%;
  border: 1px solid rgba(184, 255, 1, 0.45);
  background: linear-gradient(135deg, rgba(184, 255, 1, 0.18), rgba(0, 240, 255, 0.18));
  color: #eaffb0;
  padding: 9px 10px;
  border-radius: 10px;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.76rem;
  cursor: pointer;
  transition: transform 0.15s;
}

.pop-zoom-btn:hover {
  transform: translateY(-1px);
}

.pop-actions {
  display: flex;
  gap: 8px;
}

.pop-boost-btn, .pop-clash-btn {
  flex: 1;
  border: none;
  padding: 9px 10px;
  border-radius: 10px;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.74rem;
  cursor: pointer;
}

.pop-boost-btn {
  background: linear-gradient(135deg, var(--accent-cyan), #0088ff);
  color: #040812;
}

.pop-clash-btn {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.16);
}

/* OVERLAY MODALS */
.hidden {
  display: none !important;
}

.overlay-backdrop {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  z-index: 50;
  background: rgba(4, 6, 14, 0.82);
  backdrop-filter: blur(14px);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  place-items: center;
  padding: 20px;
  overflow-x: hidden;
  overflow-y: auto;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  cursor: pointer;
  font-size: 0.9rem;
  z-index: 5;
}

/* SWIPE CLASH MODAL */
.swipe-sheet {
  max-width: 680px;
}

.swipe-card-container {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 22px;
  padding: 22px;
  text-align: center;
}

.swipe-cat-tag {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  color: var(--accent-gold);
  margin-bottom: 6px;
}

.swipe-prompt {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin-bottom: 18px;
}

.swipe-versus-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 14px;
  align-items: center;
  margin-bottom: 18px;
}

.swipe-choice-card {
  background: linear-gradient(155deg, rgba(0, 240, 255, 0.11), rgba(14, 18, 34, 0.92));
  border: 1.5px solid rgba(0, 240, 255, 0.35);
  border-radius: 20px;
  padding: 22px 16px;
  color: #fff;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  transition: transform 0.18s, box-shadow 0.18s;
}

.swipe-choice-card.right {
  background: linear-gradient(155deg, rgba(255, 46, 147, 0.12), rgba(14, 18, 34, 0.92));
  border-color: rgba(255, 46, 147, 0.4);
}

.swipe-choice-card:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 14px 35px rgba(0, 240, 255, 0.22);
}

.swipe-sym {
  font-size: 2rem;
}

.swipe-name {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 800;
}

.swipe-rank {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
}

.swipe-tap-cta {
  margin-top: 4px;
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--accent-lime);
}

.swipe-vs-pill {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.swipe-footer-actions {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 10px;
}

/* 3D HOLOGRAPHIC VAULT CARD */
.holo-card-wrapper {
  perspective: 1100px;
  width: 100%;
  max-width: 500px;
}

.holo-card {
  position: relative;
  background: linear-gradient(155deg, rgba(24, 20, 42, 0.96), rgba(10, 12, 24, 0.98));
  border: 1.5px solid rgba(255, 184, 0, 0.45);
  border-radius: 28px;
  padding: 32px 28px;
  box-shadow: 0 30px 90px rgba(255, 94, 58, 0.32);
  transform-style: preserve-3d;
  transition: transform 0.12s ease-out;
  overflow: hidden;
}

.holo-glare {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.18), transparent 60%);
  mix-blend-mode: screen;
}

.vault-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--accent-gold);
  background: rgba(255, 184, 0, 0.12);
  border: 1px solid rgba(255, 184, 0, 0.35);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.vault-title {
  font-family: var(--font-display);
  font-size: 1.75rem;
  line-height: 1.15;
  margin-bottom: 10px;
}

.vault-desc {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 20px;
}

.vault-Perks {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  padding: 16px;
  margin-bottom: 20px;
}

.perk-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--accent-cyan);
  letter-spacing: 0.08em;
}

.perk-code-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 8px 0 10px;
}

.perk-code-row code {
  font-family: var(--font-mono);
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
}

.copy-btn {
  background: rgba(0, 240, 255, 0.16);
  border: 1px solid rgba(0, 240, 255, 0.4);
  color: var(--accent-cyan);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  padding: 6px 12px;
  border-radius: 8px;
  cursor: pointer;
}

.perk-offer {
  font-size: 0.85rem;
  color: #ffe299;
  font-weight: 600;
}

.brand-telemetry-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 22px;
  text-align: center;
}

.telemetry-item {
  background: rgba(0, 0, 0, 0.32);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 10px 6px;
}

.t-val {
  display: block;
  font-family: var(--font-mono);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--accent-lime);
}

.t-lbl {
  font-size: 0.65rem;
  color: var(--text-muted);
}

.primary-glow-btn {
  border: none;
  background: linear-gradient(135deg, var(--supernova-color), #ff9900);
  color: #fff;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.88rem;
  padding: 12px 18px;
  border-radius: 14px;
  cursor: pointer;
  width: 100%;
  box-shadow: 0 10px 28px rgba(255, 94, 58, 0.38);
}

.secondary-glass-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.85rem;
  padding: 12px 16px;
  border-radius: 14px;
  cursor: pointer;
  width: 100%;
}

/* SHEETS */
.glass-sheet {
  position: relative;
  background: rgba(12, 15, 28, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 26px;
  padding: 26px;
  width: 100%;
  min-width: 0;
  max-width: min(880px, 100%);
  margin: 0 auto;
  overflow-x: hidden;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.7);
}

.sheet-header {
  margin-bottom: 16px;
  padding-right: 38px;
}

.eyebrow-pill {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.64rem;
  color: var(--accent-cyan);
  background: rgba(0, 240, 255, 0.1);
  border: 1px solid rgba(0, 240, 255, 0.3);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 8px;
}

.pink-pill {
  color: var(--accent-pink);
  background: rgba(255, 46, 147, 0.12);
  border-color: rgba(255, 46, 147, 0.35);
}

.gold-pill {
  color: var(--accent-gold);
  background: rgba(255, 184, 0, 0.12);
  border-color: rgba(255, 184, 0, 0.35);
}

.sheet-header h2 {
  font-family: var(--font-display);
  font-size: 1.55rem;
  margin-bottom: 5px;
}

.sheet-header p {
  font-size: 0.84rem;
  color: var(--text-muted);
}

.rivalry-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.riv-tab {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-muted);
  padding: 7px 14px;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
}

.riv-tab.active {
  background: rgba(0, 240, 255, 0.15);
  border-color: var(--accent-cyan);
  color: #fff;
}

.clash-stage {
  display: grid;
  grid-template-columns: 1fr 1.25fr 1fr;
  gap: 16px;
  align-items: center;
  margin-bottom: 16px;
}

.fighter-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 16px;
  text-align: center;
}

.fighter-orb-badge {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  margin: 0 auto 8px;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1rem;
}

.fighter-card h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
}

.fighter-tagline {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.fighter-pct {
  font-family: var(--font-mono);
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--accent-cyan);
}

.right-fighter .fighter-pct {
  color: var(--accent-pink);
}

.fighter-votes {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.pulse-vote-btn {
  width: 100%;
  border: none;
  background: linear-gradient(135deg, var(--accent-cyan), #0077ff);
  color: #030712;
  font-weight: 700;
  font-family: var(--font-sans);
  padding: 9px;
  border-radius: 12px;
  cursor: pointer;
}

.pulse-vote-btn.right-btn {
  background: linear-gradient(135deg, var(--accent-pink), #9b00ff);
  color: #fff;
}

.clash-center-meter {
  text-align: center;
}

.vs-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: grid;
  place-items: center;
  margin: 0 auto 10px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.82rem;
}

.tug-bar-track {
  position: relative;
  height: 15px;
  background: linear-gradient(90deg, rgba(255, 46, 147, 0.35), rgba(255, 46, 147, 0.75));
  border-radius: 999px;
  margin-bottom: 10px;
}

.tug-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #0088ff, var(--accent-cyan));
  border-radius: 999px 0 0 999px;
  transition: width 0.25s ease;
}

.tug-spark {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 18px #fff, 0 0 28px var(--accent-cyan);
  transition: left 0.25s ease;
}

.clash-question {
  font-size: 0.86rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.sponsored-bounty-box {
  background: rgba(255, 184, 0, 0.1);
  border: 1px dashed rgba(255, 184, 0, 0.4);
  padding: 8px 12px;
  border-radius: 12px;
  font-size: 0.72rem;
  color: #ffe39f;
}

.seo-preview-box {
  background: rgba(5, 7, 15, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 13px 16px;
}

.seo-preview-label {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: var(--accent-lime);
  margin-bottom: 6px;
}

.google-snippet {
  font-family: Arial, sans-serif;
}

.g-url { font-size: 0.74rem; color: #9aa0a6; margin-bottom: 2px; }
.g-title { font-size: 0.96rem; color: #8ab4f8; font-weight: 600; margin-bottom: 3px; }
.g-desc { font-size: 0.78rem; color: #bdc1c6; line-height: 1.4; }

/* AURA MODAL */
.aura-sheet { max-width: 780px; }
.aura-mobile-topbar { display: flex; justify-content: flex-end; }
.aura-mobile-pill { display: none; }
.aura-layout { display: grid; grid-template-columns: 260px 1fr; gap: 24px; align-items: center; }
#storyCanvas { width: 100%; height: auto; border-radius: 18px; border: 1px solid rgba(255, 255, 255, 0.2); display: block; }
.aura-info-col h2 { font-family: var(--font-display); font-size: 1.6rem; margin: 8px 0 10px; }
.aura-info-col p { font-size: 0.86rem; color: var(--text-muted); line-height: 1.5; margin-bottom: 14px; }
.viral-points { list-style: none; display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; font-size: 0.82rem; color: #dce3ff; }
.aura-actions { display: flex; flex-direction: column; gap: 9px; }

/* BRAND SIMULATOR MODAL */
.sim-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 20px; }
.sim-form, .revenue-calc-box {
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 18px;
}
.sim-form h3, .revenue-calc-box h3 { font-family: var(--font-display); font-size: 1.08rem; margin-bottom: 12px; }
.sim-form label { display: block; font-size: 0.74rem; color: var(--text-muted); margin-bottom: 10px; }
.sim-form input[type="text"], .sim-select {
  width: 100%;
  margin-top: 4px;
  padding: 9px 11px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(5, 8, 18, 0.9);
  color: #fff;
  font-family: var(--font-sans);
  font-size: 0.84rem;
  user-select: text;
  -webkit-user-select: text;
}
.color-swatches { display: flex; gap: 10px; margin-top: 6px; }
.swatch { width: 26px; height: 26px; border-radius: 50%; border: 2px solid transparent; cursor: pointer; }
.swatch.active { border-color: #fff; transform: scale(1.15); }
.slider-row { margin-bottom: 12px; }
.slider-top { display: flex; justify-content: space-between; font-size: 0.8rem; margin-bottom: 5px; }
.slider-top strong { font-family: var(--font-mono); color: var(--accent-cyan); }
#dauSlider { width: 100%; accent-color: var(--accent-cyan); }
.rev-compare-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 12px; }
.rev-card { padding: 11px; border-radius: 14px; border: 1px solid rgba(255, 255, 255, 0.1); }
.rev-boring { background: rgba(255, 255, 255, 0.03); }
.rev-gravity { background: linear-gradient(145deg, rgba(0, 240, 255, 0.12), rgba(255, 184, 0, 0.12)); border-color: rgba(0, 240, 255, 0.4); }
.rev-badge { display: block; font-family: var(--font-mono); font-size: 0.54rem; color: var(--text-muted); margin-bottom: 5px; }
.rev-gravity .rev-badge { color: var(--accent-gold); }
.rev-amount { font-family: var(--font-mono); font-size: 1.25rem; font-weight: 700; margin-bottom: 4px; }
.rev-gravity .rev-amount { color: var(--accent-lime); }
.rev-card p { font-size: 0.68rem; color: var(--text-muted); line-height: 1.35; }
.monetization-pillars { display: flex; flex-direction: column; gap: 6px; font-size: 0.73rem; color: #dce3ff; }
.m-pillar { background: rgba(0, 0, 0, 0.3); padding: 7px 10px; border-radius: 8px; }
.whatsapp-enquiry-box { display: flex; flex-direction: column; justify-content: space-between; }
.wa-intro { font-size: 0.8rem; color: var(--text-muted); line-height: 1.45; margin-bottom: 12px; }
.whatsapp-cta-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 3px;
  text-decoration: none;
  background: linear-gradient(135deg, #25d366, #128c7e);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 13px 16px;
  border-radius: 14px;
  box-shadow: 0 10px 26px rgba(37, 211, 102, 0.32);
  margin-bottom: 9px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.whatsapp-cta-btn:hover { transform: translateY(-2px); box-shadow: 0 14px 32px rgba(37, 211, 102, 0.45); }
.whatsapp-cta-btn small { font-family: var(--font-mono); font-size: 0.66rem; font-weight: 500; opacity: 0.92; }
.wa-direct-link {
  display: block;
  text-align: center;
  text-decoration: none;
  font-size: 0.8rem;
  padding: 10px 14px;
}

/* MOBILE OPTIMIZATION (ZERO-SCROLL MODALS & CLEAN ORBITAL VIEWPORT) */
@media (max-width: 920px) {
  .interaction-hint, .crumb-meta, .search-kbd, .logo-sub, .desktop-sfx-btn { display: none !important; }
  .mobile-sfx-btn { display: flex; }
  .dock-label small { display: none; }

  /* Compact 3-tier Mobile Top HUD */
  .top-hud {
    flex-direction: column;
    align-items: stretch;
    top: 8px;
    left: 10px;
    right: 10px;
    gap: 6px;
  }
  .top-hud-brand-row {
    width: 100%;
    justify-content: space-between;
  }
  .brand-ident {
    padding: 6px 12px;
    border-radius: 13px;
  }
  .logo-pulse-ring { width: 24px; height: 24px; }
  .logo-core { width: 9px; height: 9px; }
  .logo-title { font-size: 0.94rem; }
  .hud-controls { width: 100%; order: 2; }
  .category-pills {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    padding: 3px;
  }
  .cat-pill {
    padding: 5px 4px;
    font-size: 0.68rem;
    text-align: center;
    white-space: nowrap;
  }
  .warp-search-wrap {
    order: 3;
    width: 100%;
    max-width: 100%;
    padding: 5px 11px;
  }
  #warpSearchInput { font-size: 16px; }
  .sim-form input[type="text"], .sim-select { font-size: 16px; }

  /* Hide Breadcrumb on Level 1; show cleanly under Top HUD when Zoomed! */
  .zoom-breadcrumb-bar {
    display: none;
  }
  body.is-zoomed .zoom-breadcrumb-bar {
    display: flex;
    top: 126px;
    bottom: auto;
    max-width: calc(100vw - 20px);
    font-size: 0.68rem;
    padding: 4px 10px;
    gap: 8px;
    white-space: nowrap;
  }

  /* Center Supernova Core Clean Fit */
  .supernova-anchor { top: 53%; }
  .supernova-core { width: 132px; height: 132px; padding: 8px; }
  .ring-1 { width: 164px; height: 164px; }
  .ring-2 { width: 196px; height: 196px; }
  .supernova-badge { font-size: 0.46rem; padding: 2px 6px; margin-bottom: 3px; }
  .supernova-brand { font-size: 0.78rem; margin-bottom: 3px; }
  .supernova-cta { font-size: 0.52rem; padding: 3px 8px; margin-bottom: 3px; }
  .supernova-sub { font-size: 0.52rem; line-height: 1.15; }

  /* Bottom Dock */
  .bottom-dock {
    width: calc(100vw - 16px);
    justify-content: space-between;
    bottom: max(8px, env(safe-area-inset-bottom));
    padding: 5px;
    border-radius: 18px;
  }
  .dock-btn { flex: 1; flex-direction: column; gap: 2px; padding: 6px 3px; border-radius: 12px; }
  .dock-icon { font-size: 0.98rem; }
  .dock-label { font-size: 0.6rem; align-items: center; }
  .orb-popover { left: 12px; right: 12px; width: auto; bottom: 72px; padding: 14px; }

  /* Modal Backdrops */
  .overlay-backdrop { padding: 10px; }
  .glass-sheet { padding: 16px 14px; border-radius: 20px; }
  .modal-close { top: 12px; right: 12px; width: 30px; height: 30px; font-size: 0.82rem; }

  /* 1) INSTAGRAM STORY MODAL: 100% FIRST-VIEW ZERO-SCROLL FIT */
  #auraModal {
    padding: 8px;
    overflow: hidden;
  }
  .aura-sheet {
    height: calc(100dvh - 16px);
    max-height: calc(100dvh - 16px);
    padding: 10px 12px 12px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
  }
  .aura-mobile-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
    flex-shrink: 0;
  }
  .aura-mobile-pill {
    display: inline-block;
    margin-bottom: 0;
    font-size: 0.6rem;
  }
  .aura-close-btn {
    position: static;
    flex-shrink: 0;
  }
  .desktop-only-pill,
  .aura-heading,
  .aura-desc-text,
  .viral-points {
    display: none !important;
  }
  .aura-layout {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-height: 0;
  }
  .aura-preview-col {
    flex: 1;
    min-height: 0;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  #storyCanvas {
    height: 100%;
    max-height: calc(100dvh - 122px);
    width: auto;
    max-width: 100%;
    aspect-ratio: 9 / 16;
    object-fit: contain;
    border-radius: 14px;
  }
  .aura-info-col {
    width: 100%;
    flex-shrink: 0;
  }
  .aura-actions {
    display: grid;
    grid-template-columns: 1.45fr 1fr;
    gap: 8px;
  }
  .aura-actions .primary-glow-btn,
  .aura-actions .secondary-glass-btn {
    padding: 10px 10px;
    font-size: 0.76rem;
    border-radius: 12px;
    white-space: nowrap;
  }

  /* 2) FAST SWIPE CLASH MODAL: SINGLE-SCREEN MOBILE FIT */
  #swipeModal .sheet-header { margin-bottom: 10px; }
  #swipeModal .sheet-header h2 { font-size: 1.12rem; margin-bottom: 0; }
  #swipeModal .sheet-header p,
  .swipe-vs-pill { display: none; }
  .swipe-card-container { padding: 14px 10px; border-radius: 16px; min-width: 0; }
  .swipe-prompt { font-size: 0.92rem; margin-bottom: 12px; }
  .swipe-versus-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; margin-bottom: 12px; }
  .swipe-choice-card { min-width: 0; padding: 14px 8px; gap: 5px; border-radius: 16px; }
  .swipe-sym { font-size: 1.5rem; }
  .swipe-name { font-size: 0.92rem; line-height: 1.15; overflow-wrap: break-word; }
  .swipe-rank { font-size: 0.6rem; }
  .swipe-tap-cta { font-size: 0.66rem; }
  .swipe-footer-actions { grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 8px; }
  .swipe-footer-actions button { padding: 10px 8px; font-size: 0.72rem; }

  /* 3) RIVALRY ARENA MODAL: SIDE-BY-SIDE FIGHTERS ON MOBILE (ZERO HORIZONTAL OVERFLOW) */
  #clashModal .sheet-header { margin-bottom: 8px; }
  #clashModal .sheet-header h2 { font-size: 1.14rem; margin-bottom: 0; }
  #clashModal .sheet-header p { display: none; }
  .rivalry-tabs {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 10px;
    padding-bottom: 2px;
    scrollbar-width: none;
  }
  .rivalry-tabs::-webkit-scrollbar { display: none; }
  .riv-tab { flex-shrink: 0; white-space: nowrap; padding: 5px 10px; font-size: 0.7rem; }
  .clash-stage {
    width: 100%;
    min-width: 0;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 8px;
    margin-bottom: 10px;
  }
  #fighterLeft { order: 1; min-width: 0; padding: 11px 8px; border-radius: 15px; }
  #fighterRight { order: 2; min-width: 0; padding: 11px 8px; border-radius: 15px; }
  .clash-center-meter { order: 3; grid-column: 1 / -1; min-width: 0; width: 100%; }
  .vs-circle { display: none; }
  .fighter-orb-badge { width: 34px; height: 34px; font-size: 0.82rem; margin-bottom: 4px; }
  .fighter-card h3 { font-size: 0.92rem; line-height: 1.15; overflow-wrap: break-word; }
  .fighter-tagline { display: none; }
  .fighter-pct { font-size: 1.28rem; }
  .fighter-votes { font-size: 0.62rem; margin-bottom: 6px; }
  .pulse-vote-btn { padding: 8px 6px; font-size: 0.7rem; border-radius: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .clash-question { font-size: 0.76rem; margin-bottom: 6px; overflow-wrap: break-word; }
  .sponsored-bounty-box { padding: 6px 9px; font-size: 0.66rem; line-height: 1.3; }
  .seo-preview-box { min-width: 0; width: 100%; padding: 9px 11px; border-radius: 13px; overflow-wrap: anywhere; }
  .g-url { font-size: 0.66rem; overflow-wrap: anywhere; }
  .g-title { font-size: 0.8rem; line-height: 1.25; }
  .g-desc { font-size: 0.68rem; line-height: 1.32; }

  /* 4) BRAND AD STUDIO: ZERO-SCROLL TABBED MOBILE VIEW */
  #brandSimModal { padding: 10px; }
  #brandSimModal .glass-sheet {
    max-height: calc(100dvh - 20px);
    overflow-y: auto;
    padding: 14px 13px;
  }
  #brandSimModal .sheet-header { margin-bottom: 10px; }
  #brandSimModal .sheet-header h2 { font-size: 1.12rem; margin-bottom: 0; }
  #brandSimModal .sheet-header p { display: none; }
  .sim-mobile-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    padding: 4px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    margin-bottom: 10px;
  }
  .sim-tab-btn {
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-family: var(--font-sans);
    font-weight: 700;
    font-size: 0.76rem;
    padding: 8px 6px;
    border-radius: 10px;
    cursor: pointer;
  }
  .sim-tab-btn.active {
    background: linear-gradient(135deg, rgba(255, 184, 0, 0.22), rgba(255, 94, 58, 0.22));
    color: #fff;
    border: 1px solid rgba(255, 184, 0, 0.45);
  }
  .sim-grid { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .sim-form, .whatsapp-enquiry-box { padding: 14px 12px; border-radius: 16px; }
  .sim-form h3, .whatsapp-enquiry-box h3 { font-size: 0.96rem; margin-bottom: 9px; }
  .sim-form label { margin-bottom: 8px; font-size: 0.72rem; }
  .sim-form input[type="text"], .sim-select { padding: 8px 10px; }
  .sim-grid[data-active-tab="demo"] .whatsapp-enquiry-box { display: none; }
  .sim-grid[data-active-tab="whatsapp"] .sim-form { display: none; }
  .whatsapp-cta-btn { font-size: 0.84rem; padding: 11px 12px; }
  .whatsapp-cta-btn small { font-size: 0.62rem; }
  .rev-compare-cards { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}

@media (min-width: 921px) {
  .sim-mobile-tabs { display: none; }
}
