/* ══════════════════════════════════════════════
   MISSIONS.CSS — Missions & Resources Page Styles
   ══════════════════════════════════════════════ */

/* ── FILTER TABS ── */
.missions-filter-row {
  display: flex; gap: 6px; margin-bottom: 12px;
  overflow-x: auto; padding-bottom: 2px; scrollbar-width: none;
}
.missions-filter-row::-webkit-scrollbar { display: none; }
.missions-filter-tab {
  flex-shrink: 0; padding: 7px 16px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 20px; color: var(--text2);
  font-size: 12px; font-weight: 800; cursor: pointer;
  font-family: inherit; transition: all 0.2s; white-space: nowrap;
  text-transform: uppercase; letter-spacing: 0.5px;
}
.missions-filter-tab.active {
  background: var(--accent); border-color: var(--accent);
  color: white; box-shadow: 0 0 14px rgba(180,79,255,0.4);
}

/* ── BAR FILTER ── */
.bar-filter-row {
  display: flex; gap: 6px; margin-bottom: 16px;
  overflow-x: auto; padding-bottom: 2px; scrollbar-width: none;
}
.bar-filter-row::-webkit-scrollbar { display: none; }
.bar-chip {
  flex-shrink: 0; padding: 5px 12px;
  background: var(--surface2); border: 1px solid var(--border);
  border-radius: 20px; color: var(--text2);
  font-size: 11px; font-weight: 700; cursor: pointer;
  font-family: inherit; transition: all 0.2s; white-space: nowrap;
}
.bar-chip.active {
  border-color: var(--gold); color: var(--gold);
  background: rgba(255,215,0,0.08);
}

/* ── MISSION CARD ── */
.mission-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 20px; padding: 18px; margin-bottom: 12px;
  position: relative; overflow: hidden; transition: all 0.15s;
}
.mission-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
}
.mission-card.tonight::before  { background: linear-gradient(90deg, var(--neon-pink), var(--gold)); }
.mission-card.week::before     { background: linear-gradient(90deg, var(--accent), var(--neon-pink)); }
.mission-card.group::before    { background: linear-gradient(90deg, var(--neon-cyan), var(--accent)); }
.mission-card.competitive::before { background: linear-gradient(90deg, var(--gold), var(--neon-green)); }
.mission-card.repeatable::before  { background: linear-gradient(90deg, var(--neon-green), var(--neon-cyan)); }
.mission-card.completed { opacity: 0.6; }
.mission-card.completed::after {
  content: '✓ COMPLETED'; position: absolute; top: 14px; right: 14px;
  background: rgba(0,255,136,0.15); border: 1px solid var(--neon-green);
  color: var(--neon-green); font-size: 9px; font-weight: 800;
  padding: 3px 8px; border-radius: 8px; letter-spacing: 1px;
}

.mission-top {
  display: flex; justify-content: space-between; align-items: flex-start;
  margin-bottom: 10px;
}
.mission-bar-label {
  display: flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 700; color: var(--text2);
}
.mission-type-badge {
  font-size: 9px; font-weight: 800; padding: 3px 8px;
  border-radius: 8px; text-transform: uppercase; letter-spacing: 1px; flex-shrink: 0;
}
.badge-tonight   { background: rgba(255,45,120,0.15);  color: var(--neon-pink); border: 1px solid rgba(255,45,120,0.3); }
.badge-week      { background: rgba(180,79,255,0.15);  color: var(--accent);    border: 1px solid rgba(180,79,255,0.3); }
.badge-group     { background: rgba(0,245,255,0.12);   color: var(--neon-cyan); border: 1px solid rgba(0,245,255,0.25); }
.badge-compete   { background: rgba(255,215,0,0.12);   color: var(--gold);      border: 1px solid rgba(255,215,0,0.25); }
.badge-repeat    { background: rgba(0,255,136,0.12);   color: var(--neon-green);border: 1px solid rgba(0,255,136,0.25); }

