/* ============================================================
   Void V4 Redeem — mobile-first iOS glass (unique layout)
   Accent: mint unlock + soft cyan depth (not dashboard/settings)
   ============================================================ */

:root {
  --rd-bg: #07090c;
  --rd-ink: #f2f7fb;
  --rd-muted: #8b97ab;
  --rd-faint: #5c677a;
  --rd-mint: #3ee0a0;
  --rd-mint-2: #1ecf8a;
  --rd-cyan: #5ec8f0;
  --rd-glass: rgba(255, 255, 255, 0.055);
  --rd-glass-2: rgba(255, 255, 255, 0.09);
  --rd-stroke: rgba(255, 255, 255, 0.14);
  --rd-stroke-soft: rgba(255, 255, 255, 0.08);
  --rd-danger: #ff7b7b;
  --rd-ok: #3ee0a0;
  --rd-font: "DM Sans", system-ui, sans-serif;
  --rd-display: "Sora", "DM Sans", sans-serif;
  --rd-dock: 78px;
  --rd-r: 22px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

.rd-body {
  margin: 0;
  min-height: 100dvh;
  font-family: var(--rd-font);
  color: var(--rd-ink);
  background: var(--rd-bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  padding-bottom: calc(var(--rd-dock) + env(safe-area-inset-bottom, 0px));
}

@media (min-width: 901px) {
  .rd-body { padding-bottom: 24px; }
}

/* ---- Atmosphere ---- */
.rd-atmosphere {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(62, 224, 160, 0.16), transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 30%, rgba(94, 200, 240, 0.1), transparent 50%),
    radial-gradient(ellipse 50% 35% at 0% 70%, rgba(30, 207, 138, 0.07), transparent 55%),
    linear-gradient(180deg, #07090c 0%, #0a0e13 45%, #07090c 100%);
}

.rd-atmosphere::after {
  content: "";
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.04), transparent 25%),
    radial-gradient(circle at 70% 60%, rgba(94, 200, 240, 0.05), transparent 30%);
  animation: rd-drift 18s ease-in-out infinite alternate;
}

@keyframes rd-drift {
  from { transform: translate3d(-2%, 0, 0) scale(1); }
  to { transform: translate3d(2%, 1.5%, 0) scale(1.04); }
}

.rd-chrome,
.rd-stage,
.rd-body > .mob-dock {
  position: relative;
  z-index: 1;
}

/* ---- Glass chrome ---- */
.rd-chrome {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  padding-top: max(10px, env(safe-area-inset-top, 0px));
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.02)),
    rgba(10, 13, 18, 0.55);
  border-bottom: 1px solid var(--rd-stroke-soft);
  backdrop-filter: blur(28px) saturate(160%);
  -webkit-backdrop-filter: blur(28px) saturate(160%);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06) inset;
}

.rd-back {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: var(--rd-ink);
  background: var(--rd-glass);
  border: 1px solid var(--rd-stroke);
  transition: background 0.2s ease, transform 0.2s ease;
}
.rd-back:active { transform: scale(0.96); }
.rd-back:hover { background: var(--rd-glass-2); }

.rd-brand {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.rd-brand-mark {
  font-family: var(--rd-display);
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.1;
}
.rd-brand-mark span {
  background: linear-gradient(120deg, #fff 20%, var(--rd-mint) 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.rd-brand-sub {
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--rd-faint);
}

.rd-balance {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  padding: 8px 12px;
  border-radius: 14px;
  background: rgba(62, 224, 160, 0.1);
  border: 1px solid rgba(62, 224, 160, 0.28);
  box-shadow: 0 0 24px rgba(62, 224, 160, 0.08);
}
.rd-balance-val {
  font-family: var(--rd-display);
  font-size: 14px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--rd-mint);
}
.rd-balance-unit {
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.04em;
  color: rgba(62, 224, 160, 0.75);
}

