/* ============================================================
   Pink Lady · Midnight Neon edition
   Pure static landing page — no build step required
   ============================================================ */

@font-face {
  font-family: 'DIN Neon';
  src: url('../assets/DIN%20Alternate%20Bold-DRSwoHaD.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #07060f;
  --bg-2: #0c0920;
  --surface: rgba(255, 255, 255, 0.055);
  --surface-2: rgba(255, 255, 255, 0.09);
  --stroke: rgba(255, 255, 255, 0.11);
  --text: #f3effc;
  --muted: #a99fc9;
  --pink: #ff2d95;
  --violet: #8b5cf6;
  --cyan: #2fe0f2;
  --amber: #ffc24d;
  --grad: linear-gradient(120deg, #ff2d95 0%, #b45cf5 48%, #2fe0f2 100%);
  --grad-soft: linear-gradient(120deg, rgba(255,45,149,.16), rgba(47,224,242,.16));
  --glow-pink: 0 0 24px rgba(255, 45, 149, .45);
  --glow-violet: 0 0 28px rgba(139, 92, 246, .4);
  --r-lg: 22px;
  --r-md: 15px;
  --r-sm: 11px;
  --shell: 480px;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans KR", "Noto Sans JP",
    Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(720px 480px at 88% -6%, rgba(139, 92, 246, .22), transparent 60%),
    radial-gradient(620px 460px at -12% 22%, rgba(255, 45, 149, .18), transparent 60%),
    radial-gradient(900px 700px at 50% 118%, rgba(47, 224, 242, .12), transparent 62%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 46%, #06050d 100%);
  background-attachment: fixed;
}

button, input, select { font-family: inherit; }
button { cursor: pointer; border: none; background: none; color: inherit; }
img { display: block; max-width: 100%; }

#app { width: 100%; }

/* Desktop ambient shell — content stays mobile-width like the original flow */
@media (min-width: 560px) {
  #app::before {
    content: '';
    position: fixed;
    top: 0;
    bottom: 0;
    left: 50%;
    width: var(--shell);
    transform: translateX(-50%);
    border-left: 1px solid rgba(139, 92, 246, .14);
    border-right: 1px solid rgba(255, 45, 149, .14);
    box-shadow: 0 0 80px rgba(139, 92, 246, .14);
    pointer-events: none;
    z-index: 0;
  }
}

.page-enter { animation: fadeUp .55s cubic-bezier(.22, .8, .3, 1) both; position: relative; z-index: 1; }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ================= Brand logo ================= */
.brand-logo { display: inline-flex; align-items: center; gap: 8px; }
.brand-logo-icon { filter: drop-shadow(0 0 8px rgba(255, 45, 149, .55)); }
.brand-logo-text {
  font-weight: 800;
  letter-spacing: .02em;
  font-size: 17px;
  color: #fff;
  text-shadow: 0 0 18px rgba(180, 92, 245, .55);
}
.brand-logo-highlight {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ================= Language selector ================= */
.language-selector-wrapper { position: relative; }
.language-selector-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--stroke);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: var(--text);
  font-size: 12.5px;
  font-weight: 600;
  transition: border-color .25s, box-shadow .25s;
}
.language-selector-btn:active { transform: scale(.96); }
.language-selector-btn:hover { border-color: rgba(255, 45, 149, .55); box-shadow: var(--glow-pink); }
.lang-icon { width: 16px; height: 16px; color: var(--pink); flex: none; }
.lang-text { max-width: 104px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.lang-chevron { width: 10px; height: 6px; transition: transform .25s; opacity: .8; }
.lang-chevron.open { transform: rotate(180deg); }

.language-dropdown {
  z-index: 9999;
  width: 188px;
  max-height: 340px;
  overflow-y: auto;
  padding: 7px;
  border-radius: 16px;
  background: rgba(16, 12, 34, .92);
  border: 1px solid var(--stroke);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  box-shadow: 0 18px 50px rgba(0, 0, 0, .55), 0 0 0 1px rgba(139, 92, 246, .12);
  animation: dropIn .18s ease both;
}
@keyframes dropIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.language-option {
  padding: 9px 13px;
  border-radius: 10px;
  font-size: 13px;
  color: var(--text);
  transition: background .18s;
}
.language-option:hover { background: var(--surface-2); }
.language-option.selected {
  color: #fff;
  background: var(--grad-soft);
  box-shadow: inset 0 0 0 1px rgba(255, 45, 149, .45);
}

/* ================= Load page / age gate ================= */
.load-page { position: fixed; inset: 0; overflow: hidden; z-index: 50; }
.load-bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  filter: saturate(1.1) brightness(.55);
}
.load-scrim {
  position: absolute; inset: 0;
  background:
    radial-gradient(120% 80% at 50% 18%, rgba(139, 92, 246, .32), transparent 55%),
    linear-gradient(180deg, rgba(7, 6, 15, .55) 0%, rgba(7, 6, 15, .82) 55%, #07060f 100%);
}

.sv-overlay {
  position: fixed; inset: 0; z-index: 60;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  background: radial-gradient(90% 60% at 50% 40%, rgba(139, 92, 246, .22), rgba(7, 6, 15, .78) 70%);
  animation: fadeUp .4s ease both;
}
.sv-box {
  width: 100%;
  max-width: 380px;
  padding: 30px 24px 26px;
  border-radius: 26px;
  text-align: center;
  background: linear-gradient(160deg, rgba(28, 21, 54, .88), rgba(12, 9, 30, .92));
  border: 1px solid rgba(255, 255, 255, .12);
  backdrop-filter: blur(26px);
  -webkit-backdrop-filter: blur(26px);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .6), inset 0 1px 0 rgba(255, 255, 255, .08);
  position: relative;
}
.sv-box::before {
  content: '';
  position: absolute; inset: -1px;
  border-radius: 26px;
  padding: 1px;
  background: linear-gradient(135deg, rgba(255,45,149,.7), rgba(139,92,246,.25) 45%, rgba(47,224,242,.6));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
}
.sv-logo { display: flex; justify-content: center; margin-bottom: 18px; }
.sv-title { font-size: 21px; font-weight: 800; letter-spacing: .01em; }
.sv-desc { margin-top: 7px; font-size: 12.5px; color: var(--muted); }
.sv-instruction { margin: 22px 0 12px; font-size: 13px; font-weight: 600; color: #e9e2ff; }
.sv-track {
  position: relative;
  height: 52px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .12);
  overflow: hidden;
  touch-action: none;
  user-select: none;
}
.sv-track-fill {
  position: absolute; top: 0; left: 0; bottom: 0;
  width: 52px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--pink), var(--violet));
  opacity: .85;
  transition: width .08s linear;
}
.sv-track-text {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px;
  letter-spacing: .04em;
  color: var(--muted);
  pointer-events: none;
}
.sv-thumb {
  position: absolute; top: 6px; left: 0;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 18px rgba(255, 45, 149, .5);
  transition: transform .1s ease;
  will-change: transform;
}
.sv-thumb--dragging { box-shadow: 0 6px 24px rgba(139, 92, 246, .75); }
.sv-note { margin-top: 16px; font-size: 11.5px; color: #c38bb0; }

.sv-verified-icon {
  width: 62px; height: 62px;
  margin: 4px auto 14px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 28px;
  color: #fff;
  background: var(--grad);
  box-shadow: var(--glow-violet), 0 0 40px rgba(47, 224, 242, .3);
  animation: popIn .45s cubic-bezier(.2, 1.4, .4, 1) both;
}
@keyframes popIn { from { transform: scale(.3); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.sv-countdown-ring { position: relative; width: 80px; height: 80px; margin: 18px auto 8px; }
.sv-ring-svg { width: 80px; height: 80px; }
.sv-countdown-num {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font: 700 26px/1 'DIN Neon', var(--font-sans);
}
.sv-countdown-label { font-size: 12px; color: var(--muted); }

/* ================= Home nav ================= */
.nav-home {
  position: sticky; top: 0; z-index: 40;
  background: linear-gradient(180deg, rgba(7, 6, 15, .82), rgba(7, 6, 15, .25));
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.nav-inner {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 12px 18px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo { cursor: pointer; }

/* ================= Hero ================= */
.hero {
  position: relative;
  margin: 10px 14px 0;
  height: 560px;
  border-radius: 26px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .1);
  box-shadow: 0 26px 60px rgba(0, 0, 0, .5);
}
.hero-bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  filter: saturate(1.05);
  animation: heroZoom 12s ease-in-out infinite alternate;
}
@keyframes heroZoom { from { transform: scale(1); } to { transform: scale(1.08); } }
.hero-scrim {
  position: absolute; inset: 0;
  background:
    radial-gradient(110% 70% at 50% 0%, rgba(139, 92, 246, .28), transparent 60%),
    linear-gradient(180deg, rgba(7, 6, 15, .18) 0%, rgba(7, 6, 15, .32) 42%, rgba(7, 6, 15, .94) 100%);
}
.hero-content {
  position: absolute;
  left: 22px; right: 22px; bottom: 30px;
}
.live-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 13px 6px 10px;
  border-radius: 999px;
  background: rgba(12, 9, 26, .62);
  border: 1px solid rgba(255, 45, 149, .5);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
}
.live-dot-wrap { position: relative; width: 8px; height: 8px; display: inline-flex; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--pink); box-shadow: var(--glow-pink); }
.live-dot-ring {
  position: absolute; inset: -4px;
  border-radius: 50%;
  border: 1.5px solid var(--pink);
  animation: ping 1.6s cubic-bezier(0, 0, .2, 1) infinite;
}
@keyframes ping { 0% { transform: scale(.6); opacity: .9; } 100% { transform: scale(1.9); opacity: 0; } }
.live-label-text { color: #fff; }
.live-count, .din-bold {
  font-family: 'DIN Neon', var(--font-sans);
  font-weight: 700;
  color: #ffd6ea;
  letter-spacing: .03em;
}
.hero-title {
  margin: 16px 0 10px;
  font-size: 33px;
  line-height: 1.16;
  font-weight: 800;
  letter-spacing: -.01em;
  text-shadow: 0 4px 26px rgba(0, 0, 0, .5);
}
.hero-title .highlight {
  display: block;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 22px rgba(255, 45, 149, .35));
}
.hero-sub { margin: 0 0 22px; font-size: 13.5px; line-height: 1.65; color: #d8cfee; max-width: 330px; }

.cta-btn {
  width: 100%;
  height: 52px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: .03em;
  color: #fff;
  background: var(--grad);
  background-size: 160% 160%;
  box-shadow: 0 12px 34px rgba(255, 45, 149, .42), inset 0 1px 0 rgba(255, 255, 255, .28);
  transition: transform .2s, box-shadow .25s, background-position .5s;
  animation: gradShift 5s ease infinite;
}
@keyframes gradShift { 0%,100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
.cta-btn:active { transform: scale(.97); }
.cta-btn:hover { box-shadow: 0 14px 42px rgba(180, 92, 245, .55), inset 0 1px 0 rgba(255, 255, 255, .3); }

/* ================= Sections ================= */
.streamers-section, .features-section, .final-cta { padding: 34px 14px 0; }
.section-title {
  margin: 0 6px 16px;
  font-size: 19px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 10px;
}
.section-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 45, 149, .55), transparent);
}

