/* ===================================
   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;
  --bg-card: #ffffff;
  --bg-card-hover: #fafbfc;
  --bg-input: #ffffff;
  --bg-nav: rgba(255, 255, 255, 0.85);
  --border: rgba(0, 0, 0, 0.08);
  --border-orange: rgba(255, 132, 0, 0.40);
  --border-subtle: rgba(0, 0, 0, 0.05);

  --text: #2d333b;
  --text-muted: #5c6670;
  --text-label: #424a53;
  --font: 'Inter', system-ui, sans-serif;

  --vignette: radial-gradient(ellipse 80% 60% at 50% 100%, rgba(255, 132, 0, 0.03) 0%, transparent 70%);

  --card-shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
  --card-shadow-hover: 0 4px 12px rgba(0, 0, 0, 0.08), 0 2px 4px rgba(0, 0, 0, 0.04);
  --section-gap: 24px;
  --track-bg: rgba(0, 0, 0, 0.06);
}

/* === DARK MODE === */
html[data-theme="dark"] {
  --bg: #0B0F19;
  --bg-card: rgba(20, 26, 42, 0.65);
  --bg-card-hover: rgba(30, 38, 60, 0.80);
  --bg-input: rgba(15, 20, 32, 0.90);
  --bg-nav: rgba(11, 15, 25, 0.80);
  --border: rgba(255, 255, 255, 0.08);
  --border-orange: rgba(255, 132, 0, 0.35);
  --border-subtle: rgba(255, 255, 255, 0.05);

  --text: #F8FAFC;
  --text-muted: #94A3B8;
  --text-label: #CBD5E1;

  --orange-glow: rgba(255, 132, 0, 0.25);
  --orange-subtle: rgba(255, 132, 0, 0.10);
  --red-alert: rgba(239, 68, 68, 0.10);
  --red-border: rgba(239, 68, 68, 0.30);

  --vignette: radial-gradient(ellipse 80% 60% at 50% 100%, rgba(255, 132, 0, 0.06) 0%, transparent 80%);

  --card-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
  --card-shadow-hover: 0 6px 20px rgba(0, 0, 0, 0.35);
  --track-bg: rgba(255, 255, 255, 0.08);
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  max-width: 100%;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.3s ease, color 0.3s ease;
  overflow-x: hidden;
  max-width: 100%;
  width: 100%;
}

#app {
  min-height: 100vh;
  overflow-x: hidden;
  max-width: 100%;
  width: 100%;
}

/* --- 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: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  color: #ffffff !important;
  font-weight: 700 !important;
  font-size: 1.8rem;
  text-shadow: 0 1px 2px rgba(0,0,0,0.15);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  flex-shrink: 0;
  user-select: none;
  object-fit: cover !important;
  background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
}

.sphere-sm {
  width: 40px !important;
  height: 40px !important;
  font-size: 0.95rem !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.sphere-lg {
  width: 100px;
  height: 100px;
  font-size: 2.2rem;
  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 var(--border);
}

.btn-outline:hover {
  border-color: var(--border-orange);
  background: var(--orange-subtle);
}

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

.btn-google {
  background: var(--bg-card);
  color: var(--text);
  border: 1px solid var(--border);
  font-weight: 600;
}

.btn-google:hover {
  background: var(--bg-card-hover);
  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: var(--bg-nav);
  backdrop-filter: blur(12px);
  -webkit-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;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s, transform 0.2s;
  box-shadow: var(--card-shadow);
}

.feature-card:hover {
  border-color: var(--border-orange);
  background: var(--bg-card-hover);
  box-shadow: var(--card-shadow-hover);
  transform: translateY(-2px);
}

.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 12px;
  background: var(--bg-nav);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  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;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  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;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(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;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  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;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  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;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  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: var(--bg-nav);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  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;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--card-shadow);
}

.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: 0px;
  background: rgba(255, 132, 0, 0);
  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: var(--bg-card);
  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.10);
  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 var(--bg);
}

.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;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  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: var(--bg-card);
  border: 1px solid var(--border);
  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.5);
  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;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  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;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--card-shadow);
}

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

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

.mission-progress {
  background: var(--bg-card);
  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: var(--bg-card);
  border: 1px solid var(--border-subtle);
  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);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  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: var(--bg-card);
  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: var(--bg-card-hover);
}

.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;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  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;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--card-shadow);
}

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

.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: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
}

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

.dashboard-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  background: var(--bg-nav);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 100;
}

/* ======================
   ADMIN PAINEL
   ====================== */
.admin-main {
  max-width: 960px;
  margin: 0 auto 40px auto;
  width: 100%;
  padding: 0 24px;
}

.admin-tab-content {
  display: none;
}

.admin-tab-content.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 24px;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: var(--card-shadow);
}

.stat-number {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--orange);
  line-height: 1;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}