/* ---- Stage ---- */
.rd-stage {
  width: min(520px, 100%);
  margin: 0 auto;
  padding: 20px 16px 28px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

/* Intro — brand-led, not a card stack */
.rd-intro {
  padding: 8px 2px 0;
  animation: rd-rise 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.rd-intro-brand {
  margin: 0 0 10px;
  font-family: var(--rd-display);
  font-size: clamp(40px, 12vw, 56px);
  font-weight: 800;
  letter-spacing: -0.06em;
  line-height: 0.95;
  background: linear-gradient(135deg, #ffffff 10%, var(--rd-mint) 55%, var(--rd-cyan) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 8px 28px rgba(62, 224, 160, 0.18));
}
.rd-intro h1 {
  margin: 0 0 8px;
  font-family: var(--rd-display);
  font-size: clamp(22px, 5.5vw, 28px);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--rd-ink);
}
.rd-intro p {
  margin: 0;
  max-width: 34ch;
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--rd-muted);
}

@keyframes rd-rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}

/* ---- Redeem console ---- */
.rd-console {
  position: relative;
  border-radius: calc(var(--rd-r) + 4px);
  padding: 1px;
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.28),
    rgba(62, 224, 160, 0.2) 40%,
    rgba(94, 200, 240, 0.12) 70%,
    rgba(255, 255, 255, 0.06)
  );
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(255, 255, 255, 0.04);
  animation: rd-rise 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.06s both;
}
.rd-console-inner {
  position: relative;
  border-radius: var(--rd-r);
  padding: 22px 18px 20px;
  background:
    linear-gradient(165deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.02) 42%),
    rgba(14, 18, 24, 0.72);
  backdrop-filter: blur(32px) saturate(170%);
  -webkit-backdrop-filter: blur(32px) saturate(170%);
  overflow: hidden;
}
.rd-console-inner::before {
  content: "";
  position: absolute;
  top: 0;
  left: 12%;
  right: 12%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.45), transparent);
  opacity: 0.7;
}
.rd-console-glow {
  position: absolute;
  width: 160px;
  height: 160px;
  right: -40px;
  top: -50px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(62, 224, 160, 0.22), transparent 70%);
  pointer-events: none;
  animation: rd-pulse-glow 4.5s ease-in-out infinite;
}
@keyframes rd-pulse-glow {
  0%, 100% { opacity: 0.55; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.08); }
}

.rd-console-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}
.rd-console-ico {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 17px;
  color: #04140e;
  background: linear-gradient(145deg, #7dffc4, var(--rd-mint-2));
  box-shadow: 0 8px 24px rgba(62, 224, 160, 0.35);
}
.rd-console-head h2 {
  margin: 0;
  font-family: var(--rd-display);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.rd-console-head p {
  margin: 2px 0 0;
  font-size: 12.5px;
  color: var(--rd-muted);
}

/* Floating field */
.rd-field {
  position: relative;
  margin-bottom: 14px;
}
.rd-field input {
  width: 100%;
  appearance: none;
  border: 1px solid var(--rd-stroke);
  border-radius: 16px;
  padding: 22px 16px 10px;
  font-family: var(--rd-display);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--rd-ink);
  background: rgba(0, 0, 0, 0.28);
  outline: none;
  transition:
    border-color 0.2s ease,
    box-shadow 0.25s ease,
    background 0.2s ease;
}
.rd-field input::placeholder { color: transparent; }
.rd-field label {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  color: var(--rd-muted);
  pointer-events: none;
  transition: transform 0.2s ease, font-size 0.2s ease, color 0.2s ease, top 0.2s ease;
}
.rd-field input:focus + label,
.rd-field input:not(:placeholder-shown) + label,
.rd-field.is-filled label {
  top: 11px;
  transform: none;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--rd-mint);
}
.rd-field input:focus {
  border-color: rgba(62, 224, 160, 0.55);
  box-shadow: 0 0 0 4px rgba(62, 224, 160, 0.14);
  background: rgba(0, 0, 0, 0.38);
}
.rd-field.is-valid input {
  border-color: rgba(62, 224, 160, 0.65);
  box-shadow: 0 0 0 4px rgba(62, 224, 160, 0.12);
}
.rd-field.is-invalid input {
  border-color: rgba(255, 123, 123, 0.65);
  box-shadow: 0 0 0 4px rgba(255, 123, 123, 0.12);
  animation: rd-shake 0.4s ease;
}
@keyframes rd-shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  75% { transform: translateX(4px); }
}

