/* ============================================
   Hanuman City — Design System
   ============================================ */

:root {
  --color-bg: #0a0a0f;
  --color-bg-elevated: #12121a;
  --color-bg-card: #16161f;
  --color-bg-card-hover: #1c1c28;
  --color-border: rgba(255, 255, 255, 0.08);
  --color-border-hover: rgba(255, 255, 255, 0.15);

  --color-text: #ffffff;
  --color-text-muted: rgba(255, 255, 255, 0.55);
  --color-text-dim: rgba(255, 255, 255, 0.35);

  --color-accent: #67860aab;
  --color-accent-light: #85A812;
  --color-accent-dark: #506808;
  --color-accent-glow: rgba(104, 134, 10, 0.35);
  /* Hanuman Store profile tokens (shared with /store/profile/) */
  --hs-primary: #7baa1e;
  --hs-accent: #c7f464;
  --hs-muted: #94a3b8;
  --brand-badge-bg: #1a1f0d;
  --brand-badge-text: #c5ff4a;

  --color-gangster: #ff4444;
  --color-lawman: #4488ff;

  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --header-height: 72px;
  --container-max: 1280px;
  --container-padding: 24px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --start-visual-blur: 18px;
  --start-visual-bg: rgba(10, 10, 15, 0.38);
  --start-visual-border: #ff4444;
  --radius-lg: 20px;
  --radius-xl: 28px;

  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  overflow-x: hidden;
}

.site-stars {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.site-star {
  position: absolute;
  border-radius: 50%;
  background: #fff;
  opacity: var(--star-min, 0.15);
  box-shadow: 0 0 3px rgba(255, 255, 255, 0.35);
  animation:
    star-twinkle var(--twinkle-dur, 3s) ease-in-out infinite,
    star-drift calc(var(--twinkle-dur, 3s) * 2.5) ease-in-out infinite;
  animation-delay: var(--twinkle-delay, 0s), var(--twinkle-delay, 0s);
  will-change: opacity, transform;
}

.site-star--bright {
  box-shadow:
    0 0 4px rgba(255, 255, 255, 0.55),
    0 0 10px rgba(133, 168, 18, 0.2);
}

@keyframes star-twinkle {
  0%, 100% {
    opacity: var(--star-min, 0.12);
    transform: scale(1);
  }
  50% {
    opacity: var(--star-max, 0.6);
    transform: scale(1.2);
  }
}

@keyframes star-drift {
  0%, 100% {
    translate: 0 0;
  }
  50% {
    translate: var(--drift-x, 0) var(--drift-y, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-star {
    animation: none;
    opacity: var(--star-max, 0.3);
  }
}

.site-hanuman {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.hanuman-float {
  position: absolute;
  opacity: 0;
  animation:
    hanuman-bob var(--bob-duration, 8s) ease-in-out infinite,
    hanuman-appear var(--fade-duration, 16s) ease-in-out infinite;
  animation-delay: var(--anim-delay, 0s), var(--anim-delay, 0s);
  will-change: transform, opacity;
}

.hanuman-float img {
  display: block;
  width: var(--hanuman-size, 48px);
  height: auto;
  filter: drop-shadow(0 0 14px rgba(133, 168, 18, 0.35));
  user-select: none;
  -webkit-user-drag: none;
}

@keyframes hanuman-bob {
  0%, 100% {
    transform: translate(0, 0) rotate(-5deg);
  }
  50% {
    transform: translate(var(--drift-x, 0), var(--float-y, -36px)) rotate(5deg);
  }
}

@keyframes hanuman-appear {
  0%, 100% {
    opacity: 0;
  }
  10%, 80% {
    opacity: var(--hanuman-opacity, 0.12);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hanuman-float {
    animation: none;
    opacity: var(--hanuman-opacity, 0.1);
  }
}

/* Section sparks (about + download) */
.section-sparks {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.section-spark {
  position: absolute;
  border-radius: 50%;
  opacity: 0;
  animation: spark-rise var(--spark-duration, 5s) linear infinite;
  animation-delay: var(--spark-delay, 0s);
  will-change: transform, opacity;
}

.section-sparks--about .section-spark {
  background: rgba(255, 228, 170, 0.95);
  box-shadow:
    0 0 4px rgba(255, 196, 110, 0.65),
    0 0 10px rgba(255, 255, 255, 0.25);
}

.section-sparks--download .section-spark {
  background: rgba(168, 210, 40, 0.95);
  box-shadow:
    0 0 5px rgba(133, 168, 18, 0.85),
    0 0 12px rgba(255, 255, 255, 0.2);
}

.section-spark--trail::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 1px;
  height: 8px;
  transform: translateX(-50%);
  background: linear-gradient(to top, currentColor, transparent);
  opacity: 0.5;
  filter: blur(0.5px);
}

@keyframes spark-rise {
  0% {
    transform: translate(0, 0) scale(1);
    opacity: 0;
  }
  8% {
    opacity: var(--spark-peak, 0.7);
  }
  70% {
    opacity: calc(var(--spark-peak, 0.7) * 0.5);
  }
  100% {
    transform: translate(var(--spark-drift-x, 0), var(--spark-rise, -110vh)) scale(0.4);
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .section-spark {
    animation-duration: 10s;
  }
}

img {
  max-width: 100%;
  display: block;
}

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

ul {
  list-style: none;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding-left: max(var(--container-padding), env(safe-area-inset-left));
  padding-right: max(var(--container-padding), env(safe-area-inset-right));
}

.text-accent {
  color: var(--color-accent);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.02em;
  transition: var(--transition);
  white-space: nowrap;
}

.btn--primary {
  background: linear-gradient(135deg, var(--color-accent), var(--color-accent-dark));
  color: #fff;
  box-shadow: 0 4px 20px var(--color-accent-glow);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px var(--color-accent-glow);
}

.btn--outline {
  border: 1px solid var(--color-border-hover);
  color: var(--color-text);
  background: transparent;
}

.btn--outline:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.btn--sm {
  padding: 8px 18px;
  font-size: 13px;
}

.btn--lg {
  padding: 16px 32px;
  font-size: 15px;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-height);
  transition: var(--transition);
}

.header--scrolled {
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--color-border);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.logo__img {
  height: 42px;
  width: auto;
  object-fit: contain;
}

.logo__text {
  font-weight: 800;
  font-size: 18px;
  letter-spacing: 0.06em;
  color: var(--color-text);
  white-space: nowrap;
}

.logo__wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: nowrap;
  white-space: nowrap;
}

.logo__name {
  font-weight: 800;
  font-size: 18px;
  letter-spacing: 0.12em;
  color: #ffffff;
}

.logo__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 12px;
  border-radius: 9px;
  font-weight: 800;
  font-size: 16px;
  letter-spacing: 0.1em;
  line-height: 1;
  color: var(--brand-badge-text);
  background: var(--brand-badge-bg);
  box-shadow: inset 0 0 0 1px rgba(197, 255, 74, 0.08);
}

.footer .logo__name {
  font-size: 16px;
}

.footer .logo__badge {
  font-size: 14px;
  padding: 4px 10px;
  border-radius: 8px;
}

.footer .logo__img {
  height: 36px;
}

.footer .logo__text {
  font-size: 16px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  border: 1px solid var(--color-border);
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.nav__link {
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text-muted);
  border-radius: 999px;
  border: 1px solid transparent;
  transition: color var(--transition), background var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.nav__link:hover {
  color: var(--color-text);
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.1);
}

.nav__link:focus-visible {
  outline: 2px solid var(--hs-accent);
  outline-offset: 2px;
}

.nav__link--active {
  color: var(--hs-accent);
  background: rgba(123, 170, 30, 0.14);
  border-color: rgba(123, 170, 30, 0.4);
  box-shadow: 0 0 18px rgba(123, 170, 30, 0.18);
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.header__auth {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-shrink: 0;
  min-width: 0;
}

.header__auth--profile {
  min-height: 44px;
}

.header__auth--profile-only {
  min-width: 0;
}

.header__auth--profile-only:not(:empty) {
  min-width: 44px;
}

.header__auth--profile-only .hs-profile-user,
.header__auth--profile-only .auth-user-wrap {
  max-width: min(240px, 48vw);
}

.header__auth .hs-profile-user,
.header__auth .auth-user-wrap {
  max-width: min(220px, 42vw);
}

.header__auth .btn--sm {
  padding: 8px 12px;
  font-size: 12px;
  white-space: nowrap;
}

.auth-user {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text-muted);
  padding: 0 4px;
}

.lang-switcher {
  position: relative;
  flex-shrink: 0;
  z-index: 20;
}

.lang-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  font-size: 13px;
  color: var(--color-text-muted);
  border-radius: var(--radius-sm);
  transition: var(--transition);
  border: none;
  background: transparent;
  cursor: pointer;
  font: inherit;
  white-space: nowrap;
}

.lang-btn__flag,
.lang-option__flag {
  width: 20px;
  height: 14px;
  object-fit: cover;
  border-radius: 2px;
  flex-shrink: 0;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.lang-btn__chevron {
  opacity: 0.6;
  transition: transform var(--transition);
}

.lang-btn[aria-expanded="true"] .lang-btn__chevron {
  transform: rotate(180deg);
}

.lang-btn:hover {
  color: var(--color-text);
  background: rgba(255, 255, 255, 0.05);
}

.lang-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 160px;
  padding: 6px;
  margin: 0;
  list-style: none;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
  z-index: 1200;
}

.lang-menu[hidden] {
  display: none;
}

.lang-option {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  font-size: 13px;
  color: var(--color-text-muted);
  border-radius: 6px;
  text-align: left;
  transition: var(--transition);
  border: none;
  background: transparent;
  cursor: pointer;
  font: inherit;
}

.lang-option:hover,
.lang-option--active {
  color: var(--color-text);
  background: rgba(104, 134, 10, 0.12);
}

.lang-option--active {
  color: var(--color-accent);
}

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}

.burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: var(--transition);
}

.burger--active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.burger--active span:nth-child(2) {
  opacity: 0;
}

.burger--active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: calc(var(--header-height) + 40px) 0 120px;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__cityscape {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.55;
}

.hero__gradient {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 40%, rgba(104, 134, 10, 0.08) 0%, transparent 60%),
    linear-gradient(to bottom, rgba(10, 10, 15, 0.2) 0%, var(--color-bg) 100%);
  z-index: 1;
}

.hero__particles {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.particle {
  position: absolute;
  width: 3px;
  height: 3px;
  background: var(--color-accent);
  border-radius: 50%;
  opacity: 0;
  animation: float-particle 8s infinite ease-in-out;
}

@keyframes float-particle {
  0%, 100% { opacity: 0; transform: translateY(0) scale(0); }
  10% { opacity: 0.6; transform: translateY(-10px) scale(1); }
  90% { opacity: 0.3; transform: translateY(-80px) scale(0.5); }
}

.hero__roles {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 5;
}

.hero__roles--left { left: 40px; }
.hero__roles--right { right: 40px; }

.role-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 16px 8px 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--color-border);
  border-radius: 50px;
  cursor: pointer;
  transition: var(--transition);
  opacity: 0.5;
  transform: scale(0.92);
  text-decoration: none;
  color: inherit;
}

.role-card:hover,
.role-card--active {
  opacity: 1;
  transform: scale(1);
  border-color: var(--color-accent);
  background: rgba(104, 134, 10, 0.08);
}

.role-card__img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: linear-gradient(135deg, #2a2a35, #1a1a22);
  border: 2px solid rgba(255, 255, 255, 0.12);
}

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

.role-card--active .role-card__img,
.role-card:hover .role-card__img {
  border-color: var(--color-accent);
}

.role-card__label {
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

/* Hero — Majestic-style panels */
.hero--panels {
  justify-content: flex-start;
  padding-top: calc(var(--header-height) + 24px);
}

.hero__stage {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}

.hero__panels {
  display: flex;
  align-items: stretch;
  gap: 10px;
  width: 100%;
  min-height: clamp(320px, 42vw, 460px);
}

.hero-panel {
  position: relative;
  flex: 1;
  min-width: 0;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  filter: brightness(0.72) saturate(0.85);
  transition:
    transform 0.4s ease,
    border-color 0.35s ease,
    box-shadow 0.35s ease,
    filter 0.4s ease;
  isolation: isolate;
}

.hero-panel::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--hero-panel-bg, url('../assets/hero-bg.webp')) var(--hero-panel-pos, center) / cover no-repeat;
  transform: scale(1);
  transition: transform 0.55s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  z-index: 0;
  will-change: transform;
}

.hero-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    to top,
    rgba(10, 10, 15, 0.9) 0%,
    rgba(10, 10, 15, 0.5) 45%,
    rgba(10, 10, 15, 0.28) 100%
  );
  opacity: 1;
  transition: opacity 0.4s ease;
  pointer-events: none;
  z-index: 1;
}

.hero-panel:hover,
.hero__panels:has(.hero-panel--cta:hover) .hero-panel {
  filter: brightness(1.08) saturate(1.05);
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.42);
}

.hero-panel:hover::before,
.hero__panels:has(.hero-panel--cta:hover) .hero-panel::before {
  opacity: 0.12;
}

.hero-panel:not(.hero-panel--cta):hover {
  transform: translateY(-6px);
  border-color: rgba(104, 134, 10, 0.45);
}

.hero-panel:not(.hero-panel--cta):hover::after {
  transform: scale(1.14);
}

.hero-panel__letter {
  position: absolute;
  left: 50%;
  bottom: 18%;
  transform: translateX(-50%);
  font-size: clamp(42px, 5.2vw, 78px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  color: rgba(255, 255, 255, 0.72);
  text-transform: lowercase;
  pointer-events: none;
  user-select: none;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.55);
  z-index: 2;
  transition: color 0.4s ease, text-shadow 0.4s ease;
}

.hero-panel:hover .hero-panel__letter,
.hero__panels:has(.hero-panel--cta:hover) .hero-panel__letter {
  color: rgba(255, 255, 255, 0.98);
  text-shadow: 0 0 28px rgba(255, 255, 255, 0.35), 0 4px 24px rgba(0, 0, 0, 0.45);
}

.hero-panel--cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  text-decoration: none;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.14);
  z-index: 2;
}

.hero-panel--cta::before {
  background: linear-gradient(
    160deg,
    rgba(104, 134, 10, 0.84) 0%,
    rgba(72, 94, 7, 0.9) 100%
  );
}

.hero-panel--cta:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 48px rgba(104, 134, 10, 0.35);
  border-color: rgba(255, 255, 255, 0.28);
}

.hero-panel--cta:hover::after {
  transform: scale(1.1);
}

.hero-panel--cta .hero-panel__letter {
  bottom: 14%;
  color: rgba(255, 255, 255, 0.16);
  z-index: 2;
}

.hero-panel--cta:hover .hero-panel__letter,
.hero__panels:has(.hero-panel--cta:hover) .hero-panel--cta .hero-panel__letter {
  color: rgba(255, 255, 255, 0.42);
}

.hero-panel__play {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #fff;
  color: var(--color-accent);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
  transition: transform 0.3s ease;
}

.hero-panel--cta:hover .hero-panel__play {
  transform: scale(1.06);
}

.hero-panel__play svg {
  margin-left: 4px;
}

