/* =========================================================
   VYTRA — Editorial Obsidian Design System
   ========================================================= */

:root {
  --bg: #06070a;
  --surface: #0b0d12;
  --surface-elevated: #11141c;
  --surface-glass: rgba(11, 13, 18, 0.78);
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --specular: inset 0 1px 0 rgba(255, 255, 255, 0.065);
  --text: #f8fafc;
  --text-primary: #f8fafc;
  --text-secondary: #a1a1aa;
  --text-muted: #71717a;
  --accent: #e11d48;
  --accent-bright: #fb7185;
  --accent-soft: rgba(225, 29, 72, 0.14);
  --accent-green: #22c55e;
  --accent-amber: #f5d061;
  --accent-violet: #fb7185;
  --error: #f87171;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

html,
body {
  min-height: 100%;
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
  text-decoration: none;
}

::selection {
  background: rgba(225, 29, 72, 0.34);
  color: #ffffff;
}

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

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.38; }
}

/* =========================================================
   Architectural Obsidian Studio Backdrop
   ========================================================= */
.bg-ambient {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background:
    radial-gradient(ellipse 72% 42% at 50% -12%, rgba(225, 29, 72, 0.13), transparent 68%),
    radial-gradient(ellipse 52% 38% at 85% 96%, rgba(148, 163, 184, 0.05), transparent 65%),
    var(--bg);
}

.bg-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 72% 58% at 50% 24%, #000 18%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 72% 58% at 50% 24%, #000 18%, transparent 100%);
}

.bg-noise {
  position: absolute;
  inset: 0;
  opacity: 0.026;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
}

.bg-vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 88% 85% at 50% 42%,
    transparent 44%,
    rgba(4, 5, 8, 0.78) 100%
  );
}

/* =========================================================
   Page Shell
   ========================================================= */
.hub-page {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
}

.hub-page > main {
  flex: 1;
}

.hub-section {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 4rem 2rem;
}

/* =========================================================
   Shared Pill Buttons & Badges
   ========================================================= */
.pill-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.76rem 1.4rem;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  cursor: pointer;
  border: 1px solid transparent;
  transition:
    transform 0.18s cubic-bezier(0.16, 1, 0.3, 1),
    background-color 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.2s ease,
    opacity 0.18s ease;
}

.pill-btn:active:not(:disabled) {
  transform: scale(0.98);
}

.pill-btn:disabled {
  opacity: 0.58;
  cursor: wait;
}

.pill-btn-primary {
  background: #ffffff;
  color: #06070a;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.36), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.pill-btn-primary:hover:not(:disabled) {
  background: #eceef2;
  transform: translateY(-1px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
}

.pill-btn-accent {
  background: linear-gradient(180deg, #f43f5e 0%, #e11d48 100%);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: 0 8px 22px rgba(225, 29, 72, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.26);
}

.pill-btn-accent:hover:not(:disabled) {
  background: linear-gradient(180deg, #fb7185 0%, #e11d48 100%);
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(225, 29, 72, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.32);
}

.pill-btn-secondary {
  background: rgba(255, 255, 255, 0.04);
  color: #f4f4f5;
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: var(--specular);
}

.pill-btn-secondary:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.085);
  border-color: rgba(255, 255, 255, 0.24);
  color: #ffffff;
  transform: translateY(-1px);
}

.pill-btn-sm {
  padding: 0.48rem 1.05rem;
  font-size: 0.8rem;
}

.btn-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-green);
  box-shadow: 0 0 10px rgba(34, 197, 94, 0.7);
  animation: pulse 2.4s ease-in-out infinite;
}

/* =========================================================
   Full-Width Frosted Obsidian Sticky Header
   ========================================================= */
.hub-nav-wrap {
  position: sticky;
  top: 0;
  z-index: 40;
  width: 100%;
  background: rgba(6, 7, 10, 0.76);
  border-bottom: 1px solid rgba(255, 255, 255, 0.065);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
}

.hub-nav {
  max-width: 1160px;
  margin: 0 auto;
  min-height: 68px;
  padding: 0.65rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.nav-brand {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  transition: opacity 0.18s ease;
}

.nav-brand:hover {
  opacity: 0.88;
}

.nav-brand-logo {
  height: 27px;
  width: auto;
  display: block;
  object-fit: contain;
}

.nav-xmas-logo {
  display: none;
  height: 36px;
}

body.xmas-theme .nav-default-logo {
  display: none;
}

body.xmas-theme .nav-xmas-logo {
  display: block;
}

.xmas-toggle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1;
  cursor: pointer;
  transition: transform 0.18s ease, background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.xmas-toggle-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(186, 230, 253, 0.4);
  color: #e0f2fe;
  background: rgba(56, 189, 248, 0.1);
}

body.xmas-theme .xmas-toggle-btn {
  color: #bae6fd;
  border-color: rgba(186, 230, 253, 0.3);
  background: rgba(56, 189, 248, 0.1);
}

/* Subtle Holiday String Lights (Christmas Theme) */
.xmas-lights {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 16px;
  z-index: 50;
  pointer-events: none;
  justify-content: space-around;
  align-items: flex-start;
  padding: 0 1.5rem;
}

body.xmas-theme .xmas-lights {
  display: flex;
}

.xmas-bulb {
  position: relative;
  width: 6px;
  height: 9px;
  margin-top: 2px;
  border-radius: 50% 50% 55% 55%;
  animation: xmasTwinkle 3s ease-in-out infinite;
}

.xmas-bulb::before {
  content: '';
  position: absolute;
  top: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 2px;
  border-radius: 1px;
  background: rgba(255, 255, 255, 0.25);
}

.xmas-bulb.b-red {
  background: #f87171;
  box-shadow: 0 0 8px rgba(239, 68, 68, 0.72);
  animation-delay: 0s;
}

.xmas-bulb.b-gold {
  background: #fde047;
  box-shadow: 0 0 8px rgba(250, 204, 21, 0.72);
  animation-delay: 0.75s;
}

.xmas-bulb.b-green {
  background: #34d399;
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.72);
  animation-delay: 1.5s;
}

.xmas-bulb.b-ice {
  background: #7dd3fc;
  box-shadow: 0 0 8px rgba(56, 189, 248, 0.72);
  animation-delay: 2.25s;
}

@keyframes xmasTwinkle {
  0%, 100% {
    opacity: 0.95;
  }
  50% {
    opacity: 0.42;
  }
}

body.xmas-theme .bg-ambient {
  background:
    radial-gradient(ellipse 75% 44% at 50% -10%, rgba(225, 29, 72, 0.16), transparent 66%),
    radial-gradient(ellipse 48% 36% at 88% 95%, rgba(16, 185, 129, 0.08), transparent 65%),
    var(--bg);
}

body.xmas-theme .hub-nav-wrap {
  padding-top: 6px;
}

@media (prefers-reduced-motion: reduce) {
  .xmas-bulb {
    animation: none;
  }
}

.nav-links {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  padding: 0.25rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.065);
}

.nav-link {
  font-size: 0.83rem;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 0.42rem 0.9rem;
  border-radius: 999px;
  transition: color 0.18s ease, background-color 0.18s ease;
}

.nav-link:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.045);
}

.nav-link.is-active {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.095);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-shrink: 0;
}

