/* ================================================================
   styles/redeem.css — Affiliate Redemption Page
================================================================ */

/* ── Hero layout ── */
.rd-hero {
  min-height: 100vh;
  padding: 110px 0 80px;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.rd-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.rd-particle {
  position: absolute;
  border-radius: 50%;
  background: rgba(59,130,246,.35);
  animation: rd-float linear infinite;
}
@keyframes rd-float {
  0%   { transform: translateY(0) scale(1);   opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: .4; }
  100% { transform: translateY(-80vh) scale(.6); opacity: 0; }
}

.rd-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 28px;
  display: grid;
  grid-template-columns: 1fr 480px;
  gap: 72px;
  align-items: center;
  position: relative;
  z-index: 1;
}

/* ── Left info pane ── */
.rd-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--blue-bright, #60a5fa);
  background: rgba(59,130,246,.09);
  border: 1px solid rgba(59,130,246,.2);
  padding: 5px 14px;
  border-radius: 100px;
  margin-bottom: 22px;
}
.rd-h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 900;
  line-height: 1.1;
  color: #f0f4ff;
  margin-bottom: 20px;
}
.rd-accent { color: #3b82f6; }
.rd-sub {
  font-size: .95rem;
  color: #8fa3c0;
  line-height: 1.7;
  max-width: 440px;
  margin-bottom: 40px;
}

/* Steps */
.rd-steps { display: flex; flex-direction: column; gap: 20px; }
.rd-step {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.rd-step-num {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: rgba(59,130,246,.12);
  border: 1.5px solid rgba(59,130,246,.3);
  display: flex; align-items: center; justify-content: center;
  font-size: .78rem;
  font-weight: 800;
  color: #60a5fa;
  flex-shrink: 0;
}
.rd-step > div { display: flex; flex-direction: column; gap: 3px; padding-top: 5px; }
.rd-step strong { font-size: .88rem; font-weight: 700; color: #f0f4ff; }
.rd-step span   { font-size: .8rem; color: #8fa3c0; line-height: 1.5; }

/* ── Card ── */
.rd-card-wrap { perspective: 1000px; }
.rd-card {
  background: rgba(10,17,32,.75);
  border: 1px solid rgba(59,130,246,.18);
  border-radius: 20px;
  padding: 40px 36px;
  backdrop-filter: blur(24px);
  box-shadow: 0 24px 64px rgba(0,0,0,.5), 0 0 40px rgba(59,130,246,.06);
  transition: box-shadow .3s ease;
  min-height: 480px;
  display: flex;
  flex-direction: column;
}
.rd-card--settled {
  box-shadow: 0 24px 64px rgba(0,0,0,.5), 0 0 60px rgba(59,130,246,.1);
}

.rd-card-state { flex: 1; display: flex; flex-direction: column; }

/* Card header */
.rd-card-hd { text-align: center; margin-bottom: 32px; }
.rd-card-icon {
  width: 60px; height: 60px;
  border-radius: 16px;
  background: rgba(59,130,246,.1);
  border: 1px solid rgba(59,130,246,.2);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 18px;
  font-size: 1.5rem;
  color: #3b82f6;
}
.rd-card-hd h2 { font-size: 1.35rem; font-weight: 800; color: #f0f4ff; margin-bottom: 8px; }
.rd-card-hd p  { font-size: .84rem; color: #8fa3c0; }

/* Fields */
.rd-fields { display: flex; flex-direction: column; gap: 18px; }
.rd-field-group { display: flex; flex-direction: column; gap: 6px; }
.rd-field-group label { font-size: .78rem; font-weight: 600; color: #8fa3c0; letter-spacing: .04em; text-transform: uppercase; }
.rd-req    { color: #ef4444; }
.rd-optional { color: #4d6380; font-weight: 400; text-transform: none; letter-spacing: 0; }
.rd-field-hint { font-size: .73rem; color: #4d6380; }

.rd-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.rd-input-wrap > i {
  position: absolute;
  left: 13px;
  color: #4d6380;
  font-size: .85rem;
  pointer-events: none;
}
.rd-input-wrap input,
.rd-input-wrap select {
  width: 100%;
  background: rgba(7,12,24,.8);
  border: 1.5px solid rgba(59,130,246,.15);
  border-radius: 10px;
  padding: 11px 14px 11px 38px;
  font-size: .88rem;
  color: #f0f4ff;
  outline: none;
  font-family: 'Inter', sans-serif;
  transition: border-color .2s ease, box-shadow .2s ease;
  -webkit-appearance: none;
}
.rd-input-wrap input::placeholder { color: #4d6380; }
.rd-input-wrap input:focus,
.rd-input-wrap select:focus {
  border-color: rgba(59,130,246,.5);
  box-shadow: 0 0 0 3px rgba(59,130,246,.1);
}
.rd-input-wrap select option { background: #070c18; color: #f0f4ff; }

/* Error inline */
.rd-error {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  background: rgba(239,68,68,.08);
  border: 1px solid rgba(239,68,68,.25);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: .82rem;
  color: #fca5a5;
  line-height: 1.5;
}
.rd-error::before { content: '\f071'; font-family: 'Font Awesome 6 Free'; font-weight: 900; flex-shrink: 0; margin-top: 1px; }

/* Submit button */
.rd-submit-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  padding: 13px 24px;
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  border: none;
  border-radius: 11px;
  color: #fff;
  font-size: .92rem;
  font-weight: 700;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  transition: all .25s ease;
  text-decoration: none;
  margin-top: 4px;
}
.rd-submit-btn:hover {
  background: linear-gradient(135deg, #60a5fa, #3b82f6);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(59,130,246,.35);
}
.rd-submit-btn:disabled {
  opacity: .6;
  cursor: not-allowed;
  transform: none;
}
.rd-discord-btn {
  background: linear-gradient(135deg, #5865f2, #4752c4);
}
.rd-discord-btn:hover {
  background: linear-gradient(135deg, #7289da, #5865f2);
  box-shadow: 0 8px 24px rgba(88,101,242,.35);
}

/* Success state */
.rd-success-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 12px;
  padding: 16px 0;
}
.rd-success-icon {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: rgba(34,197,94,.12);
  border: 2px solid rgba(34,197,94,.3);
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem;
  color: #22c55e;
  margin-bottom: 6px;
  animation: rd-pop .4s cubic-bezier(.18,.89,.32,1.28);
}
.rd-err-icon {
  background: rgba(239,68,68,.12);
  border-color: rgba(239,68,68,.3);
  color: #ef4444;
}
@keyframes rd-pop {
  0%   { transform: scale(.6); opacity: 0; }
  100% { transform: scale(1);  opacity: 1; }
}
.rd-success-h2  { font-size: 1.3rem; font-weight: 800; color: #f0f4ff; }
.rd-success-sub { font-size: .85rem; color: #8fa3c0; line-height: 1.6; max-width: 300px; }

.rd-success-detail {
  background: rgba(7,12,24,.6);
  border: 1px solid rgba(59,130,246,.15);
  border-radius: 12px;
  padding: 16px 20px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 6px 0;
  text-align: left;
}
.rd-srow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .82rem;
  color: #8fa3c0;
}
.rd-srow i     { color: #3b82f6; width: 14px; text-align: center; flex-shrink: 0; }
.rd-srow strong{ color: #f0f4ff; }

.rd-reset-btn {
  background: none;
  border: none;
  color: #4d6380;
  font-size: .78rem;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  text-decoration: underline;
  transition: color .2s;
}
.rd-reset-btn:hover { color: #8fa3c0; }

/* Footer note */
.rd-footer-note {
  text-align: center;
  padding: 24px 28px 48px;
  font-size: .8rem;
  color: #4d6380;
}
.rd-footer-note a { color: #3b82f6; text-decoration: none; }
.rd-footer-note a:hover { text-decoration: underline; }

/* ── Responsive ── */
@media (max-width: 900px) {
  .rd-container {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .rd-card-wrap { max-width: 520px; width: 100%; margin: 0 auto; }
}
@media (max-width: 600px) {
  .rd-hero { padding: 100px 0 60px; }
  .rd-card { padding: 28px 22px; }
  .rd-container { padding: 0 16px; }
}

/* ── IP display on success screen ── */
.rd-srow--ip {
  background: rgba(59,130,246,.06);
  border: 1px solid rgba(59,130,246,.15);
  border-radius: 8px;
  padding: 8px 12px;
  gap: 10px;
  flex-wrap: wrap;
}
.rd-srow--ip i {
  color: #60a5fa;
}
.rd-ip-val {
  font-family: 'Courier New', Courier, monospace;
  font-size: .87rem;
  font-weight: 700;
  color: #f0f4ff;
  letter-spacing: .02em;
  background: rgba(59,130,246,.08);
  padding: 2px 8px;
  border-radius: 5px;
  border: 1px solid rgba(59,130,246,.18);
}
.rd-ip-loc {
  font-size: .78rem;
  color: #8fa3c0;
  margin-left: auto;
}

/* ── Left info pane wrapper ── */
.rd-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* ── Dim row variant in success detail ── */
.rd-srow--dim {
  opacity: 0.55;
  font-size: 0.75rem;
}

/* ── Success detail info block ── */
.rd-success-info {
  background: rgba(7,12,24,0.6);
  border: 1px solid rgba(59,130,246,0.15);
  border-radius: 12px;
  padding: 16px 20px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 6px 0;
  text-align: left;
}

/* ── Responsive: stack on mobile ── */
@media (max-width: 768px) {
  .rd-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .rd-info { display: none; }
  .rd-card { min-height: auto; }
}
@media (max-width: 480px) {
  .rd-card { padding: 28px 20px; }
  .rd-h1 { font-size: 2rem; }
}
