/* ══════════════════════════════════════════════════════════
   MISSÕES & PAICOIN — missoes.css
   Fontes: Baloo 2 (títulos), Nunito (corpo)
   Paleta: Roxo #6C3CE1, Dourado #F59E0B, Verde #10B981
   ══════════════════════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --purple:      #6C3CE1;
  --purple-lt:   #8B5CF6;
  --gold:        #F59E0B;
  --gold-lt:     #FDE68A;
  --green:       #10B981;
  --red:         #EF4444;
  --bg:          #F5F3FF;
  --card:        #FFFFFF;
  --text:        #1E1B4B;
  --muted:       #6B7280;
  --border:      #E5E7EB;
  --radius:      16px;
  --shadow:      0 4px 20px rgba(108,60,225,0.08);
}

body {
  font-family: 'Roboto', sans-serif;
  background: var(--bg);
  color: var(--text);
  padding-top: 120px;
}

/* ── ANIMAÇÕES OBRIGATÓRIAS ─────────────────────────────── */

@keyframes flameAnim {
  0%   { transform: scale(1) rotate(-3deg); }
  50%  { transform: scale(1.1) rotate(3deg); }
  100% { transform: scale(1) rotate(-3deg); }
}

@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(108,60,225,0.4); }
  70%  { box-shadow: 0 0 0 8px rgba(108,60,225,0); }
  100% { box-shadow: 0 0 0 0 rgba(108,60,225,0); }
}