.admin-list-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
}


/* ======================
   AVALIA INSS — Polished
   ====================== */

/* Avalia Section Wrapper */
.avalia-section-wrapper {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 var(--section-gap);
}

/* Sub-navigation within Avaliar tab */
.avalia-subnav {
  display: flex;
  gap: 0;
  margin: 24px 24px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
}

.admin-subnav {
  max-width: 960px;
  margin: 24px auto 24px auto;
  width: calc(100% - 48px);
}

.avalia-subnav-btn {
  flex: 1;
  padding: 12px 16px;
  margin: 10px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-family: inherit;
  border-radius: 1em;
}

.avalia-subnav-btn.active {
  background: var(--orange);
  color: #111;
  font-weight: 600;
}

.avalia-subnav-btn:not(.active):hover {
  background: rgba(255, 132, 0, 0.1);
  color: var(--text);
}

/* --- Admin / Dashboard Responsiveness --- */
@media (max-width: 768px) {
  .dashboard-page {
    overflow-x: hidden;
    max-width: 100vw;
    width: 100%;
  }

  .dashboard-header {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    gap: 12px;
    max-width: 100%;
    box-sizing: border-box;
  }

  .dashboard-header .nav-logo {
    font-size: 1.1rem;
    text-align: left;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
  }

  .header-actions-desktop, .header-actions {
    display: none !important;
  }

  .dash-menu-btn {
    display: flex !important;
    background: transparent;
    border: none;
    color: var(--text);
    padding: 8px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
  }

  .avalia-subnav {
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    -webkit-overflow-scrolling: touch;
    justify-content: flex-start !important;
    padding-bottom: 4px;
    /* Space for scrollbar */
    margin: 16px 16px 20px !important;
  }

  .admin-subnav {
    width: calc(100% - 32px) !important;
    margin: 16px auto !important;
  }

  .avalia-subnav-btn {
    flex: 0 0 auto !important;
    white-space: nowrap !important;
    padding: 10px 16px !important;
    margin: 4px 0px 15px 0px !important;
    font-size: 0.8rem;
  }

  .admin-main {
    padding: 0 16px !important;
    max-width: 100% !important;
    overflow-x: hidden;
  }

  .stat-card {
    padding: 16px !important;
  }

  /* Prevent card content from overflowing horizontally on mobile */
  .feature-card {
    padding: 16px !important;
    word-break: break-word !important;
    overflow-wrap: anywhere !important;
    max-width: 100% !important;
  }

  /* Wrap flex containers with long strings in cards */
  .feature-card > div {
    flex-wrap: wrap !important;
    gap: 8px !important;
  }

  /* Make filter sections responsive and compact */
  .avalia-filters {
    margin: 0 16px 16px !important;
    padding: 16px !important;
    max-width: calc(100% - 32px) !important;
    box-sizing: border-box !important;
  }

  .avalia-filters .d-flex {
    flex-direction: column !important;
    gap: 12px !important;
    width: 100% !important;
  }

  .avalia-filter-input {
    width: 100% !important;
  }

  .btn-search {
    width: 100% !important;
  }

  /* Ensure pagination and lists are fully bounded */
  .admin-list-container {
    max-width: 100% !important;
    overflow-x: hidden !important;
  }

  .avalia-pagination {
    padding: 0 16px 20px !important;
    flex-wrap: wrap !important;
  }
}

/* Filter Bar */
.avalia-filters {
  margin: 0 24px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px 24px;
  box-shadow: var(--card-shadow);
}

.avalia-filters-title {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
}

.avalia-filters-subtitle {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.avalia-filters-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr auto;
  gap: 10px;
  align-items: end;
}

@media (max-width: 640px) {
  .avalia-filters-row {
    grid-template-columns: 1fr;
  }
}

.avalia-filter-input,
.avalia-filter-select {
  width: 100%;
  padding: 11px 14px;
  border-radius: 10px;
  background: var(--bg-input);
  color: var(--text);
  border: 1px solid var(--border);
  font-size: 0.85rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.avalia-filter-input:focus,
.avalia-filter-select:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px var(--orange-glow);
}

.avalia-filter-select option {
  background: var(--bg);
  color: var(--text);
}

.avalia-clear-btn {
  padding: 11px 20px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  font-size: 0.85rem;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s;
  white-space: nowrap;
}

.avalia-clear-btn:hover {
  border-color: var(--orange);
  color: var(--orange);
  background: var(--orange-subtle);
}

/* Agency count */
.avalia-count {
  padding: 0 24px;
  margin-bottom: 16px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.01em;
}

/* Agency Cards Grid */
.agency-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  padding: 0 24px 30px;
}

.agency-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px;
  cursor: pointer;
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: var(--card-shadow);
  position: relative;
  overflow: hidden;
}