.nav-user-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #e4e4e7;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.18s ease, background-color 0.18s ease, color 0.18s ease;
}

.nav-user-pill.is-signed-in {
  padding: 0.28rem 0.34rem 0.28rem 0.48rem;
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.14);
}

.nav-user-pill:hover {
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.085);
  color: #ffffff;
}

.nav-user-label {
  max-width: 118px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav-settings-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  padding: 0.22rem 0.55rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #f4f4f5;
  font-size: 0.71rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.nav-settings-badge[hidden] {
  display: none;
}

.nav-settings-icon {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-user-pill:hover .nav-settings-badge {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.26);
  color: #ffffff;
}

.nav-user-pill:hover .nav-settings-icon {
  transform: rotate(35deg);
}

.nav-discord-icon {
  width: 15px;
  height: 15px;
}

.nav-user-avatar {
  width: 21px;
  height: 21px;
  border-radius: 50%;
  object-fit: cover;
}

@media (max-width: 640px) {
  .nav-user-pill.is-signed-in .nav-user-label {
    max-width: 78px;
  }
}

/* =========================================================
   Hero Section
   ========================================================= */
.hub-hero-section {
  padding-top: 6rem;
  padding-bottom: 3.5rem;
  animation: fadeUp 0.55s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hub-hero {
  display: flex;
  justify-content: center;
}

.hub-left {
  width: 100%;
  max-width: 780px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.36rem 0.9rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: var(--specular);
  color: #d4d4d8;
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  margin-bottom: 1.75rem;
}

.hub-headline {
  display: flex;
  flex-direction: column;
  font-family: var(--font-display);
  font-size: clamp(3.1rem, 6.4vw, 5.1rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1.06;
  margin-bottom: 1.4rem;
}

.headline-bright {
  background: linear-gradient(180deg, #ffffff 35%, #d4d4d8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding-bottom: 0.05em;
}

.headline-muted {
  background: linear-gradient(180deg, #a1a1aa 0%, #63636e 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding-bottom: 0.05em;
}

.hub-desc {
  font-size: 1.04rem;
  line-height: 1.65;
  color: var(--text-secondary);
  max-width: 550px;
  margin-bottom: 2.15rem;
}

/* Machined Loadstring Command Bar */
.code-bar {
  width: fit-content;
  max-width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  padding: 0.5rem 0.5rem 0.5rem 1.05rem;
  border-radius: 14px;
  background: rgba(11, 13, 18, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.55),
    var(--specular);
  margin-bottom: 1.65rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.code-bar:hover {
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow:
    0 22px 54px rgba(0, 0, 0, 0.62),
    0 0 0 1px rgba(225, 29, 72, 0.14),
    var(--specular);
}

.code-prompt {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--accent-bright);
  flex-shrink: 0;
  user-select: none;
  line-height: 1;
}

.code-text {
  font-family: var(--font-mono);
  font-size: 0.81rem;
  color: #e4e4e7;
  white-space: nowrap;
  text-align: left;
  min-width: 0;
  flex: 1;
  overflow-x: auto;
  scrollbar-width: none;
}

.code-text::-webkit-scrollbar {
  display: none;
}

.copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  flex-shrink: 0;
  padding: 0.5rem 0.9rem;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.065);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #f4f4f5;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.copy-btn:hover {
  background: rgba(255, 255, 255, 0.13);
  border-color: rgba(255, 255, 255, 0.22);
  color: #ffffff;
}

.copy-btn.is-copied {
  background: rgba(34, 197, 94, 0.12);
  border-color: rgba(34, 197, 94, 0.45);
  color: #86efac;
}

.copy-icon {
  width: 14px;
  height: 14px;
}

.hub-ctas {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

/* =========================================================
   Right Side: Unique Vytra Command UI Preview
   ========================================================= */
.hub-right {
  width: 100%;
  display: flex;
  justify-content: center;
}

.mockup-stage {
  width: 100%;
  max-width: 530px;
  perspective: 1400px;
}

.vytra-ui {
  background: linear-gradient(155deg, #131318 0%, #09090c 100%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 20px;
  overflow: hidden;
  box-shadow:
    0 36px 96px rgba(0, 0, 0, 0.9),
    0 0 0 1px rgba(255, 255, 255, 0.04) inset;
  transform: rotateY(-10deg) rotateX(4deg);
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.vytra-ui:hover {
  transform: rotateY(-3deg) rotateX(1.5deg);
}

.vui-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 1.05rem;
  background: rgba(255, 255, 255, 0.025);
  border-bottom: 1px solid var(--border);
}

.vui-brand {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: #ffffff;
}

.vui-tabs {
  display: inline-flex;
  padding: 0.2rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid var(--border);
}

.vui-tab {
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 500;
  padding: 0.32rem 0.75rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease;
}

.vui-tab.is-active {
  background: #ffffff;
  color: #050506;
  font-weight: 600;
}

.vui-live {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-secondary);
}

.vui-panel {
  padding: 1.1rem 1.15rem;
  min-height: 295px;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.vui-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.vui-panel-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: #ffffff;
}

.vui-panel-sub {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
}

.vui-pill {
  padding: 0.24rem 0.6rem;
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.28);
  color: #86efac;
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.08em;
}

.vui-module-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.vui-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 0.85rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: border-color 0.18s ease, background-color 0.18s ease;
}

.vui-toggle-row:hover {
  border-color: var(--border-strong);
  background: rgba(255, 255, 255, 0.04);
}

.vui-mod-name {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: #ffffff;
}

.vui-mod-desc {
  display: block;
  font-size: 0.68rem;
  color: var(--text-muted);
  margin-top: 0.1rem;
}

.vui-switch {
  appearance: none;
  -webkit-appearance: none;
  width: 36px;
  height: 20px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  position: relative;
  cursor: pointer;
  flex-shrink: 0;
  transition: background-color 0.2s ease;
}

.vui-switch::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #a1a1aa;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.2s ease;
}

.vui-switch:checked {
  background: #ffffff;
}

.vui-switch:checked::after {
  transform: translateX(16px);
  background: #050506;
}

.vui-slider-row {
  padding: 0.7rem 0.85rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.vui-slider-head {
  display: flex;
  justify-content: space-between;
  font-size: 0.74rem;
  color: var(--text-secondary);
}

.vui-range {
  width: 100%;
  accent-color: #ffffff;
  cursor: pointer;
}

.vui-config-list,
.vui-profile-box {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.vui-config-item,
.vui-kv {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0.85rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--border);
  font-size: 0.78rem;
  color: #d4d4d8;
}

.vui-config-item.is-selected {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
}

.vui-mono {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-secondary);
}

.vui-dock {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.7rem 1.05rem;
  background: rgba(0, 0, 0, 0.35);
  border-top: 1px solid var(--border);
}

.vui-dock-user {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.vui-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--border-strong);
}

.vui-avatar-fallback {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-strong);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 800;
  color: #ffffff;
}

.vui-dock-handle {
  font-size: 0.76rem;
  font-weight: 500;
  color: #e4e4e7;
}

.vui-dock-stats {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.7rem;
  color: var(--text-muted);
}

.vui-dock-stats strong {
  color: #ffffff;
  font-weight: 600;
}

.vui-dot-sep {
  opacity: 0.45;
}

.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