@keyframes borderPulse {
  0%   { border-color: #F59E0B; box-shadow: none; }
  50%  { border-color: #FBBF24; box-shadow: 0 0 0 6px rgba(245,158,11,0.15); }
  100% { border-color: #F59E0B; box-shadow: none; }
}

@keyframes shine {
  0%   { left: -100%; }
  60%  { left: 130%; }
  100% { left: 130%; }
}

@keyframes modalIn {
  0%   { transform: scale(0.8); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

@keyframes slideUp {
  from { transform: translateY(20px); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ── NOVAS ANIMAÇÕES OBRIGATÓRIAS ───────────────────────────── */

@keyframes coinFloat {
  0%   { transform: translateY(0) rotate(-3deg); }
  50%  { transform: translateY(-5px) rotate(3deg); }
  100% { transform: translateY(0) rotate(-3deg); }
}

@keyframes btnShine {
  0%   { left: -100%; opacity: 0.6; }
  60%  { left: 130%; opacity: 0; }
  100% { left: 130%; opacity: 0; }
}

@keyframes badgePulse {
  0%   { box-shadow: 0 0 0 0 rgba(245,158,11,0.5); }
  70%  { box-shadow: 0 0 0 8px rgba(245,158,11,0); }
  100% { box-shadow: 0 0 0 0 rgba(245,158,11,0); }
}

@keyframes dotBlink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

/* ── HEADER FIXO ────────────────────────────────────────── */

.m-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: #fff;
  border-bottom: 2px solid var(--border);
  box-shadow: 0 2px 12px rgba(108,60,225,0.07);
}

.m-header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 12px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.m-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.m-logo-icon { font-size: 1.8rem; }
.m-logo-title {
  font-family: 'Roboto', sans-serif;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--purple);
  line-height: 1;
}
.m-logo-title .gold { color: var(--gold); }
.m-logo-slogan {
  font-size: 0.7rem;
  color: var(--muted);
  margin-top: 2px;
}

.m-header-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.paicoin-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #FFFBEB;
  border: 1.5px solid var(--gold-lt);
  border-radius: 12px;
  padding: 8px 14px;
}

.pic-icon {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), #D97706);
  color: white;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Roboto', sans-serif;
  font-weight: 800;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.pic-label { font-size: 0.7rem; color: var(--muted); }
.pic-value {
  font-family: 'Roboto', sans-serif;
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--text);
}

.btn-dash-link {
  display: flex; align-items: center; gap: 6px;
  background: var(--purple);
  color: white;
  padding: 9px 18px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.85rem;
  transition: transform 0.2s;
}
.btn-dash-link:hover { transform: translateY(-1px); }

/* ── NAVBAR DE ABAS ─────────────────────────────────────── */

.m-navbar {
  position: fixed;
  top: 68px; left: 0; right: 0;
  z-index: 999;
  background: white;
  border-bottom: 1.5px solid var(--border);
}

.m-navbar-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
}
.m-navbar-inner::-webkit-scrollbar { display: none; }

.m-tab {
  display: flex; align-items: center;
  padding: 12px 18px;
  text-decoration: none;
  color: var(--muted);
  font-weight: 700;
  font-size: 0.875rem;
  white-space: nowrap;
  border-bottom: 3px solid transparent;
  transition: all 0.2s;
}
.m-tab:hover { color: var(--purple); background: var(--bg); }
.m-tab.active { color: var(--purple); border-bottom-color: var(--purple); }

/* ── MAIN ───────────────────────────────────────────────── */

.m-main {
  max-width: 1280px;
  margin: 0 auto;
  padding: 28px 20px 60px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* ── HERO BAR ───────────────────────────────────────────── */

.hero-bar {
  background: linear-gradient(135deg, #6C3CE1 0%, #4F46E5 50%, #7C3AED 100%);
  border-radius: 20px;
  padding: 28px 32px;
  position: relative;
  overflow: hidden;
  animation: slideUp 0.5s ease;
}

.hero-circles { position: absolute; inset: 0; pointer-events: none; }
.hero-circle {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
}
.hero-circle.c1 { width: 220px; height: 220px; top: -80px; right: -60px; }
.hero-circle.c2 { width: 140px; height: 140px; bottom: -60px; left: 30%; }

.hero-content {
  position: relative;
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}

.hero-text { flex: 1; min-width: 260px; }

.hero-title {
  font-family: 'Roboto', sans-serif;
  font-size: 1.75rem;
  font-weight: 800;
  color: white;
  margin-bottom: 6px;
}

.hero-sub {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.75);
  max-width: 480px;
  margin-bottom: 16px;
}

.xp-mini-bar {
  height: 8px; border-radius: 20px;
  background: rgba(255,255,255,0.2);
  overflow: hidden;
  max-width: 360px;
  margin-bottom: 6px;
}
.xp-mini-fill {
  height: 100%;
  border-radius: 20px;
  background: linear-gradient(90deg, var(--gold), #fff);
  transition: width 0.8s ease;
}
.xp-mini-label { font-size: 0.75rem; color: rgba(255,255,255,0.8); }

.hero-stats {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hstat-card {
  background: rgba(255,255,255,0.12);
  border-radius: 14px;
  padding: 14px 20px;
  text-align: center;
  backdrop-filter: blur(10px);
  min-width: 110px;
}
.hstat-num {
  font-family: 'Roboto', sans-serif;
  font-size: 1.6rem;
  font-weight: 800;
  color: white;
}
.hstat-label { font-size: 0.7rem; color: rgba(255,255,255,0.75); }

/* ── STREAK ─────────────────────────────────────────────── */

.streak-section {
  background: var(--card);
  border-radius: var(--radius);
  border: 2px solid var(--gold-lt);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  box-shadow: 0 2px 12px rgba(245,158,11,0.1);
}

.flame-emoji {
  font-size: 2.2rem;
  animation: flameAnim 1.5s ease-in-out infinite;
  flex-shrink: 0;
}

.streak-left {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
  min-width: 200px;
}

.streak-title {
  font-family: 'Roboto', sans-serif;
  font-size: 1.25rem;
  font-weight: 800;
  color: #92400E;
}
.streak-sub { font-size: 0.78rem; color: var(--muted); margin-top: 2px; }

.streak-days {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.streak-day {
  width: 38px; height: 38px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  background: var(--bg);
  border: 1.5px solid var(--border);
  color: var(--muted);
}
.streak-day.done {
  background: var(--gold);
  color: white;
  border-color: var(--gold);
  box-shadow: 0 2px 8px rgba(245,158,11,0.35);
}
.streak-day.today {
  background: var(--purple);
  color: white;
  border-color: var(--purple);
  animation: pulse 1.5s ease infinite;
}

/* ── NÍVEL/XP BAR ───────────────────────────────────────── */

.level-section {
  background: var(--card);
  border-radius: var(--radius);
  border: 1.5px solid var(--border);
  padding: 18px 24px;
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.level-badge {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--purple), var(--purple-lt));
  box-shadow: 0 4px 12px rgba(108,60,225,0.3);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Roboto', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  color: white;
  flex-shrink: 0;
}

.level-info { flex: 1; min-width: 200px; }

.level-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.level-name {
  font-family: 'Roboto', sans-serif;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text);
}
.level-xp { font-size: 0.78rem; color: var(--muted); font-weight: 700; }

.level-bar-wrap {
  height: 10px;
  border-radius: 20px;
  background: var(--bg);
  overflow: hidden;
  position: relative;
}
.level-bar-fill {
  height: 100%;
  border-radius: 20px;
  background: linear-gradient(90deg, var(--purple), var(--purple-lt));
  transition: width 0.8s ease;
  position: relative;
  overflow: hidden;
}
.level-bar-fill::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0; left: -100%;
  width: 60%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
  animation: shine 2s ease infinite;
}

.level-next {
  text-align: right;
  flex-shrink: 0;
}
.level-next-label { font-size: 0.68rem; color: var(--muted); }
.level-next-name { font-weight: 800; font-size: 0.85rem; color: var(--purple); }

/* ── MISSÃO RELÂMPAGO ───────────────────────────────────── */

.flash-mission {
  background: linear-gradient(135deg, #FEF3C7, var(--gold-lt));
  border: 2px solid var(--gold);
  border-radius: var(--radius);
  padding: 20px 24px;
  position: relative;
  animation: borderPulse 2s ease-in-out infinite;
}

.flash-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--gold);
  color: white;
  font-weight: 800;
  font-size: 0.8rem;
  padding: 4px 14px;
  border-radius: 20px;
  margin-bottom: 12px;
  font-family: 'Roboto', sans-serif;
}

.flash-body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.flash-title {
  font-family: 'Roboto', sans-serif;
  font-size: 1.15rem;
  font-weight: 800;
  color: #92400E;
}
.flash-desc { font-size: 0.82rem; color: #78350F; margin-top: 4px; }

.flash-right { text-align: right; flex-shrink: 0; }
.flash-reward { font-weight: 800; color: #92400E; font-size: 0.95rem; }
.flash-double {
  display: inline-block;
  background: var(--red);
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 20px;
  margin-top: 4px;
}
.flash-timer {
  font-family: 'Roboto', sans-serif;
  font-size: 1.4rem;
  font-weight: 800;
  color: #92400E;
  margin: 8px 0;
}

.btn-flash {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--purple);
  color: white;
  border: none;
  border-radius: 10px;
  padding: 10px 20px;
  font-family: 'Roboto', sans-serif;
  font-weight: 800;
  font-size: 0.9rem;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}
.btn-flash:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(108,60,225,0.3); }

/* ── GRID 2 COLUNAS ─────────────────────────────────────── */

.m-grid {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 20px;
  align-items: start;
}
@media(max-width: 1024px) { .m-grid { grid-template-columns: 1fr; } }

.m-col-main, .m-col-side { display: flex; flex-direction: column; gap: 20px; }

/* ── ABAS DE MISSÃO ─────────────────────────────────────── */

.missions-section {
  background: var(--card);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
}

.mission-tabs {
  display: flex;
  gap: 6px;
  background: var(--bg);
  border-radius: 12px;
  padding: 6px;
  border: 1.5px solid var(--border);
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.mtab {
  flex: 1;
  min-width: fit-content;
  background: none;
  border: none;
  border-radius: 8px;
  padding: 8px 12px;
  font-family: 'Roboto', sans-serif;
  font-weight: 700;
  font-size: 0.8rem;
  color: var(--muted);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
}
.mtab:hover { background: white; color: var(--purple); }
.mtab.active {
  background: var(--purple);
  color: white;
  box-shadow: 0 4px 12px rgba(108,60,225,0.3);
}

.missions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 14px;
}

/* ── CARD DE MISSÃO ─────────────────────────────────────── */

.mission-card {
  background: var(--card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  position: relative;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.mission-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(108,60,225,0.1);
  border-color: var(--purple-lt);
}
.mission-card.mission-done {
  background: #F0FDF4;
  border-color: #BBF7D0;
}

.mission-check {
  position: absolute;
  top: 10px; right: 12px;
  font-size: 1.1rem;
}

.mission-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
}

.mission-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}

.mission-title {
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--text);
  margin-bottom: 3px;
}
.mission-desc { font-size: 0.78rem; color: var(--muted); line-height: 1.4; }