.agency-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--orange) 0%, transparent 100%);
  opacity: 0;
  transition: opacity 0.25s;
}

.agency-card:hover {
  border-color: var(--border-orange);
  transform: translateY(-3px);
  box-shadow: var(--card-shadow-hover);
}

.agency-card:hover::before {
  opacity: 1;
}

.agency-card-name {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text);
  text-transform: uppercase;
  line-height: 1.35;
  letter-spacing: 0.01em;
}

.agency-card-location {
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.agency-card-score {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--border-subtle);
}

.agency-card-stars {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--orange);
}

.agency-card-btn {
  padding: 7px 16px;
  border-radius: 8px;
  background: rgba(255, 132, 0, 0.12);
  border: 1px solid var(--border-orange);
  color: var(--orange);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s;
}

.agency-card-btn:hover {
  background: var(--orange);
  color: #111;
  border-color: var(--orange);
}

/* Star Rating Display */
.star {
  color: var(--border);
}

.star.filled {
  color: var(--orange);
}

.star.half {
  color: var(--orange);
  opacity: 0.6;
}

/* Interactive Star Rating */
.star-rating-input {
  display: flex;
  gap: 4px;
  cursor: pointer;
}

.star-rating-input .star-btn {
  background: none;
  border: none;
  font-size: 1.6rem;
  cursor: pointer;
  color: var(--track-bg);
  transition: color 0.15s, transform 0.15s;
  padding: 2px 4px;
  line-height: 1;
}

.star-rating-input .star-btn:hover {
  transform: scale(1.25);
}

.star-rating-input .star-btn.active {
  color: var(--orange);
  text-shadow: 0 0 8px var(--orange-glow);
}

/* Agency Detail View */
.agency-detail-container {
  padding: 0 24px 30px;
  max-width: 720px;
  margin: 0 auto;
}

.agency-detail-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  padding: 8px 24px;
  margin-bottom: 16px;
  transition: color 0.2s;
  border-radius: 8px;
}

.agency-detail-back:hover {
  color: var(--orange);
  background: var(--orange-subtle);
}

.agency-detail-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px;
  margin-bottom: 16px;
  box-shadow: var(--card-shadow);
}

.agency-detail-name {
  font-size: 1.15rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 14px;
  line-height: 1.3;
  letter-spacing: 0.01em;
}

.agency-detail-info {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}

.agency-detail-info-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--text-muted);
  padding: 6px 0;
}

.agency-detail-info-row svg {
  width: 16px;
  height: 16px;
  stroke: var(--orange);
  fill: none;
  stroke-width: 2;
  flex-shrink: 0;
}

/* Score Bars */
.score-bars {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.score-bar-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.score-bar-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  min-width: 110px;
  font-weight: 500;
}

.score-bar-track {
  flex: 1;
  height: 8px;
  background: var(--track-bg);
  border-radius: 4px;
  overflow: hidden;
}

.score-bar-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.score-bar-value {
  font-size: 0.85rem;
  font-weight: 700;
  min-width: 32px;
  text-align: right;
}

/* Review Cards */
.review-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px;
  margin-bottom: 12px;
  box-shadow: var(--card-shadow);
  transition: border-color 0.2s;
}

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

.review-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.review-card-user {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text);
}

.review-card-date {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.review-card-comment {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--border-subtle);
}

/* Ranking Tabs */
.ranking-tabs {
  display: flex;
  gap: 0;
  margin: 0 24px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
}

.ranking-tab-btn {
  flex: 1;
  padding: 11px 12px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-family: inherit;
}

.ranking-tab-btn.active {
  background: var(--orange);
  color: #111;
  font-weight: 600;
}

.ranking-tab-btn:not(.active):hover {
  background: rgba(255, 132, 0, 0.1);
}

/* Ranking Alert Banner */
.ranking-alert {
  margin: 0 24px 16px;
  padding: 16px 20px;
  border-radius: 12px;
  border-left: 4px solid;
  box-shadow: var(--card-shadow);
}

.ranking-alert.horrible {
  background: rgba(248, 113, 113, 0.08);
  border-color: #f87171;
}

.ranking-alert.horrible h4 {
  color: #f87171;
}

.ranking-alert.excellence {
  background: rgba(74, 222, 128, 0.08);
  border-color: #4ade80;
}

.ranking-alert.excellence h4 {
  color: #4ade80;
}

.ranking-alert h4 {
  font-size: 0.95rem;
  margin-bottom: 4px;
}

.ranking-alert p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Ranking Item */
.ranking-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 20px;
  margin: 0 24px 10px;
  display: flex;
  align-items: center;
  gap: 16px;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: var(--card-shadow);
}

.ranking-item:hover {
  border-color: var(--border-orange);
  transform: translateX(4px);
  box-shadow: var(--card-shadow-hover);
}

.ranking-position {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text-muted);
  min-width: 32px;
  text-align: center;
  opacity: 0.6;
}