.dot-green {
  background: var(--accent-green);
}

.dot-amber {
  background: var(--accent-amber);
}

/* =========================================================
   Features Strip & Home Sections
   ========================================================= */
.features-section {
  padding-top: 0.5rem;
  padding-bottom: 4.5rem;
}

.home-games-section {
  padding-top: 1rem;
  padding-bottom: 2.5rem;
}

.home-section-head {
  margin-bottom: 1.5rem;
}

.section-eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--accent-bright);
  margin-bottom: 0.5rem;
}

.section-text-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: color 0.18s ease, transform 0.18s ease;
}

.section-text-link:hover {
  color: #ffffff;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.15rem;
}

.feature-card {
  padding: 1.55rem;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(16, 18, 26, 0.84) 0%, rgba(11, 13, 18, 0.92) 100%);
  border: 1px solid var(--border);
  box-shadow: var(--specular);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.45), var(--specular);
}

.feature-head-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.1rem;
}

.feature-icon-well {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: inline-grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #f4f4f5;
}

.feature-icon-well svg {
  width: 17px;
  height: 17px;
}

.feature-kicker {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 0.85rem;
}

.feature-head-row .feature-kicker {
  margin-bottom: 0;
}

.feature-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: #ffffff;
  margin-bottom: 0.5rem;
}

.feature-copy {
  font-size: 0.86rem;
  line-height: 1.62;
  color: var(--text-secondary);
}

/* =========================================================
   Section Headers & Supported Games Grid
   ========================================================= */
.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.6vw, 2.65rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.14;
  margin-bottom: 0.45rem;
}

.section-sub {
  font-size: 0.94rem;
  line-height: 1.55;
  color: var(--text-secondary);
}

.games-catalog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

@media (max-width: 980px) {
  .games-catalog-grid {
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  }
}

.game-catalog-card {
  display: flex;
  flex-direction: column;
  border-radius: 18px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(16, 18, 26, 0.9) 0%, rgba(10, 12, 17, 0.96) 100%);
  border: 1px solid var(--border);
  box-shadow: var(--specular);
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s ease, box-shadow 0.22s ease;
}

.game-catalog-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.65), var(--specular);
}

.game-catalog-thumb-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #08090d;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.game-catalog-thumb-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6, 7, 10, 0) 52%, rgba(10, 12, 17, 0.72) 100%);
  pointer-events: none;
}

.game-catalog-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.game-catalog-card:hover .game-catalog-thumb {
  transform: scale(1.04);
}

.game-card-badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 2;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: rgba(6, 10, 8, 0.76);
}

.game-catalog-body {
  padding: 1.2rem 1.3rem 1.35rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
}

.game-catalog-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.game-catalog-title {
  font-family: var(--font-display);
  font-size: 1.06rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: #ffffff;
}

.game-catalog-cta {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-secondary);
  white-space: nowrap;
  transition: color 0.18s ease, transform 0.18s ease;
}

.game-catalog-card:hover .game-catalog-cta {
  color: #ffffff;
  transform: translateX(2px);
}

.game-catalog-desc {
  font-size: 0.84rem;
  line-height: 1.56;
  color: var(--text-secondary);
}

.game-detail-shell {
  width: 100%;
  max-width: 780px;
  margin: 0 auto;
  text-align: left;
}

.game-breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 1.05rem;
}

.game-breadcrumb a {
  color: var(--text-secondary);
  transition: color 0.16s ease;
}

.game-breadcrumb a:hover {
  color: #ffffff;
}

.game-breadcrumb .crumb-sep {
  opacity: 0.55;
}

.game-breadcrumb .crumb-current {
  color: #d4d4d8;
}

.game-detail-title {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 4.6vw, 3.1rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1.06;
  color: #ffffff;
  margin-bottom: 0.85rem;
}

.game-detail-desc {
  font-size: 0.96rem;
  line-height: 1.62;
  color: var(--text-secondary);
  margin-bottom: 1.15rem;
}

.game-status-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1.35rem;
}

.game-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.28rem 0.75rem;
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.34);
  color: #86efac;
  font-size: 0.76rem;
  font-weight: 600;
}

.game-updated-meta {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.code-bar-wide {
  width: 100%;
  margin-bottom: 1.15rem;
}

.game-detail-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.75rem;
}

.game-banner-card {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 18px;
  overflow: hidden;
  background: linear-gradient(145deg, #101018 0%, #07070b 100%);
  border: 1px solid var(--border-strong);
  box-shadow:
    0 28px 80px rgba(0, 0, 0, 0.75),
    0 0 0 1px rgba(255, 255, 255, 0.04) inset;
}

.game-banner-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.mm2-breakdown-head {
  margin-top: 2.75rem;
  margin-bottom: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.mm2-breakdown-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.035em;
  color: #ffffff;
}

.mm2-modules-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.15rem;
}

.module-list {
  list-style: none;
  margin: 0.35rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.42rem;
  font-size: 0.82rem;
  line-height: 1.48;
  color: var(--text-secondary);
}

.module-list li {
  position: relative;
  padding-left: 0.95rem;
}

.module-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.48rem;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent-violet);
}

@media (max-width: 760px) {
  .mm2-modules-grid {
    grid-template-columns: 1fr;
  }
}

.games-empty-card {
  padding: 3rem 2rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px dashed rgba(255, 255, 255, 0.14);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.empty-card-title {
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  margin-bottom: 0.55rem;
}

.empty-card-copy {
  font-size: 0.9rem;
  color: var(--text-secondary);
  max-width: 460px;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

/* =========================================================
   Pricing / Access Section
   ========================================================= */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.35rem;
}

.price-card {
  position: relative;
  overflow: hidden;
  padding: 2.15rem;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(16, 18, 26, 0.86) 0%, rgba(10, 12, 17, 0.96) 100%);
  border: 1px solid var(--border);
  box-shadow: var(--specular);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.85rem;
}

.price-card-featured {
  background:
    radial-gradient(ellipse 85% 55% at 50% -15%, rgba(225, 29, 72, 0.14), transparent 68%),
    linear-gradient(180deg, rgba(20, 22, 32, 0.95) 0%, rgba(10, 12, 17, 0.98) 100%);
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.62), var(--specular);
}

.price-card-featured::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 5%, rgba(244, 63, 94, 0.85) 50%, transparent 95%);
}

.price-tier-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.price-tier {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.popular-tag {
  padding: 0.24rem 0.68rem;
  border-radius: 999px;
  background: rgba(225, 29, 72, 0.16);
  border: 1px solid rgba(251, 113, 133, 0.34);
  color: #fecdd3;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.price-amount {
  font-family: var(--font-display);
  font-size: 2.35rem;
  font-weight: 800;
  letter-spacing: -0.045em;
  color: #ffffff;
  margin: 0.45rem 0 0.55rem;
}

.price-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.58;
}

.price-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  font-size: 0.87rem;
  color: #e4e4e7;
}

.price-features li::before {
  content: '✓';
  color: var(--accent-green);
  margin-right: 0.65rem;
  font-weight: 700;
}

.price-btn {
  width: 100%;
}

/* =========================================================
   Discord Community Banner & Footer
   ========================================================= */
.discord-banner {
  padding: 2.35rem 2.5rem;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(16, 18, 26, 0.9) 0%, rgba(10, 12, 17, 0.96) 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5), var(--specular);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.banner-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.05rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  margin-bottom: 0.45rem;
}

