/* ======================================================
   ROBLOX LP — Professional UI Stylesheet
   ====================================================== */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300..700&display=swap');

/* ----- CSS Custom Properties ----- */
:root {
  --bg-primary: #0e1117;
  --bg-secondary: #161b22;
  --bg-card: #1c2129;
  --bg-elevated: #21262d;
  --nav-bg: #161b22;

  --roblox-green: #00b06f;
  --roblox-green-light: #00d886;
  --roblox-green-dark: #009b60;
  --roblox-blue: #0074e4;
  --roblox-blue-light: #58a6ff;

  --text-primary: #f0f6fc;
  --text-secondary: #8b949e;
  --text-muted: #6e7681;

  --border-default: #30363d;
  --border-subtle: #21262d;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 20px;

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.4);
  --shadow-glow-green: 0 0 20px rgba(0, 176, 111, 0.15);
  --shadow-glow-blue: 0 0 20px rgba(0, 116, 228, 0.15);

  --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);

  --font-main: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ----- Reset & Base ----- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 100%;
  scroll-behavior: smooth;
}

html, body {
  height: 100%;
  display: flex;
  flex-direction: column;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-primary);
  background-image: url('assets/images/background-image.jpg');
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  background-attachment: fixed;
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Dark overlay for readability on bg image */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: rgba(14, 17, 23, 0.6);
  z-index: -1;
  pointer-events: none;
}

img {
  max-width: 100%;
  display: block;
}

/* ----- Utility ----- */
.hidden {
  display: none !important;
}

/* ======== Step transition animations ======== */
.username-step,
.loading-step,
.package-step,
.final-step {
  animation: stepFadeIn 0.5s cubic-bezier(0.4, 0, 0.2, 1) both;
}

@keyframes stepFadeIn {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ======================================================
   NAVIGATION
   ====================================================== */
.nav-toggle {
  display: none;
}

.roblox-nav {
  background-color: var(--nav-bg);
  border-bottom: 1px solid var(--border-default);
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background-color: rgba(22, 27, 34, 0.92);
}

.nav-container {
  width: 100%;
  max-width: 1200px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
}

.logo {
  width: 120px;
  height: auto;
  flex-shrink: 0;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 8px;
}

.nav-links li {
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 0.92em;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  transition: color var(--transition-fast), background var(--transition-fast);
}

.nav-links li:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.06);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-search-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.nav-search-icon {
  position: absolute;
  left: 10px;
  color: var(--text-muted);
  pointer-events: none;
  z-index: 1;
}

.nav-search {
  background-color: var(--bg-elevated);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-sm);
  padding: 7px 14px 7px 32px;
  color: var(--text-primary);
  font-size: 0.88em;
  font-family: var(--font-main);
  outline: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  width: 200px;
}

.nav-search::placeholder {
  color: var(--text-muted);
}

.nav-search:focus {
  border-color: var(--roblox-blue);
  box-shadow: 0 0 0 3px rgba(0, 116, 228, 0.15);
}

.btn-signup,
.btn-login {
  padding: 7px 16px;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-family: var(--font-main);
  font-size: 0.88em;
  font-weight: 600;
  transition: all var(--transition-fast);
}

.btn-signup {
  background-color: var(--roblox-blue);
  color: #fff;
}

.btn-signup:hover {
  background-color: var(--roblox-blue-light);
  box-shadow: var(--shadow-glow-blue);
}

.btn-login {
  background: transparent;
  border: 1px solid var(--border-default);
  color: var(--text-primary);
}

.btn-login:hover {
  border-color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.04);
}

/* ======================================================
   CONTENT CARD — semi-transparent container
   ====================================================== */
