/* ===================================
   REDE OBSERVATÓRIO BPC — Design System
   =================================== */

/* --- Reset & Base --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --orange:        #FF8400;
  --orange-dark:   #e67600;
  --orange-glow:   rgba(255, 132, 0, 0.15);
  --orange-subtle: rgba(255, 132, 0, 0.08);
  --red-alert:     rgba(255, 39, 59, 0.08);
  --red-border:    rgba(251, 44, 54, 0.30);
  
  --bg:            #f4f5f7;        /* Cinza claro */
  --bg-card:       #ffffff;        /* Cards brancos */
  --bg-card-hover: #fafbfc;
  --bg-input:      #ffffff;
  --border:        rgba(0, 0, 0, 0.08);
  --border-orange: rgba(255, 132, 0, 0.40);
  
  --text:          #2d333b;        /* Texto cinza escuro focado */
  --text-muted:    #5c6670;
  --text-label:    #424a53;
  --font:          'Inter', system-ui, sans-serif;

  /* Subtle vignette para modo claro */
  --vignette: radial-gradient(ellipse 80% 60% at 50% 100%, rgba(255, 132, 0, 0.03) 0%, transparent 70%);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

#app {
  min-height: 100vh;
}

/* --- Typography --- */
h1, h2, h3 { font-weight: 700; line-height: 1.2; }
h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.2rem); }
h3 { font-size: 1.1rem; }
p  { color: var(--text-muted); }

/* --- Avatar Sphere --- */
.sphere {
  display: block;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: radial-gradient(circle at 38% 35%, #ff6bcc 0%, #c040ff 40%, #6030dd 75%, #1a0060 100%);
  box-shadow: 0 0 40px rgba(192, 64, 255, 0.4), 0 0 80px rgba(192, 64, 255, 0.15);
  flex-shrink: 0;
}
.sphere-sm {
  width: 52px;
  height: 52px;
}
.sphere-lg {
  width: 100px;
  height: 100px;
  margin: 0 auto;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 50px;
  border: none;
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--orange);
  color: #1B0300;
}
.btn-primary:hover {
  background: #ff9520;
  box-shadow: 0 0 20px var(--orange-glow);
  transform: translateY(-1px);
}
.btn-primary:active { transform: translateY(0); }

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1.5px solid rgba(255,255,255,0.25);
}
.btn-outline:hover {
  border-color: rgba(0,0,0,0.3);
  background: rgba(0,0,0,0.04);
}

.btn-full { width: 100%; font-size: 1rem; padding: 15px; }

.btn-google {
  background: #f8f8f8;
  color: #111;
  border: none;
  font-weight: 600;
}
.btn-google:hover {
  background: #ffffff;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}
.btn-google svg {
  width: 18px;
  height: 18px;
}

.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none !important;
}

/* --- Vignette background effect --- */
.page-vignette {
  background: var(--bg);
  position: relative;
}
.page-vignette::after {
  content: '';
  position: fixed;
  inset: 0;
  background: var(--vignette);
  pointer-events: none;
  z-index: 0;
}
.page-vignette > * { position: relative; z-index: 1; }

/* ======================
   NAVIGATION / HEADER
   ====================== */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(12px);
}

.nav-logo {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--orange);
  text-decoration: none;
  cursor: pointer;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* ======================
   HOME PAGE
   ====================== */
.home-page {
  display: flex;
  flex-direction: column;
}

/* Hero */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 72px 24px 56px;
  gap: 24px;
}

.hero h1 {
  color: var(--text);
  margin-top: 8px;
}

.hero-subtitle {
  max-width: 620px;
  font-size: 1rem;
  color: var(--text-muted);
  margin: 0 auto;
}

/* Alert Banner */
.alert-banner {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: var(--red-alert);
  border: 1px solid var(--red-border);
  border-radius: 10px;
  font-size: 0.875rem;
  color: var(--text);
  flex-wrap: wrap;
  justify-content: center;
  max-width: 480px;
}