.banner-sub {
  font-size: 0.92rem;
  color: var(--text-secondary);
  max-width: 520px;
  line-height: 1.58;
}

.hub-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.065);
  background: rgba(6, 7, 10, 0.72);
  margin-top: 2rem;
}

.footer-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 2rem 2rem 1.35rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.footer-brand-link {
  display: inline-flex;
  align-items: center;
  opacity: 0.9;
  transition: opacity 0.18s ease;
}

.footer-brand-link:hover {
  opacity: 1;
}

.footer-brand-logo {
  height: 22px;
  width: auto;
  display: block;
  object-fit: contain;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.35rem;
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.footer-links a:hover,
.footer-link-btn:hover {
  color: #ffffff;
}

.footer-link-btn {
  background: none;
  border: none;
  color: inherit;
  font-family: inherit;
  font-size: inherit;
  cursor: pointer;
}

.footer-copy {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer-disclaimer {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 2rem 2rem;
  font-size: 0.75rem;
  line-height: 1.55;
  color: var(--text-muted);
  text-align: center;
}

/* =========================================================
   Modals & Consent Checkboxes
   ========================================================= */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 1.25rem;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.modal-card {
  width: 100%;
  max-width: 440px;
  background: linear-gradient(180deg, #101219 0%, #090a0e 100%);
  border: 1px solid var(--border-strong);
  border-radius: 18px;
  padding: 1.5rem 1.6rem;
  text-align: left;
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.92), var(--specular);
  animation: fadeUp 0.22s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}

.modal-title {
  font-size: 0.96rem;
  font-weight: 600;
  color: #ffffff;
}

.modal-close {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}

.modal-close:hover {
  color: #ffffff;
}

.modal-body {
  font-size: 0.84rem;
  line-height: 1.6;
  color: var(--text-secondary);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.modal-body strong {
  color: #ffffff;
  font-weight: 500;
}

.modal-body ul {
  padding-left: 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
  color: #e4e4e7;
}

.modal-footer {
  margin-top: 1.25rem;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 0.75rem;
}

.modal-footer-between {
  justify-content: space-between;
}

.consent-group {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.consent-row {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  cursor: pointer;
  user-select: none;
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--text-secondary);
}

.consent-row:hover {
  color: #ffffff;
}

.consent-row input[type='checkbox'] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.custom-check {
  width: 16px;
  height: 16px;
  margin-top: 1px;
  flex-shrink: 0;
  border-radius: 5px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.03);
  display: inline-grid;
  place-items: center;
  transition: border-color 0.18s ease, background-color 0.18s ease;
}

.custom-check::after {
  content: '';
  width: 8px;
  height: 5px;
  border-left: 1.8px solid #050506;
  border-bottom: 1.8px solid #050506;
  transform: rotate(-45deg) translate(1px, -1px) scale(0);
  transition: transform 0.15s ease;
}

.consent-row input[type='checkbox']:checked + .custom-check {
  background: #ffffff;
  border-color: #ffffff;
}

.consent-row input[type='checkbox']:checked + .custom-check::after {
  transform: rotate(-45deg) translate(1px, -1px) scale(1);
}

.consent-row.has-error .custom-check {
  border-color: var(--error);
}

.inline-policy-link {
  background: none;
  border: none;
  padding: 0;
  color: #ffffff;
  font-family: inherit;
  font-size: inherit;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.form-feedback {
  min-height: 1.15rem;
  font-size: 0.76rem;
  color: var(--text-secondary);
}

.form-feedback.is-error {
  color: var(--error);
}

.reset-link {
  background: none;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-size: 0.78rem;
  cursor: pointer;
}

.reset-link:hover {
  color: var(--error);
}

.modal-lead {
  margin-bottom: 0.75rem;
}

.account-summary {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.account-kv {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 0.85rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.account-kv strong {
  color: #ffffff;
  font-weight: 600;
}

.account-kv code {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: #d4d4d8;
}

/* =========================================================
   Full Account Settings & Menu Modal
   ========================================================= */
.settings-shell {
  width: 100%;
  max-width: 790px;
  min-height: 495px;
  max-height: 88vh;
  background: linear-gradient(180deg, #0e1017 0%, #090a0e 100%);
  border: 1px solid var(--border-strong);
  border-radius: 22px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 224px minmax(0, 1fr);
  box-shadow: 0 36px 110px rgba(0, 0, 0, 0.94), var(--specular);
  animation: fadeUp 0.22s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.settings-sidebar {
  background: rgba(255, 255, 255, 0.02);
  border-right: 1px solid var(--border);
  padding: 1.25rem 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.settings-user-card {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.55rem 0.6rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
}

.settings-avatar,
.settings-avatar-fallback {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  flex-shrink: 0;
}

.settings-avatar {
  object-fit: cover;
  border: 1px solid var(--border-strong);
}

.settings-avatar-fallback {
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.08);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.85rem;
}

.settings-user-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.settings-user-name {
  font-size: 0.82rem;
  font-weight: 600;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.settings-user-handle {
  font-size: 0.7rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.settings-nav {
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
  flex: 1;
}

.settings-nav-item {
  width: 100%;
  text-align: left;
  padding: 0.6rem 0.8rem;
  border-radius: 10px;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.16s ease, color 0.16s ease;
}

.settings-nav-item:hover {
  background: rgba(255, 255, 255, 0.04);
  color: #ffffff;
}

.settings-nav-item.is-active {
  background: rgba(255, 255, 255, 0.09);
  color: #ffffff;
  font-weight: 600;
}

.settings-sidebar-footer {
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
}

.settings-signout-btn {
  width: 100%;
  padding: 0.56rem 0.8rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.16s ease, color 0.16s ease, background-color 0.16s ease;
}

.settings-signout-btn:hover {
  border-color: rgba(248, 113, 113, 0.4);
  background: rgba(248, 113, 113, 0.08);
  color: #fca5a5;
}

.settings-main {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow-y: auto;
}

.settings-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.15rem 1.5rem;
  border-bottom: 1px solid var(--border);
}

.settings-heading {
  font-size: 1rem;
  font-weight: 600;
  color: #ffffff;
}

.settings-content {
  padding: 1.4rem 1.5rem;
  flex: 1;
}

.settings-pane {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.settings-stats-row {
  display: grid;
  grid-template-columns: 1.35fr 0.85fr 0.85fr;
  gap: 0.7rem;
}

.settings-stat {
  padding: 0.8rem 0.9rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 0.38rem;
}

.stat-label {
  font-size: 0.68rem;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.stat-value-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
}

.stat-code {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: #ffffff;
}

.mini-btn {
  padding: 0.22rem 0.55rem;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.05);
  color: #d4d4d8;
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 500;
  cursor: pointer;
}

.mini-btn:hover {
  border-color: var(--border-strong);
  color: #ffffff;
}

.role-chip,
.status-chip {
  display: inline-flex;
  align-self: flex-start;
  padding: 0.22rem 0.58rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
}

.role-chip {
  background: rgba(167, 139, 250, 0.14);
  color: #c4b5fd;
}

.role-chip.is-owner {
  background: rgba(245, 158, 11, 0.16);
  color: #fde68a;
  border: 1px solid rgba(245, 158, 11, 0.38);
}

.status-chip {
  background: rgba(34, 197, 94, 0.12);
  color: #86efac;
}

.settings-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.field-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.field-label {
  font-size: 0.78rem;
  font-weight: 500;
  color: #d4d4d8;
}

.field-opt {
  color: var(--text-muted);
  font-weight: 400;
}

.field-input {
  width: 100%;
  padding: 0.72rem 0.9rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  color: #ffffff;
  font-family: var(--font-sans);
  font-size: 0.86rem;
  outline: none;
  transition: border-color 0.18s ease, background-color 0.18s ease;
}

.field-input::placeholder {
  color: var(--text-muted);
}

.field-input:focus {
  border-color: var(--border-strong);
  background: rgba(255, 255, 255, 0.05);
}

.settings-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.4rem;
}

.save-status {
  font-size: 0.76rem;
  color: #86efac;
}

.save-status.is-error {
  color: var(--error);
}

.access-tier-card {
  padding: 1.25rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.access-tier-info {
  flex: 1 1 240px;
  min-width: 0;
}

.access-plan-head {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.access-tier-actions {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.access-plan-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0.32rem 0 0.35rem;
}

.access-plan-desc {
  font-size: 0.8rem;
  color: var(--text-secondary);
  max-width: 340px;
  line-height: 1.5;
}

.redeem-row {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.redeem-input {
  flex: 1 1 auto;
  min-width: 0;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  padding: 0.62rem 0.82rem;
}

.hwid-chip.is-lifetime {
  color: #c4b5fd;
  background: rgba(167, 139, 250, 0.14);
  border-color: rgba(167, 139, 250, 0.35);
}

.hwid-chip.is-owner {
  color: #fde68a;
  background: rgba(245, 158, 11, 0.16);
  border-color: rgba(245, 158, 11, 0.42);
}

.hwid-chip.is-open {
  color: #fde68a;
  background: rgba(245, 158, 11, 0.14);
  border-color: rgba(245, 158, 11, 0.35);
}

.support-nav-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
}

.support-view {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.support-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
}

.support-filters,
.support-toolbar-actions {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.support-filters .mini-btn.is-active {
  background: rgba(255, 255, 255, 0.14);
  border-color: var(--border-strong);
  color: #ffffff;
}

.support-form-row {
  display: grid;
  grid-template-columns: 155px minmax(0, 1fr);
  gap: 0.55rem;
}

.support-select {
  color-scheme: dark;
  background-color: #111218;
  color: #f4f4f5;
  cursor: pointer;
}

.support-select option {
  background-color: #111218;
  color: #f4f4f5;
}

.support-textarea {
  resize: vertical;
  min-height: 74px;
  font-family: var(--font-sans);
}

.support-ticket-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-height: 310px;
  overflow-y: auto;
}

.support-ticket-item {
  width: 100%;
  text-align: left;
  padding: 0.78rem 0.92rem;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--border);
  color: inherit;
  font-family: inherit;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  transition: border-color 0.16s ease, background-color 0.16s ease;
}

.support-ticket-item:hover {
  background: rgba(255, 255, 255, 0.045);
  border-color: var(--border-strong);
}

.support-ticket-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.support-ticket-subject {
  font-size: 0.84rem;
  font-weight: 600;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.support-ticket-meta {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.support-empty {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: center;
  padding: 1.5rem 0.5rem;
}

.support-thread-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}

.support-thread-title-wrap {
  flex: 1 1 auto;
  min-width: 0;
}

.support-thread-title-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.support-thread-subject {
  font-size: 0.88rem;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.support-thread-meta {
  display: block;
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 0.12rem;
}

.support-messages {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  max-height: 245px;
  min-height: 140px;
  overflow-y: auto;
  padding-right: 0.25rem;
}

.support-msg {
  padding: 0.65rem 0.82rem;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.support-msg.is-staff {
  background: rgba(167, 139, 250, 0.08);
  border-color: rgba(167, 139, 250, 0.28);
}

.support-msg-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.7rem;
  color: var(--text-muted);
}

.support-msg-sender {
  font-weight: 600;
  color: #e4e4e7;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.support-msg-body {
  font-size: 0.82rem;
  line-height: 1.5;
  color: #f4f4f5;
  white-space: pre-wrap;
  word-break: break-word;
}

.support-reply-form {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.support-reply-form .field-input {
  flex: 1 1 auto;
  padding: 0.62rem 0.82rem;
  font-size: 0.82rem;
}

.settings-box {
  padding: 1rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.settings-box-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.settings-code-block {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: #d4d4d8;
  word-break: break-all;
}

.pref-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.pref-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.8rem 0.95rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--border);
  cursor: pointer;
}

.pref-title {
  display: block;
  font-size: 0.84rem;
  font-weight: 500;
  color: #ffffff;
}

.pref-desc {
  display: block;
  font-size: 0.74rem;
  color: var(--text-muted);
  margin-top: 0.12rem;
}

.hwid-card {
  padding: 1rem 1.1rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
}

.hwid-card-info {
  flex: 1 1 220px;
  min-width: 0;
}

.hwid-card-head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.hwid-title {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-primary);
}

.hwid-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.14rem 0.52rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
}

.hwid-chip.is-locked {
  color: #a7f3d0;
  background: rgba(52, 211, 153, 0.12);
  border-color: rgba(52, 211, 153, 0.35);
}

.hwid-desc {
  font-size: 0.74rem;
  color: var(--text-secondary);
  margin-top: 0.22rem;
  line-height: 1.45;
}

#reset-hwid-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.security-actions-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.danger-zone {
  padding: 1rem 1.1rem;
  border-radius: 12px;
  background: rgba(248, 113, 113, 0.05);
  border: 1px solid rgba(248, 113, 113, 0.22);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
}

.danger-title {
  display: block;
  font-size: 0.84rem;
  font-weight: 600;
  color: #fca5a5;
}

.danger-desc {
  font-size: 0.74rem;
  color: var(--text-secondary);
  margin-top: 0.15rem;
}

.danger-btn {
  padding: 0.55rem 0.95rem;
  border-radius: 999px;
  border: 1px solid rgba(248, 113, 113, 0.45);
  background: rgba(248, 113, 113, 0.12);
  color: #fecaca;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.16s ease, border-color 0.16s ease;
}

.danger-btn:hover {
  background: rgba(248, 113, 113, 0.22);
  border-color: rgba(248, 113, 113, 0.7);
}

@media (max-width: 720px) {
  .settings-shell {
    grid-template-columns: 1fr;
    max-height: 90vh;
  }

  .settings-sidebar {
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding: 1rem;
  }

  .settings-nav {
    flex-direction: row;
    overflow-x: auto;
  }

  .settings-nav-item {
    width: auto;
    white-space: nowrap;
  }

  .settings-stats-row {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   Scroll Reveal, Metrics Bar, FAQ Accordion & Toasts
   ========================================================= */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1), transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.metrics-section {
  padding-top: 0;
  padding-bottom: 2.25rem;
}

.metrics-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.45rem 2rem;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(16, 18, 26, 0.85) 0%, rgba(10, 12, 17, 0.95) 100%);
  border: 1px solid var(--border);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.42), var(--specular);
}

.metric-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  flex: 1;
  text-align: center;
}

.metric-value {
  font-family: var(--font-display);
  font-size: 1.18rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: #ffffff;
}

.metric-label {
  font-size: 0.78rem;
  color: var(--text-secondary);
}

.metric-divider {
  width: 1px;
  height: 32px;
  background: rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
}

/* FAQ Accordion */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.faq-item {
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(16, 18, 26, 0.82) 0%, rgba(10, 12, 17, 0.94) 100%);
  border: 1px solid var(--border);
  box-shadow: var(--specular);
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.faq-item:hover {
  border-color: var(--border-strong);
}

.faq-item[open] {
  border-color: rgba(255, 255, 255, 0.18);
}

.faq-q {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 1.35rem;
  font-size: 0.94rem;
  font-weight: 600;
  color: #ffffff;
  cursor: pointer;
  user-select: none;
}

.faq-q::-webkit-details-marker {
  display: none;
}

.faq-plus {
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--text-secondary);
  transition: transform 0.22s ease, color 0.22s ease;
}

.faq-item[open] .faq-plus {
  transform: rotate(45deg);
  color: #ffffff;
}

.faq-a {
  padding: 0 1.35rem 1.2rem;
  font-size: 0.88rem;
  line-height: 1.65;
  color: var(--text-secondary);
  max-width: 780px;
}

/* Locked Discord Username Field */
.field-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.field-locked-tag {
  font-size: 0.68rem;
  color: var(--text-muted);
  padding: 0.14rem 0.5rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
}

.field-input.is-locked {
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.015);
  border-color: rgba(255, 255, 255, 0.06);
  cursor: not-allowed;
}

/* Floating Toast Notifications */
.toast-container {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  z-index: 80;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  pointer-events: none;
}

.toast {
  padding: 0.72rem 1.1rem;
  border-radius: 12px;
  background: rgba(17, 17, 22, 0.94);
  border: 1px solid var(--border-strong);
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 500;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  animation: fadeUp 0.24s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.toast.is-error {
  border-color: rgba(248, 113, 113, 0.45);
  color: #fecaca;
}

@media (max-width: 760px) {
  .metrics-bar {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
    padding: 1.25rem;
  }

  .metric-divider {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1024px) {
  .hub-hero {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .vytra-ui,
  .vytra-ui:hover {
    transform: none;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .hub-nav {
    flex-wrap: wrap;
    row-gap: 0.6rem;
    padding: 0.7rem 1.25rem;
    min-height: auto;
  }

  .nav-links {
    order: 3;
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    scrollbar-width: none;
    border-radius: 12px;
  }

  .nav-links::-webkit-scrollbar {
    display: none;
  }

  .nav-link {
    white-space: nowrap;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 540px) {
  .hub-section,
  .footer-inner {
    padding-left: 1.15rem;
    padding-right: 1.15rem;
  }

  .hub-hero-section {
    padding-top: 3.75rem;
    padding-bottom: 2.5rem;
  }

  .discord-banner,
  .home-rewards-callout {
    padding: 1.45rem;
  }

  .code-bar {
    width: 100%;
  }

  .code-text {
    white-space: normal;
    word-break: break-all;
    font-size: 0.72rem;
  }
}

/* =========================================================
   Clean Slash-Route Pages & Terms of Service
   ========================================================= */
.hub-section[data-page][hidden] {
  display: none !important;
}

.hub-section[data-page]:not([hidden]) {
  animation: fadeUp 0.28s ease both;
}

.hub-section.is-page-top {
  padding-top: 3.75rem;
  min-height: calc(100vh - 140px);
}

.tos-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.tos-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.1rem;
}

.tos-card {
  padding: 1.45rem 1.5rem;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(16, 18, 26, 0.84) 0%, rgba(10, 12, 17, 0.94) 100%);
  border: 1px solid var(--border);
  box-shadow: var(--specular);
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.tos-list {
  margin: 0;
  padding-left: 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  color: var(--text-secondary);
  font-size: 0.85rem;
  line-height: 1.58;
}

.tos-notice {
  margin-top: 1.25rem;
  padding: 1.2rem 1.4rem;
  border-radius: 16px;
  background: rgba(225, 29, 72, 0.06);
  border: 1px solid rgba(251, 113, 133, 0.22);
  color: #e4e4e7;
  font-size: 0.85rem;
  line-height: 1.62;
}

.tos-notice strong {
  color: #ffffff;
}

@media (max-width: 760px) {
  .tos-grid {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   Daily Spin Wheel & Rewards (Editorial Obsidian UI)
   ========================================================= */
.nav-link-rewards {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
}

.nav-hot-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent-amber);
  display: inline-block;
  flex-shrink: 0;
}

.home-rewards-section {
  padding-top: 0;
  padding-bottom: 2.5rem;
}

.home-rewards-callout {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.75rem;
  padding: 2rem 2.25rem;
  border-radius: 22px;
  background:
    radial-gradient(ellipse 50% 90% at 100% 50%, rgba(245, 208, 97, 0.06), transparent 70%),
    linear-gradient(180deg, rgba(16, 18, 26, 0.92) 0%, rgba(10, 12, 17, 0.97) 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.48), var(--specular);
}

.home-rewards-copy {
  max-width: 650px;
}

.home-rewards-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.8rem;
}

.home-rewards-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--text-secondary);
}

.home-rewards-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.58rem;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
}

.home-rewards-chip.is-gold {
  color: #fde68a;
  background: rgba(245, 208, 97, 0.1);
  border: 1px solid rgba(245, 208, 97, 0.26);
}

.home-rewards-chip.is-rose {
  color: #fbcfe8;
  background: rgba(244, 114, 182, 0.1);
  border: 1px solid rgba(244, 114, 182, 0.28);
}

.home-rewards-title {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #ffffff;
  margin-bottom: 0.45rem;
}

.headline-gold {
  color: #f5d061;
}

.home-rewards-desc {
  font-size: 0.9rem;
  line-height: 1.58;
  color: var(--text-secondary);
}

.rewards-head {
  align-items: flex-end;
}

.rewards-kicker-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0.75rem;
}

.rewards-verified-pill,
.rewards-reset-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.28rem 0.68rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.035);
  color: var(--text-secondary);
}

