/* =========================================================
   ROLETA FROST — estilo "abertura de caixa" (unboxing)
   HUD gamer · esteira horizontal · tickets por raridade
   Sobre o fundo global da Frost (aurora + neve).
   Classes/IDs preservados p/ o JS da roleta.
========================================================= */

.frost-rewards-page {
  --fx-ink: #eef1fb;
  --fx-muted: #9aa0b8;
  --fx-faint: #646a85;
  --fx-line: rgba(255, 255, 255, 0.08);
  --fx-panel: rgba(13, 14, 22, 0.82);
  --fx-panel-2: rgba(9, 10, 17, 0.9);
  --fx-violet: #8b5cf6;
  --fx-violet-bright: #a855f7;
  --fx-cyan: #22d3ee;

  /* raridades (casam com os brilhos injetados pelo JS) */
  --r-common: #46507a;
  --r-rare: #4aa3ff;
  --r-epic: #a855f7;
  --r-legendary: #ffc24a;

  --fx-mono: ui-monospace, "SF Mono", "SFMono-Regular", "JetBrains Mono", Menlo, Consolas, monospace;

  position: relative;
  min-height: 100vh;
  padding: 28px 16px 80px;
  color: var(--fx-ink);
  font-family: "Geist", ui-sans-serif, system-ui, sans-serif;
}

.frost-rewards-container {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
}

/* ---------- breadcrumb ---------- */
.rewards-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 26px;
  font-size: 13px;
  color: var(--fx-faint);
}
.rewards-breadcrumb a { color: var(--fx-muted); transition: color .2s; }
.rewards-breadcrumb a:hover { color: #fff; }

/* =========================================================
   CABEÇALHO — alinhado à esquerda, estilo painel de jogo
========================================================= */
.rewards-header {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 18px 24px;
  margin-bottom: 22px;
  text-align: left;
}
.rewards-header-icon { display: none; } /* sem selo central */
.rewards-eyebrow {
  margin: 0 0 10px;
  font-family: var(--fx-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .18em;
  color: var(--fx-cyan);
  display: flex;
  align-items: center;
  gap: 9px;
}
.rewards-eyebrow::before {
  content: "";
  width: 22px; height: 2px;
  background: linear-gradient(90deg, var(--fx-cyan), transparent);
}
.rewards-header h1 {
  margin: 0;
  font-family: "Sora", "Geist", sans-serif;
  font-size: clamp(2.3rem, 1.5rem + 3.4vw, 3.6rem);
  font-weight: 800;
  line-height: .98;
  letter-spacing: -0.03em;
  color: #fff;
  text-shadow: 0 0 40px rgba(139, 92, 246, 0.35);
}
.rewards-description {
  grid-column: 1 / -1;
  margin: 0;
  max-width: 60ch;
  font-size: 15px;
  line-height: 1.55;
  color: var(--fx-muted);
}
.rewards-info-badge { display: none; }

/* legenda de raridade (coluna direita do header) */
.fx-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  justify-content: flex-end;
}
.fx-legend__chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 7px;
  font-family: var(--fx-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--fx-muted);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--fx-line);
}
.fx-legend__dot { width: 9px; height: 9px; border-radius: 2px; box-shadow: 0 0 8px currentColor; }
.fx-legend__chip[data-r="common"]    .fx-legend__dot { color: var(--r-common); background: var(--r-common); }
.fx-legend__chip[data-r="rare"]      .fx-legend__dot { color: var(--r-rare); background: var(--r-rare); }
.fx-legend__chip[data-r="epic"]      .fx-legend__dot { color: var(--r-epic); background: var(--r-epic); }
.fx-legend__chip[data-r="legendary"] .fx-legend__dot { color: var(--r-legendary); background: var(--r-legendary); }