.mission-prog-bar {
  height: 8px;
  border-radius: 20px;
  background: var(--bg);
  overflow: hidden;
  margin-bottom: 8px;
}
.mission-prog-fill {
  height: 100%;
  border-radius: 20px;
  transition: width 0.6s ease;
  background: var(--purple);
}

.mission-footer {
  display: flex;
  justify-content: space-between;
  font-size: 0.73rem;
  color: var(--muted);
  margin-bottom: 12px;
  font-weight: 700;
}
.mission-reward { color: var(--gold); }

.mission-btn {
  width: 100%;
  border: none;
  border-radius: 10px;
  padding: 10px;
  font-family: 'Roboto', sans-serif;
  font-weight: 800;
  font-size: 0.85rem;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
}
.mbtn-pending { background: var(--bg); color: var(--muted); cursor: default; }
.mbtn-ready {
  background: var(--purple);
  color: white;
  box-shadow: 0 4px 14px rgba(108,60,225,0.3);
}
.mbtn-ready:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(108,60,225,0.4); }
.mbtn-done { background: #D1FAE5; color: #065F46; cursor: default; }

.empty-mission {
  grid-column: 1/-1;
  text-align: center;
  padding: 40px;
  color: var(--muted);
  font-size: 0.9rem;
}
.loading-placeholder {
  text-align: center;
  padding: 30px;
  color: var(--muted);
  font-size: 0.9rem;
}

/* ── VÍDEOS RECOMPENSADOS ───────────────────────────────── */

.videos-section {
  background: var(--card);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 8px;
}

.section-title {
  font-family: 'Roboto', sans-serif;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text);
}

