/* ========================================================
   BloxRewards - Estética Auténtica Roblox Dark UI
   ======================================================== */

:root {
  /* Paleta Oficial Roblox Dark Theme */
  --rbx-bg: #111215;
  --rbx-topbar: #191b1d;
  --rbx-card: #232527;
  --rbx-card-hover: #2b2e32;
  --rbx-border: #393b3d;
  --rbx-border-hover: #4e5256;

  /* Botones y Acentos Roblox */
  --rbx-green: #00b06f;
  --rbx-green-hover: #00c97e;
  --rbx-green-dark: #008754;
  --rbx-blue: #00a2ff;
  --rbx-blue-hover: #1fb1ff;
  --rbx-gold: #ffaa00;
  --rbx-red: #f04438;

  /* Texto */
  --text-primary: #ffffff;
  --text-secondary: #bdc3c7;
  --text-muted: #8b929a;

  /* Bordes y Geometría */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-pill: 9999px;

  --font-main: 'Montserrat', 'Plus Jakarta Sans', system-ui, sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

body.roblox-theme {
  font-family: var(--font-main);
  background-color: var(--rbx-bg);
  color: var(--text-primary);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  font-size: 14px;
  line-height: 1.45;
}

/* Canvas de partículas y chispas flotantes tipo RTX */
.ambient-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
}

/* Patrón de bloques/studs característico de Roblox */
.roblox-studs-bg {
  position: fixed;
  inset: 0;
  background-image: radial-gradient(circle at 16px 16px, rgba(255, 255, 255, 0.04) 4px, transparent 4.5px);
  background-size: 32px 32px;
  pointer-events: none;
  z-index: 0;
}

.bg-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(140px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.28;
  animation: floatOrb 12s ease-in-out infinite alternate;
}
.bg-glow-green {
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, var(--rbx-green) 0%, rgba(0, 176, 111, 0.2) 50%, transparent 70%);
  top: -120px;
  right: -80px;
}
.bg-glow-blue {
  width: 440px;
  height: 440px;
  background: radial-gradient(circle, var(--rbx-blue) 0%, rgba(0, 162, 255, 0.2) 50%, transparent 70%);
  bottom: 10%;
  left: -100px;
  animation-delay: -6s;
}

@keyframes floatOrb {
  0% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-40px) scale(1.12); }
  100% { transform: translateY(20px) scale(0.95); }
}

.container {
  width: 100%;
  max-width: 620px;
  margin: 0 auto;
  padding: 0 16px;
  position: relative;
  z-index: 1;
}

/* ========================================================
   Barra Superior Estilo Roblox con Efecto Glassmorphism
   ======================================================== */
.roblox-topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(25, 27, 29, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 2px solid rgba(57, 59, 61, 0.8);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6), 0 0 15px rgba(0, 176, 111, 0.12);
  padding: 10px 0;
}

.sound-toggle-btn {
  background: var(--rbx-card);
  border: 1px solid var(--rbx-border);
  border-radius: var(--radius-pill);
  padding: 5px 9px;
  font-size: 0.85rem;
  cursor: pointer;
  line-height: 1;
  color: #fff;
  transition: all 0.2s cubic-bezier(0.2, 0, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: center;
}
.sound-toggle-btn:hover {
  transform: scale(1.1);
  border-color: var(--rbx-green);
  box-shadow: 0 0 10px rgba(0, 176, 111, 0.4);
}
.sound-toggle-btn.muted {
  opacity: 0.45;
  filter: grayscale(1);
}

.nav-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Logo de Bloque Tilted (Inclinado) */
.roblox-block-logo {
  width: 30px;
  height: 30px;
  background: #ffffff;
  border-radius: 4px;
  transform: rotate(-12deg);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 10px rgba(255, 255, 255, 0.2);
  flex-shrink: 0;
  transition: transform 0.2s ease;
}
.roblox-block-logo:hover {
  transform: rotate(0deg) scale(1.08);
}
.roblox-block-logo .block-hole {
  width: 10px;
  height: 10px;
  background-color: var(--rbx-topbar);
  border-radius: 2px;
}
.roblox-block-logo.large {
  width: 50px;
  height: 50px;
  border-radius: 8px;
}
.roblox-block-logo.large .block-hole {
  width: 16px;
  height: 16px;
}
.roblox-block-logo.small {
  width: 22px;
  height: 22px;
  border-radius: 3px;
}
.roblox-block-logo.small .block-hole {
  width: 7px;
  height: 7px;
}

.brand-name {
  font-weight: 900;
  font-size: 1.25rem;
  letter-spacing: -0.5px;
  color: #ffffff;
}
.brand-name span {
  color: var(--rbx-green);
}

.user-stats {
  display: flex;
  align-items: center;
  gap: 8px;
}

.stat-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: var(--rbx-card);
  border: 1px solid var(--rbx-border);
  border-radius: var(--radius-pill);
  font-weight: 800;
  font-size: 0.85rem;
  transition: transform 0.15s ease, background-color 0.2s;
}
.lang-compact-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  background: var(--rbx-card);
  border: 1px solid var(--rbx-border);
  border-radius: var(--radius-pill);
  padding: 5px 8px;
  cursor: pointer;
  color: #fff;
  font-family: var(--font-main);
  font-weight: 800;
  font-size: 0.75rem;
  transition: all 0.2s cubic-bezier(0.2, 0, 0.2, 1);
}
.lang-compact-btn:hover {
  border-color: var(--rbx-green);
  transform: scale(1.05);
  box-shadow: 0 0 10px rgba(0, 176, 111, 0.3);
}
.lang-flag-svg {
  display: flex;
  align-items: center;
  line-height: 1;
}
.flag-icon {
  border-radius: 2px;
  box-shadow: 0 0 2px rgba(0,0,0,0.6);
  display: block;
}