.alert-banner .alert-link {
  color: #ff4455;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.alert-banner .alert-link:hover { text-decoration: underline; }

.hero-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

/* Features Section */
.features {
  padding: 56px 24px;
  max-width: 900px;
  margin: 0 auto;
  width: 100%;
}

.features-title {
  text-align: center;
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  font-weight: 700;
  margin-bottom: 36px;
  color: var(--text);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

@media (max-width: 560px) {
  .features-grid { grid-template-columns: 1fr; }
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  transition: border-color 0.2s, background 0.2s;
}
.feature-card:hover {
  border-color: var(--border-orange);
  background: var(--bg-card-hover);
}

.feature-icon {
  color: var(--orange);
  margin-bottom: 12px;
}
.feature-icon svg {
  width: 28px;
  height: 28px;
  stroke: var(--orange);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.feature-card h3 {
  color: var(--text);
  margin-bottom: 6px;
  font-size: 0.95rem;
}
.feature-card p {
  font-size: 0.85rem;
  line-height: 1.5;
}

/* CTA Bottom Section */
.cta-section {
  text-align: center;
  padding: 56px 24px 80px;
}
.cta-section h2 {
  color: var(--text);
  margin-bottom: 12px;
}
.cta-section p {
  margin-bottom: 28px;
}
.cta-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Footer */
.footer {
  text-align: center;
  padding: 24px;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.8rem;
}

/* ======================
   ONBOARDING
   ====================== */
.onboarding-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
}

/* Progress Header */
.progress-header {
  padding: 16px 24px 0;
  background: rgba(0,0,0,0.9);
  border-bottom: 1px solid var(--border);
}

.progress-header-top {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 10px;
}

.progress-logo {
  font-size: 1rem;
  font-weight: 700;
  color: var(--orange);
}

.progress-label {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.progress-bar-track {
  height: 4px;
  background: rgba(255, 132, 0, 0.25);
  border-radius: 2px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background: var(--orange);
  border-radius: 2px;
  transition: width 0.4s ease;
}

/* Onboarding content */
.onboarding-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 40px 24px 24px;
  max-width: 600px;
  margin: 0 auto;
  width: 100%;
}

.step-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 32px;
  align-self: flex-start;
  width: 100%;
}

.step-header-text h2 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 2px;
}

.step-header-text p {
  font-size: 0.875rem;
}

/* Step 1 — Stats cards */
.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  width: 100%;
  margin-bottom: 28px;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px 16px;
  text-align: center;
}

.stat-card svg {
  width: 28px;
  height: 28px;
  stroke: var(--orange);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  margin-bottom: 10px;
}

.stat-number {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text);
  display: block;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.step-cta-text {
  color: var(--orange);
  font-weight: 600;
  text-align: center;
  margin-bottom: 20px;
  font-size: 0.95rem;
}

/* Step 2 — Situation options */
.options-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  margin-bottom: 24px;
}

.option-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text);
}

.option-item:hover {
  border-color: var(--border-orange);
  background: var(--bg-card-hover);
}

.option-item.selected {
  border-color: var(--orange);
  background: rgba(255, 132, 0, 0.08);
  color: var(--orange);
}

.option-item svg {
  width: 22px;
  height: 22px;
  stroke: var(--orange);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

/* Step 3 — States grid */
.states-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  width: 100%;
  margin-bottom: 24px;
}

@media (max-width: 420px) {
  .states-grid { grid-template-columns: repeat(3, 1fr); }
}

.state-btn {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 8px;
  color: var(--text);
  font-family: var(--font);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
  text-align: center;
}

.state-btn:hover {
  border-color: var(--border-orange);
  background: var(--bg-card-hover);
}

.state-btn.selected {
  border-color: var(--orange);
  background: rgba(255, 132, 0, 0.08);
  color: var(--orange);
}

/* Step 4 — City input */
.input-group {
  width: 100%;
  margin-bottom: 16px;
}

.input-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-label);
  margin-bottom: 8px;
}

.input-field {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 13px 16px;
  color: var(--text);
  font-family: var(--font);
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s;
}

.input-field:focus {
  border-color: var(--orange);
}

.input-field::placeholder { color: var(--text-muted); }

/* Step 5 — Feelings */
.feelings-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  width: 100%;
  margin-bottom: 24px;
}

.feeling-btn {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px 12px;
  color: var(--text);
  font-family: var(--font);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  transition: border-color 0.15s, background 0.15s;
}

.feeling-btn .emoji { font-size: 1.8rem; }

.feeling-btn:hover {
  border-color: var(--border-orange);
  background: var(--bg-card-hover);
}

.feeling-btn.selected {
  border-color: var(--orange);
  background: rgba(255, 132, 0, 0.08);
}

/* Step 7 — Summary */
.summary-welcome {
  text-align: center;
  margin-bottom: 24px;
  width: 100%;
}

.summary-welcome h2 {
  font-size: 1.6rem;
  color: var(--text);
  margin-bottom: 6px;
}

.summary-welcome h2 span { color: var(--orange); }

.summary-welcome p {
  font-size: 0.9rem;
}

.summary-info-box {
  background: rgba(255, 132, 0, 0.06);
  border: 1px solid rgba(255, 132, 0, 0.20);
  border-radius: 14px;
  padding: 20px;
  text-align: center;
  margin-bottom: 20px;
  width: 100%;
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.summary-badges {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  width: 100%;
  margin-bottom: 20px;
}

.summary-badge {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
  text-align: center;
}

.summary-badge .badge-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  display: block;
  margin-bottom: 4px;
}

.summary-badge .badge-value {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
}