.ranking-item:first-child .ranking-position {
  color: var(--orange);
  opacity: 1;
}

.ranking-info {
  flex: 1;
  min-width: 0;
}

.ranking-info h4 {
  font-size: 0.88rem;
  text-transform: uppercase;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: 0.01em;
}

.ranking-info p {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.ranking-score {
  font-size: 1.3rem;
  font-weight: 800;
  min-width: 44px;
  text-align: right;
  letter-spacing: -0.02em;
}

/* Review Form Section */
.review-form-section {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px;
  margin-bottom: 16px;
  box-shadow: var(--card-shadow);
}

.review-form-section h3 {
  font-size: 1.05rem;
  margin-bottom: 4px;
}

.review-form-section .subtitle {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.review-form-row {
  margin-bottom: 18px;
}

.review-form-row label {
  display: block;
  font-size: 0.85rem;
  color: var(--text-label);
  font-weight: 500;
  margin-bottom: 8px;
}

/* Social Share */
.share-buttons {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding-top: 4px;
}

.share-btn {
  padding: 8px 16px;
  border-radius: 8px;
  border: none;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
}

.share-btn:hover {
  opacity: 0.85;
  transform: translateY(-1px);
}

.share-btn.whatsapp {
  background: #25d366;
  color: #fff;
}

.share-btn.facebook {
  background: #1877f2;
  color: #fff;
}

.share-btn.twitter {
  background: #1da1f2;
  color: #fff;
}

.share-btn.copy {
  background: var(--bg-card);
  color: var(--text);
  border: 1px solid var(--border);
}

/* Empty State */
.avalia-empty {
  text-align: center;
  padding: 60px 24px;
  color: var(--text-muted);
}

.avalia-empty-icon {
  font-size: 3rem;
  margin-bottom: 16px;
  opacity: 0.4;
}

/* Add branch CTA inside agencies */
.avalia-add-cta {
  margin: 0 24px 30px;
  padding: 24px;
  border: 1.5px dashed var(--border-orange);
  border-radius: 14px;
  text-align: center;
  background: var(--orange-subtle);
  transition: background 0.2s;
}

.avalia-add-cta:hover {
  background: rgba(255, 132, 0, 0.12);
}

.avalia-add-cta p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 14px;
}

/* Pagination */
.avalia-pagination {
  display: flex;
  justify-content: center;
  gap: 6px;
  padding: 0 24px 30px;
}

.avalia-page-btn {
  padding: 8px 16px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text);
  font-size: 0.85rem;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s;
  box-shadow: var(--card-shadow);
}

.avalia-page-btn:hover {
  border-color: var(--orange);
  background: var(--orange-subtle);
}

.avalia-page-btn.active {
  background: var(--orange);
  color: #111;
  border-color: var(--orange);
  font-weight: 600;
}

.avalia-page-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  box-shadow: none;
}

/* --- Overall Score Hero --- */
.score-hero {
  text-align: center;
  padding: 24px 16px;
  margin-top: 12px;
  border-top: 1px solid var(--border-subtle);
}

.score-hero-value {
  font-size: 2.8rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
}

.score-hero-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 4px;
  font-weight: 500;
}

/* --- Avalia INSS Header --- */
.avalia-header {
  padding: 24px 24px 16px;
}

.avalia-header h2 {
  color: var(--orange);
  font-size: 1.4rem;
  font-weight: 700;
}

.avalia-header p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 4px;
}

/* ===================================
   RESPONSIVIDADE & ADAPTABILIDADE MOBILE
   =================================== */