.section-badge {
  font-size: 0.75rem;
  font-weight: 700;
  background: #EDE9FE;
  color: var(--purple);
  padding: 4px 12px;
  border-radius: 20px;
}

.section-hint { font-size: 0.82rem; color: var(--muted); margin-bottom: 16px; }

.videos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.video-card {
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}
.video-card:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(108,60,225,0.1); }

.video-thumb {
  height: 140px;
  background: linear-gradient(135deg, #EF4444, #F97316);
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.video-thumb.v2 { background: linear-gradient(135deg, #7C3AED, #4F46E5); }

.play-btn {
  width: 56px; height: 56px;
  border-radius: 16px;
  background: rgba(255,255,255,0.25);
  backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  transition: transform 0.2s;
}
.play-btn:hover { transform: scale(1.1); }

.video-duration {
  position: absolute;
  bottom: 8px; right: 10px;
  background: rgba(0,0,0,0.5);
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 6px;
}

.video-body { padding: 14px; }
.video-title { font-weight: 800; font-size: 0.9rem; margin-bottom: 4px; }
.video-desc  { font-size: 0.75rem; color: var(--muted); margin-bottom: 12px; }

.video-progress-dots {
  display: flex;
  gap: 5px;
  margin-bottom: 14px;
}
.vdot {
  height: 6px;
  width: 28px;
  border-radius: 10px;
  background: var(--border);
  transition: background 0.3s;
}
.vdot.done    { background: var(--green); }
.vdot.current { background: var(--purple); animation: pulse 1.5s ease infinite; }

.btn-video {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #EF4444, #F97316);
  color: white;
  border: none;
  border-radius: 10px;
  padding: 9px 16px;
  font-family: 'Roboto', sans-serif;
  font-weight: 800;
  font-size: 0.82rem;
  cursor: pointer;
  transition: transform 0.2s;
  width: 100%;
  justify-content: center;
}
.btn-video:hover { transform: translateY(-2px); }

.reward-badge {
  display: inline-block;
  background: #FEF3C7;
  color: #92400E;
  font-weight: 700;
  font-size: 0.78rem;
  padding: 4px 12px;
  border-radius: 8px;
  margin: 8px 0;
}

.video-pic {
  font-size: 0.75rem;
  color: var(--gold);
  font-weight: 800;
  margin-top: 8px;
}

/* ── CAIXINHA DO PAI ────────────────────────────────────── */

.caixinha-section {
  background: linear-gradient(135deg, #1E1B4B, #312E81);
  border-radius: 20px;
  padding: 28px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.caixinha-deco {
  position: absolute;
  bottom: -10px; right: -10px;
  font-size: 5rem;
  opacity: 0.08;
  pointer-events: none;
}

.caixinha-title {
  font-family: 'Roboto', sans-serif;
  font-size: 1.3rem;
  font-weight: 800;
  color: white;
  margin-bottom: 8px;
}
.caixinha-desc {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.7);
  margin-bottom: 16px;
  line-height: 1.5;
}
.caixinha-timer {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.6);
  margin-bottom: 14px;
  font-weight: 700;
}
.caixinha-timer.green { color: #6EE7B7; }

.btn-caixinha {
  display: block;
  width: 100%;
  background: var(--gold);
  color: #1E1B4B;
  border: none;
  border-radius: 12px;
  padding: 14px;
  font-family: 'Roboto', sans-serif;
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(245,158,11,0.4);
  transition: transform 0.2s, box-shadow 0.2s;
}
.btn-caixinha:hover { transform: translateY(-2px) scale(1.02); box-shadow: 0 8px 24px rgba(245,158,11,0.5); }
.btn-caixinha:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

/* ── LIGA SEMANAL ───────────────────────────────────────── */

.liga-section {
  background: var(--card);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
}

.liga-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}
.liga-title {
  font-family: 'Roboto', sans-serif;
  font-size: 1.1rem;
  font-weight: 800;
}
.liga-atual {
  font-weight: 800;
  font-size: 0.8rem;
  background: #EDE9FE;
  color: var(--purple);
  padding: 4px 12px;
  border-radius: 20px;
}
.liga-desc {
  font-size: 0.75rem;
  color: var(--muted);
  margin-bottom: 14px;
}

.liga-ranking { display: flex; flex-direction: column; gap: 6px; }

.liga-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: 10px;
  background: var(--bg);
  transition: transform 0.15s;
  cursor: default;
}
.liga-row:hover { transform: translateX(4px); }
.liga-row.liga-me { background: #EDE9FE; border: 1.5px solid #C4B5FD; }

.liga-pos { font-family: 'Roboto', sans-serif; font-size: 0.9rem; font-weight: 800; width: 24px; text-align: center; }
.liga-avatar {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--purple);
  color: white;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800;
  font-size: 0.85rem;
  flex-shrink: 0;
}
.liga-info { flex: 1; min-width: 0; }
.liga-name { font-weight: 800; font-size: 0.82rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.liga-detail { font-size: 0.68rem; color: var(--muted); }
.liga-you { color: var(--purple); font-size: 0.7rem; }
.liga-xp { font-weight: 800; font-size: 0.82rem; color: var(--purple); white-space: nowrap; }

/* ── FEED SOCIAL ────────────────────────────────────────── */

.feed-section {
  background: var(--card);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
}
.feed-title {
  font-family: 'Roboto', sans-serif;
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 14px;
}

.feed-list { display: flex; flex-direction: column; gap: 0; }
.feed-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--bg);
}
.feed-item:last-child { border-bottom: none; }
.feed-avatar {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--purple);
  color: white;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800;
  font-size: 0.85rem;
  flex-shrink: 0;
}
.feed-body { flex: 1; font-size: 0.8rem; line-height: 1.4; }
.feed-time { font-size: 0.68rem; color: var(--muted); margin-top: 2px; }
.feed-icon { font-size: 1.1rem; flex-shrink: 0; }

/* ── MERCADO DO PAI ─────────────────────────────────────── */

.mercado-section {
  background: var(--card);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}

.paicoin-badge-sm {
  font-weight: 800;
  font-size: 0.9rem;
  background: #FFFBEB;
  border: 1.5px solid var(--gold-lt);
  color: #92400E;
  padding: 6px 14px;
  border-radius: 10px;
}

.mercado-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.mercado-card {
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 16px;
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
}
.mercado-card:hover { transform: translateY(-3px); box-shadow: 0 10px 28px rgba(108,60,225,0.1); }

.mercado-icon { font-size: 2rem; margin-bottom: 10px; }
.mercado-title { font-weight: 800; font-size: 0.9rem; margin-bottom: 5px; }
.mercado-desc { font-size: 0.73rem; color: var(--muted); margin-bottom: 10px; line-height: 1.4; }
.mercado-price { font-weight: 800; font-size: 0.85rem; color: var(--gold); margin-bottom: 12px; }

.btn-mercado {
  display: block;
  width: 100%;
  background: var(--purple);
  color: white;
  border: none;
  border-radius: 10px;
  padding: 10px;
  font-family: 'Roboto', sans-serif;
  font-weight: 800;
  font-size: 0.82rem;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
}
.btn-mercado:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(108,60,225,0.3); }
.btn-mercado.disabled {
  background: var(--bg);
  color: var(--muted);
  cursor: not-allowed;
}