.mission-title { font-size: 17px; font-weight: 900; letter-spacing: -0.3px; margin-bottom: 6px; line-height: 1.3; }
.mission-desc  { font-size: 13px; color: var(--text2); margin-bottom: 12px; line-height: 1.5; }

.mission-rewards { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.reward-chip {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 10px; border-radius: 20px; font-size: 11px; font-weight: 700;
}
.reward-xp    { background: rgba(255,215,0,0.1);  border: 1px solid rgba(255,215,0,0.3);  color: var(--gold); }
.reward-prize { background: rgba(255,45,120,0.1); border: 1px solid rgba(255,45,120,0.3); color: var(--neon-pink); }
.reward-badge { background: rgba(180,79,255,0.1); border: 1px solid rgba(180,79,255,0.3); color: var(--accent); }

.mission-footer {
  display: flex; justify-content: space-between; align-items: center; gap: 8px;
}
.mission-expiry { font-size: 11px; color: var(--text2); font-weight: 700; }

/* ── COMPETITIVE STATS ── */
.comp-stats-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 12px;
}
.comp-stat {
  background: var(--surface2); border-radius: 10px; padding: 10px 12px; text-align: center;
}
.comp-stat-val   { font-size: 20px; font-weight: 900; line-height: 1; margin-bottom: 2px; }
.comp-stat-label { font-size: 9px; color: var(--text2); font-weight: 700; text-transform: uppercase; letter-spacing: 1px; }
.comp-progress { height: 4px; background: var(--border); border-radius: 2px; margin-bottom: 12px; overflow: hidden; }
.comp-progress-fill { height: 100%; background: linear-gradient(90deg, var(--gold), var(--neon-green)); border-radius: 2px; }

/* ── GROUP MEMBERS ── */
.group-members-row {
  display: flex; gap: 6px; margin-bottom: 12px; align-items: center;
}
.group-avatar {
  width: 32px; height: 32px; border-radius: 50%; border: 2px solid var(--bg);
  background: linear-gradient(135deg, var(--accent), var(--neon-pink));
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 800;
}
.group-avatar.empty {
  background: var(--surface2); border: 2px dashed var(--border);
  color: var(--text2); font-size: 16px;
}
.group-status-label { font-size: 11px; color: var(--text2); font-weight: 700; }

/* ── STREAK ── */
.mission-streak-pill {
  display: inline-flex; align-items: center; gap: 4px;
  background: rgba(255,149,0,0.1); border: 1px solid rgba(255,149,0,0.3);
  color: var(--gold2); padding: 3px 8px; border-radius: 8px;
  font-size: 10px; font-weight: 800; margin-bottom: 12px;
}

/* ── ACTION BUTTON ── */
.mission-action-btn {
  flex-shrink: 0; padding: 10px 18px; border-radius: 12px;
  font-family: inherit; font-size: 13px; font-weight: 800;
  cursor: pointer; border: none; transition: all 0.15s;
  background: linear-gradient(135deg, var(--accent), var(--neon-pink));
  color: white; box-shadow: 0 0 14px rgba(180,79,255,0.35);
}
.mission-action-btn:active { transform: scale(0.96); }
.mission-action-btn:disabled {
  background: var(--surface2); border: 1px solid var(--border);
  color: var(--text2); box-shadow: none; cursor: default;
}

/* ── GUEST TEASER ── */
.missions-guest-teaser {
  background: linear-gradient(160deg, var(--surface) 60%, rgba(180,79,255,0.08));
  border: 1px solid var(--border); border-radius: 20px;
  padding: 28px 20px; text-align: center; margin-bottom: 12px;
}
.missions-guest-teaser-icon  { font-size: 40px; margin-bottom: 12px; }
.missions-guest-teaser-title { font-size: 18px; font-weight: 900; margin-bottom: 8px; }
.missions-guest-teaser-sub   { font-size: 13px; color: var(--text2); margin-bottom: 20px; line-height: 1.5; }

