/* ═══════════════════════════════════════════════════════════
   SUGARMATCH V3 — Sistema de Diseño
   "The Game of Desire" — Dark Luxury Gamified
   Mobile-first. Adictivo. Viral.
   ═══════════════════════════════════════════════════════════ */

:root {
  /* ── Fondos ── */
  --bg-deep:      #08080F;
  --bg-card:      #101020;
  --bg-elevated:  #181828;
  --bg-glass:     rgba(255,255,255,0.04);

  /* ── Gold (SC, CTAs, Status) ── */
  --gold:         #F0C040;
  --gold-bright:  #FFD54F;
  --gold-dim:     rgba(240,192,64,0.12);
  --gold-border:  rgba(240,192,64,0.22);
  --gold-glow:    0 0 24px rgba(240,192,64,0.35);

  /* ── Rose (Damas, Deseo, Regalos) ── */
  --rose:         #FF3E7F;
  --rose-dim:     rgba(255,62,127,0.1);
  --rose-border:  rgba(255,62,127,0.25);
  --rose-glow:    0 0 24px rgba(255,62,127,0.3);

  /* ── Purple (Exclusividad, Élite) ── */
  --purple:       #9F7AEA;
  --purple-dim:   rgba(159,122,234,0.1);

  /* ── Semánticos ── */
  --success:      #22C55E;
  --warning:      #F59E0B;
  --fire:         #FF6320;

  /* ── Texto ── */
  --text-1:       #F0F0FF;
  --text-2:       #8888AA;
  --text-3:       #44445A;

  /* ── Layout ── */
  --topbar-h:     56px;
  --bottomnav-h:  68px;
  --r-sm:         10px;
  --r-md:         16px;
  --r-lg:         24px;
  --r-pill:       100px;

  /* ── Sombras ── */
  --shadow-card:  0 4px 24px rgba(0,0,0,0.5);
}

/* ──────────────────────────────────
   RESET & BASE
   ────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  background: var(--bg-deep);
  color: var(--text-1);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
  min-height: 100dvh;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* ──────────────────────────────────
   TIPOGRAFÍA
   ────────────────────────────────── */
.v3-h1 {
  font-size: clamp(2.2rem, 9vw, 5rem);
  font-weight: 900;
  line-height: 1.04;
  letter-spacing: -0.025em;
}
.v3-h2 {
  font-size: clamp(1.5rem, 5vw, 2.8rem);
  font-weight: 800;
  line-height: 1.1;
}
.v3-h3 { font-size: 1.15rem; font-weight: 700; }
.v3-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-2);
}
.v3-gold   { color: var(--gold); }
.v3-rose   { color: var(--rose); }
.v3-purple { color: var(--purple); }
.v3-muted  { color: var(--text-2); }

/* ──────────────────────────────────
   BOTONES
   ────────────────────────────────── */
.v3-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0.85rem 1.8rem;
  border-radius: var(--r-pill);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  text-decoration: none;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
}
.v3-btn:active { transform: scale(0.97); }
.v3-btn-gold {
  background: linear-gradient(135deg, var(--gold-bright) 0%, #C8940A 100%);
  color: #08080F;
  box-shadow: var(--gold-glow);
}
.v3-btn-gold:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(240,192,64,0.5); }
.v3-btn-rose {
  background: linear-gradient(135deg, #FF3E7F 0%, #AA0040 100%);
  color: #fff;
  box-shadow: var(--rose-glow);
}
.v3-btn-rose:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(255,62,127,0.5); }
.v3-btn-ghost {
  background: transparent;
  border: 1px solid var(--gold-border);
  color: var(--gold);
}
.v3-btn-ghost:hover { background: var(--gold-dim); }
.v3-btn-dark {
  background: var(--bg-elevated);
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--text-1);
}
.v3-btn-full { width: 100%; }
.v3-btn-lg { padding: 1rem 2.2rem; font-size: 1.05rem; }
.v3-btn-sm { padding: 0.55rem 1.2rem; font-size: 0.82rem; }

/* ──────────────────────────────────
   CARDS
   ────────────────────────────────── */