/* ── MODAL DA CAIXINHA ──────────────────────────────────── */

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(30,27,75,0.5);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 20px;
}

.modal-box {
  background: white;
  border-radius: 24px;
  padding: 40px 32px;
  text-align: center;
  max-width: 380px;
  width: 100%;
  animation: modalIn 0.3s ease;
  box-shadow: 0 30px 60px rgba(30,27,75,0.25);
}

.modal-emoji { font-size: 4rem; margin-bottom: 12px; }
.modal-title {
  font-family: 'Roboto', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 8px;
}
.modal-desc { font-size: 0.9rem; color: var(--muted); margin-bottom: 16px; }

.modal-reward {
  background: #FEF3C7;
  border: 1.5px solid var(--gold-lt);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 20px;
}
.reward-num {
  font-family: 'Roboto', sans-serif;
  font-size: 1.4rem;
  font-weight: 800;
  color: #92400E;
}

.btn-modal-close {
  background: var(--purple);
  color: white;
  border: none;
  border-radius: 12px;
  padding: 12px 32px;
  font-family: 'Roboto', sans-serif;
  font-weight: 800;
  font-size: 0.9rem;
  cursor: pointer;
  width: 100%;
  transition: transform 0.15s;
}
.btn-modal-close:hover { transform: translateY(-1px); }

