@font-face {
  font-family: Poppins;
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("./assets/poppins-700.ttf") format("truetype");
}
@font-face {
  font-family: Poppins;
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("./assets/poppins-900.ttf") format("truetype");
}
@font-face {
  font-family: Poppins;
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url("./assets/poppins-900.ttf") format("truetype");
}

*,
*::before,
*::after { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  max-width: 100%;
  min-height: 100%;
  background: #3d0f2b;
  color: #fff;
  font-size: 16px;
  font-family: Poppins, Inter, "Segoe UI", Arial, sans-serif;
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
}
button, input, select { font-family: inherit; }
img { display: block; }

/* Brand */
.brand-logo { display: flex; align-items: center; gap: 8px; }
.brand-logo-icon { filter: drop-shadow(0 2px 6px rgba(255, 92, 158, .45)); flex-shrink: 0; }
.brand-logo-text { font-weight: 800; color: #fff; letter-spacing: -.4px; white-space: nowrap; }
.brand-logo-highlight {
  background: linear-gradient(90deg, #ff5c9e, #d6409f);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-left: 1px;
}

/* Load gate */
.load-page { position: relative; min-height: 100vh; background: #3d0f2b; overflow: hidden; }
.load-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1s ease; z-index: 0; }
.load-bg.is-on { opacity: 1; z-index: 1; }
.load-scrim { position: absolute; inset: 0; background: linear-gradient(180deg, #3d0f2b8c, #3d0f2bbf); z-index: 2; }
.sv-overlay {
  position: fixed; inset: 0; z-index: 9999;
  background: #00000026;
  backdrop-filter: blur(1px);
  -webkit-backdrop-filter: blur(1px);
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.sv-box {
  width: 100%; max-width: 300px;
  background: linear-gradient(160deg, #4a1435, #3d0f2b);
  border: 1px solid rgba(255, 92, 158, .2);
  border-radius: 20px;
  padding: 22px 20px 20px;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  box-shadow: 0 20px 60px #0009, 0 0 40px #ff5c9e14;
}
.sv-logo { display: flex; align-items: center; justify-content: center; gap: 8px; margin-bottom: 4px; width: auto; }
.sv-panel {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.sv-title { font-size: 16px; font-weight: 800; color: #fff; letter-spacing: -.3px; text-align: center; width: 100%; }
.sv-desc { font-size: 12px; color: #ffffff8c; text-align: center; line-height: 1.5; width: 100%; }
.sv-instruction { font-size: 13px; font-weight: 600; color: #fffc; margin-top: 8px; text-align: center; width: 100%; }
.sv-track {
  position: relative; width: 100%; align-self: stretch; height: 44px;
  background: #ffffff0f; border: 1.5px solid rgba(255,255,255,.12);
  border-radius: 22px; margin-top: 2px;
  touch-action: none; user-select: none; overflow: hidden;
}
.sv-track-fill {
  position: absolute; left: 0; top: 0; height: 100%;
  border-radius: 26px;
  background: linear-gradient(90deg, #ff5c9e26, #d6409f33);
}
.sv-track-text {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 600; color: #ffffff59; pointer-events: none; letter-spacing: .3px;
}
.sv-thumb {
  position: absolute; left: 2px; top: 2px; width: 40px; height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff5c9e, #d6409f);
  display: flex; align-items: center; justify-content: center;
  cursor: grab;
  box-shadow: 0 4px 16px #ff5c9e66;
}
.sv-thumb.is-drag { cursor: grabbing; box-shadow: 0 4px 24px #ff5c9e99; }
.sv-note { font-size: 11px; color: #ffffff4d; margin-top: 8px; text-align: center; width: 100%; }
.sv-verified-icon {
  width: 48px; height: 48px;
  background: linear-gradient(135deg, #4ade80, #16a34a);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; font-weight: 700; color: #fff;
  box-shadow: 0 4px 20px #4ade8066;
}
.sv-countdown-ring { position: relative; width: 80px; height: 80px; margin: 8px 0; }
.sv-ring-svg { width: 100%; height: 100%; display: block; }
#svRing { transition: stroke-dashoffset .9s linear; }
.sv-countdown-num {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 26px; font-weight: 800; color: #fff;
}
.sv-countdown-label { font-size: 14px; font-weight: 600; color: #ffffff8c; }

/* Home */
.page {
  min-height: 100vh;
  background: #3d0f2b;
  color: #fff;
  display: flex; flex-direction: column;
  padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px));
}
[hidden] { display: none !important; }
.nav {
  width: 100%; height: 44px; padding: 0 20px;
  display: flex; align-items: center;
  position: sticky; top: 0; z-index: 100;
  background: #3d0f2beb;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.nav-inner {
  width: 100%; max-width: 900px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  gap: 8px; min-width: 0;
}
.nav-right { display: flex; align-items: center; flex-shrink: 0; }
.nav-logo { display: flex; align-items: center; gap: 10px; cursor: pointer; min-width: 0; flex-shrink: 1; }

.hero {
  position: relative; overflow: hidden;
  height: 62vh; min-height: 380px; max-height: 560px;
  display: flex; align-items: flex-end;
}
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-scrim {
  position: absolute; inset: 0;
  background: linear-gradient(to top, #3d0f2b 0%, rgba(61,15,43,.75) 28%, rgba(61,15,43,.15) 62%, transparent 100%);
}
.hero-content {
  position: relative; width: 100%; max-width: 480px;
  margin: 0 auto; padding: 0 20px 28px; text-align: center;
}
.live-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: #ff3b3b1f; border: 1px solid rgba(255,59,59,.4);
  border-radius: 20px; padding: 6px 14px;
  font-size: 13px; font-weight: 600; color: #ff3b3b; margin-bottom: 12px;
  animation: badge-glow 2s ease-in-out infinite;
}
@keyframes badge-glow {
  0%, 100% { box-shadow: 0 0 8px #ff3b3b33; }
  50% { box-shadow: 0 0 18px #ff3b3b80; }
}
.live-dot-wrap { position: relative; width: 10px; height: 10px; }
.live-dot {
  position: absolute; inset: 1px; background: #ff3b3b; border-radius: 50%;
  animation: dot-pulse 1.2s infinite;
}
.live-dot-ring {
  position: absolute; inset: 0; border: 1.5px solid #ff3b3b; border-radius: 50%;
  animation: ring-expand 1.8s ease-out infinite;
}
@keyframes dot-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .6; transform: scale(.8); }
}
@keyframes ring-expand {
  0% { transform: scale(1); opacity: .8; }
  100% { transform: scale(2.5); opacity: 0; }
}
.live-label-text { font-weight: 800; letter-spacing: 1px; animation: text-flicker 3s ease-in-out infinite; }
@keyframes text-flicker {
  0%, 100% { opacity: 1; }
  50% { opacity: .75; }
}
.live-count { color: #ffffffa6; font-weight: 400; }
.hero-title { font-size: clamp(22px, 6vw, 32px); font-weight: 800; line-height: 1.15; margin: 0 0 10px; }
.highlight {
  background: linear-gradient(90deg, #ff5c9e, #d6409f);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-sub { font-size: 13px; color: #ffffffa6; margin: 0 0 16px; line-height: 1.5; }
.cta-btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 44px; padding: 0 24px;
  background: linear-gradient(135deg, #ff5c9e, #d6409f);
  border: none; border-radius: 12px; color: #fff;
  font-size: 16px; font-weight: 700; cursor: pointer; letter-spacing: .2px;
  white-space: nowrap;
}
.cta-btn:active { transform: scale(.97); }

.streamers-section { padding: 20px 16px; max-width: 900px; margin: 0 auto; width: 100%; }
.section-title { font-size: 20px; font-weight: 700; margin: 0 0 20px 4px; }
.streamers-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.streamer-card {
  position: relative; border-radius: 14px; overflow: hidden; cursor: pointer;
  aspect-ratio: 3/4;
  animation: card-fadein .5s ease both;
}
.streamer-card:nth-child(1) { animation-delay: .02s; }
.streamer-card:nth-child(2) { animation-delay: .06s; }
.streamer-card:nth-child(3) { animation-delay: .1s; }
.streamer-card:nth-child(4) { animation-delay: .14s; }
@keyframes card-fadein {
  0% { opacity: 0; transform: translateY(16px); }
  100% { opacity: 1; transform: translateY(0); }
}
.streamer-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.streamer-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.7) 0%, transparent 50%);
  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: #ff3b3b; color: #fff; font-size: 11px; font-weight: 800;
  padding: 3px 8px; border-radius: 4px; letter-spacing: 1px;
  box-shadow: 0 0 10px #ff3b3b99;
  animation: live-tag-glow 2s ease-in-out infinite;
}
@keyframes live-tag-glow {
  0%, 100% { box-shadow: 0 0 8px #ff3b3b80; }
  50% { box-shadow: 0 0 18px #ff3b3be6, 0 0 6px #ff3b3b99; }
}
.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: #ffffffd9; font-weight: 500; }

.features-section { padding: 32px 16px; max-width: 480px; margin: 0 auto; width: 100%; }
.features-grid { display: flex; gap: 10px; }
.feature-card {
  flex: 1; background: #5c1a41; border: 1px solid rgba(255,255,255,.06);
  border-radius: 12px; padding: 18px 10px; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.feature-icon { font-size: 26px; }
.feature-label { font-size: 13px; font-weight: 600; }

.final-cta { padding: 40px 16px; max-width: 480px; margin: 0 auto; width: 100%; }
.final-cta-card {
  background: linear-gradient(135deg, #5c1a41, #3d0f2b);
  border: 1px solid rgba(255,92,158,.2);
  border-radius: 20px; padding: 40px 24px; text-align: center;
}
.final-cta-title { font-size: clamp(20px, 5vw, 26px); font-weight: 800; margin: 0 0 10px; }
.final-cta-sub { font-size: 14px; color: #ffffffa6; margin: 0 0 24px; line-height: 1.5; }
.page-footer {
  padding: 16px 20px; text-align: center; font-size: 11px; color: #ffffff40;
  border-top: 1px solid rgba(255,255,255,.04);
}

.sticky-bar {
  position: fixed; bottom: 0; left: 0; right: 0;
  background: #4a1435; border-top: 1px solid rgba(255,255,255,.08);
  padding: 12px 16px; z-index: 200;
  padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
}
.sticky-bar-inner {
  max-width: 480px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
}
.sticky-left { display: flex; align-items: center; gap: 8px; }
.sticky-dot { width: 8px; height: 8px; background: #ff3b3b; border-radius: 50%; animation: pulse 1.5s infinite; }
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .4; }
}
.sticky-text { font-size: 13px; color: #ffffffa6; font-weight: 500; }
.sticky-btn {
  height: 36px; padding: 0 20px;
  background: linear-gradient(135deg, #ff5c9e, #d6409f);
  border: none; border-radius: 8px; color: #fff;
  font-size: 13px; font-weight: 700; cursor: pointer;
}

.language-selector-wrapper { position: relative; display: inline-block; }
.language-selector-btn {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 6px 10px; border-radius: 8px;
  border: 1px solid rgba(255,255,255,.15);
  background: #ffffff12; color: #ffffffd9;
  font-weight: 500; font-size: 13px; cursor: pointer; white-space: nowrap;
}
.lang-icon { width: 15px; height: 15px; flex-shrink: 0; opacity: .9; }
.lang-text { max-width: 80px; overflow: hidden; text-overflow: ellipsis; }
.lang-chevron { width: 9px; height: 9px; flex-shrink: 0; opacity: .6; transition: transform .18s; }
.lang-chevron.open { transform: rotate(180deg); }
.language-dropdown {
  position: absolute; top: calc(100% + 6px); right: 0;
  background: #000; border-radius: 6px; z-index: 4000;
  min-width: 200px; max-width: 320px; max-height: 70vh; overflow: auto;
}
.language-option {
  padding: 10px 14px; color: #fff; cursor: pointer;
  border-bottom: 1px solid rgba(255,0,255,.06); font-size: 13px;
}
.language-option.selected { background: #30cb7b33; color: #30cb7b; }
.language-option:last-child { border-bottom: none; }

/* Invite */
.page-root {
  min-height: 100vh; background: #3d0f2b;
  display: flex; flex-direction: column; align-items: center;
}
.nav-bar {
  width: 100%; max-width: 480px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 20px;
}
.nav-back {
  width: 36px; height: 36px; background: #ffffff14; border: none; border-radius: 50%;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 18px;
}
.nav-placeholder { width: 36px; }
.invite-hero {
  width: 100%; max-width: 480px; text-align: center;
  padding: 20px 20px 28px; position: relative; overflow: hidden;
}
.hero-glow {
  position: absolute; top: -80%; left: 50%; transform: translateX(-50%);
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(255,92,158,.15) 0%, transparent 70%);
  pointer-events: none;
}
.hero-badge {
  display: inline-block;
  background: #ff5c9e1f; border: 1px solid rgba(255,92,158,.3);
  color: #ff5c9e; font-size: 12px; font-weight: 600;
  padding: 5px 14px; border-radius: 20px; margin-bottom: 14px;
}
.invite-title { font-size: clamp(22px, 6vw, 30px); font-weight: 800; color: #fff; margin: 0 0 10px; line-height: 1.2; }
.invite-sub { font-size: 13px; color: #ffffffa6; margin: 0; line-height: 1.6; }
.form-wrap { width: 100%; max-width: 480px; padding: 0 16px 48px; flex: 1; }
.form-card {
  background: #fff; border-radius: 16px; padding: 28px 24px;
  box-shadow: 0 4px 32px #0000004d;
  display: flex; flex-direction: column; gap: 20px;
}
.field-group { display: flex; flex-direction: column; gap: 6px; }
.field-label { font-size: 13px; font-weight: 600; color: #374151; }
.field-input {
  height: 48px; border: 1.5px solid #e2e8f0; border-radius: 10px;
  padding: 0 14px; font-size: 15px; color: #111827; outline: none;
}
.field-input::placeholder { color: #9ca3af; }
.field-input:focus { border-color: #ff5c9e; }
.select-wrap { position: relative; }
.field-select {
  width: 100%; height: 48px; border: 1.5px solid #e2e8f0; border-radius: 10px;
  padding: 0 36px 0 14px; font-size: 15px; color: #111827; background: #fff;
  outline: none; appearance: none; -webkit-appearance: none; cursor: pointer;
}
.field-select:focus { border-color: #ff5c9e; }
.select-arrow { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); pointer-events: none; color: #6b7280; }
.phone-row {
  display: flex; align-items: center;
  border: 1.5px solid #e2e8f0; border-radius: 10px; height: 48px; overflow: hidden;
}
.phone-row:focus-within { border-color: #ff5c9e; }
.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: 600;
  color: #374151; border-right: 1.5px solid #e2e8f0;
}
.phone-input {
  flex: 1; height: 100%; border: none; outline: none; padding: 0 14px;
  font-size: 15px; color: #111827; background: transparent;
}
.field-hint { font-size: 12px; color: #ef4444; }
.btn-submit {
  width: 100%; height: 52px;
  background: linear-gradient(135deg, #ff5c9e, #d6409f);
  border: none; border-radius: 10px; color: #fff;
  font-size: 16px; font-weight: 700; cursor: pointer;
}
.btn-submit--disabled, .btn-submit:disabled { opacity: .45; cursor: not-allowed; }
.form-note { font-size: 11px; color: #9ca3af; text-align: center; margin: 0; line-height: 1.5; }

.modal-mask {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(0,0,0,.45);
  display: flex; align-items: center; justify-content: center; padding: 24px;
}
.loading-box, .dialog-box {
  background: #fff; border-radius: 20px; padding: 40px 32px;
  display: flex; flex-direction: column; align-items: center; gap: 16px;
  min-width: 220px; max-width: 300px; text-align: center;
}
.loading-spinner {
  width: 44px; height: 44px;
  border: 4px solid #e2e8f0; border-top-color: #ff5c9e; border-radius: 50%;
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loading-text { font-size: 15px; color: #374151; font-weight: 500; margin: 0; }
.dialog-icon { font-size: 40px; line-height: 1; }
.dialog-title { font-size: 18px; font-weight: 700; color: #111827; }
.dialog-desc { font-size: 14px; color: #6b7280; line-height: 1.6; }
.dialog-btn {
  width: 100%; height: 48px;
  background: linear-gradient(135deg, #ff5c9e, #d6409f);
  border: none; border-radius: 12px; color: #fff;
  font-size: 16px; font-weight: 700; cursor: pointer;
}

.float-contact {
  position: fixed;
  right: clamp(0.85rem, 3vw, 1.35rem);
  bottom: 40vh;
  z-index: 10050;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}
.float-contact__btn {
  width: 3.15rem;
  height: 3.15rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
  transition: transform 0.2s ease, filter 0.2s ease;
}
.float-contact__btn svg {
  width: 1.45rem;
  height: 1.45rem;
  display: block;
}
.float-contact__btn:hover {
  transform: translateY(-3px) scale(1.05);
  filter: brightness(1.08);
}
.float-contact__btn--wa { background: #25d366; }
.float-contact__btn--tg { background: #2aabee; }

@media (min-width: 780px) {
  .streamers-grid { grid-template-columns: repeat(3, 1fr); gap: 14px; }
  .hero { max-height: 640px; }
  .sticky-bar-inner, .features-section { max-width: 900px; }
  .features-grid { max-width: 480px; margin: 0 auto; }
}
@media (max-width: 640px) {
  .float-contact { bottom: 58vh; }
  .float-contact__btn {
    width: 2.85rem;
    height: 2.85rem;
  }
}
@media (max-width: 400px) {
  .form-card { padding: 22px 16px; }
}