/* Google Auth Header & User Profile Pill */
.auth-header-wrap {
  display: flex;
  align-items: center;
}
.google-auth-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #ffffff;
  color: #1f1f1f;
  border: none;
  border-radius: var(--radius-pill);
  padding: 5px 10px;
  font-family: var(--font-main);
  font-weight: 800;
  font-size: 0.75rem;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}
.google-auth-btn:hover {
  transform: scale(1.05);
  background: #f8fafc;
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.35);
}
.google-svg {
  flex-shrink: 0;
}
.user-profile-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--rbx-card);
  border: 1px solid var(--rbx-border);
  border-radius: var(--radius-pill);
  padding: 3px 8px 3px 4px;
}
.user-avatar-mini {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid var(--rbx-green);
}
.user-first-name {
  font-size: 0.75rem;
  font-weight: 800;
  color: #fff;
  max-width: 65px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.btn-logout-mini {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2px;
  border-radius: 50%;
  transition: color 0.15s;
}
.btn-logout-mini:hover {
  color: #ff4d4f;
}
.streak-pill {
  cursor: pointer;
  color: #ffc400;
  background: rgba(255, 170, 0, 0.12);
  border-color: rgba(255, 170, 0, 0.35);
}
.streak-pill:hover {
  transform: scale(1.04);
}

.robux-pill {
  color: #fff;
  border-color: rgba(0, 176, 111, 0.4);
  background: rgba(0, 176, 111, 0.12);
}

/* Icono Moneda Robux hexagonal/inclinada */
.robux-coin-icon {
  width: 18px;
  height: 18px;
  background: var(--rbx-green);
  border-radius: 3px;
  transform: rotate(45deg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 0 6px rgba(0, 176, 111, 0.6);
}
.coin-inner {
  width: 6px;
  height: 6px;
  background: var(--rbx-topbar);
  border-radius: 1px;
}

/* ========================================================
   Hero Banner Estilo Roblox
   ======================================================== */
.main-content {
  padding-top: 16px;
  padding-bottom: 70px;
}

.hero-banner-card {
  position: relative;
  background: var(--rbx-card);
  border: 2px solid var(--rbx-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 18px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5), 0 0 25px rgba(0, 176, 111, 0.12);
  transform-style: preserve-3d;
  transition: transform 0.15s cubic-bezier(0.2, 0, 0.2, 1), box-shadow 0.25s ease;
}
.hero-shimmer {
  position: absolute;
  top: -50%;
  left: -150%;
  width: 50%;
  height: 200%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.12) 35%,
    rgba(0, 255, 170, 0.3) 50%,
    rgba(255, 255, 255, 0.12) 65%,
    transparent 100%
  );
  transform: rotate(25deg);
  pointer-events: none;
  z-index: 5;
  animation: heroShine 5s infinite cubic-bezier(0.4, 0, 0.2, 1);
}
@keyframes heroShine {
  0% { left: -150%; }
  35%, 100% { left: 250%; }
}
.hero-banner-media {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  max-height: 220px;
  background: #1e1e24;
  overflow: hidden;
}
.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--rbx-card) 12%, rgba(25, 27, 29, 0.45) 60%, transparent 100%);
}
.hero-banner-content {
  position: relative;
  padding: 16px;
  margin-top: -30px;
  z-index: 2;
}
.hero-tag {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.5px;
  color: #00ffaa;
  background: rgba(0, 176, 111, 0.18);
  border: 1px solid rgba(0, 255, 170, 0.4);
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
  box-shadow: 0 0 10px rgba(0, 176, 111, 0.3);
}
.hero-banner-content h1 {
  font-size: 1.35rem;
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.4px;
  line-height: 1.25;
  margin-bottom: 6px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}