.rd-hint {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 0 0 16px;
  font-size: 12px;
  line-height: 1.45;
  color: var(--rd-faint);
}
.rd-hint i {
  margin-top: 2px;
  color: var(--rd-cyan);
  opacity: 0.85;
}

.rd-submit {
  width: 100%;
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  border-radius: 16px;
  padding: 14px 18px;
  font-family: var(--rd-display);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #04140e;
  cursor: pointer;
  background: linear-gradient(135deg, #8affd0 0%, var(--rd-mint) 45%, var(--rd-mint-2) 100%);
  box-shadow:
    0 12px 32px rgba(62, 224, 160, 0.32),
    0 1px 0 rgba(255, 255, 255, 0.35) inset;
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease, opacity 0.18s ease;
}
.rd-submit:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 16px 40px rgba(62, 224, 160, 0.42);
}
.rd-submit:active:not(:disabled) { transform: scale(0.985); }
.rd-submit:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}
.rd-submit.is-loading .rd-submit-label { opacity: 0; }
.rd-submit .rd-spinner {
  display: none;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(4, 20, 14, 0.25);
  border-top-color: #04140e;
  border-radius: 50%;
  animation: rd-spin 0.7s linear infinite;
  position: absolute;
}
.rd-submit {
  position: relative;
}
.rd-submit.is-loading .rd-spinner { display: block; }
@keyframes rd-spin { to { transform: rotate(360deg); } }

/* Result glass */
.rd-result {
  display: none;
  align-items: flex-start;
  gap: 12px;
  margin-top: 14px;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid transparent;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  animation: rd-result-in 0.35s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.rd-result.is-visible { display: flex; }
.rd-result.is-success {
  background: rgba(62, 224, 160, 0.1);
  border-color: rgba(62, 224, 160, 0.32);
  color: var(--rd-ok);
}
.rd-result.is-error {
  background: rgba(255, 123, 123, 0.1);
  border-color: rgba(255, 123, 123, 0.32);
  color: var(--rd-danger);
}
@keyframes rd-result-in {
  from { opacity: 0; transform: translateY(8px) scale(0.98); }
  to { opacity: 1; transform: none; }
}
.rd-result-ico {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  font-size: 15px;
  background: rgba(255, 255, 255, 0.08);
}
.rd-result.is-success .rd-result-ico {
  background: rgba(62, 224, 160, 0.18);
}
.rd-result.is-error .rd-result-ico {
  background: rgba(255, 123, 123, 0.18);
}
.rd-result-copy strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: inherit;
}
.rd-result-copy span {
  display: block;
  margin-top: 3px;
  font-size: 12.5px;
  line-height: 1.4;
  opacity: 0.88;
  color: var(--rd-ink);
}

/* Success burst */
.rd-console.is-success .rd-console-inner {
  box-shadow: 0 0 0 1px rgba(62, 224, 160, 0.25) inset;
}
.rd-console.is-success .rd-console-glow {
  background: radial-gradient(circle, rgba(62, 224, 160, 0.45), transparent 70%);
}