.v3-card {
  background: var(--bg-card);
  border: 1px solid var(--gold-border);
  border-radius: var(--r-md);
  padding: 1.4rem;
}
.v3-card-glass {
  background: rgba(16,16,32,0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--r-md);
}

/* ──────────────────────────────────
   BADGES / PILLS
   ────────────────────────────────── */
.v3-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 11px;
  border-radius: var(--r-pill);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}
.v3-badge-gold   { background: var(--gold-dim);   color: var(--gold);   border: 1px solid var(--gold-border); }
.v3-badge-rose   { background: var(--rose-dim);   color: var(--rose);   border: 1px solid var(--rose-border); }
.v3-badge-purple { background: var(--purple-dim); color: var(--purple); border: 1px solid rgba(159,122,234,0.25); }
.v3-badge-fire   { background: rgba(255,99,32,.12); color: var(--fire);  border: 1px solid rgba(255,99,32,.25); }
.v3-badge-green  { background: rgba(34,197,94,.1);  color: var(--success);border: 1px solid rgba(34,197,94,.25); }

/* ──────────────────────────────────
   INPUTS
   ────────────────────────────────── */
.v3-input {
  width: 100%;
  background: var(--bg-elevated);
  border: 1.5px solid rgba(255,255,255,0.08);
  border-radius: var(--r-md);
  padding: 0.9rem 1.1rem;
  color: var(--text-1);
  font-size: 1rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s;
}
.v3-input:focus { border-color: var(--gold); }
.v3-input::placeholder { color: var(--text-3); }
.v3-input-label { font-size: 0.78rem; font-weight: 600; color: var(--text-2); margin-bottom: 6px; display: block; }
.v3-input-group { display: flex; flex-direction: column; }

/* ──────────────────────────────────
   LIVE DOT
   ────────────────────────────────── */
.v3-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--success);
}
.v3-live::before {
  content: '';
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--success);
  animation: v3-blink 1.5s infinite;
  flex-shrink: 0;
}
@keyframes v3-blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.25; }
}

/* ──────────────────────────────────
   PROGRESS BAR
   ────────────────────────────────── */
.v3-progress {
  height: 6px;
  background: rgba(255,255,255,0.07);
  border-radius: var(--r-pill);
  overflow: hidden;
}
.v3-progress-fill {
  height: 100%;
  border-radius: var(--r-pill);
  background: linear-gradient(90deg, var(--gold) 0%, var(--gold-bright) 100%);
  transition: width 0.7s ease;
}
.v3-progress-fill.rose {
  background: linear-gradient(90deg, var(--rose) 0%, #FF85AF 100%);
}

/* ══════════════════════════════════════════════════════════
   LANDING PÚBLICO — Navbar transparente
   ══════════════════════════════════════════════════════════ */
.v3-pub-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--topbar-h);
  background: linear-gradient(to bottom, rgba(8,8,15,0.9), transparent);
  display: flex;
  align-items: center;
  padding: 0 1.25rem;
  z-index: 900;
  justify-content: space-between;
  gap: 12px;
}
.v3-pub-logo {
  font-size: 1.05rem;
  font-weight: 900;
  color: var(--gold);
  letter-spacing: 0.12em;
  display: flex;
  align-items: center;
  gap: 6px;
}
.v3-pub-logo img { height: 28px; }
.v3-pub-nav-actions { display: flex; gap: 10px; align-items: center; }
.v3-lang-select {
  background: transparent;
  border: 1px solid var(--gold-border);
  color: var(--text-2);
  border-radius: var(--r-pill);
  padding: 4px 10px;
  font-size: 0.75rem;
  font-weight: 700;
  outline: none;
  cursor: pointer;
}
.v3-lang-select option { background: #111; color: white; }

/* ──────────────────────────────────
   HERO LANDING
   ────────────────────────────────── */
.v3-hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
}
.v3-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 20%;
}
.v3-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(8,8,15,0.25) 0%,
    rgba(8,8,15,0.05) 25%,
    rgba(8,8,15,0.55) 60%,
    rgba(8,8,15,0.97) 100%
  );
}
.v3-hero-content {
  position: relative;
  z-index: 2;
  padding: 2rem 1.4rem 3rem;
}