.rewards-verified-pill {
  color: #34d399;
  border-color: rgba(52, 211, 153, 0.25);
  background: rgba(52, 211, 153, 0.08);
}

.rewards-reset-pill strong {
  color: #f4f4f5;
  font-family: var(--font-mono);
  font-weight: 600;
}

.rewards-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 1.5rem;
  align-items: start;
}

.wheel-stage {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2.35rem 1.5rem 2rem;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(16, 18, 26, 0.9) 0%, rgba(10, 12, 17, 0.96) 100%);
  border: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5), var(--specular);
  transition: border-color 0.35s ease;
}

.wheel-stage.is-normal-win {
  border-color: rgba(52, 211, 153, 0.38);
}

.wheel-stage.is-jackpot-win {
  border-color: rgba(245, 208, 97, 0.58);
}

.wheel-stage.is-mythic-win {
  border-color: rgba(244, 114, 182, 0.62);
}

.wheel-confetti-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 6;
}

.wheel-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 440px;
  aspect-ratio: 1 / 1;
  z-index: 2;
  transition: transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}

.daily-wheel-canvas {
  width: 100%;
  height: 100%;
  display: block;
  filter: drop-shadow(0 18px 34px rgba(0, 0, 0, 0.6));
}

.wheel-pointer {
  position: absolute;
  top: -5px;
  left: 50%;
  width: 28px;
  height: 34px;
  transform: translateX(-50%);
  transform-origin: 50% 8px;
  z-index: 5;
  pointer-events: none;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.65));
}