/* ── TOAST ──────────────────────────────────────────────── */

.m-toast {
  position: fixed;
  bottom: 28px; left: 50%;
  transform: translateX(-50%);
  z-index: 3000;
  background: white;
  border-radius: 14px;
  padding: 14px 22px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 8px 28px rgba(30,27,75,0.2);
  animation: slideUp 0.3s ease;
  border: 1.5px solid var(--border);
  min-width: 260px;
  max-width: 400px;
}
.toast-icon { font-size: 1.4rem; flex-shrink: 0; }
.toast-title { font-weight: 800; font-size: 0.9rem; }
.toast-desc  { font-size: 0.75rem; color: var(--muted); }

/* ── RESPONSIVE ─────────────────────────────────────────── */

@media(max-width: 768px) {
  body { padding-top: 110px; }
  .m-header-inner { padding: 10px 16px; }
  .m-logo-title { font-size: 1.1rem; }
  .m-logo-slogan { display: none; }
  .m-main { padding: 16px 12px 50px; gap: 14px; }
  .hero-bar { padding: 20px 18px; }
  .hero-title { font-size: 1.3rem; }
  .hstat-card { min-width: 90px; padding: 10px 14px; }
  .hstat-num { font-size: 1.2rem; }
  .streak-section { flex-direction: column; align-items: flex-start; }
  .missions-grid { grid-template-columns: 1fr; }
  .mercado-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
  .modal-box { padding: 28px 20px; }
  .conv-compact { flex-direction: column; text-align: center; }
  .conv-modal-content { padding: 20px 16px; }
  .m-legal-footer { flex-direction: column; gap: 6px; text-align: center; }
}

/* ══════════════════════════════════════════════════════════════
   NOVOS COMPONENTES — Card Conversão Futura, Notificação, Footer
   ══════════════════════════════════════════════════════════════ */

/* ── ÍCONE DE NOTIFICAÇÃO ───────────────────────────────────── */
.notif-btn {
  position: relative;
  width: 38px; height: 38px;
  border-radius: 10px;
  background: var(--bg);
  border: 1.5px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--muted);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  flex-shrink: 0;
}
.notif-btn:hover { background: #EDE9FE; color: var(--purple); }
.notif-dot {
  position: absolute;
  top: 6px; right: 6px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--red);
  border: 1.5px solid white;
  animation: dotBlink 2s ease-in-out infinite;
}