.hero-panel__cta-label {
  position: relative;
  z-index: 2;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero__tagline {
  max-width: 640px;
  text-align: center;
  font-size: clamp(15px, 2vw, 18px);
  line-height: 1.55;
  color: var(--color-text-muted);
}

.hero__intro {
  display: grid;
  grid-template-columns: minmax(120px, 200px) minmax(0, 1fr) minmax(120px, 200px);
  align-items: end;
  gap: clamp(16px, 3vw, 32px);
  width: 100%;
  max-width: 1080px;
}

.hero__path-col {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}

.hero__path-figure {
  position: relative;
  width: 100%;
  max-width: 280px;
  aspect-ratio: 536 / 623;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid hsla(0, 0%, 100%, 0.12);
  background: #0e0e0e;
  transition:
    transform 0.45s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 0.45s cubic-bezier(0.4, 0, 0.2, 1),
    border-color 0.35s ease;
}

.hero__path-figure img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
  filter: saturate(0) contrast(1.05);
  transition: transform 0.55s cubic-bezier(0.4, 0, 0.2, 1), filter 0.45s ease;
}

.hero__path-figure::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 10, 15, 0.35) 0%, transparent 45%);
  pointer-events: none;
}

.hero__path-figure--gangster:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 68, 68, 0.45);
  box-shadow: 0 18px 40px rgba(255, 68, 68, 0.12);
}

.hero__path-figure--lawman:hover {
  transform: translateY(-6px);
  border-color: rgba(68, 136, 255, 0.45);
  box-shadow: 0 18px 40px rgba(68, 136, 255, 0.12);
}

.hero__path-figure:hover img {
  transform: scale(1.04);
  filter: saturate(1) contrast(1.05);
}

.hero__path-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  max-width: 280px;
  margin: 0 auto;
  min-height: 52px;
  padding: 16px 20px;
  border-radius: 6px;
  border: 2px solid hsla(0, 0%, 100%, 0.15);
  background: #0e0e0e;
  color: var(--color-text);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transition: border 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.hero__path-btn--gangster {
  justify-content: center;
}

.hero__path-btn--gangster .hero__path-btn-arrow {
  order: -1;
  margin-right: 8px;
}

.hero__path-btn--lawman {
  justify-content: center;
}

.hero__path-btn--lawman .hero__path-btn-arrow {
  margin-left: 8px;
}

.hero__path-btn--gangster:hover {
  border-color: var(--color-gangster);
  background: var(--color-gangster);
  transform: translateY(-2px);
}

.hero__path-btn--lawman:hover {
  border-color: var(--color-lawman);
  background: var(--color-lawman);
  transform: translateY(-2px);
}

.hero__path-btn--gangster:hover .hero__path-btn-arrow,
.hero__path-btn--lawman:hover .hero__path-btn-arrow {
  color: #fff;
}

.hero__path-btn-arrow {
  font-size: 18px;
  font-weight: 800;
  line-height: 1;
}

.hero__path-btn--gangster .hero__path-btn-arrow {
  color: var(--color-gangster);
}

.hero__path-btn--lawman .hero__path-btn-arrow {
  color: var(--color-lawman);
}

.hero__intro-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
  padding: 0 8px 8px;
}

.hero__title {
  max-width: 560px;
  font-size: clamp(16px, 2.2vw, 20px);
  line-height: 1.6;
  color: var(--color-text-muted);
}

.hero__title-accent {
  color: var(--brand-badge-text);
  font-weight: 800;
  letter-spacing: 0.04em;
}

.hero__intro-center .hero__tagline {
  margin: 0;
}

.hero__intro-center .hero__cta-text {
  margin: 0;
  position: relative;
  padding-bottom: 6px;
}

.hero__intro-center .hero__cta-text::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 72px;
  height: 3px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, var(--color-accent), transparent);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 900px) {
  .hero__intro {
    grid-template-columns: 1fr;
    max-width: 520px;
    margin: 0 auto;
  }

  .hero__path-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  .hero__path-figure {
    max-width: 210px;
    width: 100%;
    height: auto;
  }

  .hero__path-btn {
    min-height: 52px;
    max-width: 210px;
  }

  .hero__panels {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 8px;
    scrollbar-width: none;
  }

  .hero__panels::-webkit-scrollbar {
    display: none;
  }

  .hero-panel {
    flex: 0 0 clamp(110px, 22vw, 150px);
    scroll-snap-align: center;
    min-height: clamp(280px, 55vw, 380px);
  }

  .hero-panel__letter {
    font-size: clamp(36px, 10vw, 56px);
    bottom: 16%;
  }

  .hero-panel__play {
    width: 56px;
    height: 56px;
  }

  .hero-panel__cta-label {
    font-size: 11px;
  }
}

@media (max-width: 640px) {
  .hero--panels {
    padding-bottom: 100px;
  }

  .hero__stage {
    gap: 20px;
  }

  .hero__path-col {
    align-items: center;
  }

  .hero__path-figure {
    max-width: 210px;
    height: auto;
  }

  .hero__path-btn {
    min-height: 52px;
    max-width: 210px;
  }
}

/* About / Team */
.about {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(rgba(10, 10, 15, 0.72), rgba(10, 10, 15, 0.85)),
    url('../assets/team-bg.webp') center / cover no-repeat;
}

.about .container {
  position: relative;
  z-index: 1;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 32px;
  max-width: 760px;
  margin: 24px auto 0;
}

.team-owner {
  display: flex;
  justify-content: center;
  max-width: 760px;
  margin: 40px auto 0;
}

.team-card--owner {
  min-width: min(100%, 280px);
}

a.team-card--owner:hover {
  transform: translateY(-2px);
}

.team-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.team-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 18px 8px 8px;
  background: rgba(10, 10, 15, 0.72);
  backdrop-filter: blur(10px);
  border: 1px solid var(--color-border);
  border-radius: 50px;
  transition: var(--transition);
  text-decoration: none;
  color: inherit;
}

a.team-card:hover {
  border-color: var(--color-accent);
  background: rgba(104, 134, 10, 0.08);
  transform: translateX(4px);
}

.team-card__img {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: linear-gradient(135deg, rgba(104, 134, 10, 0.55), rgba(80, 104, 8, 0.95));
  border: 2px solid rgba(255, 255, 255, 0.12);
}

.team-card__img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  z-index: 1;
}

.team-card__initials {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #eef5d6;
  text-transform: uppercase;
  user-select: none;
}

a.team-card:hover .team-card__img {
  border-color: var(--color-accent);
}

.team-card__name {
  font-size: 14px;
  font-weight: 600;
}

.team-card__info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.team-card__role {
  font-size: 11px;
  font-weight: 600;
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  line-height: 1.2;
}

/* Streamers */
.streamers {
  margin-top: 56px;
  padding-top: 48px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.streamers__title {
  text-align: center;
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.streamers__subtitle {
  text-align: center;
  font-size: 15px;
  color: var(--color-text-muted);
  max-width: 480px;
  margin: 0 auto;
}

.streamers__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  max-width: 980px;
  margin: 32px auto 0;
}

.streamer-card {
  min-width: min(100%, 240px);
  flex: 0 1 auto;
}

.streamer-card__info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}

.streamer-card__platform {
  font-size: 11px;
  font-weight: 500;
  color: var(--color-text-dim);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.streamer-card__live {
  display: none;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
  padding-right: 6px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #ef4444;
}

.streamer-card__live::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ef4444;
  box-shadow: 0 0 8px rgba(239, 68, 68, 0.6);
  animation: status-pulse 2s infinite;
}

.streamer-card--live .streamer-card__live {
  display: flex;
}

.streamer-card--live {
  border-color: rgba(239, 68, 68, 0.35);
}

.streamer-card--live:hover {
  border-color: rgba(239, 68, 68, 0.55);
  background: rgba(239, 68, 68, 0.06);
}

@media (max-width: 640px) {
  .streamers__list {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 8px;
    margin-left: calc(-1 * var(--container-padding));
    margin-right: calc(-1 * var(--container-padding));
    padding-left: var(--container-padding);
    padding-right: var(--container-padding);
    scrollbar-width: none;
  }

  .streamers__list::-webkit-scrollbar {
    display: none;
  }

  .streamer-card {
    flex: 0 0 auto;
    scroll-snap-align: start;
  }
}

@media (max-width: 640px) {
  .team-grid {
    grid-template-columns: 1fr;
    max-width: 360px;
  }
}

.hero__content {
  position: relative;
  z-index: 10;
  text-align: center;
  max-width: 780px;
}

.hero__title {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}

.hero__title-accent {
  color: var(--brand-badge-text);
  font-weight: 800;
}

.hero__subtitle {
  font-size: clamp(16px, 2vw, 20px);
  color: var(--color-text-muted);
  margin-bottom: 32px;
  line-height: 1.5;
}

.hero__cta-text {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 24px;
  color: var(--color-text-muted);
}

.hero__btn {
  animation: pulse-glow 3s infinite ease-in-out;
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 4px 20px var(--color-accent-glow); }
  50% { box-shadow: 0 4px 40px rgba(104, 134, 10, 0.55); }
}

.hero__paths {
  position: relative;
  z-index: 10;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 60px;
  width: 100%;
  max-width: 900px;
  padding: 0 24px;
}

.path-card {
  position: relative;
  height: 160px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding: 24px;
  border: 1px solid var(--color-border);
  transition: var(--transition);
}

.path-card:hover {
  transform: translateY(-4px);
  border-color: var(--color-border-hover);
}

.path-card--gangster {
  background: linear-gradient(135deg, rgba(255, 68, 68, 0.2), rgba(10, 10, 15, 0.9));
}

.path-card--lawman {
  background: linear-gradient(135deg, rgba(68, 136, 255, 0.2), rgba(10, 10, 15, 0.9));
}

.path-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 60%);
}

.path-card__text {
  position: relative;
  z-index: 1;
  font-size: 16px;
  font-weight: 700;
  max-width: 200px;
}

.path-card__arrow {
  position: absolute;
  right: 24px;
  bottom: 24px;
  opacity: 0;
  transform: translateX(-8px);
  transition: var(--transition);
}

.path-card:hover .path-card__arrow {
  opacity: 1;
  transform: translateX(0);
}

.scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--color-text-dim);
  font-size: 12px;
  animation: bounce-hint 2s infinite ease-in-out;
}

@keyframes bounce-hint {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}

.scroll-hint__mouse {
  width: 22px;
  height: 34px;
  border: 2px solid var(--color-text-dim);
  border-radius: 11px;
  display: flex;
  justify-content: center;
  padding-top: 6px;
}

.scroll-hint__wheel {
  width: 3px;
  height: 8px;
  background: var(--color-text-dim);
  border-radius: 2px;
  animation: scroll-wheel 2s infinite;
}

@keyframes scroll-wheel {
  0% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(10px); }
}

/* Sections */
.section {
  padding: 100px 0;
  position: relative;
}

.section__title {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}

.section__title--center {
  text-align: center;
}

.section__subtitle {
  text-align: center;
  color: var(--color-text-muted);
  font-size: 18px;
  margin-bottom: 48px;
}

/* Video */
.video-section {
  background: linear-gradient(180deg, var(--color-bg) 0%, var(--color-bg-elevated) 100%);
}

.video-wrapper {
  margin-top: 40px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--color-border);
  aspect-ratio: 16 / 9;
  max-width: 960px;
  margin-left: auto;
  margin-right: auto;
}

.video-placeholder {
  position: relative;
  width: 100%;
  height: 100%;
  cursor: pointer;
}

.video-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--color-accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  box-shadow: 0 8px 40px var(--color-accent-glow);
}

.video-play-btn:hover {
  transform: translate(-50%, -50%) scale(1.1);
}

.video-placeholder--dark {
  background: #0a0a0f;
}

.video-placeholder--playing .video-play-btn {
  display: none;
}

/* Tutorial Page */
.tutorial-page {
  position: relative;
  z-index: 1;
  padding-top: var(--header-height);
  min-height: 100vh;
}

.tutorial-page__bg {
  position: fixed;
  inset: 0;
  background:
    linear-gradient(rgba(10, 10, 15, 0.78), rgba(10, 10, 15, 0.88)),
    url('../assets/hero-bg.webp') center / cover no-repeat;
  filter: blur(3px);
  transform: scale(1.05);
  z-index: 0;
  pointer-events: none;
}

.tutorial-page__fx {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.tutorial-page__fx .site-star--login {
  animation:
    star-twinkle var(--twinkle-dur, 3s) ease-in-out infinite,
    login-star-float var(--float-dur, 7s) ease-in-out infinite;
  animation-delay: var(--twinkle-delay, 0s), var(--float-delay, 0s);
}

.tutorial-page__fx .hanuman-float {
  animation:
    hanuman-bob var(--bob-duration, 8s) ease-in-out infinite,
    hanuman-appear var(--fade-duration, 16s) ease-in-out infinite;
}

.tutorial-page .video-section {
  background: transparent;
}

.footer--overlay {
  position: relative;
  z-index: 1;
  background: transparent;
  border-top-color: rgba(255, 255, 255, 0.1);
}

.footer--overlay .footer__bottom {
  border-top-color: rgba(255, 255, 255, 0.1);
}

@media (prefers-reduced-motion: reduce) {
  .tutorial-page__fx .site-star--login {
    animation: none;
    opacity: var(--star-max, 0.3);
  }
}

.tutorial-page__note {
  max-width: 640px;
  margin: 24px auto 0;
  text-align: center;
  color: var(--color-text-muted);
  font-size: 15px;
  line-height: 1.55;
}

.tutorial-page__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 32px;
}

@media (max-width: 640px) {
  .tutorial-page__actions {
    flex-direction: column;
    align-items: stretch;
  }
}

/* Gallery — Majestic-style showcase */
.gallery {
  overflow: hidden;
}

.gallery-showcase {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(20px, 3vw, 32px);
  align-items: stretch;
}

.gallery-showcase__hero,
.gallery-showcase__media {
  min-width: 0;
}

.gallery-hero {
  position: relative;
  height: 100%;
  min-height: 520px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--color-border);
  background: #0d0d12;
}

.gallery-hero__viewport {
  position: relative;
  width: 100%;
  height: 100%;
}

.gallery-hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

.gallery-hero__slide.is-active {
  opacity: 1;
  visibility: visible;
}

.gallery-hero__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: brightness(0.55) saturate(0.9);
}

.gallery-hero__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 16px;
  padding: clamp(24px, 4vw, 40px);
  background: linear-gradient(to top, rgba(10, 10, 15, 0.95) 0%, rgba(10, 10, 15, 0.35) 55%, transparent 100%);
}

.gallery-hero__title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 1.05;
  text-transform: uppercase;
}

.gallery-hero__text {
  max-width: 420px;
  font-size: clamp(14px, 1.8vw, 16px);
  line-height: 1.65;
  color: var(--color-text-muted);
}

.gallery-hero__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(10, 10, 15, 0.72);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.gallery-hero__nav:hover {
  border-color: var(--color-accent);
  color: var(--color-accent-light);
  background: rgba(104, 134, 10, 0.15);
}

.gallery-hero__nav--prev { left: 16px; }
.gallery-hero__nav--next { right: 16px; }

.gallery-showcase__media {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.gallery-feature {
  width: 100%;
}

.gallery-feature__banner {
  position: relative;
  aspect-ratio: 16 / 9;
  width: 100%;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  cursor: pointer;
  isolation: isolate;
}

.gallery-feature__banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(10, 10, 15, 0.55) 0%,
    rgba(10, 10, 15, 0.25) 45%,
    rgba(10, 10, 15, 0.65) 100%
  );
  z-index: 1;
  pointer-events: none;
}