/* ── EMPTY STATE ── */
.missions-empty {
  text-align: center; padding: 48px 20px;
}
.missions-empty-icon  { font-size: 40px; margin-bottom: 12px; }
.missions-empty-title { font-size: 15px; font-weight: 800; color: var(--text2); }

/* ── REDEMPTION MODAL ── */
.redemption-overlay {
  position: fixed; inset: 0; background: rgba(3,3,8,0.92);
  z-index: 7000; display: flex; align-items: flex-end;
  opacity: 0; pointer-events: none; transition: opacity 0.25s;
}
.redemption-overlay.show { opacity: 1; pointer-events: all; }
.redemption-box {
  background: var(--surface); border-radius: 28px 28px 0 0; width: 100%;
  padding: 28px 24px 48px;
  border-top: 2px solid transparent;
  border-image: linear-gradient(90deg, var(--neon-pink), var(--accent), var(--neon-cyan)) 1;
  animation: slideUpModal 0.3s cubic-bezier(0.22,1,0.36,1);
}
@keyframes slideUpModal { from { transform: translateY(100%); } to { transform: translateY(0); } }
.redemption-handle {
  width: 36px; height: 4px; background: var(--border);
  border-radius: 2px; margin: 0 auto 20px;
}
.redemption-title { font-size: 20px; font-weight: 900; margin-bottom: 6px; }
.redemption-sub   { font-size: 13px; color: var(--text2); margin-bottom: 20px; line-height: 1.5; }
.redemption-code-box {
  background: var(--bg); border: 2px solid var(--gold); border-radius: 16px;
  padding: 24px; text-align: center; margin-bottom: 16px;
  box-shadow: 0 0 30px rgba(255,215,0,0.2);
}
.redemption-code {
  font-size: 36px; font-weight: 900; letter-spacing: 8px;
  color: var(--gold); text-shadow: 0 0 20px rgba(255,215,0,0.5);
}
.redemption-code-label {
  font-size: 10px; color: var(--text2); font-weight: 700;
  text-transform: uppercase; letter-spacing: 2px; margin-top: 8px;
}
.redemption-countdown {
  font-size: 13px; color: var(--neon-pink); font-weight: 700; margin-top: 6px;
}
.redemption-how {
  background: var(--surface2); border: 1px solid var(--border);
  border-radius: 14px; padding: 14px; margin-bottom: 20px;
  font-size: 13px; color: var(--text2); line-height: 1.7;
}
.redemption-how strong { color: var(--text); }

/* ── RESOURCES GRID ── */
.resources-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 20px;
}
.resource-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 20px; padding: 22px 16px; text-align: center;
  cursor: pointer; transition: all 0.18s; position: relative; overflow: hidden;
}
.resource-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
}
.resource-card.delivery::before { background: linear-gradient(90deg, var(--gold), var(--gold2)); }
.resource-card.lost::before     { background: linear-gradient(90deg, var(--neon-cyan), var(--accent)); }
.resource-card.coming::before   { background: linear-gradient(90deg, var(--border), var(--border)); }
.resource-card.missed::before   { background: linear-gradient(90deg, var(--neon-pink), var(--accent)); }
.resource-card:active { transform: scale(0.97); }
.resource-card.coming { opacity: 0.5; cursor: default; }
.resource-card-icon  { font-size: 36px; margin-bottom: 10px; }
.resource-card-name  { font-size: 14px; font-weight: 900; margin-bottom: 4px; }
.resource-card-desc  { font-size: 11px; color: var(--text2); font-weight: 600; line-height: 1.4; }
.resource-card-coming-label {
  position: absolute; top: 14px; right: 10px;
  font-size: 9px; font-weight: 800; color: var(--text2);
  text-transform: uppercase; letter-spacing: 1px;
}

/* ══════════════════════════════════════════════
   MISSED CONNECTIONS
   ══════════════════════════════════════════════ */