/* ── CARD COMPACTO CONVERSÃO FUTURA ─────────────────────────── */
.conv-compact {
  background: linear-gradient(135deg, #1E1B4B, #312E81);
  border-radius: 20px;
  padding: 18px 22px;
  display: flex;
  align-items: center;
  gap: 18px;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
  border: 1.5px solid rgba(245,158,11,0.15);
  animation: slideUp 0.5s ease;
}
.conv-compact:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 36px rgba(30,27,75,0.3);
  border-color: rgba(245,158,11,0.4);
}
.conv-deco-circle {
  position: absolute;
  top: -30px; right: -30px;
  width: 100px; height: 100px;
  border-radius: 50%;
  background: rgba(245,158,11,0.1);
  pointer-events: none;
}
.conv-coin-icon {
  font-size: 1.8rem;
  width: 56px; height: 56px;
  border-radius: 16px;
  background: linear-gradient(135deg, #F59E0B, #D97706);
  box-shadow: 0 6px 18px rgba(245,158,11,0.4);
  display: flex; align-items: center; justify-content: center;
  animation: coinFloat 3s ease-in-out infinite;
  flex-shrink: 0;
}
.conv-center { flex: 1; min-width: 0; }
.conv-tag {
  display: inline-block;
  background: rgba(245,158,11,0.2);
  border: 1px solid rgba(245,158,11,0.3);
  color: var(--gold-lt);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 20px;
  margin-bottom: 6px;
}
.conv-title {
  font-family: 'Roboto', sans-serif;
  font-size: 1rem;
  font-weight: 800;
  color: white;
  margin: 0 0 4px;
}
.conv-sub { font-size: 0.75rem; color: rgba(255,255,255,0.6); margin: 0; line-height: 1.4; }
.conv-right { flex-shrink: 0; }
.btn-conv-sm {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--gold);
  color: #1E1B4B; border: none;
  border-radius: 12px; padding: 10px 18px;
  font-family: 'Roboto', sans-serif; font-size: 0.85rem; font-weight: 800;
  cursor: pointer; transition: transform 0.2s, box-shadow 0.2s;
  white-space: nowrap;
}
.btn-conv-sm:hover { transform: translateY(-2px) scale(1.03); box-shadow: 0 4px 14px rgba(245,158,11,0.4); }
.conv-menor-lock {
  display: flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.08); border-radius: 10px;
  padding: 8px 14px; font-size: 0.78rem;
  color: rgba(255,255,255,0.6); font-weight: 700; white-space: nowrap;
}

/* ── MODAL COMPLETO CONVERSÃO FUTURA ───────────────────────── */
.conv-modal-box {
  background: linear-gradient(135deg, #1E1B4B 0%, #2D1F6E 40%, #1E3A5F 100%);
  border-radius: 24px;
  max-width: 540px; width: 100%;
  position: relative; overflow: hidden;
  animation: modalIn 0.3s ease;
  box-shadow: 0 30px 60px rgba(0,0,0,0.4);
  max-height: 90vh; overflow-y: auto;
}
.conv-modal-bg { position: absolute; inset: 0; pointer-events: none; }
.conv-bg-c1 {
  position: absolute; width: 200px; height: 200px; border-radius: 50%;
  background: rgba(245,158,11,0.06); top: -60px; right: -60px;
}
.conv-bg-c2 {
  position: absolute; width: 140px; height: 140px; border-radius: 50%;
  background: rgba(108,60,225,0.15); bottom: -40px; left: 30px;
}
.conv-modal-content { position: relative; padding: 32px 28px; }
.conv-badge-topo {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(245,158,11,0.15);
  border: 1.5px solid rgba(245,158,11,0.3);
  color: var(--gold-lt); font-size: 0.78rem; font-weight: 700;
  padding: 5px 14px; border-radius: 20px; margin-bottom: 16px;
  animation: badgePulse 2s ease-in-out infinite;
}
.conv-badge-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--gold); flex-shrink: 0;
  animation: dotBlink 1.5s ease-in-out infinite;
}
.conv-modal-title { font-family:'Roboto', sans-serif; font-size:1.5rem; font-weight:800; color:white; margin-bottom:10px; }
.conv-gold-text { color:var(--gold); text-shadow: 0 0 20px rgba(245,158,11,0.4); }
.conv-modal-sub { font-size:0.85rem; color:rgba(255,255,255,0.7); line-height:1.6; margin-bottom:20px; }