.gallery-feature__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.55s cubic-bezier(0.4, 0, 0.2, 1), filter 0.45s ease;
}

.gallery-feature__banner:hover .gallery-feature__bg {
  transform: scale(1.05);
  filter: brightness(1.08);
}

.gallery-feature__watermark {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
  font-size: clamp(72px, 14vw, 160px);
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.1);
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
}

.gallery-feature__ring {
  position: absolute;
  left: 38%;
  top: 42%;
  width: clamp(120px, 18vw, 220px);
  height: clamp(120px, 18vw, 220px);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  z-index: 1;
  pointer-events: none;
}

.gallery-feature__dots {
  position: absolute;
  width: 56px;
  height: 56px;
  z-index: 1;
  pointer-events: none;
  opacity: 0.35;
  background-image: radial-gradient(circle, #fff 1.5px, transparent 1.5px);
  background-size: 10px 10px;
}

.gallery-feature__dots--tr {
  top: 16px;
  right: 16px;
}

.gallery-feature__dots--bl {
  bottom: 16px;
  left: 16px;
}

.gallery-feature__content {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(20px, 4vw, 40px);
  padding: clamp(16px, 4vw, 32px);
}

.gallery-feature__play {
  position: relative;
  top: auto;
  left: auto;
  transform: none;
  flex-shrink: 0;
  width: clamp(72px, 10vw, 96px);
  height: clamp(72px, 10vw, 96px);
  border-radius: 50%;
  border: none;
  background: #fff;
  color: #6b7280;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-feature__play svg {
  margin-left: 4px;
}

.gallery-feature__play:hover {
  transform: scale(1.08);
  box-shadow: 0 14px 48px rgba(0, 0, 0, 0.45);
}

.gallery-feature__caption {
  margin: 0;
  max-width: min(320px, 42vw);
  font-size: clamp(14px, 1.8vw, 20px);
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  text-align: left;
}

.gallery-feature__caption .text-accent {
  color: #fff;
}

.gallery-feature__link {
  text-decoration: none;
  color: inherit;
  transition: opacity 0.2s ease;
}

.gallery-feature__link:hover {
  opacity: 0.85;
}

.gallery-feature__banner.video-placeholder--playing .gallery-feature__content,
.gallery-feature__banner.video-placeholder--playing .gallery-feature__watermark,
.gallery-feature__banner.video-placeholder--playing .gallery-feature__ring,
.gallery-feature__banner.video-placeholder--playing .gallery-feature__dots {
  display: none;
}

.gallery-feature__banner.video-placeholder--playing::before {
  display: none;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  flex: 1;
}

.gallery-grid__item {
  aspect-ratio: 16 / 9;
  width: 100%;
  padding: 0;
  background: #0d0d12;
  text-align: left;
  font: inherit;
  color: inherit;
}

.gallery-grid__item img {
  pointer-events: none;
}

.gallery-grid__more {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 100%;
  padding: 16px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--color-text);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: var(--transition);
  cursor: pointer;
}

.gallery-grid__more:hover {
  border-color: var(--color-accent);
  background: rgba(104, 134, 10, 0.1);
  color: var(--color-accent-light);
  transform: translateY(-4px);
}

.gallery-grid__more-arrow {
  font-size: 20px;
  line-height: 1;
  color: var(--color-accent);
}

.gallery__item {
  aspect-ratio: 16 / 9;
  width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
  position: relative;
  cursor: pointer;
  transition:
    transform 0.45s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 0.45s cubic-bezier(0.4, 0, 0.2, 1),
    border-color 0.45s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.gallery__item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(0, 0, 0, 0.45) 100%);
  opacity: 0;
  transition: opacity 0.45s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
  z-index: 1;
}

.gallery__item:hover {
  transform: translateY(-8px) scale(1.03);
  border-color: rgba(104, 134, 10, 0.55);
  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(104, 134, 10, 0.2),
    0 0 28px rgba(104, 134, 10, 0.18);
  z-index: 2;
}

.gallery__item:hover::after {
  opacity: 1;
}

.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.gallery__item:hover img {
  transform: scale(1.1);
}

/* Gallery lightbox */
.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 16px 20px;
}

.gallery-lightbox[hidden] {
  display: none;
}

.gallery-lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 6, 10, 0.88);
  backdrop-filter: blur(14px);
}

.gallery-lightbox__close {
  position: absolute;
  top: 20px;
  right: 24px;
  z-index: 2;
  width: 44px;
  height: 44px;
  border: none;
  background: transparent;
  color: #fff;
  font-size: 36px;
  line-height: 1;
  cursor: pointer;
  opacity: 0.85;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.gallery-lightbox__close:hover {
  opacity: 1;
  transform: scale(1.08);
}

.gallery-lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 52px;
  height: 52px;
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.85);
  cursor: pointer;
  transition: color 0.2s ease, transform 0.2s ease;
}

.gallery-lightbox__nav:hover {
  color: #fff;
  transform: translateY(-50%) scale(1.08);
}

.gallery-lightbox__nav--prev { left: 16px; }
.gallery-lightbox__nav--next { right: 16px; }

.gallery-lightbox__stage {
  position: relative;
  z-index: 1;
  width: min(1920px, 92vw);
  max-height: calc(100vh - 140px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.gallery-lightbox__frame {
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: calc(100vh - 180px);
  border-radius: var(--radius-lg);
  overflow: auto;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #000;
  cursor: zoom-in;
  scrollbar-width: thin;
}

.gallery-lightbox__frame--zoomed {
  cursor: zoom-out;
}

.gallery-lightbox__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: center center;
}

.gallery-lightbox__image--zoomed {
  transform: scale(1.65);
}

.gallery-lightbox__hint {
  margin: 0;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.45);
  letter-spacing: 0.04em;
}

.gallery-lightbox__thumbs {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 10px;
  margin-top: 16px;
  max-width: min(1920px, 92vw);
  overflow-x: auto;
  padding: 4px 2px 8px;
  scrollbar-width: thin;
}

.gallery-lightbox__thumb {
  flex: 0 0 auto;
  width: 120px;
  aspect-ratio: 16 / 9;
  padding: 0;
  border-radius: 10px;
  overflow: hidden;
  border: 2px solid transparent;
  opacity: 0.55;
  cursor: pointer;
  transition: opacity 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
  background: #111;
}

.gallery-lightbox__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.gallery-lightbox__thumb:hover {
  opacity: 0.85;
  transform: translateY(-2px);
}

.gallery-lightbox__thumb--active {
  opacity: 1;
  border-color: var(--color-accent);
}

.gallery__decor {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.gallery__circle {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(104, 134, 10, 0.1);
}

.gallery__circle--1 {
  width: 400px;
  height: 400px;
  top: -100px;
  right: -100px;
}

.gallery__circle--2 {
  width: 250px;
  height: 250px;
  bottom: 50px;
  left: -50px;
}

.gallery__circle--3 {
  width: 150px;
  height: 150px;
  top: 50%;
  right: 20%;
  border-color: rgba(68, 136, 255, 0.1);
}

@media (max-width: 1024px) {
  .gallery-showcase {
    grid-template-columns: 1fr;
  }

  .gallery-hero {
    min-height: 420px;
  }

  .gallery-feature__content {
    flex-direction: column;
    text-align: center;
  }

  .gallery-feature__caption {
    text-align: center;
  }
}

@media (max-width: 640px) {
  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gallery-grid__more {
    grid-column: span 2;
    aspect-ratio: 16 / 9;
    flex-direction: row;
  }

  .gallery-lightbox__nav--prev { left: 4px; }
  .gallery-lightbox__nav--next { right: 4px; }

  .gallery-lightbox__thumb {
    width: 88px;
  }

  .gallery-hero {
    min-height: 360px;
  }

  .gallery-hero__nav {
    width: 38px;
    height: 38px;
  }
}

/* Start Section */
.start {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.start::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../assets/start-bg.webp') center / cover no-repeat;
  filter: sepia(0.75) hue-rotate(55deg) saturate(1.8) brightness(0.5);
  z-index: 0;
}

.start::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(104, 134, 10, 0.42) 0%,
    rgba(10, 10, 15, 0.78) 55%,
    rgba(10, 10, 15, 0.9) 100%
  );
  z-index: 0;
}

.start .container {
  position: relative;
  z-index: 1;
}

.start__steps {
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
}

.start-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 32px;
  align-items: center;
  padding: 40px;
  background: rgba(10, 10, 15, 0.78);
  backdrop-filter: blur(12px);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  transition: var(--transition);
}

.start-card:hover {
  border-color: rgba(104, 134, 10, 0.45);
  background: rgba(10, 10, 15, 0.88);
}

.start-card__number {
  font-size: 48px;
  font-weight: 800;
  color: var(--color-accent);
  opacity: 0.4;
  line-height: 1;
}

.start-card__title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 8px;
}

.start-card__desc {
  color: var(--color-text-muted);
  font-size: 15px;
  margin-bottom: 20px;
}

.start-card__price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 16px;
}

.start-card__price-label {
  font-size: 14px;
  color: var(--color-text-muted);
}

.start-card__price-value {
  font-size: 28px;
  font-weight: 800;
}

.start-card__visual {
  position: relative;
  width: 120px;
  height: 120px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  -webkit-tap-highlight-color: transparent;
}

.start-card__visual--gta,
.start-card__visual--launcher {
  width: 140px;
  height: 140px;
  padding: 14px;
  background: var(--start-visual-bg);
  border: 2px solid var(--start-visual-border);
  backdrop-filter: blur(var(--start-visual-blur)) saturate(1.35);
  -webkit-backdrop-filter: blur(var(--start-visual-blur)) saturate(1.35);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    inset 0 -12px 24px rgba(0, 0, 0, 0.25),
    0 10px 28px rgba(0, 0, 0, 0.35);
}

.start-card__visual--gta::before,
.start-card__visual--launcher::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.12) 0%,
    rgba(255, 255, 255, 0.03) 45%,
    rgba(0, 0, 0, 0.08) 100%
  );
  pointer-events: none;
}

.start-card__visual--gta::after,
.start-card__visual--launcher::after {
  content: '';
  position: absolute;
  inset: 6px;
  border-radius: calc(var(--radius-lg) - 4px);
  border: 1px solid rgba(255, 255, 255, 0.06);
  pointer-events: none;
}

.start-card__visual--gta {
  background:
    linear-gradient(160deg, rgba(255, 68, 68, 0.14), rgba(10, 10, 15, 0.2)),
    var(--start-visual-bg);
}

.start-card__visual--launcher {
  background:
    linear-gradient(160deg, rgba(104, 134, 10, 0.18), rgba(10, 10, 15, 0.2)),
    var(--start-visual-bg);
}

.start-card__logo {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.35));
}

.start__help {
  text-align: center;
  margin-top: 40px;
  color: var(--color-text-muted);
}

.start__help a {
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.start__help a:hover {
  color: var(--color-accent-light);
}

/* Social */
.social__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  max-width: 700px;
  margin: 0 auto 32px;
}

.social-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 28px 16px;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), border-color 0.25s ease, box-shadow 0.3s ease, color 0.25s ease;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  color: inherit;
  -webkit-tap-highlight-color: transparent;
}

.social-card svg {
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.3s ease;
}

.social-card:hover {
  transform: scale(1.08);
  border-color: var(--color-border-hover);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28);
}

.social-card:hover svg {
  transform: scale(1.2);
}

.social-card--discord:hover { color: #5865F2; border-color: #5865F2; }
.social-card--facebook:hover { color: #1877F2; border-color: #1877F2; }
.social-card--youtube:hover { color: #FF0000; border-color: #FF0000; }
.social-card--tiktok:hover { color: #FE2C55; border-color: #FE2C55; }

.social__partner {
  text-align: center;
  color: var(--color-text-muted);
}

.social__partner a {
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* FAQ */
.faq {
  background: var(--color-bg);
}

.faq__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
  flex-wrap: wrap;
  gap: 16px;
}

.faq__header .section__title {
  margin-bottom: 0;
}

.faq__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.faq-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 180px;
  padding: 24px;
  background: rgba(22, 22, 31, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  transition: var(--transition);
}

.faq-card:hover {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(28, 28, 40, 0.82);
}

.faq-card__title {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.45;
  color: var(--color-text);
}

.faq-card__text {
  margin: 0;
  font-size: 14px;
  line-height: 1.65;
  color: var(--color-text-muted);
}

.faq-card__text a,
.faq-card__link {
  color: #ff5555;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
}

.faq-card__text a:hover,
.faq-card__link:hover {
  color: #ff7777;
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 1024px) {
  .faq__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

.subscribe__card {
  background: linear-gradient(135deg, rgba(104, 134, 10, 0.1), rgba(68, 136, 255, 0.05));
  border: 1px solid rgba(104, 134, 10, 0.2);
  border-radius: var(--radius-xl);
  padding: 48px;
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.subscribe__title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 8px;
}

.subscribe__desc {
  color: var(--color-text-muted);
  margin-bottom: 28px;
}

.subscribe__form {
  display: flex;
  gap: 12px;
  max-width: 480px;
  margin: 0 auto 16px;
}

.subscribe__input {
  flex: 1;
  padding: 14px 20px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  color: var(--color-text);
  font-family: inherit;
  font-size: 14px;
  outline: none;
  transition: var(--transition);
}

.subscribe__input:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px var(--color-accent-glow);
}

.subscribe__input::placeholder {
  color: var(--color-text-dim);
}

.subscribe__policy {
  font-size: 12px;
  color: var(--color-text-dim);
}

.subscribe__policy a {
  color: var(--color-accent);
  text-decoration: underline;
}

/* Footer */
.footer {
  padding: 64px 0 32px;
  border-top: 1px solid var(--color-border);
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer__legal {
  margin-top: 20px;
  font-size: 12px;
  color: var(--color-text-dim);
  line-height: 1.8;
}

.footer__legal-note {
  margin-top: 8px;
}

.footer__col h4 {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer__col ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer__col a {
  font-size: 14px;
  color: var(--color-text-dim);
  transition: var(--transition);
}

.footer__col a:hover {
  color: var(--color-accent);
}

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 24px;
  border-top: 1px solid var(--color-border);
  flex-wrap: wrap;
  gap: 16px;
}

.footer__status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--color-text-muted);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.5);
  animation: status-pulse 2s infinite;
}

@keyframes status-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.footer__copy {
  font-size: 12px;
  color: var(--color-text-dim);
}

/* Responsive */
@media (max-width: 1100px) {
  .hero__roles { display: none; }
}

@media (max-width: 900px) {
  .nav:not(.nav--open) {
    display: none;
  }

  .header__inner {
    gap: 10px;
    min-width: 0;
  }

  .header__actions {
    gap: 6px;
    min-width: 0;
  }

  .logo {
    min-width: 0;
  }

  .logo__wordmark {
    display: none;
  }

  .logo__img {
    height: 38px;
  }

  /* Extra page buttons (Home, Back, etc.) — use burger menu instead */
  .header__actions > .btn--outline:not(.header__auth-signin) {
    display: none;
  }

  .header__auth .auth-user__info,
  .header__auth .hs-profile-user__info {
    display: none;
  }

  .header__auth .hs-profile-user,
  .header__auth .auth-user-wrap {
    max-width: none;
    padding-right: 4px;
  }

  .header__actions .lang-btn #langBtnLabel,
  .header__actions .lang-btn .lang-btn__chevron {
    display: none;
  }

  .header__actions .lang-btn {
    padding: 8px 10px;
  }

  .burger {
    display: flex;
    flex-shrink: 0;
    margin-left: 2px;
  }

  .nav.nav--open {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    bottom: auto;
    max-height: calc(100dvh - var(--header-height));
    background: rgba(9, 11, 18, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 0;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.45);
    padding: 16px;
    gap: 2px;
    z-index: 999;
    overflow-y: auto;
  }

  .nav.nav--open .nav__link {
    display: block;
    width: 100%;
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 500;
    color: var(--color-text-muted);
    text-align: center;
    border-radius: 10px;
    border: 1px solid transparent;
    transition: color 0.22s ease, background 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
  }

  .nav.nav--open .nav__link:hover,
  .nav.nav--open .nav__link:focus-visible {
    color: var(--color-text);
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
  }

  .nav.nav--open .nav__link--active {
    color: var(--hs-accent);
    background: rgba(123, 170, 30, 0.14);
    border-color: rgba(123, 170, 30, 0.4);
    box-shadow: 0 0 18px rgba(123, 170, 30, 0.18);
  }

  .start-card {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .start-card__number { font-size: 36px; }
  .start-card__visual { margin: 0 auto; }

  .social__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

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

  .path-card {
    height: 120px;
  }

  .subscribe__form {
    flex-direction: column;
  }

  .subscribe__card {
    padding: 32px 24px;
  }

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

  .faq__header {
    flex-direction: column;
    align-items: flex-start;
  }

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

/* Login Modal */
.login-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.login-modal--open {
  opacity: 1;
  visibility: visible;
}

.login-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
}

.login-modal__box {
  position: relative;
  width: 100%;
  max-width: 420px;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 40px 32px 32px;
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

.login-modal--open .login-modal__box {
  transform: translateY(0);
}

.login-modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 24px;
  line-height: 1;
  color: var(--color-text-muted);
  transition: var(--transition);
}

.login-modal__close:hover {
  color: var(--color-text);
  background: rgba(255, 255, 255, 0.05);
}

.login-modal__header {
  text-align: center;
  margin-bottom: 28px;
}

.login-modal__logo {
  height: 48px;
  width: auto;
  margin: 0 auto 16px;
}

.login-modal__header h2 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 6px;
}

.login-modal__header p {
  font-size: 14px;
  color: var(--color-text-muted);
}

.login-form__group {
  margin-bottom: 16px;
}

.login-form__group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--color-text-muted);
}