.wheel-hub-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 78px;
  height: 78px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: radial-gradient(circle at 32% 28%, #1f222c, #0a0b10 78%);
  color: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 4;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.72), inset 0 1px 0 rgba(255, 255, 255, 0.16);
  transition: transform 0.16s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.wheel-hub-btn:hover:not(:disabled) {
  transform: translate(-50%, -50%) scale(1.05);
  border-color: rgba(255, 255, 255, 0.36);
}

.wheel-hub-btn:active:not(:disabled) {
  transform: translate(-50%, -50%) scale(0.95);
}

.wheel-hub-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.wheel-hub-mark {
  font-family: var(--font-display, var(--font-sans));
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1;
  color: #ffffff;
}

.wheel-hub-sub {
  font-family: var(--font-mono);
  font-size: 0.56rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--text-secondary);
  margin-top: 3px;
  transition: color 0.25s ease;
}

.wheel-stage.fx-rare .wheel-hub-btn {
  border-color: rgba(52, 211, 153, 0.65);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.75), 0 0 20px rgba(52, 211, 153, 0.2);
}

.wheel-stage.fx-rare .wheel-hub-sub {
  color: #6ee7b7;
}

.wheel-stage.fx-jackpot .wheel-hub-btn {
  border-color: rgba(245, 208, 97, 0.78);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.78), 0 0 24px rgba(245, 208, 97, 0.26);
}

