/* ═══════════════════════════════════════════════════════════
   Central de Recompensas — página pública (mobile first)
   Visual "vidro 3D" no mesmo estilo do resto do PulseForge.
   Mantém TODAS as classes .cr-* usadas pelo HTML e pelo JS.
   ═══════════════════════════════════════════════════════════ */
:root {
  --cr-bg: #030504;
  --cr-fg: #f5f5f7;
  --cr-muted: #a6b0aa;
  --cr-muted-2: #7d8782;
  --cr-primary: #a3ffd1;
  --cr-primary-deep: #74e6ad;
  --cr-amber: #ffb38f;
  --cr-coral: #ff806c;
  --cr-border: rgba(255, 255, 255, .11);
  --cr-edge-hi: rgba(163, 255, 209, .4);
  --cr-field: rgba(0, 0, 0, .42);
  --font: "SF Pro Display", -apple-system, BlinkMacSystemFont, "Inter Tight", "Segoe UI", system-ui, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, monospace;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
/* classes com display próprio não podem anular o atributo hidden */
[hidden] { display: none !important; }
html, body { min-height: 100%; background: var(--cr-bg); color: var(--cr-fg); font-family: var(--font); line-height: 1.5; -webkit-font-smoothing: antialiased; }
body {
  position: relative;
  background:
    radial-gradient(620px 460px at 50% -6%, rgba(163,255,209,.17), transparent 70%),
    radial-gradient(520px 420px at 100% 60%, rgba(116,230,173,.07), transparent 70%),
    var(--cr-bg);
  background-attachment: fixed;
}
body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background-image: linear-gradient(rgba(163,255,209,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(163,255,209,.045) 1px, transparent 1px);
  background-size: 52px 52px;
  -webkit-mask: radial-gradient(ellipse at 50% 0, #000 8%, transparent 68%); mask: radial-gradient(ellipse at 50% 0, #000 8%, transparent 68%);
}
.cr-page { position: relative; z-index: 1; min-height: 100vh; }
.cr-wrap { width: min(560px, 100%); margin: 0 auto; padding: 26px 16px 44px; display: flex; flex-direction: column; gap: 20px; }

/* ── hero ── */
.cr-hero { text-align: center; display: grid; gap: 12px; justify-items: center; }
.cr-badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px;
  border: 1px solid rgba(163,255,209,.3); background: rgba(163,255,209,.08); color: var(--cr-primary);
  font: 500 11px var(--mono); letter-spacing: .16em; text-transform: uppercase;
}
.cr-badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--cr-primary); box-shadow: 0 0 10px var(--cr-primary); animation: cr-blink 1.6s infinite; }
@keyframes cr-blink { 50% { opacity: .35; } }