@media (max-width: 768px) {

  /* Cabeçalho e Navegação */
  .nav {
    padding: 12px 16px;
  }

  .nav-logo,
  .dashboard-header .nav-logo {
    font-size: 0.95rem;
  }

  .nav-actions {
    gap: 8px;
  }

  .nav-actions .btn {
    padding: 8px 14px;
    font-size: 0.85rem;
  }

  /* Filtros do Avalia INSS */
  .avalia-filters-row {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
  }

  .avalia-filter-input,
  .avalia-filter-select,
  .avalia-clear-btn {
    width: 100% !important;
    margin: 0 !important;
  }

  /* Modais responsivos */
  .modal-content {
    width: 92% !important;
    max-width: 450px;
    padding: 20px !important;
  }

  /* Grades e Cards */
  .agency-grid {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 480px) {

  /* Hero e CTAs da Home */
  .hero {
    padding: 48px 16px 36px !important;
  }

  .hero h1 {
    font-size: 1.8rem !important;
  }

  .hero-cta {
    flex-direction: column;
    width: 100%;
    gap: 10px;
  }

  .hero-cta .btn {
    width: 100%;
  }

  /* Bottom Navigation Touch Targets */
  .bottom-nav {
    padding: 6px 4px !important;
  }

  .bottom-nav .nav-item {
    font-size: 0.7rem !important;
    gap: 2px !important;
  }

  .bottom-nav .nav-item svg {
    width: 18px !important;
    height: 18px !important;
  }

  /* Dashboard Header */
  .dashboard-header {
    padding: 10px 14px !important;
  }

  .dashboard-header .nav-logo {
    font-size: 0.85rem !important;
  }

  .header-icons {
    gap: 6px !important;
  }

  .header-icons .btn {
    padding: 4px 8px !important;
    font-size: 0.75rem !important;
  }

  /* Nodes de Jornada (Minha Luta) */
  .journey-node {
    flex-direction: column !important;
    align-items: flex-start !important;
    text-align: left !important;
    gap: 8px !important;
    padding-left: 20px !important;
  }

  .journey-node.right {
    flex-direction: column !important;
    align-items: flex-start !important;
    text-align: left !important;
    padding-right: 0 !important;
    padding-left: 20px !important;
  }

  .journey-path {
    left: 24px !important;
  }

  .journey-node .node-icon {
    align-self: flex-start !important;
  }

  /* Grades de Status/Badge */
  .stats-grid,
  .summary-badges {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }

  .feelings-grid {
    grid-template-columns: 1fr !important;
  }
}

/* Layout horizontal da jornada no desktop */
@media (min-width: 769px) {
  .journey-container {
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: flex-start !important;
    gap: 20px;
    width: 100%;
    max-width: 850px;
    margin: 0 auto;
    padding: 30px 24px 48px;
  }

  .journey-node,
  .journey-node.right {
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    margin-bottom: 0 !important;
    max-width: 180px !important;
    gap: 12px !important;
  }

  .journey-node:hover {
    transform: translateY(-4px) !important;
  }
}

/* ==========================================
   STANDARD RESPONSIVE HEADER & MOBILE DRAWER
   ========================================== */
.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: color 0.2s;
  cursor: pointer;
}

.nav-link:hover,
.nav-link.active {
  color: var(--orange);
}

.menu-toggle {
  display: none;
  background: transparent;
  border: none;
  color: var(--text);
  cursor: pointer;
  padding: 8px;
}

.mobile-menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

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

.mobile-menu-drawer {
  position: fixed;
  top: 0;
  right: -280px;
  width: 280px;
  height: 100%;
  background: var(--bg-card);
  border-left: 1px solid var(--border);
  box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
  z-index: 2001;
  display: flex;
  flex-direction: column;
  padding: 24px;
  gap: 20px;
  transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu-overlay.active .mobile-menu-drawer {
  right: 0;
}

.mobile-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
  padding-bottom: 16px;
  margin-bottom: 8px;
}

.mobile-menu-title {
  font-weight: 700;
  color: var(--orange);
}

.mobile-menu-close {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
}

.mobile-menu-links {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.mobile-menu-link {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  padding: 8px 0;
  border-bottom: 1px solid var(--border-subtle);
  transition: color 0.2s;
  cursor: pointer;
}

.mobile-menu-link:hover,
.mobile-menu-link.active {
  color: var(--orange);
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .menu-toggle {
    display: block;
  }
}

/* ==========================================
   TOAST NOTIFICATION COMPONENT STYLES
   ========================================== */
#toast-container {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 12px;
  pointer-events: none;
  max-width: 380px;
  width: calc(100% - 48px);
}

.toast {
  background: var(--bg-card);
  border: 1px solid var(--border);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12), 0 1px 3px rgba(0, 0, 0, 0.05);
  border-radius: 14px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  transform: translateY(-20px);
  opacity: 0;
  transition: transform 0.3s cubic-bezier(0.18, 0.89, 0.32, 1.28), opacity 0.3s ease;
  pointer-events: auto;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.toast.visible {
  transform: translateY(0);
  opacity: 1;
}

.toast-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
}

.toast-content {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.4;
}

.toast-info .toast-icon {
  background: rgba(59, 130, 246, 0.1);
  color: #3b82f6;
}

.toast-info {
  border-left: 4px solid #3b82f6;
}

.toast-success .toast-icon {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
}

.toast-success {
  border-left: 4px solid #10b981;
}

.toast-error .toast-icon {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
}

.toast-error {
  border-left: 4px solid #ef4444;
}

@media (max-width: 480px) {
  #toast-container {
    top: 16px;
    left: 24px;
    right: 24px;
    width: auto;
  }
}

/* ==========================================
   LAYOUT UTILITIES & STRUCTURAL CLASSES
   ========================================== */
.text-center {
  text-align: center !important;
}

.margin-top-md {
  margin-top: 24px !important;
}

.margin-top-lg {
  margin-top: 40px !important;
}

.margin-bottom-sm {
  margin-bottom: 12px !important;
}

