/* Rose Night — home clone (differentiated from original) */
:root {
  --bg: #14081f;
  --bg-elevated: #221033;
  --bg-card: #2a1540;
  --bg-nav: rgba(20, 8, 31, 0.88);
  --bg-sticky: rgba(28, 12, 42, 0.94);
  --accent: #e84dff;
  --accent-2: #ff4d9a;
  --accent-grad: linear-gradient(135deg, #e84dff 0%, #ff4d9a 55%, #ff7a5c 100%);
  --accent-soft: rgba(232, 77, 255, 0.16);
  --live: #ff3b5c;
  --text: #ffffff;
  --text-muted: rgba(255, 255, 255, 0.68);
  --text-dim: rgba(255, 255, 255, 0.42);
  --line: rgba(255, 255, 255, 0.08);
  --radius: 18px;
  --radius-pill: 999px;
  --shadow: 0 18px 48px rgba(0, 0, 0, 0.35);
  --max: 480px;
  --max-wide: 920px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

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

html {
  -webkit-tap-highlight-color: transparent;
}

body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: "Poppins", "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  overflow-x: hidden;
}

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

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

/* ---- Age gate ---- */
.gate {
  position: fixed;
  inset: 0;
  z-index: 900;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background:
    radial-gradient(ellipse at 50% 20%, rgba(232, 77, 255, 0.18), transparent 55%),
    rgba(10, 4, 16, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.gate.is-open {
  display: flex;
}

.gate-card {
  width: min(100%, 360px);
  background: linear-gradient(165deg, #321548 0%, #1a0c28 100%);
  border: 1px solid rgba(232, 77, 255, 0.22);
  border-radius: 22px;
  padding: 24px 20px 20px;
  box-shadow: var(--shadow), 0 0 48px rgba(232, 77, 255, 0.12);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
}

.gate-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.gate-title {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.gate-desc {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
}

.gate-instruction {
  font-size: 13px;
  font-weight: 600;
  margin-top: 6px;
}

.sv-track {
  position: relative;
  width: 100%;
  height: 48px;
  margin-top: 4px;
  background: rgba(255, 255, 255, 0.06);
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-pill);
  touch-action: none;
  user-select: none;
  overflow: hidden;
}

.sv-fill {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 48px;
  border-radius: var(--radius-pill);
  background: linear-gradient(90deg, rgba(232, 77, 255, 0.18), rgba(255, 77, 154, 0.28));
}

.sv-text {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.38);
  pointer-events: none;
  letter-spacing: 0.02em;
}

.sv-thumb {
  position: absolute;
  left: 3px;
  top: 3px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--accent-grad);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: grab;
  box-shadow: 0 6px 18px rgba(232, 77, 255, 0.45);
  transition: box-shadow 0.15s, transform 0.1s;
}

.sv-thumb.is-drag {
  cursor: grabbing;
  transform: scale(1.05);
  box-shadow: 0 8px 24px rgba(232, 77, 255, 0.6);
}

.sv-thumb svg {
  display: block;
}

.gate-note {
  font-size: 11px;
  color: var(--text-dim);
  margin-top: 4px;
}

.gate-done {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 100%;
}

.gate-done.is-show {
  display: flex;
}

.gate-form {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 100%;
}

.gate-form.is-hide {
  display: none;
}

.gate-check {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, #4ade80, #16a34a);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 700;
  box-shadow: 0 6px 22px rgba(74, 222, 128, 0.4);
}

.gate-ring {
  position: relative;
  width: 80px;
  height: 80px;
  margin: 6px 0;
}

.gate-ring svg {
  width: 100%;
  height: 100%;
}

.gate-ring-num {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  font-weight: 800;
}

.gate-enter-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
}

/* ---- Page shell ---- */
.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding-bottom: calc(78px + var(--safe-bottom));
  background:
    radial-gradient(ellipse 80% 40% at 50% -10%, rgba(232, 77, 255, 0.14), transparent 60%),
    var(--bg);
}

/* ---- Nav ---- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: 52px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  background: var(--bg-nav);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  width: 100%;
  max-width: var(--max-wide);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  user-select: none;
}

.brand-icon {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
}

.brand-text {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.brand-text em {
  font-style: normal;
  background: var(--accent-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Language */
.lang-wrap {
  position: relative;
}

.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 11px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.88);
  font-size: 12px;
  font-weight: 600;
  transition: background 0.15s, border-color 0.15s;
}

.lang-btn:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.28);
}

.lang-btn svg {
  width: 14px;
  height: 14px;
  opacity: 0.9;
}

.lang-chevron {
  width: 9px;
  height: 9px;
  opacity: 0.55;
  transition: transform 0.18s;
}

.lang-chevron.open {
  transform: rotate(180deg);
}