.streamers-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.streamer-card {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: var(--r-lg);
  overflow: hidden;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, .09);
  background: #14102a;
  box-shadow: 0 14px 32px rgba(0, 0, 0, .42);
  animation: fadeUp .6s both;
  transition: transform .3s, border-color .3s, box-shadow .3s;
}
.streamer-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 45, 149, .6);
  box-shadow: 0 20px 44px rgba(0, 0, 0, .5), var(--glow-pink);
}
.streamer-card:active { transform: scale(.975); }
.streamer-img { width: 100%; height: 100%; object-fit: cover; transition: transform .55s ease; }
.streamer-card:hover .streamer-img { transform: scale(1.06); }
.streamer-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(7, 6, 15, .42) 0%, transparent 30%, transparent 46%, rgba(7, 6, 15, .86) 100%);
}
.live-tag {
  position: absolute; top: 10px; left: 10px;
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: .1em;
  color: #fff;
  background: linear-gradient(120deg, #ff2d95, #d11d6e);
  box-shadow: 0 4px 14px rgba(255, 45, 149, .5);
}
.live-tag-dot { width: 5px; height: 5px; border-radius: 50%; background: #fff; animation: blink 1.2s infinite; }
@keyframes blink { 50% { opacity: .25; } }
.viewer-count {
  position: absolute; right: 10px; bottom: 10px;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 700;
  color: #efe9ff;
  background: rgba(12, 9, 26, .6);
  border: 1px solid rgba(255, 255, 255, .16);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* Features */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.feature-card {
  padding: 18px 10px 16px;
  border-radius: var(--r-lg);
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--stroke);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: transform .25s, border-color .25s;
}
.feature-card:hover { transform: translateY(-3px); border-color: rgba(47, 224, 242, .5); }
.feature-icon {
  width: 44px; height: 44px;
  margin: 0 auto 10px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  background: var(--grad-soft);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12);
}
.feature-label { font-size: 11.5px; font-weight: 700; line-height: 1.45; color: #ddd4f4; }

/* Final CTA */
.final-cta { padding-bottom: 110px; }
.final-cta-card {
  position: relative;
  padding: 34px 24px 28px;
  border-radius: 28px;
  text-align: center;
  background:
    radial-gradient(120% 100% at 50% 0%, rgba(139, 92, 246, .24), transparent 60%),
    linear-gradient(165deg, rgba(30, 22, 58, .9), rgba(12, 9, 28, .95));
  border: 1px solid rgba(255, 255, 255, .12);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .5);
  overflow: hidden;
}
.final-cta-card::before {
  content: '';
  position: absolute; top: -40%; left: 50%;
  width: 320px; height: 320px;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(255, 45, 149, .28), transparent 65%);
  pointer-events: none;
}
.final-cta-title { position: relative; margin: 0 0 10px; font-size: 24px; font-weight: 800; }
.final-cta-sub { position: relative; margin: 0 0 22px; font-size: 13px; line-height: 1.6; color: var(--muted); }
.final-cta-card .cta-btn { position: relative; }