.wheel-stage.fx-jackpot .wheel-hub-sub {
  color: #f5d061;
}

.wheel-controls {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
  margin-top: 1.5rem;
  width: 100%;
  z-index: 3;
}

.wheel-spin-cta {
  min-width: 240px;
  font-size: 0.92rem;
  padding: 0.85rem 1.75rem;
}

.wheel-spin-cta:disabled {
  opacity: 0.62;
  cursor: not-allowed;
}

.wheel-fair-note {
  font-size: 0.76rem;
  color: var(--text-muted);
  text-align: center;
}

.wheel-result-banner {
  width: 100%;
  margin-top: 1.25rem;
  padding: 1.05rem 1.2rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--border);
  text-align: center;
  z-index: 3;
  animation: fadeUp 0.3s ease both;
}

.wheel-result-banner.tier-mythic {
  background: linear-gradient(135deg, rgba(244, 114, 182, 0.16), rgba(245, 208, 97, 0.1));
  border-color: rgba(244, 114, 182, 0.5);
}

.wheel-result-banner.tier-mythic .wheel-result-kicker {
  color: #f472b6;
}

.wheel-result-banner.tier-jackpot {
  background: linear-gradient(135deg, rgba(220, 38, 38, 0.22), rgba(253, 224, 71, 0.14));
  border-color: rgba(253, 224, 71, 0.55);
}

.wheel-result-banner.tier-rare {
  background: rgba(52, 211, 153, 0.1);
  border-color: rgba(52, 211, 153, 0.35);
}

.wheel-result-banner.tier-uncommon,
.wheel-result-banner.tier-common {
  background: rgba(56, 189, 248, 0.08);
  border-color: rgba(56, 189, 248, 0.3);
}

.wheel-result-kicker {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #fde047;
  margin-bottom: 0.28rem;
}

.wheel-result-banner.tier-miss .wheel-result-kicker {
  color: var(--text-muted);
}

.wheel-result-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.25rem;
}

.wheel-result-sub {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.45;
}

.rewards-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.rewards-card {
  padding: 1.35rem 1.45rem;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(16, 18, 26, 0.86) 0%, rgba(10, 12, 17, 0.96) 100%);
  border: 1px solid var(--border);
  box-shadow: var(--specular);
}

.rewards-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.95rem;
}

.rewards-card-title {
  font-size: 0.96rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.18rem;
}

.rewards-card-sub {
  font-size: 0.78rem;
  color: var(--text-secondary);
}

.rewards-streak-pill {
  padding: 0.24rem 0.62rem;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  color: #fde047;
  background: rgba(253, 224, 71, 0.1);
  border: 1px solid rgba(253, 224, 71, 0.28);
  white-space: nowrap;
}

.streak-nodes {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.42rem;
  margin-bottom: 0.95rem;
}

.streak-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.52rem 0.2rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--border);
  gap: 0.18rem;
}

.streak-node.is-filled {
  background: rgba(52, 211, 153, 0.12);
  border-color: rgba(52, 211, 153, 0.38);
}

.streak-node.is-milestone {
  border-color: rgba(253, 224, 71, 0.32);
  background: rgba(253, 224, 71, 0.06);
}

.streak-node.is-milestone.is-filled {
  background: rgba(253, 224, 71, 0.18);
  border-color: #fde047;
}

.streak-day {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 600;
  color: var(--text-muted);
}

.streak-reward {
  font-size: 0.72rem;
  font-weight: 700;
  color: #f4f4f5;
}

.streak-node.is-milestone .streak-reward {
  color: #fde047;
}

.rewards-mini-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.55rem;
}

.rewards-mini-stat {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.52rem 0.72rem;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.rewards-mini-label {
  font-size: 0.73rem;
  color: var(--text-muted);
}

.rewards-mini-val {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  color: #ffffff;
}

.rewards-mini-val.is-gold {
  color: #fde047;
}

.odds-list {
  display: flex;
  flex-direction: column;
  gap: 0.42rem;
}

.odds-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.48rem 0.72rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.8rem;
}

.odds-row.tier-mythic {
  background: linear-gradient(90deg, rgba(244, 114, 182, 0.14), rgba(245, 208, 97, 0.06));
  border-color: rgba(244, 114, 182, 0.38);
  color: #fbcfe8;
  font-weight: 600;
}

.odds-row.tier-mythic .odds-pct {
  color: #f472b6;
  font-weight: 700;
}

.odds-row.tier-jackpot {
  background: linear-gradient(90deg, rgba(220, 38, 38, 0.16), rgba(253, 224, 71, 0.08));
  border-color: rgba(253, 224, 71, 0.35);
  color: #fef08a;
  font-weight: 600;
}

.odds-name {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.odds-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

.odds-pct {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--text-secondary);
}

.odds-row.tier-jackpot .odds-pct {
  color: #fde047;
  font-weight: 700;
}

.live-dot-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: #34d399;
}

.wins-feed {
  display: flex;
  flex-direction: column;
  gap: 0.42rem;
  max-height: 230px;
  overflow-y: auto;
}

.win-feed-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.55rem;
  padding: 0.5rem 0.7rem;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.77rem;
}

.win-feed-item.tier-jackpot {
  background: rgba(220, 38, 38, 0.14);
  border-color: rgba(248, 113, 113, 0.42);
}

.win-feed-item.role-owner {
  background: linear-gradient(90deg, rgba(253, 224, 71, 0.16), rgba(245, 158, 11, 0.06));
  border: 1px solid #fde047;
  box-shadow:
    0 0 18px rgba(253, 224, 71, 0.34),
    inset 0 0 10px rgba(253, 224, 71, 0.12);
}