.lang-label {
  max-width: 88px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lang-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 200px;
  max-height: min(60vh, 360px);
  overflow: auto;
  background: #0d0614;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
  z-index: 200;
}

.lang-menu.is-open {
  display: block;
}

.lang-option {
  display: block;
  width: 100%;
  text-align: left;
  padding: 11px 14px;
  font-size: 13px;
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  transition: background 0.12s;
}

.lang-option:last-child {
  border-bottom: 0;
}

.lang-option:hover {
  background: rgba(232, 77, 255, 0.12);
}

.lang-option.is-active {
  background: rgba(48, 203, 123, 0.18);
  color: #30cb7b;
  font-weight: 700;
}

/* ---- Hero ---- */
.hero {
  position: relative;
  overflow: hidden;
  height: 58vh;
  min-height: 360px;
  max-height: 540px;
  display: flex;
  align-items: flex-end;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
}

.hero-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, var(--bg) 0%, rgba(20, 8, 31, 0.82) 28%, rgba(20, 8, 31, 0.2) 58%, transparent 100%),
    linear-gradient(120deg, rgba(232, 77, 255, 0.12), transparent 45%);
}

.hero-content {
  position: relative;
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px 26px;
  text-align: center;
}

.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 59, 92, 0.14);
  border: 1px solid rgba(255, 59, 92, 0.42);
  border-radius: var(--radius-pill);
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 700;
  color: var(--live);
  margin-bottom: 12px;
  animation: badge-glow 2s ease-in-out infinite;
}

@keyframes badge-glow {
  0%,
  100% {
    box-shadow: 0 0 8px rgba(255, 59, 92, 0.2);
  }
  50% {
    box-shadow: 0 0 18px rgba(255, 59, 92, 0.45);
  }
}

.live-dot-wrap {
  position: relative;
  width: 10px;
  height: 10px;
}

.live-dot {
  position: absolute;
  inset: 1px;
  background: var(--live);
  border-radius: 50%;
  animation: dot-pulse 1.2s infinite;
}

.live-dot-ring {
  position: absolute;
  inset: 0;
  border: 1.5px solid var(--live);
  border-radius: 50%;
  animation: ring-expand 1.8s ease-out infinite;
}

@keyframes dot-pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.55;
    transform: scale(0.8);
  }
}

@keyframes ring-expand {
  0% {
    transform: scale(1);
    opacity: 0.8;
  }
  100% {
    transform: scale(2.4);
    opacity: 0;
  }
}

.live-count {
  color: rgba(255, 255, 255, 0.65);
  font-weight: 500;
}

.hero-title {
  font-size: clamp(22px, 6vw, 32px);
  font-weight: 800;
  line-height: 1.15;
  margin: 0 0 10px;
  letter-spacing: -0.03em;
}

.hero-title .hl {
  background: var(--accent-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-sub {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0 0 18px;
  line-height: 1.55;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 28px;
  background: var(--accent-grad);
  border-radius: var(--radius-pill);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.01em;
  box-shadow: 0 12px 28px rgba(232, 77, 255, 0.35);
  transition: transform 0.15s, opacity 0.15s, box-shadow 0.15s;
}

.cta-btn:hover {
  opacity: 0.94;
  transform: translateY(-1px);
  box-shadow: 0 14px 32px rgba(232, 77, 255, 0.42);
}

.cta-btn:active {
  transform: scale(0.97);
}

/* ---- Streamers ---- */
.section {
  width: 100%;
  max-width: var(--max-wide);
  margin: 0 auto;
  padding: 22px 16px 0;
}

.section-title {
  font-size: 18px;
  font-weight: 750;
  margin: 0 0 14px 4px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-title::before {
  content: "";
  width: 4px;
  height: 16px;
  border-radius: 4px;
  background: var(--accent-grad);
}

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

.streamer-card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 3 / 4;
  background: var(--bg-card);
  transition: transform 0.22s, box-shadow 0.22s;
  animation: card-in 0.5s ease both;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.streamer-card:nth-child(2) {
  animation-delay: 0.05s;
}
.streamer-card:nth-child(3) {
  animation-delay: 0.1s;
}
.streamer-card:nth-child(4) {
  animation-delay: 0.15s;
}
.streamer-card:nth-child(5) {
  animation-delay: 0.2s;
}
.streamer-card:nth-child(6) {
  animation-delay: 0.25s;
}

.streamer-card:hover {
  transform: translateY(-3px) scale(1.015);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.4);
}

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

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

.streamer-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.72) 0%, transparent 48%);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 10px;
}

.live-tag {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--live);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  padding: 4px 8px;
  border-radius: 6px;
  letter-spacing: 0.08em;
  box-shadow: 0 0 12px rgba(255, 59, 92, 0.55);
}

