/* ============================================
   GoRBX — Dark Purple Theme  |  Poppins Font
   ============================================ */

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

:root {
  --bg:         #0d0b18;
  --surface:    #161228;
  --card:       #1e1838;
  --border:     rgba(139, 92, 246, 0.22);
  --purple:     #7c3aed;
  --purple-lt:  #a78bfa;
  --pink:       #db2777;
  --grad:       linear-gradient(135deg, #7c3aed 0%, #db2777 100%);
  --grad-soft:  linear-gradient(135deg, rgba(124,58,237,0.18) 0%, rgba(219,39,119,0.12) 100%);
  --green:      #22c55e;
  --text:       #f1f0ff;
  --muted:      #8b8aab;
  --radius:     18px;
  --radius-sm:  12px;
}

html { height: 100%; }

body {
  font-family: 'Poppins', sans-serif;
  background: var(--bg);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  color: var(--text);
  overflow-x: hidden;
}

/* ---- Steps ---- */
.step {
  display: none;
  width: 100%;
  max-width: 420px;
  min-height: 100vh;
  flex-direction: column;
}
.step.active { display: flex; }

/* ---- Phone wrap ---- */
.phone-wrap {
  display: flex;
  flex-direction: column;
  flex: 1;
  position: relative;
  overflow: hidden;
}

/* ---- Animated gradient mesh bg ---- */
.phone-wrap::before {
  content: '';
  position: fixed;
  top: -30%;
  left: -20%;
  width: 80vw;
  height: 80vw;
  max-width: 500px;
  max-height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124,58,237,0.18) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}
/* .phone-wrap::after {
  content: '';
  position: fixed;
  bottom: -20%;
  right: -20%;
  width: 60vw;
  height: 60vw;
  max-width: 380px;
  max-height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(219,39,119,0.13) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
} */

/* ---- Top bar ---- */
.top-bar {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 22px 22px 10px;
}

.topbar-icon {
  width: 34px;
  height: 34px;
  filter: drop-shadow(0 0 10px rgba(168, 85, 247, 0.7));
}

.topbar-title {
  font-size: 1.5rem;
  font-weight: 900;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.03em;
}

/* ---- Watermark ---- */
.watermark-bg {
  position: absolute;
  top: 50px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 6rem;
  font-weight: 900;
  color: rgba(124,58,237,0.05);
  letter-spacing: -0.03em;
  white-space: nowrap;
  pointer-events: none;
  z-index: 0;
  user-select: none;
}

/* ---- Main content ---- */
.content {
  position: relative;
  z-index: 5;
  padding: 12px 18px 12px;
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  /* align-items: center; */
}

/* ---- Roblox logo ---- */
.roblox-logo {
  width: 70%;
  max-width: 220px;
  margin: 0 auto 16px;
  display: block;
  filter: invert(1) brightness(0.9);
  opacity: 0.85;
}

/* ---- Headlines ---- */
.headline {
  font-size: 1.5rem;
  font-weight: 800;
  text-align: center;
  color: var(--text);
  line-height: 1.25;
  margin-bottom: 10px;
}

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

/* ---- Divider ---- */
.divider {
  width: 50px;
  height: 3px;
  background: var(--grad);
  border-radius: 999px;
  margin: 0 auto 20px;
  opacity: 0.6;
}

/* ---- Step labels ---- */
.step-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 10px;
  line-height: 1.5;
}
.step-label strong { color: var(--text); }

.badge {
  display: inline-block;
  background: var(--grad);
  color: white;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 2px 9px;
  border-radius: 999px;
  margin-right: 5px;
  letter-spacing: 0.03em;
  vertical-align: middle;
}

/* ---- Text input ---- */
.text-input {
  width: 100%;
  background: var(--card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font-family: 'Poppins', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  letter-spacing: 0.01em;
}
.text-input::placeholder {
  color: rgba(139,138,171,0.45);
  font-weight: 400;
}
.text-input:focus {
  border-color: var(--purple-lt);
  box-shadow: 0 0 0 3px rgba(124,58,237,0.18);
}
.text-input.error {
  border-color: #f43f5e;
  box-shadow: 0 0 0 3px rgba(244,63,94,0.18);
  animation: shake 0.4s ease;
}

@keyframes shake {
  0%,100%{ transform:translateX(0) }
  20%{ transform:translateX(-8px) }
  40%{ transform:translateX(8px) }
  60%{ transform:translateX(-5px) }
  80%{ transform:translateX(5px) }
}

/* ---- Amount grid ---- */
.amount-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 20px;
}

.amt-btn {
  background: var(--card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 10px;
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  transition: all 0.15s ease;
}
.amt-btn:hover {
  border-color: var(--purple-lt);
  color: var(--text);
  background: rgba(124,58,237,0.1);
}
.amt-btn.selected {
  border-color: var(--purple-lt);
  background: linear-gradient(135deg, rgba(124,58,237,0.22), rgba(219,39,119,0.15));
  color: var(--text);
  box-shadow: 0 0 18px rgba(124,58,237,0.28);
}

.amt-icon {
  width: 20px;
  height: 20px;
}

/* ---- CTA button ---- */
.cta-btn {
  width: 100%;
  padding: 16px;
  border: none;
  border-radius: var(--radius-sm);
  background: var(--grad);
  color: white;
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  cursor: pointer;
  box-shadow: 0 6px 24px rgba(124,58,237,0.4);
  transition: transform 0.12s, box-shadow 0.12s;
  position: relative;
  overflow: hidden;
}
.cta-btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(255,255,255,0.08), transparent);
  pointer-events: none;
}
.cta-btn:hover { transform: scale(1.02); box-shadow: 0 8px 32px rgba(124,58,237,0.55); }
.cta-btn:active { transform: scale(0.98); }