.content-card {
  background: rgb(39, 41, 48, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(48, 54, 61, 0.5);
  /* border-radius: var(--radius-xl); */
  max-width: 600px;
  margin: 36px auto 32px;
  padding: 8px 4px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

/* ======================================================
   BANNER
   ====================================================== */
.banner {
  position: relative;
  overflow: hidden;
}

.banner img {
  width: 100%;
  height: 34vh;
  min-height: 200px;
  object-fit: cover;
  display: block;
  filter: brightness(0.7);
}

.banner-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
  background: linear-gradient(180deg, rgba(14, 17, 23, 0.3) 0%, rgba(14, 17, 23, 0.75) 100%);
}

.banner-title {
  font-size: 2.2em;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
  margin-bottom: 6px;
}

.banner-sub {
  font-size: 1.05em;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 400;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.4);
}

.banner::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: linear-gradient(to top, var(--bg-primary), transparent);
  pointer-events: none;
}

/* ======================================================
   PROGRESS INDICATOR
   ====================================================== */
.progress-text {
  display: inline-block;
  font-size: 0.78em;
  font-weight: 600;
  color: var(--roblox-green);
  background: rgba(0, 176, 111, 0.1);
  border: 1px solid rgba(0, 176, 111, 0.2);
  padding: 4px 14px;
  border-radius: 50px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

/* ======================================================
   STEP 1 — USERNAME
   ====================================================== */
.username-step {
  text-align: center;
  margin: 12px auto;
  padding: 36px 24px;
  max-width: 540px;
  font-size: 1em;
}

.username-step h3 {
  font-size: 1.6em;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text-primary);
  line-height: 1.3;
}

.username-input {
  display: block;
  width: 100%;
  max-width: 400px;
  margin: 18px auto 8px;
  padding: 14px 18px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 1em;
  font-family: var(--font-main);
  outline: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.username-input::placeholder {
  color: var(--text-muted);
}

.username-input:focus {
  border-color: var(--roblox-green);
  box-shadow: 0 0 0 3px rgba(0, 176, 111, 0.12);
}

.btn-next {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 36px;
  background: var(--roblox-green);
  color: #fff;
  margin-top: 16px;
  border: none;
  border-radius: var(--radius-md);
  font-size: 1em;
  font-weight: 700;
  font-family: var(--font-main);
  cursor: pointer;
  letter-spacing: 0.02em;
  box-shadow: 0 2px 12px rgba(0, 176, 111, 0.2);
  transition: all var(--transition-fast);
  animation: btnPulse 2.4s ease-in-out infinite;
}

@keyframes btnPulse {
  0%, 100% {
    transform: translateY(0);
    box-shadow: 0 2px 12px rgba(0, 176, 111, 0.2);
  }
  50% {
    transform: translateY(-4px);
    box-shadow: 0 8px 28px rgba(0, 176, 111, 0.28);
  }
}

.btn-next:hover,
.btn-next:focus-visible {
  background: var(--roblox-green-light);
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 6px 24px rgba(0, 216, 134, 0.3);
  animation: none;
}

.btn-next:active {
  transform: scale(0.97);
  box-shadow: 0 2px 6px rgba(0, 176, 111, 0.15);
}

/* ======================================================
   LIVE PLAYER COUNTER
   ====================================================== */
.live-counter {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 0 0;
  font-size: 0.85em;
  color: var(--text-secondary);
  font-weight: 500;
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--roblox-green);
  display: inline-block;
  animation: livePulse 1.5s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes livePulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(0, 176, 111, 0.5); }
  50% { opacity: 0.6; box-shadow: 0 0 0 5px rgba(0, 176, 111, 0); }
}

.live-count {
  font-weight: 700;
  color: var(--roblox-green-light);
  font-variant-numeric: tabular-nums;
}

/* ======================================================
   PLATFORM SELECTOR
   ====================================================== */
.platform-label {
  font-size: 0.88em;
  color: var(--text-secondary);
  margin: 18px 0 10px;
  font-weight: 500;
}

.platform-selector {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 4px;
}

.platform-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100px;
  height: 80px;
  background: var(--bg-elevated);
  border: 1.5px solid var(--border-default);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-family: var(--font-main);
  font-size: 0.82em;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-smooth);
}

