﻿/* Robux flow — kids-friendly polish (same structure, clearer hierarchy) */
.robux-flow {
  position: relative;
  isolation: isolate;
}

body:has(.robux-flow) .roblox-ambient::before,
body:has(.robux-flow) .roblox-ambient::after {
  display: none;
}

body:has(.robux-flow) .grid-background {
  background-color: rgb(2, 5, 10);
  background-image:
    linear-gradient(to right, rgba(0, 174, 255, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0, 174, 255, 0.032) 1px, transparent 1px),
    radial-gradient(circle at 50% 0%, rgba(0, 174, 255, 0.14), transparent 30rem);
  background-size: 80px 80px, 80px 80px, 100% 100%;
  mask-image: linear-gradient(#000 0%, rgba(0, 0, 0, 0.9) 62%, transparent 120%);
}

body:has(.robux-flow) .roblox-ambient {
  background:
    radial-gradient(circle at 50% 0%, rgba(0, 174, 255, 0.18), transparent 28rem),
    linear-gradient(180deg, rgba(6, 19, 31, 0.3), transparent 48%);
}

.robux-flow::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% -8rem, rgba(0, 174, 255, 0.26), transparent 30rem),
    linear-gradient(180deg, rgba(4, 16, 26, 0.64), rgba(0, 0, 0, 0.9) 60%);
}

.robux-panel,
.robux-price-card {
  background: linear-gradient(180deg, rgba(14, 19, 28, 0.98), rgba(8, 11, 18, 0.98));
  border: 1px solid rgba(0, 174, 255, 0.18);
  box-shadow:
    0 16px 36px rgba(0, 0, 0, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.045);
  border-radius: 1rem;
}

.robux-panel--select {
  border-color: rgba(0, 174, 255, 0.22);
}

/* ── Stepper with progress line ── */
.robux-steps {
  position: relative;
}

.robux-steps::before {
  content: '';
  position: absolute;
  left: 8%;
  right: 8%;
  top: 0.92rem;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    hsl(var(--primary) / 0.55),
    rgba(255, 255, 255, 0.08) 35%,
    rgba(255, 255, 255, 0.06)
  );
  pointer-events: none;
  z-index: 0;
}

.robux-step {
  position: relative;
  z-index: 1;
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  color: rgb(var(--muted-foreground));
  transition: color 0.2s ease;
}

.robux-step span {
  display: grid;
  width: 1.95rem;
  height: 1.95rem;
  place-items: center;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgb(7, 13, 22);
  font-size: 0.75rem;
  font-weight: 900;
  transition:
    background-color 0.22s ease,
    border-color 0.22s ease,
    box-shadow 0.22s ease,
    transform 0.22s cubic-bezier(0.22, 1, 0.36, 1),
    color 0.2s ease;
}