.page-footer {
  padding: 6px 20px 26px;
  text-align: center;
  font-size: 10.5px;
  letter-spacing: .05em;
  color: #6f6492;
}

/* Sticky dock */
.sticky-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, transparent, rgba(7, 6, 15, .75) 40%);
  pointer-events: none;
}
.sticky-bar-inner {
  max-width: var(--shell);
  margin: 0 auto;
  height: 56px;
  padding: 0 8px 0 18px;
  border-radius: 999px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: rgba(20, 15, 42, .78);
  border: 1px solid rgba(255, 255, 255, .13);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 14px 40px rgba(0, 0, 0, .55);
  pointer-events: auto;
}
.sticky-left { display: flex; align-items: center; gap: 9px; min-width: 0; }
.sticky-dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 10px var(--cyan);
  animation: blink 1.4s infinite;
  flex: none;
}
.sticky-text { font-size: 12.5px; font-weight: 600; color: #d9d0f2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sticky-btn {
  flex: none;
  height: 40px;
  padding: 0 22px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  color: #fff;
  background: var(--grad);
  box-shadow: 0 8px 22px rgba(255, 45, 149, .42);
}
.sticky-btn:active { transform: scale(.95); }

/* ================= Invite page ================= */
.invite-container {
  position: relative;
  min-height: 100vh;
  padding: 0 18px 40px;
  overflow: hidden;
}
.invite-top-bar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 0;
  background: linear-gradient(180deg, rgba(7, 6, 15, .9), transparent);
}
.back-btn {
  width: 38px; height: 38px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--surface);
  border: 1px solid var(--stroke);
  backdrop-filter: blur(10px);
}
.back-btn:active { transform: scale(.92); }