.login-form__group input {
  width: 100%;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  color: var(--color-text);
  font-family: inherit;
  font-size: 14px;
  outline: none;
  transition: var(--transition);
}

.login-form__group input:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px var(--color-accent-glow);
}

.login-form__error {
  min-height: 20px;
  font-size: 13px;
  color: #ff4444;
  margin-bottom: 8px;
}

.login-form__submit {
  width: 100%;
}

.login-modal__hint {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--color-border);
  font-size: 12px;
  color: var(--color-text-dim);
  text-align: center;
  line-height: 1.8;
}

.login-modal__hint strong {
  color: var(--color-text-muted);
}

.login-modal__box--auth {
  max-width: 440px;
}

.auth-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  padding: 4px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: var(--radius-sm);
}

.auth-tab {
  flex: 1;
  padding: 10px 16px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text-muted);
  transition: var(--transition);
}

.auth-tab--active {
  background: var(--color-accent);
  color: #fff;
}

.auth-tab:hover:not(.auth-tab--active) {
  color: var(--color-text);
}

.auth-panel {
  display: none;
}

.auth-panel--active {
  display: block;
}

.auth-user-wrap,
.hs-profile-user {
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: 999px;
  padding: 4px 12px 4px 4px;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: background 0.2s ease;
}

.auth-user-wrap:hover,
.hs-profile-user:hover {
  background: rgba(255, 255, 255, 0.06);
}

.auth-user-wrap:active,
.hs-profile-user:active {
  background: rgba(255, 255, 255, 0.1);
}

.auth-user__avatar,
.hs-profile-user__avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(123, 170, 30, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  color: var(--hs-accent);
  flex-shrink: 0;
  overflow: hidden;
}

.auth-user__avatar-img,
.hs-profile-user__avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.auth-user__info {
  display: flex;
  flex-direction: column;
  gap: 1px;
  line-height: 1.25;
  min-width: 0;
}

.auth-user__name,
.hs-profile-user__name {
  font-size: 14px;
  font-weight: 700;
  color: var(--color-text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.auth-user__role,
.hs-profile-user__role {
  font-size: 12px;
  font-weight: 500;
  color: var(--hs-muted);
}

@media (max-width: 900px) {
  .auth-user-wrap {
    padding-right: 8px;
  }

  .auth-user__info {
    display: none;
  }

  .header__auth .btn--outline:not(.header__auth-signin) {
    display: none;
  }
}

/* Admin App */
.admin-app {
  min-height: 100vh;
  background: var(--color-bg);
  display: flex;
  color-scheme: dark;
}

.admin-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 150;
}

.admin-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 260px;
  background: rgba(8, 8, 12, 0.98);
  border-right: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  z-index: 200;
  transition: transform 0.3s ease;
}

.admin-sidebar__brand {
  padding: 24px 20px;
  border-bottom: 1px solid var(--color-border);
}

.admin-sidebar__brand-link {
  display: flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
}

.admin-sidebar__brand-link:hover {
  color: var(--color-text);
}

.admin-sidebar__logo {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.admin-sidebar__title {
  display: block;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.admin-sidebar__wordmark {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.admin-sidebar__wordmark .logo__name {
  font-size: 13px;
  letter-spacing: 0.1em;
}

.admin-sidebar__wordmark .logo__badge {
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 7px;
  letter-spacing: 0.08em;
}

.admin-sidebar__badge {
  display: block;
  font-size: 11px;
  color: var(--color-accent);
  margin-top: 2px;
}

.admin-sidebar__nav {
  flex: 1;
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.22) rgba(255, 255, 255, 0.06);
}

.admin-sidebar__nav::-webkit-scrollbar,
.admin-content::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

.admin-sidebar__nav::-webkit-scrollbar-track,
.admin-content::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.04);
  border-radius: 999px;
}

.admin-sidebar__nav::-webkit-scrollbar-thumb,
.admin-content::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 999px;
}

.admin-sidebar__nav::-webkit-scrollbar-thumb:hover,
.admin-content::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.32);
}

.admin-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  box-sizing: border-box;
  color: var(--color-text-muted);
  font-size: 14px;
  font-weight: 600;
  text-align: left;
  text-decoration: none;
  transition: var(--transition);
}

.admin-nav-item:hover {
  color: var(--color-text);
  background: rgba(255, 255, 255, 0.04);
}

.admin-nav-item--active {
  color: #fff;
  background: rgba(104, 134, 10, 0.18);
  border: 1px solid rgba(104, 134, 10, 0.35);
}

.admin-sidebar__footer {
  padding: 16px;
  border-top: 1px solid var(--color-border);
}

.admin-sidebar__user {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.admin-sidebar__avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(104, 134, 10, 0.55), rgba(80, 104, 8, 0.95));
  font-weight: 800;
  font-size: 14px;
}

.admin-sidebar__user strong {
  display: block;
  font-size: 14px;
}

.admin-sidebar__user span {
  font-size: 12px;
  color: var(--color-text-muted);
}

.admin-sidebar__footer-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.admin-shell {
  flex: 1;
  margin-left: 260px;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.admin-topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 28px;
  background: rgba(10, 10, 15, 0.92);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--color-border);
}

.admin-topbar__menu {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}

.admin-topbar__menu span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
}

.admin-topbar__info {
  flex: 1;
  min-width: 0;
}

.admin-topbar__title {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 4px;
}

.admin-topbar__subtitle {
  font-size: 14px;
  color: var(--color-text-muted);
}

.admin-topbar__status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--color-text-muted);
  white-space: nowrap;
}

.admin-topbar__right {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-left: auto;
  flex-shrink: 0;
}

.admin-topbar__profile {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-left: 20px;
  border-left: 1px solid var(--color-border);
}

.admin-topbar__user {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.admin-topbar__profile-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.admin-topbar__profile-actions .btn--sm {
  padding: 7px 12px;
  font-size: 12px;
}

.admin-content {
  padding: 28px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.22) rgba(255, 255, 255, 0.06);
}

.admin-section {
  display: none;
}

.admin-section--active {
  display: block;
  animation: admin-fade-in 0.25s ease;
}

@keyframes admin-fade-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.admin-dash-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 24px;
}

.admin-stats--dash {
  margin-bottom: 24px;
}

/* ===== Sneat-style dashboard ===== */
.sneat-top-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 24px;
  margin-bottom: 24px;
}

.sneat-welcome {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 28px;
  background:
    radial-gradient(120% 140% at 100% 0%, rgba(104, 134, 10, 0.22), transparent 60%),
    var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
}

.sneat-welcome__title {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 10px;
}

.sneat-welcome__emoji {
  font-size: 18px;
}

.sneat-welcome__text {
  font-size: 14px;
  color: var(--color-text-muted);
  line-height: 1.6;
  margin-bottom: 18px;
  max-width: 360px;
}

.sneat-welcome__text strong {
  color: var(--color-accent-light);
}

.sneat-welcome__art img {
  width: 120px;
  height: 120px;
  object-fit: contain;
  opacity: 0.92;
  filter: drop-shadow(0 12px 28px rgba(0, 0, 0, 0.5));
}

.sneat-mini-grid {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 24px;
}

.sneat-mini-card,
.sneat-stat-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  transition: var(--transition);
}

.sneat-mini-card:hover,
.sneat-stat-card:hover {
  border-color: rgba(104, 134, 10, 0.4);
  transform: translateY(-2px);
}

.sneat-mini-card__icon,
.sneat-stat-card__icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.sneat-mini-card__icon--green,
.sneat-stat-card__icon--green {
  background: rgba(34, 197, 94, 0.14);
  color: #4ade80;
}

.sneat-mini-card__icon--orange,
.sneat-stat-card__icon--orange {
  background: rgba(249, 115, 22, 0.14);
  color: #fb923c;
}

.sneat-stat-card__icon--blue {
  background: rgba(59, 130, 246, 0.14);
  color: #60a5fa;
}

.sneat-stat-card__icon--purple {
  background: rgba(168, 85, 247, 0.14);
  color: #c084fc;
}

.sneat-mini-card__label,
.sneat-stat-card__label {
  display: block;
  font-size: 13px;
  color: var(--color-text-muted);
  margin-bottom: 6px;
}

.sneat-mini-card__value,
.sneat-stat-card__value {
  display: block;
  font-size: 26px;
  font-weight: 800;
  line-height: 1.1;
}

.sneat-mini-card__value--online {
  color: #22c55e;
  font-size: 22px;
}

.sneat-mini-card__delta {
  display: inline-block;
  margin-top: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--color-text-muted);
}

.sneat-mini-card__delta--up {
  color: #4ade80;
}

.sneat-mini-card__delta--down {
  color: #f87171;
}

.sneat-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  margin-bottom: 24px;
}