.win-feed-identity {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-width: 0;
}

.win-role-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.13rem 0.42rem;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 1.2;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.07);
  color: var(--text-secondary);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.win-role-badge.role-owner {
  background: rgba(253, 224, 71, 0.22);
  color: #fde047;
  border-color: rgba(253, 224, 71, 0.75);
  box-shadow: 0 0 10px rgba(253, 224, 71, 0.4);
}

.win-role-badge.role-staff {
  background: rgba(56, 189, 248, 0.15);
  color: #7dd3fc;
  border-color: rgba(56, 189, 248, 0.4);
}

.win-role-badge.role-lifetime {
  background: rgba(167, 139, 250, 0.16);
  color: #c4b5fd;
  border-color: rgba(167, 139, 250, 0.4);
}

.win-role-badge.role-beta {
  background: rgba(52, 211, 153, 0.14);
  color: #6ee7b7;
  border-color: rgba(52, 211, 153, 0.36);
}

.win-feed-user {
  font-family: var(--font-mono);
  color: var(--text-secondary);
  font-size: 0.73rem;
  max-width: 112px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.win-feed-item.role-owner .win-feed-user {
  color: #fef08a;
  font-weight: 700;
}

.win-feed-prize {
  font-weight: 600;
  color: #f4f4f5;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.win-feed-item.tier-jackpot .win-feed-prize,
.win-feed-item.role-owner .win-feed-prize {
  color: #fde047;
}

.win-feed-time {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.wins-empty {
  padding: 0.85rem;
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
}

@media (max-width: 960px) {
  .rewards-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .wheel-stage {
    padding: 1.65rem 1rem 1.4rem;
  }
  .wheel-hub-btn {
    width: 66px;
    height: 66px;
  }
  .wheel-hub-mark {
    font-size: 1.2rem;
  }
  .streak-nodes {
    gap: 0.28rem;
  }
}


/* =========================================================
   Refined Wheel Stage Motion & Vignette States
   ========================================================= */
.wheel-fx-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 5;
}

.wheel-dim-layer {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 42%, transparent 28%, rgba(4, 5, 8, 0.62) 85%);
  opacity: 0;
  pointer-events: none;
  z-index: 1;
  transition: opacity 0.35s ease;
}

.wheel-stage.fx-dim .wheel-dim-layer {
  opacity: 1;
}

.wheel-stage.fx-zoom .wheel-wrap {
  transform: scale(1.03);
}

/* =========================================================
   Owner Admin Panel (Inside Account Settings Modal)
   ========================================================= */
.settings-shell.is-admin-wide {
  max-width: 920px;
}

.admin-kpi-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.55rem;
}

.admin-kpi {
  padding: 0.7rem 0.8rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.admin-kpi-val {
  font-family: var(--font-mono);
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
}

.admin-kpi-val.is-gold {
  color: #fde68a;
}

.admin-kpi-val.is-danger {
  color: #fca5a5;
}

.admin-kpi-val.is-green {
  color: #86efac;
}

.admin-subnav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.admin-subtabs,
.admin-filter-row,
.admin-chip-group,
.admin-btn-row {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.admin-subtabs .mini-btn.is-active,
.admin-filter-row .mini-btn.is-active {
  background: rgba(255, 255, 255, 0.14);
  border-color: var(--border-strong);
  color: #ffffff;
}

.admin-subpane,
.admin-stack {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.admin-search-bar {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.admin-search-input {
  flex: 1 1 auto;
  padding: 0.6rem 0.85rem;
  font-size: 0.82rem;
}

.admin-list {
  display: flex;
  flex-direction: column;
  gap: 0.48rem;
  max-height: 295px;
  overflow-y: auto;
  padding-right: 0.2rem;
}

.admin-row {
  width: 100%;
  text-align: left;
  padding: 0.72rem 0.9rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.024);
  border: 1px solid var(--border);
  color: inherit;
  font-family: inherit;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  transition: border-color 0.16s ease, background-color 0.16s ease;
}

.admin-user-item {
  cursor: pointer;
}

.admin-user-item:hover {
  background: rgba(255, 255, 255, 0.048);
  border-color: var(--border-strong);
}

.admin-user-item.is-banned {
  border-color: rgba(248, 113, 113, 0.28);
  background: rgba(248, 113, 113, 0.04);
}

.admin-row-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.24rem;
}

.admin-row-title {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
  font-size: 0.83rem;
  color: #ffffff;
}

.admin-row-sub {
  font-size: 0.72rem;
  color: var(--text-muted);
  word-break: break-word;
}

.admin-row-action {
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--text-secondary);
  white-space: nowrap;
}

.admin-user-item:hover .admin-row-action {
  color: #ffffff;
}

.admin-row-time {
  font-family: var(--font-mono);
  font-size: 0.69rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.hwid-chip.is-banned-chip {
  color: #fecaca;
  background: rgba(248, 113, 113, 0.16);
  border-color: rgba(248, 113, 113, 0.42);
}

.admin-detail-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  padding-bottom: 0.7rem;
  border-bottom: 1px solid var(--border);
}

.admin-detail-ident {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
}

.admin-detail-title {
  font-size: 0.94rem;
  color: #ffffff;
}

.admin-detail-sub {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.admin-card {
  padding: 0.95rem 1.05rem;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.022);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 0.72rem;
}

.admin-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.admin-inline-num {
  width: 108px;
  padding: 0.44rem 0.65rem;
  font-size: 0.78rem;
}

.admin-inline-select {
  width: 155px;
  padding: 0.48rem 0.7rem;
  font-size: 0.8rem;
}

.admin-ban-zone {
  align-items: center;
}

.admin-ban-fields {
  flex: 1 1 240px;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.admin-ban-input {
  padding: 0.5rem 0.75rem;
  font-size: 0.78rem;
}

.admin-key-form-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.admin-key-form-grid .field-input {
  padding: 0.54rem 0.75rem;
  font-size: 0.8rem;
  width: auto;
}

#admin-key-preset {
  flex: 0 0 155px;
}

#admin-key-custom-hrs {
  flex: 0 0 88px;
}

#admin-key-count {
  flex: 0 0 68px;
}

#admin-key-label {
  flex: 1 1 160px;
  min-width: 140px;
}

.admin-generated-box {
  border-color: rgba(34, 197, 94, 0.34);
  background: rgba(34, 197, 94, 0.05);
}

.admin-generated-pre {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  line-height: 1.55;
  color: #bbf7d0;
  background: rgba(0, 0, 0, 0.36);
  border: 1px solid rgba(34, 197, 94, 0.22);
  border-radius: 10px;
  padding: 0.7rem 0.85rem;
  max-height: 135px;
  overflow-y: auto;
  user-select: all;
}

.admin-key-code {
  font-family: var(--font-mono);
  font-size: 0.79rem;
  font-weight: 600;
  color: #ffffff;
  letter-spacing: 0.02em;
}

.admin-mini-danger:hover {
  border-color: rgba(248, 113, 113, 0.55);
  color: #fca5a5;
}

@media (max-width: 720px) {
  .admin-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .admin-key-form-grid {
    grid-template-columns: 1fr;
  }
}