.back-link {
  text-align: center;
  font-size: 0.875rem;
  color: var(--text-muted);
  cursor: pointer;
  padding: 10px;
  display: block;
  transition: color 0.2s;
}
.back-link:hover { color: var(--text); }

/* ======================
   AUTH PAGES (Login / Register)
   ====================== */
.auth-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: var(--bg);
}

.auth-card {
  width: 100%;
  max-width: 380px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.auth-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text);
  text-align: center;
  margin-bottom: 24px;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 16px 0;
  color: var(--text-muted);
  font-size: 0.8rem;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.auth-footer {
  text-align: center;
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: var(--text-muted);
  font-size: 0.875rem;
}

.auth-footer a,
.auth-footer span[data-route] {
  cursor: pointer;
  font-weight: 600;
}

.auth-link-orange {
  color: var(--orange);
  text-decoration: none;
}
.auth-link-orange:hover { text-decoration: underline; }

.auth-link-white {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
}
.auth-link-white:hover { text-decoration: underline; }

/* Error message */
.error-msg {
  background: rgba(255, 59, 48, 0.10);
  border: 1px solid rgba(255, 59, 48, 0.30);
  border-radius: 8px;
  padding: 10px 14px;
  color: #ff6b6b;
  font-size: 0.82rem;
  margin-bottom: 12px;
  display: none;
}
.error-msg.visible { display: block; }

/* ======================
   TRANSITIONS
   ====================== */
.page-enter {
  animation: fadeSlideIn 0.3s ease forwards;
}

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

.step-enter {
  animation: fadeSlideIn 0.25s ease forwards;
}

/* ======================
   RESPONSIVE
   ====================== */
@media (max-width: 640px) {
  .hero { padding: 48px 20px 40px; }
  .features { padding: 40px 20px; }
  .cta-section { padding: 40px 20px 60px; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .nav { padding: 14px 16px; }
}

/* ======================
   DASHBOARD & BOTTOM NAV
   ====================== */
.dashboard-page {
  padding-bottom: 80px; /* Space for bottom nav */
  min-height: 100vh;
  background: var(--bg);
}

.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(10, 10, 15, 0.95);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 8px 0;
  z-index: 1000;
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.7rem;
  font-weight: 500;
  cursor: pointer;
  transition: color 0.2s;
  flex: 1;
  padding: 6px 0;
}

.nav-item.active {
  color: var(--orange);
  position: relative;
}

.nav-item.active::before {
  content: '';
  position: absolute;
  top: -8px;
  width: 40px;
  height: 2px;
  background: var(--orange);
  border-radius: 0 0 4px 4px;
}

.nav-item svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nav-item.active svg {
  stroke-width: 2;
}

/* ======================
   DASHBOARD CONTENT
   ====================== */
.dashboard-tab {
  display: none;
  animation: fadeSlideIn 0.3s ease forwards;
}

.dashboard-tab.active {
  display: block;
}

.dashboard-header {
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border);
}

.header-icons {
  display: flex;
  gap: 12px;
}

.icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text);
  transition: border-color 0.2s;
}

.icon-btn:hover {
  border-color: var(--orange);
}

/* Minha Luta Tab */
.greeting-card {
  margin: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border-orange);
  border-radius: 16px;
  padding: 32px 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.greeting-card h2 {
  font-size: 1.3rem;
  margin: 16px 0 12px;
}

.greeting-card p {
  font-size: 0.9rem;
  margin-bottom: 16px;
}

.pill-badge {
  background: rgba(255, 132, 0, 0.15);
  border: 1px solid var(--border-orange);
  color: var(--orange);
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
}

/* Journey Roadmap */
.journey-container {
  padding: 40px 24px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.journey-path {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  background: rgba(255, 132, 0, 0.2);
  z-index: 0;
}

.journey-node {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 48px;
  width: 100%;
  max-width: 320px;
  cursor: pointer;
  transition: transform 0.2s;
}

.journey-node:hover {
  transform: translateX(4px);
}

.journey-node.right {
  flex-direction: row-reverse;
  text-align: right;
}

.node-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #1a202c;
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  position: relative;
  box-shadow: 0 4px 12px rgba(0,0,0,0.5);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.journey-node:hover .node-icon {
  border-color: var(--orange);
  box-shadow: 0 0 16px var(--orange-glow);
}

.node-dot {
  position: absolute;
  top: 0;
  right: 0;
  width: 12px;
  height: 12px;
  background: #ff2a2a;
  border-radius: 50%;
  border: 2px solid #1a202c;
}

.node-content h3 {
  color: var(--orange);
  font-size: 1.1rem;
  margin-bottom: 4px;
}

.node-content p {
  font-size: 0.85rem;
  color: var(--text);
}

/* Tools Section */
.tools-section {
  padding: 0 24px 32px;
}

.tools-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.tool-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s;
}