.margin-bottom-md {
  margin-bottom: 24px !important;
}

.margin-bottom-lg {
  margin-bottom: 32px !important;
}

.w-full {
  width: 100% !important;
}

.d-flex {
  display: flex !important;
}

.flex-1 {
  flex: 1 !important;
}

.gap-sm {
  gap: 8px !important;
}

.gap-md {
  gap: 12px !important;
}

.d-none {
  display: none !important;
}

/* Donation Page Styles */
.donation-wrapper {
  max-width: 500px;
  margin: 40px auto;
  padding: 0 24px 80px;
}

.donation-header-title {
  color: var(--orange);
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.donation-header-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  max-width: 440px;
  margin: 0 auto;
  line-height: 1.5;
}

.donation-toggle-container {
  display: flex;
  background: var(--track-bg);
  border-radius: 30px;
  padding: 4px;
  margin-bottom: 24px;
  position: relative;
}

.donation-toggle-btn {
  flex: 1;
  border-radius: 30px;
  padding: 10px;
  font-size: 0.875rem;
  background: transparent;
  color: var(--text);
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}

.donation-toggle-btn.active {
  background: var(--orange);
  color: #1B0300;
}

.donation-values-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 20px;
}

.donation-value-btn {
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text);
  padding: 16px;
  cursor: pointer;
  transition: all 0.2s;
}

/* Admin View Styles */
.admin-header-actions {
  display: flex;
  gap: 12px;
}

.admin-subnav {
  padding: 16px 24px 0;
}

.admin-main {
  padding: 24px;
  max-width: 900px;
  margin: 0 auto;
  min-height: 70vh;
}

.admin-stats-grid {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  margin-bottom: 24px;
}

.admin-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.admin-search-wrapper {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
}

.admin-config-card {
  max-width: 500px;
  margin: 0 auto;
}

/* Administrative Helper Styles */
.admin-tab-content {
  display: none;
}

.admin-tab-content.active {
  display: block;
}

.btn-admin-nav {
  padding: 8px 16px !important;
  font-size: 0.85rem !important;
}

.greeting-card-admin {
  text-align: left !important;
  align-items: flex-start !important;
  margin: 0 !important;
}

.btn-search {
  padding: 10px 24px !important;
}

.admin-list-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.padding-lg {
  padding: 24px !important;
}

.admin-checkbox {
  width: 20px !important;
  height: 20px !important;
  accent-color: var(--orange) !important;
}

.admin-checkbox-label {
  font-weight: 600 !important;
  cursor: pointer !important;
}

.admin-section-subtitle {
  color: var(--orange) !important;
  margin-bottom: 12px !important;
}

.margin-top-sm {
  margin-top: 8px !important;
}

/* Custom Responsive Header Actions & Logo Containment */
.nav-logo, .dashboard-header .nav-logo {
  max-width: 250px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.desktop-only {
  display: flex !important;
}

.header-actions-desktop {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
}

.header-actions-mobile {
  display: none !important;
}

@media (max-width: 768px) {
  .nav-logo, .dashboard-header .nav-logo {
    max-width: 160px;
  }
  
  .desktop-only, .header-actions-desktop {
    display: none !important;
  }
  
  .header-actions-mobile {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
  }

  .avalia-pagination {
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
    padding: 0 16px 20px;
  }
}

/* Centralização e Limites da Paginação Administrativa */
.admin-tab-content .avalia-pagination {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
  padding: 16px 24px 30px;
  box-sizing: border-box;
}

/* Glass Loader Spinner Animation */
.glass-loader-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 250px;
  width: 100%;
  padding: 40px;
  box-sizing: border-box;
}
.glass-loader-spinner {
  width: 50px;
  height: 50px;
  border: 3px solid rgba(249, 115, 22, 0.1);
  border-radius: 50%;
  border-top-color: var(--orange);
  animation: spin 1s ease-in-out infinite;
  margin-bottom: 16px;
  box-shadow: 0 0 15px rgba(249, 115, 22, 0.2);
}
.glass-loader-text {
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.5px;
  animation: pulse-text 1.5s ease-in-out infinite;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}