/* ---- Sources ---- */
.rd-sources {
  animation: rd-rise 0.65s cubic-bezier(0.22, 1, 0.36, 1) 0.12s both;
}
.rd-sources-head {
  margin-bottom: 12px;
  padding: 0 2px;
}
.rd-sources-head h2 {
  margin: 0 0 4px;
  font-family: var(--rd-display);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.rd-sources-head p {
  margin: 0;
  font-size: 12.5px;
  color: var(--rd-faint);
}

.rd-source-list {
  display: grid;
  gap: 10px;
}

.rd-source {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border-radius: 18px;
  text-decoration: none;
  color: inherit;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.02)),
    rgba(16, 20, 28, 0.55);
  border: 1px solid var(--rd-stroke-soft);
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
  overflow: hidden;
}
.rd-source::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 40%, rgba(255, 255, 255, 0.06), transparent 70%);
  opacity: 0;
  transition: opacity 0.25s ease;
}
.rd-source:hover,
.rd-source:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.38);
  outline: none;
}
.rd-source:hover::before,
.rd-source:focus-visible::before { opacity: 1; }
.rd-source:active { transform: scale(0.985); }

.rd-source-ico {
  width: 48px;
  height: 48px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  font-size: 20px;
  flex-shrink: 0;
  border: 1px solid transparent;
}
.rd-source-ico.wa {
  color: #25d366;
  background: rgba(37, 211, 102, 0.12);
  border-color: rgba(37, 211, 102, 0.28);
  box-shadow: 0 0 24px rgba(37, 211, 102, 0.12);
}
.rd-source-ico.ref {
  color: var(--rd-cyan);
  background: rgba(94, 200, 240, 0.12);
  border-color: rgba(94, 200, 240, 0.28);
  box-shadow: 0 0 24px rgba(94, 200, 240, 0.12);
}
.rd-source-text { flex: 1; min-width: 0; }
.rd-source-text strong {
  display: block;
  font-family: var(--rd-display);
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.rd-source-text span {
  display: block;
  margin-top: 3px;
  font-size: 12.5px;
  line-height: 1.4;
  color: var(--rd-muted);
}
.rd-source-go {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 12px;
  color: var(--rd-faint);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--rd-stroke-soft);
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}
.rd-source:hover .rd-source-go {
  color: var(--rd-ink);
  background: rgba(255, 255, 255, 0.1);
  transform: translateX(2px);
}

/* Foot note */
.rd-fineprint {
  margin: 0;
  text-align: center;
  font-size: 11.5px;
  color: var(--rd-faint);
  animation: rd-rise 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.18s both;
}

/* ---- Mobile dock (match product shell) ---- */
.mob-dock {
  position: fixed;
  left: 50%;
  bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  z-index: 60;
  transform: translateX(-50%);
  width: min(360px, calc(100vw - 28px));
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 2px;
  padding: 8px 10px;
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.04)),
    rgba(22, 26, 34, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.45),
    0 2px 8px rgba(0, 0, 0, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
}
.mob-dock-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-height: 48px;
  border-radius: 999px;
  color: rgba(168, 179, 199, 0.92);
  font-size: 9.5px;
  font-weight: 650;
  text-decoration: none;
  transition: 0.18s ease;
}
.mob-dock-item i { font-size: 16px; }
.mob-dock-item.is-active,
.mob-dock-item:hover {
  color: #e0f7ff;
  background: rgba(56, 189, 248, 0.18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

@media (min-width: 901px) {
  .mob-dock { display: none !important; }
  .rd-stage {
    width: min(640px, 100%);
    padding: 36px 24px 48px;
    gap: 28px;
  }
  .rd-intro-brand { font-size: 64px; }
  .rd-console-inner { padding: 28px 26px 24px; }
  .rd-source-list {
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }
  .rd-source {
    flex-direction: column;
    align-items: flex-start;
    min-height: 168px;
    padding: 20px;
  }
  .rd-source-go {
    position: absolute;
    top: 18px;
    right: 18px;
  }
  .rd-source-text { margin-top: 4px; }
}

@media (prefers-reduced-motion: reduce) {
  .rd-atmosphere::after,
  .rd-console-glow,
  .rd-intro,
  .rd-console,
  .rd-sources,
  .rd-fineprint,
  .rd-result {
    animation: none !important;
  }
}