/* Floating notification bubbles */
.v3-bubble {
  position: absolute;
  z-index: 3;
  background: rgba(12,12,24,0.88);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 14px;
  padding: 10px 14px;
  font-size: 0.8rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  animation: v3-bubble-in 0.5s ease both;
  box-shadow: var(--shadow-card);
}
.v3-bubble-icon { font-size: 1.1rem; }
@keyframes v3-bubble-in {
  from { opacity: 0; transform: translateY(12px) scale(0.93); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.v3-bubble.b1 { top: 18%; right: 4%; animation-delay: 0.4s; }
.v3-bubble.b2 { top: 36%; right: 3%; animation-delay: 0.9s; }
.v3-bubble.b3 { top: 55%; right: 5%; animation-delay: 1.4s; }

/* Hero stats row */
.v3-hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 1.4rem;
}

/* How-it-works 3 steps */
.v3-steps {
  display: grid;
  gap: 12px;
  padding: 0 1.2rem;
}
@media (min-width: 600px) { .v3-steps { grid-template-columns: repeat(3,1fr); } }
.v3-step {
  background: var(--bg-card);
  border: 1px solid var(--gold-border);
  border-radius: var(--r-md);
  padding: 1.4rem 1.2rem;
}
.v3-step-num {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--gold-dim);
  border: 1px solid var(--gold-border);
  display: flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: 1rem; color: var(--gold);
  margin-bottom: 0.9rem;
}
.v3-step-icon { font-size: 1.6rem; margin-bottom: 0.8rem; }

/* SC Packages (landing) */
.v3-packages {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  padding: 0 1.2rem;
}
@media (min-width: 640px) { .v3-packages { grid-template-columns: repeat(3, 1fr); } }
.v3-pkg {
  background: var(--bg-card);
  border: 1px solid var(--gold-border);
  border-radius: var(--r-md);
  padding: 1rem;
  text-align: center;
  transition: border-color 0.2s, transform 0.2s;
  cursor: pointer;
}
.v3-pkg:hover { border-color: var(--gold); transform: translateY(-3px); }
.v3-pkg.featured {
  border-color: var(--gold);
  background: linear-gradient(135deg, rgba(240,192,64,0.08), var(--bg-card));
  box-shadow: var(--gold-glow);
}
.v3-pkg-name  { font-size: 0.72rem; font-weight: 700; color: var(--text-2); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 4px; }
.v3-pkg-coins { font-size: 1.5rem; font-weight: 900; color: var(--gold); line-height: 1; }
.v3-pkg-unit  { font-size: 0.65rem; font-weight: 600; color: var(--text-2); margin-bottom: 6px; }
.v3-pkg-price { font-size: 0.95rem; font-weight: 800; color: var(--text-1); }
.v3-pkg-bonus { font-size: 0.68rem; font-weight: 700; color: var(--success); margin-top: 3px; }

/* Divider */
.v3-divider {
  display: flex; align-items: center; gap: 12px;
  color: var(--text-3); font-size: 0.78rem;
}
.v3-divider::before, .v3-divider::after {
  content: ''; flex: 1; height: 1px;
  background: rgba(255,255,255,0.07);
}

/* Section layout */
.v3-section { padding: 0 1.2rem; }
.v3-section-hdr {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}
.v3-section-title { font-size: 1rem; font-weight: 800; }
.v3-section-link  { font-size: 0.78rem; font-weight: 600; color: var(--gold); }
.v3-py { padding-top: 3rem; padding-bottom: 3rem; }
.v3-py-sm { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.v3-gap-sm { display: flex; flex-direction: column; gap: 0.75rem; }
.v3-gap-md { display: flex; flex-direction: column; gap: 1.2rem; }
.v3-center { text-align: center; }

/* ══════════════════════════════════════════════════════════
   APP (AUTENTICADO) — Topbar + Bottom Nav
   ══════════════════════════════════════════════════════════ */

/* Slim topbar */
.v3-topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--topbar-h);
  background: rgba(8,8,15,0.96);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  padding: 0 1rem;
  z-index: 900;
  gap: 10px;
}
.v3-topbar-logo { height: 26px; object-fit: contain; }
.v3-topbar-logo-text {
  font-size: 1rem;
  font-weight: 900;
  color: var(--gold);
  letter-spacing: 0.1em;
}
.v3-topbar-spacer { flex: 1; }
.v3-topbar-live {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--success);
  display: flex;
  align-items: center;
  gap: 5px;
}
.v3-topbar-live::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--success);
  animation: v3-blink 1.5s infinite;
}