.platform-box svg {
  opacity: 0.7;
  transition: opacity var(--transition-fast), transform var(--transition-fast);
}

.platform-box:hover {
  border-color: var(--text-muted);
  color: var(--text-primary);
  background: rgba(33, 38, 45, 0.85);
  transform: translateY(-2px);
}

.platform-box:hover svg {
  opacity: 1;
  transform: scale(1.05);
}

.platform-box.active {
  border-color: var(--roblox-green);
  color: var(--roblox-green-light);
  background: rgba(0, 176, 111, 0.08);
  box-shadow: 0 0 16px rgba(0, 176, 111, 0.12), inset 0 0 0 1px rgba(0, 176, 111, 0.15);
}

.platform-box.active svg {
  opacity: 1;
  stroke: var(--roblox-green-light);
}

.platform-error {
  display: none;
  color: #f85149;
  font-size: 0.82em;
  font-weight: 500;
  margin-top: 6px;
  margin-bottom: 0;
}

/* ======================================================
   STEP — LOADING
   ====================================================== */
.loading-step {
  text-align: center;
  padding: 48px 24px;
}

.robux-spinner {
  width: 56px;
  height: 56px;
  margin: 0 auto;
  border: 4px solid var(--border-default);
  border-top: 4px solid var(--roblox-green);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.loading-text {
  margin-top: 20px;
  color: var(--text-secondary);
  font-size: 0.95em;
}

/* ======================================================
   STEP 2 — PACKAGES
   ====================================================== */
.package-step .robux-package {
  margin: 36px auto;
  max-width: 520px;
  padding: 0 16px;
}

.package-header {
  text-align: center;
  margin-bottom: 8px;
}

.robux-package p {
  font-size: 1.05em;
  margin: 10px 0 20px;
  color: var(--text-secondary);
  font-family: var(--font-main);
}

.package-robux .row {
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  color: var(--text-primary);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 22px;
  margin-bottom: 10px;
  border-radius: var(--radius-md);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast), transform var(--transition-fast);
}

.package-robux .row:hover {
  border-color: rgba(0, 176, 111, 0.3);
  box-shadow: var(--shadow-glow-green);
  transform: translateX(4px);
}

.price {
  text-decoration: line-through;
  color: var(--text-muted);
  font-size: 0.92em;
  font-weight: 500;
}

.package-robux .row button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 140px;
  font-size: 1em;
  font-weight: 700;
  padding: 10px 20px;
  border: none;
  background: var(--roblox-green);
  color: #fff;
  font-family: var(--font-main);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.package-robux .row button:hover,
.package-robux .row button:focus-visible {
  background: var(--roblox-green-light);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 176, 111, 0.25);
}

.package-robux .row button:active {
  transform: scale(0.97);
}

.package-robux .row button img {
  display: block;
  width: 26px;
  height: 26px;
  transition: transform var(--transition-fast);
  filter: brightness(0) invert(1);
}

.package-robux .row button:hover img,
.package-robux .row button:focus-visible img {
  transform: scale(1.1) rotate(-5deg);
}

/* Free badge on robux package images (original had them as 20px) */
.robux-package img {
  width: 20px;
  height: auto;
  border-radius: 4px;
}

/* ======================================================
   STEP 3 — FINAL
   ====================================================== */
.final-step {
  text-align: center;
  margin: 12px auto 16px;
  padding: 24px 24px;
  max-width: 540px;
}

.final-step h3 {
  font-size: 1.5em;
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.35;
}