/* =========================================================
   A MÁQUINA (painel-caixa com moldura violeta/ciano)
========================================================= */
.rewards-machine {
  position: relative;
  border-radius: 20px;
  padding: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0)),
    var(--fx-panel);
  border: 1px solid var(--fx-line);
  box-shadow:
    0 40px 90px -45px rgba(0, 0, 0, 0.95),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  isolation: isolate;
  overflow: hidden;
}
/* moldura de brilho violeta -> ciano */
.rewards-machine::before {
  content: "";
  position: absolute; inset: 0;
  padding: 1px; border-radius: inherit;
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.7), rgba(34, 211, 238, 0.12) 45%, rgba(34, 211, 238, 0.6));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  pointer-events: none; z-index: 3;
}
/* colchetes de canto (HUD) */
.rewards-machine::after {
  content: "";
  position: absolute; inset: 10px;
  border-radius: 14px;
  background:
    linear-gradient(var(--fx-cyan), var(--fx-cyan)) left top/22px 2px no-repeat,
    linear-gradient(var(--fx-cyan), var(--fx-cyan)) left top/2px 22px no-repeat,
    linear-gradient(var(--fx-cyan), var(--fx-cyan)) right bottom/22px 2px no-repeat,
    linear-gradient(var(--fx-cyan), var(--fx-cyan)) right bottom/2px 22px no-repeat;
  opacity: .5; pointer-events: none; z-index: 3;
}

.rewards-machine__title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 2px 4px 14px;
}
.rewards-machine__title span {
  font-family: var(--fx-mono);
  font-size: 12px;
  letter-spacing: .12em;
  color: var(--fx-muted);
}
.rewards-machine__live {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--fx-mono); font-size: 11px; color: var(--fx-cyan);
}
.rewards-machine__live i {
  width: 7px; height: 7px; border-radius: 50%; background: var(--fx-cyan);
  box-shadow: 0 0 10px var(--fx-cyan); animation: fxPulse 1.6s ease-in-out infinite;
}
@keyframes fxPulse { 50% { opacity: .35; } }

/* =========================================================
   ESTEIRA / VIEWPORT (geometria preservada p/ a animação)
========================================================= */
.rewards-wheel-frame,
.rewards-preview-frame {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  background:
    radial-gradient(120% 80% at 50% -10%, rgba(139, 92, 246, 0.12), transparent 60%),
    var(--fx-panel-2);
  border: 1px solid var(--fx-line);
}

.rewards-wheel-viewport,
.rewards-preview-viewport {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 196px;
  padding: 18px 0;
}

/* linha central + marcadores neon */
.rewards-wheel-viewport::before,
.rewards-preview-viewport::before {
  content: "";
  position: absolute; left: 50%; top: 8px; bottom: 8px;
  width: 2px; transform: translateX(-50%);
  background: linear-gradient(180deg, transparent, var(--fx-cyan), transparent);
  box-shadow: 0 0 16px var(--fx-cyan);
  z-index: 6; pointer-events: none;
}

.rewards-wheel-pointer {
  position: absolute; left: 50%; transform: translateX(-50%);
  width: 0; height: 0; z-index: 7; pointer-events: none;
  filter: drop-shadow(0 0 6px var(--fx-cyan));
}
.rewards-wheel-pointer-top {
  top: -2px;
  border-left: 11px solid transparent; border-right: 11px solid transparent;
  border-top: 14px solid var(--fx-cyan);
}
.rewards-wheel-pointer-bottom {
  bottom: -2px;
  border-left: 11px solid transparent; border-right: 11px solid transparent;
  border-bottom: 14px solid var(--fx-cyan);
}

/* fades laterais */
.rewards-wheel-shadow {
  position: absolute; top: 0; bottom: 0; width: 16%; z-index: 5; pointer-events: none;
}
.rewards-wheel-shadow-left  { left: 0;  background: linear-gradient(90deg, var(--fx-panel-2) 15%, transparent); }
.rewards-wheel-shadow-right { right: 0; background: linear-gradient(-90deg, var(--fx-panel-2) 15%, transparent); }

/* a trilha (flex row) — parent direto do track p/ o JS */
.rewards-wheel-track,
.rewards-preview-track {
  display: flex;
  gap: 12px;
  padding: 0 8px;
  will-change: transform;
  position: relative;
  align-items: stretch;
}
.rewards-preview-track { width: max-content; }
.rewards-preview-group { display: flex; gap: 12px; }

/* =========================================================
   TICKET (card de prêmio por raridade)
========================================================= */
.rewards-prize-card {
  flex: 0 0 auto;
  width: 148px;
  min-height: 160px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  padding: 14px 12px 12px;
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.012)), #0f1119;
  border: 1px solid var(--fx-line);
  border-top: 3px solid var(--r-common);
  text-align: center;
}
.rewards-prize-card.reward-rare      { border-top-color: var(--r-rare); }
.rewards-prize-card.reward-epic      { border-top-color: var(--r-epic); }
.rewards-prize-card.reward-legendary { border-top-color: var(--r-legendary); }
.rewards-prize-card.reward-mythic    { border-top-color: var(--r-legendary); }