/* SC Pill en topbar */
.v3-sc-pill {
  display: flex;
  align-items: center;
  gap: 5px;
  background: var(--gold-dim);
  border: 1px solid var(--gold-border);
  border-radius: var(--r-pill);
  padding: 5px 12px;
  font-weight: 800;
  font-size: 0.88rem;
  color: var(--gold);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.v3-sc-pill:hover { background: rgba(240,192,64,0.18); }

/* Streak Pill en topbar */
.v3-streak-pill {
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(255,99,32,0.1);
  border: 1px solid rgba(255,99,32,0.22);
  border-radius: var(--r-pill);
  padding: 5px 10px;
  font-weight: 800;
  font-size: 0.85rem;
  color: var(--fire);
}

/* Bottom Navigation */
.v3-bottom-nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: var(--bottomnav-h);
  background: rgba(8,8,15,0.97);
  backdrop-filter: blur(24px);
  border-top: 1px solid rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  justify-content: space-around;
  z-index: 900;
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
.v3-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  text-decoration: none;
  color: var(--text-3);
  transition: color 0.2s;
  flex: 1;
  padding: 6px 0;
  position: relative;
  -webkit-tap-highlight-color: transparent;
}
.v3-nav-item .v3-nav-icon { font-size: 1.3rem; line-height: 1; }
.v3-nav-item .v3-nav-label {
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.v3-nav-item.active { color: var(--gold); }
.v3-nav-item.active::after {
  content: '';
  position: absolute;
  top: 0; left: 20%; right: 20%;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
}

/* Centro: botón Loop */
.v3-nav-loop {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  flex: 1;
  margin-top: -18px;
  -webkit-tap-highlight-color: transparent;
  text-decoration: none;
}
.v3-nav-loop-btn {
  width: 50px; height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-bright), #C8940A);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  box-shadow: 0 0 20px rgba(240,192,64,0.45);
  position: relative;
}
.v3-nav-loop.has-reward .v3-nav-loop-btn {
  animation: v3-pulse-loop 2s infinite;
}
@keyframes v3-pulse-loop {
  0%,100% { box-shadow: 0 0 20px rgba(240,192,64,0.45); }
  50%      { box-shadow: 0 0 36px rgba(240,192,64,0.75), 0 0 0 6px rgba(240,192,64,0.12); }
}
.v3-nav-loop .v3-nav-label {
  font-size: 0.56rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Reward dot en nav icon */
.v3-nav-dot {
  position: absolute;
  top: 2px; right: 2px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--rose);
  border: 1.5px solid var(--bg-deep);
}

/* Public pages (non-auth): compensate fixed navbar height */
.v3-public-main { padding-top: 74px; }

/* App main content */
.v3-app-main {
  padding-top: calc(var(--topbar-h) + 8px);
  padding-bottom: calc(var(--bottomnav-h) + 16px);
  min-height: 100dvh;
}

/* ══════════════════════════════════════════════════════════
   HISTORIAS — Story Rings
   ══════════════════════════════════════════════════════════ */