.admin-shop-stats {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.admin-store-status-panel {
  margin-bottom: 24px;
}

.admin-store-status-msg {
  margin: 10px 0 0;
  font-size: 0.9rem;
  color: var(--color-text-muted, #94a3b8);
  max-width: 52rem;
}

.admin-store-status-actions {
  align-items: center;
  gap: 12px;
}

.admin-store-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.admin-store-badge--open {
  background: rgba(34, 197, 94, 0.14);
  color: #4ade80;
}

.admin-store-badge--closed {
  background: rgba(239, 68, 68, 0.14);
  color: #f87171;
}

.sneat-chart-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 24px;
  margin-bottom: 24px;
}

.sneat-traffic-servers {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0 20px 16px;
}

.sneat-traffic-servers__empty {
  margin: 0;
  font-size: 13px;
  color: var(--color-text-muted);
}

.sneat-traffic-server {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.sneat-traffic-server:hover {
  border-color: rgba(104, 134, 10, 0.35);
  background: rgba(255, 255, 255, 0.05);
}

.sneat-traffic-server--traphouse:hover {
  border-color: rgba(255, 107, 107, 0.35);
}

.sneat-traffic-server--active {
  border-color: rgba(34, 197, 94, 0.45);
  background: rgba(34, 197, 94, 0.08);
  box-shadow: 0 0 0 1px rgba(34, 197, 94, 0.12);
}

.sneat-traffic-server--traphouse.sneat-traffic-server--active {
  border-color: rgba(255, 107, 107, 0.45);
  background: rgba(255, 107, 107, 0.08);
  box-shadow: 0 0 0 1px rgba(255, 107, 107, 0.12);
}

.sneat-traffic-server__info {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.sneat-traffic-server__logo {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border-radius: 50%;
  object-fit: contain;
}

.sneat-traffic-server__main {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.sneat-traffic-server__name {
  font-size: 16px;
  font-weight: 700;
}

.sneat-traffic-server__badge {
  display: inline-flex;
  align-self: flex-start;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(104, 134, 10, 0.14);
  border: 1px solid rgba(104, 134, 10, 0.28);
  color: var(--color-accent-light);
  font-size: 11px;
  font-weight: 700;
}

.sneat-traffic-server--traphouse .sneat-traffic-server__badge {
  background: rgba(255, 68, 68, 0.12);
  border-color: rgba(255, 68, 68, 0.28);
  color: #ff6b6b;
}

.sneat-traffic-server__online {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  flex-shrink: 0;
}

.sneat-traffic-server__count {
  font-size: 28px;
  font-weight: 800;
  line-height: 1;
}

.sneat-traffic-server__label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  text-transform: lowercase;
}

.sneat-traffic-server__label--city {
  color: #22c55e;
}

.sneat-traffic-server__label--traphouse {
  color: #ff6b6b;
}

.sneat-traffic-server__label--offline {
  color: var(--color-text-muted);
}

.admin-chart-legend__dot--red {
  background: #ff6b6b;
}

/* Audience stats table (Sneat Browser / OS / Country) */
.sneat-audience {
  margin-bottom: 24px;
  padding: 0;
  overflow: hidden;
}

.sneat-audience__head {
  padding: 20px 24px 0;
}

.sneat-audience__tabs {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
}

.sneat-audience__tab {
  padding: 8px 18px;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: var(--color-text-muted);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.sneat-audience__tab:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}

.sneat-audience__tab--active {
  color: #fff;
  background: #696cff;
  box-shadow: 0 4px 14px rgba(105, 108, 255, 0.35);
}

.sneat-audience__table-wrap {
  overflow-x: auto;
  padding: 8px 8px 16px;
}

.sneat-audience__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.sneat-audience__table th {
  padding: 14px 16px;
  text-align: left;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-text-dim);
  border-bottom: 1px solid var(--color-border);
}

.sneat-audience__table th:last-child {
  min-width: 220px;
}

.sneat-audience__table td {
  padding: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  vertical-align: middle;
}

.sneat-audience__table tbody tr:last-child td {
  border-bottom: none;
}

.sneat-audience__table tbody tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

.sneat-audience__no {
  color: var(--color-text-dim);
  font-weight: 600;
  width: 48px;
}

.sneat-audience__name {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.sneat-audience__icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 800;
  color: #fff;
  overflow: hidden;
}

.sneat-audience__icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sneat-audience__visits {
  font-weight: 600;
  color: rgba(255, 255, 255, 0.88);
}

.sneat-audience__pct-cell {
  display: flex;
  align-items: center;
  gap: 14px;
}

.sneat-audience__bar {
  flex: 1;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
  min-width: 100px;
}

.sneat-audience__bar-fill {
  display: block;
  height: 100%;
  border-radius: 999px;
  transition: width 0.5s ease;
}

.sneat-audience__pct {
  min-width: 52px;
  text-align: right;
  font-weight: 700;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.85);
}

.sneat-audience__bar-fill--green { background: #71dd37; }
.sneat-audience__bar-fill--purple { background: #696cff; }
.sneat-audience__bar-fill--cyan { background: #03c3ec; }
.sneat-audience__bar-fill--orange { background: #ffab00; }
.sneat-audience__bar-fill--red { background: #ff3e1d; }
.sneat-audience__bar-fill--coral { background: #ff6f61; }

.sneat-audience__icon--chrome { background: linear-gradient(135deg, #ea4335, #fbbc04, #34a853, #4285f4); }
.sneat-audience__icon--safari { background: linear-gradient(135deg, #2997ff, #5856d6); }
.sneat-audience__icon--firefox { background: linear-gradient(135deg, #ff7139, #ff9500); }
.sneat-audience__icon--edge { background: linear-gradient(135deg, #0078d4, #50e6ff); }
.sneat-audience__icon--opera { background: linear-gradient(135deg, #ff1b2d, #ff4b4b); }
.sneat-audience__icon--uc { background: linear-gradient(135deg, #ff6600, #ff9900); }
.sneat-audience__icon--windows { background: linear-gradient(135deg, #0078d4, #00bcf2); }
.sneat-audience__icon--mac { background: linear-gradient(135deg, #555, #aaa); }
.sneat-audience__icon--ubuntu { background: linear-gradient(135deg, #e95420, #772953); }
.sneat-audience__icon--cent { background: linear-gradient(135deg, #932279, #efa724); }
.sneat-audience__icon--linux { background: linear-gradient(135deg, #fcc624, #333); }

.sneat-audience__icon--flag {
  background: rgba(255, 255, 255, 0.06);
  font-size: 16px;
  line-height: 1;
}

/* Donut */
.sneat-donut {
  position: relative;
  width: 200px;
  height: 200px;
  margin: 8px auto 18px;
}

.sneat-donut__svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.sneat-donut__center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.sneat-donut__total {
  font-size: 24px;
  font-weight: 800;
}

.sneat-donut__label {
  font-size: 12px;
  color: var(--color-text-muted);
}

.sneat-donut-legend {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sneat-donut-legend__item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
}

.sneat-donut-legend__dot {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  flex-shrink: 0;
}

.sneat-donut-legend__name {
  color: var(--color-text-muted);
}

.sneat-donut-legend__value {
  margin-left: auto;
  font-weight: 700;
}

/* Activity timeline (Sneat style) */
.admin-activity.sneat-timeline {
  position: relative;
  list-style: none;
  margin: 0;
  padding: 4px 0 0 8px;
  gap: 0;
}

.admin-activity.sneat-timeline li {
  position: relative;
  flex-direction: column;
  gap: 2px;
  padding: 0 0 20px 22px;
  border-bottom: none;
  border-left: 2px solid var(--color-border);
}

.admin-activity.sneat-timeline li:last-child {
  padding-bottom: 0;
  border-left-color: transparent;
}

.admin-activity.sneat-timeline li::before {
  content: "";
  position: absolute;
  left: -6px;
  top: 2px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-accent-light);
  box-shadow: 0 0 0 3px rgba(104, 134, 10, 0.18);
}

.admin-activity.sneat-timeline .admin-activity__time {
  min-width: 0;
}

@media (max-width: 980px) {
  .sneat-top-grid,
  .sneat-chart-grid {
    grid-template-columns: 1fr;
  }

  .sneat-mini-grid {
    grid-template-rows: none;
    grid-template-columns: 1fr 1fr;
  }

  .sneat-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .sneat-stats,
  .sneat-mini-grid {
    grid-template-columns: 1fr;
  }

  .sneat-welcome__art {
    display: none;
  }
}

.admin-analytics-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-bottom: 24px;
}

.admin-chart-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 22px 22px 18px;
}

.admin-chart-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.admin-chart-card__title-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.admin-chart-card__icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.admin-chart-card__icon--blue {
  background: rgba(59, 130, 246, 0.12);
  color: #60a5fa;
}

.admin-chart-card__icon--green {
  background: rgba(34, 197, 94, 0.12);
  color: #4ade80;
}

.admin-chart-card__title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 2px;
}

.admin-chart-card__sub {
  font-size: 12px;
  color: var(--color-text-muted);
}

.admin-chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12px;
  color: var(--color-text-muted);
}

.admin-chart-legend__item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.admin-chart-legend__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

.admin-chart-legend__dot--green {
  background: #22c55e;
}

.admin-chart-legend__dot--orange {
  background: #f97316;
}

.admin-chart-card__body {
  height: 220px;
}

.admin-chart {
  width: 100%;
  height: 100%;
  display: block;
}

.admin-chart__grid {
  stroke: rgba(255, 255, 255, 0.06);
  stroke-width: 1;
}

.admin-chart__axis {
  fill: var(--color-text-dim);
  font-size: 10px;
  text-anchor: end;
}

.admin-chart__axis--x {
  text-anchor: middle;
  font-size: 10px;
}

.admin-actions--grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.admin-action-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  text-decoration: none;
  color: inherit;
  text-align: left;
  transition: var(--transition);
}

.admin-action-card strong {
  font-size: 14px;
}

.admin-action-card span {
  font-size: 12px;
  color: var(--color-text-muted);
  line-height: 1.4;
}

.admin-action-card:hover {
  border-color: rgba(104, 134, 10, 0.45);
  background: rgba(104, 134, 10, 0.08);
  transform: translateY(-2px);
}

.admin-panel__toolbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.admin-panel--flush {
  padding: 28px;
}

.admin-search {
  min-width: 220px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--color-text);
  font-size: 14px;
}

.admin-search:focus {
  outline: none;
  border-color: var(--color-accent);
}

select.admin-search {
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  min-width: 150px;
  padding-right: 36px;
  color-scheme: dark;
  background-color: rgba(255, 255, 255, 0.04);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23ffffff99' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}

select.admin-search option {
  background-color: var(--color-bg-card);
  color: var(--color-text);
}

select.admin-search option:checked {
  background-color: var(--color-bg-card-hover);
  color: var(--color-text);
}

.admin-table__empty {
  text-align: center;
  color: var(--color-text-muted);
  padding: 32px !important;
}

.admin-activity--full {
  max-height: none;
}

.admin-activity__empty {
  color: var(--color-text-muted);
  justify-content: center;
}

.admin-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  padding: 14px 18px;
  background: rgba(10, 10, 15, 0.96);
  border: 1px solid rgba(104, 134, 10, 0.45);
  border-radius: var(--radius-md);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
  transform: translateY(12px);
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.admin-toast--visible {
  opacity: 1;
  transform: translateY(0);
}

/* Admin Page (legacy + shared) */
.admin-page {
  min-height: 100vh;
  background: var(--color-bg);
}

.admin-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 10, 15, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--color-border);
  padding: 16px 0;
}

.admin-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.admin-header__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.admin-badge {
  padding: 4px 10px;
  background: rgba(104, 134, 10, 0.15);
  border: 1px solid rgba(104, 134, 10, 0.3);
  border-radius: 50px;
  font-size: 12px;
  font-weight: 700;
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.admin-user {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text-muted);
}

.admin-main {
  padding: 40px 24px 80px;
}

.admin-welcome {
  margin-bottom: 32px;
}

.admin-welcome h1 {
  font-size: clamp(28px, 4vw, 36px);
  font-weight: 800;
  margin-bottom: 8px;
}

.admin-welcome p {
  color: var(--color-text-muted);
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}

.admin-stat-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.admin-stat-card__label {
  display: block;
  font-size: 13px;
  color: var(--color-text-muted);
  margin-bottom: 8px;
}

.admin-stat-card__value {
  font-size: 28px;
  font-weight: 800;
}

.admin-stat-card__value--online {
  color: #22c55e;
  font-size: 22px;
}

.admin-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.admin-panel {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 28px;
}

.admin-panel--full {
  grid-column: 1 / -1;
}

.admin-panel h2 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 20px;
}

.admin-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.admin-action-btn {
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  text-align: left;
  transition: var(--transition);
  cursor: pointer;
  color: inherit;
}

.admin-action-btn:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
  background: rgba(104, 134, 10, 0.08);
}

.admin-table-wrap {
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.admin-table th,
.admin-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--color-border);
}

.admin-table th {
  font-size: 12px;
  font-weight: 700;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.admin-role {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 600;
}

.admin-role--admin {
  background: rgba(104, 134, 10, 0.15);
  color: var(--color-accent);
}

.admin-role--user {
  background: rgba(68, 136, 255, 0.15);
  color: #4488ff;
}

.admin-status--active {
  color: #22c55e;
  font-weight: 600;
}

.admin-activity {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.admin-activity li {
  display: flex;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--color-border);
  font-size: 14px;
  color: var(--color-text-muted);
}

.admin-activity li:last-child {
  border-bottom: none;
}

.admin-activity__time {
  color: var(--color-text-dim);
  font-size: 12px;
  min-width: 120px;
  flex-shrink: 0;
}

.admin-activity__text {
  color: var(--color-text-muted);
  flex: 1;
  min-width: 0;
}

@media (max-width: 900px) {
  .admin-sidebar {
    transform: translateX(-100%);
  }

  .admin-sidebar--open {
    transform: translateX(0);
  }

  .admin-shell {
    margin-left: 0;
  }

  .admin-topbar__menu {
    display: flex;
  }

  .admin-dash-grid {
    grid-template-columns: 1fr;
  }

  .admin-analytics-grid {
    grid-template-columns: 1fr;
  }

  .admin-actions--grid {
    grid-template-columns: 1fr;
  }

  .admin-content {
    padding: 20px 16px 40px;
  }

  .admin-stats {
    grid-template-columns: repeat(2, 1fr);
  }

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

@media (max-width: 640px) {
  .admin-stats {
    grid-template-columns: 1fr;
  }

  .login-modal__box {
    padding: 32px 24px 24px;
  }
}

/* Shop Page */
.shop-page {
  padding-top: var(--header-height);
}

.shop-hero {
  padding-bottom: 40px;
  background: linear-gradient(180deg, var(--color-bg-elevated) 0%, var(--color-bg) 100%);
}

.shop-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 32px;
  justify-content: center;
}

.shop-filter {
  padding: 8px 18px;
  border-radius: 50px;
  border: 1px solid var(--color-border);
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text-muted);
  transition: var(--transition);
}

.shop-filter:hover,
.shop-filter--active {
  border-color: var(--color-accent);
  color: var(--color-accent);
  background: rgba(104, 134, 10, 0.08);
}

.shop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.shop-card {
  position: relative;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  padding: 0;
}

.shop-card:hover {
  border-color: var(--color-border-hover);
  transform: translateY(-4px);
}

.shop-card__image-wrap {
  position: relative;
  width: 100%;
  height: 180px;
  overflow: hidden;
  background: #0a0a0f;
}

.shop-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.shop-card:hover .shop-card__image {
  transform: scale(1.05);
}

.shop-card__body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.shop-card__badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 4px 10px;
  background: var(--color-accent);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  border-radius: 50px;
  text-transform: uppercase;
  z-index: 1;
}

.shop-card__category {
  font-size: 12px;
  font-weight: 600;
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.shop-card__name {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
}

.shop-card__desc {
  font-size: 14px;
  color: var(--color-text-muted);
  line-height: 1.6;
  flex: 1;
  margin-bottom: 20px;
}

.shop-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--color-border);
}

.shop-card__price {
  font-size: 22px;
  font-weight: 800;
}

.shop-empty {
  text-align: center;
  color: var(--color-text-muted);
  padding: 48px 0;
}

.purchase-image {
  width: 100%;
  max-height: 160px;
  object-fit: cover;
  border-radius: var(--radius-md);
  margin-bottom: 16px;
}

.admin-shop-thumb {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
}

.admin-home-images__section {
  margin-top: 28px;
}

.admin-home-images__section h3 {
  margin-bottom: 16px;
}

.admin-home-images__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.admin-home-images__grid--people {
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
}

.admin-home-image {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-bg-card);
}

.admin-home-image--promo {
  display: block;
  margin-bottom: 16px;
}

.admin-home-image__body--promo {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.admin-home-image__preview {
  width: 96px;
  height: 96px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--color-border);
  background: rgba(0, 0, 0, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
}

.admin-home-image__preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.admin-home-image__empty {
  font-size: 12px;
  color: var(--color-text-muted);
  text-align: center;
  padding: 8px;
}

.admin-home-image__body h4 {
  margin: 0 0 8px;
  font-size: 14px;
}

.admin-home-image__body .admin-form__group {
  margin-bottom: 0;
}

.admin-home-image__actions {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-home-image[data-merch-product] .admin-home-image__preview {
  background:
    repeating-conic-gradient(rgba(255, 255, 255, 0.06) 0% 25%, transparent 0% 50%) 50% / 14px 14px,
    var(--color-bg-card);
}

.admin-home-image[data-merch-product] .admin-home-image__preview img {
  object-fit: contain;
  background: transparent;
}

.admin-people-group__title {
  margin: 20px 0 12px;
  font-size: 1rem;
  font-weight: 600;
}

.admin-manage-image-filter {
  margin: 20px 0 8px;
  max-width: 420px;
}

.admin-manage-image-filter .admin-form__group {
  margin-bottom: 0;
}

.admin-people-modal,
.admin-shop-modal {
  position: fixed;
  inset: 0;
  z-index: 4000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.admin-people-modal--open,
.admin-shop-modal--open {
  opacity: 1;
  visibility: visible;
}

.admin-people-modal__overlay,
.admin-shop-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(6px);
}

.admin-people-modal__box,
.admin-shop-modal__box {
  position: relative;
  width: min(100%, 560px);
  max-height: min(92vh, 720px);
  overflow: auto;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 28px 28px 24px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
  transform: translateY(16px) scale(0.98);
  transition: transform 0.25s ease;
}

.admin-shop-modal__box {
  width: min(100%, 640px);
}

.admin-people-modal--open .admin-people-modal__box,
.admin-shop-modal--open .admin-shop-modal__box {
  transform: translateY(0) scale(1);
}

.admin-people-modal__close,
.admin-shop-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
  color: var(--color-text-muted);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  transition: var(--transition);
}

.admin-people-modal__close:hover,
.admin-shop-modal__close:hover {
  color: var(--color-text);
  border-color: var(--color-accent);
}

.admin-people-modal__title,
.admin-shop-modal__title {
  margin: 0 40px 20px 0;
  font-size: 1.25rem;
  font-weight: 700;
}

.admin-people-modal__actions,
.admin-shop-modal__actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--color-border);
}

.admin-shop-modal__form {
  margin: 0;
}

.admin-shop-modal__form .admin-form__grid {
  margin-bottom: 0;
}

.admin-people-member--modal {
  grid-template-columns: 112px 1fr;
  border: none;
  padding: 0;
  background: transparent;
}

.admin-people-modal__preview {
  width: 112px;
  height: 112px;
}

.admin-people-flag {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 10px 0 0;
  font-size: 13px;
  color: var(--color-text-muted);
  cursor: pointer;
}

.admin-people-flag input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--color-accent);
  cursor: pointer;
}

.admin-panel__toolbar--wrap {
  flex-wrap: wrap;
  gap: 12px;
}

.admin-panel--spaced {
  margin-top: 24px;
}

.purchase-summary {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 16px;
}

.purchase-summary__row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  font-size: 14px;
  color: var(--color-text-muted);
}

.purchase-summary__row strong {
  color: var(--color-text);
}

.purchase-note {
  font-size: 13px;
  color: var(--color-text-dim);
  text-align: center;
  margin-bottom: 16px;
}

/* Admin Shop Form */
.admin-panel__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 24px;
}

.admin-panel__sub {
  font-size: 13px;
  color: var(--color-text-muted);
  margin-top: 4px;
}

.admin-panel__sub a {
  color: var(--color-accent);
}

.admin-form h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 16px;
}

.admin-form__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 20px;
}

.admin-form__group--full {
  grid-column: 1 / -1;
}

.admin-form__group label,
.admin-home-image__body .admin-form__group label,
.admin-home-image--promo .admin-form__group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text-muted);
  margin-bottom: 6px;
}

.admin-form__group input,
.admin-form__group select,
.admin-form__group textarea,
.admin-home-image__body .admin-form__group input,
.admin-home-image--promo .admin-form__group input {
  width: 100%;
  padding: 10px 14px;
  background-color: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  color: var(--color-text);
  font-family: inherit;
  font-size: 14px;
  outline: none;
  transition: var(--transition);
  resize: vertical;
}

.admin-form__group select {
  cursor: pointer;
  appearance: none;
  padding-right: 36px;
  color-scheme: dark;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23ffffff99' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-color: var(--color-bg-card);
}

.admin-form__group select option {
  background-color: var(--color-bg-card);
  color: var(--color-text);
}

.admin-form__group select option:checked {
  background-color: var(--color-bg-card-hover);
  color: var(--color-text);
}

.admin-form__group input:focus,
.admin-form__group select:focus,
.admin-form__group textarea:focus,
.admin-home-image__body .admin-form__group input:focus,
.admin-home-image--promo .admin-form__group input:focus {
  border: 1px solid var(--color-accent);
  box-shadow: 0 0 0 1px rgba(104, 134, 10, 0.25);
}

.admin-form__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}

.admin-table-wrap--spaced {
  margin-top: 8px;
}

.admin-backup-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  margin: 18px 0 22px;
}

.admin-backup-summary__item {
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.admin-backup-summary__label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.55);
}

.admin-backup-summary__item strong {
  font-size: 0.9375rem;
  color: #fff;
}

.admin-table__actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.admin-form__grid--stats {
  margin-bottom: 24px;
}

.admin-servers-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.admin-server-row {
  display: grid;
  grid-template-columns: minmax(180px, 1.4fr) 120px auto auto;
  gap: 16px;
  align-items: center;
  padding: 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.02);
}

.admin-server-row__info {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.admin-server-row__logo {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: contain;
  flex-shrink: 0;
}

.admin-server-row__info strong {
  display: block;
  font-size: 15px;
}

.admin-server-row__id {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  color: var(--color-text-muted);
}

.admin-field--inline {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
  color: var(--color-text-muted);
}

.admin-field--inline input {
  width: 100%;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  background: rgba(255, 255, 255, 0.04);
  color: inherit;
}

.admin-server-row__status {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

@media (max-width: 900px) {
  .admin-server-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .admin-form__grid {
    grid-template-columns: 1fr;
  }
}

/* Hanuman ID login page */
.id-page {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: max(24px, env(safe-area-inset-top)) 24px max(24px, env(safe-area-inset-bottom));
  position: relative;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.id-page > .id-card {
  flex-shrink: 0;
  width: 100%;
  margin-top: auto;
  margin-bottom: auto;
}

.id-page__bg {
  position: fixed;
  inset: 0;
  background:
    linear-gradient(rgba(10, 10, 15, 0.82), rgba(10, 10, 15, 0.92)),
    url('../assets/hero-bg.webp') center / cover no-repeat;
  filter: blur(2px);
  transform: scale(1.05);
  z-index: 0;
}

.id-page__lang {
  position: fixed;
  top: max(20px, env(safe-area-inset-top));
  right: max(20px, env(safe-area-inset-right));
  z-index: 100;
}

.id-page__lang .lang-menu {
  right: 0;
  left: auto;
}

.header .lang-switcher {
  z-index: 30;
}

.header .lang-menu {
  right: 0;
  left: auto;
}

.id-page__fx {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.id-page__fx .site-star--login {
  animation:
    star-twinkle var(--twinkle-dur, 3s) ease-in-out infinite,
    login-star-float var(--float-dur, 7s) ease-in-out infinite;
  animation-delay: var(--twinkle-delay, 0s), var(--float-delay, 0s);
}

.id-page__fx .hanuman-float {
  animation:
    hanuman-bob var(--bob-duration, 8s) ease-in-out infinite,
    hanuman-appear var(--fade-duration, 16s) ease-in-out infinite;
}

@keyframes login-star-float {
  0%, 100% {
    translate: 0 0;
  }
  50% {
    translate: var(--drift-x, 0) var(--float-y, -30px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .id-page__fx .site-star--login {
    animation: none;
    opacity: var(--star-max, 0.3);
  }
}

.id-card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 440px;
  padding: 36px 32px 28px;
  background: rgba(22, 22, 31, 0.96);
  border: 1px solid var(--color-border);
  border-radius: 20px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
}

.id-auth-card {
  max-width: 880px;
  padding: 24px 28px 20px;
}

.id-auth-shell {
  position: relative;
  margin-top: 8px;
}

.id-auth-container {
  position: relative;
  min-height: 460px;
  overflow: hidden;
  border-radius: 16px;
  background: rgba(14, 14, 20, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition:
    opacity 550ms cubic-bezier(0.77, 0, 0.18, 1),
    transform 550ms cubic-bezier(0.77, 0, 0.18, 1),
    filter 550ms cubic-bezier(0.77, 0, 0.18, 1),
    min-height 350ms cubic-bezier(0.77, 0, 0.18, 1);
}

.id-auth-container.active:has(.id-signup-step[data-step="1"]:not([hidden])) {
  min-height: 390px;
}

.id-auth-container.active:has(.id-signup-step[data-step="2"]:not([hidden])) {
  min-height: 518px;
}

.id-auth-container.active:has(.id-signup-step[data-step="3"]:not([hidden])) {
  min-height: 548px;
}

.id-auth-container:not(.active) {
  min-height: 520px;
}

.id-auth-form {
  position: absolute;
  top: 0;
  width: 50%;
  height: 100%;
  padding: 24px 22px 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  transition:
    opacity 900ms cubic-bezier(0.77, 0, 0.18, 1),
    transform 900ms cubic-bezier(0.77, 0, 0.18, 1),
    filter 900ms cubic-bezier(0.77, 0, 0.18, 1);
}

.id-auth-form--login {
  left: 0;
  z-index: 1;
  justify-content: flex-start;
  padding-top: 18px;
}

.id-auth-form--signup {
  left: 50%;
  z-index: 1;
  justify-content: flex-start;
  padding-top: 18px;
  opacity: 0;
  transform: translateX(80px);
  filter: blur(6px);
  pointer-events: none;
}

.id-auth-form__title {
  margin: 0 0 18px;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.id-auth-container.active .id-auth-form--login {
  opacity: 0;
  transform: translateX(-80px);
  filter: blur(6px);
  pointer-events: none;
}

.id-auth-container.active .id-auth-form--signup {
  opacity: 1;
  transform: translateX(0);
  filter: blur(0);
  pointer-events: auto;
}

.id-auth-overlay-container {
  position: absolute;
  top: 0;
  left: 50%;
  width: 50%;
  height: 100%;
  overflow: hidden;
  z-index: 5;
  pointer-events: none;
  transition:
    transform 900ms cubic-bezier(0.77, 0, 0.18, 1),
    opacity 550ms cubic-bezier(0.77, 0, 0.18, 1),
    filter 550ms cubic-bezier(0.77, 0, 0.18, 1);
}

.id-auth-container.active .id-auth-overlay-container {
  transform: translateX(-100%);
}

.id-auth-overlay {
  position: relative;
  width: 200%;
  height: 100%;
  display: flex;
  transform: translateX(-50%);
  transition: transform 900ms cubic-bezier(0.77, 0, 0.18, 1);
}

.id-auth-container.active .id-auth-overlay {
  transform: translateX(0);
}

.id-auth-overlay-panel {
  width: 50%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 32px 28px;
  text-align: center;
  color: #0b0f1a;
  background: linear-gradient(145deg, #d4ff00 0%, #9acd00 28%, #2d8f5a 62%, #145a38 100%);
  pointer-events: auto;
  transition:
    transform 900ms cubic-bezier(0.77, 0, 0.18, 1),
    clip-path 900ms cubic-bezier(0.77, 0, 0.18, 1);
}

.id-auth-overlay-panel--right {
  clip-path: polygon(14% 0, 100% 0, 100% 100%, 0 100%);
}

.id-auth-overlay-panel--left {
  clip-path: polygon(0 0, 86% 0, 100% 100%, 0 100%);
}

.id-auth-container.active .id-auth-overlay-panel--right {
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
}

.id-auth-container.active .id-auth-overlay-panel--left {
  clip-path: polygon(0 0, 86% 0, 100% 100%, 0 100%);
}

.id-auth-overlay__title {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1.2;
}

.id-auth-overlay__text {
  margin: 0;
  max-width: 240px;
  font-size: 13px;
  line-height: 1.55;
  color: rgba(11, 15, 26, 0.78);
}

.id-auth-ghost-btn {
  margin-top: 8px;
  min-width: 148px;
  padding: 12px 28px;
  border-radius: 999px;
  border: 2px solid rgba(11, 15, 26, 0.85);
  background: transparent;
  color: #0b0f1a;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.id-auth-ghost-btn:hover {
  background: rgba(11, 15, 26, 0.92);
  color: #d4ff00;
  transform: translateY(-1px);
}

.id-auth-mobile-only {
  display: none;
}

.id-auth-recover {
  position: absolute;
  inset: 0;
  z-index: 10;
  padding: 28px 26px 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: rgba(14, 14, 20, 0.98);
  border-radius: 16px;
  opacity: 0;
  visibility: hidden;
  transform: translateX(48px);
  filter: blur(8px);
  pointer-events: none;
  transition:
    opacity 550ms cubic-bezier(0.77, 0, 0.18, 1),
    transform 550ms cubic-bezier(0.77, 0, 0.18, 1),
    filter 550ms cubic-bezier(0.77, 0, 0.18, 1),
    visibility 550ms;
}

.id-auth-shell--recover .id-auth-recover {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
  filter: blur(0);
  pointer-events: auto;
}

.id-auth-shell--recover .id-auth-container {
  opacity: 0;
  transform: scale(0.96) translateX(-32px);
  filter: blur(6px);
  pointer-events: none;
}

.id-auth-shell--recover .id-auth-form--login {
  opacity: 0;
  transform: translateX(-80px);
  filter: blur(6px);
  pointer-events: none;
}

.id-auth-shell--recover .id-auth-overlay-container {
  opacity: 0;
  filter: blur(4px);
}

.id-auth-shell--recover .id-auth-recover .id-auth-form__title {
  animation: id-recover-item-in 520ms cubic-bezier(0.77, 0, 0.18, 1) 90ms backwards;
}

.id-auth-shell--recover .id-auth-recover__intro {
  animation: id-recover-item-in 520ms cubic-bezier(0.77, 0, 0.18, 1) 150ms backwards;
}

.id-auth-shell--recover .id-auth-recover .id-field:nth-of-type(1) {
  animation: id-recover-item-in 520ms cubic-bezier(0.77, 0, 0.18, 1) 210ms backwards;
}

.id-auth-shell--recover .id-auth-recover #sendOtpBtn {
  animation: id-recover-item-in 520ms cubic-bezier(0.77, 0, 0.18, 1) 270ms backwards;
}

.id-auth-shell--recover .id-auth-recover #backFromRecoverBtn {
  animation: id-recover-item-in 520ms cubic-bezier(0.77, 0, 0.18, 1) 330ms backwards;
}

@keyframes id-recover-item-in {
  from {
    opacity: 0;
    transform: translateY(14px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.id-auth-recover__intro {
  margin: 0 0 16px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--color-text-muted);
}

@media (max-width: 900px) {
  .id-page {
    padding: max(56px, calc(12px + env(safe-area-inset-top))) 12px max(20px, env(safe-area-inset-bottom));
  }

  .id-page__lang {
    top: max(12px, env(safe-area-inset-top));
    right: max(12px, env(safe-area-inset-right));
  }

  .id-auth-card {
    max-width: 100%;
    width: 100%;
    padding: 22px 16px 18px;
    border-radius: 16px;
  }

  .id-card__home {
    margin-bottom: 18px;
  }

  .id-card__welcome {
    font-size: 13px;
    margin-bottom: 14px;
  }

  .id-notice {
    padding: 12px 14px;
    margin-bottom: 16px;
    font-size: 12px;
  }

  .id-auth-container {
    min-height: auto;
    display: flex;
    flex-direction: column;
  }

  .id-auth-container:not(.active),
  .id-auth-container.active:has(.id-signup-step[data-step="1"]:not([hidden])),
  .id-auth-container.active:has(.id-signup-step[data-step="2"]:not([hidden])),
  .id-auth-container.active:has(.id-signup-step[data-step="3"]:not([hidden])) {
    min-height: auto;
  }

  .id-auth-form,
  .id-auth-form--login,
  .id-auth-form--signup {
    position: relative;
    left: 0;
    width: 100%;
    height: auto;
    padding: 18px 16px;
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    pointer-events: auto;
    overflow: visible;
    justify-content: flex-start;
  }

  .id-auth-form--signup {
    display: none;
  }

  .id-auth-container.active .id-auth-form--login {
    display: none;
  }

  .id-auth-container.active .id-auth-form--signup {
    display: flex;
  }

  .id-auth-overlay {
    transform: none;
  }

  .id-auth-container.active .id-auth-overlay {
    transform: none;
  }

  .id-auth-overlay-container {
    display: none;
  }

  .id-auth-mobile-only {
    display: flex;
  }

  .id-auth-shell--recover .id-auth-container {
    display: none;
  }

  .id-auth-shell--recover .id-auth-recover {
    position: relative;
    inset: auto;
    justify-content: flex-start;
    padding: 18px 16px;
  }

  .id-auth-form__title {
    margin-bottom: 14px;
    font-size: 1.2rem;
  }

  .id-otp-row {
    gap: 6px;
  }

  .id-otp-digit {
    min-height: 44px;
    font-size: 18px;
    border-radius: 10px;
  }
}

@media (max-width: 480px) {
  .id-page {
    padding-left: 10px;
    padding-right: 10px;
  }

  .id-auth-card {
    padding: 18px 14px 16px;
  }

  .id-auth-form,
  .id-auth-form--login,
  .id-auth-form--signup,
  .id-auth-shell--recover .id-auth-recover {
    padding: 16px 14px;
  }

  .id-brand__name {
    font-size: 28px;
  }

  .id-otp-row {
    gap: 4px;
  }

  .id-otp-digit {
    min-height: 40px;
    font-size: 16px;
  }

  .id-gender-row__buttons {
    flex-direction: column;
  }

  .id-gender-btn {
    width: 100%;
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .id-auth-form,
  .id-auth-overlay-container,
  .id-auth-overlay-panel,
  .id-auth-recover,
  .id-auth-container,
  .id-card__footer {
    transition: none !important;
  }

  .id-auth-shell--recover .id-auth-recover .id-auth-form__title,
  .id-auth-shell--recover .id-auth-recover__intro,
  .id-auth-shell--recover .id-auth-recover .id-field,
  .id-auth-shell--recover .id-auth-recover #sendOtpBtn,
  .id-auth-shell--recover .id-auth-recover #backFromRecoverBtn {
    animation: none !important;
  }

  .id-auth-form--signup {
    filter: none;
  }
}

.id-card__home {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 28px;
  font-size: 13px;
  color: var(--color-text-muted);
  transition: var(--transition);
}

.id-card__home:hover {
  color: var(--color-text);
}

.id-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 16px;
}

.id-brand__name {
  font-size: 34px;
  font-weight: 800;
  font-style: italic;
  letter-spacing: -0.03em;
}

.id-brand__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 34px;
  padding: 0 10px;
  border-radius: 10px;
  background: var(--color-accent);
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  font-style: italic;
}

.id-card__welcome {
  text-align: center;
  color: var(--color-text-muted);
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 20px;
}

.id-notice {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 16px;
  margin-bottom: 24px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  color: var(--color-text-muted);
  font-size: 13px;
  line-height: 1.5;
}

.id-notice svg {
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--color-text-dim);
}

.id-panel {
  display: none;
}

.id-panel--active {
  display: block;
}

.id-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.id-field {
  position: relative;
  display: block;
}

.id-field__icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-text-dim);
  pointer-events: none;
}

.id-field input {
  width: 100%;
  padding: 14px 44px 14px 44px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  color: var(--color-text);
  font-size: 14px;
  transition: var(--transition);
}

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

.id-field input:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px var(--color-accent-glow);
}

.id-field__toggle {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  padding: 6px;
  color: var(--color-text-dim);
  transition: var(--transition);
}

.id-field__toggle:hover {
  color: var(--color-text);
}

.id-field--optional input {
  padding-right: 88px;
}

.id-field__optional {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-text-dim);
  pointer-events: none;
}

.id-field input[type="date"] {
  color-scheme: dark;
}

.id-field input[type="date"]::-webkit-calendar-picker-indicator {
  filter: invert(0.75);
  cursor: pointer;
}

.id-gender-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.id-gender-row__label {
  font-size: 12px;
  font-weight: 600;
  color: var(--color-text-muted);
}

.id-gender-row__buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.id-gender-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--color-border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--color-text);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.id-gender-btn:hover {
  border-color: rgba(212, 255, 0, 0.35);
  background: rgba(212, 255, 0, 0.06);
}

.id-gender-btn--active {
  border-color: var(--color-accent);
  background: rgba(212, 255, 0, 0.12);
  box-shadow: 0 0 0 3px var(--color-accent-glow);
}

.id-gender-btn svg {
  flex-shrink: 0;
  opacity: 0.85;
}

/* Sign-up wizard */
.id-signup-wizard {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.id-signup-progress {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 4px;
}

.id-signup-progress__bar {
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  transition: background 0.35s ease;
}

.id-signup-progress__bar--active {
  background: linear-gradient(90deg, var(--color-accent), var(--color-accent-light));
}

.id-signup-wizard__intro,
.id-signup-wizard__code-intro {
  margin: 0 0 4px;
  font-size: 13px;
  line-height: 1.55;
  text-align: center;
  color: var(--color-text-muted);
}

.id-signup-wizard__code-intro strong {
  color: var(--color-text);
  font-weight: 700;
}

.id-signup-step {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.id-signup-step[hidden] {
  display: none !important;
}

.id-otp-row {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
  margin: 8px 0 4px;
}

.id-otp-digit {
  width: 100%;
  aspect-ratio: 1;
  min-height: 48px;
  border-radius: 12px;
  border: 1px solid var(--color-border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--color-text);
  font-size: 20px;
  font-weight: 700;
  text-align: center;
  outline: none;
  transition: var(--transition);
}

.id-otp-digit:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px var(--color-accent-glow);
}

.id-signup-resend {
  margin: 0;
  text-align: center;
  font-size: 12px;
  color: var(--color-text-dim);
}

.id-signup-resend__btn {
  border: none;
  background: none;
  color: var(--color-accent-light);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
}

.id-signup-checks {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 8px 0 4px;
}

.id-signup-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 12px;
  line-height: 1.45;
  color: var(--color-text-muted);
  cursor: pointer;
}

.id-signup-check input {
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: var(--color-accent);
}

.id-signup-check a {
  color: var(--color-accent-light);
  text-decoration: underline;
}

.id-action:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.id-form__error {
  min-height: 18px;
  font-size: 13px;
  color: #ff4444;
}

.id-form__success {
  margin: 0 0 4px;
  font-size: 13px;
  line-height: 1.5;
  color: #68d391;
}

.id-form__success[hidden] {
  display: none;
}

.shop-promo {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin: 0 0 28px;
  padding: 22px 26px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-accent);
  background:
    radial-gradient(circle at 0% 0%, var(--color-accent-glow), transparent 70%),
    var(--color-bg-card);
  text-decoration: none;
  color: var(--color-text);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.shop-promo:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.45), 0 0 0 1px var(--color-accent-glow);
}