.rewards-prize-image {
  width: 62px; height: 62px;
  display: flex; align-items: center; justify-content: center;
  font-size: 34px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--fx-line);
}
.rewards-prize-image img { width: 100%; height: 100%; object-fit: contain; }
.rewards-prize-card strong { font-size: 13px; font-weight: 700; color: #fff; line-height: 1.2; }
.rewards-prize-card small { font-size: 11px; color: var(--fx-muted); line-height: 1.25; }

/* =========================================================
   DOCK — estados (código / girar / resultado)
========================================================= */
.rewards-code-card,
.rewards-wheel-section,
.rewards-result-section { margin-top: 16px; }
.rewards-code-card[hidden],
.rewards-wheel-section[hidden],
.rewards-result-section[hidden] { display: none; }

/* esconde a prévia enquanto está girando / mostrando resultado */
.rewards-machine:has(#rewardWheelSection:not([hidden])) .rewards-preview-reel,
.rewards-machine:has(#rewardResultSection:not([hidden])) .rewards-preview-reel { display: none; }

/* ---- card de código ---- */
.rewards-card-heading { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.rewards-card-icon {
  width: 42px; height: 42px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  border-radius: 11px; color: var(--fx-cyan);
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.22), rgba(34, 211, 238, 0.14));
  border: 1px solid rgba(139, 92, 246, 0.3);
}
.rewards-card-heading h2 { margin: 0; font-family: "Sora", sans-serif; font-size: 18px; color: #fff; }
.rewards-card-heading p { margin: 2px 0 0; font-size: 13px; color: var(--fx-muted); }

.rewards-code-form { display: flex; flex-direction: column; gap: 12px; }
.rewards-input-wrapper {
  position: relative; display: flex; align-items: center;
  border-radius: 11px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--fx-line);
  transition: border-color .2s, box-shadow .2s;
}
.rewards-input-wrapper:focus-within {
  border-color: rgba(34, 211, 238, 0.6);
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.14);
}
.rewards-input-icon { position: absolute; left: 14px; color: var(--fx-faint); pointer-events: none; }
.rewards-code-form input {
  width: 100%;
  padding: 15px 44px;
  background: transparent; border: 0; outline: 0;
  color: #fff;
  font-family: var(--fx-mono);
  font-size: 16px; font-weight: 600; letter-spacing: .14em;
  text-transform: uppercase;
}
.rewards-code-form input::placeholder { color: var(--fx-faint); letter-spacing: .14em; }
.rewards-clear-input {
  position: absolute; right: 10px;
  width: 26px; height: 26px; border-radius: 7px;
  border: 0; cursor: pointer; color: var(--fx-muted);
  background: rgba(255, 255, 255, 0.06); font-size: 18px; line-height: 1;
}
.rewards-clear-input[hidden] { display: none; }

.rewards-form-message { margin: 0; font-size: 13px; min-height: 18px; }
.rewards-form-message.success { color: #4ade80; }
.rewards-form-message.error { color: #fb7185; }

/* botões principais (CTA chunky com glow) */
.rewards-primary-button,
.rewards-spin-button {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%;
  min-height: 54px;
  padding: 0 22px;
  border: 0; cursor: pointer;
  border-radius: 12px;
  font-family: "Sora", sans-serif;
  font-size: 15px; font-weight: 800; letter-spacing: .04em;
  color: #fff; text-transform: uppercase;
  background: linear-gradient(135deg, #7c3aed, #a855f7 55%, #6d28d9);
  box-shadow: 0 16px 40px -16px rgba(139, 92, 246, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  transition: transform .15s, filter .15s, box-shadow .2s;
}
.rewards-primary-button:hover,
.rewards-spin-button:hover { transform: translateY(-2px); filter: brightness(1.08); }
.rewards-primary-button:disabled,
.rewards-spin-button:disabled { opacity: .55; cursor: not-allowed; transform: none; }

.rewards-spin-button {
  background: linear-gradient(135deg, #0891b2, #22d3ee 55%, #0e7490);
  color: #04141a;
  box-shadow: 0 16px 44px -14px rgba(34, 211, 238, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}
.rewards-button-content { display: inline-flex; align-items: center; gap: 10px; }
.rewards-button-loader { display: inline-flex; align-items: center; gap: 10px; }
.rewards-button-loader[hidden] { display: none; }
.rewards-loader {
  width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.35); border-top-color: #fff;
  animation: fxSpin .7s linear infinite;
}
@keyframes fxSpin { to { transform: rotate(360deg); } }

.rewards-security-note {
  display: flex; align-items: center; gap: 8px;
  margin-top: 12px; font-size: 12px; color: var(--fx-faint);
}

/* ---- seção girar ---- */
.rewards-wheel-heading { text-align: center; margin-bottom: 12px; }
.rewards-wheel-heading p { margin: 0; font-family: var(--fx-mono); font-size: 11px; letter-spacing: .16em; color: var(--fx-cyan); }
.rewards-wheel-heading h2 { margin: 4px 0 0; font-family: "Sora", sans-serif; font-size: 20px; color: #fff; }
.rewards-wheel-heading span { font-size: 13px; color: var(--fx-muted); }
.rewards-spins-counter {
  display: inline-flex; align-items: center; margin-top: 10px;
  padding: 6px 13px; border-radius: 999px;
  font-family: var(--fx-mono); font-size: 13px; font-weight: 700; color: var(--fx-cyan);
  background: rgba(34, 211, 238, 0.08); border: 1px solid rgba(34, 211, 238, 0.3);
}
.rewards-spins-counter[hidden] { display: none; }
.rewards-wheel-section .rewards-spin-button { margin-top: 16px; }

/* =========================================================
   RESULTADO (banner por raridade)
========================================================= */
.rewards-result-section {
  position: relative;
  text-align: center;
  padding: 26px 20px;
  border-radius: 14px;
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(139, 92, 246, 0.16), transparent 60%),
    var(--fx-panel-2);
  border: 1px solid var(--fx-line);
  overflow: hidden;
}
.rewards-result-section.reward-rare      { border-color: rgba(74, 163, 255, 0.5); }
.rewards-result-section.reward-epic      { border-color: rgba(168, 85, 247, 0.5); }
.rewards-result-section.reward-legendary { border-color: rgba(255, 194, 74, 0.55); }
.rewards-result-glow { position: absolute; inset: 0; pointer-events: none; }
.rewards-result-crown { font-size: 34px; }
.rewards-result-eyebrow { margin: 6px 0 2px; font-family: var(--fx-mono); font-size: 11px; letter-spacing: .18em; color: var(--fx-cyan); }
.rewards-result-section h2 { margin: 0; font-family: "Sora", sans-serif; font-size: 24px; color: #fff; }
.rewards-result-text { margin: 10px 0 4px; font-size: 13px; color: var(--fx-muted); }
.rewards-winner-card {
  display: inline-flex; align-items: center; gap: 14px;
  margin: 12px auto; padding: 14px 20px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04); border: 1px solid var(--fx-line);
}
.rewards-winner-image {
  width: 56px; height: 56px; display: flex; align-items: center; justify-content: center;
  font-size: 32px; border-radius: 10px; background: rgba(0, 0, 0, 0.3);
}
.rewards-winner-image img { width: 100%; height: 100%; object-fit: contain; }
.rewards-winner-information { text-align: left; }
.rewards-winner-information strong { display: block; font-size: 17px; color: #fff; }
.rewards-winner-information span { font-size: 13px; color: var(--fx-muted); }
.rewards-result-instructions { margin: 10px auto 16px; max-width: 46ch; font-size: 13px; color: var(--fx-muted); line-height: 1.5; }

.rewards-chat-button {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 26px; cursor: pointer;
  border: 0; border-radius: 12px; text-decoration: none;
  font-family: "Sora", sans-serif; font-size: 15px; font-weight: 800; color: #04141a; text-transform: uppercase;
  background: linear-gradient(135deg, #22d3ee, #0891b2);
  box-shadow: 0 14px 38px -16px rgba(34, 211, 238, 0.9);
  transition: transform .15s, filter .15s;
}
.rewards-chat-button:hover { transform: translateY(-2px); filter: brightness(1.07); }

/* =========================================================
   PRÉVIA (reel sempre visível quando ocioso)
========================================================= */
.rewards-preview-horizontal { margin-top: 2px; }
.rewards-preview-heading { display: none; } /* título fica na barra da máquina */
.rewards-preview-lock { display: none; }
.rewards-preview-actions {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  margin-top: 16px; text-align: center;
}
.rewards-preview-actions p { margin: 0; font-size: 13px; color: var(--fx-muted); }
.rewards-preview-actions small { font-size: 12px; color: var(--fx-faint); }
.rewards-buy-spin-button {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 26px; text-decoration: none; cursor: pointer;
  border: 0; border-radius: 12px;
  font-family: "Sora", sans-serif; font-size: 15px; font-weight: 800; color: #fff; text-transform: uppercase;
  background: linear-gradient(135deg, #7c3aed, #a855f7);
  box-shadow: 0 14px 38px -16px rgba(139, 92, 246, 0.9);
  transition: transform .15s, filter .15s;
}
.rewards-buy-spin-button:hover { transform: translateY(-2px); filter: brightness(1.07); }
.rewards-prizes-button { display: none; } /* substituído pela tabela de drop fixa */

/* =========================================================
   TABELA DE DROP (odds fixas) + COMO FUNCIONA
========================================================= */
.fx-section-title {
  display: flex; align-items: center; gap: 10px;
  margin: 40px 2px 16px;
  font-family: var(--fx-mono); font-size: 12px; letter-spacing: .16em; color: var(--fx-muted);
}
.fx-section-title::after { content: ""; flex: 1; height: 1px; background: var(--fx-line); }

.fx-drops { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.fx-drop {
  position: relative; padding: 16px 14px; border-radius: 12px;
  background: var(--fx-panel); border: 1px solid var(--fx-line);
  border-left: 3px solid var(--r-common);
  display: flex; flex-direction: column; gap: 6px;
}
.fx-drop[data-r="rare"]      { border-left-color: var(--r-rare); }
.fx-drop[data-r="epic"]      { border-left-color: var(--r-epic); }
.fx-drop[data-r="legendary"] { border-left-color: var(--r-legendary); }
.fx-drop__icon { font-size: 26px; }
.fx-drop__name { font-size: 14px; font-weight: 700; color: #fff; }
.fx-drop__desc { font-size: 12px; color: var(--fx-muted); }
.fx-drop__odds { margin-top: 4px; font-family: var(--fx-mono); font-size: 18px; font-weight: 700; color: #fff; }
.fx-drop__odds span { font-size: 11px; color: var(--fx-faint); font-weight: 500; }
.fx-drop__tag {
  position: absolute; top: 12px; right: 12px;
  font-family: var(--fx-mono); font-size: 9px; letter-spacing: .08em; text-transform: uppercase;
  padding: 3px 7px; border-radius: 5px; color: var(--fx-muted);
  background: rgba(255, 255, 255, 0.04); border: 1px solid var(--fx-line);
}

.rewards-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.rewards-step {
  display: flex; gap: 12px; padding: 16px;
  border-radius: 12px; background: var(--fx-panel); border: 1px solid var(--fx-line);
}
.rewards-step > span {
  flex-shrink: 0; width: 30px; height: 30px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--fx-mono); font-weight: 700; font-size: 14px; color: var(--fx-cyan);
  background: rgba(34, 211, 238, 0.1); border: 1px solid rgba(34, 211, 238, 0.28);
}
.rewards-step strong { display: block; font-size: 14px; color: #fff; margin-bottom: 3px; }
.rewards-step p { margin: 0; font-size: 13px; color: var(--fx-muted); line-height: 1.45; }

/* aviso */
.rewards-warning {
  display: flex; align-items: center; gap: 12px;
  margin-top: 16px; padding: 14px 16px;
  border-radius: 12px; font-size: 13px; color: var(--fx-muted);
  background: rgba(251, 113, 133, 0.06); border: 1px solid rgba(251, 113, 133, 0.22);
}
.rewards-warning svg { flex-shrink: 0; color: #fb7185; }

/* esconder a seção de histórico (removida) */
.rewards-global-history { display: none !important; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* =========================================================
   RESPONSIVO
========================================================= */
@media (max-width: 860px) {
  .fx-drops { grid-template-columns: repeat(2, 1fr); }
  .rewards-steps { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .rewards-header { grid-template-columns: 1fr; align-items: start; }
  .fx-legend { justify-content: flex-start; }
  .rewards-wheel-viewport, .rewards-preview-viewport { height: 200px; }
  .rewards-prize-card { width: 128px; min-height: 150px; }
  .rewards-machine::after { inset: 6px; }
}

@media (prefers-reduced-motion: reduce) {
  .rewards-machine__live i { animation: none; }
}

/* =========================================================
   COPIAR RESUMO (tela de resgate)
========================================================= */
.fx-copybox {
  display: flex; align-items: stretch; gap: 8px;
  max-width: 440px; margin: 0 auto 16px;
  text-align: left;
}
.fx-copybox code {
  flex: 1; min-width: 0;
  display: flex; align-items: center;
  padding: 11px 14px;
  border-radius: 10px;
  font-family: var(--fx-mono); font-size: 12px; color: var(--fx-ink);
  background: rgba(0, 0, 0, 0.4); border: 1px solid var(--fx-line);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.fx-copybtn {
  flex-shrink: 0;
  display: inline-flex; align-items: center; gap: 7px;
  padding: 0 15px; cursor: pointer;
  border-radius: 10px; border: 1px solid rgba(34, 211, 238, 0.4);
  color: var(--fx-cyan); background: rgba(34, 211, 238, 0.1);
  font-family: "Sora", sans-serif; font-size: 13px; font-weight: 700;
  transition: background-color .2s, border-color .2s;
}
.fx-copybtn:hover { background: rgba(34, 211, 238, 0.18); border-color: rgba(34, 211, 238, 0.7); }
.fx-copybtn i { width: 15px; height: 15px; }

/* =========================================================
   CABEÇALHO DE SEÇÃO COM BOTÃO + HISTÓRICO LOCAL
========================================================= */
.fx-section-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; flex-wrap: wrap; margin: 40px 2px 16px;
}
.fx-section-head .fx-section-title { margin: 0; }
.fx-section-head .fx-section-title::after { display: none; }

.fx-ghost-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 15px; cursor: pointer;
  border-radius: 9px; border: 1px solid rgba(34, 211, 238, 0.35);
  color: var(--fx-cyan); background: rgba(34, 211, 238, 0.07);
  font-family: "Sora", sans-serif; font-size: 13px; font-weight: 700;
  transition: background-color .2s, border-color .2s, transform .15s;
}
.fx-ghost-btn:hover { background: rgba(34, 211, 238, 0.14); border-color: rgba(34, 211, 238, 0.6); transform: translateY(-1px); }
.fx-ghost-btn i { width: 16px; height: 16px; }

.fx-hist-panel { margin: 18px 0 8px; }
.fx-hist-panel[hidden] { display: none; }
.fx-hist-empty {
  margin: 0 0 10px; padding: 18px; text-align: center;
  font-size: 13px; color: var(--fx-muted);
  background: var(--fx-panel); border: 1px dashed var(--fx-line); border-radius: 12px;
}
.fx-hist-empty[hidden] { display: none; }
.fx-hist-list { display: grid; gap: 8px; }
.fx-hist-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 14px; border-radius: 10px;
  background: var(--fx-panel); border: 1px solid var(--fx-line);
  border-left: 3px solid var(--r-common);
}
.fx-hist-item.reward-rare      { border-left-color: var(--r-rare); }
.fx-hist-item.reward-epic      { border-left-color: var(--r-epic); }
.fx-hist-item.reward-legendary { border-left-color: var(--r-legendary); }
.fx-hist-item.reward-mythic    { border-left-color: var(--r-legendary); }
.fx-hist-icon {
  width: 40px; height: 40px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; border-radius: 9px; background: rgba(0, 0, 0, 0.3);
}
.fx-hist-info { flex: 1; min-width: 0; }
.fx-hist-info strong { display: block; font-size: 14px; color: #fff; }
.fx-hist-info span { font-size: 12px; color: var(--fx-muted); }
.fx-hist-time { flex-shrink: 0; font-family: var(--fx-mono); font-size: 11px; color: var(--fx-faint); }
.fx-hist-note { display: block; margin-top: 10px; font-size: 11px; color: var(--fx-faint); text-align: center; }

@media (max-width: 620px) {
  .fx-section-head { gap: 8px; }
  .fx-ghost-btn { font-size: 12px; padding: 8px 12px; }
}