.hero-banner-content h1 span {
  color: var(--rbx-green);
  text-shadow: 0 0 15px rgba(0, 176, 111, 0.6);
}
.hero-banner-content p {
  font-size: 0.82rem;
  color: var(--text-secondary);
}

/* ========================================================
   Meta Actual / Progress Card (RTX Neon & Laser Progress)
   ======================================================== */
.goal-card {
  background: var(--rbx-card);
  border: 2px solid var(--rbx-border);
  border-radius: var(--radius-lg);
  padding: 16px;
  margin-bottom: 18px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
  position: relative;
  overflow: hidden;
  transition: transform 0.15s cubic-bezier(0.2, 0, 0.2, 1), box-shadow 0.25s ease;
}
.rtx-card {
  border: 2px solid transparent;
  background: linear-gradient(#1e2023, #1e2023) padding-box,
              linear-gradient(135deg, #00b06f 0%, #00a2ff 35%, #ffc400 70%, #00b06f 100%) border-box;
  background-size: 300% 300%;
  animation: neonBorderPulse 7s ease infinite;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5), 0 0 25px rgba(0, 176, 111, 0.2);
}
@keyframes neonBorderPulse {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.goal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}
.goal-badge {
  font-size: 0.72rem;
  font-weight: 800;
  color: #38bdf8;
  background: rgba(0, 162, 255, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.4);
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  box-shadow: 0 0 10px rgba(0, 162, 255, 0.25);
}
.goal-change-btn {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  text-decoration: underline;
  transition: all 0.15s;
}
.goal-change-btn:hover {
  color: #00ffaa;
  text-shadow: 0 0 8px rgba(0, 255, 170, 0.5);
}

.goal-body {
  display: flex;
  align-items: center;
  gap: 14px;
}

.gift-card-mini {
  width: 88px;
  aspect-ratio: 4/3;
  background: #18191c;
  border: 2px solid var(--rbx-border);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5);
  flex-shrink: 0;
}
.card-glass-sheen {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.25) 0%, rgba(255,255,255,0.04) 45%, transparent 60%);
  pointer-events: none;
}
.gc-img-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.goal-details {
  flex-grow: 1;
}
.goal-labels {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 6px;
}
.goal-progress-text {
  font-size: 0.8rem;
  color: var(--text-secondary);
  font-weight: 600;
}
.goal-percentage {
  font-weight: 900;
  font-size: 1.05rem;
  color: #00ff9d;
  text-shadow: 0 0 10px rgba(0, 255, 157, 0.5);
}