/* Simulação de valor */
.conv-sim-painel {
  background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.12);
  border-radius: 16px; padding: 16px 20px;
  display: flex; align-items: center; gap: 16px; margin-bottom: 20px;
}
.conv-sim-left { display:flex; align-items:center; gap:12px; }
.conv-sim-icon { font-size:1.8rem; animation: coinFloat 3s ease-in-out infinite; }
.conv-sim-label { font-size:0.68rem; color:rgba(255,255,255,0.5); margin-bottom:2px; }
.conv-sim-val { font-family:'Roboto', sans-serif; font-weight:800; font-size:1rem; color:var(--gold); }
.conv-sim-arrow { font-size:1.5rem; color:rgba(255,255,255,0.3); flex-shrink:0; }
.conv-sim-right { text-align:center; flex:1; }
.conv-sim-money {
  font-family:'Roboto', sans-serif; font-size:1.4rem; font-weight:800;
  color:var(--gold-lt); filter:blur(6px); transition: filter 0.4s ease;
}
.conv-modal-box:hover .conv-sim-money { filter: blur(3px); }
.conv-sim-hint { font-size:0.72rem; color:var(--gold); margin-top:4px; }

/* Bullets */
.conv-bullets { display:flex; flex-direction:column; gap:8px; margin-bottom:20px; }
.conv-bullet { display:flex; align-items:flex-start; gap:10px; font-size:0.8rem; color:rgba(255,255,255,0.7); line-height:1.5; }
.conv-bicon { width:30px; height:30px; border-radius:8px; background:rgba(255,255,255,0.08); display:flex; align-items:center; justify-content:center; font-size:0.9rem; flex-shrink:0; }

/* Social counter */
.conv-social { display:flex; align-items:center; gap:10px; margin-bottom:18px; }
.conv-avatars { display:flex; }
.conv-avatars span { width:28px; height:28px; border-radius:50%; background:rgba(108,60,225,0.5); border:2px solid rgba(255,255,255,0.2); display:flex; align-items:center; justify-content:center; font-size:0.7rem; margin-left:-8px; }
.conv-avatars span:first-child { margin-left:0; }
.conv-social-text { font-size:0.78rem; color:rgba(255,255,255,0.7); }

/* Botão principal do modal */
.btn-conv-main {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; background: linear-gradient(135deg, #F59E0B, #FBBF24);
  color: #1E1B4B; border: none; border-radius: 14px; padding: 16px;
  font-family: 'Roboto', sans-serif; font-weight: 800; font-size: 1rem;
  cursor: pointer; position: relative; overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s; margin-bottom: 12px;
}
.btn-conv-main:hover { transform:translateY(-2px); box-shadow:0 8px 24px rgba(245,158,11,0.45); }
.btn-conv-main::before {
  content:''; position:absolute; top:0; bottom:0; left:-100%; width:50%;
  background: linear-gradient(90deg,transparent,rgba(255,255,255,0.35),transparent);
  animation: btnShine 2.5s ease-in-out infinite;
}
.conv-disclaimer { font-size:0.68rem; color:rgba(255,255,255,0.35); text-align:center; line-height:1.5; margin:0; }

/* ── FOOTER FIXO LEGAL ──────────────────────────────────────── */
.m-legal-footer {
  position: fixed; bottom:0; left:0; right:0; z-index:800;
  background: rgba(30,27,75,0.95); backdrop-filter:blur(8px);
  display: flex; align-items:center; justify-content:space-between;
  flex-wrap:wrap; gap:8px; padding:10px 24px;
  border-top: 1.5px solid rgba(255,255,255,0.08);
}
.lf-text { font-size:0.72rem; color:rgba(255,255,255,0.5); flex:1; min-width:200px; }
.lf-links { display:flex; align-items:center; gap:8px; flex-shrink:0; }
.lf-link { font-size:0.72rem; color:rgba(255,255,255,0.55); text-decoration:underline; transition:color 0.2s; }
.lf-link:hover { color:var(--gold); }
.lf-badge { font-size:0.68rem; background:rgba(108,60,225,0.4); color:rgba(255,255,255,0.7); padding:2px 10px; border-radius:20px; font-weight:700; border:1px solid rgba(108,60,225,0.5); }

/* Ajuste no body para o footer fixo */
body { padding-bottom: 58px; }