.final-step p {
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.btn-verify {
  padding: 14px 32px;
  background: var(--roblox-green);
  color: #fff;
  border: none;
  border-radius: var(--radius-md);
  font-size: 1.05em;
  font-weight: 700;
  font-family: var(--font-main);
  margin-top: 16px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-verify:hover {
  background: var(--roblox-green-light);
}

.roblox-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, var(--roblox-green) 0%, var(--roblox-green-dark) 100%);
  color: #fff;
  border: 1px solid rgba(0, 216, 134, 0.3);
  border-radius: var(--radius-md);
  font-family: var(--font-main);
  font-size: 1.1em;
  font-weight: 700;
  padding: 16px 44px;
  min-width: 180px;
  box-shadow: 0 4px 20px rgba(0, 176, 111, 0.3), 0 0 40px rgba(0, 176, 111, 0.08);
  letter-spacing: 0.03em;
  margin-top: 24px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  animation: claimPulse 2s infinite cubic-bezier(0.42, 0, 0.58, 1);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
}

.roblox-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
  transition: left 0.6s ease;
}

.roblox-btn:hover::before {
  left: 100%;
}

@keyframes claimPulse {
  0%, 100% {
    box-shadow: 0 4px 20px rgba(0, 176, 111, 0.3);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 8px 40px rgba(0, 176, 111, 0.45), 0 0 60px rgba(0, 216, 134, 0.15);
    transform: scale(1.04);
  }
}

.roblox-btn:hover,
.roblox-btn:focus-visible {
  animation: none;
  transform: translateY(-3px) scale(1.06);
  box-shadow: 0 8px 36px rgba(0, 216, 134, 0.4), 0 0 50px rgba(0, 216, 134, 0.12);
  border-color: var(--roblox-green-light);
  background: linear-gradient(180deg, var(--roblox-green-light) 0%, var(--roblox-green) 100%);
  outline: none;
}

.roblox-btn:active {
  transform: scale(0.97);
  box-shadow: 0 2px 10px rgba(0, 176, 111, 0.25);
}

.roblox-btn span {
  z-index: 1;
  position: relative;
  pointer-events: none;
  user-select: none;
}

/* ======================================================
   TOAST NOTIFICATIONS
   ====================================================== */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 16px;
  width: 360px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toast {
  display: flex;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-left: 3px solid var(--roblox-green);
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  animation: toastSlideIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes toastSlideIn {
  from {
    opacity: 0;
    transform: translateX(40px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

.toast img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid var(--border-default);
  flex-shrink: 0;
}

.toast-content {
  margin-left: 12px;
  min-width: 0;
}

.toast-content p {
  margin: 1px 0;
  font-size: 0.88em;
  line-height: 1.4;
  color: var(--text-secondary);
}

.toast-content p strong {
  color: var(--text-primary);
}

/* ======================================================
   TESTIMONIALS
   ====================================================== */
.testimonials {
  padding: 40px 20px 32px;
  text-align: center;
  margin-top: 12px;
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
}

.testimonials-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 24px;
}

.testimonials-header h4 {
  font-size: 1.3em;
  font-weight: 700;
  color: var(--text-primary);
}

.testimonials-header svg {
  flex-shrink: 0;
}

.testimonials-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}

.testimonial {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  padding: 20px;
  border-radius: var(--radius-lg);
  max-width: 360px;
  width: 100%;
  flex: 1 1 280px;
  text-align: left;
  position: relative;
  transition: border-color var(--transition-smooth), box-shadow var(--transition-smooth), transform var(--transition-smooth);
}

.testimonial:hover {
  border-color: rgba(0, 176, 111, 0.35);
  box-shadow: 0 0 24px rgba(0, 176, 111, 0.12), var(--shadow-md);
  transform: translateY(-4px);
}

.testimonial-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  width: 100%;
}

.testimonial-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  flex-shrink: 0;
  border: 2px solid var(--roblox-green);
  box-shadow: 0 0 10px rgba(0, 176, 111, 0.15);
}

.user-review {
  text-align: left;
  font-weight: 700;
  font-size: 0.95em;
  color: var(--text-primary) !important;
  margin-bottom: 0 !important;
}

.stars {
  color: #FFD700;
  font-size: 0.85em;
  letter-spacing: 1px;
}

.testimonial-text {
  font-size: 0.92em;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 12px;
  font-style: italic;
}