.shop-promo__text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.shop-promo__badge {
  align-self: flex-start;
  background: linear-gradient(135deg, var(--color-accent-light), var(--color-accent-dark));
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 3px 10px;
  border-radius: 999px;
}

.shop-promo__title {
  font-size: 1.15rem;
  font-weight: 800;
}

.shop-promo__sub {
  color: var(--color-text-muted);
  font-size: 0.92rem;
}

.id-remember {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  color: var(--color-text-muted);
  cursor: pointer;
  user-select: none;
}

.id-remember input {
  width: 16px;
  height: 16px;
  accent-color: var(--color-accent-light);
  cursor: pointer;
}

.id-action {
  width: 100%;
  padding: 15px 20px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--color-border);
  color: var(--color-text-muted);
  transition: var(--transition);
}

.id-action:hover:not(:disabled) {
  color: var(--color-text);
  border-color: var(--color-border-hover);
  background: rgba(255, 255, 255, 0.06);
}

.id-action--primary {
  background: rgba(104, 134, 10, 0.18);
  border-color: rgba(104, 134, 10, 0.35);
  color: #d9e7a8;
}

.id-action--primary:hover:not(:disabled) {
  background: rgba(104, 134, 10, 0.28);
  border-color: var(--color-accent);
  color: #fff;
}

