/* =========================================================
   🪟 PLAYNAVAGA MODAL SYSTEM — CLEAN VERSION
========================================================= */

.modal-overlay{
  position:fixed;
  inset:0;
  display:none;
  align-items:center;
  justify-content:center;
  background:rgba(15,23,42,.55);
  backdrop-filter: blur(6px);
  z-index:10000;
  opacity:0;
  transition:.18s ease;
}

.modal-overlay.show{
  display:flex;
  opacity:1;
}

.modal-box{
  width:92%;
  max-width:380px;
  max-height:85vh;

  display:flex;
  flex-direction:column;

  background:
    radial-gradient(circle at 20% 0%, rgba(99,102,241,.18), transparent 60%),
    linear-gradient(180deg,#ffffff,#f8fafc);

  border:1px solid #e2e8f0;
  border-radius:20px;
  overflow:hidden;

  box-shadow:0 30px 80px rgba(15,23,42,.25);

  transform:scale(.96) translateY(10px);
  transition:.18s ease;
}

.modal-overlay.show .modal-box{
  transform:scale(1) translateY(0);
}

/* =========================================================
   HEADER / BODY / FOOTER
========================================================= */

.modal-header{
  padding:16px 18px;
  background:linear-gradient(90deg,#6366f1,#8b5cf6);
  color:white;
  font-weight:800;
  font-size:18px;
}

.modal-body{
  padding:22px 20px;
  color:#334155;
  font-weight:600;
  line-height:1.45;

  overflow-y:auto;
  max-height:60vh;
  -webkit-overflow-scrolling:touch;
}

/* 💬 Chat DM: uma coluna flex — só a lista de mensagens rola; input fica visível */
.modal-box[data-size="dm"]{
  max-width:min(420px, 96vw);
  width:96%;
  /* altura explícita para o flex repartir header / corpo / footer — só #dmMessages rola */
  height:min(92vh, 640px);
  max-height:min(92vh, 640px);
}

.modal-box[data-size="dm"] .modal-body{
  flex:1 1 0;
  min-height:0;
  max-height:none;
  overflow:hidden;
  padding:12px 14px 10px;
  display:flex;
  flex-direction:column;
}

.modal-box[data-size="dm"] #playModalContent{
  flex:1 1 0;
  min-height:0;
  display:flex;
  flex-direction:column;
  overflow:hidden;
}

.modal-box[data-size="dm"] > .modal-header,
.modal-box[data-size="dm"] > .modal-footer{
  flex-shrink:0;
}

.modal-footer{
  display:flex;
  justify-content:center;
  gap:10px;
  flex-wrap:wrap;
  padding:18px;
  border-top:1px solid #e2e8f0;
  background:linear-gradient(180deg,#f8fafc,#eef2ff);
}

/* =========================================================
   🎯 BUTTON SYSTEM (SEMÂNTICO)
========================================================= */

/* ================= PRIMARY ================= */

.btn-primary{
  background:linear-gradient(135deg,#6366f1,#4f46e5);
  color:#fff;
  border:none;
  padding:10px 18px;
  border-radius:12px;
  font-weight:800;
  cursor:pointer;
  transition:all .18s ease;
  box-shadow:0 6px 18px rgba(79,70,229,.35);
}

.btn-primary:hover{
  transform:translateY(-1px);
  box-shadow:0 10px 24px rgba(79,70,229,.45);
}

/* ================= SUCCESS (ACEITAR) ================= */

.btn-success{
  background:linear-gradient(135deg,#22c55e,#16a34a);
  color:#fff;
  border:none;
  padding:10px 18px;
  border-radius:12px;
  font-weight:800;
  cursor:pointer;
  transition:all .18s ease;
  box-shadow:0 6px 18px rgba(34,197,94,.35);
}

.btn-success:hover{
  transform:translateY(-1px);
  box-shadow:0 10px 24px rgba(34,197,94,.45);
}

/* ================= SECONDARY (CANCELAR) ================= */

.btn-secondary{
  background:#1f2937;
  color:#e5e7eb;
  border:1px solid #374151;
  padding:10px 18px;
  border-radius:12px;
  font-weight:700;
  cursor:pointer;
  transition:all .15s ease;
}

.btn-secondary:hover{
  background:#111827;
}

/* ================= DANGER ================= */

.btn-danger{
  background:linear-gradient(135deg,#ef4444,#dc2626);
  color:#fff;
  border:none;
  padding:10px 18px;
  border-radius:12px;
  font-weight:800;
  cursor:pointer;
  transition:all .18s ease;
  box-shadow:0 6px 18px rgba(239,68,68,.35);
}

.btn-danger:hover{
  transform:translateY(-1px);
  box-shadow:0 10px 24px rgba(239,68,68,.45);
}

/* =========================================================
   🎒 INVENTORY BUTTON — SIZE FIX
========================================================= */

.invItem button{
  min-width:88px;
  height:34px;
  padding:6px 12px !important;
  font-size:12px;
  font-weight:800;
  border-radius:10px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  white-space:nowrap;
}

/* =========================================================
   🧩 PLAYER UI STRUCTURE FIX
   (estrutura que o components antigo dava)
========================================================= */
/* =========================================================
   🎒 INVENTORY — LIST FOUNDATION
========================================================= */

.inv-list{
  display:flex;
  flex-direction:column;
  gap:10px;
  margin-top:4px;
}

/* =========================================================
   🎒 INVENTORY ROW — PREMIUM CARD
========================================================= */

.invItem{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;

  padding:12px 14px;
  border-radius:14px;

  background:linear-gradient(180deg,#ffffff,#f8fafc);
  border:1px solid #e2e8f0;

  transition:all .18s ease;
}

/* separação suave */

.invItem + .invItem{
  margin-top:6px;
}

/* hover */

.invItem:hover{
  transform:translateY(-1px);
  box-shadow:0 8px 18px rgba(15,23,42,.08);
  border-color:#c7d2fe;
}

/* =========================================================
   🎒 INVENTORY LEFT SIDE
========================================================= */

.item-left{
  display:flex;
  align-items:center;
  gap:10px;
  flex:1;
  min-width:0;
}

.item-name{
  font-weight:800;
  color:#0f172a;
  font-size:14px;
}

.inv-name{
  font-weight:800;
  color:#0f172a;
  font-size:14px;
  letter-spacing:.2px;
}

.inv-qty{
  margin-left:6px;
  font-size:11px;
  font-weight:800;
  color:#64748b;
}

/* =========================================================
   🎒 INVENTORY BUTTON SIZE FIX
========================================================= */

.invItem button{
  min-width:88px;
  height:34px;

  padding:6px 12px !important;

  font-size:12px;
  font-weight:800;

  border-radius:10px;

  display:inline-flex;
  align-items:center;
  justify-content:center;

  white-space:nowrap;

  cursor:pointer;

  transition:all .15s ease;
}

/* hover padrão */

.invItem button:hover{
  transform:translateY(-1px);
}

/* =========================================================
   🎒 BUTTON STATES
========================================================= */

/* EQUIPAR */

.invItem button:not(.remove){
  background:linear-gradient(135deg,#6366f1,#8b5cf6);
  color:#fff;
  border:none;

  box-shadow:0 6px 16px rgba(99,102,241,.35);
}

.invItem button:not(.remove):hover{
  box-shadow:0 10px 22px rgba(99,102,241,.45);
}

/* REMOVER */

.invItem button.remove{
  background:linear-gradient(135deg,#ef4444,#f87171);
  color:#fff;
  border:none;

  box-shadow:0 6px 16px rgba(239,68,68,.35);
}

.invItem button.remove:hover{
  box-shadow:0 10px 22px rgba(239,68,68,.45);
}

/* =========================================================
   🎒 INV-BTN — GLOBAL (fora de .invItem: marketplace, modais)
   Mesmo visual de .invItem button; classe usada no HTML do JS
========================================================= */

button.inv-btn,
.inv-btn{
  min-width:88px;
  min-height:34px;
  padding:6px 12px;
  font-size:12px;
  font-weight:800;
  border-radius:10px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  white-space:nowrap;
  cursor:pointer;
  transition:all .15s ease;
  border:none;
  background:linear-gradient(135deg,#6366f1,#8b5cf6);
  color:#fff;
  box-shadow:0 6px 16px rgba(99,102,241,.35);
}

button.inv-btn:hover,
.inv-btn:hover{
  transform:translateY(-1px);
  box-shadow:0 10px 22px rgba(99,102,241,.45);
}

button.inv-btn.remove,
.inv-btn.remove{
  background:linear-gradient(135deg,#ef4444,#f87171);
  box-shadow:0 6px 16px rgba(239,68,68,.35);
}

button.inv-btn.remove:hover,
.inv-btn.remove:hover{
  box-shadow:0 10px 22px rgba(239,68,68,.45);
}

button.inv-btn.secondary,
.inv-btn.secondary{
  background:#1f2937;
  color:#e5e7eb;
  border:1px solid #374151;
  box-shadow:none;
  font-weight:700;
}

button.inv-btn.secondary:hover,
.inv-btn.secondary:hover{
  background:#111827;
  transform:translateY(-1px);
  box-shadow:0 6px 14px rgba(15,23,42,.2);
}

.invItem button.inv-btn.secondary{
  background:#1f2937;
  color:#e5e7eb;
  border:1px solid #374151;
  box-shadow:none;
  font-weight:700;
}

.invItem button.inv-btn.secondary:hover{
  background:#111827;
  box-shadow:0 6px 14px rgba(15,23,42,.2);
}

/* =========================================================
   ⭐ ITEM EQUIPADO
========================================================= */

.invItem.equipped{
  border:2px solid #6366f1;

  background:linear-gradient(180deg,#eef2ff,#f8fafc);

  box-shadow:
    0 0 0 3px rgba(99,102,241,.12),
    0 10px 24px rgba(99,102,241,.18);
}

.invItem.equipped:hover{
  box-shadow:
    0 0 0 3px rgba(99,102,241,.16),
    0 14px 28px rgba(99,102,241,.22);
}

/* =========================================================
   ✨ SKILLS — LAYOUT
========================================================= */

.skill-item{
  display:grid;
  grid-template-columns: 1fr auto;
  align-items:start;
  gap:12px;

  padding:14px 16px;
  border-radius:18px;

  background:linear-gradient(180deg,#ffffff,#fafbff);
  border:1px solid rgba(226,232,240,.85);

  cursor:pointer;
  transition:transform .12s ease, box-shadow .12s ease;
}

.skill-item:hover{
  transform:translateY(-1px);
}

.skill-item.disabled{
  cursor:not-allowed;
  opacity:.6;
}

.skill-left{
  min-width:0;
}

.skill-title{
  font-size:14px;
  font-weight:800;
  color:#0f172a;
}

.skill-desc{
  margin-top:2px;
  font-size:12px;
  font-weight:600;
  color:#64748b;
}

.skill-level{
  justify-self:end;
  align-self:start;
  white-space:nowrap;

  font-size:13px;
  font-weight:900;
  color:#6366f1;
}

.skill-active{
  display:inline-flex;
  align-items:center;
  gap:4px;

  margin-top:6px;

  font-size:10.5px;
  font-weight:900;

  color:#ca8a04;

  background:rgba(250,204,21,.14);
  border:1px solid rgba(250,204,21,.45);

  padding:2px 8px;
  border-radius:999px;
}

.skill-item.active{
  border:2px solid #facc15;
  box-shadow:
    0 0 0 3px rgba(250,204,21,.12),
    0 12px 28px rgba(99,102,241,.18);
}

.skill-main{
  display:grid;
  grid-template-columns:1fr auto;
  gap:12px;
  align-items:start;
}

.mission-head{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
}


/* =========================================================
   🏆 RANKING LAYOUT FIX
========================================================= */

.ranking-list{
  display:flex;
  flex-direction:column;
  gap:10px;
}

.rank-row{
  background:linear-gradient(180deg,#ffffff,#f8fafc);
  border:1px solid #e2e8f0;
  border-radius:14px;
  padding:12px 14px;
  transition:.15s ease;
}

.rank-row:hover{
  transform:translateY(-1px);
  box-shadow:0 10px 22px rgba(99,102,241,.18);
}

.rank-row.me{
  border:2px solid #facc15;
  background:linear-gradient(90deg,#fff7ed,#ffedd5);
}

/* =========================================================
   👥 FRIEND ACTION BUTTONS — PREMIUM FIX
========================================================= */

.friend-actions{
  display:flex;
  gap:8px;
  align-items:center;
}

.mini-btn{
  width:36px;
  height:36px;
  border-radius:12px;
  border:1px solid rgba(100,116,139,.35);
  background:linear-gradient(180deg,#ffffff,#f1f5f9);
  color:#475569;
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:15px;
  transition:all .18s ease;
  box-shadow:0 4px 10px rgba(15,23,42,.10);
}

.mini-btn:hover{
  transform:translateY(-1px) scale(1.05);
}

/* ⚔️ desafiar */
.mini-btn.primary:hover{
  background:linear-gradient(135deg,#6366f1,#8b5cf6);
  color:white;
  border-color:transparent;
  box-shadow:0 0 12px rgba(99,102,241,.45);
}

/* 💬 mensagem */
.mini-btn.msg:hover{
  background:rgba(56,189,248,.15);
  border-color:#38bdf8;
  color:#38bdf8;
}

/* ❌ remover */
.mini-btn.danger:hover{
  background:rgba(239,68,68,.15);
  border-color:#ef4444;
  color:#ef4444;
}



/* =========================================================
   💬 DM MODAL — CHAT LAYOUT
========================================================= */

.dm-modal-shell{
  display:flex;
  flex-direction:column;
  flex:1 1 0;
  min-height:0;
  max-height:100%;
  overflow:hidden;
}

.dm-modal-sticky{
  flex-shrink:0;
  position:sticky;
  top:0;
  z-index:3;
  background:linear-gradient(180deg,#fff 85%,rgba(255,255,255,.92));
  padding-bottom:6px;
}

.dm-modal-mid{
  flex:1;
  min-height:0;
  display:flex;
  flex-direction:column;
}

.dm-modal-bottom{
  flex-shrink:0;
  padding-top:6px;
  padding-bottom:2px;
  background:#fff;
  border-top:1px solid #e2e8f0;
  position:relative;
  z-index:2;
}

#dmMessages{
  display:flex;
  flex-direction:column;
  gap:10px;
  padding:6px 2px;
  overflow-y:auto;
  overflow-x:hidden;
  -webkit-overflow-scrolling:touch;
}

/* Única área rolável do chat: mensagens (topo/rodapé do DM ficam fixos no modal) */
.dm-messages-scroll{
  flex:1 1 0;
  min-height:0;
  max-height:none;
}

@media (max-width:520px){
  .dm-messages-scroll{
    min-height:0;
  }
}

/* linha */

.dm-row{
  display:flex;
  width:100%;
}

.dm-row.me{
  justify-content:flex-end;
}

.dm-row.other{
  justify-content:flex-start;
}

.dm-line-inner{
  display:flex;
  align-items:flex-start;
  justify-content:flex-start;
  gap:8px;
  max-width:min(92%, 420px);
}

.dm-row.me .dm-line-inner{
  justify-content:flex-end;
}

.dm-line-inner .dm-bubble{
  flex:1;
  min-width:0;
  max-width:100%;
}

.dm-row-report{
  flex-shrink:0;
  margin-top:2px;
}

/* ===============================
   💬 BUBBLES
=============================== */

.dm-bubble{
  position:relative;
  max-width:75%;
  padding:10px 14px;
  border-radius:16px;
  font-weight:600;
  line-height:1.35;
  word-break:break-word;
}

/* recebida */

.dm-row.other .dm-bubble{
  background:#eef2f7;
  color:#1e293b;
  border-top-left-radius:6px;
  max-width:100%;
}

/* enviada */

.dm-row.me{
  justify-content:flex-end;
}

.dm-row.me .dm-bubble{
  background:linear-gradient(135deg,#6366f1,#8b5cf6);
  color:white;
  border-top-right-radius:6px;
  max-width:100%;
}

/* timestamp */

.dm-time{
  font-size:11px;
  opacity:.6;
  margin-top:4px;
}
  
/* =========================================================
   💬 DM INPUT BAR
========================================================= */

.dm-emoji-wrap{
  position:relative;
  padding:4px 10px 2px;
}

.dm-emoji-picker-toggle{
  min-height:42px;
  min-width:52px;
  padding:0 12px;
  border:1px solid #e2e8f0;
  border-radius:12px;
  background:#fff;
  font-size:1.35rem;
  line-height:1;
  cursor:pointer;
  box-shadow:0 2px 8px rgba(15,23,42,.06);
  transition:transform .12s ease, border-color .12s ease, box-shadow .12s ease;
}

.dm-emoji-picker-toggle:hover{
  border-color:#a5b4fc;
  box-shadow:0 2px 10px rgba(99,102,241,.2);
}

.dm-emoji-picker-toggle:active{
  transform:scale(.96);
}

.dm-emoji-picker-panel{
  position:absolute;
  left:10px;
  right:10px;
  bottom:100%;
  margin-bottom:6px;
  display:grid;
  grid-template-columns:repeat(5, minmax(0, 1fr));
  gap:6px;
  padding:10px;
  background:#fff;
  border:1px solid #e2e8f0;
  border-radius:14px;
  box-shadow:0 12px 32px rgba(15,23,42,.14);
  z-index:40;
  max-height:min(38vh, 200px);
  overflow-y:auto;
}

.dm-emoji-btn{
  min-width:0;
  min-height:38px;
  padding:0;
  border:1px solid #e2e8f0;
  border-radius:10px;
  background:#f8fafc;
  font-size:1.1rem;
  line-height:1;
  cursor:pointer;
  transition:transform .12s ease, border-color .12s ease, box-shadow .12s ease;
}

.dm-emoji-btn:active{
  transform:scale(.94);
}

.dm-emoji-btn:hover{
  border-color:#a5b4fc;
  box-shadow:0 2px 8px rgba(99,102,241,.2);
}

.dm-input-row{
  padding:10px;
  padding-bottom:max(10px, env(safe-area-inset-bottom, 0px));
  display:flex;
  gap:8px;
  align-items:stretch;
  border-top:1px solid #e2e8f0;
  background:linear-gradient(180deg,#f8fafc,#eef2ff);
}

.dm-input-row input{
  flex:1;
  min-height:44px;
  border-radius:12px;
  border:1px solid #cbd5e1;
  padding:10px 12px;
  font-weight:600;
  font-size:16px;
  outline:none;
}

.dm-input-row input:focus{
  border-color:#6366f1;
  box-shadow:0 0 0 2px rgba(99,102,241,.15);
}

.dm-send-btn{
  min-height:44px;
  min-width:88px;
  padding:10px 16px;
  border-radius:12px;
  border:none;
  font-weight:800;
  cursor:pointer;
  background:linear-gradient(135deg,#6366f1,#8b5cf6);
  color:white;
  box-shadow:0 6px 16px rgba(99,102,241,.35);
  transition:.15s ease;
  width:auto;
  font-size:14px;
  flex-shrink:0;
}


.dm-send-btn:hover{
  transform:translateY(-1px);
}

/* ===============================
   💬 DM BUBBLE
=============================== */

.dm-row{
  position:relative;
}

/* ===============================
   🚨 DM REPORT — PREMIUM
=============================== */

/* ===============================
   🚨 DM REPORT — PREMIUM FIX
=============================== */

.dm-bubble{
  position:relative;
}

.dm-report-btn{
  position:absolute;
  top:-6px;
  right:-6px;

  width:24px;
  height:24px;
  border-radius:999px;
  border:none;

  background:rgba(239,68,68,.12);
  color:#ef4444;

  font-size:12px;
  cursor:pointer;

  display:flex;
  align-items:center;
  justify-content:center;

  opacity:.5;
  pointer-events:none;
  backdrop-filter: blur(4px);

  transition:all .18s ease;
}

/* aparece no hover */

.dm-row.other:hover .dm-report-btn{
  opacity:.9;
  pointer-events:auto;
  transform:scale(1.08);
  background:rgba(239,68,68,.18);
}

/* Touch: sem hover — denúncia acessível */
@media (hover:none),(pointer:coarse){
  .dm-row.other .dm-report-btn{
    opacity:.75;
    pointer-events:auto;
  }
}

.dm-report-btn:active{
  transform:scale(.92);
}

.dm-typing{
  font-size:12px;
  color:#6366f1;
  font-weight:700;
  padding:4px 10px;
  animation:dmPulse 1.2s infinite;
}

@keyframes dmPulse{
  0%{opacity:.4}
  50%{opacity:1}
  100%{opacity:.4}
}

.dm-sound-btn{
  float:right;
  margin-left:8px;
  background:rgba(255,255,255,.18);
  border:none;
  color:white;
  border-radius:8px;
  padding:4px 8px;
  cursor:pointer;
  font-size:13px;
}

.dm-sound-btn:hover{
  background:rgba(255,255,255,.32);
}

#dmInput{
  flex:1;
  min-width:0;
}

.dm-input-row{
  display:flex !important;
}

/* ===============================
   💬 DM TOPBAR
=============================== */

.dm-topbar{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  flex-wrap:wrap;
  margin-bottom:10px;
  padding:2px 0 4px;
}

.dm-topbar-cluster{
  display:flex;
  align-items:center;
  gap:8px;
}

.dm-topbar-label{
  font-size:10px;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.06em;
  color:#64748b;
}

.dm-sabedoria-pill{
  font-size:0.95rem;
  font-weight:800;
  color:#0f172a;
}

.dm-sound-btn{
  width:32px;
  height:32px;
  border-radius:10px;
  border:none;
  cursor:pointer;

  background:rgba(99,102,241,.12);
  color:#6366f1;
  font-size:16px;

  display:flex;
  align-items:center;
  justify-content:center;

  transition:.18s ease;
}

.dm-sound-btn:hover{
  transform:scale(1.08);
  background:rgba(99,102,241,.22);
}

/* ===============================
   💬 DM BADGE (VERDE)
=============================== */

.dm-badge{
  background: linear-gradient(135deg,#22c55e,#16a34a) !important;
  color:#fff;
  right: 38px !important;   /* puxa pra esquerda */
  top: -6px;
  min-width: 18px;
  height: 18px;
  font-size: 11px;
  font-weight: 800;
  border-radius: 999px;
  box-shadow: 0 0 0 2px #fff,
              0 4px 10px rgba(34,197,94,.45);
}

/* =========================================================
   🔥 DM BADGE — HARD OVERRIDE (CRÍTICO)
========================================================= */

.friends-badge.dm-badge{
  background: linear-gradient(135deg,#22c55e,#16a34a) !important;
  color:#fff !important;

  right: 38px !important;   /* puxa pra esquerda do badge de amigos */
  top: -6px !important;

  min-width: 18px;
  height: 18px;
  font-size: 11px;
  font-weight: 800;
  border-radius: 999px;

  display: none; /* estado inicial seguro */

  box-shadow:
    0 0 0 2px #fff,
    0 4px 10px rgba(34,197,94,.45);
}

.dm-status{
  font-size:12px;
  font-weight:600;
  text-align:center;
  margin-top:6px;
  opacity:.9;
}

.dm-status.error{ color:#ff6b6b; }
.dm-status.ok{ color:#4cd964; }
.dm-status.info{ color:#ffd166; }


/* =========================================================
   📜 MISSIONS — FOUNDATION (ÚNICA FONTE DA VERDADE)
========================================================= */

.missions-list{
  display:flex;
  flex-direction:column;
  gap:12px;
}

/* =========================================================
   🧩 CARD BASE (todas missões)
========================================================= */

.mission{
  position:relative;
  padding:14px 16px;
  border-radius:16px;
  overflow:hidden;

  background:linear-gradient(180deg,#ffffff,#fafbff);
  border:1px solid rgba(226,232,240,.9);

  box-shadow:0 6px 16px rgba(15,23,42,.06);
  transition:all .18s ease;
}

.mission:hover{
  transform:translateY(-1px);
  box-shadow:0 10px 22px rgba(15,23,42,.10);
}

/* =========================================================
   🧱 HEADER
========================================================= */

.mission-top{
  display:flex;
  align-items:center;
  gap:10px;
}

.mission-title{
  flex:1;
  font-size:14px;
  font-weight:800;
  color:#0f172a;
  line-height:1.25;
}

.mission-count{
  font-size:13px;
  font-weight:900;
  color:#6366f1;
  min-width:52px;
  text-align:right;
}

/* =========================================================
   🏷️ BADGE
========================================================= */

.mission-badge{
  font-size:11px;
  font-weight:700;
  letter-spacing:.3px;
  padding:5px 10px;
  border-radius:999px;

  background:rgba(139,92,246,.18);
  color:#c4b5fd;

  border:1px solid rgba(139,92,246,.35);

  box-shadow:none; /* 🔥 remove glow pesado */
  backdrop-filter: blur(6px);
}

/* =========================================================
   📊 PROGRESS BAR
========================================================= */

.mission-bar{
  margin-top:10px;
  height:6px;
  border-radius:999px;
  background:#e2e8f0;
  overflow:hidden;
}

.mission-fill{
  height:100%;
  border-radius:inherit;

  background:linear-gradient(90deg,#8b5cf6,#6366f1);
  box-shadow:0 0 6px rgba(139,92,246,.35); /* ↓ antes era forte */

  transition:width .35s ease;
}

.mission-reward{
  margin-top:8px;
  font-size:11px;
  font-weight:700;
  color:#475569;
  background:rgba(99,102,241,.07);
  border:1px solid rgba(99,102,241,.16);
  border-radius:10px;
  padding:6px 8px;
}

.mission.custom .mission-reward{
  color:#dbeafe;
  background:rgba(59,130,246,.14);
  border-color:rgba(96,165,250,.35);
}

.mission-claim{
  margin-top:8px;
  width:100%;
  border-radius:10px;
  font-weight:800;
  font-size:12px;
  padding:8px 10px;
}

.mission-claim-btn{
  border:1px solid rgba(16,185,129,.38);
  background:linear-gradient(135deg,#ecfdf5,#d1fae5);
  color:#065f46;
  cursor:pointer;
}

.mission-claimed{
  border:1px solid rgba(148,163,184,.35);
  background:rgba(148,163,184,.08);
  color:#475569;
  text-align:center;
}

/* =========================================================
   ✅ MISSÃO NORMAL CONCLUÍDA
========================================================= */

.mission.done{
  background:linear-gradient(90deg,#f0fdf4,#ecfdf5);
  border-color:#22c55e;
}

.mission.done .mission-fill{
  background:linear-gradient(90deg,#22c55e,#16a34a);
}

.mission.done .mission-count{
  color:#16a34a;
}

/* =========================================================
   🌌 MISSÃO ESPECIAL — PREMIUM SUAVE
========================================================= */

.mission.custom{
  background:
    radial-gradient(circle at 15% 0%, rgba(139,92,246,.18), transparent 60%),
    linear-gradient(135deg,#171c32,#1c2444);

  border:1px solid rgba(139,92,246,.28);
  box-shadow:
    0 10px 26px rgba(15,23,42,.28),
    inset 0 1px 0 rgba(255,255,255,.04);

  backdrop-filter: blur(6px);
}

/* título mais elegante */

.mission.custom .mission-title{
  color:#e6e9f2;
  font-weight:700;
  letter-spacing:.2px;
}

/* contador mais suave */

.mission.custom .mission-count{
  color:#c7bfff;
  font-weight:800;
}

/* barra base mais fina visualmente */

.mission.custom .mission-bar{
  height:5px;
  background:rgba(255,255,255,.08);
}

/* progresso roxo premium */

.mission.custom .mission-fill{
  background:linear-gradient(90deg,#8b5cf6,#6366f1);
  box-shadow:0 0 8px rgba(139,92,246,.45);
}

/* badge especial — menos gritante */

.mission.custom .mission-badge{
  background:linear-gradient(135deg,#8b5cf6,#6366f1);
  box-shadow:0 4px 12px rgba(99,102,241,.28);
  font-size:10px;
  padding:5px 10px;
}

/* =========================================================
   🏆 ESPECIAL CONCLUÍDA — PREMIUM DE VERDADE
========================================================= */

.mission.custom.done{
  background:
    radial-gradient(circle at 20% 0%, rgba(34,197,94,.12), transparent 60%),
    linear-gradient(135deg,#1a2333,#1f2a40);

  border:1px solid rgba(34,197,94,.35);

  box-shadow:
    0 8px 24px rgba(0,0,0,.35),
    inset 0 0 18px rgba(34,197,94,.08);
}

/* barra verde elegante (menos neon) */

.mission.custom.done .mission-fill{
  background:linear-gradient(90deg,#22c55e,#16a34a);
  box-shadow:0 0 8px rgba(34,197,94,.35);
}

/* badge verde premium */

.mission.custom.done .mission-badge{
  background:linear-gradient(135deg,#22c55e,#16a34a);
  box-shadow:0 4px 12px rgba(34,197,94,.35);
}

/* contador verde suave */

.mission.custom.done .mission-count{
  color:#86efac;
}

/* glow MUITO mais sutil */

.mission.custom.done::after{
  content:"";
  position:absolute;
  inset:0;
  border-radius:inherit;
  background:linear-gradient(
    120deg,
    transparent 35%,
    rgba(255,255,255,.06),
    transparent 65%
  );
  opacity:.35;
  pointer-events:none;
}

/* =========================================================
   📱 RESPONSIVO
========================================================= */

@media (max-width:480px){
  .mission-title{font-size:13.5px}
  .mission-count{font-size:12px;min-width:46px}
  .mission-badge{font-size:10px;padding:4px 8px}
}

/* =========================================================
   🧠 TYPOGRAPHY TUNING — PREMIUM
========================================================= */

/* títulos de seção mais elegantes */

.missions-section-title{
  font-weight:700;              /* ↓ antes era pesado */
  font-size:13px;
  letter-spacing:.3px;
  color:#64748b;
  margin-bottom:14px;
  margin-top:6px;
}

/* missão título menos gritante */

.mission-title{
  font-weight:700;              /* ↓ era 800/900 */
  letter-spacing:.2px;
}

/* contadores menos agressivos */

.mission-count{
  font-weight:800;
  font-size:13.5px;
}

/* motivação menos pesada */

.missions-motivation{
  font-weight:600;
}

/* =========================================================
   🫁 SECTION SPACING — PRODUCT FEEL
========================================================= */

.missions-section{
  margin-top:22px;
}

.missions-section:first-child{
  margin-top:0;
}


/* espaço entre blocos de missão */

.missions-list{
  gap:12px;
}

/* =========================================
   🧩 MISSIONS COLLAPSIBLE — PREMIUM
========================================= */

.missions-section{
  margin-top:18px;
}

/* header clicável */

.missions-section-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;

  cursor:pointer;
  user-select:none;

  padding:4px 2px;
}

/* título mais leve (menos grito) */

.missions-section-title{
  font-weight:700;
  font-size:13px;
  letter-spacing:.25px;
  color:#64748b;
}

/* toggle */

.missions-section-toggle{
  font-weight:900;
  font-size:16px;
  color:#94a3b8;
  transition:transform .25s ease, color .2s ease;
}

/* lista animada */

.missions-list{
  overflow:hidden;
  transition:max-height .28s ease, opacity .2s ease;
}

/* estado fechado */

.missions-section.collapsed .missions-list{
  max-height:0;
  opacity:.25;
}

/* seta girando */

.missions-section.collapsed .missions-section-toggle{
  transform:rotate(-90deg);
  color:#cbd5e1;
}


.payment-modal {
 position: fixed;
 inset: 0;
 background: rgba(0,0,0,0.6);
 display:flex;
 align-items:center;
 justify-content:center;
 z-index:9999;
}

.payment-card {
 width:420px;
 background:#111;
 border-radius:14px;
 padding:28px;
 box-shadow:0 20px 40px rgba(0,0,0,.4);
}

.payment-tabs {
 display:flex;
 gap:10px;
 margin-bottom:20px;
}

.payment-tabs button {
 flex:1;
 padding:10px;
 border-radius:8px;
 border:none;
 background:#222;
 color:#fff;
 cursor:pointer;
}

.payment-tabs .active {
 background:#6c5ce7;
}

.pix-qr {
 width:200px;
 margin:auto;
 display:block;
}

.pay-container{
display:flex;
flex-direction:column;
gap:18px;
padding:10px;
}

.pay-tabs{
display:flex;
gap:10px;
}

.pay-tabs button{
flex:1;
padding:12px;
border-radius:10px;
border:none;
background:#2a2a2a;
color:white;
font-weight:600;
cursor:pointer;
}

.pay-tabs .active{
background:linear-gradient(135deg,#7b5cff,#5a67ff);
}

.pay-section{
display:flex;
flex-direction:column;
align-items:center;
gap:16px;
}

.pix-qr{
width:220px;
border-radius:10px;
}

.copy-btn{
padding:10px 16px;
border:none;
background:#5a67ff;
color:white;
border-radius:8px;
cursor:pointer;
}

.pix-timer{
font-weight:600;
font-size:15px;
opacity:.8;
animation:pulseTimer 1.5s infinite;
}

@keyframes pulseTimer{

0%{opacity:.4}
50%{opacity:1}
100%{opacity:.4}

}

@keyframes premiumFlash{

0%{background:#0f172a}
50%{background:#1e1b4b}
100%{background:#0f172a}

}

.card-input{
width:100%;
padding:12px;
border-radius:8px;
border:1px solid #333;
background:#1b1b1b;
color:white;
}

.card-row{
display:flex;
gap:10px;
width:100%;
}

.pay-btn{
width:100%;
padding:14px;
border:none;
border-radius:10px;
background:linear-gradient(135deg,#7b5cff,#5a67ff);
color:white;
font-weight:600;
cursor:pointer;
}

.hidden{
display:none;
}

.pix-qr{
width:220px;
border-radius:10px;
animation: qrGlow 2s infinite alternate;
}

@keyframes qrGlow{

0%{
box-shadow:0 0 0px rgba(120,90,255,0);
}

100%{
box-shadow:0 0 18px rgba(120,90,255,.4);
}

}