.v3-stories-strip {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding: 10px 1rem 8px;
  scrollbar-width: none;
}
.v3-stories-strip::-webkit-scrollbar { display: none; }
.v3-story-ring {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.v3-story-frame {
  width: 62px; height: 62px;
  border-radius: 50%;
  padding: 2.5px;
  background: linear-gradient(135deg, var(--gold-bright), #D4AF37);
}
.v3-story-frame.locked {
  background: linear-gradient(135deg, #333, #1A1A2E);
}
.v3-story-frame img {
  width: 100%; height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--bg-deep);
}
.v3-story-frame.blurred img { filter: blur(6px); }
.v3-story-code { font-size: 0.62rem; font-weight: 600; color: var(--text-2); max-width: 64px; text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.v3-story-add {
  width: 62px; height: 62px;
  border-radius: 50%;
  background: var(--bg-elevated);
  border: 2px dashed var(--gold-border);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  color: var(--gold);
  cursor: pointer;
  flex-shrink: 0;
}

/* ══════════════════════════════════════════════════════════
   CATÁLOGO — Cards de perfiles
   ══════════════════════════════════════════════════════════ */
.v3-catalog {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  padding: 0 1rem;
}
@media (min-width: 580px) { .v3-catalog { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 900px) { .v3-catalog { grid-template-columns: repeat(4, 1fr); } }

.v3-profile-card {
  position: relative;
  border-radius: var(--r-md);
  overflow: hidden;
  aspect-ratio: 3/4;
  background: var(--bg-elevated);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.v3-profile-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.v3-profile-card:hover img { transform: scale(1.05); }
.v3-profile-card-grad {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(to top, rgba(8,8,15,0.95) 0%, transparent 100%);
  padding: 2.5rem 0.75rem 0.75rem;
}
.v3-card-code { font-size: 0.82rem; font-weight: 700; color: #fff; }
.v3-card-meta { font-size: 0.68rem; color: var(--text-2); margin-top: 2px; }
.v3-card-price { font-size: 0.7rem; color: var(--gold); font-weight: 700; }

/* Chili badge */
.v3-chili {
  position: absolute;
  top: 8px; left: 8px;
  background: rgba(8,8,15,0.75);
  border-radius: var(--r-pill);
  padding: 3px 8px;
  font-size: 0.7rem;
}

/* Lock overlay */
.v3-lock-layer {
  position: absolute; inset: 0;
  background: rgba(8,8,15,0.45);
  backdrop-filter: blur(14px);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 7px;
}
.v3-lock-icon { font-size: 1.6rem; }
.v3-lock-price {
  background: var(--gold-dim);
  border: 1px solid var(--gold-border);
  border-radius: var(--r-pill);
  padding: 4px 12px;
  font-size: 0.72rem; font-weight: 800;
  color: var(--gold);
}

/* Story ring indicator on card */
.v3-card-story-ring {
  position: absolute;
  top: 6px; right: 6px;
  width: 14px; height: 14px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  background: var(--bg-deep);
}

/* ══════════════════════════════════════════════════════════
   LOOP DIARIO
   ══════════════════════════════════════════════════════════ */
.v3-loop-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding: 0 1rem;
}
.v3-loop-item {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--gold-border);
  border-radius: var(--r-md);
  padding: 1.1rem 0.75rem;
  text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 7px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  -webkit-tap-highlight-color: transparent;
}
.v3-loop-item:hover { border-color: var(--gold); background: var(--bg-elevated); }
.v3-loop-item.done {
  border-color: rgba(34,197,94,0.25);
  opacity: 0.55;
  cursor: default;
}
.v3-loop-emoji { font-size: 1.7rem; }
.v3-loop-name  { font-size: 0.6rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-2); }
.v3-loop-reward { font-size: 0.8rem; font-weight: 900; color: var(--gold); }
.v3-loop-cta {
  display: inline-block;
  font-size: 0.72rem; font-weight: 700;
  padding: 5px 12px; border-radius: var(--r-pill);
  background: var(--gold-dim);
  color: var(--gold);
  border: 1px solid var(--gold-border);
}
.v3-loop-done-check {
  position: absolute;
  top: 7px; right: 8px;
  font-size: 0.75rem;
  color: var(--success);
  font-weight: 900;
}

/* Streak display grande */
.v3-streak-big {
  display: flex; align-items: center; gap: 10px;
  padding: 1rem 1.2rem;
  background: rgba(255,99,32,0.07);
  border: 1px solid rgba(255,99,32,0.18);
  border-radius: var(--r-md);
}
.v3-streak-fire  { font-size: 2rem; }
.v3-streak-days  { font-size: 2rem; font-weight: 900; color: var(--fire); line-height: 1; }
.v3-streak-info  { display: flex; flex-direction: column; }
.v3-streak-label { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-2); }
.v3-streak-sub   { font-size: 0.72rem; color: var(--text-3); }

/* ══════════════════════════════════════════════════════════
   REGALOS — Gift strip & send
   ══════════════════════════════════════════════════════════ */
.v3-gifts-strip {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 4px 1rem 8px;
  scrollbar-width: none;
}
.v3-gifts-strip::-webkit-scrollbar { display: none; }
.v3-gift-card {
  flex-shrink: 0;
  background: var(--bg-card);
  border: 1px solid var(--gold-border);
  border-radius: var(--r-md);
  padding: 1rem 0.9rem;
  text-align: center;
  min-width: 82px;
  cursor: pointer;
  transition: border-color 0.2s, transform 0.2s;
  -webkit-tap-highlight-color: transparent;
}
.v3-gift-card:hover { border-color: var(--gold); transform: translateY(-2px); }
.v3-gift-emoji { font-size: 1.7rem; display: block; margin-bottom: 6px; }
.v3-gift-name  { font-size: 0.64rem; font-weight: 600; color: var(--text-2); margin-bottom: 4px; }
.v3-gift-cost  { font-size: 0.76rem; font-weight: 900; color: var(--gold); }
.v3-gift-rarity-legendary { border-color: var(--purple) !important; }
.v3-gift-rarity-epic      { border-color: rgba(255,99,32,0.4) !important; }

/* Notification de regalo recibido */
.v3-gift-notif {
  display: flex; align-items: center; gap: 12px;
  background: linear-gradient(135deg, rgba(255,62,127,0.08), var(--bg-card));
  border: 1px solid var(--rose-border);
  border-radius: var(--r-md);
  padding: 1rem 1.2rem;
}
.v3-gift-notif-emoji { font-size: 1.8rem; flex-shrink: 0; }
.v3-gift-notif-from  { font-size: 0.72rem; color: var(--text-2); }
.v3-gift-notif-name  { font-size: 0.9rem; font-weight: 800; color: var(--text-1); }
.v3-gift-notif-sc    { font-size: 0.72rem; color: var(--gold); font-weight: 700; }

/* ══════════════════════════════════════════════════════════
   TOP ADMIRADORES
   ══════════════════════════════════════════════════════════ */
.v3-admirers {
  display: flex; gap: 12px; overflow-x: auto;
  padding: 4px 1rem 8px;
  scrollbar-width: none;
}
.v3-admirers::-webkit-scrollbar { display: none; }
.v3-admirer {
  flex-shrink: 0;
  display: flex; flex-direction: column; align-items: center; gap: 5px;
}
.v3-admirer-avatar {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--bg-elevated);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  border: 2.5px solid transparent;
  position: relative;
}
.v3-admirer-avatar.rank-1 { border-color: #FFD700; }
.v3-admirer-avatar.rank-2 { border-color: #C0C0C0; }
.v3-admirer-avatar.rank-3 { border-color: #CD7F32; }
.v3-admirer-medal {
  position: absolute; top: -8px; right: -6px;
  font-size: 0.9rem;
}
.v3-admirer-name { font-size: 0.62rem; font-weight: 600; color: var(--text-2); text-align: center; }
.v3-admirer-sc   { font-size: 0.62rem; font-weight: 800; color: var(--gold); }

/* ══════════════════════════════════════════════════════════
   INSIGNIAS / BADGES
   ══════════════════════════════════════════════════════════ */
.v3-badge-row {
  display: flex; flex-wrap: wrap; gap: 8px;
}
.v3-badge-item {
  display: flex; align-items: center; gap: 6px;
  background: var(--bg-elevated);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--r-pill);
  padding: 6px 12px;
  font-size: 0.75rem; font-weight: 700;
  cursor: default;
}
.v3-badge-item.gold   { border-color: var(--gold-border); color: var(--gold); }
.v3-badge-item.silver { border-color: rgba(192,192,192,0.3); color: #C0C0C0; }
.v3-badge-item.fire   { border-color: rgba(255,99,32,0.3);  color: var(--fire); }

/* ══════════════════════════════════════════════════════════
   LOGIN / AUTH PAGES
   ══════════════════════════════════════════════════════════ */
.v3-login-wrap {
  min-height: 100dvh;
  display: flex; flex-direction: column;
}
.v3-login-hero {
  position: relative;
  height: 42dvh;
  overflow: hidden;
  flex-shrink: 0;
}
.v3-login-hero-bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center 20%;
}
.v3-login-hero-grad {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(8,8,15,0.35) 0%, rgba(8,8,15,0.98) 100%);
}
.v3-login-hero-txt {
  position: absolute;
  bottom: 1.5rem; left: 1.5rem; right: 1.5rem;
  z-index: 2;
}
.v3-login-form {
  flex: 1;
  padding: 1.5rem;
  display: flex; flex-direction: column; gap: 1.1rem;
  max-width: 420px;
  margin: 0 auto; width: 100%;
  padding-bottom: 2.5rem;
}

/* ══════════════════════════════════════════════════════════
   WALLET / SC DISPLAY
   ══════════════════════════════════════════════════════════ */
.v3-wallet-card {
  background: linear-gradient(135deg, rgba(240,192,64,0.08), var(--bg-card));
  border: 1px solid var(--gold-border);
  border-radius: var(--r-lg);
  padding: 1.5rem;
}
.v3-wallet-balance {
  font-size: 2.8rem;
  font-weight: 900;
  color: var(--gold);
  line-height: 1;
}
.v3-wallet-label { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; color: var(--text-2); }

/* ══════════════════════════════════════════════════════════
   TOASTS (in-app notifications)
   ══════════════════════════════════════════════════════════ */
.v3-toast-container {
  position: fixed;
  top: calc(var(--topbar-h) + 10px);
  left: 12px; right: 12px;
  z-index: 9500;
  display: flex; flex-direction: column; gap: 8px;
  pointer-events: none;
}
.v3-toast {
  background: var(--bg-elevated);
  border: 1px solid var(--gold-border);
  border-radius: var(--r-md);
  padding: 0.9rem 1.1rem;
  display: flex; gap: 10px; align-items: flex-start;
  box-shadow: var(--shadow-card);
  animation: v3-toast-in 0.3s ease;
  pointer-events: all;
}
@keyframes v3-toast-in {
  from { opacity:0; transform: translateY(-10px); }
  to   { opacity:1; transform: translateY(0); }
}
.v3-toast.success { border-color: rgba(34,197,94,0.3); }
.v3-toast.rose    { border-color: var(--rose-border); }

/* ══════════════════════════════════════════════════════════
   UTILIDADES
   ══════════════════════════════════════════════════════════ */
.v3-mt-sm { margin-top: 0.75rem; }
.v3-mt-md { margin-top: 1.25rem; }
.v3-mt-lg { margin-top: 2rem; }
.v3-mb-sm { margin-bottom: 0.75rem; }
.v3-mb-md { margin-bottom: 1.25rem; }
.v3-text-center { text-align: center; }
.v3-flex-center { display: flex; align-items: center; justify-content: center; }
.v3-flex-between { display: flex; align-items: center; justify-content: space-between; }
.v3-flex-row { display: flex; align-items: center; gap: 10px; }
.v3-w-full { width: 100%; }
.v3-hidden { display: none !important; }

/* Overflow helper para scroll horizontal */
.v3-scroll-x {
  display: flex; gap: 12px; overflow-x: auto;
  padding: 4px 1rem 8px;
  scrollbar-width: none;
}
.v3-scroll-x::-webkit-scrollbar { display: none; }

/* ══════════════════════════════════════════════════════════
   RESPONSIVE — Desktop adjustments
   ══════════════════════════════════════════════════════════ */
@media (min-width: 768px) {
  .v3-bubble.b1 { top: 20%; right: 8%; }
  .v3-bubble.b2 { top: 40%; right: 6%; }
  .v3-bubble.b3 { top: 60%; right: 8%; }

  /* En desktop el bottom nav puede ser sidebar o top nav */
  .v3-bottom-nav {
    height: 60px;
  }
  .v3-nav-loop { margin-top: -14px; }
  .v3-app-main {
    padding-top: calc(var(--topbar-h) + 12px);
    padding-bottom: calc(60px + 16px);
  }
}

@media (min-width: 1024px) {
  .v3-hero-content { max-width: 560px; padding-left: 5%; }
  .v3-catalog { grid-template-columns: repeat(5, 1fr); }
}