.id-action:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.id-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 4px 0;
  color: var(--color-text-muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.id-divider::before,
.id-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--color-border);
}

.id-auth-social {
  margin-top: 14px;
}

.id-auth-social .id-google-btn {
  width: 100%;
}

.id-google-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
}

.id-google__overlay {
  position: absolute;
  inset: 0;
  opacity: 0;
  z-index: 1;
  overflow: hidden;
  border-radius: 12px;
}

.id-google__overlay > div {
  width: 100% !important;
  height: 100% !important;
}

.id-google__overlay iframe {
  width: 100% !important;
  height: 100% !important;
  min-height: 48px;
  margin: 0 !important;
}

.id-action--google {
  background: rgba(66, 133, 244, 0.18);
  border-color: rgba(66, 133, 244, 0.45);
  color: #c5dafa;
}

.id-action--google:hover:not(:disabled) {
  background: rgba(66, 133, 244, 0.32);
  border-color: #4285f4;
  color: #fff;
}

.id-social {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.id-action--discord {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-decoration: none;
  background: rgba(88, 101, 242, 0.18);
  border-color: rgba(88, 101, 242, 0.45);
  color: #c7ccff;
}

.id-action--discord:hover:not(:disabled) {
  background: rgba(88, 101, 242, 0.32);
  border-color: #5865f2;
  color: #fff;
}

.id-action--facebook {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-decoration: none;
  background: rgba(24, 119, 242, 0.18);
  border-color: rgba(24, 119, 242, 0.45);
  color: #b8d4ff;
  cursor: pointer;
}

.id-action--facebook:hover:not(:disabled) {
  background: rgba(24, 119, 242, 0.32);
  border-color: #1877f2;
  color: #fff;
}

.id-card__footer {
  margin-top: 24px;
  text-align: center;
  font-size: 13px;
  color: var(--color-text-muted);
  transition:
    opacity 450ms cubic-bezier(0.77, 0, 0.18, 1),
    transform 450ms cubic-bezier(0.77, 0, 0.18, 1);
}

.id-auth-shell--recover + .id-card__footer {
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
}

.id-card__footer a {
  margin-left: 6px;
  color: var(--color-accent-light);
  font-weight: 600;
}

.id-card__footer a:hover {
  color: var(--color-accent);
}

@media (max-width: 480px) {
  .id-card {
    padding: 28px 20px 22px;
  }
}

/* Help Page */
.help-page {
  padding-top: var(--header-height);
  min-height: 100vh;
}

.help-hero {
  padding: 48px 0 32px;
  background: var(--color-bg);
}

.help-hero__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 640px) minmax(0, 1fr);
  align-items: center;
  gap: 24px;
  margin-bottom: 36px;
}

.help-hero__center {
  text-align: center;
}

.help-hero__title {
  margin: 0 0 14px;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.help-hero__subtitle {
  margin: 0 auto 24px;
  max-width: 560px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--color-text-muted);
}

.help-hero__art {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(100%, 180px);
  height: 180px;
  margin: 0 auto;
}

.help-hero__blob {
  position: absolute;
  inset: 8%;
  border-radius: 46% 54% 42% 58%;
  background: #ff2d8a;
  opacity: 0.92;
}

.help-hero__figure {
  position: relative;
  z-index: 1;
  width: 72%;
  height: 72%;
}

.help-search {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 100%;
  padding: 14px 18px;
  border-radius: 12px;
  border: 1px solid #333;
  background: #1c1c1f;
  color: var(--color-text-muted);
}

.help-search:focus-within {
  border-color: #444;
  background: #222228;
}

.help-search input {
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--color-text);
  font: inherit;
  font-size: 14px;
  outline: none;
}

.help-search input::placeholder {
  color: var(--color-text-dim);
}

.help-hero__servers-wrap {
  position: relative;
  overflow: hidden;
  padding: 8px 0;
}

.help-hero__servers-wrap::before,
.help-hero__servers-wrap::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 48px;
  z-index: 1;
  pointer-events: none;
}

.help-hero__servers-wrap::before {
  left: 0;
  background: linear-gradient(90deg, var(--color-bg), transparent);
}

.help-hero__servers-wrap::after {
  right: 0;
  background: linear-gradient(270deg, var(--color-bg), transparent);
}

.help-hero__servers {
  overflow: hidden;
  width: 100%;
  padding: 8px 0;
}

.help-hero__servers-track {
  display: flex;
  width: max-content;
  animation: help-servers-marquee 36s linear infinite;
}

.help-hero__servers-track:hover {
  animation-play-state: paused;
}

.help-hero__servers-group {
  display: flex;
  align-items: flex-start;
  gap: 48px;
  padding-right: 48px;
  flex-shrink: 0;
}

@keyframes help-servers-marquee {
  from {
    transform: translateX(-50%);
  }

  to {
    transform: translateX(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .help-hero__servers-track {
    animation: none;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
  }

  .help-hero__servers-group[aria-hidden='true'] {
    display: none;
  }
}

.help-hero-server {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: 10px;
  row-gap: 4px;
  align-items: center;
  flex-shrink: 0;
  min-width: 140px;
  color: inherit;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.help-hero-server:hover {
  opacity: 0.85;
}

.help-hero-server__logo {
  grid-row: 1 / span 2;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: contain;
}

.help-hero-server__name {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--color-text);
}

.help-hero-server__meta {
  grid-column: 2;
  font-size: 12px;
  font-weight: 600;
  color: var(--color-text-muted);
}

.help-hero-server--offline .help-hero-server__meta {
  color: var(--color-text-dim);
}

.help-hero-server--traphouse .status-dot:not(.status-dot--offline) {
  background: #ff4444;
  box-shadow: 0 0 8px rgba(255, 68, 68, 0.45);
}

.help-servers {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.help-server {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-width: 240px;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  background: var(--color-bg-card);
}

.help-server__name {
  font-size: 15px;
  font-weight: 700;
}

.help-server__online {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text-muted);
}

.help-categories {
  padding-top: 0;
}

.help-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.help-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 0;
  padding: 18px 44px 18px 18px;
  border-radius: 12px;
  border: 1px solid #333;
  background: #1c1c1f;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.help-card:first-child {
  grid-column: 1 / -1;
}

.help-card::after {
  content: '';
  position: absolute;
  top: 18px;
  right: 18px;
  width: 14px;
  height: 14px;
  opacity: 0.35;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6'/%3E%3Cpolyline points='15 3 21 3 21 9'/%3E%3Cline x1='10' y1='14' x2='21' y2='3'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: contain;
  pointer-events: none;
}

.help-card:hover {
  border-color: #444;
  background: #222228;
}

.help-card:hover::after {
  opacity: 0.55;
}

.help-card__icon {
  font-size: 28px;
  line-height: 1;
  display: inline-block;
  align-self: flex-start;
  padding: 4px;
  margin: -4px;
  transform-origin: center center;
  transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
  cursor: pointer;
}

.help-card__icon:hover {
  transform: scale(1.4);
}

.help-card__icon:active {
  transform: scale(1.48);
  transition-duration: 0.12s;
}

.help-card__title {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-text);
}

.help-card__desc {
  font-size: 13px;
  line-height: 1.5;
  color: var(--color-text-muted);
}

.help-feature {
  padding-top: 24px;
  padding-bottom: 80px;
}

.help-feature__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 32px;
}

.help-feature__block {
  padding: 24px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-border);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.01) 100%);
}

.help-feature__head {
  display: flex;
  gap: 16px;
  margin-bottom: 20px;
}

.help-feature__icon {
  font-size: 32px;
  line-height: 1;
  display: inline-block;
  padding: 4px;
  margin: -4px;
  transform-origin: center center;
  transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
  cursor: pointer;
}

.help-feature__icon:hover {
  transform: scale(1.4);
}

.help-feature__icon:active {
  transform: scale(1.48);
  transition-duration: 0.12s;
}

.help-feature__title {
  margin: 0 0 6px;
  font-size: 20px;
  font-weight: 700;
}

.help-feature__desc {
  margin: 0;
  font-size: 14px;
  color: var(--color-text-muted);
}

.help-feature__links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.help-link {
  display: inline-flex;
  align-items: center;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  background: rgba(255, 255, 255, 0.03);
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text);
  transition: var(--transition);
}

.help-link:hover {
  border-color: rgba(104, 134, 10, 0.45);
  color: var(--color-accent-light);
  background: rgba(104, 134, 10, 0.08);
}