.moneyleft, .moneyright, .money-bottom {
  position: absolute;
  pointer-events: none;
  opacity: .5;
  filter: saturate(1.1);
}
.moneyleft { width: 130px; top: 92px; left: -46px; transform: rotate(-18deg); animation: floaty 6s ease-in-out infinite; }
.moneyright { width: 120px; top: 150px; right: -42px; transform: rotate(16deg); animation: floaty 7s .8s ease-in-out infinite; }
.money-bottom { width: 230px; left: 50%; bottom: -34px; transform: translateX(-50%); opacity: .32; }
@keyframes floaty { 50% { translate: 0 -12px; } }

.title-wrapper { position: relative; text-align: center; margin: 34px 0 28px; }
.title1 {
  font-size: 30px;
  font-weight: 900;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.title2 { margin-top: 10px; font-size: 15px; color: #dcd3f5; font-weight: 600; }
.yellow-span {
  font-family: 'DIN Neon', var(--font-sans);
  font-size: 22px;
  color: var(--amber);
  text-shadow: 0 0 22px rgba(255, 194, 77, .45);
}

.invite-slots {
  position: relative;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 14px;
  max-width: 360px; margin: 0 auto;
}
.invite-slot {
  width: 104px; height: 104px;
  border-radius: 24px;
  background:
    radial-gradient(circle at 50% 38%, rgba(139, 92, 246, .16), transparent 70%),
    rgba(255, 255, 255, .04);
  border: 1.5px dashed rgba(180, 92, 245, .6);
  display: flex; align-items: center; justify-content: center;
  color: #7c6ea8;
}
.invite-slot svg { width: 34px; height: 34px; opacity: .55; }
.invite-slot.filled {
  border-style: solid;
  border-color: rgba(47, 224, 242, .65);
  background: var(--grad-soft);
  color: var(--cyan);
  animation: popIn .4s cubic-bezier(.2, 1.4, .4, 1) both;
}
.line-break { width: 100%; height: 0; }

.share-main { text-align: center; margin: 28px auto 22px; max-width: 340px; }
.share-note { font-size: 13px; line-height: 1.7; color: var(--muted); }
.share-btn-wrap { position: relative; max-width: 340px; margin: 0 auto; }
.share-btn {
  width: 100%;
  height: 54px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: .04em;
  color: #fff;
  background: var(--grad);
  box-shadow: 0 14px 36px rgba(180, 92, 245, .45), inset 0 1px 0 rgba(255, 255, 255, .28);
}
.share-btn:active { transform: scale(.97); }

.share-popup-root { position: fixed; inset: 0; z-index: 80; visibility: hidden; }
.share-popup-root.active { visibility: visible; }
.share-popup-backdrop {
  position: absolute; inset: 0;
  background: rgba(5, 4, 12, .7);
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity .25s;
}
.share-popup-root.active .share-popup-backdrop { opacity: 1; }
.share-popup {
  position: absolute; left: 0; right: 0; bottom: 0;
  max-width: var(--shell); margin: 0 auto;
  padding: 10px 20px calc(24px + env(safe-area-inset-bottom));
  border-radius: 28px 28px 0 0;
  background: linear-gradient(170deg, #1a1340, #0d0a22);
  border-top: 1px solid rgba(255, 255, 255, .14);
  box-shadow: 0 -20px 60px rgba(0, 0, 0, .6);
  transform: translateY(100%);
  transition: transform .32s cubic-bezier(.22, .8, .3, 1);
}
.share-popup-root.active .share-popup { transform: none; }
.share-handle { width: 40px; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .22); margin: 6px auto 18px; }
.share-popup-title { text-align: center; font-size: 15px; font-weight: 800; margin-bottom: 20px; }
.share-icons { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.share-item {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 12px 4px;
  border-radius: 16px;
  transition: background .2s;
}
.share-item:active { background: var(--surface-2); }
.share-item img { width: 46px; height: 46px; border-radius: 13px; box-shadow: 0 8px 20px rgba(0, 0, 0, .4); }
.share-label { font-size: 11px; color: var(--muted); }
.share-cancel {
  width: 100%;
  height: 48px;
  margin-top: 16px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  color: #e8e1fa;
  background: var(--surface);
  border: 1px solid var(--stroke);
}

/* ================= Auth pages (login / register) ================= */
.page-login, .page-register { min-height: 100vh; padding-bottom: 50px; }
.login-nav, .reg-nav {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 18px;
  background: linear-gradient(180deg, rgba(7, 6, 15, .85), transparent);
  backdrop-filter: blur(12px);
}
.login-nav-back, .reg-nav-back {
  width: 38px; height: 38px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--surface);
  border: 1px solid var(--stroke);
}
.login-form-wrap { display: flex; align-items: center; justify-content: center; padding: 46px 20px; }
.login-card {
  width: 100%; max-width: 380px;
  padding: 30px 24px;
  border-radius: 26px;
  background: linear-gradient(165deg, rgba(28, 21, 54, .9), rgba(12, 9, 28, .94));
  border: 1px solid rgba(255, 255, 255, .12);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .5);
}
.login-card h2 { margin: 0 0 24px; font-size: 23px; font-weight: 800; text-align: center; }

.reg-hero { position: relative; text-align: center; padding: 30px 24px 22px; overflow: hidden; }
.reg-hero-glow {
  position: absolute; top: -90px; left: 50%; transform: translateX(-50%);
  width: 360px; height: 240px;
  background: radial-gradient(ellipse, rgba(255, 45, 149, .3), transparent 65%);
  pointer-events: none;
}
.reg-badge {
  position: relative;
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  color: #ffd6ea;
  background: var(--grad-soft);
  border: 1px solid rgba(255, 45, 149, .45);
}
.reg-title { position: relative; margin: 16px 0 8px; font-size: 28px; font-weight: 900; }
.reg-sub { position: relative; margin: 0; font-size: 13px; color: var(--muted); }

.form-wrap { padding: 10px 18px 0; }
.form-card {
  max-width: 444px;
  margin: 0 auto;
  padding: 24px 20px 26px;
  border-radius: 26px;
  background: linear-gradient(165deg, rgba(28, 21, 54, .85), rgba(12, 9, 28, .92));
  border: 1px solid rgba(255, 255, 255, .11);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .45);
}
.field-group { margin-bottom: 16px; }
.field-label { display: block; margin: 0 2px 8px; font-size: 12px; font-weight: 700; color: #cfc5ec; }
.field-input, .field-select {
  width: 100%;
  height: 50px;
  border-radius: 14px;
  padding: 0 16px;
  font-size: 14px;
  color: var(--text);
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .12);
  outline: none;
  transition: border-color .25s, box-shadow .25s, background .25s;
}
.field-input::placeholder { color: #7c719e; }
.field-input:focus, .field-select:focus {
  border-color: rgba(255, 45, 149, .6);
  box-shadow: 0 0 0 3px rgba(255, 45, 149, .16);
  background: rgba(255, 255, 255, .08);
}
.field-select { appearance: none; -webkit-appearance: none; padding-right: 38px; }
.select-wrap { position: relative; flex: none; width: 108px; }
.select-wrap::after {
  content: '';
  position: absolute; right: 14px; top: 50%;
  width: 8px; height: 8px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}
.select-wrap .field-select { padding: 0 30px 0 12px; font-size: 12.5px; }
.phone-row { display: flex; gap: 9px; }
.phone-row .field-input { flex: 1; min-width: 0; }
.select-wrap select option { color: #111; }

.submit-btn {
  width: 100%;
  height: 52px;
  margin-top: 6px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: .03em;
  color: #fff;
  background: var(--grad);
  box-shadow: 0 12px 30px rgba(255, 45, 149, .4);
}
.submit-btn:active { transform: scale(.98); }
.submit-btn:disabled { opacity: .6; box-shadow: none; }
.field-note { margin: 14px 4px 0; font-size: 11px; line-height: 1.6; color: #857aa8; text-align: center; }
.login-links {
  display: flex; justify-content: space-between;
  margin-top: 18px;
  font-size: 12.5px;
}
.login-links a { color: #d9cff6; cursor: pointer; }
.login-links a:first-child { font-weight: 700; color: #ff8bc0; }

/* Dialog */
.dialog-overlay {
  position: fixed; inset: 0; z-index: 90;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  background: rgba(5, 4, 12, .72);
  backdrop-filter: blur(5px);
  visibility: hidden; opacity: 0;
  transition: opacity .25s, visibility .25s;
}
.dialog-overlay.active { visibility: visible; opacity: 1; }
.dialog-box {
  width: 100%; max-width: 330px;
  padding: 28px 22px 22px;
  border-radius: 24px;
  text-align: center;
  background: linear-gradient(165deg, #1d1544, #0e0b24);
  border: 1px solid rgba(255, 255, 255, .14);
  box-shadow: 0 26px 70px rgba(0, 0, 0, .6);
  animation: popIn .35s cubic-bezier(.2, 1.3, .4, 1) both;
}
.dialog-box h3 { margin: 0 0 10px; font-size: 19px; font-weight: 800; }
.dialog-box p { margin: 0 0 20px; font-size: 13px; color: var(--muted); }
.dialog-btn {
  width: 100%; height: 46px;
  border-radius: 999px;
  font-size: 14px; font-weight: 800; color: #fff;
  background: var(--grad);
  box-shadow: 0 10px 26px rgba(139, 92, 246, .42);
}

/* ================= 404 ================= */
.notfound-container { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px; }
.notfound-content { text-align: center; }
.notfound-code {
  font-family: 'DIN Neon', var(--font-sans);
  font-size: 110px;
  line-height: 1;
  font-weight: 700;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 36px rgba(255, 45, 149, .4));
}
.notfound-text { margin-top: 8px; font-size: 15px; color: var(--muted); letter-spacing: .04em; }

/* ================= Small screens ================= */
@media (max-width: 360px) {
  .hero { height: 520px; }
  .hero-title { font-size: 28px; }
  .invite-slot { width: 92px; height: 92px; }
}