.testimonial-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.75em;
  font-weight: 600;
  color: var(--roblox-green);
  background: rgba(0, 176, 111, 0.08);
  border: 1px solid rgba(0, 176, 111, 0.15);
  padding: 3px 10px;
  border-radius: 50px;
  /* margin-top: auto; */
}

/* ======================================================
   FAQ SECTION — Clean row layout
   ====================================================== */
.roblox-faq {
  max-width: 680px;
  margin: 44px auto 28px;
  padding: 16px 0;
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-radius: 8px;
  box-shadow: var(--shadow-md);
}

.roblox-faq .faq-title {
  text-align: center;
  font-size: 1.8em;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.03em;
  margin-bottom: 16px;
  padding-top: 4px;
}

.roblox-faq .faq-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
  margin-bottom: 4px;
}

.roblox-faq .faq-list {
  display: flex;
  flex-direction: column;
}

.roblox-faq .faq-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.roblox-faq .faq-item:last-child {
  border-bottom: none;
}

.roblox-faq .faq-item summary {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 16px;
  cursor: pointer;
  list-style: none;
  user-select: none;
  outline: none;
  transition: background var(--transition-fast);
}

.roblox-faq .faq-item summary::-webkit-details-marker {
  display: none;
}

.roblox-faq .faq-item summary:hover {
  background: rgba(255, 255, 255, 0.04);
}

.roblox-faq .faq-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  color: var(--roblox-green);
}

.roblox-faq .faq-question {
  flex: 1;
  font-size: 1.05em;
  font-weight: 600;
  color: #ffffff;
  line-height: 1.4;
}

.roblox-faq .faq-chevron {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: rgba(255, 255, 255, 0.4);
  transition: transform 0.35s cubic-bezier(0.25, 0.8, 0.25, 1), color 0.2s ease;
}

.roblox-faq .faq-item[open] .faq-chevron {
  transform: rotate(180deg);
  color: var(--roblox-green);
}

.roblox-faq .faq-answer {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  padding: 0 16px 0 74px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.93em;
  font-weight: 400;
  line-height: 1.7;
  transition: max-height 0.45s cubic-bezier(0.25, 0.8, 0.25, 1),
              opacity 0.35s cubic-bezier(0.25, 0.8, 0.25, 1),
              padding 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
  will-change: max-height, opacity;
}

.roblox-faq .faq-item[open] .faq-answer {
  max-height: 300px;
  opacity: 1;
  padding: 0 16px 18px 74px;
}

.roblox-faq .faq-answer strong {
  color: #ffffff;
  font-weight: 600;
}

/* ======================================================
   FOOTER
   ====================================================== */
.roblox-footer {
  background: var(--nav-bg);
  border-top: 1px solid var(--border-default);
  padding: 32px 24px 24px;
  text-align: center;
  margin-top: auto;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 20px;
}

.footer-links li a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.85em;
  font-weight: 500;
  transition: color var(--transition-fast);
}

.footer-links li a:hover {
  color: var(--text-primary);
}

.roblox-footer p {
  color: var(--text-muted);
  font-size: 0.75em;
  line-height: 1.5;
  max-width: 600px;
  margin: 0 auto;
}

/* ======================================================
   CUSTOM POPUP
   ====================================================== */
.custom-popup-overlay {
  display: none;
  position: fixed;
  z-index: 9999;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  align-items: center;
  justify-content: center;
  transition: background var(--transition-smooth);
}

.custom-popup-modal {
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  color: var(--text-primary);
  border-radius: var(--radius-xl);
  max-width: 96vw;
  width: 380px;
  box-shadow: var(--shadow-lg);
  padding: 32px 24px 28px;
  position: relative;
  text-align: center;
  animation: popupAppear 0.35s cubic-bezier(0.22, 1.1, 0.36, 1) both;
}