/* Símbolo de Robux em 3D: anel quadrado vazado, com laterais reais. */
.cr-logo {
  width: 110px; height: 132px; perspective: 560px; display: grid; place-items: center;
  position: relative; isolation: isolate; margin: 4px 0 2px;
}
.cr-logo::after {
  content: ""; position: absolute; bottom: 6px; left: 50%; width: 92px; height: 14px;
  transform: translateX(-50%); border-radius: 50%;
  background: radial-gradient(closest-side, rgba(163,255,209,.38), transparent);
  filter: blur(2px); animation: cr-rbx-shadow 3.6s ease-in-out infinite;
}
.cr-robux-float {
  width: 72px; height: 72px; display: grid; place-items: center;
  transform-style: preserve-3d; animation: cr-rbx-float 3.6s ease-in-out infinite;
}
.cr-robux-3d {
  width: 72px; height: 72px; position: relative; transform-style: preserve-3d;
  animation: cr-rbx-spin 8s linear infinite;
}
.cr-rbx-front, .cr-rbx-back {
  position: absolute; inset: 0; box-sizing: border-box;
  border: 16px solid #d8fff0; border-radius: 3px; backface-visibility: hidden;
}
.cr-rbx-front {
  transform: translateZ(9px);
  border-top-color: #fbfffd; border-right-color: #bffbdf;
  border-bottom-color: #6fdcb0; border-left-color: #d9fff2;
  box-shadow: 0 0 20px rgba(163,255,209,.32), inset 0 0 7px rgba(0,0,0,.35);
}
.cr-rbx-back {
  transform: rotateY(180deg) translateZ(9px); border-color: #a1e0c7;
  box-shadow: 0 0 20px rgba(163,255,209,.2);
}
.cr-rbx-wall {
  position: absolute; display: block; box-sizing: border-box;
  background: linear-gradient(90deg, #347a67, #79cbae 42%, #c1f8de 75%, #458d77);
  border: 1px solid rgba(215,255,238,.12);
}
.cr-rbx-outer-top, .cr-rbx-outer-bottom { width: 72px; height: 18px; left: 0; top: 27px; }
.cr-rbx-outer-left, .cr-rbx-outer-right { width: 18px; height: 72px; left: 27px; top: 0; }
.cr-rbx-outer-top { transform: rotateX(90deg) translateZ(36px); }
.cr-rbx-outer-bottom { transform: rotateX(-90deg) translateZ(36px); }
.cr-rbx-outer-left { transform: rotateY(-90deg) translateZ(36px); }
.cr-rbx-outer-right { transform: rotateY(90deg) translateZ(36px); }
.cr-rbx-inner-top, .cr-rbx-inner-bottom {
  width: 40px; height: 18px; left: 16px; top: 27px;
  background: linear-gradient(90deg, #275e50, #69bca0 60%, #3a846f);
}
.cr-rbx-inner-left, .cr-rbx-inner-right {
  width: 18px; height: 40px; left: 27px; top: 16px;
  background: linear-gradient(#285e50, #69bca0 60%, #3a846f);
}
.cr-rbx-inner-top { transform: rotateX(90deg) translateZ(20px); }
.cr-rbx-inner-bottom { transform: rotateX(-90deg) translateZ(20px); }
.cr-rbx-inner-left { transform: rotateY(-90deg) translateZ(20px); }
.cr-rbx-inner-right { transform: rotateY(90deg) translateZ(20px); }
@keyframes cr-rbx-spin {
  from { transform: rotateX(-19deg) rotateY(0deg) rotateZ(-28deg); }
  to { transform: rotateX(-19deg) rotateY(360deg) rotateZ(-28deg); }
}
@keyframes cr-rbx-float {
  0%, 100% { transform: translateY(2px); }
  50% { transform: translateY(-7px); }
}
@keyframes cr-rbx-shadow {
  0%, 100% { opacity: .62; transform: translateX(-50%) scale(1); }
  50% { opacity: 1; transform: translateX(-50%) scale(1.12); }
}
@media (prefers-reduced-motion: reduce) {
  .cr-robux-3d { transform: rotateX(-19deg) rotateY(-25deg) rotateZ(-28deg); }
}

.cr-h1 { font-size: clamp(34px, 9vw, 46px); font-weight: 700; line-height: 1.02; letter-spacing: -.045em; text-wrap: balance; }
.cr-h2 { font-size: 20px; font-weight: 650; letter-spacing: -.025em; line-height: 1.2; }
.cr-ember {
  background: linear-gradient(100deg, #a3ffd1 20%, #fff 45%, #a3ffd1 70%); background-size: 220% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent; animation: cr-shine 5s linear infinite;
}
@keyframes cr-shine { from { background-position: 0 0; } to { background-position: -220% 0; } }
.cr-muted { color: var(--cr-muted); font-size: 15px; }

/* ── stepper ── */
.cr-stepper { position: relative; display: flex; justify-content: space-between; padding: 0 4px; }
.cr-stepper::before { content: ""; position: absolute; left: 12%; right: 12%; top: 21px; height: 2px; border-radius: 2px; background: rgba(255,255,255,.1); }
.cr-step-item { position: relative; z-index: 1; flex: 1; display: grid; justify-items: center; gap: 8px; }
.cr-dot {
  width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
  font-weight: 700; font-size: 15px; color: var(--cr-muted);
  background: rgba(10,16,13,.9); border: 1px solid var(--cr-border);
  transition: all .35s cubic-bezier(.2,.8,.2,1);
}
.cr-dot-active {
  color: #02140b; border-color: transparent; transform: scale(1.1);
  background: linear-gradient(180deg, #c4ffe2, var(--cr-primary-deep));
  box-shadow: 0 0 0 6px rgba(163,255,209,.12), 0 10px 30px -6px rgba(163,255,209,.7);
  animation: cr-ring 2.2s ease-in-out infinite;
}
@keyframes cr-ring { 50% { box-shadow: 0 0 0 10px rgba(163,255,209,.05), 0 10px 34px -6px rgba(163,255,209,.85); } }
.cr-dot-done { color: var(--cr-primary); border-color: rgba(163,255,209,.5); background: rgba(163,255,209,.14); box-shadow: inset 0 0 12px rgba(163,255,209,.3); }
.cr-lbl { font: 500 10.5px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--cr-muted-2); }
.cr-lbl-active { color: var(--cr-primary); }

/* ── cartão de vidro ── */
.cr-card {
  position: relative; display: grid; gap: 16px; padding: 22px; border-radius: 26px;
  border: 1px solid var(--cr-border);
  background: linear-gradient(160deg, rgba(255,255,255,.08), rgba(255,255,255,.02) 55%), rgba(10,16,13,.62);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12), 0 30px 60px -30px rgba(0,0,0,.9), 0 0 60px -20px rgba(163,255,209,.18);
  animation: cr-in .55s cubic-bezier(.2,.8,.2,1) both;
}
.cr-card::after { content: ""; position: absolute; left: 26px; right: 26px; top: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--cr-primary), transparent); opacity: .55; }
.cr-card[hidden] { display: none; }
@keyframes cr-in { from { opacity: 0; transform: translateY(16px) rotateX(6deg); } to { opacity: 1; transform: none; } }

/* ── campos e botões ── */
.cr-input {
  flex: 1; min-width: 0; width: 100%; height: 52px; padding: 0 18px; border-radius: 16px;
  border: 1px solid var(--cr-border); background: var(--cr-field); color: var(--cr-fg);
  font: 500 16px var(--font); box-shadow: inset 0 2px 8px rgba(0,0,0,.4); transition: border-color .2s, box-shadow .2s;
}
.cr-input::placeholder { color: #59635e; }
.cr-input:focus { outline: 0; border-color: var(--cr-edge-hi); box-shadow: 0 0 0 4px rgba(163,255,209,.14), inset 0 2px 8px rgba(0,0,0,.4); }
.cr-btn {
  min-height: 52px; padding: 0 26px; border: 0; border-radius: 999px; cursor: pointer;
  font: 650 16px var(--font); letter-spacing: -.01em; color: #02140b;
  background: linear-gradient(180deg, #c4ffe2, var(--cr-primary-deep));
  box-shadow: 0 12px 30px -8px rgba(163,255,209,.55), inset 0 1px 0 rgba(255,255,255,.6);
  transition: transform .2s, box-shadow .2s;
}
.cr-btn:hover { transform: translateY(-2px); box-shadow: 0 0 0 8px rgba(163,255,209,.12), 0 18px 44px -6px rgba(163,255,209,.7); }
.cr-btn:active { transform: scale(.98); }
.cr-btn:disabled { opacity: .5; cursor: not-allowed; transform: none; box-shadow: none; }
.cr-btn-ghost {
  min-height: 52px; padding: 0 22px; border-radius: 999px; cursor: pointer; font: 600 15px var(--font);
  color: var(--cr-fg); border: 1px solid var(--cr-border); background: rgba(255,255,255,.05); transition: border-color .2s, transform .2s;
}
.cr-btn-ghost:hover { border-color: var(--cr-edge-hi); transform: translateY(-2px); }
.cr-link-btn {
  display: inline-flex; align-items: center; justify-content: center; width: 100%; min-height: 52px; padding: 0 22px;
  border-radius: 999px; text-decoration: none; font: 650 15px var(--font); color: var(--cr-primary);
  border: 1px solid rgba(163,255,209,.4); background: rgba(163,255,209,.09); transition: transform .2s, box-shadow .2s;
}
.cr-link-btn:hover { transform: translateY(-2px); box-shadow: 0 0 40px -8px rgba(163,255,209,.5); }

/* ── quantidades ── */
.cr-amounts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cr-amt {
  display: grid; justify-items: center; gap: 2px; padding: 16px 10px; border-radius: 18px; cursor: pointer; color: inherit;
  border: 1px solid var(--cr-border); background: rgba(255,255,255,.045); font: inherit; transition: all .25s cubic-bezier(.2,.8,.2,1);
}
.cr-amt:hover { transform: translateY(-3px); border-color: var(--cr-edge-hi); }
.cr-amt-on { border-color: var(--cr-primary); background: linear-gradient(160deg, rgba(163,255,209,.2), rgba(163,255,209,.05)); box-shadow: 0 0 0 1px rgba(163,255,209,.4), 0 14px 36px -12px rgba(163,255,209,.6); transform: translateY(-3px); }

.cr-box { display: grid; gap: 10px; padding: 16px; border-radius: 18px; border: 1px solid var(--cr-border); background: rgba(0,0,0,.28); }

/* ── lista de passos ── */
.cr-list { list-style: none; display: grid; gap: 10px; }
.cr-howto-item { display: flex; align-items: flex-start; gap: 12px; padding: 12px 14px; border-radius: 16px; border: 1px solid var(--cr-border); background: rgba(255,255,255,.035); font-size: 15px; line-height: 1.4; }
.cr-howto-num { width: 28px; height: 28px; flex: none; display: grid; place-items: center; border-radius: 50%; font: 700 13px var(--font); color: #02140b; background: linear-gradient(180deg, #c4ffe2, var(--cr-primary-deep)); box-shadow: 0 0 14px rgba(163,255,209,.4); }

/* ── avisos (âmbar) ── */
.cr-warning {
  display: flex; gap: 12px; align-items: flex-start; padding: 14px; border-radius: 18px;
  border: 1px solid rgba(255,179,143,.4); background: linear-gradient(160deg, rgba(255,179,143,.13), rgba(255,179,143,.03));
}
.cr-warning-mark { width: 26px; height: 26px; flex: none; display: grid; place-items: center; border-radius: 50%; font-weight: 800; font-size: 14px; color: #1a0a02; background: var(--cr-amber); box-shadow: 0 0 16px rgba(255,179,143,.5); }
.cr-warning b { display: block; color: var(--cr-amber); font-size: 13px; letter-spacing: .02em; }
.cr-warning p { margin-top: 3px; color: var(--cr-muted); font-size: 13.5px; line-height: 1.4; }
.cr-warning-compact { padding: 12px 14px; }

/* ── upload ── */
.cr-upload {
  display: grid; place-items: center; width: 100%; min-height: 150px; padding: 18px; border-radius: 22px; cursor: pointer;
  border: 1.5px dashed rgba(163,255,209,.35); background: rgba(163,255,209,.04); color: var(--cr-muted); font: inherit; text-align: center;
  transition: border-color .2s, background .2s, transform .2s;
}
.cr-upload:hover { border-color: var(--cr-primary); background: rgba(163,255,209,.09); transform: translateY(-2px); }
.cr-upload b { color: var(--cr-primary); font-size: 16px; }

/* ── perfil ── */
.cr-profile { display: grid; gap: 14px; padding: 16px; border-radius: 20px; border: 1px solid var(--cr-edge-hi); background: linear-gradient(160deg, rgba(163,255,209,.12), rgba(163,255,209,.02)); }
.cr-avatar { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; display: grid; place-items: center; flex: none; background: rgba(0,0,0,.4); border: 2px solid rgba(163,255,209,.5); box-shadow: 0 0 22px rgba(163,255,209,.3); color: var(--cr-muted); font-weight: 700; font-size: 22px; }
.cr-avatar[hidden] { display: none; }

/* ── mensagens ── */
.cr-msg { padding: 12px 14px; border-radius: 14px; font-size: 14px; border: 1px solid var(--cr-border); background: rgba(255,255,255,.05); }
.cr-msg[hidden] { display: none; }
.cr-msg-ok { color: var(--cr-primary); border-color: rgba(163,255,209,.4); background: rgba(163,255,209,.1); }
.cr-msg-err { color: #ffb2a6; border-color: rgba(255,128,108,.45); background: rgba(255,128,108,.1); }
.cr-break { word-break: break-all; font: 500 13px var(--mono); color: var(--cr-fg); }
.cr-foot { text-align: center; color: var(--cr-muted-2); font: 500 11px var(--mono); letter-spacing: .14em; text-transform: uppercase; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
@media (max-width: 380px) { .cr-card { padding: 18px; border-radius: 22px; } .cr-dot { width: 38px; height: 38px; } .cr-stepper::before { top: 19px; } }