.tool-card:hover {
  border-color: var(--orange);
}

.tool-card h4 {
  font-size: 0.9rem;
  margin-top: 8px;
}

/* Stats Section */
.stats-section {
  padding: 0 24px 40px;
}

.stats-box {
  background: rgba(0, 0, 0, 0.03);
  border-radius: 12px;
  padding: 20px;
  text-align: center;
}

.stats-box h3 {
  font-size: 1rem;
  margin-bottom: 8px;
}

.stats-box p {
  color: var(--orange);
  font-weight: 700;
  font-size: 1.1rem;
}

/* Footer Internal */
.internal-footer {
  text-align: center;
  padding: 24px;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.75rem;
}

/* ======================
   MODALS
   ====================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.8);
  backdrop-filter: blur(4px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  width: 100%;
  max-width: 400px;
  padding: 32px 24px;
  transform: translateY(20px);
  transition: transform 0.3s;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-overlay.active .modal-content {
  transform: translateY(0);
}

.modal-content h2 {
  font-size: 1.4rem;
  margin-bottom: 16px;
}

.modal-content p {
  margin-bottom: 24px;
  font-size: 0.9rem;
}

.modal-list {
  list-style: none;
  margin-bottom: 24px;
}

.modal-list li {
  margin-bottom: 12px;
  padding-left: 24px;
  position: relative;
  font-size: 0.9rem;
  color: var(--text);
}

.modal-list li::before {
  content: '?';
  position: absolute;
  left: 0;
  color: var(--orange);
}

.modal-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

/* ======================
   MISSOES TAB
   ====================== */
.missions-header {
  padding: 24px;
}

.missions-header h2 {
  font-size: 1.4rem;
  margin-bottom: 8px;
}

.mission-card {
  margin: 0 24px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border-orange);
  border-radius: 16px;
  padding: 24px;
}

.mission-card h3 {
  font-size: 1.1rem;
  margin-bottom: 12px;
}

.mission-card p {
  font-size: 0.85rem;
  margin-bottom: 16px;
}

.mission-progress {
  background: rgba(255,255,255,0.05);
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 16px;
}

.progress-text {
  font-size: 0.8rem;
  color: var(--text);
  margin-bottom: 8px;
  display: flex;
  justify-content: space-between;
}

.mission-locked {
  margin: 0 24px 16px;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 16px;
  opacity: 0.6;
}

/* ======================
   REDE+ (CHAT) TAB
   ====================== */
.chat-container {
  display: flex;
  flex-direction: column;
  height: calc(100vh - 140px); /* Adjust for header and bottom nav */
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.chat-bubble {
  max-width: 85%;
  padding: 16px;
  border-radius: 16px;
  font-size: 0.9rem;
}

.chat-bubble.bot {
  background: var(--bg-card);
  border: 1px solid var(--border);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}

.chat-bubble.user {
  background: var(--orange);
  color: #111;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}

.chat-suggestions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 12px;
}

.suggestion-pill {
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: 50px;
  padding: 8px 12px;
  font-size: 0.8rem;
  color: var(--text);
  cursor: pointer;
  text-align: center;
  transition: background 0.2s;
}

.suggestion-pill:hover {
  background: rgba(255,255,255,0.1);
}

.chat-input-area {
  padding: 16px 24px;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 12px;
}

.chat-input {
  flex: 1;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 50px;
  padding: 12px 20px;
  color: var(--text);
  font-size: 0.95rem;
  outline: none;
}

.chat-input:focus {
  border-color: var(--orange);
}

.send-btn {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--orange);
  color: #111;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* ======================
   TOAST NOTIFICATION
   ====================== */
.toast-container {
  position: fixed;
  bottom: 100px;
  right: 24px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  background: var(--bg-card);
  border: 1px solid var(--border-orange);
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.5);
  animation: slideInRight 0.3s forwards;
  max-width: 300px;
}

.toast h4 {
  color: var(--orange);
  margin-bottom: 4px;
  font-size: 0.9rem;
}

.toast p {
  font-size: 0.85rem;
}

@keyframes slideInRight {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* ======================
   PERFIL TAB
   ====================== */
.profile-header {
  padding: 40px 24px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
}

.profile-actions {
  position: absolute;
  top: 24px;
  right: 24px;
  display: flex;
  gap: 12px;
}

.profile-header h2 {
  margin-top: 16px;
  font-size: 1.4rem;
}

.profile-info {
  margin: 0 24px 32px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
}

.info-row {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.info-row:last-child {
  border-bottom: none;
}

.info-label {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.info-value {
  font-weight: 500;
  font-size: 0.9rem;
}

.contribution-section {
  margin: 0 24px 40px;
}

.contribution-card {
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
}