@keyframes pulse-text {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

/* Layout Utilities for Removing Inline Styles */
.d-flex { display: flex !important; }
.flex-center { display: flex !important; align-items: center !important; justify-content: center !important; }
.flex-col { flex-direction: column !important; }
.align-center { align-items: center !important; }
.justify-between { justify-content: space-between !important; }
.justify-end { justify-content: flex-end !important; }
.pos-relative { position: relative !important; }
.pos-absolute { position: absolute !important; }
.w-full { width: 100% !important; }
.flex-1 { flex: 1 !important; }
.flex-shrink-0 { flex-shrink: 0 !important; }

/* Spacing Utilities */
.gap-xs { gap: 4px !important; }
.gap-sm { gap: 8px !important; }
.gap-md { gap: 12px !important; }
.gap-lg { gap: 16px !important; }
.gap-xl { gap: 20px !important; }

.margin-bottom-sm { margin-bottom: 8px !important; }
.margin-bottom-md { margin-bottom: 16px !important; }
.margin-bottom-lg { margin-bottom: 24px !important; }
.margin-top-sm { margin-top: 8px !important; }
.margin-top-md { margin-top: 16px !important; }
.margin-top-lg { margin-top: 24px !important; }

/* Text Utilities */
.text-center { text-align: center !important; }
.text-right { text-align: right !important; }
.font-xs { font-size: 0.65rem !important; }
.font-sm { font-size: 0.8rem !important; }
.font-md { font-size: 0.9rem !important; }
.font-bold { font-weight: 700 !important; }
.font-semibold { font-weight: 600 !important; }

/* Specific Semantic Classes */
.badge-alert {
  background: #ff4444 !important;
  color: #fff !important;
  font-size: 0.65rem !important;
  font-weight: 700 !important;
  padding: 2px 6px !important;
  border-radius: 10px !important;
}
.btn-success {
  background: #4ade80 !important;
  color: #111 !important;
}
.btn-success:hover {
  background: #22c55e !important;
}
.btn-admin-pill {
  padding: 6px 12px !important;
  font-size: 0.8rem !important;
  border-color: var(--orange) !important;
  color: var(--orange) !important;
  font-weight: 600 !important;
  border-radius: 18px !important;
}
.notification-dropdown-card {
  display: none;
  position: absolute;
  top: 40px;
  right: 0;
  width: 280px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--card-shadow-hover);
  z-index: 1000;
  padding: 12px 0;
}
.notification-dropdown-title {
  padding: 0 16px 8px;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text);
}
.notification-dropdown-list {
  max-height: 220px;
  overflow-y: auto;
  font-size: 0.75rem;
  color: var(--text-muted);
}
.logo-image-container img {
  max-height: 38px;
  display: block;
  object-fit: contain;
}