@keyframes popupAppear {
  from {
    transform: scale(0.92) translateY(24px);
    opacity: 0;
  }
  to {
    transform: scale(1) translateY(0);
    opacity: 1;
  }
}

.custom-popup-close {
  position: absolute;
  top: 14px;
  right: 16px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.6em;
  line-height: 1;
  cursor: pointer;
  transition: color var(--transition-fast), transform var(--transition-fast);
  z-index: 2;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
}

.custom-popup-close:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.06);
}

.custom-popup-title {
  font-size: 1.3em;
  font-weight: 700;
  margin-bottom: 8px;
  font-family: var(--font-main);
  color: var(--roblox-green-light);
}

.custom-popup-body p {
  font-size: 1em;
  margin-bottom: 20px;
  font-weight: 500;
  color: var(--text-secondary);
}

.custom-popup-action {
  width: 100%;
  padding: 14px 0;
  background: var(--roblox-green);
  color: #fff;
  border: none;
  border-radius: var(--radius-md);
  font-size: 1.05em;
  font-weight: 700;
  font-family: var(--font-main);
  box-shadow: 0 2px 12px rgba(0, 176, 111, 0.2);
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.custom-popup-action:hover,
.custom-popup-action:focus-visible {
  background: var(--roblox-green-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(0, 216, 134, 0.25);
}

.custom-popup-action:active {
  transform: scale(0.98);
}

.custom-popup-safe-msg {
  font-size: 0.85em;
  margin-top: 14px;
  color: var(--roblox-green);
  opacity: 0.8;
}

/* ======================================================
   RESPONSIVE — Tablet
   ====================================================== */
@media (max-width: 1200px) {
  .nav-container {
    max-width: 96vw;
    padding: 0 12px;
  }
}

@media (max-width: 900px) {
  .banner img {
    height: 24vh;
  }

  .content-card {
    margin: 24px 16px;
    max-width: calc(100% - 32px);
  }
}

/* ======================================================
   RESPONSIVE — Mobile
   ====================================================== */
@media (max-width: 768px) {
  .nav-container {
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    height: 56px;
    min-height: 52px;
    gap: 0;
    max-width: 100vw;
    padding: 0 12px;
  }

  .nav-toggle {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    margin-right: 10px;
    cursor: pointer;
    padding: 4px;
    border-radius: var(--radius-sm);
    transition: background var(--transition-fast);
  }

  .nav-toggle:hover {
    background: rgba(255, 255, 255, 0.06);
  }

  .nav-toggle-bar {
    width: 22px;
    height: 2px;
    background: var(--text-primary);
    display: block;
    border-radius: 2px;
    transition: all var(--transition-smooth);
  }

  .logo {
    margin-left: 4px;
    width: 110px;
  }

  .nav-actions,
  .nav-search,
  .nav-search-wrapper,
  .btn-signup,
  .btn-login {
    display: none !important;
  }

  .nav-links {
    flex-direction: column;
    background: var(--nav-bg);
    border: 1px solid var(--border-default);
    width: 100%;
    position: absolute;
    top: 56px;
    left: 0;
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    box-shadow: var(--shadow-lg);
    z-index: 999;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transition: max-height var(--transition-smooth), opacity var(--transition-smooth);
    padding: 0;
  }

  .nav-links.open {
    display: flex !important;
    max-height: 280px;
    opacity: 1;
    pointer-events: auto;
    padding: 8px 0;
  }

  .nav-links li {
    padding: 10px 20px;
    text-align: left;
    width: 100%;
    border-radius: 0;
  }

  .content-card {
    margin: 20px 12px;
    max-width: calc(100% - 24px);
    border-radius: var(--radius-lg);
    padding: 4px 0;
  }

  .toast-container {
    width: 85vw;
    right: 4vw;
    bottom: 16px;
  }
}

/* ======================================================
   RESPONSIVE — Small Mobile
   ====================================================== */
@media (max-width: 600px) {
  .username-step {
    padding: 24px 16px;
    margin: 24px auto;
  }

  .username-step h3 {
    font-size: 1.3em;
  }

  .platform-selector {
    gap: 8px;
  }

  .platform-box {
    width: 88px;
    height: 72px;
  }

  .platform-box svg {
    width: 22px;
    height: 22px;
  }

  .live-counter {
    font-size: 0.78em;
  }

  .banner-title {
    font-size: 1.5em;
  }

  .banner-sub {
    font-size: 0.9em;
  }

  .testimonials-grid {
    flex-direction: column;
    align-items: center;
  }

  .testimonial {
    max-width: 100%;
    max-height: 175px;
  }

  .content-card {
    margin: 16px 8px;
    max-width: calc(100% - 16px);
    border-radius: var(--radius-md);
  }

  .package-step .robux-package {
    max-width: 100%;
    width: 100%;
    padding: 0 12px;
  }

  .package-robux .row {
    padding: 14px 14px;
    gap: 10px;
  }

  .package-robux .row button {
    min-width: 110px;
    font-size: 0.95em;
    padding: 10px 14px;
  }

  .price {
    font-size: 0.88em;
    flex: 1 1 auto;
  }

  .toast-container {
    width: 90vw;
    right: 5vw;
  }

  html, body {
    overflow-x: hidden;
  }

  .roblox-footer {
    padding: 20px 12px 14px;
  }

  .footer-links {
    max-width: 340px;
    margin: 0 auto 12px;
    gap: 4px 0;
    padding: 0;
  }

  .footer-links li {
    width: 50%;
    text-align: left;
    padding: 4px 0 4px 12px;
    box-sizing: border-box;
  }

  .footer-links li:nth-child(2n) {
    padding-left: 28px;
  }

  .roblox-footer p {
    font-size: 0.7em;
    margin-top: 8px;
  }
}

@media (max-width: 520px) {
  .roblox-faq {
    max-width: 96vw;
    margin: 24px auto 16px;
  }

  .roblox-faq .faq-title {
    font-size: 1.4em;
  }

  .roblox-faq .faq-item summary {
    padding: 14px 12px;
    gap: 10px;
  }

  .roblox-faq .faq-icon {
    width: 32px;
    height: 32px;
  }

  .roblox-faq .faq-icon svg {
    width: 20px;
    height: 20px;
  }

  .roblox-faq .faq-question {
    font-size: 0.95em;
  }

  .roblox-faq .faq-answer {
    padding-left: 54px;
    font-size: 0.88em;
  }

  .roblox-faq .faq-item[open] .faq-answer {
    padding-left: 54px;
  }
}

@media (max-width: 430px) {
  .custom-popup-modal {
    width: 96vw;
    padding: 24px 16px 20px;
  }
}

@media (min-width: 700px) {
  .roblox-faq {
    font-size: 1.05em;
    padding: 20px 0;
  }
}

/* ======================================================
   STEP PROGRESS BAR
   ====================================================== */
.step-progress-bar {
  width: 100%;
  max-width: 320px;
  height: 4px;
  background: var(--border-default);
  border-radius: 4px;
  margin: 10px auto 22px;
  overflow: hidden;
}

.step-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--roblox-green), var(--roblox-green-light));
  border-radius: 4px;
  width: 0;
  transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ======================================================
   SCROLL REVEAL
   ====================================================== */
.fade-in-section {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in-section.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ======================================================
   INLINE USERNAME ERROR
   ====================================================== */
.username-error {
  color: #f85149;
  font-size: 0.88em;
  font-weight: 600;
  margin: 0 auto;
  max-width: 400px;
  text-align: left;
  min-height: 0;
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 0.3s ease, opacity 0.25s ease, margin 0.3s ease;
}

.username-error.visible {
  max-height: 40px;
  opacity: 1;
  margin: 8px auto 0;
}

.username-input.input-error {
  border-color: #f85149 !important;
  box-shadow: 0 0 0 3px rgba(248, 81, 73, 0.15) !important;
}