.progress-bar-bg {
  width: 100%;
  height: 15px;
  background: #101215;
  border: 2px solid #2d3035;
  border-radius: var(--radius-pill);
  position: relative;
  overflow: visible;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.8);
}
.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #008754, #00b06f 50%, #00ff9d 100%);
  border-radius: var(--radius-pill);
  position: relative;
  box-shadow: 0 0 14px rgba(0, 255, 157, 0.6);
  transition: width 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
  background-size: 24px 24px;
  background-image: repeating-linear-gradient(
    45deg,
    rgba(255, 255, 255, 0.22) 0,
    rgba(255, 255, 255, 0.22) 6px,
    transparent 6px,
    transparent 12px
  );
  animation: moveLaserStripes 1.2s linear infinite;
}
@keyframes moveLaserStripes {
  from { background-position: 0 0; }
  to { background-position: 24px 0; }
}
.progress-flare {
  position: absolute;
  right: -5px;
  top: 50%;
  transform: translateY(-50%);
  width: 12px;
  height: 12px;
  background: #ffffff;
  border-radius: 50%;
  box-shadow: 0 0 8px #00ff9d, 0 0 16px #00ff9d, 0 0 24px #ffffff;
  animation: flareSpark 0.8s ease-in-out infinite alternate;
}
@keyframes flareSpark {
  0% { transform: translateY(-50%) scale(0.9); opacity: 0.8; }
  100% { transform: translateY(-50%) scale(1.3); opacity: 1; filter: drop-shadow(0 0 4px #00ffaa); }
}

.progress-subtext {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 6px;
}
.progress-subtext span {
  color: #fff;
  font-weight: 800;
}

/* ========================================================
   Pestañas de Navegación Roblox
   ======================================================== */
.section-tabs {
  display: flex;
  background: var(--rbx-topbar);
  border: 2px solid var(--rbx-border);
  border-radius: var(--radius-md);
  padding: 4px;
  margin-bottom: 18px;
  gap: 4px;
}
.tab-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-main);
  font-weight: 800;
  font-size: 0.82rem;
  padding: 10px 4px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.15s ease;
}
.tab-btn.active {
  background: var(--rbx-card);
  color: #ffffff;
  border: 1px solid var(--rbx-border-hover);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.tab-pane {
  display: none;
}
.tab-pane.active {
  display: block;
  animation: fadeIn 0.25s ease;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

.section-heading {
  margin-bottom: 14px;
}
.section-heading h2 {
  font-size: 1.15rem;
  font-weight: 900;
  color: #ffffff;
}
.section-heading p {
  font-size: 0.82rem;
  color: var(--text-secondary);
}

/* ========================================================
   Grilla de Tareas / Enlaces
   ======================================================== */
.tasks-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.task-card {
  background: var(--rbx-card);
  border: 2px solid var(--rbx-border);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  transition: transform 0.15s, border-color 0.15s, background-color 0.15s;
}
.task-card:hover {
  background: var(--rbx-card-hover);
  border-color: var(--rbx-border-hover);
  transform: translateY(-2px);
}
.task-card.completed {
  opacity: 0.55;
  border-color: rgba(0, 176, 111, 0.4);
}

.task-left {
  display: flex;
  align-items: center;
  gap: 12px;
}
.task-icon-box {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  background: #18191c;
  border: 1px solid var(--rbx-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}
.task-info h4 {
  font-size: 0.92rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 3px;
}
.task-tags {
  display: flex;
  align-items: center;
  gap: 6px;
}
.task-tag {
  font-size: 0.65rem;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 800;
  background: #18191c;
  color: var(--text-muted);
}
.tag-hot {
  background: rgba(240, 68, 56, 0.15);
  color: #f87171;
  border: 1px solid rgba(240, 68, 56, 0.3);
}
.tag-easy {
  background: rgba(0, 176, 111, 0.15);
  color: #34d399;
  border: 1px solid rgba(0, 176, 111, 0.3);
}

.task-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}
.task-reward-pill {
  font-weight: 900;
  font-size: 0.88rem;
  color: var(--rbx-green);
}

/* Botón Roblox Verde Oficial con Tactilidad 3D */
.roblox-btn {
  font-family: var(--font-main);
  font-weight: 900;
  border: none;
  cursor: pointer;
  border-radius: var(--radius-sm);
  padding: 9px 16px;
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  transition: all 0.12s cubic-bezier(0.2, 0, 0.2, 1);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}
.roblox-btn-green {
  background: linear-gradient(180deg, #02c87e 0%, #00b06f 100%);
  color: #ffffff;
  border-bottom: 4px solid #007849;
  box-shadow: 0 4px 14px rgba(0, 176, 111, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}
.roblox-btn-green:hover {
  background: linear-gradient(180deg, #05e38f 0%, #00c97e 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 255, 157, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.6);
}
.roblox-btn-green:active {
  transform: translateY(3px);
  border-bottom-width: 1px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.6), inset 0 2px 4px rgba(0, 0, 0, 0.25);
}

.btn-task {
  background: linear-gradient(180deg, #02c87e 0%, #00b06f 100%);
  color: #ffffff;
  border: none;
  border-bottom: 4px solid #007849;
  font-family: var(--font-main);
  font-size: 0.8rem;
  font-weight: 900;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 176, 111, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.4);
  transition: all 0.12s cubic-bezier(0.2, 0, 0.2, 1);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}
.btn-task:hover:not(:disabled) {
  background: linear-gradient(180deg, #05e38f 0%, #00c97e 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 255, 157, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.6);
}
.btn-task:active:not(:disabled) {
  transform: translateY(3px);
  border-bottom-width: 1px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.6), inset 0 2px 4px rgba(0, 0, 0, 0.25);
}
.btn-task.verifying {
  background: #2b2e32;
  border: 1px solid var(--rbx-gold);
  border-bottom: 1px solid var(--rbx-gold);
  color: var(--rbx-gold);
  cursor: wait;
  box-shadow: 0 0 10px rgba(255, 170, 0, 0.3);
}

/* ========================================================
   Efectos 3D Tilt y Glare Sheen
   ======================================================== */
.tilt-card {
  transform-style: preserve-3d;
  will-change: transform;
  position: relative;
}
.card-sheen {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(
    circle 180px at var(--mouse-x, 50%) var(--mouse-y, 50%),
    rgba(255, 255, 255, 0.18) 0%,
    transparent 80%
  );
  mix-blend-mode: overlay;
  z-index: 10;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.tilt-card:hover .card-sheen,
.reward-item:hover .card-sheen {
  opacity: 1;
}

/* ========================================================
   Catálogo de Recompensas (Tarjetas Coleccionables Roblox)
   ======================================================== */
.rewards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 12px;
}
.reward-item {
  background: var(--rbx-card);
  border: 2px solid var(--rbx-border);
  border-radius: var(--radius-md);
  padding: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: transform 0.2s cubic-bezier(0.2, 0, 0.2, 1), box-shadow 0.2s ease, border-color 0.2s ease;
  position: relative;
  overflow: hidden;
  transform-style: preserve-3d;
  cursor: pointer;
}
.reward-item:hover {
  background: var(--rbx-card-hover);
  border-color: #00b06f;
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.55), 0 0 20px rgba(0, 176, 111, 0.3);
}
.reward-item.selected-goal {
  border-color: #00ff9d;
  box-shadow: 0 0 22px rgba(0, 255, 157, 0.35);
  background: rgba(0, 176, 111, 0.08);
}

.reward-card-visual {
  width: 100%;
  aspect-ratio: 4/3;
  background: #18191c;
  border: 2px solid var(--rbx-border);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5);
}
.rc-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}
.reward-item:hover .rc-img {
  transform: scale(1.04);
}

.reward-info {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.reward-cost {
  font-size: 0.98rem;
  color: #00ff9d;
  font-weight: 900;
  margin-bottom: 10px;
  text-shadow: 0 0 10px rgba(0, 255, 157, 0.4);
}

.btn-redeem {
  width: 100%;
  padding: 8px 10px;
  background: #191b1d;
  border: 2px solid var(--rbx-border);
  color: #fff;
  font-weight: 800;
  font-size: 0.78rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.15s cubic-bezier(0.2, 0, 0.2, 1);
}
.btn-redeem:hover {
  border-color: var(--rbx-border-hover);
  color: #00ffaa;
}
.btn-redeem.ready {
  background: linear-gradient(180deg, #02c87e 0%, #00b06f 100%);
  border: none;
  border-bottom: 4px solid #007849;
  box-shadow: 0 4px 16px rgba(0, 255, 157, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.4);
  animation: pulseButtonReady 2s infinite alternate;
}
.btn-redeem.ready:hover {
  background: linear-gradient(180deg, #05e38f 0%, #00c97e 100%);
  transform: translateY(-2px);
}
.btn-redeem.ready:active {
  transform: translateY(3px);
  border-bottom-width: 1px;
}
@keyframes pulseButtonReady {
  0% { box-shadow: 0 4px 14px rgba(0, 176, 111, 0.4); }
  100% { box-shadow: 0 4px 24px rgba(0, 255, 157, 0.75); }
}

/* Dopamina: Animación de explosión en contador de gemas */
.gem-burst {
  animation: gemPop 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
@keyframes gemPop {
  0% { transform: scale(1); filter: brightness(1); }
  40% { transform: scale(1.35) rotate(6deg); filter: brightness(1.8) drop-shadow(0 0 10px #00ff9d); color: #00ff9d; }
  70% { transform: scale(0.95); }
  100% { transform: scale(1); filter: brightness(1); }
}

/* ========================================================
   Mis Canjes (Órdenes)
   ======================================================== */
.orders-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.empty-state {
  text-align: center;
  padding: 36px 20px;
  background: var(--rbx-card);
  border: 2px dashed var(--rbx-border);
  border-radius: var(--radius-md);
}
.empty-icon {
  font-size: 2.2rem;
  margin-bottom: 8px;
}
.empty-state p {
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 4px;
}
.empty-sub {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.order-card {
  background: var(--rbx-card);
  border: 2px solid var(--rbx-border);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.order-left h4 {
  font-size: 0.95rem;
  color: #fff;
  font-weight: 800;
}
.order-id {
  font-size: 0.75rem;
  color: var(--text-muted);
}
.order-status {
  font-size: 0.72rem;
  font-weight: 800;
  padding: 4px 8px;
  border-radius: var(--radius-pill);
}
.status-pending {
  background: rgba(255, 170, 0, 0.15);
  color: #ffc400;
  border: 1px solid rgba(255, 170, 0, 0.35);
}

/* ========================================================
   Explicativo Pasos
   ======================================================== */
.how-it-works {
  margin-top: 32px;
  padding: 18px;
  background: var(--rbx-card);
  border: 2px solid var(--rbx-border);
  border-radius: var(--radius-lg);
}
.how-it-works h3 {
  font-size: 1rem;
  font-weight: 900;
  margin-bottom: 14px;
  color: #ffffff;
}
.steps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
@media (min-width: 500px) {
  .steps-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
.step-card {
  background: #18191c;
  border: 1px solid var(--rbx-border);
  padding: 12px;
  border-radius: var(--radius-sm);
  transition: transform 0.2s;
}
.step-card:hover {
  transform: translateY(-2px);
  border-color: var(--rbx-border-hover);
}
.step-num {
  width: 24px;
  height: 24px;
  border-radius: 4px;
  background: var(--rbx-green);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 900;
  margin-bottom: 8px;
  box-shadow: 0 0 8px rgba(0, 176, 111, 0.5);
}
.step-card h4 {
  font-size: 0.85rem;
  font-weight: 800;
  margin-bottom: 4px;
  color: #ffffff;
}
.step-card p {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

/* ========================================================
   Modales
   ======================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 16px;
}
.modal-backdrop.show {
  display: flex;
  animation: modalFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes modalFadeIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}
.roblox-modal {
  width: 100%;
  max-width: 440px;
  background: var(--rbx-topbar);
  border: 2px solid var(--rbx-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  position: relative;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.8), 0 0 25px rgba(0, 176, 111, 0.15);
}
.modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.6rem;
  cursor: pointer;
  transition: color 0.15s;
}
.modal-close:hover {
  color: #ffffff;
}
.modal-header {
  text-align: center;
  margin-bottom: 18px;
}
.modal-icon {
  display: flex;
  justify-content: center;
  margin-bottom: 8px;
}
.modal-header h3 {
  font-size: 1.2rem;
  font-weight: 900;
  color: #fff;
}
.modal-desc {
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.modal-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.form-group label {
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--text-primary);
}
.form-group input {
  background: #111215;
  border: 2px solid var(--rbx-border);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  color: #ffffff;
  font-family: var(--font-main);
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.form-group input:focus {
  border-color: var(--rbx-green);
  box-shadow: 0 0 10px rgba(0, 176, 111, 0.3);
}
.input-hint {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.redeem-summary {
  background: #18191c;
  border: 1px solid var(--rbx-border);
  border-radius: var(--radius-sm);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
}
.summary-row .highlight {
  font-weight: 900;
  color: var(--rbx-green);
}

.redeem-auth-gate {
  text-align: center;
  padding: 16px 14px;
  background: rgba(18, 20, 24, 0.75);
  border: 1.5px solid var(--rbx-border);
  border-radius: var(--radius-md);
  margin-bottom: 14px;
}
.auth-gate-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(0, 176, 111, 0.14);
  border: 1px solid var(--rbx-green);
  color: var(--rbx-green);
  font-size: 0.68rem;
  font-weight: 900;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  margin-bottom: 12px;
  text-transform: uppercase;
}
.redeem-auth-gate h4 {
  font-size: 1.05rem;
  font-weight: 900;
  color: #fff;
  margin-bottom: 6px;
}
.redeem-auth-gate p {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 16px;
}
.google-gate-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  background: #ffffff;
  color: #1f1f1f;
  border: none;
  border-radius: 8px;
  padding: 12px 16px;
  font-family: var(--font-main);
  font-weight: 800;
  font-size: 0.92rem;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}
.google-gate-btn:hover {
  transform: translateY(-2px);
  background: #f1f5f9;
  box-shadow: 0 6px 20px rgba(255, 255, 255, 0.2);
}
.google-gate-btn:active {
  transform: translateY(1px);
}

.verified-account-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(0, 176, 111, 0.1);
  border: 1px solid rgba(0, 176, 111, 0.35);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  margin-bottom: 12px;
}
.verified-avatar-img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid var(--rbx-green);
}
.verified-meta {
  display: flex;
  flex-direction: column;
  text-align: left;
}
.verified-status-tag {
  font-size: 0.65rem;
  font-weight: 900;
  color: var(--rbx-green);
  text-transform: uppercase;
}
.verified-email-text {
  font-size: 0.8rem;
  color: #ffffff;
  word-break: break-all;
}

.modal-status-msg {
  font-size: 0.8rem;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  display: none;
}
.modal-status-msg.error {
  display: block;
  background: rgba(240, 68, 56, 0.15);
  border: 1px solid rgba(240, 68, 56, 0.35);
  color: #fca5a5;
}
.modal-status-msg.success {
  display: block;
  background: rgba(0, 176, 111, 0.15);
  border: 1px solid rgba(0, 176, 111, 0.35);
  color: #6ee7b7;
}

.btn-block {
  width: 100%;
}

/* Modal Racha */
.streak-reward-amount {
  text-align: center;
  padding: 16px;
  background: rgba(255, 170, 0, 0.1);
  border: 1px solid rgba(255, 170, 0, 0.3);
  border-radius: var(--radius-md);
  margin-bottom: 14px;
}
.bonus-num {
  font-weight: 900;
  font-size: 2.4rem;
  color: #ffc400;
  display: block;
  text-shadow: 0 0 15px rgba(255, 196, 0, 0.5);
  animation: pulseBonus 1.5s ease-in-out infinite alternate;
}
@keyframes pulseBonus {
  from { transform: scale(1); }
  to { transform: scale(1.08); }
}
.bonus-unit {
  font-size: 0.85rem;
  color: #fde68a;
}
.streak-timer {
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

/* ========================================================
   Notificaciones Flotantes / Social Proof
   ======================================================== */
.live-toast {
  position: fixed;
  bottom: 20px;
  left: 20px;
  background: var(--rbx-card);
  border: 2px solid var(--rbx-border);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6), 0 0 12px rgba(0, 176, 111, 0.2);
  padding: 10px 14px;
  border-radius: var(--radius-pill);
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 150;
  transform: translateY(120%);
  opacity: 0;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s ease;
  pointer-events: none;
}
.live-toast.show {
  transform: translateY(0);
  opacity: 1;
}
.toast-info {
  display: flex;
  flex-direction: column;
  font-size: 0.75rem;
}
.toast-info strong {
  color: #ffffff;
}
.toast-info span {
  color: var(--rbx-green);
}
.toast-time {
  font-size: 0.65rem;
  color: var(--text-muted);
  margin-left: 6px;
}

/* ========================================================
   Footer
   ======================================================== */
.roblox-footer {
  border-top: 2px solid var(--rbx-border);
  padding: 24px 0;
  background: var(--rbx-topbar);
}
.disclaimer {
  font-size: 0.7rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 10px;
}
.copyright {
  font-size: 0.72rem;
  color: var(--text-secondary);
}

/* ========================================================
   Insignias de Racha (Streak Milestones RTX)
   ======================================================== */
.badges-card {
  background: var(--rbx-card);
  border: 2px solid var(--rbx-border);
  border-radius: var(--radius-lg);
  padding: 16px;
  margin-bottom: 18px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
  position: relative;
  overflow: hidden;
}
.badges-header {
  margin-bottom: 12px;
}
.badges-header h3 {
  font-size: 0.95rem;
  font-weight: 900;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 6px;
}
.badges-sub {
  font-size: 0.72rem;
  color: var(--text-muted);
}
.badges-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.badge-item {
  background: #18191c;
  border: 2px solid var(--rbx-border);
  border-radius: var(--radius-md);
  padding: 12px 6px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: all 0.25s cubic-bezier(0.2, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  transform-style: preserve-3d;
}
.badge-item:hover {
  transform: translateY(-4px);
  border-color: var(--rbx-border-hover);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.5);
}
.badge-item.unlocked {
  border-color: #ffaa00;
  background: linear-gradient(180deg, rgba(255, 170, 0, 0.14) 0%, rgba(255, 170, 0, 0.03) 100%);
  box-shadow: 0 0 16px rgba(255, 170, 0, 0.35);
  animation: glowPulse 2.5s infinite alternate;
}
@keyframes glowPulse {
  from { box-shadow: 0 0 8px rgba(255, 170, 0, 0.25); border-color: rgba(255, 170, 0, 0.6); }
  to { box-shadow: 0 0 20px rgba(255, 170, 0, 0.55); border-color: #ffc400; }
}
.badge-icon {
  font-size: 2rem;
  margin-bottom: 4px;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.6));
  animation: floatSlow 3s ease-in-out infinite alternate;
}
@keyframes floatSlow {
  0% { transform: translateY(0) rotate(-2deg); }
  100% { transform: translateY(-5px) rotate(2deg); }
}
.badge-title {
  font-size: 0.75rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 2px;
}
.badge-reward {
  font-size: 0.72rem;
  font-weight: 900;
  color: #00ff9d;
  margin-bottom: 6px;
  text-shadow: 0 0 6px rgba(0, 255, 157, 0.4);
}
.btn-badge-claim {
  background: linear-gradient(180deg, #02c87e 0%, #00b06f 100%);
  border: none;
  border-bottom: 3px solid #007849;
  color: #fff;
  font-size: 0.68rem;
  font-weight: 900;
  padding: 5px 10px;
  border-radius: 4px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 176, 111, 0.4);
  transition: all 0.12s;
}
.btn-badge-claim:hover {
  background: linear-gradient(180deg, #05e38f 0%, #00c97e 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 255, 157, 0.5);
}
.btn-badge-claim:active {
  transform: translateY(2px);
  border-bottom-width: 1px;
}
.badge-status-tag {
  font-size: 0.62rem;
  color: var(--text-muted);
  font-weight: 700;
}

/* ========================================================
   Utilidades SVG y Estados
   ======================================================== */
.svg-icon {
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
}
.inline-svg {
  margin-right: 5px;
}
.hidden {
  display: none !important;
}
.svg-badge-medal {
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.5));
  animation: floatSlow 3s ease-in-out infinite alternate;
  margin-bottom: 6px;
}

/* ========================================================
   Responsive Media Queries (Solución Definitiva Barra Móvil)
   ======================================================== */
@media (max-width: 580px) {
  .roblox-topbar {
    padding: 6px 0;
  }
  .container {
    padding: 0 8px;
  }
  .nav-content {
    gap: 4px;
    flex-wrap: nowrap;
    width: 100%;
    justify-content: space-between;
  }
  .brand {
    gap: 5px;
    flex-shrink: 0;
  }
  .brand-name {
    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: -0.3px;
    white-space: nowrap;
  }
  .roblox-block-logo {
    width: 22px;
    height: 22px;
  }
  .roblox-block-logo .block-hole {
    width: 7px;
    height: 7px;
  }
  .user-stats {
    gap: 4px;
    flex-shrink: 0;
    align-items: center;
    display: flex;
  }
  .stat-pill {
    height: 28px;
    padding: 0 7px;
    font-size: 0.76rem;
    gap: 3px;
    flex-shrink: 0;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
  }
  .streak-pill {
    min-width: unset;
    padding: 0 6px;
  }
  .robux-pill {
    padding: 0 7px;
  }
  .sound-toggle-btn {
    width: 28px;
    height: 28px;
    min-width: 28px;
    padding: 0;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
  }
  .lang-compact-btn {
    height: 28px;
    padding: 0 5px;
    gap: 3px;
    font-size: 0.72rem;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
  }
  /* En celular oculta el texto "Sign in" para mostrar el icono circular limpio de Google */
  .auth-btn-label {
    display: none;
  }
  .auth-header-wrap {
    flex-shrink: 0;
    display: flex;
    align-items: center;
  }
  .google-auth-btn {
    width: 28px;
    height: 28px;
    min-width: 28px;
    padding: 0;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
  }
  /* En celular muestra el avatar del usuario conectado en 20px */
  .user-first-name {
    display: none;
  }
  .user-profile-pill {
    height: 28px;
    padding: 0 4px;
    gap: 3px;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
  }
  .user-avatar-mini {
    width: 20px;
    height: 20px;
  }
  .btn-logout-mini {
    width: 18px;
    height: 18px;
    padding: 0;
  }
  .hero-banner-content h1 {
    font-size: 1.35rem;
  }
  .badges-grid {
    gap: 6px;
  }
  .badge-item {
    padding: 10px 4px;
  }
}

/* En teléfonos hasta 480px, compactar el nombre de marca a "Blox" para garantizar espacio total a los botones */
@media (max-width: 480px) {
  .brand-name span {
    display: none;
  }
}

/* En teléfonos muy angostos (360px o menos), micro-ajuste de espaciado */
@media (max-width: 360px) {
  .container {
    padding: 0 4px;
  }
  .user-stats {
    gap: 2.5px;
  }
  .stat-pill {
    height: 26px;
    padding: 0 5px;
    font-size: 0.72rem;
  }
  .sound-toggle-btn,
  .google-auth-btn {
    width: 26px;
    height: 26px;
    min-width: 26px;
  }
  .lang-compact-btn {
    height: 26px;
    padding: 0 4px;
  }
}