.live-tag-dot {
  width: 6px;
  height: 6px;
  background: #fff;
  border-radius: 50%;
  animation: dot-pulse 1.2s infinite;
}

.viewer-count {
  align-self: flex-end;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 600;
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(4px);
  padding: 4px 8px;
  border-radius: 8px;
}

/* ---- Features ---- */
.features {
  max-width: var(--max);
  margin: 0 auto;
  padding: 28px 16px 0;
  width: 100%;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.feature-card {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px 8px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.feature-icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  background: var(--accent-soft);
  border: 1px solid rgba(232, 77, 255, 0.18);
}

.feature-label {
  font-size: 12px;
  font-weight: 650;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.92);
}

/* ---- Final CTA ---- */
.final-cta {
  max-width: var(--max);
  margin: 0 auto;
  padding: 32px 16px 12px;
  width: 100%;
}

.final-cta-card {
  background:
    radial-gradient(ellipse at 80% 0%, rgba(232, 77, 255, 0.18), transparent 50%),
    linear-gradient(145deg, #321548, #1a0c28);
  border: 1px solid rgba(232, 77, 255, 0.22);
  border-radius: 22px;
  padding: 36px 22px;
  text-align: center;
  box-shadow: var(--shadow);
}

.final-cta-title {
  font-size: clamp(20px, 5vw, 26px);
  font-weight: 800;
  margin: 0 0 10px;
  letter-spacing: -0.02em;
}

.final-cta-sub {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0 0 22px;
  line-height: 1.55;
}

/* ---- Footer ---- */
.page-footer {
  padding: 18px 20px 8px;
  text-align: center;
  font-size: 11px;
  color: var(--text-dim);
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  margin-top: 12px;
}

/* ---- Sticky bar ---- */
.sticky-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  padding: 10px 14px calc(10px + var(--safe-bottom));
  background: var(--bg-sticky);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.sticky-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.sticky-left {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.sticky-dot {
  width: 8px;
  height: 8px;
  flex-shrink: 0;
  background: var(--live);
  border-radius: 50%;
  animation: pulse 1.5s infinite;
}

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

.sticky-text {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 550;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sticky-btn {
  flex-shrink: 0;
  height: 38px;
  padding: 0 18px;
  background: var(--accent-grad);
  border-radius: var(--radius-pill);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 8px 18px rgba(232, 77, 255, 0.3);
  transition: opacity 0.15s, transform 0.15s;
}

.sticky-btn:hover {
  opacity: 0.9;
}

.sticky-btn:active {
  transform: scale(0.97);
}

/* Toast */
.toast {
  position: fixed;
  left: 50%;
  bottom: calc(90px + var(--safe-bottom));
  transform: translateX(-50%) translateY(12px);
  z-index: 300;
  padding: 10px 16px;
  border-radius: 12px;
  background: rgba(20, 8, 31, 0.95);
  border: 1px solid rgba(232, 77, 255, 0.3);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
  max-width: 90vw;
  text-align: center;
}

.toast.is-show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* RTL */
[dir="rtl"] .section-title::before {
  order: 2;
}

[dir="rtl"] .lang-menu {
  right: auto;
  left: 0;
}

[dir="rtl"] .sv-thumb {
  left: auto;
  right: 3px;
}

/* Desktop */
@media (min-width: 780px) {
  .streamers-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
  }

  .hero {
    max-height: 620px;
  }

  .sticky-inner,
  .features {
    max-width: var(--max-wide);
  }

  .features-grid {
    max-width: 480px;
    margin: 0 auto;
  }

  .final-cta {
    max-width: 560px;
  }
}

/* ---- Views ---- */
.view-page[hidden],
.sticky-bar[hidden],
.modal-overlay[hidden] {
  display: none !important;
}

/* ---- Invite / Register page ---- */
.invite-page {
  min-height: 100vh;
  background:
    radial-gradient(ellipse 70% 35% at 50% -5%, rgba(232, 77, 255, 0.16), transparent 55%),
    var(--bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  font-family: "Poppins", "Inter", "Segoe UI", system-ui, sans-serif;
}

.invite-nav {
  width: 100%;
  max-width: var(--max);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
}

.nav-back {
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 18px;
  transition: background 0.15s;
}

.nav-back:hover {
  background: rgba(255, 255, 255, 0.18);
}

.nav-back-arrow {
  line-height: 1;
}

.nav-placeholder {
  width: 36px;
}

.brand--sm .brand-icon {
  width: 30px;
  height: 30px;
}

.brand--sm .brand-text {
  font-size: 16px;
}

.invite-hero {
  width: 100%;
  max-width: var(--max);
  text-align: center;
  padding: 18px 20px 26px;
  position: relative;
  overflow: hidden;
}

.invite-hero-glow {
  position: absolute;
  top: -80%;
  left: 50%;
  transform: translateX(-50%);
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(232, 77, 255, 0.18) 0%, transparent 70%);
  pointer-events: none;
}

.invite-badge {
  display: inline-block;
  background: var(--accent-soft);
  border: 1px solid rgba(232, 77, 255, 0.32);
  color: #f0a8ff;
  font-size: 12px;
  font-weight: 650;
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  margin-bottom: 14px;
  position: relative;
}

.invite-title {
  font-size: clamp(22px, 6vw, 30px);
  font-weight: 800;
  color: #fff;
  margin: 0 0 10px;
  line-height: 1.2;
  letter-spacing: -0.02em;
  position: relative;
}

.invite-sub {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.6;
  position: relative;
}

.invite-form-wrap {
  width: 100%;
  max-width: var(--max);
  padding: 0 16px 40px;
  flex: 1;
}

.invite-form-card {
  background: #fff;
  border-radius: 18px;
  padding: 28px 22px;
  box-shadow: 0 8px 36px rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.field-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field-label {
  font-size: 13px;
  font-weight: 650;
  color: #374151;
}

.field-input {
  height: 48px;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  padding: 0 14px;
  font-size: 15px;
  font-family: inherit;
  color: #111827;
  outline: none;
  transition: border-color 0.2s;
  background: #fff;
}

.field-input::placeholder {
  color: #9ca3af;
}

.field-input:focus {
  border-color: #e84dff;
}

.select-wrap {
  position: relative;
}

.field-select {
  width: 100%;
  height: 48px;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  padding: 0 36px 0 14px;
  font-size: 15px;
  font-family: inherit;
  color: #111827;
  background: #fff;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}

.field-select:focus {
  border-color: #e84dff;
}

.select-arrow {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: #6b7280;
  font-size: 14px;
}

.phone-row {
  display: flex;
  align-items: center;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  height: 48px;
  overflow: hidden;
  transition: border-color 0.2s;
  background: #fff;
}

.phone-row:focus-within {
  border-color: #e84dff;
}

.phone-row.is-error {
  border-color: #ef4444;
}

.area-code-badge {
  flex-shrink: 0;
  height: 100%;
  display: flex;
  align-items: center;
  padding: 0 12px;
  background: #f1f5f9;
  font-size: 14px;
  font-weight: 650;
  color: #374151;
  border-right: 1.5px solid #e2e8f0;
  white-space: nowrap;
}

.phone-input {
  flex: 1;
  min-width: 0;
  height: 100%;
  border: none;
  outline: none;
  padding: 0 14px;
  font-size: 15px;
  font-family: inherit;
  color: #111827;
  background: transparent;
}

.phone-input::placeholder {
  color: #9ca3af;
}

.field-hint {
  font-size: 12px;
  color: #ef4444;
  margin-top: 2px;
}

.btn-submit {
  width: 100%;
  height: 52px;
  background: var(--accent-grad);
  border-radius: 14px;
  color: #fff;
  font-size: 16px;
  font-weight: 750;
  letter-spacing: 0.01em;
  box-shadow: 0 10px 24px rgba(232, 77, 255, 0.28);
  transition: opacity 0.2s, transform 0.1s;
}

.btn-submit:hover:not(:disabled) {
  opacity: 0.92;
  transform: translateY(-1px);
}

.btn-submit:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.form-note {
  font-size: 11px;
  color: #9ca3af;
  text-align: center;
  margin: 0;
  line-height: 1.5;
}

.invite-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  margin-top: auto;
}

/* Modal overlays */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 800;
  background: rgba(10, 4, 16, 0.62);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal-box {
  background: #fff;
  border-radius: 20px;
  padding: 36px 28px 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  min-width: 220px;
  max-width: 300px;
  width: 100%;
  text-align: center;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

.loading-spinner {
  width: 44px;
  height: 44px;
  border: 4px solid #e2e8f0;
  border-top-color: #e84dff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

.modal-text {
  font-size: 15px;
  color: #374151;
  font-weight: 550;
  margin: 0;
}

.dialog-icon {
  font-size: 40px;
  line-height: 1;
}

.dialog-title {
  font-size: 18px;
  font-weight: 750;
  color: #111827;
}

.dialog-desc {
  font-size: 14px;
  color: #6b7280;
  line-height: 1.6;
  margin: 0;
}

.dialog-btn {
  width: 100%;
  height: 48px;
  margin-top: 4px;
  background: var(--accent-grad);
  border-radius: 12px;
  color: #fff;
  font-size: 16px;
  font-weight: 750;
  transition: opacity 0.2s;
}

.dialog-btn:hover {
  opacity: 0.9;
}

@media (max-width: 400px) {
  .invite-form-card {
    padding: 22px 16px;
  }
}

body.is-invite .gate {
  display: none !important;
}