/* ----- Brand name */
.name-title{
  text-align: center;
  margin: 50px 0px 20px 0px;
  font-size: 24px;
  font-weight: 600;
}

.name-title span{
  background: var(--grad);
      -webkit-text-fill-color: transparent;
  background-clip: text;
}

.copy-right{
  text-align: center;
  font-size: 12px;
  margin-top: 20px;
}
.copy-right p{
  font-weight: lighter;
}
.affiliate{
  color: rgb(139, 139, 139);
  font-weight: lighter;
}

/* ---- Profile card ---- */
.profile-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 16px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.3);
}

.avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 2.5px solid var(--purple-lt);
  box-shadow: 0 0 18px rgba(124,58,237,0.35);
  object-fit: cover;
  background: var(--surface);
  flex-shrink: 0;
}

.profile-right { flex: 1; }

.profile-username {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 5px;
}

.robux-count {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--purple-lt);
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ---- Counter ---- */
.counter-wrap {
  background: var(--card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  margin-bottom: 14px;
}

.counter-track {
  background: rgba(0,0,0,0.3);
  border-radius: 999px;
  height: 8px;
  overflow: hidden;
  margin-bottom: 10px;
}

.counter-fill {
  height: 100%;
  width: 0%;
  background: var(--grad);
  border-radius: 999px;
  transition: width 0.08s linear;
  box-shadow: 0 0 10px rgba(124,58,237,0.5);
}

.counter-text {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
  text-align: center;
}
.counter-text strong { color: var(--purple-lt); }

/* ---- Connecting msg ---- */
.connecting-msg {
  text-align: center;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 14px;
  animation: pulse-op 1.4s ease-in-out infinite;
}
.connecting-msg strong { color: var(--text); }
@keyframes pulse-op {
  0%,100%{ opacity:1 }
  50%{ opacity:0.5 }
}

/* ---- Yes / No ---- */
.yesno-row {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
}

.yes-btn, .no-btn {
  flex: 1;
  padding: 14px;
  border: none;
  border-radius: var(--radius-sm);
  font-family: 'Poppins', sans-serif;
  font-size: 0.9rem;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.12s, box-shadow 0.12s;
}
.yes-btn {
  background: linear-gradient(135deg, #16a34a, #22c55e);
  color: white;
  box-shadow: 0 4px 16px rgba(34,197,94,0.35);
}
.yes-btn:hover { transform: scale(1.02); }
.no-btn {
  background: rgba(255,255,255,0.05);
  border: 1.5px solid rgba(255,255,255,0.1);
  color: var(--muted);
}
.no-btn:hover { background: rgba(255,255,255,0.09); }

/* ---- Verify button ---- */
.verify-btn {
  display: block;
  width: 100%;
  padding: 16px;
  text-align: center;
  text-decoration: none;
  background: linear-gradient(135deg, #16a34a, #22c55e);
  color: white;
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  font-weight: 800;
  border-radius: var(--radius-sm);
  letter-spacing: 0.02em;
  box-shadow: 0 6px 24px rgba(34,197,94,0.4);
  animation: pulse-green 1.8s ease-in-out infinite;
  margin-top: 10px;
  position: relative;
  overflow: hidden;
}
.verify-btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(255,255,255,0.12), transparent);
  pointer-events: none;
}
@keyframes pulse-green {
  0%,100%{ box-shadow: 0 6px 24px rgba(34,197,94,0.4); }
  50%{ box-shadow: 0 6px 36px rgba(34,197,94,0.65); }
}

/* ---- Verify message (task completion required) ---- */
.verify-msg {
  background: linear-gradient(135deg, rgba(124,58,237,0.12), rgba(219,39,119,0.08));
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font-size: 0.83rem;
  font-weight: 600;
  color: var(--muted);
  text-align: center;
  line-height: 1.6;
}
.verify-msg strong { color: var(--purple-lt); }
.verify-msg .task-req {
  color: var(--text);
  font-weight: 800;
  font-size: 0.9rem;
  display: block;
  margin-bottom: 4px;
  color: red;
}

/* -----Brand name 2nd page */

#step .name-title{
  text-align: center;
  margin: 0px;
  font-size: 24px;
  font-weight: 600;
}

#step .name-title span{
  background: var(--grad);
      -webkit-text-fill-color: transparent;
  background-clip: text;
}

#step .copy-right{
  text-align: center;
  font-size: 12px;
  margin-top: 20px;
}
#step .copy-right p{
  font-weight: lighter;
}
#step .affiliate{
  color: rgb(139, 139, 139);
  font-weight: lighter;
}

#step .content-info{
  width: 88%;
  position: absolute;
  bottom: 30px;
  /* margin-left: 10px; */
}

/* ---- Bottom nav ---- */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 420px;
  background: rgba(13,11,24,0.94);
  border-top: 1px solid var(--border);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 100;
  padding: 4px 0 6px;
}
.bottom-img {
  width: 100%;
  height: 52px;
  object-fit: contain;
  filter: invert(1) brightness(0.3) sepia(1) hue-rotate(240deg) saturate(2);
  opacity: 0.7;
}



/* ---- Fade-in animation for steps ---- */
@keyframes fadeUp {
  from { opacity:0; transform:translateY(20px); }
  to   { opacity:1; transform:translateY(0); }
}
.step.active { animation: fadeUp 0.35s ease both; }


.amout-error{
  display: none;
}