
/* ── Player HUD ──────────────────────────────────────────────── */
.missions-header { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 1.5rem; margin-bottom: 1.5rem; }
.player-hud { display: flex; gap: 1rem; flex-wrap: wrap; }
.hud-stat { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: .6rem 1rem; text-align: center; min-width: 90px; }
.hud-val { display: block; font-size: 1rem; font-weight: 700; }
.hud-stat small { font-size: .7rem; color: var(--text-muted); }
.text-gold { color: #f59e0b; }
.text-purple { color: #a855f7; }
.text-blue { color: #3b82f6; }

/* ── Timer Bar ───────────────────────────────────────────────── */
.mission-timer-bar { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem 1.25rem; display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap; margin-bottom: 2rem; }
.timer-info { display: flex; align-items: center; gap: .75rem; white-space: nowrap; }
.timer-label { color: var(--text-muted); font-size: .85rem; }
.timer-count { font-size: 1.5rem; font-weight: 800; color: var(--primary); font-variant-numeric: tabular-nums; letter-spacing: .05em; min-width: 60px; }
.timer-progress-track { flex: 1; min-width: 120px; height: 6px; background: var(--surface2); border-radius: 99px; overflow: hidden; }
.timer-progress-fill { height: 100%; background: linear-gradient(90deg, var(--primary), #a855f7); border-radius: 99px; transition: width .5s linear; width: 0%; }

/* ── Sections ────────────────────────────────────────────────── */
.missions-section { margin-bottom: 2.5rem; }
.missions-section h2 { font-size: 1.1rem; font-weight: 700; margin-bottom: 1rem; display: flex; align-items: center; gap: .5rem; }
.badge-count { background: var(--primary); color: #fff; border-radius: 99px; padding: .1rem .5rem; font-size: .75rem; font-weight: 700; }
.empty-hint { color: var(--text-muted); font-size: .9rem; padding: 1rem 0; }

/* ── Mission Card ────────────────────────────────────────────── */
.missions-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1rem; }
.mission-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.25rem; position: relative; overflow: hidden; transition: var(--transition); }
.mission-card::before { content:''; position:absolute; inset:0; background: var(--m-color,var(--primary)); opacity:.04; pointer-events:none; }
.mission-card:hover { transform: translateY(-2px); border-color: var(--m-color, var(--primary)); }
.mission-card--urgent { border-color: #ef4444 !important; animation: pulse-red 1s ease-in-out infinite alternate; }
.mission-card--warning { border-color: #f59e0b !important; }
@keyframes pulse-red { from { box-shadow: none; } to { box-shadow: 0 0 12px rgba(239,68,68,.4); } }

.mission-card__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: .75rem; }
.mission-icon { font-size: 2rem; }
.mission-diff { padding: .2rem .65rem; border-radius: 99px; font-size: .7rem; font-weight: 700; text-transform: uppercase; }
.diff-fácil { background: rgba(34,197,94,.15); color: #22c55e; border: 1px solid #22c55e44; }
.diff-médio { background: rgba(245,158,11,.15); color: #f59e0b; border: 1px solid #f59e0b44; }
.diff-difícil { background: rgba(239,68,68,.15); color: #ef4444; border: 1px solid #ef444444; }
.diff-lendário { background: rgba(168,85,247,.2); color: #a855f7; border: 1px solid #a855f744; animation: shimmer-legend 2s ease infinite; }
@keyframes shimmer-legend { 0%,100%{opacity:1} 50%{opacity:.6} }

.mission-title { font-size: .95rem; font-weight: 700; margin-bottom: .4rem; }
.mission-desc { font-size: .82rem; color: var(--text-muted); margin-bottom: .75rem; line-height: 1.45; }
.mission-rewards { display: flex; gap: .5rem; margin-bottom: .5rem; flex-wrap: wrap; }
.reward-xp { background: rgba(168,85,247,.15); border: 1px solid #a855f744; color: #a855f7; border-radius: 99px; padding: .2rem .7rem; font-size: .75rem; font-weight: 700; }
.reward-money { background: rgba(245,158,11,.15); border: 1px solid #f59e0b44; color: #f59e0b; border-radius: 99px; padding: .2rem .7rem; font-size: .75rem; font-weight: 700; }
.reward-xp.big, .reward-money.big { font-size: 1.1rem; padding: .35rem 1rem; }
.mission-timer-mini { font-size: .75rem; color: var(--text-muted); margin-bottom: .75rem; font-variant-numeric: tabular-nums; }
.mission-actions { display: flex; gap: .5rem; flex-wrap: wrap; }
.btn--complete { background: rgba(34,197,94,.15); border: 1px solid #22c55e44; color: #22c55e; }
.btn--complete:hover { background: rgba(34,197,94,.3); }
.btn--skip { background: var(--surface2); border: 1px solid var(--border); color: var(--text-muted); }
.btn--skip:hover { color: var(--text); }

/* ── Completed Log ───────────────────────────────────────────── */
.missions-log { display: flex; flex-direction: column; gap: .5rem; }
.log-row { display: flex; align-items: center; gap: .75rem; background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: .6rem .9rem; }
.log-icon { font-size: 1.3rem; }
.log-info { flex: 1; }
.log-info strong { display: block; font-size: .875rem; }
.log-info small { color: var(--text-muted); font-size: .75rem; }
.log-rewards { display: flex; flex-direction: column; align-items: flex-end; gap: .2rem; }

/* ── XP Bar ──────────────────────────────────────────────────── */
.xp-section { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem 1.25rem; margin-bottom: 2rem; }
.xp-header { display: flex; justify-content: space-between; font-size: .85rem; margin-bottom: .6rem; }
.xp-track { height: 10px; background: var(--surface2); border-radius: 99px; overflow: hidden; }
.xp-fill { height: 100%; background: linear-gradient(90deg, #a855f7, #7c3aed); border-radius: 99px; transition: width .8s ease; }

/* ── Leaderboard ─────────────────────────────────────────────── */
.leaderboard-list { display: flex; flex-direction: column; gap: .5rem; }
.lb-row { display: flex; align-items: center; gap: .75rem; background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: .7rem 1rem; }
.lb-row--you { border-color: var(--primary); background: rgba(124,58,237,.08); }
.lb-rank { font-size: 1.3rem; width: 2rem; text-align: center; }
.lb-avatar { font-size: 1.2rem; }
.lb-name { flex: 1; font-size: .9rem; font-weight: 600; }
.lb-xp { color: #a855f7; font-size: .8rem; font-weight: 700; min-width: 80px; text-align: right; }
.lb-money { color: #f59e0b; font-size: .8rem; font-weight: 700; min-width: 100px; text-align: right; }

/* ── Reward Popup ────────────────────────────────────────────── */
.overlay { position: fixed; inset: 0; background: rgba(0,0,0,.6); z-index: 100; backdrop-filter: blur(4px); }
.reward-popup { position: fixed; inset: 0; z-index: 101; display: flex; align-items: center; justify-content: center; pointer-events: none; }
.reward-popup__inner { background: var(--surface); border: 1px solid var(--primary); border-radius: 16px; padding: 2rem; text-align: center; max-width: 360px; width: 90%; pointer-events: all; animation: popIn .35s cubic-bezier(.18,.89,.32,1.28); }
@keyframes popIn { from{transform:scale(.7);opacity:0} to{transform:scale(1);opacity:1} }
.reward-popup__icon { font-size: 3.5rem; margin-bottom: .5rem; }
.reward-popup__rewards { margin: 1rem 0 1.5rem; }
.popup-reward-row { display: flex; gap: .75rem; justify-content: center; flex-wrap: wrap; align-items: center; }
.bonus-badge { background: rgba(245,158,11,.2); border: 1px solid #f59e0b; color: #f59e0b; border-radius: 99px; padding: .25rem .75rem; font-size: .75rem; font-weight: 700; }