.robux-step p {
  overflow-wrap: anywhere;
  text-align: center;
  font-size: 0.62rem;
  font-weight: 900;
  line-height: 1.05;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.robux-step[data-active='true'] {
  color: white;
}

.robux-step[data-active='true'] span {
  border-color: hsl(var(--primary) / 0.65);
  background: hsl(var(--primary));
  color: #041018;
  box-shadow: 0 0 20px hsl(var(--primary) / 0.42);
  transform: scale(1.1);
}

.robux-step[data-complete='true'] {
  color: hsl(var(--primary) / 0.95);
}

.robux-step[data-complete='true'] span {
  border-color: hsl(var(--primary) / 0.55);
  background: hsl(var(--primary) / 0.2);
  color: hsl(var(--primary));
  box-shadow: 0 0 12px hsl(var(--primary) / 0.22);
}

.robux-hero-pill {
  border: 1px solid hsl(var(--primary) / 0.35);
  background: linear-gradient(180deg, hsl(var(--primary) / 0.2), hsl(var(--primary) / 0.1));
  color: hsl(var(--primary));
  box-shadow: 0 0 18px hsl(var(--primary) / 0.12);
}

/* ── Mode switch ── */
.robux-mode-switch {
  background: rgba(4, 8, 14, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.robux-mode-button {
  min-height: 2.45rem;
  border-radius: 0.65rem;
  font-size: 0.88rem;
  font-weight: 900;
  color: rgb(var(--muted-foreground));
  transition: background-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.robux-mode-button:hover:not([data-selected='true']) {
  color: white;
  background: rgba(255, 255, 255, 0.04);
}

.robux-mode-button[data-selected='true'] {
  background: hsl(var(--primary));
  color: #041018;
  box-shadow: 0 0 22px hsl(var(--primary) / 0.32);
  transform: translateY(-1px);
}

/* ── Amount field ── */
.robux-amount-field {
  display: flex;
  height: 3.55rem;
  align-items: center;
  gap: 0.85rem;
  border-radius: 0.95rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(5, 8, 14, 0.88);
  padding: 0 1rem;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.robux-amount-field:focus-within {
  border-color: hsl(var(--primary) / 0.55);
  box-shadow: 0 0 0 3px hsl(var(--primary) / 0.14);
}

.robux-amount-field__icon {
  display: grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  border-radius: 999px;
  background: hsl(var(--primary) / 0.16);
  color: hsl(var(--primary));
  flex-shrink: 0;
}

.robux-amount-field input {
  height: 100%;
  min-width: 0;
  flex: 1;
  border: 0;
  background: transparent;
  padding: 0;
  font-size: 1.85rem;
  font-weight: 1000;
  letter-spacing: 0.01em;
  color: white;
}

.robux-amount-field input:focus-visible {
  box-shadow: none;
  --tw-ring-shadow: 0 0 #0000;
  outline: none;
}

/* ── Quick chips ── */
.robux-quick-button {
  height: 2.65rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.95rem;
  font-weight: 1000;
  color: rgb(210, 214, 225);
  transition:
    background-color 0.18s ease,
    border-color 0.18s ease,
    color 0.18s ease,
    transform 0.18s ease,
    box-shadow 0.18s ease;
}

.robux-quick-button:hover {
  border-color: hsl(var(--primary) / 0.4);
  background: hsl(var(--primary) / 0.1);
  color: white;
  transform: translateY(-1px);
}

.robux-quick-button[data-selected='true'] {
  border-color: hsl(var(--primary));
  background: hsl(var(--primary));
  color: #041018;
  box-shadow: 0 8px 20px hsl(var(--primary) / 0.28);
  transform: translateY(-1px);
}

/* ── Info strip (Taxado / Plus) ── */
.robux-info-strip,
.robux-gamepass-strip {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  border-color: hsl(var(--primary) / 0.28);
  background:
    radial-gradient(circle at 0% 50%, hsl(var(--primary) / 0.14), transparent 55%),
    linear-gradient(180deg, rgba(14, 19, 28, 0.98), rgba(8, 11, 18, 0.98));
}

@media (min-width: 640px) {
  .robux-info-strip,
  .robux-gamepass-strip {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
  }
}

.robux-info-strip__label,
.robux-gamepass-strip__label {
  margin: 0;
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgb(var(--muted-foreground));
}

.robux-info-strip__value,
.robux-gamepass-strip__value {
  margin: 0.2rem 0 0;
  font-size: 2rem;
  font-weight: 1000;
  line-height: 1;
  letter-spacing: -0.02em;
  color: white;
}

.robux-info-strip__value #robux-gamepass-value,
.robux-gamepass-strip__value #robux-gamepass-value {
  color: hsl(var(--primary));
  text-shadow: 0 0 18px hsl(var(--primary) / 0.35);
}

.robux-info-strip__unit,
.robux-gamepass-strip__unit {
  margin-left: 0.35rem;
  font-size: 0.85rem;
  font-weight: 800;
  color: rgb(var(--muted-foreground));
  vertical-align: middle;
}

.robux-info-strip__side {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

@media (min-width: 640px) {
  .robux-info-strip__side {
    align-items: flex-end;
    text-align: right;
  }
}

.robux-info-strip__receive {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 800;
  color: white;
}

.robux-info-strip__receive.hidden {
  display: none;
}

.robux-info-strip__receive strong {
  color: hsl(var(--primary));
  font-weight: 1000;
}

.robux-info-strip__note,
.robux-gamepass-strip__note {
  margin: 0;
  max-width: 18rem;
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.35;
  color: rgb(var(--muted-foreground));
}

.robux-info-strip[data-delivery='plus'],
.robux-gamepass-strip[data-delivery='plus'] {
  border-color: rgba(52, 211, 153, 0.35);
  background:
    radial-gradient(circle at 0% 50%, rgba(52, 211, 153, 0.16), transparent 55%),
    linear-gradient(180deg, rgba(14, 19, 28, 0.98), rgba(8, 11, 18, 0.98));
}

.robux-info-strip[data-delivery='plus'] .robux-info-strip__value #robux-gamepass-value,
.robux-gamepass-strip[data-delivery='plus'] .robux-gamepass-strip__value #robux-gamepass-value {
  color: rgb(110, 231, 183);
  text-shadow: 0 0 18px rgba(52, 211, 153, 0.35);
}

.robux-info-strip[data-delivery='plus'] .robux-info-strip__note {
  color: rgb(167, 243, 208);
  max-width: 20rem;
}

.robux-step--skipped {
  opacity: 0.35;
}

.robux-flow[data-robux-delivery='plus'] .robux-step[data-step-indicator='3'] {
  opacity: 0.35;
}

/* ── Price comparison ── */
.robux-price-card {
  border: 1px solid rgba(0, 174, 255, 0.16);
}

.robux-price-card__was {
  background: rgba(7, 10, 16, 0.72);
}

.robux-price-card__now {
  background: linear-gradient(180deg, hsl(var(--primary) / 0.18), hsl(var(--primary) / 0.08));
}

.robux-price-card__eyebrow {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgb(var(--muted-foreground));
}

.robux-price-card__eyebrow--here {
  color: hsl(var(--primary));
}

.robux-price-card__arrow {
  position: absolute;
  right: 1rem;
  top: 50%;
  display: grid;
  width: 1.65rem;
  height: 1.65rem;
  place-items: center;
  border-radius: 999px;
  border: 1px solid hsl(var(--primary) / 0.35);
  background: rgba(4, 10, 16, 0.85);
  color: hsl(var(--primary));
  transform: translateY(-50%);
}

.robux-price-card__arrow-mob {
  display: none;
}

.robux-discount-badge {
  position: absolute;
  right: 1rem;
  top: 0.85rem;
  border-radius: 999px;
  border: 1px solid hsl(var(--primary) / 0.45);
  background: hsl(var(--primary));
  color: #041018;
  padding: 0.3rem 0.7rem;
  font-size: 0.72rem;
  font-weight: 1000;
  letter-spacing: 0.02em;
  box-shadow: 0 6px 16px hsl(var(--primary) / 0.28);
}

.robux-price-card__save {
  border-top: 1px solid hsl(var(--primary) / 0.22);
  border-bottom: 1px solid hsl(var(--primary) / 0.22);
  background: hsl(var(--primary) / 0.12);
  color: white;
}

.robux-price-card__save #robux-savings {
  color: hsl(var(--primary));
}

.robux-price-card__unit {
  background: rgba(6, 9, 14, 0.88);
}

/* ── Continue CTA ── */
.robux-account-field {
  position: relative;
}

.robux-account-field input {
  padding-right: 3rem;
}

.robux-account-field__loading {
  position: absolute;
  right: 0.9rem;
  top: 50%;
  display: grid;
  place-items: center;
  color: hsl(var(--primary));
  transform: translateY(-50%);
  pointer-events: none;
}

.robux-account-field__loading.hidden {
  display: none;
}

.robux-continue-btn {
  min-height: 3.35rem;
  border-radius: 0.95rem;
  font-weight: 1000;
  letter-spacing: 0.01em;
  box-shadow: 0 12px 28px hsl(var(--primary) / 0.28);
  transition: transform 0.2s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.2s ease;
}

.robux-continue-btn:hover:not(:disabled),
.robux-continue-btn:focus-visible:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px hsl(var(--primary) / 0.36);
  outline: none;
}

.robux-continue-btn:active:not(:disabled) {
  transform: translateY(0) scale(0.985);
}

[data-robux-step].hidden {
  display: none;
}

@media (max-width: 639px) {
  .robux-price-card__arrow {
    top: auto;
    bottom: -0.85rem;
    right: 50%;
    transform: translateX(50%);
    z-index: 2;
  }

  .robux-price-card__arrow-desk {
    display: none;
  }

  .robux-price-card__arrow-mob {
    display: block;
  }

  .robux-price-card__was {
    padding-bottom: 1.75rem;
  }

  .robux-info-strip__value,
  .robux-gamepass-strip__value {
    font-size: 1.75rem;
  }
}

@media (max-width: 520px) {
  .robux-steps::before {
    top: 0.85rem;
  }

  .robux-step span {
    width: 1.8rem;
    height: 1.8rem;
  }

  .robux-step p {
    font-size: 0.56rem;
  }

  .robux-mode-button {
    font-size: 0.8rem;
    min-height: 2.3rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .robux-step span,
  .robux-mode-button,
  .robux-quick-button,
  .robux-continue-btn {
    transition: none !important;
  }

  .robux-quick-button:hover,
  .robux-quick-button[data-selected='true'],
  .robux-mode-button[data-selected='true'],
  .robux-continue-btn:hover:not(:disabled) {
    transform: none;
  }
}