/* Extra Utility Classes for Inline Style Cleanup */
.icon-sm { width: 14px !important; height: 14px !important; vertical-align: middle; }
.icon-md { width: 20px !important; height: 20px !important; vertical-align: middle; }
.icon-lg { width: 24px !important; height: 24px !important; vertical-align: middle; }
.icon-inline-mr { margin-right: 4px !important; }
.icon-mr-sm { margin-right: 8px !important; }
.d-none { display: none !important; }
.opacity-0 { opacity: 0; }
.cursor-pointer { cursor: pointer !important; }
.bg-none { background: none !important; }
.border-none { border: none !important; }
.lh-normal { line-height: 1.5 !important; }
.lh-base { line-height: 1.6 !important; }
.min-h-screen { min-height: 100vh !important; }
.min-h-auto { min-height: auto !important; }
.max-w-250 { max-width: 250px !important; }
.max-w-480 { max-width: 480px !important; }
.w-18 { width: 18px !important; }
.h-18 { height: 18px !important; }
.w-20 { width: 20px !important; }
.h-20 { height: 20px !important; }
.w-24 { width: 24px !important; }
.h-24 { height: 24px !important; }
.text-orange { color: var(--orange) !important; }
.text-red { color: #ff4444 !important; }
.text-muted { color: var(--text-muted) !important; }
.border-red-subtle { border-color: rgba(255, 68, 68, 0.3) !important; }
.border-orange { border-color: var(--orange) !important; }
.padding-none { padding: 0 !important; }
.padding-bottom-none { padding-bottom: 0 !important; }
.padding-profile-actions { padding: 0 24px 40px !important; }
.padding-auth-page { padding: 24px !important; }
.flex-stretch { align-items: stretch !important; }
.align-start { align-items: flex-start !important; }
.justify-end { justify-content: flex-end !important; }
.border-bottom-none { border-bottom: none !important; }
.border-color-orange { border-color: var(--orange) !important; }
.btn-val-active { border-color: var(--orange) !important; color: var(--orange) !important; }
.auth-footer-container { margin-top: 24px; }
.auth-footer-text { margin-bottom: 8px; }
.google-logo-svg { margin-right: 8px; width: 18px; height: 18px; }
.logo-img { max-height: 38px; display: block; object-fit: contain; }
.progress-header-container { margin-top: 12px; }
.back-link-margin { margin-top: 16px; }
.back-link-margin-lg { margin-top: 24px; }
.sphere-margin-lg { margin-bottom: 24px; }
.margin-top-lg-px { margin-top: 24px !important; }
.margin-top-xl-px { margin-top: 20px !important; }
.ranking-score-style { font-weight: 700; }
.ranking-score-lbl { margin-left: 4px; font-size: 0.75rem; color: var(--text-muted); }
.ranking-score-none { font-size: 0.8rem; color: var(--text-muted); }
.donation-row-border { border-bottom: 1px solid var(--border); padding-bottom: 8px; display: flex; flex-direction: column; gap: 4px; text-align: left; }
.donation-row-header { display: flex; justify-content: space-between; align-items: center; width: 100%; font-size: 0.9rem; }
.donation-amount-sub { font-size: 0.75rem; font-weight: normal; color: var(--text-muted); }
.donation-status-lbl { font-weight: 600; font-size: 0.8rem; margin-left: auto; }
.donation-row-meta { display: flex; justify-content: space-between; width: 100%; font-size: 0.75rem; color: var(--text-muted); }
.donation-cancel-btn { font-size: 0.75rem; padding: 4px 12px; margin-top: 6px; align-self: flex-start; border-color: #ff4444; color: #ff4444; }
.donation-pay-btn { font-size: 0.75rem; padding: 4px 12px; margin-top: 6px; align-self: flex-start; color: #1B0300; text-decoration: none; }
.padding-donation-page { padding: 24px; }
.mission-detail-row { margin-top: 24px; display: flex; flex-direction: column; gap: 12px; }
.missions-progress-bar-container { margin: 16px 0; }
.missions-progress-bar-text { display: flex; justify-content: space-between; font-size: 0.8rem; color: var(--text-muted); margin-bottom: 6px; }
.missions-card-btn-success { background: #4ade80; color: #111; }
.btn-header { padding: 8px 18px !important; font-size: 0.85rem !important; }
.btn-header-orange { padding: 8px 18px !important; font-size: 0.85rem !important; border-color: var(--orange) !important; color: var(--orange) !important; }

/* Spacing, Layout, and Component helpers */
.margin-none { margin: 0 !important; }
.margin-left-xs { margin-left: 4px !important; }
.margin-left-auto { margin-left: auto !important; }
.margin-bottom-xs { margin-bottom: 4px !important; }
.pb-md { padding-bottom: 12px !important; }
.pb-none { padding-bottom: 0 !important; }
.btn-sm { padding: 8px 16px !important; font-size: 0.9rem !important; }
.font-medium { font-weight: 500 !important; }
.notification-item {
  padding: 10px 16px !important;
  border-bottom: 1px solid var(--border-subtle) !important;
  display: flex !important;
  gap: 10px !important;
  align-items: flex-start !important;
}
.notification-item-icon {
  color: var(--orange) !important;
  margin-top: 2px !important;
}
.notification-item-time {
  font-size: 0.65rem !important;
  color: var(--text-muted) !important;
  margin-top: 2px !important;
}
.icon-container-lg {
  font-size: 24px !important;
}
.padding-lg {
  padding: 24px !important;
}
.padding-md {
  padding: 12px !important;
}
.d-block {
  display: block !important;
}
.footer-clean {
  border: none !important;
  background: transparent !important;
}

/* Admin panel refactoring styles */
.logo-preview-image {
  max-height: 60px !important;
  border-radius: 4px !important;
  border: 1px solid var(--border) !important;
}
.badge-user-logged {
  background: rgba(59, 130, 246, 0.1) !important;
  color: #3b82f6 !important;
  font-size: 0.7rem !important;
  font-weight: 700 !important;
  padding: 2px 6px !important;
  border-radius: 4px !important;
  margin-left: 6px !important;
  border: 1px solid rgba(59, 130, 246, 0.2) !important;
  display: inline-block !important;
}
.badge-user-visitor {
  background: rgba(249, 115, 22, 0.1) !important;
  color: #f97316 !important;
  font-size: 0.7rem !important;
  font-weight: 700 !important;
  padding: 2px 6px !important;
  border-radius: 4px !important;
  margin-left: 6px !important;
  border: 1px solid rgba(249, 115, 22, 0.2) !important;
  display: inline-block !important;
}
.flex-wrap { flex-wrap: wrap !important; }
.font-lg { font-size: 1.15rem !important; }
.font-xs-label { font-size: 0.75rem !important; }
.padding-btn-xs { padding: 3px 8px !important; }
.border-radius-sm { border-radius: 6px !important; }
.border-radius-lg { border-radius: 12px !important; }
.icon-xs { width: 12px !important; height: 12px !important; }
.admin-item-footer {
  display: flex !important;
  justify-content: space-between !important;
  font-size: 0.75rem !important;
  color: var(--text-muted) !important;
  border-top: 1px solid var(--border) !important;
  padding-top: 8px !important;
  margin-top: 4px !important;
}
.btn-xs { padding: 4px 12px !important; font-size: 0.75rem !important; }
.align-middle { vertical-align: middle !important; }
.padding-x-xs { padding: 0 6px !important; }
.align-self-center { align-self: center !important; }
.text-dark-theme-compatibility { color: var(--text) !important; }