/* Bar filter chips */
.mc-bar-filter-row {
  display: flex; gap: 6px; margin-bottom: 16px;
  overflow-x: auto; padding-bottom: 2px; scrollbar-width: none;
}
.mc-bar-filter-row::-webkit-scrollbar { display: none; }
.mc-bar-chip {
  flex-shrink: 0; padding: 5px 12px;
  background: var(--surface2); border: 1px solid var(--border);
  border-radius: 20px; color: var(--text2);
  font-size: 11px; font-weight: 700; cursor: pointer;
  font-family: inherit; transition: all 0.2s; white-space: nowrap;
}
.mc-bar-chip.active {
  border-color: var(--neon-pink); color: var(--neon-pink);
  background: rgba(255,45,120,0.08);
}

/* Card */
.mc-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 18px; padding: 16px; margin-bottom: 10px;
  border-left: 3px solid var(--neon-pink);
}
.mc-card-top {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 8px;
}
.mc-bar-tag {
  font-size: 11px; font-weight: 800; color: var(--text2);
  background: var(--surface2); border: 1px solid var(--border);
  padding: 3px 8px; border-radius: 8px;
}
.mc-expiry {
  font-size: 10px; color: var(--text2); font-weight: 700;
}
.mc-time-seen {
  font-size: 11px; color: var(--text2); margin-bottom: 8px; font-weight: 600;
}
.mc-message {
  font-size: 15px; font-weight: 700; line-height: 1.5;
  color: var(--text); margin-bottom: 10px; font-style: italic;
}
.mc-detail {
  font-size: 12px; color: var(--text2); margin-bottom: 5px; line-height: 1.4;
}
.mc-detail-label {
  font-weight: 800; color: var(--text);
}
.mc-footer {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 12px; padding-top: 10px;
  border-top: 1px solid var(--border);
}
.mc-poster { font-size: 11px; color: var(--text2); font-weight: 700; }
.mc-reply-btn {
  background: linear-gradient(135deg, var(--neon-pink), var(--accent));
  border: none; border-radius: 10px; padding: 7px 14px;
  color: white; font-family: inherit; font-size: 12px;
  font-weight: 800; cursor: pointer; transition: all 0.15s;
  box-shadow: 0 0 10px rgba(255,45,120,0.3);
}
.mc-reply-btn:active { transform: scale(0.96); }

/* Modal */
#mc-modal .form-select {
  width: 100%; background: var(--surface2); border: 1.5px solid var(--border);
  border-radius: 14px; padding: 13px 16px; color: var(--text);
  font-family: inherit; font-size: 15px; font-weight: 700;
  margin-bottom: 10px; outline: none; cursor: pointer;
}
#mc-modal .form-select:focus { border-color: var(--neon-pink); }
.mc-anon-row {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 14px; padding: 12px 14px;
  background: var(--surface2); border: 1px solid var(--border);
  border-radius: 12px;
}
.mc-anon-row label { font-size: 13px; font-weight: 700; cursor: pointer; }
.mc-anon-row input[type="checkbox"] { width: 18px; height: 18px; cursor: pointer; accent-color: var(--neon-pink); }

/* ── EVENTS ── */
.event-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 16px; overflow: hidden; margin-bottom: 12px;
}
.event-img { width:100%; height:140px; overflow:hidden; background:var(--surface2); }
.event-body { padding: 14px 16px; }
.event-date-badge {
  font-size: 11px; font-weight: 800; color: var(--neon-pink);
  text-transform: uppercase; letter-spacing: 1px; margin-bottom: 6px;
}
.event-title { font-size: 16px; font-weight: 900; margin-bottom: 5px; }
.event-venue { font-size: 12px; color: var(--text2); margin-bottom: 6px; }
.event-price { font-size: 12px; font-weight: 700; color: var(--neon-green); margin-bottom: 8px; }
.event-ticket-btn {
  display: inline-block; padding: 8px 16px; border-radius: 10px;
  background: var(--accent); color: white; font-size: 13px; font-weight: 800;
  text-decoration: none; transition: all 0.15s;
}
.event-ticket-btn:active { transform: scale(0.97); }