.help-disclaimer {
  margin: 0;
  max-width: 820px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--color-text-dim);
}

@media (max-width: 768px) {
  .help-hero__layout {
    grid-template-columns: 1fr;
  }

  .help-hero__art {
    display: none;
  }

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

  .help-card:first-child {
    grid-column: auto;
  }

  .help-feature__grid {
    grid-template-columns: 1fr;
  }

  .help-server {
    width: 100%;
  }
}

/* Help Servers Page */
.help-servers-page .help-servers-hero {
  padding-bottom: 32px;
  background: linear-gradient(180deg, var(--color-bg-elevated) 0%, var(--color-bg) 100%);
}

.help-breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 24px;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text-muted);
  transition: var(--transition);
}

.help-breadcrumb:hover {
  color: var(--color-accent-light);
}

.help-servers-hero__title {
  margin: 0 0 32px;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.help-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  max-width: 900px;
}

.help-stat {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 24px 20px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  background: var(--color-bg-card);
}

.help-stat__value {
  font-size: clamp(28px, 4vw, 36px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.help-stat__label {
  font-size: 14px;
  color: var(--color-text-muted);
}

.help-servers-list {
  padding-top: 8px;
  padding-bottom: 80px;
}

.help-server-cards {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 40px;
}

.help-server-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 24px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  background: var(--color-bg-card);
  transition: var(--transition);
}

.help-server-card:hover {
  border-color: rgba(104, 134, 10, 0.35);
  background: var(--color-bg-card-hover);
}

.help-server-card__info {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.help-server-card__logo {
  width: 64px;
  height: 64px;
  flex-shrink: 0;
  border-radius: 50%;
  object-fit: contain;
}

.help-server-card--traphouse:hover {
  border-color: rgba(255, 68, 68, 0.35);
}

.help-server-card--traphouse .help-server-card__badge {
  background: rgba(255, 68, 68, 0.12);
  border-color: rgba(255, 68, 68, 0.28);
  color: #ff6b6b;
}

.help-server-card__main {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.help-server-card__name {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
}

.help-server-card__badge {
  display: inline-flex;
  align-self: flex-start;
  padding: 5px 12px;
  border-radius: 50px;
  background: rgba(104, 134, 10, 0.14);
  border: 1px solid rgba(104, 134, 10, 0.28);
  color: var(--color-accent-light);
  font-size: 12px;
  font-weight: 700;
}

.help-server-card--offline {
  opacity: 0.82;
}

.help-server-card--offline .help-server-card__logo {
  filter: grayscale(0.35);
}

.help-server-card--offline .help-server-card__count {
  color: var(--color-text-muted);
}

.help-server-card__online {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  margin-left: auto;
  flex-shrink: 0;
  text-align: right;
}

.help-server-card__count {
  font-size: 28px;
  font-weight: 800;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.help-server-card__label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  text-transform: lowercase;
  color: var(--color-text-muted);
}

.help-server-card__label--city {
  color: var(--color-accent-light);
}

.help-server-card__label--traphouse {
  color: #ff6b6b;
}

.help-server-card__label--offline {
  color: var(--color-text-muted);
}

.status-dot--traphouse {
  background: #ff4444;
  box-shadow: 0 0 8px rgba(255, 68, 68, 0.45);
}

.status-dot--offline {
  background: rgba(255, 255, 255, 0.35);
  box-shadow: none;
  animation: none;
}

@media (max-width: 768px) {
  .help-stats {
    grid-template-columns: 1fr;
  }

  .help-server-card {
    flex-direction: column;
    align-items: stretch;
  }

  .help-server-card__online {
    align-items: flex-start;
    margin-left: 0;
    text-align: left;
  }
}

/* ============================================
   Quest Pages (Majestic-style path stories)
   ============================================ */

.quest-page {
  --quest-accent: var(--color-accent);
  --quest-glow: var(--color-accent-glow);
  --quest-photo-width: min(100%, 524px);
  --quest-photo-ratio: 4 / 3;
  min-height: 100vh;
  min-height: 100dvh;
  background: #000;
  color: var(--color-text);
}

.quest-page--gang {
  --quest-accent: var(--color-gangster);
  --quest-glow: rgba(255, 68, 68, 0.45);
}

.quest-page--cop {
  --quest-accent: var(--color-lawman);
  --quest-glow: rgba(68, 136, 255, 0.45);
}

.quest-page .header {
  background: #000;
  border-bottom: 1px solid var(--color-border);
}

.quest-page--muted .quest-figure img {
  box-shadow: none;
}

.quest-page--muted .quest-figure::before {
  opacity: 0;
}

.quest-stage {
  position: relative;
  min-height: calc(100vh - var(--header-height));
  min-height: calc(100dvh - var(--header-height));
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(32px, 6vh, 72px) 0 112px;
}

.quest-layout {
  flex: 0 1 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(40px, 5vw, 72px);
  align-items: start;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding-top: clamp(24px, 4vh, 48px);
  padding-bottom: 24px;
}

.quest-layout__left {
  padding-top: 4px;
}

.quest-layout__right {
  display: flex;
  justify-content: flex-end;
  align-items: flex-start;
  padding-top: 4px;
}

.quest-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 24px 32px;
  margin-bottom: clamp(32px, 4vh, 52px);
}

.quest-controls__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  border: none;
  background: none;
  color: rgba(255, 255, 255, 0.42);
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: color var(--transition);
}

.quest-controls__btn:hover {
  color: #fff;
}

.quest-controls__btn svg {
  flex-shrink: 0;
  opacity: 0.75;
}

.quest-stories {
  position: relative;
  min-height: 180px;
}

.quest-story {
  display: none;
  max-width: 640px;
  font-size: clamp(16px, 1.6vw, 18px);
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.88);
}

.quest-story.is-active {
  display: block;
  animation: quest-content-in 0.45s ease both;
}

@keyframes quest-content-in {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.quest-highlight {
  color: var(--quest-accent);
  font-weight: 600;
}

.quest-figures {
  position: relative;
  width: var(--quest-photo-width);
  aspect-ratio: var(--quest-photo-ratio);
  flex-shrink: 0;
  margin-left: auto;
}

.quest-figure {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.quest-figure.is-active {
  opacity: 1;
  visibility: visible;
}

.quest-figure::before {
  content: '';
  position: absolute;
  inset: -10%;
  background: radial-gradient(circle, var(--quest-glow) 0%, transparent 72%);
  filter: blur(28px);
  z-index: 0;
  transition: opacity 0.5s ease;
}

.quest-figure img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  border-radius: 18px;
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.55), 0 0 48px var(--quest-glow);
}

.quest-stage__footer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: clamp(24px, 4vh, 40px);
  z-index: 50;
  display: flex;
  justify-content: center;
  padding: 0 24px;
  pointer-events: none;
}

.quest-continue {
  pointer-events: auto;
  min-width: min(100%, 320px);
  padding: 18px 56px;
  border: none;
  border-radius: 8px;
  background: var(--quest-accent);
  color: #fff;
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: filter var(--transition), transform var(--transition);
}

.quest-continue:hover {
  filter: brightness(1.12);
  transform: translateY(-1px);
}

@media (max-width: 960px) {
  .quest-stage {
    justify-content: flex-start;
    padding-top: 24px;
  }

  .quest-layout {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-top: 16px;
  }

  .quest-layout__right {
    order: 2;
    justify-content: center;
    padding-top: 8px;
  }

  .quest-figures {
    width: min(100%, 420px);
    margin: 0 auto;
  }

  .quest-controls {
    gap: 16px 24px;
  }
}

/* Icon hover & click — zoom in (site-wide) */
.icon-interactive {
  -webkit-tap-highlight-color: transparent;
  transform-origin: center center;
}

@media (prefers-reduced-motion: no-preference) {
  .icon-interactive {
    transition: transform 0.28s ease;
  }

  .start-card__visual {
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
    transform-origin: center center;
  }

  .start-card:hover .start-card__visual,
  a.start-card__visual:hover {
    transform: scale(1.12);
  }

  .start-card__visual--gta:hover,
  .start-card:hover .start-card__visual--gta {
    border-color: rgba(239, 68, 68, 0.7);
    box-shadow: 0 0 24px rgba(239, 68, 68, 0.35);
  }

  .start-card__visual--launcher:hover,
  .start-card:hover .start-card__visual--launcher {
    border-color: rgba(104, 134, 10, 0.75);
    box-shadow: 0 0 24px rgba(104, 134, 10, 0.4);
  }

  .start-card__logo {
    transition: transform 0.28s ease;
    transform-origin: center center;
  }

  .start-card:hover .start-card__logo,
  a.start-card__visual:hover .start-card__logo {
    transform: scale(1.15);
  }

  .logo__img,
  .admin-sidebar__logo {
    transition: transform 0.28s ease;
    transform-origin: center center;
  }

  .logo:hover .logo__img {
    transform: scale(1.1);
  }

  .help-feature__icon {
    transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
  }

  .team-card__img,
  .role-card__img {
    transition: transform 0.28s ease, border-color 0.25s ease;
    transform-origin: center center;
  }

  a.team-card:hover .team-card__img,
  .role-card:hover .role-card__img,
  .role-card--active .role-card__img {
    transform: scale(1.12);
  }

  .lang-btn__flag,
  .lang-option__flag {
    transition: transform 0.28s ease;
    transform-origin: center center;
  }

  .lang-btn:hover .lang-btn__flag,
  .lang-option:hover .lang-option__flag {
    transform: scale(1.15);
  }

  .gallery-feature__play,
  .video-play-btn {
    transition: transform 0.28s ease, box-shadow 0.28s ease;
    transform-origin: center center;
  }

  .gallery-feature__play:hover,
  .video-play-btn:hover {
    transform: scale(1.12);
  }

  .icon-interactive:hover,
  a.start-card__visual:hover {
    transform: scale(1.08);
  }

  a.help-card.icon-interactive:hover,
  .help-card:hover {
    transform: none;
  }

  .start-card:hover .start-card__visual,
  a.start-card__visual:hover {
    transform: scale(1.12);
  }

  .icon-interactive:active,
  .start-card__visual:active,
  .social-card:active {
    transform: scale(1.12);
  }

  .social-card:active svg {
    transform: scale(1.24);
  }

  .help-card:active,
  a.help-card.icon-interactive:active {
    transform: none;
  }

  .help-card__icon.icon-interactive--click {
    animation: help-icon-zoom-in 0.35s ease;
  }

  .logo:active,
  a.team-card:active,
  .role-card:active,
  .lang-btn:active,
  .gallery-feature__play:active,
  .video-play-btn:active,
  .burger:active {
    transform: scale(1.14);
    transition-duration: 0.12s;
  }

  .icon-interactive--click:not(.help-card):not(.social-card) {
    animation: icon-zoom-in 0.35s ease;
  }

  .social-card.icon-interactive--click {
    animation: social-card-zoom-in 0.35s ease;
  }

  .social-card.icon-interactive--click svg {
    animation: social-icon-zoom-in 0.35s ease;
  }

  @keyframes icon-zoom-in {
    0% {
      transform: scale(1);
    }
    45% {
      transform: scale(1.16);
    }
    100% {
      transform: scale(1.08);
    }
  }

  @keyframes help-icon-zoom-in {
    0% {
      transform: scale(1);
    }
    45% {
      transform: scale(1.5);
    }
    100% {
      transform: scale(1.4);
    }
  }

  @keyframes social-card-zoom-in {
    0% {
      transform: scale(1);
    }
    45% {
      transform: scale(1.12);
    }
    100% {
      transform: scale(1.08);
    }
  }

  @keyframes social-icon-zoom-in {
    0% {
      transform: scale(1);
    }
    45% {
      transform: scale(1.28);
    }
    100% {
      transform: scale(1.2);
    }
  }
}

.site-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  max-width: min(92vw, 520px);
  transform: translateX(-50%) translateY(20px);
  background: var(--color-bg-elevated);
  border: 1px solid var(--color-border-hover);
  color: var(--color-text);
  padding: 14px 20px;
  border-radius: var(--radius-sm);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
  font-size: 0.92rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 1000;
}

.site-toast--visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ============================================
   Responsive — consolidated screen fixes
   ============================================ */

@media (max-width: 900px) {
  .hero__stage {
    padding-left: var(--container-padding);
    padding-right: var(--container-padding);
  }

  .admin-chart-card__head {
    flex-wrap: wrap;
  }

  .admin-chart-legend {
    width: 100%;
  }
}

@media (max-width: 640px) {
  :root {
    --container-padding: 16px;
    --header-height: 64px;
  }

  .section {
    padding: 72px 0;
  }

  .section__subtitle {
    font-size: 16px;
    margin-bottom: 32px;
  }

  .hero--panels {
    padding-top: calc(var(--header-height) + 16px);
    padding-bottom: 88px;
  }

  .hero__title {
    font-size: clamp(24px, 6.5vw, 32px);
  }

  .hero__tagline {
    font-size: 15px;
  }

  .hero__path-btn {
    font-size: 13px;
    padding: 12px 14px;
  }

  .start-card__content .btn--lg {
    width: 100%;
    max-width: 320px;
  }

  .admin-topbar {
    padding: 14px 16px;
    gap: 12px;
  }

  .admin-topbar__title {
    font-size: 18px;
    margin-bottom: 0;
  }

  .admin-topbar__subtitle {
    display: none;
  }

  .admin-topbar__status {
    display: none;
  }

  .admin-topbar__profile {
    padding-left: 0;
    border-left: none;
    gap: 10px;
  }

  .admin-topbar__profile-actions .btn--outline:not(#adminLogout) {
    display: none;
  }

  .admin-topbar__user .auth-user__info {
    max-width: 88px;
  }

  .admin-content {
    padding: 16px 12px 32px;
  }

  .admin-chart-card {
    padding: 16px 14px 14px;
  }

  .admin-chart-card__head {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .sneat-traffic-servers {
    padding: 0 8px 12px;
  }

  .sneat-traffic-server {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 12px 14px;
  }

  .sneat-traffic-server__online {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: 100%;
  }

  .sneat-traffic-server__count {
    font-size: 24px;
  }

  .sneat-audience__head {
    padding: 16px 12px 0;
  }

  .sneat-audience__tabs {
    width: 100%;
  }

  .sneat-audience__tab {
    flex: 1 1 auto;
    font-size: 11px;
    padding: 8px 10px;
    text-align: center;
  }

  .sneat-audience__table th:last-child {
    min-width: 160px;
  }

  .sneat-audience__table th,
  .sneat-audience__table td {
    padding: 12px;
  }

  .admin-panel__toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .admin-search {
    width: 100%;
    min-width: 0;
  }

  .admin-panel--flush {
    padding: 16px;
  }
}

@media (max-width: 480px) {
  .logo__text {
    display: none;
  }

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

  .hero-panel {
    flex: 0 0 clamp(96px, 28vw, 130px);
    min-height: clamp(240px, 62vw, 320px);
  }

  .hero-panel__cta-label {
    font-size: 10px;
    letter-spacing: 0.04em;
  }

  .help-server-card {
    padding: 18px 16px;
  }

  .help-server-card__count {
    font-size: 32px;
  }

  .site-toast {
    bottom: max(16px, env(safe-area-inset-bottom));
    font-size: 0.85rem;
    padding: 12px 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .icon-interactive--click {
    animation: none;
  }
}
